:root{font-family:system-ui,sans-serif;color:#102e2a;background:#edf3ee;color-scheme:light}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}main{max-width:960px;margin:auto;padding:24px}
header,.toolbar,.linha{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
h1{font-size:clamp(1.65rem,4vw,2.5rem);letter-spacing:-.045em}h2{margin-top:0}label{display:grid;gap:6px}
input,button,select{font:inherit;padding:10px 13px;border-radius:9px;border:1px solid #789487;color:inherit;background:white}
button{cursor:pointer;min-height:44px;font-weight:600}button[aria-pressed=true],form button{background:#164b3e;color:white}
form,.linha,#resumo{background:white;padding:18px;border-radius:12px;border:1px solid #cbdbd1}form{max-width:430px;display:grid;gap:16px}
nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}#resumo:empty{display:none}.linha{margin-top:8px;align-items:start}
small{display:block;color:#45655a;margin-top:5px}#status{min-height:1.4em}strong{font-variant-numeric:tabular-nums}
.badge{display:inline-block;padding:4px 8px;border-radius:6px;font-weight:650}
.green{background:#d3f4df;color:#12542f}.red{background:#ffe0de;color:#8e2320}.yellow{background:#fff0ba;color:#654e00}.neutral{background:#edf2ef;color:#344c42}
table{width:100%;border-collapse:collapse;background:white;margin-top:12px}
td,th{padding:10px 8px;text-align:left;border-bottom:1px solid #cbdbd1}
td:first-child{overflow-wrap:anywhere}td:nth-child(n+2),th:nth-child(n+2){text-align:right;white-space:nowrap}
td button{color:#164b3e;padding:6px 8px}.detalhe{padding:9px;background:#edf3ee;margin:4px 0}
#resumo select{width:max-content;max-width:100%}
@media(max-width:480px){main{padding:14px}td,th{padding:8px 5px;font-size:.9rem}td button{font-size:.85rem}}
.dia-bancario{background:white;border:1px solid #cbdbd1;border-radius:12px;padding:16px;margin-top:12px}
.dia-bancario h3{margin:0 0 8px}
.movimento{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e2ebe5}
.movimento strong{white-space:nowrap}.credito{color:#14539a}.debito{color:#9d2b26}
.saldo-diario{font-weight:700;margin:12px 0 0}
#resumo label+label{margin-top:14px}
#resumo input[type=file]{max-width:100%}
