:root,html[data-theme=light]{--bg:#f4f5f6;--surface:#fff;--panel:#fff;--surface-muted:#f0f2f3;--panel-soft:#f0f2f3;--surface-hover:#e9ecee;--text:#20262b;--ink:#20262b;--text-secondary:#58636b;--text-soft:#58636b;--muted:#58636b;--line:#dce1e4;--sidebar:#fff;--sidebar-dark:#fff;--green:#007451;--accent-text:#007451;--accent-soft:#e5f6ee;--brand-soft:#e5f6ee;--sidebar-hover:#e5f6ee;--shadow:0 4px 20px #18212806}html[data-theme=dark]{--bg:#141719;--surface:#202427;--panel:#202427;--surface-muted:#292e32;--panel-soft:#292e32;--surface-hover:#343a3e;--text:#f1f3f5;--ink:#f1f3f5;--text-secondary:#b4bec5;--text-soft:#b4bec5;--muted:#b4bec5;--line:#3b4349;--sidebar:#1c2023;--sidebar-dark:#1c2023;--green:#73dfb6;--accent-text:#73dfb6;--accent-soft:#203c32;--brand-soft:#203c32;--sidebar-hover:#203c32;--shadow:0 4px 20px #0002}html body{background:var(--bg);color:var(--text)}html body :is(.sidebar,.topbar,.portal-header,.platform-header){background:var(--sidebar)!important;border-color:var(--line)!important;box-shadow:none}html body :is(.workspace,.r2-portal){background:var(--bg)!important}html body :is(.panel,.stat,.fd-kpi,.fd-chart,.system-card,.portal-tool-card,.summary-card,.panel-card,.table-card,.section-card,.chart-card){background:var(--surface)!important;color:var(--text);border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:var(--shadow)!important}html body :is(.stat,.fd-kpi,.summary-card){padding:24px;min-width:0}html body :is(.stat strong,.fd-kpi strong,.summary-card strong){font-variant-numeric:tabular-nums;letter-spacing:-.04em}html body :is(h1,.page-title){letter-spacing:-.045em;font-weight:650}html body :is(.sidebar nav button,.sidebar-nav button,.nav-button){min-height:46px;border-radius:12px}html body :is(.sidebar nav button.active,.nav-button.is-active){background:var(--accent-soft)!important;color:var(--accent-text)!important}html body :is(.topbar,.portal-header){border-bottom:1px solid var(--line)}html body :is(button,input,select,textarea){border-radius:12px}html body :is(.system-card,.portal-tool-card){padding:26px;display:flex;flex-direction:column;gap:12px}.system-card .system-link,.portal-tool-card .system-link{margin-top:auto}html body :is(.welcome-strip,.portal-connection){background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line);border-radius:18px}html body .welcome-strip :is(p,strong,span){color:var(--text)}.r2-neutral-hero{padding:30px 32px;margin:0 0 24px;border:1px solid var(--line);border-radius:22px;background:var(--surface);position:relative;overflow:hidden}.r2-neutral-hero:before{content:"";position:absolute;left:0;top:28px;bottom:28px;width:4px;background:#2fd9a4;border-radius:4px}.r2-neutral-hero h1{font-size:clamp(28px,3vw,40px);margin:8px 0 12px}.r2-neutral-hero p{color:var(--text-secondary)}.r2-app-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.r2-app-shortcuts a{display:grid;gap:12px;min-height:110px;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);text-decoration:none}.r2-app-shortcuts small{color:var(--text-secondary);line-height:1.6}.r2-mobile-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.r2-mobile-note{color:var(--text-secondary);font-size:13px;line-height:1.6}html body .portal-intro{max-width:65ch}.portal-tools-intro{max-width:85ch}@media(max-width:720px){html body :is(.stat,.fd-kpi,.summary-card){padding:18px!important}.r2-neutral-hero{padding:22px;margin-bottom:18px}.r2-app-shortcuts{grid-template-columns:1fr;gap:12px}.r2-app-shortcuts a{min-height:84px;padding:20px}html body :is(.system-card,.portal-tool-card){padding:22px}.page-heading{flex-wrap:wrap;gap:16px}html body :is(input,select,textarea){font-size:16px}.r2-portal main{padding-bottom:110px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}@media print{.r2-neutral-hero{border:0;box-shadow:none}}html body .avatar{background:var(--accent-soft);color:var(--accent-text)}html body .profile .avatar,html body .profile .avatar *{background:#e5f6ee!important;color:#00583d!important}html body .finance{font-size:16px;line-height:1.55}html body .finance .finance-table td{font-size:16px;line-height:1.55;vertical-align:top}html body .finance .finance-table td small,html body .finance .finance-table th,html body .finance .field label{font-size:14px;line-height:1.5;color:var(--text-secondary)}html body .finance input,html body .finance select,html body .finance textarea,html body .finance button{font-size:16px}html body .finance .finance-table strong{display:block;word-break:normal;overflow-wrap:break-word}html body .finance .finance-direction{display:inline-flex;align-items:center;padding:5px 10px;margin:0 0 8px;border-radius:8px;font-size:14px;font-weight:700;white-space:nowrap}html body .finance .finance-direction.direction-pagar{background:#fff0e8;color:#913b0b;border:1px solid #dfad91}html body .finance .finance-direction.direction-receber{background:#e7f2ff;color:#154c86;border:1px solid #9cbce1}html body .finance tr.direction-pagar td:first-child{border-left:4px solid #b9531c}html body .finance tr.direction-receber td:first-child{border-left:4px solid #2673c5}html[data-theme=dark] body .finance .finance-direction.direction-pagar{background:#492b1d;color:#ffd2b7;border-color:#a96b48}html[data-theme=dark] body .finance .finance-direction.direction-receber{background:#203952;color:#c3e1ff;border-color:#5489bd}html body ::selection{background:#b7d9ff;color:#122b45;text-shadow:none}html[data-theme=dark] body ::selection{background:#b7d9ff;color:#122b45;text-shadow:none}html body .finance-dual-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}html body .finance-dual-panels.single{grid-template-columns:minmax(0,1fr)}html body .finance-ledger{min-width:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);color:var(--text)}html body .finance-ledger-heading{padding:24px;border-top:5px solid #b9531c;background:#fff5ed;color:#32231a}html body .finance-ledger.direction-receber .finance-ledger-heading{border-top-color:#2673c5;background:#edf5ff;color:#182f49}html[data-theme=dark] body .finance-ledger-heading{background:#34271f;color:#f7e5d8}html[data-theme=dark] body .finance-ledger.direction-receber .finance-ledger-heading{background:#203142;color:#e0efff}html body .finance-ledger h2{font-size:24px;line-height:1.3;margin:8px 0 16px;color:inherit}html body .finance-ledger-total{display:block;font-size:30px;line-height:1.3;margin:8px 0 20px;overflow-wrap:normal}html body .finance-ledger-summary{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:16px;font-size:16px}html body .finance-ledger-summary b{display:block;font-variant-numeric:tabular-nums}html body .finance-ledger small{display:block;font-size:14px;line-height:1.6;color:inherit}html body .finance-ledger-entry{padding:24px;border-top:1px solid var(--line);font-size:16px;line-height:1.6;color:var(--text)}html body .finance-ledger-entry>strong{display:block;font-size:18px;margin-bottom:8px;overflow-wrap:anywhere}html body .finance-ledger-values{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0}html body .finance-ledger-values div{flex:1 1 100px;min-width:0}html body .finance-ledger-values dt{font-size:14px;color:var(--text-secondary)}html body .finance-ledger-values dd{margin:4px 0 0;font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}html body .finance-ledger .finance-actions{display:flex;flex-wrap:wrap;gap:8px}html body .finance-ledger .finance-actions button{min-height:44px;font-size:15px;white-space:normal}html body .finance-ledger-empty{padding:24px}@media(max-width:1050px){html body .finance-dual-panels{grid-template-columns:minmax(0,1fr)}}@media(max-width:480px){html body .finance-ledger-entry,html body .finance-ledger-heading{padding:16px}html body .finance-ledger-total{font-size:27px}}.ledger-filters{margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:12px}.ledger-filters summary{font-size:18px;font-weight:650;cursor:pointer;margin-bottom:16px}.ledger-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ledger-filter-grid fieldset{min-width:0;border:1px solid var(--line);border-radius:8px;padding:16px}.ledger-filter-options{display:grid;gap:8px;max-height:220px;overflow:auto}.ledger-filter-options label{display:flex;align-items:center;gap:10px;min-height:40px;font-size:16px}.ledger-filter-options input[type=checkbox]{width:20px;height:20px;flex:none}.ledger-filter-grid legend{font-size:15px;padding:0 6px}@media(max-width:640px){.ledger-filter-grid{grid-template-columns:1fr}.ledger-filters{padding:12px}}html body .finance .finance-ledger{margin:0}input[type=number]{-moz-appearance:textfield;appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}html body .sidebar nav button{font-size:16px;line-height:1.4;white-space:normal;text-align:left}html body .sidebar .r2-nav-group-title{font-size:16px;font-weight:650}html body .finance-ledger-heading{padding:16px}html body .finance-ledger h2{font-size:20px;margin:4px 0 8px}html body .finance-ledger-total{font-size:24px;margin:4px 0 10px}html body .finance-ledger-summary{font-size:14px;gap:12px;margin-bottom:8px}html body .finance-ledger small{font-size:13px;line-height:1.45}html body .finance-ledger-entry{padding:14px 16px;font-size:14px;line-height:1.45}html body .finance-ledger-entry>strong{font-size:15px;line-height:1.4;margin-bottom:4px}html body .finance-ledger-values{gap:8px;margin:10px 0}html body .finance-ledger-values dt{font-size:13px}html body .finance-ledger-values dd{font-size:15px;margin:2px 0 0}html body .finance-ledger .finance-actions{gap:6px}html body .finance-ledger .finance-actions button{font-size:14px;min-height:36px;padding:6px 10px}html body .finance .finance-ledger .finance-direction{font-size:13px;padding:3px 8px;margin-bottom:4px}@media(pointer:coarse){html body .finance-ledger .finance-actions button{min-height:44px}}@media(max-width:480px){html body .finance-ledger-entry{padding:12px}html body .finance-ledger-total{font-size:23px}}.ledger-switch{display:flex;gap:12px;margin:16px 0;flex-wrap:wrap}.ledger-switch-group{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}.ledger-switch-group button{min-height:44px;background:var(--surface);color:var(--text);border:0;border-radius:0;padding:10px 20px}.ledger-switch-group button+button{border-left:1px solid var(--line);min-width:48px}.ledger-switch-group.selected{outline:2px solid var(--green)}.ledger-switch-group.selected button{background:var(--accent-soft);color:var(--accent-text)}html body .finance-flow-list .finance-ledger-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px}html body .finance-flow-list .finance-ledger-heading h2{margin:0;font-size:18px}html body .finance-flow-list .finance-ledger-total{margin:0;font-size:20px}html body .finance-flow-list .finance-ledger-summary{margin:0}html body .finance-flow-list .finance-ledger-heading>small{flex-basis:100%}html body .finance-flow-list .finance-ledger-entry{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(240px,1fr) minmax(170px,.8fr);gap:16px;align-items:center;padding:12px 16px}.ledger-description{min-width:0;overflow-wrap:anywhere}.ledger-description>strong{font-size:15px;display:block;margin-bottom:4px}html body .finance-flow-list .finance-ledger-values{margin:0}html body .finance-flow-list .finance-ledger-values div{flex:1 1 70px}@media(max-width:1100px){html body .finance-flow-list .finance-ledger-entry{grid-template-columns:minmax(0,1fr)}html body .finance-flow-list .finance-ledger .finance-actions button{min-height:44px}}.ledger-quick-filters{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:12px;align-items:end}.ledger-quick-filters .field{margin:0;min-width:0}html body .finance .ledger-order-note{font-size:13px;color:var(--text-secondary);margin:8px 0 12px}html body .finance .ledger-filters{margin:10px 0 12px;padding:10px 14px}html body .finance .ledger-filters summary{font-size:15px;line-height:24px;margin:0;min-height:24px}.ledger-filter-hint{font-size:13px;font-weight:400;color:var(--text-secondary);margin-left:12px}html body .finance .ledger-filters[open] summary{margin-bottom:12px}html body .finance .ledger-filter-help{font-size:13px;margin:0 0 12px;color:var(--text-secondary)}@media(max-width:640px){.ledger-quick-filters{grid-template-columns:1fr;gap:8px}.ledger-filter-hint{display:none}html body .finance .ledger-filters summary{min-height:28px;line-height:28px}}html body .finance-flow-list .finance-ledger-entry{grid-template-columns:minmax(180px,1.4fr) minmax(240px,1fr) 100px}.ledger-row-actions{align-self:start;min-width:0}.ledger-row-actions summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;min-height:40px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;font-size:14px;color:var(--text);background:var(--surface)}.ledger-row-actions summary::-webkit-details-marker{display:none}.ledger-row-actions summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}.ledger-row-actions[open]{grid-column:1/-1;justify-self:stretch}.ledger-row-actions[open] summary{width:100px;margin-left:auto}.ledger-row-actions .finance-actions{padding-top:8px;justify-content:flex-end}@media(max-width:1100px){html body .finance-flow-list .finance-ledger-entry{grid-template-columns:minmax(0,1fr) 90px}.finance-flow-list .ledger-description{grid-column:1/-1}.finance-flow-list .finance-ledger-values{grid-column:1}.ledger-row-actions summary{min-height:44px;padding:8px}.ledger-row-actions[open]{grid-column:1/-1}}
