:root{--ink:#173867;--muted:#61728b;--blue:#337fe8;--mint:#5fcfbe;--line:#e4eaf2;--page:#f5f7fb;--bs-primary:#337fe8;--bs-body-color:#173867;--bs-body-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--bs-border-color:#e4eaf2;--bs-secondary-color:#61728b}
body{margin:0;background:var(--page);font-size:14px;line-height:1.6}a{color:#286bc6;text-underline-offset:4px}.icon{flex-shrink:0;vertical-align:-.15em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app-shell{display:flex;min-height:100dvh}.sidebar{--bs-offcanvas-width:260px;width:260px!important;flex-shrink:0;background:#fff!important;border-right:1px solid var(--line)!important}.sidebar-content{display:flex!important;flex-direction:column;gap:0;padding:30px 18px 18px!important;min-height:100dvh}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-size:21px;letter-spacing:-.7px;white-space:nowrap}.brand small{display:block;font-size:8px;font-weight:700;letter-spacing:1.6px;color:var(--muted);margin-top:1px}.brand-mark{display:grid;place-items:center;width:42px;height:45px;border-radius:13px;background:var(--ink);color:#fff}.brand-mark .icon{width:25px;height:25px}.household{display:flex;gap:10px;align-items:center;background:#f6f8fc;border:1px solid #edf0f6;padding:13px;border-radius:10px;margin:32px 0 28px}.household-icon{color:#5987ba}.household strong,.household small{display:block;font-size:12px}.household small{font-size:11px;color:var(--muted)}.nav-label,.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#6d7f97;margin-bottom:10px}.nav-label{padding-left:12px}.nav-link{display:flex;align-items:center;gap:12px;color:#65748a;font-size:13px;font-weight:500;border-radius:8px;padding:12px;min-height:46px}.nav-link:hover{background:#f5f8fc;color:var(--ink)}.nav-link.active{background:#eef5ff;color:#266ed0;font-weight:600}.nav-dot{width:5px;height:5px;background:#8da5c6;border-radius:50%;margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:42px}.sidebar-note{display:flex;gap:12px;color:#8090a6;padding:20px 12px;border-top:1px solid var(--line);font-size:11px;line-height:1.8}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:16px}.profile>div{min-width:0;flex:1}.profile strong{display:block;font-size:12px;overflow-wrap:anywhere}.profile small{font-size:10px;color:var(--muted)}.avatar{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e8f0fd;color:#3c6dac;font-weight:600;flex-shrink:0}.profile form{margin-left:auto}.icon-button{border:0;padding:10px;min-width:44px;min-height:44px;color:var(--muted)}.workspace{min-width:0;flex:1}.topbar{height:72px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 38px}.topbar-caption{font-size:12px;color:#7c899a}.local-badge{display:flex;align-items:center;gap:7px;font-size:10px;color:#657d77;background:#f3f9f6;border:1px solid #e4f1e9;padding:5px 10px;border-radius:20px}.local-badge>span{width:5px;height:5px;border-radius:50%;background:#5da87f}.main-content{padding:34px 38px 30px;max-width:1600px;margin:0 auto}.heading-row{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.page-heading{margin-bottom:26px}.heading-row .page-heading{margin-bottom:0}.page-heading h1{font-size:clamp(24px,2.25vw,32px);font-weight:650;letter-spacing:-1px;margin-bottom:7px;line-height:1.25}.page-heading>p:last-child{color:var(--muted);margin:0;font-size:13px}.period-label{border:1px solid var(--line);border-radius:8px;padding:10px 13px;background:white;font-size:12px;white-space:nowrap;display:flex;gap:10px;align-items:center}.welcome-strip{display:flex;align-items:center;gap:13px;background:#edf4ff;border:1px solid #dfeaf9;border-radius:10px;padding:15px 18px;margin-bottom:24px;color:#366293}.welcome-strip strong{font-size:12px;display:block}.welcome-strip span{font-size:11px;color:#5e7899}.welcome-strip>a{font-size:11px;white-space:nowrap;margin-left:auto;text-decoration:none;font-weight:600}.card{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 3px 8px #17386702;overflow:hidden}.metric-card{padding:20px}.metric-label{font-size:12px;font-weight:550;color:#5b6b82}.metric-icon{display:inline-grid;place-items:center;background:#f2f6fc;color:#7190b7;width:32px;height:32px;border-radius:9px;flex-shrink:0}.metric-value{display:block;font-size:30px;font-weight:500;margin:7px 0;color:var(--ink);line-height:1}.metric-card small{font-size:10px;color:#667b96}.available-card{padding:25px 27px;background:linear-gradient(115deg,#eef7f4,#f7fbfa);border-color:#dcece6}.available-card .metric-label{color:#466b60;font-size:13px}.metric-symbol{color:#598375}.available-value{font-size:49px;line-height:1.2;margin:22px 0 15px;letter-spacing:-2px}.available-value span{display:inline-block;font-size:11px;letter-spacing:0;color:#79958b;vertical-align:middle;margin-left:10px}.pill{display:inline-flex;align-items:center;white-space:nowrap;line-height:1.3;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:550}.soft-mint{background:#e0f2ea;color:#2b6b52}.soft-blue{background:#edf4ff;color:#346bb0}.soft-neutral{background:#f2f4f7;color:#7e8a9b}.soft-warning{background:#fff4de;color:#94661b}.available-card>.pill{align-self:flex-start}.available-card>p{font-size:11px;color:#779087;margin:14px 0 18px;max-width:295px}.available-footer{margin-top:auto;font-size:10px;color:#729287;border-top:1px solid #dbe9e3;padding-top:14px;display:flex;align-items:center;gap:7px}.available-footer .icon{width:14px;height:14px}.section-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:23px 24px 17px}.card h2{font-size:16px;font-weight:600;letter-spacing:-.25px;margin-bottom:6px}.card h3{font-size:14px;font-weight:600}.section-header p{font-size:11px;color:#667b96;margin:0}.empty-chart{text-align:center;display:flex;flex-direction:column;align-items:center;padding:20px 20px 32px;flex:1;justify-content:center;min-height:270px}.empty-chart h3{margin:18px 0 8px;font-size:15px}.empty-chart p{color:#667b96;font-size:12px;margin-bottom:20px}.chart-illustration{display:flex;align-items:end;gap:7px;height:50px;border-bottom:1px solid #e9edf5;padding:0 10px}.chart-illustration span{width:16px;height:29px;background:#e5edf9;border-radius:4px 4px 0 0}.chart-illustration span:nth-child(2){height:43px}.chart-illustration span:nth-child(3){height:34px;background:#ddf0e8}.chart-illustration span:nth-child(4){height:48px}.chart-illustration span:nth-child(5){height:40px;background:#ddf0e8}.card-bottom{border-top:1px solid #f0f2f7;display:flex;gap:16px;align-items:center;padding:14px 24px;color:#667b96;font-size:10px}.card-bottom>small{margin-left:auto;font-size:9px}.legend-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6c9edb;margin-right:5px}.legend-dot.mint{background:#83c9b2}.steps{list-style:none;padding:10px 24px 24px;margin:0}.steps li{display:flex;gap:14px;padding-bottom:26px;position:relative}.steps li:not(:last-child):before{content:"";position:absolute;left:14px;top:33px;bottom:6px;width:1px;background:#edf0f5}.steps li:last-child{padding-bottom:0}.step-number{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;font-size:11px;color:#a0acbd;background:#f4f6f9;border:1px solid #e9eef4}.done .step-number{background:#e5f4ee;color:#508f74;border-color:#d8ebdf}.step-number .icon{width:15px;height:15px}.steps strong{font-size:12px}.steps p{color:#667b96;font-size:11px;line-height:1.6;margin:4px 0}.step-status{font-size:10px;color:#58907b}.step-status.muted{color:#6d89b0}.family-summary{padding:24px;gap:14px}.family-summary h2{font-size:20px}.family-summary p:not(.eyebrow){font-size:12px;color:#667b96;margin-bottom:0}.family-chips{display:flex;flex-wrap:wrap;gap:12px}.person-chip{display:flex;gap:7px;align-items:center;font-size:11px;color:#63758b}.person-chip .avatar{width:28px;height:28px;font-size:10px}.tone-1{background:#e9f3ed;color:#57886b}.tone-2{background:#f4ebfa;color:#9274aa}.tone-3{background:#f9f0df;color:#a58e5f}.text-link{font-size:11px;text-decoration:none;font-weight:600}.text-link .icon{width:15px}.priority-card{padding:24px;background:#fbfaf6;border-color:#ece9df}.priority-card .metric-icon{position:absolute;right:20px;top:20px;background:#f2efe4;color:#aa9d75}.priority-card .eyebrow{font-size:9px;max-width:80%;margin:3px 0 17px}.priority-card h2{font-size:22px;line-height:1.3;font-weight:500;letter-spacing:-.6px}.priority-card>p:last-child{font-size:11px;color:#92917f;margin:8px 0 0;max-width:260px}.app-footer{display:flex;justify-content:space-between;gap:10px;padding:15px 38px 24px;font-size:10px;color:#667b96}.btn{font-size:13px;min-height:44px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:500}.btn-primary{--bs-btn-bg:#337fe8;--bs-btn-border-color:#337fe8;--bs-btn-hover-bg:#266ac9;--bs-btn-hover-border-color:#266ac9;--bs-btn-active-bg:#205cb0}.btn-outline-primary{--bs-btn-color:#3974c2;--bs-btn-border-color:#d9e5f6;--bs-btn-hover-bg:#337fe8;--bs-btn-hover-border-color:#337fe8;font-size:11px}.btn-lg{font-size:14px;padding:12px}.form-label{font-size:12px;font-weight:600;margin-bottom:6px}.form-control{min-height:46px;font-size:16px;border-color:#dfe6f0;border-radius:8px;color:var(--ink)}.form-control::placeholder{font-size:13px;color:#667b96}.form-text{font-size:11px}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-story{background:linear-gradient(145deg,#eef5ff,#eff6f4 70%,#f8f6ee);padding:50px 10%;display:flex;flex-direction:column;justify-content:space-between;gap:60px}.auth-story h1{font-size:clamp(30px,3.3vw,50px);font-weight:550;letter-spacing:-1.8px;line-height:1.22;margin:20px 0}.auth-story p{color:#688198;max-width:370px;font-size:14px;line-height:1.9}.auth-story>small{font-size:11px;letter-spacing:1px;color:#8ba1b4}.auth-pills{display:flex;flex-wrap:wrap;gap:16px;margin-top:40px;font-size:11px;color:#6f8a90}.auth-pills .icon{margin-right:5px;width:16px}.auth-form-panel{display:flex;align-items:center;justify-content:center;padding:40px 30px}.auth-form{width:100%;max-width:380px}.auth-form h2{font-size:29px;letter-spacing:-.8px;margin:17px 0 8px}.auth-form>p{font-size:13px;margin-bottom:27px}.auth-form .auth-footnote{font-size:10px;color:#667b96;text-align:center;margin:22px 0 0}.auth-form .pill{font-size:9px;letter-spacing:.8px}.people-list .list-group-item{display:flex;align-items:center;gap:14px;padding:17px 24px;border-color:#edf1f6}.people-list strong,.people-list small{display:block}.people-list small{font-size:11px;color:#667b96}.notice-banner{display:flex;gap:12px;border:1px solid #e1eaf7;background:#f0f5fc;padding:18px;border-radius:10px;margin-bottom:25px;color:#5f7799;font-size:13px}.notice-banner p{margin:5px 0 0;font-size:12px}.notice-banner>.icon{margin-top:3px}.feature-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#f0f5fc;color:#6190c7;margin-bottom:20px}.audit-table th{font-size:10px;letter-spacing:.4px;font-weight:600;color:#667b96;background:#fafbfd;white-space:nowrap;padding:12px 24px}.audit-table td{font-size:12px;padding:18px 24px;vertical-align:middle;color:#60718c}.audit-table td:nth-child(3){white-space:nowrap}.skip-link{position:fixed;left:16px;top:-100px;z-index:2000;background:#fff;padding:12px;border:2px solid var(--blue);border-radius:5px}.skip-link:focus{top:12px}:focus-visible{outline:3px solid #5b9cf1!important;outline-offset:3px}code{overflow-wrap:anywhere}h1,h2,h3,p,strong{overflow-wrap:break-word}
@media(min-width:992px){.sidebar{position:sticky;top:0;height:100dvh;overflow-y:auto}.sidebar-content{height:100%;min-height:100%}}
@media(max-width:1199.98px){.main-content{padding:28px 25px}.topbar{padding:0 25px}.heading-row{align-items:start;flex-wrap:wrap}.available-card{min-height:270px}.metric-card{min-height:130px}}
@media(max-width:991.98px){.sidebar-content{min-height:calc(100dvh - 70px)}.sidebar{border-right:0!important}.auth-story{padding:36px}.main-content{padding:25px 22px}.auth-story h1{font-size:33px}.auth-shell{grid-template-columns:.85fr 1fr}}
@media(max-width:767.98px){.auth-shell{display:block}.auth-story{padding:25px;gap:0;background:#f1f6fd}.auth-story>div,.auth-story>small{display:none}.auth-form-panel{padding:30px 24px 40px}.auth-form{max-width:440px}.main-content{padding:24px 16px}.topbar{height:62px;padding:0 16px 0 8px}.topbar-caption{font-size:11px}.local-badge{font-size:9px;padding:4px 8px}.heading-row{gap:15px;margin-bottom:20px}.page-heading h1{font-size:26px;letter-spacing:-.7px}.period-label{font-size:11px;padding:7px 10px}.welcome-strip{align-items:start;padding:14px;flex-wrap:wrap;gap:9px}.welcome-strip>div{flex:1;min-width:200px}.welcome-strip>a{margin-left:29px}.welcome-strip span{display:block;margin-top:3px}.metric-card{padding:15px;min-height:142px}.metric-label{font-size:11px;line-height:1.5}.metric-icon{width:27px;height:27px}.metric-icon .icon{width:16px;height:16px}.metric-card small{font-size:10px;line-height:1.5}.available-card{padding:23px;min-height:265px}.section-header{padding:20px;align-items:start;flex-wrap:wrap}.section-header h2{font-size:15px}.card-bottom{padding:13px 20px;flex-wrap:wrap;gap:10px}.card-bottom>small{width:100%;margin-left:0}.family-summary,.priority-card{padding:22px}.app-footer{padding:10px 18px 25px;font-size:9px}.family-chips{gap:12px 17px}.audit-table thead{display:none}.audit-table,.audit-table tbody,.audit-table tr,.audit-table td{display:block;width:100%}.audit-table tr{padding:14px 20px;border-bottom:1px solid var(--line)}.audit-table td{border:0;padding:3px 0}.audit-table td:nth-child(2):before{content:'Por ';color:#667b96}.audit-table td:nth-child(3){font-size:11px}.audit-table td:nth-child(4){margin-top:5px}.auth-story .brand{font-size:20px}.people-list .list-group-item{padding:16px 20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

@media(max-width:767.98px){.metric-label{font-size:12px}.metric-card small,.available-card>p,.available-footer,.section-header p,.steps p,.step-status,.family-summary p:not(.eyebrow),.priority-card>p:last-child,.people-list small{font-size:12px}.metric-card{min-height:155px}.steps strong{font-size:13px}.person-chip,.text-link,.welcome-strip span,.welcome-strip>a{font-size:12px}.available-footer{line-height:1.5}.available-card .metric-label{font-size:14px}.pill{font-size:11px}}
.user-identity{min-width:0;overflow-wrap:anywhere}.user-actions{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.form-select{font-size:16px;min-height:44px;border-radius:8px;color:var(--ink)}.temporary-password{display:block;font-size:18px;background:#f4f7fc;padding:15px;border-radius:8px;user-select:all;overflow-wrap:anywhere}dl dt{font-size:13px;margin-top:10px}dl dd{font-size:13px;color:var(--muted)}

.money-credit,.money-credit [data-signed]{color:#1459bd;font-weight:700}
.money-debit,.money-debit [data-signed]{color:#b42318;font-weight:700}
/* Compact ledger: fixed columns prevent long descriptions widening the page. */
.ledger-table{max-height:70vh;overflow:auto;overflow-anchor:none}
.ledger-table table{width:100%;min-width:960px;table-layout:fixed;font-size:12px;line-height:1.25}
.ledger-table th,.ledger-table td{padding:6px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ledger-table thead th{position:sticky;top:0;background:#f3f6fb;z-index:2}
.ledger-table th:nth-child(1){width:76px}.ledger-table th:nth-child(2){width:22%}.ledger-table th:nth-child(3){width:12%}
.ledger-table th:nth-child(4){width:94px}.ledger-table th:nth-child(5){width:88px}.ledger-table th:nth-child(6){width:14%}
.ledger-table th:nth-child(7){width:86px}.ledger-table th:nth-child(8){width:102px}.ledger-table th:nth-child(9){width:82px}.ledger-table th:last-child{width:50px}
.ledger-table input,.ledger-table select{min-width:0;width:100%;font-size:12px;min-height:30px;padding:4px}
.ledger-table select{padding-right:18px;background-position:right 3px center;background-size:12px}
.ledger-table input[type=hidden]{display:none}
.ledger-table .save-status{display:block;font-size:10px;white-space:normal}
.ledger-table tr[aria-busy=true]{background:#eef5ff}
@media(max-width:767px){.ledger-table input,.ledger-table select{font-size:16px;min-height:40px}.ledger-table table{min-width:1250px}}
.ledger-table th:nth-child(4){width:108px}.ledger-table td:nth-child(4){overflow:visible;text-overflow:clip}
.ledger-table .btn{min-height:30px;padding:4px 6px}
.ledger-table tr.needs-category>td{background:#fff8df}
.ledger-table tr.needs-category input[name=category]{border:2px solid #b97b00;background:#fff1bf;color:#684600;font-weight:600}
.ledger-table tr.needs-category>td:first-child{box-shadow:inset 3px 0 #b97b00}
@media(min-width:768px){.ledger-table table{min-width:900px}.ledger-table th:nth-child(1){width:8%}.ledger-table th:nth-child(2){width:18%}.ledger-table th:nth-child(3){width:9%}.ledger-table th:nth-child(4){width:12%}.ledger-table th:nth-child(5){width:9%}.ledger-table th:nth-child(6){width:13%}.ledger-table th:nth-child(7){width:9%}.ledger-table th:nth-child(8){width:10%}.ledger-table th:nth-child(9){width:8%}.ledger-table th:last-child{width:4%}}
@media(min-width:768px){.ledger-table th:nth-child(1){width:9%}.ledger-table th:nth-child(2){width:16%}.ledger-table th:nth-child(3){width:10%}.ledger-table th:nth-child(6){width:12%}.ledger-table th:nth-child(8){width:11%}.ledger-table td:first-child{font-variant-numeric:tabular-nums;letter-spacing:-.2px}}
.ledger-table .weekday{color:#61728b;font-size:11px}
.cash-chart{display:block;width:100%;height:auto;max-height:300px;margin:14px 0}.cash-table th,.cash-table td{padding:9px 12px;white-space:nowrap}.cash-table th:last-child,.cash-table td:last-child{text-align:right}
@media(min-width:768px){.ledger-table th:nth-child(1){width:12%}.ledger-table th:nth-child(2){width:13%}}
@media(max-width:767px){.ledger-table th:nth-child(1){width:118px}}
.budget-table{max-height:68vh;overflow:auto;overflow-anchor:none;border:1px solid var(--line);border-radius:12px;background:#fff}
.budget-table table{min-width:880px;font-size:12px;font-variant-numeric:tabular-nums}
.budget-table th,.budget-table td{padding:8px 10px;white-space:nowrap}
.budget-table thead th{position:sticky;z-index:2;background:#f3f6fb}
.budget-table .budget-total-row th{top:0;height:38px;background:#eaf1fb;color:#173967;font-size:12px;font-weight:600;border-bottom:1px solid #d9e5f6}
.budget-table .budget-header-row th{top:38px;box-shadow:0 2px 5px #1738671a}
.budget-summary-card{min-width:0}
.budget-summary-card .metric-value{font-size:clamp(18px,1.6vw,22px);line-height:1.25;white-space:nowrap;overflow-wrap:normal;letter-spacing:-.3px}
.budget-summary-card span{font-size:12px;line-height:1.35}
.budget-column-total{display:block;color:#286bc6;font-size:11px;font-weight:700;white-space:nowrap}
.budget-table th:first-child,.budget-table td:first-child{min-width:220px;max-width:300px;white-space:normal}
.budget-table td:nth-child(2){min-width:125px}
.budget-table input{min-width:110px;text-align:right;font-size:12px}
.budget-table .budget-reason-label{display:block;margin-top:5px;color:#4b6687;font-size:11px;font-weight:600;white-space:normal}
.budget-table .budget-reason{min-width:165px;min-height:55px;text-align:left;font-size:12px;white-space:normal;resize:vertical}
.budget-table .budget-ai-note{max-width:280px;white-space:normal;line-height:1.35}
.budget-table .budget-review{display:block;margin-top:6px;max-width:220px;white-space:normal;line-height:1.35;font-size:11px}
.budget-table .budget-unlinked td{background:#fff8e8}
.budget-note{margin-left:6px;color:#61728b;cursor:help}
@media(max-width:767px){.budget-table input,.budget-table .budget-reason{font-size:16px;min-height:40px}.budget-table table{min-width:1000px}}
.budget-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:18px 0 20px}.budget-metric{min-width:0;min-height:118px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;box-shadow:0 4px 14px #17386708;display:flex;flex-direction:column;gap:5px}.budget-metric>span{font-size:12px;color:#526f9b;font-weight:650}.budget-metric strong{font-size:clamp(15px,1.2vw,20px);line-height:1.15;letter-spacing:-.5px;white-space:nowrap;color:#142e5d}.budget-metric small{font-size:11px;color:#61728b}.budget-metric-income{background:#f6faff}.budget-metric-income-realized{background:#f2faf5}.budget-metric-link{text-decoration:none;color:inherit}.budget-metric-link:hover{border-color:#85c4a7;color:inherit}.budget-metric-link:focus-visible{outline:3px solid #337fe8;outline-offset:2px}.budget-metric-planned{background:#fff8f7}.budget-metric-actual{background:#f4fbf8}.budget-metric-committed{background:#f6f9ff}.budget-metric-projected{background:#faf7ff}.budget-metric-bar,.budget-progress{height:7px;background:#dfe6ef;border-radius:99px;overflow:hidden}.budget-metric-bar{margin-top:auto}.budget-metric-bar span,.budget-progress span{display:block;height:100%;background:#23a975;border-radius:99px}.budget-metric-committed .budget-metric-bar span{background:#337fe8}.budget-metric-projected .budget-metric-bar span{background:#ec5968}.budget-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:16px 0 12px}.budget-view-links,.budget-toolbar-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.budget-view-links>a,.budget-view-active{display:inline-flex;align-items:center;min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}.budget-view-active{background:#337fe8;color:white;border-color:#337fe8}.budget-toolbar-filters input{width:190px}.budget-toolbar-filters select{width:130px}.budget-table{max-height:70vh}.budget-table table{min-width:1360px;font-size:12px}.budget-table th,.budget-table td{padding:10px 9px;vertical-align:middle}.budget-table th:first-child,.budget-table td:first-child{min-width:190px;max-width:225px}.budget-table td:nth-child(2){min-width:94px}.budget-table td:nth-child(3){min-width:135px}.budget-table td:nth-child(5){min-width:135px}.budget-table td:nth-child(9){min-width:205px}.budget-table td:last-child{min-width:84px}.budget-category-name{font-size:12px;color:#15376b}.budget-type-pill,.budget-status{display:inline-block;border-radius:99px;padding:4px 8px;font-size:10px;font-weight:700;white-space:nowrap;background:#eaf1fd;color:#225eb7}.budget-type-VARIABLE_ESSENTIAL,.budget-type-FIXED,.budget-status-OK{background:#dff5ea;color:#14764b}.budget-type-ADJUSTABLE,.budget-status-ATENÇÃO{background:#fff0d1;color:#a8630b}.budget-type-PROVISION,.budget-type-PROJECT{background:#e8edff;color:#4656b2}.budget-status-ESTOURADO{background:#ffe4df;color:#b84d32}.budget-status-SEM-ORÇAMENTO{background:#edf0f5;color:#687789}.budget-history-cell small{display:block;color:#708098}.budget-progress{margin:6px 0 3px;max-width:115px}.budget-progress-caption{color:#65768f;font-size:10px}.budget-table .budget-amount{width:105px;min-width:105px;font-size:12px}.budget-reason-cell{position:relative}.budget-table .budget-reason{min-width:190px;min-height:52px;max-height:110px;padding-bottom:15px}.budget-reason-count{position:absolute;right:14px;bottom:10px;color:#8b9ab1;font-size:10px}.budget-actions{display:flex;gap:4px}.budget-actions .btn{min-width:32px;padding:4px 7px}.budget-detail-row td{background:#f2f7ff!important;padding:14px 20px!important;white-space:normal!important}.budget-detail-row p{margin:4px 0}.budget-item-row[hidden],.budget-detail-row[hidden]{display:none}.budget-table .budget-total-row th{height:38px}.budget-table .budget-header-row th{top:38px}
.budget-category-name:hover{text-decoration:underline}.budget-progress{background:#dfe6ef;border:1px solid #dfe6ef;box-sizing:border-box}.budget-actions .btn{white-space:nowrap}
.budget-metric-bar>.budget-metric-fill,.budget-progress>.budget-progress-fill{display:block;height:100%;max-width:100%;background:#23a975;border-radius:99px}.budget-metric-committed .budget-metric-fill{background:#337fe8}.budget-metric-projected .budget-metric-fill{background:#ec5968}.budget-progress-warning>.budget-progress-fill{background:#e8aa31}.budget-progress-danger>.budget-progress-fill{background:#dc5353}
.budget-save-state{display:block;min-height:15px;margin-top:4px;color:#526f9b;font-size:10px;line-height:1.2}.budget-save-state:empty{display:none}
@media(max-width:1199px){.budget-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.budget-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.budget-metric{min-height:110px;padding:12px}.budget-metric strong{font-size:17px}.budget-toolbar-filters{width:100%}.budget-toolbar-filters input{flex:1;min-width:160px}.budget-toolbar-filters select{flex:1;min-width:115px}.budget-table table{min-width:1360px}.budget-table .budget-amount,.budget-table .budget-reason{font-size:16px}}
@media(max-width:767px){.budget-table{max-height:none;overflow:visible;background:transparent;border:0}.budget-table table,.budget-table tbody,.budget-table tr,.budget-table td{display:block;width:100%;min-width:0!important;max-width:none!important}.budget-table thead{display:none}.budget-table .budget-item-row{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin:0 0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px;box-shadow:0 3px 10px #17386708}.budget-table .budget-item-row[hidden],.budget-table .budget-detail-row[hidden]{display:none}.budget-table .budget-item-row td{border:0;padding:6px 3px;white-space:normal}.budget-table .budget-item-row td:before{content:attr(data-label);display:block;color:#72829a;font-size:10px;font-weight:700;margin-bottom:3px}.budget-table .budget-item-row td:first-child,.budget-table .budget-item-row td:nth-child(9){grid-column:span 2}.budget-category-name{font-size:14px}.budget-table .budget-reason{width:100%;min-width:0;max-width:none}.budget-reason-count{right:10px;bottom:8px}.budget-table .budget-detail-row{margin:-12px 0 12px;border:1px solid #dce9fb;border-radius:0 0 12px 12px;background:#f2f7ff}.budget-table .budget-detail-row td{border:0}.budget-toolbar-filters input,.budget-toolbar-filters select{font-size:16px}}
.payables-summary .metric-value{font-size:clamp(18px,1.7vw,24px);white-space:nowrap}.payables-summary span{font-size:12px;color:#61728b}.payables-table th,.payables-table td{font-size:12px;padding:10px}.payables-table td:nth-child(2){min-width:190px}.payables-table td:last-child{white-space:nowrap}
@media(max-width:767px){.payables-summary .metric-value{font-size:17px}.payables-table table,.payables-table tbody,.payables-table tr,.payables-table td{display:block;width:100%}.payables-table thead{display:none}.payables-table tr{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;padding:10px}.payables-table td{border:0;padding:5px}.payables-table td:before{content:attr(data-label);display:block;color:#72829a;font-size:10px;font-weight:700}.payables-table td:last-child:before{display:none}}
.topbar-status{display:flex;align-items:center;gap:8px;min-width:0}.wa-status{display:inline-flex;align-items:center;gap:6px;border:1px solid;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:600;white-space:nowrap;text-decoration:none}.wa-status:hover{color:inherit}.wa-status-dot{width:7px;height:7px;border-radius:50%;flex:none}.wa-status-off{color:#a12632;background:#fff1f2;border-color:#f4c7cb}.wa-status-off .wa-status-dot{background:#d53c4b}.wa-status-on{color:#196b47;background:#edf9f2;border-color:#bfe9d0}.wa-status-on .wa-status-dot{background:#28a464}
@media(max-width:767.98px){.topbar-status .local-badge{display:none}.wa-status{font-size:9px;padding:4px 7px}}
.budget-status-A-CLASSIFICAR,.budget-status-FORA-DO-ORÇAMENTO{background:#ffe4df;color:#b84d32}.budget-unplanned-row{background:#fff8f7}.budget-unplanned-row td:first-child{border-left:3px solid #dc5353}
.cfo-chat-card{max-width:980px;margin:auto}.cfo-chat-header{display:flex;flex-wrap:wrap;gap:5px 16px;padding:17px 22px;border-bottom:1px solid var(--line);background:#f8faff}.cfo-chat-header span,.cfo-chat-compose small{color:var(--muted);font-size:12px}.cfo-chat-messages{display:flex;flex-direction:column;gap:20px;min-height:200px;max-height:70vh;overflow-y:auto;padding:22px;background:#f7f9fd}.cfo-chat-turn{display:flex;flex-direction:column;gap:10px}.cfo-chat-message{max-width:min(85%,720px);padding:12px 15px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 2px 5px #17386708}.cfo-chat-user{align-self:flex-end;background:#e9f2ff;border-color:#d4e5fb}.cfo-chat-assistant{align-self:flex-start}.cfo-chat-author{display:block;font-size:11px;font-weight:700;color:#526b8c;margin-bottom:6px}.cfo-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.cfo-chat-empty{color:var(--muted);margin:auto;text-align:center;max-width:420px}.cfo-chat-compose{padding:18px 22px;border-top:1px solid var(--line)}.cfo-chat-older{display:block;padding:9px 22px;text-align:center;border-bottom:1px solid var(--line);font-size:12px}@media(max-width:767px){.cfo-chat-messages{padding:14px}.cfo-chat-message{max-width:94%}.cfo-chat-compose{padding:14px}}
.cfo-chat-card{max-width:none}.cfo-chat-assistant{max-width:min(100%,1000px);width:100%}.cfo-chat-content{font-size:14px;line-height:1.55;color:#203552;overflow-wrap:anywhere}.cfo-chat-content h2,.cfo-chat-content h3,.cfo-chat-content h4{color:#173867;font-weight:750;line-height:1.25;margin:18px 0 8px}.cfo-chat-content h2:first-child,.cfo-chat-content h3:first-child{margin-top:2px}.cfo-chat-content h2{font-size:18px}.cfo-chat-content h3{font-size:16px}.cfo-chat-content h4{font-size:14px}.cfo-chat-content p{white-space:normal;margin:0 0 10px}.cfo-chat-content ul,.cfo-chat-content ol{padding-left:22px;margin:4px 0 12px}.cfo-chat-content li{margin:4px 0}.cfo-chat-content strong{color:#15376b}.cfo-chat-content .table-responsive{margin:10px 0 15px;border:1px solid var(--line);border-radius:9px}.cfo-chat-content table{font-size:12px;margin:0;min-width:420px}.cfo-chat-content th{background:#eef4fd;color:#173867;white-space:normal}.cfo-chat-content td,.cfo-chat-content th{padding:8px 10px;vertical-align:top}.cfo-chat-content hr{margin:16px 0;border-color:var(--line)}
.sidebar .nav-label{margin:20px 0 5px;padding-left:12px}.sidebar .nav-label:first-child{margin-top:0}
.home-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}.home-heading h1{font-size:clamp(24px,2.1vw,32px);font-weight:700;letter-spacing:-.7px;margin:0}.home-heading p:last-child{color:var(--muted);margin:5px 0 0}.home-month{display:flex;align-items:center;gap:8px}.home-month label{font-weight:600;white-space:nowrap}.home-month select{min-width:115px}
.home-hero-grid{display:grid;grid-template-columns:1.35fr 1fr .85fr;gap:14px}.home-hero-grid>.card{padding:23px;min-height:205px;border-radius:14px}.home-hero-grid h2{font-size:15px;font-weight:700;margin:0 0 12px}.home-welcome{background:linear-gradient(135deg,#e9f2ff,#eef8f5 70%,#fff);display:flex;flex-direction:column}.home-welcome>small{font-weight:700;color:#3273bf}.home-welcome h2{font-size:27px;margin:8px 0}.home-welcome p{max-width:390px;margin:0;color:#3c587b}.home-welcome-status{display:flex;gap:9px;align-items:start;background:#dff3e9;color:#145841;border-radius:9px;padding:9px 11px;margin-top:auto;font-size:12px}.home-welcome-status.home-warning{background:#fff1d8;color:#805316}.home-welcome-status .icon{width:17px;height:17px}.home-feature{background:linear-gradient(140deg,#eaf8f1,#fff)}.home-feature h2{display:flex;justify-content:space-between}.home-feature-value{display:block;font-size:clamp(24px,2.5vw,36px);line-height:1.15;color:#09664c;margin:15px 0}.home-feature-empty{font-size:19px;color:#536c82}.home-feature p{color:#567083;font-size:12px;line-height:1.45}.home-feature>a{font-weight:600;text-decoration:none;font-size:12px}.home-result-value{display:block;font-size:clamp(24px,2.2vw,32px);margin:15px 0;color:#173867}.home-result dl{margin:0}.home-result dl>div{display:flex;justify-content:space-between;gap:8px;margin:6px 0}.home-result dt{font-weight:400;color:#5c708b}.home-result dd{margin:0;font-weight:700}.home-result small{color:var(--muted)}.home-negative{color:#bd3333!important}
.home-attention{margin:22px 0}.home-attention h2,.home-panel h2{font-size:17px;font-weight:700;margin:0 0 12px}.home-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-action{display:flex;align-items:center;gap:12px;padding:16px;min-width:0;text-decoration:none;color:var(--ink);border-radius:12px}.home-action:hover,.home-budget-row:hover,.home-entry:hover{background:#f4f8ff}.home-action>span:nth-child(2){min-width:0;flex:1}.home-action strong,.home-action b,.home-action small{display:block}.home-action strong{font-size:12px}.home-action b{font-size:19px;white-space:nowrap}.home-action small{font-size:11px;color:var(--muted)}.home-action>.icon{width:16px;height:16px;color:#5a83b8}.home-action-icon{display:grid;place-items:center;background:#e9f2ff;color:#256bd0;border-radius:9px;width:36px;height:36px;flex:none}.home-action-danger .home-action-icon{background:#ffe5e3;color:#c33a32}.home-action-warn .home-action-icon{background:#fff0d2;color:#a56212}
.home-content-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.home-panel{padding:18px;border-radius:12px;min-width:0}.home-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.home-panel-head h2{margin:0}.home-panel-head p{margin:2px 0 12px;font-size:12px;color:var(--muted)}.home-panel-head>a{white-space:nowrap;text-decoration:none;font-size:12px;font-weight:600}.home-panel-head>a .icon,.home-feature>a .icon{width:14px;height:14px}.home-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.home-tabs a{font-size:11px;border:1px solid var(--line);padding:5px 8px;border-radius:7px;text-decoration:none}.home-list{display:grid}.home-payable{display:grid;grid-template-columns:42px minmax(110px,1fr) auto 70px auto;align-items:center;gap:9px;border-bottom:1px solid var(--line);padding:9px 0;font-size:12px}.home-payable>span:nth-child(2){min-width:0}.home-payable strong,.home-payable small{display:block}.home-payable small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-payable em{font-style:normal;font-size:11px}.home-payable b{white-space:nowrap}.home-payable form{margin:0}.home-empty{color:var(--muted);padding:20px 0}.home-budget-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(70px,1fr) 42px auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);font-size:12px}.home-budget-row>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-budget-row b{font-size:11px;white-space:nowrap}.home-progress{height:8px;border-radius:99px;background:#e2e9f2;overflow:hidden}.home-progress>span{display:block;height:100%;background:#20a66b;border-radius:inherit}.home-progress>span.home-progress-warn{background:#f3b036}.home-progress>span.home-progress-danger{background:#e25454}.home-approval{margin-top:15px}.home-unclassified{display:block;margin-top:10px;font-size:12px;color:#a23b2b}.home-unclassified .icon{width:14px;height:14px}.home-entry{display:grid;grid-template-columns:42px minmax(100px,2fr) minmax(50px,1fr) auto minmax(70px,1fr);gap:7px;align-items:center;border-bottom:1px solid var(--line);padding:9px 0;text-decoration:none;color:var(--ink);font-size:11px}.home-entry strong,.home-entry small,.home-entry>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-entry b{white-space:nowrap}.home-entry small{color:var(--muted)}.home-cfo-insight{display:flex;gap:12px;background:#f3f7ff;padding:15px;border-radius:10px;margin:10px 0 15px}.home-cfo-insight .icon{color:#3676d0}.home-cfo-insight p{margin:0}.home-details{margin:16px 0;border:1px solid var(--line);border-radius:10px;padding:13px 16px;background:#fff}.home-details summary{cursor:pointer;font-weight:600}.home-details-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px}.home-details-grid>div{display:flex;flex-direction:column;padding:10px;background:#f6f8fc;border-radius:7px}
@media(max-width:1250px){.home-hero-grid{grid-template-columns:1fr 1fr}.home-welcome{grid-column:1/-1}.home-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-payable{grid-template-columns:40px 1fr auto}.home-payable em{display:none}.home-budget-row{grid-template-columns:minmax(90px,1fr) minmax(70px,1fr) 38px}.home-budget-row b{grid-column:1/-1}}
@media(max-width:800px){.home-heading{align-items:stretch;flex-direction:column}.home-month{align-self:stretch}.home-hero-grid,.home-content-grid{grid-template-columns:1fr}.home-welcome{grid-column:auto}.home-details-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.home-action-grid{grid-template-columns:1fr 1fr}.home-action{padding:12px;gap:6px}.home-action>.icon{display:none}.home-action b{font-size:15px}.home-action-icon{width:30px;height:30px}.home-action small{font-size:10px}.home-month label{display:none}.home-payable{grid-template-columns:37px 1fr auto}.home-payable form,.home-payable>a{grid-column:2/-1}.home-entry{grid-template-columns:37px 1fr auto}.home-entry small,.home-entry>span:last-child{display:none}.home-details-grid{grid-template-columns:1fr}}
progress.home-progress,progress.budget-progress,progress.budget-metric-bar{display:block;appearance:none;-webkit-appearance:none;border:0;border-radius:99px;overflow:hidden;background:#dfe6ef;height:8px;width:100%}
progress.budget-progress{max-width:115px;margin:6px 0 3px}
progress.budget-metric-bar{margin-top:auto}
progress.home-progress::-webkit-progress-bar,progress.budget-progress::-webkit-progress-bar,progress.budget-metric-bar::-webkit-progress-bar{background:#dfe6ef;border-radius:99px}
progress.home-progress::-webkit-progress-value,progress.budget-progress::-webkit-progress-value,progress.budget-metric-bar::-webkit-progress-value{background:#23a975;border-radius:99px}
progress.home-progress::-moz-progress-bar,progress.budget-progress::-moz-progress-bar,progress.budget-metric-bar::-moz-progress-bar{background:#23a975;border-radius:99px}
progress.home-progress-warn::-webkit-progress-value,progress.budget-progress-warning::-webkit-progress-value{background:#e8aa31}
progress.home-progress-warn::-moz-progress-bar,progress.budget-progress-warning::-moz-progress-bar{background:#e8aa31}
progress.home-progress-danger::-webkit-progress-value,progress.budget-progress-danger::-webkit-progress-value{background:#dc5353}
progress.home-progress-danger::-moz-progress-bar,progress.budget-progress-danger::-moz-progress-bar{background:#dc5353}
.budget-metric-committed progress::-webkit-progress-value{background:#337fe8}
.budget-metric-committed progress::-moz-progress-bar{background:#337fe8}
.budget-metric-projected progress::-webkit-progress-value{background:#ec5968}
.budget-metric-projected progress::-moz-progress-bar{background:#ec5968}
.signup-trap{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.signup-whatsapp{border:1px solid #d4ecdf;background:#f1faf5;border-radius:12px;padding:16px 18px;margin:18px 0}.signup-whatsapp h3{display:flex;gap:8px;align-items:center;font-size:15px;margin:0 0 8px;color:#22694a}.signup-whatsapp h3 .icon{width:17px;height:17px}.signup-whatsapp ol{padding-left:18px;margin:0 0 8px;font-size:13px}.signup-whatsapp li{margin-bottom:8px}
.signup-group{display:inline-block;margin-top:4px;padding:6px 10px;border-radius:8px;background:#fff;border:1px dashed #23805e;color:#173867;font-size:15px;font-weight:700;letter-spacing:.5px;user-select:all}
.privacy-text h3{font-size:15px;font-weight:700;margin:18px 0 4px}.privacy-text p{font-size:13px}
.platform-pending{border-color:#f3e4c6;background:#fffaf0}.platform-actions{display:flex;gap:6px;flex-wrap:wrap}.platform-actions .btn{min-height:32px;font-size:12px}

/* Rule from an entry: "Criar regra para os próximos?" */
.rule-builder{margin-top:6px}
.rule-builder-open{border:0;background:none;padding:0;color:#23549a;font-size:12px;text-decoration:underline;text-underline-offset:2px}
.rule-builder-panel{border:1px solid #d9e4f3;background:#f6f9fe;border-radius:8px;padding:12px;display:grid;gap:8px}
.rule-builder-question{margin:0;font-size:13px;color:#24364f}
.rule-builder-check{font-size:13px;display:flex;gap:6px;align-items:center}
.rule-builder-fields{display:grid;gap:6px}
.rule-builder-fields .form-label{font-size:12px;margin:0;display:grid;gap:3px;width:100%}
.rule-builder-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px}
.rule-builder-preview{font-size:12px;margin:0;color:#24364f;min-height:16px}
.rule-builder-preview ul{margin:4px 0 0;padding-left:18px;color:#5b6d86}
.rule-builder-preview li{overflow-wrap:anywhere}
.rule-builder-preview.is-error{color:#a8323f}
@media (max-width:560px){.rule-builder-row{grid-template-columns:1fr}}
