/* Check Financeiro: mesma identidade visual do SGP (regras copiadas e restritas a #ecpo-check-fin) */
#ecpo-check-fin{width:min(1400px,96vw);max-width:96vw;max-height:92vh;border:1px solid #c5d4df;border-radius:12px;padding:24px;background:#f0f4f8;color:#23435c;font:13px Montserrat,Arial,sans-serif;box-sizing:border-box}
#ecpo-check-fin::backdrop{background:#132c46aa}
#ecpo-check-fin *{box-sizing:border-box}
/* variables.css aplica fonte do sistema a * com !important; escopo restrito ao SGP */
#ecpo-check-fin,#ecpo-check-fin *{font-family:'Montserrat',Arial,sans-serif!important}
#ecpo-check-fin header{display:flex;justify-content:space-between;align-items:start;gap:16px}
#ecpo-check-fin h2{margin:0;color:#2e526c}#ecpo-check-fin p{line-height:1.6}
#ecpo-check-fin button{font:600 12px Montserrat,Arial,sans-serif;border:1px solid #c3d3df;border-radius:6px;padding:10px 14px;color:#23435c;background:white;cursor:pointer}
#ecpo-check-fin button:disabled{opacity:.5;cursor:default}
#ecpo-check-fin button[data-action=save]{background:#2e526c;color:white}
#ecpo-check-fin .sgp-warning{background:#fff4d4;padding:12px;border-left:4px solid #c5a746;color:#634c0b}
#ecpo-check-fin .sgp-scroll{overflow-x:auto}
#ecpo-check-fin .sgp-status{display:flex;gap:12px;align-items:center}
#ecpo-check-fin .sgp-status p{flex:1;margin:0}
#ecpo-check-fin .sgp-info{background:#e6eff6;padding:12px;border-left:4px solid #2e526c;color:#23435c}
#ecpo-check-fin .sgp-sap{margin:16px 0 0;padding:10px 12px;background:white;border:1px solid #c5d4df;border-radius:6px;font-variant-numeric:tabular-nums}
#ecpo-check-fin .sgp-sap small{color:#5a6f80}
#ecpo-check-fin .sgp-alert{color:#8a5a00;font-weight:600}
#ecpo-check-fin .sgp-conf{margin:12px 0}
#ecpo-check-fin .sgp-conf p{margin:8px 0 0;font-size:12px;color:#5a6f80}
#ecpo-check-fin .sgp-ok{color:#126439;font-weight:600}
#ecpo-check-fin .sgp-muted{color:#8a9aa8}
#ecpo-check-fin table{border-collapse:collapse;width:100%;background:white;font-size:12px}
#ecpo-check-fin caption{text-align:left;padding:12px 0;font-weight:700}
#ecpo-check-fin th,#ecpo-check-fin td{padding:11px 9px;border-bottom:1px solid #dce5ed;text-align:left}
#ecpo-check-fin thead th{background:#2e526c;color:white}
#ecpo-check-fin tbody th{color:#23435c!important;background:#fff;text-transform:none;letter-spacing:normal;white-space:normal;font-size:12px;font-weight:600}
#ecpo-check-fin .sgp-total{font-weight:700;border-bottom:2px solid #c5a746}
#ecpo-check-fin .sgp-number{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
#ecpo-check-fin .sgp-negative{color:#b32132;background:#ffe6e8}
#ecpo-check-fin .sgp-positive{color:#126439;background:#ddf5e6}
#ecpo-check-fin details{background:white;border:1px solid #dce5ed;border-radius:8px;margin:12px 0;overflow:hidden}
#ecpo-check-fin summary{padding:16px;cursor:pointer;font-weight:700}
#ecpo-check-fin summary span{float:right}
#ecpo-check-fin footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;background:#f6f8fb}
#ecpo-check-fin .sgp-editor{padding:18px;background:#edf3f7}
#ecpo-check-fin .sgp-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#ecpo-check-fin label{display:grid;gap:8px}
#ecpo-check-fin input,#ecpo-check-fin select{width:100%;min-width:0;padding:10px;border:1px solid #bccfdd;border-radius:5px;background:white;color:#23435c;font:inherit}
#ecpo-check-fin output{padding:10px}
#ecpo-check-fin .sgp-amounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:16px 0;border-block:1px solid #c5d4df}
#ecpo-check-fin dd{margin:8px 0 0;font-weight:700;font-variant-numeric:tabular-nums}
#ecpo-check-fin .sgp-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
@media(max-width:700px){#ecpo-check-fin{padding:14px}#ecpo-check-fin .sgp-status{flex-direction:column;align-items:stretch}#ecpo-check-fin .sgp-form{grid-template-columns:1fr}#ecpo-check-fin .sgp-amounts{grid-template-columns:1fr 1fr}#ecpo-check-fin summary span{float:none;display:block;margin-top:8px}}
#ecpo-check-fin h3{color:#2e526c;margin:20px 0 8px}
#ecpo-check-fin .cf-top{display:flex;gap:16px;align-items:flex-start}
#ecpo-check-fin .cf-summary{flex:1;background:white;border:1px solid #c5d4df;border-radius:8px;padding:12px 16px}
#ecpo-check-fin .cf-year{width:110px;flex:none}
#ecpo-check-fin .cf-editor{padding:18px;background:#edf3f7}
#ecpo-check-fin .cf-editor-head{display:flex;gap:16px;align-items:end;margin-bottom:12px}
#ecpo-check-fin .cf-editor-head label{width:200px}
#ecpo-check-fin .cf-editor td input{min-width:130px}
#ecpo-check-fin .cf-note{margin:0 0 12px;font-size:12px}
#ecpo-check-fin .cf-tag{font-size:10px;font-weight:600;color:#5a6f80;border:1px solid #c5d4df;border-radius:4px;padding:1px 5px;margin-left:6px}
#ecpo-check-fin .cf-tag.cf-red{color:#b32132;border-color:#e8a3ab}
#ecpo-check-fin details>summary{padding:12px 16px}
@media(max-width:700px){#ecpo-check-fin .cf-top,#ecpo-check-fin .cf-editor-head{flex-direction:column;align-items:stretch}#ecpo-check-fin .cf-year,#ecpo-check-fin .cf-editor-head label{width:auto}}
#ecpo-check-fin .cf-control{margin:12px 0}
#ecpo-check-fin .cf-control table{table-layout:fixed}
#ecpo-check-fin .cf-control thead th:nth-child(even){text-align:right}
#ecpo-check-fin .cf-control-msg{margin:0;padding:10px 12px;border:1px solid #c5d4df;border-top:0;background:white}
#ecpo-check-fin .cf-control-msg.sgp-negative{border-color:#e8a3ab}
#ecpo-check-fin .sgp-ok{color:#126439}
#ecpo-check-fin .cf-curve table{table-layout:fixed}
#ecpo-check-fin .cf-curve thead th:not(:first-child){text-align:right}
