/* Gerenciamento > Documentos: lista detalhada em cartões + janela "Dar mais tempo" — 05/11/2026 */
#main .mg-screen.gd-tela{max-width:none!important}
#main .mg-panel.gd-largo-painel{max-width:none!important;width:100%!important}
.gd-lista{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,430px),1fr));gap:12px;margin:0 0 8px}
.gd-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:14px 16px;border:1px solid #183943;border-radius:10px;background:#0a181c;color:#d9eaec}
.gd-card:hover{border-color:#205563;background:#0c2025}
.gd-head{position:static;height:auto;margin:0;padding:0;border:0;background:none;box-shadow:none;display:flex;align-items:flex-start;gap:10px;min-width:0}
.gd-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#123a42;color:#8de9d3;font-weight:800;text-transform:uppercase}
.gd-titulo{flex:1 1 auto;min-width:0}
.gd-titulo strong{display:block;color:#f1f8f8;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.gd-titulo small{display:block;margin-top:2px;color:#6fa0b2;font-size:12px}
.gd-titulo code{padding:1px 5px;border-radius:4px;background:#102a31;color:#bfe6ee;font-size:12px;user-select:all}
#main .gd-head .mg-status{flex:0 0 auto;width:auto!important;margin:0!important;padding:3px 10px!important;border-radius:99px!important;background:#0f2a2f!important;white-space:nowrap!important;overflow:visible!important}
.gd-contato{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:13px;overflow-wrap:anywhere}
.gd-contato a{color:#66d9bd;text-decoration:none;font-weight:700}
.gd-contato a:hover{text-decoration:underline}
.gd-contato>span{display:inline-flex;align-items:center;gap:6px;min-width:0}
.gd-contato svg{flex:0 0 15px;width:15px;height:15px;fill:none;stroke:#4f8798;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gd-contato small{color:#6fa0b2;font-weight:500}
.gd-vazio,.gd-livre{color:#6f8f99;font-size:12.5px}
.gd-prazo{padding:7px 10px;border-radius:8px;background:#0d2228;font-size:13px}
.gd-prazo .prazo-edicao{margin:0}
.gd-grade{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 14px;margin:0}
.gd-dados{padding-top:9px;border-top:1px dashed #1d3f48}
.gd-item{min-width:0}
.gd-item.gd-largo{grid-column:1/-1}
.gd-item dt{margin:0;color:#4f8798;font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase}
.gd-item dd{margin:2px 0 0;color:#e3f1f2;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.gd-item dd small{color:#86a8b2}
.gd-acoes{position:static;display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:8px;border-top:1px solid #15323a}
#main .gd-acoes button{display:inline-flex;align-items:center;gap:6px;width:auto;margin:0;border:1px solid #2a4c55;border-radius:8px;padding:8px 12px;background:#10262c;color:#b9dbe4;font-size:12.5px;font-weight:700;cursor:pointer}
#main .gd-acoes button:hover{border-color:#18dcae;color:#18dcae}
#main .gd-acoes button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65}
#main .gd-acoes .gd-mais{margin-left:auto;border-color:#1b8f75;background:#0f3a33;color:#9ff3dc}
/* Janela "Dar mais tempo" */
#gd-prazo-dialog{width:min(520px,calc(100vw - 20px))!important;max-width:520px!important;max-height:calc(100vh - 20px)!important;margin:auto!important;padding:0!important;border:1px solid #365058!important;border-radius:15px!important;background:#101d22!important;color:#dcebed!important;box-shadow:0 28px 90px #000a!important;overflow:auto!important}
#gd-prazo-dialog::backdrop{background:#02090ccc;backdrop-filter:blur(3px)}
#gd-prazo-dialog .mg-dialog>header{background:#13272d}
.gd-prazo-corpo{display:grid;gap:12px;padding:18px 24px 22px;color:#c9dddf;font-size:13px}
.gd-prazo-corpo p{margin:0}
.gd-prazo-dica{color:#91a8ae;font-size:12px}
.gd-opcoes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.gd-prazo-corpo button{width:auto;margin:0;border:1px solid #36525a;border-radius:8px;padding:11px 8px;background:#1a3037;color:#e3f4f2;font-size:13px;font-weight:800;cursor:pointer}
.gd-prazo-corpo button:hover{border-color:#18dcae}
.gd-prazo-corpo button:disabled{opacity:.5;cursor:wait}
.gd-prazo-corpo .mg-primary{border:0;background:#18aa89;color:#05211c}
.gd-exata{display:grid;gap:6px;color:#a9c0c5;font-size:11px;font-weight:850;text-transform:uppercase}
.gd-exata input{width:100%;box-sizing:border-box;margin:0;border:1px solid #375058;border-radius:8px;padding:10px;background:#091418;color:#edf7f7;font-size:14px;text-transform:none;color-scheme:dark}
.gd-prazo-erro{min-height:1em;color:#ffb7ba;font-weight:700}
@media (max-width:600px){
  .gd-card{padding:12px}
  .gd-grade{grid-template-columns:1fr 1fr}
  .gd-opcoes{grid-template-columns:1fr 1fr}
  #main .gd-acoes button{flex:1 1 auto;justify-content:center}
  #main .gd-acoes .gd-mais{margin-left:0;flex-basis:100%}
}
