/* Formulários e registros integrados à identidade AUDIN, inclusive em telas estreitas. */
.gestao-main{width:100%;max-width:1180px;margin:auto;padding:24px 20px 100px}
.gestao-heading{align-items:center}
.gestao-heading h1{color:#082a56}
.gestao-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.gestao-actions button,.gestao-filters button{min-height:40px;padding:10px 14px;border-radius:10px;font-weight:700}
.gestao-actions .secondary,.gestao-filters button{border:1px solid #aebfdb;background:#fff;color:#204a85}
.gestao-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,210px) auto;align-items:end;gap:11px;background:#fff;border:1px solid #dce6f3;border-radius:13px;padding:13px}
.gestao-filters label{display:grid;min-width:0;gap:5px;color:#26456c;font-size:.82rem;font-weight:700}
.gestao-filters :is(input,select){width:100%;min-width:0;min-height:40px;border:1px solid #b7c8df;border-radius:9px;padding:8px 10px;background:#fff;color:#173764}
.gestao-count{font-size:.83rem;color:#60789d}
.gestao-records{display:grid;gap:11px}
.gestao-card{border:1px solid #d6e3f1;background:#fff;border-radius:13px;padding:16px 18px;min-width:0;box-shadow:0 4px 15px #1639660b}
.gestao-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.gestao-card-head h2{font-size:1rem;line-height:1.38;margin:2px 0 8px;overflow-wrap:anywhere;color:#163b72}
.gestao-card-head small{font-size:.74rem;color:#637b9e}
.gestao-card-actions{display:flex;gap:6px;flex:none}
.gestao-card-actions button{min-height:33px;border:1px solid #c2d0e3;border-radius:8px;background:#f6f9ff;color:#164777;font-size:.8rem;padding:6px 10px}
.gestao-card-actions .delete{color:#aa3644;border-color:#efcbd0}
.gestao-card-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 16px;margin:6px 0 0}
.gestao-field-value{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
.gestao-field-value dt{color:#6b7d96;font-size:.74rem;font-weight:750;margin-bottom:3px}
.gestao-field-value dd{margin:0;font-size:.84rem;color:#233d63;line-height:1.4;overflow-wrap:anywhere}
.gestao-field-value.wide{grid-column:1/-1}
.gestao-field-value a{color:#1763aa;word-break:break-all}
.gestao-chip{display:inline-block;border-radius:999px;padding:4px 10px;background:#e6f0ff;color:#20548c;font-size:.78rem;font-weight:750}
.gestao-empty{border:1px dashed #c5d7ee;border-radius:13px;background:#fff;padding:25px;text-align:center;color:#5e7597}
.gestao-dialog{position:fixed;inset:0;margin:auto;width:min(840px,calc(100vw - 24px));max-height:calc(100dvh - 28px);overflow:auto;color:#14365d}
.gestao-dialog::backdrop{background:#061c3abe}
.gestao-dialog form{padding:22px}
.gestao-dialog .dialog-head h2{margin-bottom:14px}
.gestao-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gestao-fields label{min-width:0;display:grid;gap:6px;font-size:.83rem;font-weight:700;color:#24436c}
.gestao-fields label.wide{grid-column:1/-1}
.gestao-fields :is(input,select,textarea){width:100%;min-width:0;padding:10px;border:1px solid #b5c7df;border-radius:9px;background:#fff;color:#19365f;font:inherit}
.gestao-fields textarea{resize:vertical;min-height:76px}
#formNotice{color:#ab2434;font-size:.85rem;white-space:pre-wrap}
html[data-theme="dark"] .gestao-heading h1{color:#f2f8ff}
html[data-theme="dark"] :is(.gestao-filters,.gestao-card,.gestao-empty,.gestao-dialog){background:#1e3048;border-color:#465f7f;color:#f3f8ff}
html[data-theme="dark"] :is(.gestao-card-head h2,.gestao-field-value dd,.gestao-filters label,.gestao-fields label){color:#eff7ff}
html[data-theme="dark"] .gestao-count,html[data-theme="dark"] .gestao-field-value dt{color:#afc5e3}
html[data-theme="dark"] .gestao-dialog :is(input,select,textarea){background:#15243b;color:#fff;border-color:#62799b}
@media(max-width:760px){.gestao-card-details{grid-template-columns:repeat(2,minmax(0,1fr))}.gestao-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.gestao-filters label:first-child{grid-column:1/-1}.gestao-filters button{grid-column:1/-1}.gestao-heading{align-items:stretch}}
@media(max-width:530px){.gestao-main{padding-inline:12px}.gestao-actions{display:grid;grid-template-columns:1fr 1fr}.gestao-actions button{min-width:0;font-size:.77rem}.gestao-card-head{display:block}.gestao-card-actions{margin:8px 0}.gestao-card-details,.gestao-fields,.gestao-filters{grid-template-columns:minmax(0,1fr)}.gestao-fields label.wide,.gestao-filters label:first-child,.gestao-filters button{grid-column:1}.gestao-dialog form{padding:16px}.gestao-field-value.wide{grid-column:1}}


/* MONITORAMENTOS: somente objeto, situação, responsável e prazo ficam visíveis.
   Os demais campos são consultados ao abrir um registro, sem perda de informações. */
body.gestao-monitoramentos .gestao-records{gap:8px}
body.gestao-monitoramentos .gestao-card.monitor-card{
 padding:0;overflow:hidden;border-radius:12px;background:#fff;
}
body.gestao-monitoramentos .monitor-fold{min-width:0}
body.gestao-monitoramentos .monitor-summary{
 list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto 18px;
 align-items:center;gap:13px;min-height:68px;padding:12px 16px;
 background:transparent;color:#133b70;cursor:pointer;
}
body.gestao-monitoramentos .monitor-summary::-webkit-details-marker{display:none}
body.gestao-monitoramentos .monitor-summary::marker{content:''}
body.gestao-monitoramentos .monitor-summary:hover{background:#f4f8fe}
body.gestao-monitoramentos .monitor-summary:focus-visible{outline:2px solid #368be3;outline-offset:-4px}
body.gestao-monitoramentos .monitor-main{min-width:0;display:flex;flex-direction:column;gap:5px}
body.gestao-monitoramentos .monitor-title{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 line-clamp:2;overflow:hidden;overflow-wrap:anywhere;
 font-size:.9rem;font-weight:760;line-height:1.35;color:#11376c;
}
body.gestao-monitoramentos .monitor-quickfacts{display:flex;flex-wrap:wrap;gap:4px 17px;min-width:0}
body.gestao-monitoramentos .monitor-fact{
 color:#667b98;font-size:.77rem;line-height:1.4;overflow-wrap:anywhere;
}
body.gestao-monitoramentos .monitor-muted{color:#8594a8}
body.gestao-monitoramentos .monitor-late-text{color:#a73738;font-weight:720}
body.gestao-monitoramentos .monitor-statuses{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:220px}
body.gestao-monitoramentos .monitor-status,body.gestao-monitoramentos .monitor-overdue{
 display:inline-flex;align-items:center;justify-content:center;
 border-radius:999px;font-size:.73rem;font-weight:730;
 padding:5px 9px;line-height:1.2;white-space:normal;text-align:center;
}
body.gestao-monitoramentos .monitor-status-pending{background:#edf2fa;color:#526985}
body.gestao-monitoramentos .monitor-status-ongoing{background:#e7f1ff;color:#15599d}
body.gestao-monitoramentos .monitor-status-partial{background:#fff0d8;color:#91610b}
body.gestao-monitoramentos .monitor-status-done{background:#def5e8;color:#196841}
body.gestao-monitoramentos .monitor-status-late,
body.gestao-monitoramentos .monitor-overdue{background:#fee7e9;color:#a52e3c}
body.gestao-monitoramentos .monitor-chevron{
 display:grid;place-items:center;font-size:21px;font-weight:600;
 color:#376eab;transition:transform .15s ease;
}
body.gestao-monitoramentos .monitor-fold[open] .monitor-chevron{transform:rotate(180deg)}
body.gestao-monitoramentos .monitor-fold[open] .monitor-summary{background:#f5f9ff}
body.gestao-monitoramentos .monitor-expanded{
 border-top:1px solid #e3ebf5;padding:15px 17px 16px;background:#fff;
}
body.gestao-monitoramentos .monitor-expanded-title{font-size:.82rem;font-weight:780;color:#265083;margin:0 0 12px}
body.gestao-monitoramentos .monitor-expanded-fields{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 20px;margin:0;
}
body.gestao-monitoramentos .monitor-expanded-fields .gestao-field-value{min-width:0}
body.gestao-monitoramentos .monitor-expanded-fields .gestao-field-value.wide{grid-column:1/-1}
body.gestao-monitoramentos .monitor-expanded-fields dd{overflow-wrap:anywhere;white-space:pre-wrap}
body.gestao-monitoramentos .monitor-actions{justify-content:flex-end;flex-wrap:wrap;border-top:1px solid #e9eef6;margin-top:15px;padding-top:12px}
body.gestao-monitoramentos .monitor-actions button{padding:7px 11px}
body.gestao-monitoramentos .monitor-empty-fields{color:#7284a0;font-size:.82rem}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-summary{color:#ecf6ff}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-summary:hover,
html[data-theme="dark"] body.gestao-monitoramentos .monitor-fold[open] .monitor-summary{background:#2a4564}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-title,
html[data-theme="dark"] body.gestao-monitoramentos .monitor-expanded-title{color:#ecf6ff}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-fact{color:#c4d5ea}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-late-text{color:#ffb4b7}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-expanded{background:#203957;border-color:#47617f}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-actions{border-color:#47617f}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-status-pending{background:#3c5270;color:#f0f5fb}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-status-ongoing{background:#244f7d;color:#d3ecff}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-status-partial{background:#594a29;color:#fff0c2}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-status-done{background:#255b44;color:#dcf6e8}
html[data-theme="dark"] body.gestao-monitoramentos .monitor-status-late,
html[data-theme="dark"] body.gestao-monitoramentos .monitor-overdue{background:#68333a;color:#ffced4}
@media(max-width:760px){
 body.gestao-monitoramentos .monitor-expanded-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 body.gestao-monitoramentos .monitor-summary{
  grid-template-columns:minmax(0,1fr) 19px;gap:8px;min-height:0;padding:11px 12px;
 }
 body.gestao-monitoramentos .monitor-main{grid-column:1;grid-row:1}
 body.gestao-monitoramentos .monitor-statuses{grid-column:1;grid-row:2;justify-content:flex-start;max-width:100%}
 body.gestao-monitoramentos .monitor-chevron{grid-column:2;grid-row:1/span 2}
 body.gestao-monitoramentos .monitor-title{font-size:.86rem}
 body.gestao-monitoramentos .monitor-quickfacts{gap:2px 10px}
 body.gestao-monitoramentos .monitor-expanded{padding:12px}
 body.gestao-monitoramentos .monitor-expanded-fields{grid-template-columns:minmax(0,1fr);gap:11px}
 body.gestao-monitoramentos .monitor-expanded-fields .gestao-field-value.wide{grid-column:1}
}
