/* Demanda em janela central (25/11). Só vale para a gaveta aberta com { central: true }
   (Host.drawer); as outras gavetas seguem laterais. Marca: #F0EEE9, #9F7D28, #2E2C2B, Poppins. */
#drawer.drawer.central {
  top: 50%; left: 50%; right: auto; bottom: auto;
  width: min(1180px, 94vw); max-width: 94vw;
  height: auto; max-height: 90vh; max-height: 90dvh;
  border-radius: 26px !important;
  border: 1px solid #e3dccb;
  background: linear-gradient(180deg, #fffefa, #faf7f0);
  box-shadow: 0 40px 110px -30px #1b1c1699, 0 4px 14px #1b1c161a !important;
  transform: translate(-50%, -47%) scale(.97);
  opacity: 0;
  transition: transform 220ms var(--n1-saida, ease), opacity 180ms ease, visibility 0s linear 220ms;
}
#drawer.drawer.central.on {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 320ms var(--n1-ease, ease), opacity 220ms ease, visibility 0s;
}
#drawer.central .drawer-head {
  padding: 22px 30px 18px; background: #fffefaf2; backdrop-filter: blur(10px);
  border-bottom: 1px solid #ece5d4;
}
#drawer.central .drawer-head h2, #drawer.central #drawerTitulo {
  font-size: 21px; font-weight: 500; letter-spacing: -.3px; color: #2e2c2b;
}
#drawer.central .drawer-body { padding: 22px 30px 30px; }

/* grade em duas colunas */
.dem-grade { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.dem-principal, .dem-lateral { display: grid; gap: 16px; min-width: 0; }
.dem-lateral { position: sticky; top: 92px; }
.dem-grade .dem-cartao {
  margin: 0; padding: 18px 20px; border: 1px solid #ebe4d3; border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px #2e2c2b08;
}
.dem-grade .dem-cartao > .secao { margin: 0; padding: 0; border: 0; }
.dem-grade .secao-titulo { font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #9f7d28; margin-bottom: 10px; }
.dem-grade .dem-cartao-etapa { background: linear-gradient(160deg, #fffdf6, #f8f0dc); border-color: #e6d6ae; }
.dem-grade .dem-cartao-etapa .secao { margin: 0; padding: 0; border: 0; }
.dem-grade .dem-etapa { display: grid; gap: 8px; }
.dem-grade .dem-etapa .btn { width: 100%; justify-content: center; }
.dem-grade .dem-etapa-sel { display: grid; gap: 4px; font-size: 12px; color: #6b675f; margin-top: 4px; }

/* resumo: faixa de dados em grade e descrição legível */
.dem-grade #demResumo .dem-chips { margin-bottom: 14px; }
.dem-grade #demResumo .dem-info {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px;
  margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: #faf7ef; border: 1px solid #f0e9d8;
}
.dem-grade .dem-info dt { font-size: 11.5px; color: #8a857b; margin: 0; }
.dem-grade .dem-info dd { margin: 2px 0 0; font-weight: 500; color: #2e2c2b; }
.dem-grade .dem-info-1 { display: grid; gap: 10px; margin: 0 0 10px; }
.dem-grade .dem-descricao { white-space: pre-wrap; line-height: 1.7; font-size: 14.5px; color: #3a3835; margin: 0 0 12px; }
.dem-grade .dem-zona-perigo { margin: 0; padding: 0 4px; border: 0; }

@media (max-width: 1000px) {
  .dem-grade { grid-template-columns: 1fr; }
  .dem-lateral { position: static; order: -1; }
}
@media (max-width: 767px) {
  #drawer.drawer.central, #drawer.drawer.central.on {
    top: 0; left: 0; width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: none;
    border-radius: 0 !important; transform: none;
  }
  #drawer.central .drawer-head, #drawer.central .drawer-body { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #drawer.drawer.central, #drawer.drawer.central.on { transition: none; }
}
.dem-grade #demResumo .dem-info > div { display: block; }
.dem-grade .dem-info-1 > div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: baseline; }
#drawer .dem-grade dl.dem-info.dem-info-1 { display: grid; grid-template-columns: 1fr; gap: 10px; }
#drawer .dem-grade dl.dem-info.dem-info-1 > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; }
#drawer .dem-grade dl.dem-info.dem-info-1 dd { overflow-wrap: anywhere; }
/* checklist: a linha de adicionar não sobe sobre a lista (25/11) */
#drawer .dem-grade .dem-linha-sub { margin: 12px 0 0; }
#drawer .dem-grade #demChecklist .meta { margin-bottom: 2px; }
/* conversa com o setor (25/11) */
.dem-setor-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #3a3835; cursor: pointer; }
.dem-setor-check input { accent-color: #9f7d28; width: 16px; height: 16px; }
.dem-chip-setor { background: #f7ebd4 !important; color: #8a5f10 !important; font-size: 11px !important; font-weight: 500; }
.dem-coment-setor { border-left: 3px solid #9f7d28; padding-left: 10px; background: #fdf8ec; border-radius: 0 10px 10px 0; }
/* arquivo visível no portal do setor (25/11) */
.arq-setor.ativo .ms{color:#9f7d28}
.arq-portal{display:inline-block;padding:0 6px;border-radius:999px;background:#f7ebd4;color:#8a5f10;font-size:10.5px;font-weight:600}
/* medida do arquivo na peça de aprovação (25/11) */
.pc-medida{margin:8px 0 0;padding:8px 12px;border-radius:10px;background:#f4efe2;color:#5b5034;font-size:12.5px;line-height:1.5}
.pc-medida.alerta{background:#fbe9e5;color:#8a2f20}
