.cf{color:var(--text,#18202d);max-width:100%;min-width:0}.cf-heading,.cf-toolbar,.cf-tabs{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cf-heading{justify-content:space-between;margin-bottom:24px}.cf h1{font-size:30px;margin:0 0 8px}.cf p{line-height:1.5}.cf-heading p,.cf-subtle{color:#68717d}.cf-filters,.cf-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:end}.cf-filters{grid-template-columns:minmax(200px,1fr) minmax(200px,1fr) auto}.cf label,.cf-dialog label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;color:#5a636d}.cf select,.cf input,.cf textarea,.cf-dialog select,.cf-dialog input,.cf-dialog textarea{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #dfe4e8;border-radius:9px;background:white;padding:10px 12px;font:inherit;color:#18202d}.cf input:focus-visible,.cf select:focus-visible,.cf button:focus-visible,.cf-dialog :focus-visible{outline:2px solid #e76a2c;outline-offset:2px}.cf-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:1px;background:#e4e8eb;border:1px solid #e4e8eb;border-radius:12px;overflow:hidden;margin:22px 0}.cf-cards>div{background:white;padding:18px}.cf-cards small{display:block;color:#6b7480;margin-bottom:10px}.cf-cards strong{font-size:21px;overflow-wrap:anywhere}.cf-toolbar{margin:16px 0}.cf .btn,.cf-dialog .btn{min-height:44px;white-space:normal}.cf-charts{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.cf-charts article{background:#fff;border:1px solid #e4e8eb;border-radius:12px;padding:18px;min-width:0}.cf-charts svg{display:block;width:100%;height:auto}.cf-charts h3{margin:0 0 12px;font-size:17px}.cf-charts rect[data-month]{cursor:pointer}.cf-tabs{border-bottom:1px solid #dee4e8;margin-bottom:18px}.cf-tabs button{background:none;border:0;border-bottom:2px solid transparent;min-height:48px;padding:12px 18px;color:#656d75;font-weight:600;cursor:pointer}.cf-tabs button.active{color:#c34e1b;border-bottom-color:#c34e1b}.cf-scroll{overflow:auto;max-width:100%;border:1px solid #e3e8ec;border-radius:10px;background:white}.cf table,.cf-dialog table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.cf th,.cf td,.cf-dialog th,.cf-dialog td{padding:14px 16px;border-bottom:1px solid #edf0f2;vertical-align:middle}.cf th,.cf-dialog th{background:#f0f3f5;color:#626c77;font-size:12px}.cf td small,.cf td strong,.cf-matrix th small,.cf-dialog td small{display:block}.cf td small,.cf-dialog td small{color:#717c88;margin-top:5px;font-size:12px}.cf-matrix table{min-width:max-content;font-size:12px}.cf-matrix th:first-child{position:sticky;left:0;z-index:1;min-width:200px;max-width:250px;white-space:normal}.cf-matrix td{min-width:105px;text-align:right;white-space:nowrap}.cf-matrix button{border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer}.cf-matrix tfoot{background:#fff4eb;font-weight:700}.cf-months{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:15px}.cf-months button{display:flex;flex-direction:column;gap:12px;text-align:left;padding:20px;background:white;border:1px solid #e1e6ea;border-radius:10px;cursor:pointer;color:inherit}.cf-months b{font-size:20px}.cf-warning,.cf-info{padding:13px 16px;border-radius:9px;background:#fff3e6;color:#8b471e}.cf-info{background:#edf4f9;color:#466073}.cf-error{color:#af3028!important}.cf-ok{color:#23814a}.cf-empty{text-align:center;padding:60px 25px;border:1px dashed #d5dce2;border-radius:12px;background:white}.cf-dialog{box-sizing:border-box;width:min(860px,calc(100vw - 28px));max-height:90dvh;border:1px solid #e1e6ea;border-radius:16px;padding:24px;color:#18202d;background:#fff;box-shadow:0 20px 70px #0003}.cf-dialog::backdrop{background:#17202b75}.cf-dialog header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.cf-dialog h2{font-size:23px;margin:0}.cf-dialog h3{margin:24px 0 14px}.cf-dialog form>label,.cf-dialog form>button{margin-top:18px}.cf-dialog fieldset{border:0;padding:0;min-width:0}.cf-dialog fieldset:disabled{opacity:.85}.cf-dialog input[type=checkbox]{width:18px;min-height:18px;margin:0}.cf-dialog .cf-selection label{flex-direction:row;align-items:center;padding:8px}.cf-selection,.cf-manual{max-height:350px;overflow:auto;margin:15px 0}.cf-payment{display:grid;grid-template-columns:75px 110px 120px minmax(100px,1fr) 44px;gap:8px;align-items:end;margin:12px 0}.cf-preview{border:1px solid #eee1d6;background:#fff8f1;padding:16px;border-radius:10px;margin:18px 0}.cf-history article{border-bottom:1px solid #e3e8ed;padding:16px 0}.cf-history small{display:block;margin:8px 0;overflow-wrap:anywhere}.cf-dialog-message{color:#af3028}.cf-dialog .cf-cards{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}@media(max-width:1000px){.cf-filters{grid-template-columns:1fr 1fr}.cf-charts{grid-template-columns:1fr}.cf h1{font-size:26px}}@media(max-width:600px){.cf-filters,.cf-form-grid{grid-template-columns:1fr}.cf-dialog{padding:18px}.cf-cards{grid-template-columns:1fr 1fr}.cf-cards strong{font-size:17px}.cf-heading{align-items:flex-start}.cf-payment{grid-template-columns:1fr 1fr}.cf-payment>label:nth-child(4){grid-column:1/-1}.cf .cf-toolbar .btn{flex:1 1 140px}.cf-charts article{padding:12px}.cf td,.cf th{padding:12px}.cf-tabs button{padding:10px 13px}}

#cashflowSection .cf-scroll table{min-width:1000px;table-layout:auto}#cashflowSection .cf-scroll th,#cashflowSection .cf-scroll td{word-break:normal;overflow-wrap:normal}#cashflowSection .cf-scroll td:not(:first-child),#cashflowSection .cf-scroll th{white-space:nowrap}#cashflowSection .cf-scroll td:first-child{min-width:160px}#cashflowSection .cf-scroll .btn{white-space:nowrap}

/* Scoped overrides keep global dialog/button rules from misaligning cashflow. */
dialog.cf-dialog{position:fixed;inset:0;margin:auto!important;height:fit-content;max-height:calc(100dvh - 48px);overflow-y:auto;padding:28px;}
dialog.cf-dialog [hidden]{display:none!important}
dialog.cf-dialog header{position:sticky;top:-28px;background:#fff;padding:12px 0;z-index:2}
#cashflowSection .cf-filters>button{margin:0!important;align-self:end;height:48px;min-height:48px}
#cashflowSection .cf-filters select{height:48px;margin:0}
#cashflowSection .cf-main-actions{gap:10px;align-items:center}
#cashflowSection .cf-main-actions>.btn,#cashflowSection .cf-options>summary{margin:0!important;min-height:42px;padding:10px 16px;font-size:14px;font-weight:500;box-sizing:border-box}
.cf-options{position:relative}.cf-options>summary{display:flex;gap:18px;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;background:#fff;border:1px solid #dfe4e8;border-radius:9px;color:#4b5563}.cf-options>summary::-webkit-details-marker{display:none}.cf-options>summary:focus-visible{outline:2px solid #e76a2c;outline-offset:2px}.cf-options[open]>summary{border-color:#e76a2c}
.cf-options-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:10;width:260px;max-width:calc(100vw - 48px);padding:6px;background:#fff;border:1px solid #e2e6e9;border-radius:12px;box-shadow:0 12px 32px #18202d20}
#cashflowSection .cf-options-panel .btn{display:block;width:100%;text-align:left;background:transparent;border:0;box-shadow:none;margin:0;padding:12px;font-weight:500;font-size:14px;color:#374151}
#cashflowSection .cf-options-panel .btn:hover{background:#fff3eb;color:#bf4d1c}
dialog.cf-dialog .cf-close{margin:0;flex:0 0 36px;width:36px;min-height:36px;padding:0;font-size:22px;border-radius:50%}
dialog.cf-dialog label{font-weight:500}dialog.cf-dialog .cf-selection label{font-size:14px;padding:12px 8px;border-bottom:1px solid #edf0f2;line-height:1.5}dialog.cf-dialog input[type=checkbox]{flex:0 0 18px}
@media(max-width:600px){dialog.cf-dialog{padding:20px;max-height:calc(100dvh - 24px)}dialog.cf-dialog header{top:-20px}#cashflowSection .cf-main-actions>.btn{flex:0 1 auto}.cf-options-panel{left:auto;right:0}.cf-cards>div:last-child:nth-child(odd){grid-column:1/-1}}

#cashflowSection .cf-filters>label{margin:0!important}#cashflowSection .cf-filters select{height:48px!important;min-height:48px!important}

#cashflowMenu svg,#expensesMenu svg,#providerAccountsMenu svg{width:18px;height:18px;min-width:18px;stroke-width:1.7}#adminBudgetMenu{display:none!important}#budgetAdminPanel .admin-back[hidden],[data-dashboard-tab][hidden]{display:none!important}#providerAccountsMenu span{white-space:normal;text-align:left;line-height:1.3}

#dashboardSection .dashboard-tabs[hidden]{display:none!important}
#cashflowSection .cf-rubro-group th{padding:15px 16px;border-top:14px solid #f5f7f8;border-bottom:1px solid #e1e6e9;background:#fff8f2;color:#9a3f18;text-align:left;font-size:14px;white-space:normal}
#cashflowSection .cf-rubro-group:first-child th{border-top:0}
#cashflowSection .cf-rubro-group th span{display:inline-block;margin-right:12px;font-size:16px}
#cashflowSection .cf-rubro-group th strong{display:inline-block;margin-right:10px;color:#18202d;font-size:14px}
#cashflowSection .cf-rubro-group th small{color:#737d87;font-weight:500}
#cashflowSection .cf-rubro-group-labor th{background:#f3f7fb;color:#385f7d}
#cashflowSection .cf-rubro-group-additions th{background:#f4f8f3;color:#467148}
