/* Lista de solicitações (Início e Solicitações › Lista)
   Ordem de leitura: código e etapa → título → quem avalia → próximo passo;
   à direita, quando é o follow-up e a única ação que faz sentido agora. */
html body .demand-items{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
html body .demand-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 24px;margin:0;padding:16px 8px;border-bottom:1px solid var(--line);border-radius:0}
html body .demand-item:last-child{border-bottom:0}
html body .demand-item:hover{background:color-mix(in srgb,var(--accent-container) 24%,transparent)}
html body .demand-empty{padding:24px 8px;color:var(--muted);list-style:none}

html body .di-main{min-width:0}
html body .di-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
html body .di-code{font-size:12px;font-weight:600;line-height:16px;letter-spacing:.04em;color:var(--muted)}
html body .demand-item .demand-stage{display:inline-flex;align-items:center;min-height:24px;margin:0;padding:0 8px;border:0;border-radius:8px;background:var(--accent-container);color:var(--on-accent);font-size:12px;font-weight:600;line-height:16px;white-space:nowrap}
html body .demand-item .demand-stage.is-change{background:#FFF0D8;color:#80550E}
html[data-theme="dark"] body .demand-item .demand-stage.is-change{background:#44331C;color:#F5D398}

html body .di-title{display:block;width:auto;max-width:100%;min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none;color:var(--text,inherit);font:inherit;font-size:16px;font-weight:650;line-height:24px;text-align:left;cursor:pointer}
html body .di-title:hover{background:none;text-decoration:underline;text-underline-offset:3px}
html body .di-title:focus-visible{outline:3px solid var(--p);outline-offset:2px;border-radius:4px}
html body .di-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:4px 0 0;color:var(--muted);font-size:14px;line-height:20px}
html body .di-mood{display:inline-flex;align-items:center;gap:4px;padding:0 8px;border-radius:8px;background:color-mix(in srgb,var(--muted) 14%,transparent);font-size:12px;line-height:24px}
html body .di-next{margin:8px 0 0;font-size:14px;line-height:20px;color:var(--text,inherit)}
html body .di-next::before{content:"Próximo passo: ";color:var(--muted)}
html body .di-next.is-empty{color:var(--muted);font-style:italic}
html body .di-next.is-empty::before{content:none}

html body .di-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;text-align:right}
html body .di-due{margin:0;font-size:13px;font-weight:600;line-height:20px;white-space:nowrap}
html body .di-due.due-chip{margin:0;line-height:24px}
html body .di-due.is-none{color:var(--muted);font-weight:500}
html body .di-side>button{width:auto;min-width:0;min-height:40px;margin:0;padding:0 16px;font-size:14px;white-space:nowrap}

@media (max-width:760px){
  html body .demand-item{grid-template-columns:minmax(0,1fr);padding:16px 0}
  html body .demand-item:hover{background:none}
  html body .di-side{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;text-align:left}
}

/* Cabeçalho da lista do Início: título e "Ver todas" na mesma linha; filtros alinhados embaixo */
@media (min-width:761px){
  html body #view .home-followup-heading{display:grid;grid-template-columns:240px 240px minmax(0,1fr) auto;align-items:end;gap:16px;margin:0 0 16px}
  html body #view .home-followup-heading>h2{grid-column:1/4;grid-row:1;align-self:center;margin:0}
  html body #view .home-followup-controls{display:contents}
  html body #view .home-followup-controls>button.outline{grid-column:4;grid-row:1;align-self:center;min-height:40px;margin:0;padding:0 8px;border:0;background:none;box-shadow:none;color:var(--p);font-weight:600}
  html body #view .home-followup-controls>button.outline:hover{text-decoration:underline;text-underline-offset:3px}
  html body #view .home-followup-filter{grid-column:1;grid-row:2;margin:0}
  html body #view .home-followup-controls .demand-order{grid-column:2;grid-row:2;margin:0}
  html body #view .home-followup-controls label{display:flex;flex-direction:column;gap:8px;width:100%;min-width:0}
  html body #view .home-followup-controls select{width:100%}
  html body #view .home-filter-count{margin:0 0 8px}
}

/* Cartões do Kanban: mesma linguagem visual da lista */
html body .kanban-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:16px}
html body .kanban-card .kanban-title{margin:0;padding:0;font-size:15px;font-weight:650;line-height:22px;text-align:left}
html body .kanban-card .demand-code{display:block;margin:0 0 4px;color:var(--muted);font-size:12px;letter-spacing:.04em}
html body .kanban-card .di-meta{margin:0;font-size:13px}
html body .kanban-card .di-next{margin:0;font-size:13px}
html body .kanban-card .demand-stage.is-change{align-self:flex-start}
html body .kanban-card .card-due{margin:0}
html body .kanban-card .di-due{white-space:normal}
html body .kanban-card .kanban-actions{margin:0}
html body .kanban-card .kanban-actions button{width:100%;min-height:40px;font-size:13px}
html body .kanban-card .stage-control{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:0;padding-top:8px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
html body .kanban-card .stage-control>span{white-space:nowrap}
html body .kanban-card .stage-control select{width:100%;min-width:0;min-height:36px;padding:0 28px 0 8px!important;font-size:13px;text-overflow:ellipsis;background-position:right 6px center!important}
