:root{--brand:#27445f;--brand-hover:#142b40;--gold:#c5a16a;--navy:#0a1523;--text:#243447;--muted:#647184;--bg:#f6f5f2;--line:#e7e5df;--brand-soft:#eef2f5;--green:#238470;--red:#c55740;--radius:18px}*{box-sizing:border-box}body{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}input,select,textarea{width:100%;border:1px solid #d7dfeb;border-radius:9px;padding:11px 13px;background:#fff;color:var(--text);min-height:44px}input:focus,select:focus,textarea:focus{border-color:var(--brand);outline:2px solid #27445f25}label{display:block;font-weight:600;font-size:13px;margin-bottom:18px}label input,label select,label textarea{display:block;margin-top:7px;font-weight:400}small{font-size:12px}label small{display:block;font-weight:400;color:var(--muted);margin-top:6px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin-bottom:10px}h2{font-size:18px;letter-spacing:-.35px;margin-bottom:8px}h3{font-size:17px}p{margin-bottom:14px}.muted{color:var(--muted)}.strong{font-weight:700}.negative{color:var(--red)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:var(--brand);margin-bottom:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:42px;border:1px solid #dce3ee;background:#fff;color:var(--text);padding:10px 17px;border-radius:9px;font-weight:650;font-size:13px;white-space:nowrap}.button:hover{text-decoration:none;background:#f1f5fc}.button.primary{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 3px 8px #27445f12}.button.primary:hover{background:var(--brand-hover)}.button.accent{background:#f5eddf;color:#765526;border-color:#deccab}.button.small{min-height:36px;padding:7px 12px}.full{width:100%}.text-link{font-size:12px;font-weight:650;white-space:nowrap}.pill,.tiny-tag{display:inline-flex;align-items:center;border-radius:7px;background:var(--brand-soft);color:var(--brand);padding:6px 11px;font-size:11px;font-weight:650}.tiny-tag{background:#f1f4f8;color:var(--muted)}.pill.light{background:#ffffff17;color:#dde8ff;letter-spacing:1.5px;font-size:9px}.notice{background:#f8f2e7;color:#765a30;border:1px solid #e8dac1;border-radius:12px;padding:15px 18px;margin-bottom:24px;font-size:13px}.notice.info{background:#eef2f5;color:#354f69;border-color:#d9e1e8}.notice.success{background:#edf9f4;border-color:#d6eee3;color:#216d56}.notice.error{background:#fff0ed;border-color:#f2d4cd;color:#a33c2c}.notice a{color:inherit;font-weight:700;text-decoration:underline}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.skip{position:absolute;left:12px;top:-70px;background:white;padding:12px;z-index:100}.skip:focus{top:12px}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;flex:none;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:31px 20px 20px;z-index:30}.brand{display:flex;gap:12px;align-items:center;margin-bottom:45px;color:var(--navy);text-decoration:none}.brand:hover{text-decoration:none}.brand img{width:49px;height:49px;object-fit:contain}.brand strong{display:block;max-width:143px;font-size:15px;line-height:1.3;overflow-wrap:anywhere}.brand span{display:block;font-size:8px;font-weight:700;letter-spacing:1.4px;color:var(--muted);margin-top:6px}.workspace-label{font-size:9px;letter-spacing:1.7px;color:#9aa5b6;font-weight:750;padding-left:16px;margin-bottom:14px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px 14px;color:#748299;border-radius:10px;font-size:12px;font-weight:600;margin-bottom:5px}.nav-item:hover{text-decoration:none;background:#f6f8fb;color:var(--brand)}.nav-item.active{background:var(--brand-soft);color:var(--brand);position:relative}.nav-item.active:before{content:"";position:absolute;left:-20px;width:4px;height:25px;border-radius:0 3px 3px 0;background:var(--gold)}.nav-icon{font-family:"Segoe UI Symbol",sans-serif;font-size:20px;line-height:1;min-width:22px;text-align:center}.sidebar-bottom{margin-top:auto;padding-top:35px}.security-label{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px;padding:0 14px 19px;border-bottom:1px solid var(--line)}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--gold);flex:none}.user-chip{display:flex;align-items:center;gap:10px;margin-top:20px;padding:0 10px}.avatar{width:34px;height:34px;background:#eaf0fa;color:var(--brand);display:grid;place-items:center;border-radius:50%;font-size:13px;font-weight:700}.user-chip strong{font-size:11px;display:block;max-width:142px;overflow-wrap:anywhere}.user-chip small{font-size:9px;color:var(--muted);display:block;margin-top:2px}.logout{border:0;background:none;color:var(--muted);font-size:11px;padding:16px 12px 0;display:flex;justify-content:space-between;width:100%}.main-shell{margin-left:248px;width:calc(100% - 248px)}.topbar{height:76px;border-bottom:1px solid var(--line);background:#ffffffc9;display:flex;align-items:center;justify-content:space-between;padding:0 40px}.breadcrumb{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:13px}.breadcrumb strong{color:#46546b;font-weight:500}.breadcrumb span{color:#b8c2d0}.top-status{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted)}.top-status .status-dot{background:#65a28d}.topbar-left{display:flex;align-items:center;gap:16px}.menu-toggle{display:none;border:0;background:none;color:var(--brand);font-size:20px}.content{max-width:1610px;margin:auto;padding:36px 40px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-heading p.muted{font-size:12px;margin:0}.heading-actions{display:flex;gap:10px}.period-picker{display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);border-radius:11px;padding:6px}.period-picker input{border:0;background:none;min-height:30px;padding:7px 10px;max-width:160px;font-size:12px}.period-picker input[type=number]{max-width:95px}.period-picker label{margin:0 0 0 8px;font-size:11px}.period-strip{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.period-strip>div{display:flex;align-items:center;gap:13px}.period-strip .muted{font-size:11px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:21px}.kpi{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px 19px;position:relative;overflow:hidden}.kpi-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:21px;font-size:11px;font-weight:650;color:#718097}.kpi-symbol{display:grid;place-items:center;width:28px;height:28px;background:#f0f3f9;border-radius:8px;font-size:18px;color:var(--brand)}.incoming .kpi-symbol{background:#edf7f3;color:var(--green)}.outgoing .kpi-symbol{background:#fff0e9;color:var(--red)}.kpi-value{display:block;font-size:clamp(18px,1.85vw,31px);font-weight:720;letter-spacing:-.7px;line-height:1.2;white-space:nowrap}.kpi p{color:#647184;font-size:9px;margin:10px 0 0}.kpi.balance{background:var(--brand);border-color:var(--brand);color:white}.kpi.balance .kpi-top,.kpi.balance p{color:#d5e1fa}.kpi.balance .kpi-symbol{background:#ffffff21;color:white}.kpi.balance:after{content:"";position:absolute;width:80px;height:80px;border:18px solid #ffffff06;border-radius:50%;right:-22px;bottom:-27px}.opening-strip{display:flex;align-items:center;gap:15px;border:1px solid #e6ddcd;background:#f6f1e7;border-radius:13px;padding:16px 19px;margin-bottom:26px}.opening-icon{color:var(--brand);font-size:25px;width:28px;text-align:center}.opening-strip>div{flex:1}.opening-strip strong{font-size:11px}.opening-strip p{font-size:10px;color:var(--muted);margin:4px 0 0}.opening-strip .button{min-height:35px;font-size:10px;padding:8px 12px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:24px;box-shadow:0 2px 3px #15274902}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 24px 16px;gap:16px}.panel-heading h2{font-size:14px;margin:0}.panel-heading p{font-size:10px;color:var(--muted);margin:5px 0 0}.segmented{display:flex;padding:4px;background:#f3f5f9;border-radius:8px;gap:3px}.segmented button{border:0;border-radius:6px;padding:7px 10px;font-size:10px;color:var(--muted);background:none}.segmented button.selected{background:white;color:var(--brand);box-shadow:0 1px 4px #15274910;font-weight:650}.chart-wrap{height:285px;margin:10px 24px 0;position:relative}#cash-chart{display:block;width:100%;height:100%}.chart-tooltip{position:absolute;pointer-events:none;background:var(--navy);color:white;border-radius:8px;padding:8px 12px;font-size:11px;box-shadow:0 4px 12px #0002;z-index:1;white-space:nowrap}.chart-foot{display:flex;justify-content:space-between;padding:19px 25px;color:var(--muted);font-size:10px;align-items:center}.chart-foot>span{display:flex;align-items:center;gap:8px}.legend-line{display:inline-block;width:20px;height:3px;background:var(--brand);border-radius:4px}.two-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}th{font-size:9px;text-transform:uppercase;letter-spacing:.5px;color:#667487;font-weight:650;background:#fafbfd;white-space:nowrap;padding:13px 20px;border-bottom:1px solid var(--line)}td{padding:15px 20px;border-bottom:1px solid #f0f2f7;color:#53637a;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdff}td strong{color:var(--text);font-size:11px;font-weight:600}tfoot{background:#f0f4fc}tfoot td,tfoot th{font-weight:700;color:var(--navy);padding-top:18px;padding-bottom:18px}.number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.account-dot{display:inline-block;width:6px;height:6px;background:#a9bddd;border-radius:50%;margin-right:8px}.category-list{padding:6px 24px 18px}.category-item{margin-bottom:19px}.category-item>div{display:flex;justify-content:space-between;gap:16px;margin-bottom:7px;font-size:10px}.category-item span{color:#647184;max-width:64%}.category-item strong{font-size:11px;font-weight:600;white-space:nowrap}meter{display:block;width:100%;height:6px;border:0;background:#f0f3f8;border-radius:5px;overflow:hidden}meter::-webkit-meter-bar{background:#f0f3f8;border:0;border-radius:5px}meter::-webkit-meter-optimum-value{background:var(--gold);border-radius:5px}meter::-moz-meter-bar{background:var(--gold)}.data-note{display:flex;align-items:flex-start;gap:10px;color:#647184;font-size:10px;line-height:1.7;margin:2px 0 20px}.data-note p{margin:0}.data-note>span{font-size:16px;color:#94a7c6}.page-footer{font-size:9px;color:#697585;border-top:1px solid var(--line);padding:21px 0;margin-top:30px}.empty-state{text-align:center;padding:42px 20px 50px;color:var(--muted)}.empty-state>span{font-size:35px;color:#a7b9d5}.empty-state h3{margin:14px 0 9px}.empty-state p{font-size:12px}.empty-cell{padding:40px!important;text-align:center;color:var(--muted)}.balance-input{background:#eef2f5;border-color:#c2cfda;max-width:190px;min-width:135px;color:var(--brand);font-weight:650}.balance-table td{padding:13px 23px}.cell-sub{display:block;color:#667487;font-size:9px;margin-top:4px}.badge{display:inline-block;font-size:9px;font-weight:650;border-radius:5px;padding:5px 8px;white-space:nowrap}.badge.pending{background:#f5eddf;color:#765526}.badge.ok,.badge.incoming{background:#eaf6f0;color:#358571}.badge.outgoing{background:#fff0e9;color:#c07558}.form-footer{padding:19px 24px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.form-footer p{margin:0;font-size:11px}.filter-bar{display:flex;align-items:flex-end;gap:12px;margin:0 0 22px}.filter-bar label{margin:0;max-width:195px;font-size:10px}.filter-bar label.search-field{flex:1;max-width:none}.filter-bar input,.filter-bar select{font-size:11px;min-height:42px}.filter-bar input[type=month]{min-width:150px}.party-cell{min-width:210px;max-width:340px}.pagination{display:flex;align-items:center;justify-content:space-between;padding:19px 24px;border-top:1px solid var(--line);font-size:10px}.pagination>div{display:flex;gap:8px}.entry-form{max-width:880px;padding:29px}.entry-form .form-footer{padding:22px 0 0;margin-top:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.import-layout{grid-template-columns:1fr 1fr}.import-form,.import-guide,.settings-form,.import-preview{padding:30px}.upload-icon{display:grid;place-items:center;width:53px;height:53px;border-radius:14px;background:#eef2f5;color:var(--brand);font-size:29px;margin-bottom:22px}.import-form h2{font-size:22px}.import-form>p{margin-bottom:27px;font-size:12px}.file-input{border:1px dashed #b8c9e8;background:#f8faff;padding:20px;border-radius:12px}.file-input input{background:transparent;border:0;padding:10px 0;font-size:11px}.import-guide ol{list-style:none;counter-reset:steps;padding:0;margin:30px 0}.import-guide li{counter-increment:steps;position:relative;padding-left:43px;margin-bottom:27px}.import-guide li:before{content:counter(steps);position:absolute;left:0;top:0;background:#f5eddf;color:#765526;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700}.import-guide li strong{font-size:13px}.import-guide li p{font-size:11px;color:var(--muted);margin-top:4px}.import-guide .notice{font-size:11px;margin:0}.import-counts{display:flex;gap:60px;margin:30px 0}.import-counts strong{display:block;font-size:30px;color:var(--brand)}.import-counts span{color:var(--muted);font-size:12px}.import-preview .form-footer{padding:24px 0 0}.settings-form h2{margin-bottom:20px}.settings-form p{font-size:12px}.backup-panel{padding:27px;display:flex;align-items:center;justify-content:space-between;gap:25px}.backup-panel p{font-size:12px;margin-bottom:5px}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-story{background:var(--navy);color:#fff;padding:60px 12%;display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow:hidden}.auth-logo{width:78px;height:78px;object-fit:contain;margin-bottom:70px}.auth-story h1{font-size:clamp(40px,4.5vw,68px);line-height:1.1;letter-spacing:-2.5px;margin:30px 0 24px}.auth-story h1 span{color:var(--gold)}.auth-story>p{font-size:14px;line-height:1.9;color:#b6c8e5}.auth-footer{margin-top:auto;padding-top:55px;font-size:10px;color:#9eb3d5;display:flex;gap:9px;align-items:center}.auth-lines{display:flex;align-items:flex-end;gap:15px;width:90%;height:100px;margin:45px 0 25px}.auth-lines span{flex:1;background:#27445f4d;border-radius:7px 7px 0 0;height:35%}.auth-lines span:nth-child(2){height:55%;background:#27445f73}.auth-lines span:nth-child(3){height:45%;background:#27445f8c}.auth-lines span:nth-child(4){height:78%;background:var(--brand)}.auth-lines span:nth-child(5){height:100%;background:var(--gold)}.auth-form{display:grid;place-items:center;padding:48px}.auth-form-inner{width:100%;max-width:440px}.auth-form h2{font-size:30px;line-height:1.2;letter-spacing:-1px}.auth-form p.muted{font-size:13px;margin-bottom:32px}.auth-form label{margin-bottom:21px}.auth-form button{margin-top:8px;padding:13px 18px}.auth-form .auth-help{font-size:11px;color:#9aa7b9;text-align:center;margin:25px 0 0}.checkbox{display:flex;align-items:center;gap:10px;font-size:11px}.checkbox input{width:16px;min-height:auto;margin:0}.setup-message{max-width:680px;padding:50px;background:white;margin:10vh auto;border:1px solid var(--line);border-radius:20px}.setup-message img{margin-bottom:25px}.setup-message p{color:var(--muted)}
@media(min-width:1650px){.kpi-value{font-size:31px}}@media(max-width:1200px){.sidebar{width:222px;padding-left:16px;padding-right:16px}.main-shell{margin-left:222px;width:calc(100% - 222px)}.content{padding:28px 25px 0}.topbar{padding:0 25px}.kpi{padding:18px 16px}.kpi-value{font-size:21px}.two-columns{grid-template-columns:1fr}.filter-bar{flex-wrap:wrap}.filter-bar label.search-field{min-width:200px}.heading-actions{max-width:310px}.brand strong{max-width:125px}.auth-story{padding:45px 10%}}@media(max-width:900px){.sidebar{width:215px}.main-shell{margin-left:215px;width:calc(100% - 215px)}.kpi-grid{grid-template-columns:1fr 1fr}.kpi-value{font-size:25px}.page-heading{align-items:flex-start;flex-direction:column}.heading-actions{max-width:100%}.opening-strip{flex-wrap:wrap}.opening-strip .button{margin-left:43px}.panel-heading{padding:20px;align-items:flex-start}.segmented{flex-shrink:0}.auth-shell{grid-template-columns:.8fr 1fr}.auth-story{padding:35px}.auth-story h1{font-size:42px}.auth-form{padding:30px}.auth-form .form-grid{grid-template-columns:1fr}}@media(max-width:700px){h1{font-size:27px}.sidebar{transform:translateX(-100%);transition:transform .2s;width:248px;box-shadow:20px 0 50px #10233d20}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0;width:100%}.menu-toggle{display:block}.topbar{height:62px;padding:0 18px}.top-status{display:none}.content{padding:24px 17px 0}.page-heading{gap:19px;margin-bottom:22px}.period-strip>div{gap:8px;flex-wrap:wrap}.period-strip .muted{font-size:9px}.period-strip .text-link{font-size:10px}.kpi-grid{gap:12px;margin-bottom:16px}.kpi{padding:15px 14px}.kpi-top{font-size:10px;margin-bottom:14px}.kpi-value{font-size:clamp(17px,4.7vw,25px);letter-spacing:-.6px}.kpi p{font-size:8px}.kpi-symbol{width:22px;height:22px;font-size:15px}.opening-strip{padding:14px;gap:9px}.opening-strip strong{font-size:10px}.opening-strip p{font-size:10px}.opening-strip .button{margin-left:37px}.panel-heading{padding:18px 17px;flex-wrap:wrap;gap:12px}.panel-heading h2{font-size:14px}.segmented button{font-size:9px}.chart-wrap{height:230px;margin:0 10px}.chart-foot{padding:17px;font-size:9px}.chart-foot .text-link{font-size:10px}.two-columns{gap:0}.panel{margin-bottom:18px;border-radius:14px}td,th{padding-left:15px;padding-right:15px}th{font-size:9px}table{font-size:10px}.category-list{padding:4px 18px 16px}.form-footer{flex-direction:column;align-items:stretch;gap:12px;padding:19px}.form-grid{grid-template-columns:1fr}.entry-form{padding:22px}.import-form,.import-guide,.settings-form,.import-preview{padding:23px}.import-counts{gap:30px}.import-counts strong{font-size:26px}.import-counts span{font-size:10px}.filter-bar{display:grid;grid-template-columns:1fr 1fr}.filter-bar label{max-width:none}.filter-bar label.search-field{grid-column:1/-1;grid-row:1;min-width:0}.filter-bar .button{align-self:end}.pagination{padding:16px;gap:10px;flex-wrap:wrap}.backup-panel{padding:23px;flex-direction:column;align-items:flex-start}.auth-shell{display:block}.auth-story{padding:28px 28px 30px;min-height:200px}.auth-logo{width:49px;height:49px;margin-bottom:17px}.auth-story h1{font-size:33px;letter-spacing:-1px;line-height:1.2;margin:14px 0 0}.auth-story h1 br{display:none}.auth-story>p,.auth-lines,.auth-footer,.auth-story>.pill{display:none}.auth-form{padding:34px 25px}.auth-form h2{font-size:27px}.setup-message{margin:25px 15px;padding:30px}.balance-table{min-width:850px}.balance-table td{padding:11px 16px}.form-footer .button{min-height:45px}.data-note{font-size:10px}.topbar-left{gap:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media print{.sidebar,.topbar,.heading-actions,.page-footer,.button,.filter-bar{display:none!important}.main-shell{margin:0;width:100%}.content{padding:0}.panel,.kpi{break-inside:avoid}.kpi-grid{grid-template-columns:repeat(4,1fr)}body{background:#fff}.chart-wrap{height:220px}}

.cash-svg{display:block;width:100%;height:100%}.cash-svg[hidden]{display:none}.chart-grid{stroke:#edf0f6;stroke-dasharray:3 4}.chart-axis{font:11px Segoe UI,Arial;fill:#647184}.chart-area{fill:#27445f0d}.chart-line{fill:none;stroke:#27445f;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.chart-point{fill:#27445f;fill-opacity:0;stroke:none}.chart-point:hover{fill:#c5a16a;fill-opacity:1}.chart-point:last-child{fill:#c5a16a;fill-opacity:1}
/* RG Mentoria: a marca fica nas superfícies e detalhes; os números mantêm leitura clara. */
:root{--gold-light:#e1c695;--gold-dark:#765526;--sidebar-bg:#08121f}
.wizard-shell{max-width:790px;margin:48px auto;padding:0 22px}.wizard-brand{display:flex;align-items:center;gap:26px;margin-bottom:27px}.wizard-brand img{width:115px;height:115px;object-fit:contain;border-radius:12px}.wizard-brand h1{font-size:32px;margin:8px 0 10px}.wizard-brand p{color:var(--muted);font-size:13px;margin:0}.wizard-panel{padding:30px 36px}.wizard-panel h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:25px}.wizard-panel>p{font-size:13px}.wizard-steps{display:flex;gap:12px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:26px;font-size:12px;color:var(--muted)}.wizard-steps span{padding:7px 10px;border-radius:7px}.wizard-steps .current{background:#eee8dd;color:#765526;font-weight:700}.wizard-steps .done{color:#28644f}.wizard-footer{text-align:center;font-size:11px;color:var(--muted)}@media(max-width:700px){.wizard-shell{margin:22px auto;padding:0 17px}.wizard-brand{gap:15px}.wizard-brand img{width:78px;height:78px}.wizard-brand h1{font-size:24px}.wizard-brand p{font-size:11px}.wizard-panel{padding:24px 19px}.wizard-steps{gap:5px;font-size:10px}.wizard-steps span{padding:6px}.wizard-panel .form-grid{grid-template-columns:1fr}.wizard-panel h2{font-size:23px}}
body{font-family:"Segoe UI",Arial,sans-serif}
h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.8px;font-size:35px}
.sidebar{background:var(--sidebar-bg);border-right:1px solid #223144;padding-top:18px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#344354 var(--sidebar-bg)}
.brand{flex-direction:column;gap:5px;text-align:center;margin-bottom:25px;color:var(--gold-light)}
.brand img{width:170px;height:170px;object-fit:contain;border-radius:8px}
.brand strong{font-family:Georgia,"Times New Roman",serif;max-width:200px;font-size:21px;letter-spacing:.3px;font-weight:400}
.brand span{color:#b1b7c0;font-size:8px;letter-spacing:2px;margin-top:7px}
.workspace-label{color:#a3adba;font-size:9px;margin-bottom:12px}
.nav-item{color:#b9c3d0;font-size:12px;padding:11px 14px}
.nav-item:hover{background:#142438;color:#f1dfbf}
.nav-item.active{color:#ead0a3;background:linear-gradient(100deg,#b78b4929,#b78b490a);box-shadow:inset 0 0 0 1px #bc96592e}
.nav-item.active:before{width:3px;background:var(--gold)}
.sidebar-bottom{padding-top:28px}
.security-label{color:#aab7c5;border-color:#253143}
.avatar{background:#23344b;color:var(--gold-light);border:1px solid #bfa16d55}
.user-chip strong{color:#e1e6ed}.user-chip small,.logout{color:#aab7c5}
.logout:hover{color:#ead0a3}
.topbar{background:#fbfbf9;border-color:#e7e5df}
.eyebrow{color:var(--gold-dark);letter-spacing:2.2px}
.kpi,.panel{box-shadow:0 4px 18px #13233304;border-color:#e6e5df}
.kpi{border-radius:14px}.kpi-top{color:#5b697a}.kpi p{font-size:10px;color:#657285}
.kpi.balance{background:linear-gradient(125deg,#0b1929,#203950);border-color:#223b51;box-shadow:0 7px 20px #13233318}
.kpi.balance .kpi-value{color:#ead0a3}.kpi.balance .kpi-top,.kpi.balance p{color:#ced7e1}
.kpi.balance .kpi-symbol{color:#ead0a3;background:#c5a16a19;border:1px solid #c5a16a38}
.kpi.balance:after{border-color:#c5a16a09}
.button.primary{background:var(--navy);border-color:var(--navy);box-shadow:0 3px 9px #09192b12}
.button.primary:hover{background:#263d54;border-color:#263d54}
.button.accent{background:#e7d0a7;color:#3e301c;border-color:#d4b780}
.button.accent:hover{background:#dcc193}
.pill{background:#eee8dd;color:#775b31}.tiny-tag{background:#f1f2f3;color:#596778}
.opening-strip{border-left:3px solid #c5a16a;background:#f3efe7}.opening-icon{color:#8e6d39}
.opening-strip p{color:#657083}.opening-strip strong{font-size:12px}
.balance-input{background:#eef2f5;color:#243f59;border-color:#becbd8}
.segmented{background:#f1f2f2}.segmented button{color:#5c6a7b}.segmented button.selected{color:#203950}
.chart-axis{fill:#657285}.chart-line{stroke:#27445f}.chart-area{fill:#27445f0c}
.chart-point:hover,.chart-point:last-child{fill:#b68e50}
.account-dot{background:#bba378}.category-item span{color:#617083}
.category-item strong{color:#354557}
.notice{background:#f8f2e7;border-color:#e8dac1;color:#765a30}
.auth-shell{grid-template-columns:1.04fr 1fr;background:#fbfaf7}
.auth-story{background:radial-gradient(ellipse at 90% 100%,#1c3046 0%,#08121f 65%);padding:32px 12%;border-right:1px solid #b793562b}
.auth-logo{width:245px;height:245px;object-fit:contain;margin:0 0 12px;align-self:center;border-radius:12px}
.auth-story>.pill{background:#c5a16a0c;border:1px solid #c5a16a33;color:#dfc598;font-size:9px;letter-spacing:1.8px;padding:8px 12px}
.auth-story h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-1.3px;font-size:clamp(39px,4.3vw,62px);margin:24px 0 20px;line-height:1.12}
.auth-story h1 span{color:#dfc598}.auth-story>p{color:#b9c4d3;font-size:13px}
.auth-lines{height:54px;margin:22px 0 15px;width:78%;gap:10px;opacity:.75}
.auth-lines span{border-radius:2px 2px 0 0;background:#27445f55}
.auth-lines span:nth-child(2){background:#27445f88}.auth-lines span:nth-child(3){background:#27445fb3}
.auth-lines span:nth-child(4){background:#355572}.auth-lines span:nth-child(5){background:linear-gradient(0deg,#886636,#d6b581)}
.auth-footer{padding-top:20px;color:#b9c4d3}
.auth-form{padding:50px;background:#fbfaf7}.auth-form-inner{max-width:410px}
.auth-form h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:34px;letter-spacing:-.8px}
.auth-form label{font-size:12px}.auth-form input{border-color:#d8d9d8;background:#fff;min-height:48px}
.auth-form button{min-height:49px}.auth-form .auth-help{color:#697585}
.setup-message img{width:150px;height:150px;border-radius:12px}
@media(max-width:1200px){.brand img{width:156px;height:156px}.brand strong{max-width:180px}.auth-story{padding:30px 9%}}
@media(max-width:900px){.brand img{width:145px;height:145px}.auth-shell{grid-template-columns:1fr 1fr}.auth-story{padding:30px}.auth-logo{width:205px;height:205px}.auth-story h1{font-size:41px}.auth-form{padding:30px}}
@media(max-width:700px){
 h1{font-size:30px}.sidebar{padding-top:15px}.brand{margin-bottom:22px}.brand img{width:148px;height:148px}
 .auth-shell{display:block}.auth-story{padding:20px 25px 25px;min-height:0;align-items:center;text-align:center}
 .auth-logo{width:158px;height:158px;margin:0 0 5px}.auth-story h1{font-size:29px;margin:5px 0 0}
 .auth-story h1 br{display:none}.auth-story>.pill,.auth-lines,.auth-footer{display:none}
 .auth-form{padding:31px 25px}.auth-form h2{font-size:29px}
 .opening-strip{display:grid;grid-template-columns:25px 1fr}.opening-strip .button{grid-column:2;justify-self:start;margin-left:0}
 .opening-strip strong{font-size:11px}.kpi p{font-size:9px}.kpi-top{font-size:10px}
 .chart-wrap{height:auto;aspect-ratio:900/350}.cash-svg{height:auto;min-height:135px}
}
@media(max-height:760px) and (min-width:701px){.sidebar .brand img{width:130px;height:130px}.sidebar .brand{margin-bottom:18px}.sidebar-bottom{padding-top:16px}.sidebar .security-label{padding-bottom:10px}.sidebar .user-chip{margin-top:12px}}
@media print{.kpi.balance{background:#fff!important;border-color:#bba378!important}.kpi.balance .kpi-value,.kpi.balance .kpi-top,.kpi.balance p{color:#243447!important}}


/* --- Previsão de caixa: modo realizado / previsto / ambos --- */
.mode-switch{gap:2px}
.segmented a{display:inline-flex;align-items:center;border:0;border-radius:6px;padding:7px 11px;font-size:10px;font-weight:600;color:#5c6a7b;background:none;white-space:nowrap}
.segmented a:hover{text-decoration:none;color:var(--brand);background:#ffffff8c}
.segmented a.selected{background:#fff;color:#203950;box-shadow:0 1px 4px #15274910;font-weight:700}
.heading-actions{flex-wrap:wrap;align-items:center}
.notice.forecast-note{background:#f2f6fb;border-color:#d3e0ee;color:#33506f}
.badge.forecast{background:#eaf1f9;color:#3a5f86;border:1px solid #d2e0ee}
.row-forecast td{background:#fbfcfe}
.row-forecast td:first-child{box-shadow:inset 3px 0 0 #a9c3de}
tbody tr.row-forecast:hover td{background:#f5f9fd}
.inline-form{display:inline}
.text-link.danger{border:0;background:none;color:#a33c2c;padding:0;font-weight:650;font-size:12px;text-decoration:underline}
.text-link.danger:hover{color:#7d2c1f}
.import-counts{flex-wrap:wrap;gap:34px}
.import-counts strong{font-size:24px;line-height:1.2}
.import-preview .table-wrap{border:1px solid var(--line);border-radius:12px;margin-top:8px}
.import-preview .notice{margin-bottom:16px}
@media(max-width:900px){.heading-actions{gap:8px}.mode-switch{width:100%}.segmented a{flex:1;justify-content:center}}
@media(max-width:700px){.import-counts{gap:20px}.import-counts strong{font-size:20px}.segmented a{font-size:9px;padding:7px 6px}}
