/* Shaddai V1.31 - fechamento operacional integrado ao Caixa Diario. */
.cash-closing-v131{display:grid;gap:16px;border-top:4px solid #174f39;overflow:hidden}
.cash-closing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.cash-closing-head h2{margin:2px 0 4px;font-size:23px;color:#12241c}
.cash-closing-head p{margin:0;color:#64716b;font-size:13px}
.cash-closing-kicker{display:block;color:#167344;font-size:10px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.cash-closing-badge{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 12px;border-radius:999px;font-size:11px;font-weight:950;white-space:nowrap}
.cash-closing-badge.open{background:#fff3d7;color:#7a5200;border:1px solid #ead096}
.cash-closing-badge.closed{background:#e8f6ed;color:#12633d;border:1px solid #b9ddc6}
.cash-closing-toolbar{display:grid;grid-template-columns:minmax(170px,220px) 1fr auto;gap:12px;align-items:end;padding:13px;border:1px solid #d7e1db;border-radius:12px;background:#f7faf8}
.cash-closing-toolbar .field{margin:0}
.cash-closing-selection{display:flex;gap:8px;flex-wrap:wrap}
.cash-closing-selection .ghost,.cash-closing-refresh{min-height:40px}
.cash-closing-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.cash-closing-card{display:grid;gap:4px;min-height:96px;padding:13px;border:1px solid #dfe5e1;border-top:4px solid #789087;border-radius:11px;background:#fff}
.cash-closing-card span{font-size:10px;font-weight:950;letter-spacing:.04em;text-transform:uppercase;color:#56645e}
.cash-closing-card strong{font-size:20px;line-height:1.05;color:#17231e}
.cash-closing-card small{font-size:10.5px;line-height:1.25;color:#728078}
.cash-closing-card.buy{border-top-color:#b67b00}.cash-closing-card.expense{border-top-color:#b66a10}.cash-closing-card.sale{border-top-color:#138044}.cash-closing-card.net{border-top-color:#236baa}.cash-closing-card.pending{border-top-color:#d89b23}.cash-closing-card.count{border-top-color:#637970}
.cash-closing-card.net.negative strong,.cash-closing-accounts .negative,.cash-closing-history .negative{color:#a13c32}
.cash-closing-card.net.positive strong,.cash-closing-accounts .positive,.cash-closing-history .positive{color:#11703e}
.cash-closing-accounts{display:flex;align-items:stretch;gap:8px;overflow-x:auto;padding:2px 0 4px}
.cash-closing-accounts>p{margin:0;color:#77827d;font-size:12px}
.cash-closing-account-title{align-self:center;min-width:max-content;font-size:10px;font-weight:950;text-transform:uppercase;color:#63716b}
.cash-closing-accounts article{display:grid;grid-template-columns:minmax(130px,1fr) auto;grid-template-areas:"name value" "detail value";gap:2px 12px;min-width:265px;padding:10px 12px;border:1px solid #dce5df;border-radius:10px;background:#f9fbfa}
.cash-closing-accounts article>span{grid-area:name;font-size:11px;font-weight:900}.cash-closing-accounts article>small{grid-area:detail;font-size:9.5px;color:#6c7872}.cash-closing-accounts article>strong{grid-area:value;align-self:center;font-size:15px}
.cash-closing-table{border:1px solid #dbe3de;border-radius:11px;overflow-x:auto}
.cash-closing-table table{width:100%;min-width:900px;table-layout:fixed}
.cash-closing-table th,.cash-closing-table td{padding:9px 8px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.cash-closing-table th{font-size:10px}.cash-closing-table td{font-size:11px}
.cash-closing-table th:nth-child(1),.cash-closing-table td:nth-child(1){width:6%;text-align:center}
.cash-closing-table th:nth-child(2),.cash-closing-table td:nth-child(2){width:11%}
.cash-closing-table th:nth-child(3),.cash-closing-table td:nth-child(3){width:24%}
.cash-closing-table th:nth-child(4),.cash-closing-table td:nth-child(4){width:18%}
.cash-closing-table th:nth-child(5),.cash-closing-table td:nth-child(5){width:13%}
.cash-closing-table th:nth-child(6),.cash-closing-table td:nth-child(6){width:15%}
.cash-closing-table th:nth-child(7),.cash-closing-table td:nth-child(7){width:13%;text-align:right}
.cash-closing-table td>strong{display:block}.cash-closing-table td>small{display:block;margin-top:3px;color:#75817b;line-height:1.2}
.cash-closing-table input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:#14713f}
.cash-closing-type{display:inline-flex;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:900}.cash-closing-type.buy{background:#fff2d5;color:#7b5300}.cash-closing-type.expense{background:#fff0dc;color:#8a4a00}.cash-closing-type.sale{background:#e5f5ea;color:#12663d}
.stock-status.not-applicable{background:#eef2f0;color:#5d6a64}
.cash-closing-divergent{background:#fff6f2}.cash-closing-divergent td{opacity:.8}.cash-closing-empty{padding:20px!important;text-align:center!important;color:#6e7b75}
.cash-closing-final{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(260px,1.35fr) minmax(230px,1.05fr) minmax(160px,.75fr) minmax(190px,.9fr);gap:12px;align-items:end;padding:14px;border:1px solid #cfded5;border-radius:12px;background:#f5faf7}
.cash-closing-final .field{margin:0}.cash-closing-final .field small{font-size:9.5px;color:#68756e}
.cash-closing-stock{display:flex;align-items:center;gap:10px;min-height:64px;padding:9px 11px;border:1px solid #d2ddd6;border-radius:9px;background:#fff;cursor:pointer}
.cash-closing-stock input{width:18px;height:18px;min-height:18px;accent-color:#14713f}.cash-closing-stock span{display:grid;gap:3px}.cash-closing-stock strong{font-size:11px}.cash-closing-stock small{font-size:9.5px;line-height:1.2;color:#6c7872}
.cash-closing-difference{display:grid;gap:2px;min-height:64px;padding:9px 11px;border-radius:9px;border:1px solid #d6dfda;background:#fff}.cash-closing-difference span{font-size:9.5px;font-weight:950;text-transform:uppercase;color:#637169}.cash-closing-difference strong{font-size:18px}.cash-closing-difference small{font-size:9.5px}.cash-closing-difference.ok{background:#ecf8f0;color:#12663d}.cash-closing-difference.alert{background:#fff1ed;color:#98382e;border-color:#e7b6ae}
.cash-closing-submit{min-height:48px;font-size:14px;line-height:1.15;white-space:normal}.cash-closing-submit:disabled{opacity:.55;cursor:not-allowed}
.cash-closing-message{grid-column:1/-1;min-height:16px;margin:0;font-size:11px;font-weight:800}.cash-closing-message.success{color:#12663d}.cash-closing-message.error{color:#a0372f}.cash-closing-message.warning{color:#885d0a}
.cash-closing-history{display:grid;gap:9px;padding-top:5px;border-top:1px solid #e0e6e2}.cash-closing-history-head h3{margin:0;font-size:16px}.cash-closing-history-head p{margin:2px 0 0;font-size:11px;color:#6d7873}.cash-closing-history table{min-width:820px}.cash-closing-history th,.cash-closing-history td{padding:8px 7px;font-size:10.5px}.cash-closing-history code{font:800 10px/1.2 system-ui,sans-serif;color:#385449;overflow-wrap:anywhere}
@media(max-width:1280px){.cash-closing-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.cash-closing-final{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-closing-stock{grid-column:1/-1}.cash-closing-submit{grid-column:2}}
@media(max-width:800px){.cash-closing-head{display:grid}.cash-closing-badge{justify-self:start}.cash-closing-toolbar{grid-template-columns:1fr}.cash-closing-selection{display:grid;grid-template-columns:1fr 1fr}.cash-closing-summary{grid-template-columns:1fr 1fr}.cash-closing-card.count{grid-column:1/-1}.cash-closing-final{grid-template-columns:1fr}.cash-closing-stock,.cash-closing-submit{grid-column:auto}.cash-closing-table table{min-width:760px}.cash-closing-history table{min-width:720px}}
@media(max-width:480px){.cash-closing-summary{grid-template-columns:1fr}.cash-closing-card.count{grid-column:auto}.cash-closing-selection{grid-template-columns:1fr}.cash-closing-v131{padding:13px!important}.cash-closing-head h2{font-size:21px}}
