:root{--ink:#25392f;--muted:#7a8880;--line:#e3eae6;--green:#247b61;--green-dark:#195d49;--surface:#fff;--canvas:#f5f7f6}
body{background:var(--canvas);color:var(--ink);font-size:14px;line-height:1.45;letter-spacing:0}
button,input,select,textarea{font-family:inherit;letter-spacing:0}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 13px;border:1px solid #dce5df;border-radius:6px;color:#44584d;font-size:12px;font-weight:600;background:#fff;box-shadow:none;transition:background .15s,border-color .15s}button:hover{background:#f0f5f2;border-color:#c2d2c7}button:disabled{cursor:wait;opacity:.55}button.primary{background:var(--green);border-color:var(--green);color:#fff}button.primary:hover{background:var(--green-dark);border-color:var(--green-dark)}button.danger{background:#fff;border-color:transparent;color:#bf6860}button.danger:hover{background:#fcefeb;border-color:#f1d8d2}button svg{width:16px;height:16px;flex:none;stroke-width:1.8}input,select,textarea{font-size:13px;border-color:#dae4dd;border-radius:5px;color:#354c3e;padding:9px 11px;background:#fff}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid #69ad91;outline-offset:3px}input::placeholder{color:#98a29d}
.app>aside{position:fixed;inset:0 auto 0 0;width:224px;padding:28px 18px;border-right:1px solid var(--line);background:#fff;z-index:30}.app>aside h2{display:flex;align-items:center;gap:11px;margin:0 6px 28px;font-size:18px;color:#233c2e;line-height:1.2}.brand-mark{display:grid;place-items:center;flex:none;width:36px;height:38px;background:#247b61;border-radius:8px;color:#fff}.brand-mark svg{width:21px;height:21px;stroke-width:1.6}.brand-name small{display:block;margin-top:5px;color:#8a968e;font-size:10px;font-weight:500;line-height:1.3}aside nav{display:flex;flex-direction:column;gap:5px;margin:0;overflow:visible;padding:0}aside nav button{display:flex;justify-content:flex-start;gap:12px;flex:none;width:100%;padding:10px 13px;min-height:42px;border:1px solid transparent;border-radius:6px;font-size:13px;font-weight:500;color:#718076;background:transparent;white-space:nowrap}aside nav button svg{width:18px;height:18px;stroke-width:1.7}aside nav button:hover{background:#f7f9f7;color:#344e3d}aside nav button.active{background:#eaf4ee;color:#237856;font-weight:650}.nav-heading{display:block;padding:12px 13px 7px;color:#9ca79f;font-size:9px;font-weight:650;letter-spacing:0}.nav-heading:not(:first-child){margin-top:17px}.account-footer.warning{display:flex;position:absolute;inset:auto 18px 20px;align-items:center;gap:9px;margin:0;padding:14px 4px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;color:#55695a;font-size:11px}.account-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:7px;background:#edf2ef;color:#5e7d68;font-size:10px;font-weight:700}#webIdentity{flex:1;min-width:0;overflow-wrap:anywhere}#webLogout{flex:none;min-height:30px;width:30px;padding:6px;background:transparent;border-color:transparent;color:#8c9990}#webLogout svg{width:16px;height:16px}.nav-close,#navToggle,.nav-backdrop{display:none}
.app>main{margin-left:224px;width:calc(100% - 224px);min-width:0}.app>main>header{height:76px;padding:16px 30px;border-bottom:1px solid var(--line);gap:16px;background:rgba(255,255,255,.98);box-shadow:none}.app>main>header h1{font-size:20px;line-height:1.2;font-weight:650;color:#2a4032}.app>main>header #period{display:block;margin-top:4px;color:#98a399;font-size:11px;text-transform:capitalize}.period{align-items:center;gap:0;padding:2px;border:1px solid var(--line);border-radius:6px;background:#fff}.period select{min-height:30px;padding:5px 8px;border:0;font-size:12px;font-weight:550;background:transparent}.period #month{width:62px}.period #year{width:78px}.period .icon-button{width:30px;min-height:30px;padding:5px;border:0;border-radius:4px;color:#8d9a91}.period .period-previous{border-right:1px solid var(--line);border-radius:0}.period .period-next{border-left:1px solid var(--line);border-radius:0}.page{padding:27px 30px;min-width:0}.page h3{font-size:14px;color:#314b3a;font-weight:650}.dashboard-intro{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:23px}.section-eyebrow{color:#8b9a90;font-size:9px;font-weight:650;margin-bottom:5px}.dashboard-intro h2{margin:0;font-size:24px;line-height:1.3;font-weight:600}.dashboard-intro p{margin:6px 0 0;color:#8a978f;font-size:11px}.dashboard-intro p span{padding:0 9px;color:#c2ccc5}.dashboard-actions{display:flex;align-items:center;gap:12px}.scope-switch{display:flex;gap:2px;padding:3px;border:1px solid #e0e7e1;border-radius:6px;background:#edf1ee}.scope-switch button{min-height:28px;padding:5px 12px;border:1px solid transparent;border-radius:4px;background:transparent;color:#859287;font-size:11px}.scope-switch button[aria-pressed=true]{border-color:#dfe8e1;background:#fff;color:#37634b;box-shadow:0 1px 2px #243c2c08}.secondary{background:white}
.cards.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 26px}.metric-tile{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;min-width:0;min-height:126px;padding:17px 18px;text-align:left;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 2px 3px #15332102}.metric-tile:hover{background:#fff;border-color:#a7c7b4}.metric-tile.selected{border-color:#b4cdbd}.metric-top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#7d8b81;font-size:11px;font-weight:500}.metric-icon{display:grid;place-items:center;width:27px;height:27px;background:#f1f5f3;color:#7c9587;border-radius:6px}.metric-icon svg{width:15px;height:15px}.metric-tile strong{font-size:25px;font-weight:650;line-height:1.3;color:#304b3b;overflow-wrap:anywhere}.metric-detail{margin-top:5px;font-size:10px;font-weight:400;color:#9aa79e}.metric-tile.green .metric-icon{background:#e8f5ee;color:#338a64}.metric-tile.green strong{color:#337e5c}.metric-tile.amber .metric-icon{background:#fcf4df;color:#b49542}.metric-tile.red .metric-icon{background:#fcf0ed;color:#c37970}.metric-tile.red strong{color:#c47a6e}
.dashboard-charts{display:grid;grid-template-columns:1.15fr 1fr;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;margin-bottom:22px}.chart-section{padding:21px 23px 14px;min-width:0}.status-section{border-left:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:start;gap:14px}.section-heading h3{margin:0 0 4px;font-size:13px}.section-heading span{font-size:10px;color:#a0aba3}.section-heading>svg{width:17px;height:17px;color:#aab8ae;stroke-width:1.5}.category-chart-frame{height:182px;margin-top:14px;position:relative;width:100%;min-width:0}.category-chart-frame canvas{max-width:100%}.chart-empty{height:100%;display:grid;place-items:center;color:#a1ada4;font-size:12px}.status-chart-content{display:flex;align-items:center;justify-content:center;gap:26px;margin-top:13px;min-height:182px}.donut-frame{position:relative;width:158px;height:158px;flex:none}.donut-frame canvas{width:100%;height:100%}.donut-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.donut-label strong{font-size:27px;font-weight:600;color:#34553e}.donut-label span{font-size:10px;color:#98a79b;margin-top:2px}.donut-empty{position:absolute;inset:6px;border:14px solid #f0f3f0;border-radius:50%}.chart-legend{display:flex;flex-direction:column;gap:7px;min-width:108px}.chart-legend button{display:grid;grid-template-columns:7px 1fr auto;gap:8px;min-height:22px;padding:4px 0;border:0;border-radius:3px;font-size:10px;text-align:left;background:transparent;color:#7b8b7e;font-weight:400}.chart-legend button:hover{color:#285f40;background:#f2f7f3}.chart-legend b{font-size:11px;color:#506554;font-weight:600;padding-left:12px}.legend-dot{width:6px;height:6px;border-radius:2px}
.upcoming-band{display:flex;align-items:center;gap:22px;padding:14px 0 18px;border-bottom:1px solid var(--line);margin-bottom:26px}.upcoming-heading{display:flex;align-items:center;gap:9px;width:146px;flex:none}.upcoming-heading svg{width:17px;height:17px;color:#84998a;flex:none}.upcoming-heading h3{font-size:11px;line-height:1.6;margin:0;font-weight:550}.upcoming-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;width:100%;min-width:0}.upcoming-item{display:flex;align-items:center;gap:9px;min-width:0;padding-right:16px;border-right:1px solid var(--line)}.upcoming-item:last-child{border:0}.due-day{width:30px;font-size:18px;line-height:1.1;font-weight:550;text-align:center;color:#74927b;flex:none}.due-day small{display:block;margin-top:4px;font-size:8px;font-weight:500;text-transform:uppercase}.upcoming-name{min-width:0;flex:1}.upcoming-name strong{display:block;overflow-wrap:anywhere;font-size:10px;font-weight:500;line-height:1.4}.upcoming-name small{display:block;color:#a1ada4;font-size:9px;margin-top:3px}.upcoming-item>b{font-size:10px;font-weight:550;color:#6b7d70;white-space:nowrap}.quiet-state{color:#98a59c;font-size:11px;grid-column:1/-1}
.monthly-ledger{min-width:0}.ledger-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.ledger-title h3{font-size:15px;margin:0 0 4px}.ledger-title>div>span{font-size:10px;color:#96a299}.ledger-title button{min-height:33px;font-size:11px}.ledger-filters{display:flex;gap:12px;margin-bottom:14px}.account-search,.status-filter{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:5px;padding:0 11px;background:#fff;min-width:0;height:35px}.account-search{width:260px}.account-search svg,.status-filter svg{width:14px;height:14px;flex:none;color:#9daaa1}.account-search input,.status-filter select{min-width:0;width:100%;padding:7px 0;font-size:11px;border:0;box-shadow:none;background:transparent}.account-search input:focus-visible,.status-filter select:focus-visible{outline:0}.account-search:focus-within,.status-filter:focus-within{border-color:#79ab8e;box-shadow:0 0 0 2px #79ab8e1a}.status-filter{width:178px}.table-scroll{max-width:100%;overflow:auto;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);outline-offset:3px}.page .table-scroll table{border-collapse:collapse;width:100%;min-width:850px;background:#fff}.page table th{padding:12px 13px;background:#f8faf8;border-bottom:1px solid var(--line);color:#93a096;font-size:9px;font-weight:600;text-transform:uppercase;text-align:left;white-space:nowrap}.page table td{padding:12px 13px;border-top:1px solid #edf1ee;font-size:12px;color:#64766a;white-space:nowrap}.page table td b{font-weight:550;min-width:130px}.page .payments-table{min-width:1010px}.payments-table .account-cell{min-width:180px;max-width:260px}.account-cell strong{display:block;color:#405b48;font-size:11px;font-weight:600;white-space:normal;overflow-wrap:anywhere}.account-cell small{display:block;font-size:9px;font-weight:400;color:#94a197;margin-top:4px;white-space:normal}.account-cell small span{padding:0 5px}.payments-table .due-cell{font-size:11px;color:#809084}.page td input,.page td select{min-width:100px;width:100%;border:1px solid transparent;background:transparent;padding:7px 6px;min-height:31px;font-size:11px;color:#5b7563}.page td input:hover,.page td select:hover{border-color:#d8e4dc;background:#fff}.page td input:focus-visible,.page td select:focus-visible{border-color:#92bca1;background:#fff;outline-offset:1px}.payments-table .payment{width:129px;min-width:129px}.payments-table .value{width:94px;min-width:94px}.payments-table .method{width:125px;min-width:125px}.payments-table .bank{width:132px;min-width:132px}.row-actions{white-space:nowrap}.row-actions button+button{margin-left:3px}button.icon-action{font-size:0;width:29px;height:29px;min-height:29px;padding:6px;border-radius:5px;border-color:transparent;background:transparent;color:#7ba68b;white-space:nowrap;overflow:hidden}button.icon-action svg{width:14px;height:14px}button.icon-action:hover{background:#deeee4;color:#397951}button.icon-action.danger{color:#bd9e96}button.icon-action.danger:hover{background:#f7e6e0;color:#af655c}button.icon-action:disabled{background:#e6eee8}.page table tr.paid{background:#f5faf6}.page table tr.overdue{background:#fff8f6}.page table tr.soon{background:#fffdf5}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:4px;font-size:9px;font-weight:550;line-height:1.3;white-space:nowrap}.badge::before{content:'';width:4px;height:4px;background:currentColor;border-radius:50%;flex:none}.badge.Pago{background:#e7f4eb;color:#55946a}.badge.Vencido{background:#f9eae5;color:#c28b7a}.badge.Proximo{background:#faf1d9;color:#b69b55}.badge.Vencer{background:#eaf2f6;color:#7898b0}.scope-heading td{padding:8px 13px!important;background:#f8faf8!important;border-top:1px solid var(--line)!important}.scope-heading td>span{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:600;color:#7b9282}.scope-heading svg{width:12px;height:12px;stroke-width:1.7}.scope-heading small{margin-left:10px;font-size:9px;color:#adb8af}.empty-row{text-align:center;padding:34px!important;color:#a1ada4!important}
.page .panel{border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible;margin-bottom:26px}.panel-head{padding:0 0 16px;border-bottom:0;gap:16px}.panel-head h3{margin:0;font-size:17px;font-weight:600}.panel-head small,.panel-head>span{font-size:11px;color:#97a399}.panel-head .tools{align-items:center}.tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tools label{font-size:11px;color:#8a988e}.path{background:#fff}.page>h2,.web-users h2{font-size:19px;font-weight:600}.web-users{margin-top:30px;border-top:1px solid var(--line);padding-top:20px}.web-user{font-size:12px}.web-users h3{font-size:13px}.web-users .tools{align-items:end;gap:12px}.web-users .tools label{display:grid;gap:6px}#vacations>.panel:not(:first-child){padding:20px;background:white;border:1px solid var(--line);border-radius:8px}.read-only .save,.read-only .remove,.read-only #dashboardNew{display:none}.read-only .panel:has(#includeAccount){display:none}.read-only .payments-table input,.read-only .payments-table select{pointer-events:none}.modal{border-radius:8px;border:1px solid var(--line);box-shadow:0 18px 60px #193d2920}.overlay{background:#25392f55;backdrop-filter:blur(3px)}.modal h2{font-size:20px}.modal label{font-size:12px;color:#6e8374}.modal input,.modal select,.modal textarea{font-size:14px}.actions{gap:8px}#toast{padding:12px 17px;background:#294a36;color:#fff;border-radius:7px;font-size:12px;max-width:440px;box-shadow:0 6px 25px #203d2820}
.login-page{background:#f3f6f4;color:var(--ink)}.login-main{max-width:380px}.login-brand{font-size:25px;color:#275c41;font-weight:650}.login-brand span{font-size:12px;color:#92a196}.login-form{border-color:var(--line);box-shadow:0 6px 28px #24472d04;padding:30px}.login-form h1{font-size:21px;font-weight:600}.login-form label{font-size:12px;color:#6a8071}.login-form input{font-size:16px;border-color:#dfe7e1}.login-form button{background:var(--green);font-size:13px;border-radius:5px}.login-form button:hover{background:var(--green-dark)}.login-error{font-size:12px;color:#bc7767}
@media(max-width:1180px){.app>aside{width:204px;padding-left:14px;padding-right:14px}.app>main{margin-left:204px;width:calc(100% - 204px)}.page{padding:24px}.app>main>header{padding-left:24px;padding-right:24px}.metric-tile{padding:15px 14px}.metric-tile strong{font-size:23px}.chart-section{padding-left:18px;padding-right:18px}.status-chart-content{gap:16px}.donut-frame{width:140px;height:140px}.upcoming-heading{width:128px}.upcoming-items{gap:12px}.upcoming-item{padding-right:10px;gap:7px}.upcoming-item>b{font-size:9px}}
@media(max-width:980px){.metric-grid.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-tile{min-height:118px}.dashboard-charts{grid-template-columns:1fr}.status-section{border-left:0;border-top:1px solid var(--line)}.status-chart-content{justify-content:start;gap:32px;padding-left:16px}.chart-legend{min-width:145px}.upcoming-band{align-items:start;flex-direction:column;gap:13px}.upcoming-heading{width:auto}.upcoming-items{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-intro{align-items:start;flex-direction:column;gap:14px}.dashboard-actions{width:100%;justify-content:space-between}}
@media(max-width:720px){.app>aside{position:fixed;inset:0 auto 0 0;width:260px;height:100dvh;padding:26px 18px;transform:translateX(-100%);transition:transform .18s;z-index:60;border-right:1px solid var(--line)}.app>aside h2{margin:0 6px 26px}.app>aside nav{display:flex;flex-direction:column;overflow:visible;padding:0;gap:5px}.app>aside nav button{padding:10px 13px}.nav-open aside{transform:translateX(0)}.nav-open{overflow:hidden}.nav-backdrop{position:fixed;inset:0;z-index:50;min-height:100dvh;width:100%;border:0;border-radius:0;background:#21382b55;backdrop-filter:blur(2px)}.nav-open .nav-backdrop{display:block}.nav-close{display:inline-flex;position:absolute;right:14px;top:27px;width:28px;min-height:28px;padding:5px;border:0;background:transparent;color:#97a69a}.nav-close svg{width:16px;height:16px}.account-footer.warning{position:absolute;inset:auto 18px 20px;display:flex;padding-top:14px;background:transparent}.app>main{margin-left:0;width:100%;min-width:0}.app>main>header{display:flex;flex-wrap:wrap;justify-content:start;align-items:center;gap:12px;height:auto;padding:15px 18px;position:relative;min-height:0}#navToggle{display:inline-flex;width:32px;min-height:32px;padding:6px;border:0;background:transparent;color:#72917c}.app>main>header>div:not(.period){flex:1}.app>main>header h1{font-size:18px}.app>main>header #period{font-size:10px}.period{margin-left:auto}.period #month{width:48px;padding:5px}.period #year{width:67px;padding:5px}.period .icon-button{width:24px}.page{padding:22px 18px}.dashboard-intro{gap:17px;margin-bottom:20px}.dashboard-intro h2{font-size:23px}.dashboard-intro p{font-size:10px}.section-eyebrow{font-size:8px}.dashboard-actions{gap:8px}.scope-switch button{padding:5px 12px}.dashboard-actions>.secondary{min-height:34px;padding:7px 10px;font-size:11px}.metric-grid.cards{gap:10px;margin-bottom:22px}.metric-tile{min-height:115px;padding:13px 12px}.metric-top{font-size:10px}.metric-icon{width:23px;height:23px}.metric-icon svg{width:13px;height:13px}.metric-tile strong{font-size:22px}.metric-detail{font-size:9px}.dashboard-charts{margin-bottom:20px}.chart-section{padding:17px 16px 12px}.category-chart-frame{height:176px}.status-chart-content{padding-left:0;justify-content:center;gap:25px;min-height:174px}.donut-frame{width:144px;height:144px}.chart-legend{min-width:115px}.section-heading h3{font-size:12px}.upcoming-band{gap:14px;margin-bottom:22px;padding-bottom:20px}.upcoming-items{display:flex;flex-direction:column;gap:12px}.upcoming-item{padding:0;border:0;gap:12px}.upcoming-name strong{font-size:11px}.upcoming-item>b{font-size:11px}.upcoming-heading h3{font-size:12px}.upcoming-heading svg{width:15px;height:15px}.due-day{font-size:18px}.ledger-title{align-items:start;gap:10px}.ledger-title h3{font-size:14px}.ledger-title button{padding:6px 8px;font-size:10px;min-height:31px}.ledger-title button svg{width:13px;height:13px}.ledger-filters{gap:8px}.account-search{width:auto;flex:1;min-width:0}.status-filter{width:130px;flex:none}.status-filter select{font-size:10px}.status-filter svg{display:none}.account-search input{font-size:10px}.panel-head{align-items:start;gap:13px;flex-wrap:wrap}.panel-head h3{font-size:17px}.panel-head .tools{width:100%;min-width:0}.tools{gap:10px}.tools>label{max-width:100%}.tools input,.tools select{max-width:100%;min-width:0}.modal{width:min(560px,calc(100% - 28px));padding:20px;max-height:90dvh;overflow:auto}.web-users .tools{display:grid;grid-template-columns:minmax(0,1fr)}.web-user{flex-wrap:wrap;align-items:start}#toast{left:18px;right:18px;bottom:18px;max-width:none}#vacations>.panel:not(:first-child){padding:16px}.login-page{padding:24px}.login-form{padding:26px}}
@media(max-width:390px){.app>main>header .period{flex:1;justify-content:center;margin-left:44px}.metric-tile strong{font-size:20px}.status-chart-content{gap:16px}.donut-frame{width:130px;height:130px}.metric-icon{width:21px;height:21px}.metric-top{gap:5px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.metric-top,.metric-detail,.section-heading span,.dashboard-intro p,.ledger-title>div>span,.account-cell small,.page table th,.scope-heading small{color:#637568}.metric-detail,.section-heading span{font-size:11px}.account-cell strong{font-size:12px}.account-cell small,.page table th{font-size:10px}.chart-legend button{font-size:11px;color:#637568}.nav-heading{font-size:10px;color:#65776a}.badge.Pago{color:#35764d}.badge.Vencido{color:#a85943}.badge.Proximo{color:#8a6b24}.badge.Vencer{color:#426f8e}button.icon-action{color:#4e8865}button.icon-action.danger{color:#a46e62}.app>main>header #period{text-transform:none;color:#6b7d70}.period .icon-button{color:#6c8171}
