:root{--bg:#f4f7fa;--panel:#fff;--text:#182f40;--muted:#7c8c9c;--border:#e5edf2;--accent:#078f7b;--accent-light:#e8faf5;--sidebar:#102d3f;--shadow:0 8px 30px rgba(23,53,74,.035);--input:#fff;--bright:#f9fbfc}
[data-theme=dark]{--bg:#101b25;--panel:#192b38;--text:#f4fafb;--muted:#9fb3bd;--border:#29424f;--accent:#22c7a5;--accent-light:#193f3a;--sidebar:#0b1923;--shadow:none;--input:#162632;--bright:#1e3541}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:'Segoe UI',system-ui,-apple-system,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.54}.svg-symbols{position:absolute;width:0;height:0;overflow:hidden}.icon{display:inline-block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}img{max-width:100%}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:'Segoe UI',sans-serif;letter-spacing:-.035em}small{font-size:12px}.subdued{color:var(--muted)}.overline,.eyebrow{font-size:11px;letter-spacing:.20em;font-weight:800;color:var(--accent)}.brand{display:flex;align-items:center;gap:12px;font-size:25px;font-family:'Segoe UI',sans-serif;font-weight:800;letter-spacing:-.06em;white-space:nowrap}.brand img{width:45px;height:45px;object-fit:contain}.brand-accent{color:#32d5af}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid transparent;border-radius:12px;padding:11px 16px;font-size:13px;font-weight:800;transition:transform .15s,background .15s,box-shadow .15s;white-space:nowrap}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn-primary{background:#0c9f8a;color:white;box-shadow:0 8px 18px rgba(7,159,136,.14)}.btn-primary:hover:not(:disabled){background:#087e70}.btn-outline{border-color:var(--border);background:var(--panel);color:var(--text)}.btn-outline:hover:not(:disabled){background:var(--bright)}.btn-danger{background:#d9565e;color:white}.btn-full{width:100%}.text-link{font-weight:800;font-size:13px;color:var(--accent)}.text-link:hover{text-decoration:underline}.right{text-align:right}.alert{display:flex;align-items:center;gap:10px;padding:15px 19px;margin-bottom:22px;font-size:13px;border-radius:13px;background:#e7f7f0;color:#087c63;border:1px solid #cbecdd}.alert.error{color:#aa3f44;background:#fff0f1;border-color:#f4d1d4}.alert.info{color:#347a9b;background:#e8f4fb;border-color:#d1e8f5}
/* Authentication */
.auth-body{min-height:100vh;background:#fff}.auth-shell{display:grid;grid-template-columns:minmax(370px,.99fr) minmax(400px,1.01fr);min-height:100vh}.auth-hero{background:radial-gradient(ellipse at 88% 89%,rgba(71,210,174,.17),transparent 43%),linear-gradient(135deg,#0e3549 0%,#092734 75%);color:#fff;display:flex;flex-direction:column;justify-content:space-between;gap:60px;padding:clamp(30px,6vw,90px);position:relative;overflow:hidden}.auth-hero:after{content:'';position:absolute;width:400px;height:400px;border:1px solid rgba(82,220,185,.15);border-radius:50%;right:-170px;bottom:8%}.auth-hero .brand{align-self:start;color:white}.auth-hero .brand img{width:52px;height:52px}.auth-hero .eyebrow{color:#72dec4}.auth-hero h1{font-size:clamp(38px,4vw,64px);line-height:1.17;margin:22px 0 24px;font-weight:800;max-width:650px}.auth-hero h1 em{font-style:normal;color:#49d8b0}.auth-hero p{color:#b6cad4;line-height:1.9;font-size:16px;max-width:465px}.hero-metrics{display:flex;flex-wrap:wrap;gap:13px 30px;font-weight:600;font-size:12px;color:#b4d6d5}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px 24px;background:#fff;color:#193443}.auth-form-panel{width:min(100%,450px)}.auth-form-panel h2{font-size:clamp(26px,3vw,34px);margin:14px 0 9px}.auth-form-panel .subdued{line-height:1.6;margin-bottom:28px}.form-stack{display:flex;flex-direction:column;gap:18px}.form-stack label,.form-grid label{display:flex;flex-direction:column;gap:8px;color:var(--text);font-weight:700;font-size:12px}.auth-form-panel label{color:#263d4a}.auth-body input,.auth-body select{background:white;color:#1b3543;border:1px solid #dde6ed}.auth-body .btn-primary{margin-top:7px;min-height:52px}.auth-switch{text-align:center;margin-top:24px;font-size:13px;color:#758a96}.auth-switch a{color:#048974;font-weight:800}.auth-legal{display:block;color:#94a5b0;text-align:center;margin-top:65px}
/* Shared inputs */
input,select,textarea{min-width:0;width:100%;background:var(--input);color:var(--text);border:1px solid var(--border);border-radius:11px;outline:none;padding:12px 14px;min-height:45px;transition:border-color .15s,box-shadow .15s}textarea{resize:vertical;min-height:70px}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(21,175,149,.1)}input[type=file]{padding:9px}input[type=month]{width:auto}input[type=number]{font-variant-numeric:tabular-nums}
/* App shell */
.app-shell{display:flex;min-height:100vh}.sidebar{width:260px;position:fixed;inset:0 auto 0 0;background:var(--sidebar);padding:29px 18px;display:flex;flex-direction:column;z-index:30;color:#c4d5dd;overflow-y:auto}.sidebar .brand{color:white;margin:4px 12px 47px}.side-caption{font-size:10px;letter-spacing:.17em;font-weight:800;color:#7c99a9;padding-left:16px;margin-bottom:14px}.side-caption.lower{margin-top:35px}.side-nav{display:grid;gap:6px}.nav-link{display:flex;align-items:center;gap:12px;border-radius:12px;padding:13px 15px;color:#aabfc8;font-size:13px;font-weight:700;transition:background .16s,color .16s}.nav-link .icon{width:19px;height:19px}.nav-link:hover{background:rgba(255,255,255,.07);color:#fff}.nav-link.active{color:#fff;background:linear-gradient(110deg,#0a917f,#098272);box-shadow:0 7px 20px rgba(2,20,26,.14)}.sidebar-foot{margin-top:auto;padding:30px 8px 0;color:#829ba9;font-size:11px}.side-note{padding:18px;border:1px solid rgba(168,229,211,.10);border-radius:16px;margin-bottom:22px;background:linear-gradient(140deg,rgba(48,190,154,.13),rgba(31,82,89,.08))}.side-note strong{color:#e1f5ed;font-size:13px}.side-note p{line-height:1.6;margin-top:8px;font-size:11px}.note-orb{width:28px;height:28px;border-radius:10px;background:#2cd5aa;display:block;margin-bottom:15px;box-shadow:0 0 0 6px rgba(48,190,154,.12)}.app-content{flex:1;margin-left:260px;min-width:0;display:flex;flex-direction:column}.topbar{height:82px;display:flex;justify-content:space-between;align-items:center;background:var(--panel);border-bottom:1px solid var(--border);padding:0 40px;gap:20px}.topbar-start,.topbar-end{display:flex;align-items:center;gap:22px}.topbar-breadcrumb{font-size:11px;letter-spacing:.07em;color:var(--muted);font-weight:700}.topbar-breadcrumb strong{color:var(--text)}.top-user{display:flex;align-items:center;gap:11px;font-weight:800;font-size:13px;max-width:210px}.avatar{width:44px;height:44px;min-width:44px;border-radius:50%;object-fit:cover;overflow:hidden}.avatar-fallback{display:flex;align-items:center;justify-content:center;background:linear-gradient(120deg,#cff7eb,#b8dce9);color:#075963;font-size:16px;font-weight:800}.icon-button{background:transparent;color:var(--muted);border:1px solid var(--border);border-radius:12px;width:41px;height:41px;display:inline-grid;place-items:center}.icon-button:hover{color:var(--accent)}.menu-trigger{display:none}.clock{font-size:12px;font-weight:800;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}.main-content{width:100%;max-width:1640px;margin:0 auto;padding:37px 40px 50px;flex:1}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading .overline{margin-bottom:10px}.page-heading h1{font-size:clamp(26px,2.7vw,36px);line-height:1.23;margin-bottom:10px}.page-heading p:not(.overline){font-size:13px;color:var(--muted);line-height:1.6}.suspended-banner{display:flex;gap:15px;align-items:center;background:#fff2da;border:1px solid #f2d4a1;color:#754d1c;padding:18px;border-radius:16px;margin-bottom:25px}.suspended-banner p{margin-top:5px;font-size:13px;line-height:1.5}.suspended-banner .btn{margin-left:auto;flex-shrink:0}
/* Dashboard */
.overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card{min-width:0;background:var(--panel);border:1px solid var(--border);border-radius:17px;padding:23px 21px;box-shadow:var(--shadow)}.stat-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:700;font-size:12px;color:var(--muted);margin-bottom:25px}.stat-head .icon{width:19px;height:19px}.stat-card>strong{font-family:'Segoe UI',sans-serif;font-weight:800;font-size:clamp(20px,2vw,30px);letter-spacing:-.04em;display:block;white-space:nowrap}.stat-card>small{display:block;color:var(--muted);margin-top:9px;font-size:11px}.stat-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px}.stat-icon.coral{background:#ffebed;color:#d86669}.stat-icon.cyan{background:#e5f8f7;color:#079d94}.stat-icon.amber{background:#fff4e4;color:#e1a746}.stat-primary{color:#fff;background:linear-gradient(130deg,#0b9b83,#087466);border:none}.stat-primary .stat-head,.stat-primary>small{color:#daf9ed}.wallet-inline{border-top:1px solid rgba(255,255,255,.20);margin-top:17px;padding-top:14px;display:flex;gap:7px;align-items:end}.wallet-inline label{font-size:10px;font-weight:700;color:#e1fff3;display:block;flex:1;min-width:0}.wallet-inline input{height:32px;min-height:32px;border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.15);color:white;padding:6px 7px;font-size:12px;border-radius:7px;margin-top:4px}.wallet-inline button{background:#fff;color:#047c69;font-size:10px;font-weight:800;border:0;border-radius:7px;height:32px;padding:0 8px}.chart-grid{display:grid;grid-template-columns:1.07fr .93fr;gap:18px;margin-bottom:20px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:17px;padding:25px;min-width:0;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:22px}.panel-head h2{font-size:16px;letter-spacing:-.028em;margin:0}.panel-head p{color:var(--muted);font-size:12px;margin-top:7px;line-height:1.5}.panel-head>.icon{color:var(--accent)}.bar-chart{height:212px;display:flex;gap:12px;align-items:flex-end;padding:8px 10px 0}.bar-column{display:flex;flex:1;align-items:center;flex-direction:column;min-width:0;gap:10px}.bar-track{position:relative;width:100%;height:180px;display:flex;justify-content:center;align-items:flex-end;border-bottom:1px solid var(--border)}.bar-fill{width:min(45px,65%);display:block;background:linear-gradient(180deg,#4ed7b0,#0e967c);border-radius:9px 9px 3px 3px;min-height:0;transition:height .2s;position:relative}.bar-fill:hover{filter:saturate(1.5)}.bar-column small{color:var(--muted);font-weight:700}.chart-foot{border-top:1px solid var(--border);margin-top:20px;padding-top:14px;color:var(--muted);font-size:12px}.chart-foot strong{color:var(--text)}.month-input{max-width:145px;min-height:37px;font-size:11px;font-weight:700;padding:8px}.donut-layout{min-height:202px;display:flex;align-items:center;justify-content:center;gap:24px}.donut{width:190px;height:190px;border-radius:50%;display:grid;place-items:center;flex:0 0 190px}.donut-hole{width:69%;height:69%;border-radius:50%;background:var(--panel);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:8px;gap:5px}.donut-hole span{font-size:10px;color:var(--muted)}.donut-hole strong{font-size:16px;letter-spacing:-.02em}.donut-legend{flex:1;min-width:0;display:grid;gap:12px}.donut-legend>div{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:11px}.donut-legend>div span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.donut-legend strong{color:var(--text);font-size:11px}.legend-dot{width:9px;height:9px;border-radius:50%;flex:none}.chart-empty{margin:auto;max-width:330px;display:flex;flex-direction:column;gap:9px;align-items:center;text-align:center;color:var(--muted)}.chart-empty .icon{color:var(--accent)}.chart-empty strong{color:var(--text)}.chart-empty p{line-height:1.6;font-size:12px}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.compact-list{display:flex;flex-direction:column}.compact-item{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid var(--border);min-width:0}.compact-item:last-child{border:0}.item-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.coral-dot{background:#ed7d83}.teal-dot{background:#1aa990}.compact-details{min-width:0;flex:1}.compact-details strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-details small{display:block;color:var(--muted);margin-top:6px}.compact-value{font-weight:800;font-size:13px;white-space:nowrap}
/* forms, tables */
.entry-form-panel{margin-bottom:22px;scroll-margin-top:25px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}.form-grid .span-2{grid-column:span 2}.form-actions{display:flex;gap:10px;margin-top:3px}.form-actions .btn{min-width:190px}.table-panel{padding:25px 0}.table-panel>.panel-head,.table-panel>.filter-bar{margin-left:25px;margin-right:25px}.counter{color:var(--accent);background:var(--accent-light);padding:7px 11px;border-radius:20px;white-space:nowrap;font-size:11px;font-weight:800}.filter-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:19px}.filter-bar .search-wrap{position:relative;min-width:220px;flex:1}.search-wrap .icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--muted);width:18px}.search-wrap input{padding-left:42px}.filter-bar select{width:auto;min-width:135px}.filter-bar input[type=month]{width:auto}.filter-bar .btn{min-height:45px}.table-scroll{overflow-x:auto;scrollbar-color:#cfdbdf transparent}.data-table{width:100%;border-collapse:collapse;min-width:740px}.data-table th{text-align:left;font-size:10px;font-weight:800;letter-spacing:.10em;color:var(--muted);background:var(--bright);padding:16px 22px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.data-table td{padding:17px 22px;font-size:12px;border-bottom:1px solid var(--border);vertical-align:middle}.data-table td strong{display:block;font-size:12px}.data-table td small{display:block;color:var(--muted);margin-top:5px}.data-table tbody tr:hover{background:var(--bright)}.amount-cell{font-weight:800;white-space:nowrap}.badge{display:inline-flex;padding:7px 11px;font-size:10px;border-radius:24px;font-weight:800;white-space:nowrap}.badge.success{background:#ddf8ed;color:#118965}.badge.warning{background:#fff2d4;color:#b9811b}.badge.danger{background:#ffe8e7;color:#c65a62}.badge.quiet{background:#edf2f6;color:#778995}.action-group{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.inline-form{display:inline-flex}.mini-link{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--accent);padding:7px 6px;font-size:11px;font-weight:800;white-space:nowrap}.mini-link.delete{color:#d86d74}.mini-link:hover{text-decoration:underline}.table-empty{text-align:center!important;color:var(--muted);padding:37px!important}.table-footnote{color:var(--muted);font-size:11px;padding:18px 25px 0;line-height:1.5}
/* people */
.person-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.person-tile{border:1px solid var(--border);border-radius:15px;padding:20px;min-width:0}.person-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:20px}.person-avatar{height:46px;width:46px;border-radius:14px;display:grid;place-items:center;background:var(--accent-light);color:var(--accent);font-weight:800}.person-tile h3{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-tile p{font-size:12px;color:var(--muted);margin:7px 0 22px}.person-info{border-top:1px solid var(--border);padding-top:15px;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.person-info strong{color:var(--text);font-size:13px}.person-links{display:flex;gap:18px;margin-top:18px}.empty-state{padding:28px;text-align:center;color:var(--muted);font-size:13px;line-height:1.6}
/* profile */
.profile-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.profile-panel h2{font-size:17px;margin-bottom:20px}.profile-avatar-row{display:flex;gap:20px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:22px;margin-bottom:24px}.profile-avatar{height:90px;width:90px;object-fit:cover;border-radius:22px;flex:none}.profile-placeholder{display:grid;place-items:center;background:var(--accent-light);color:var(--accent);font-weight:800;font-size:28px}.profile-avatar-row strong{font-size:15px}.profile-avatar-row p{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.5}.security-note{border-top:1px solid var(--border);padding-top:20px;display:flex;gap:10px;margin-top:25px;color:var(--muted);line-height:1.5;font-size:12px}
/* admin */
.admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}.admin-summary .stat-head{margin-bottom:15px}.admin-details{min-width:220px}.admin-details summary{color:var(--accent);cursor:pointer;font-weight:800}.admin-action-form{margin-top:15px;gap:10px}.admin-action-form .btn{min-height:37px}.audit-list{display:grid;gap:12px;font-size:12px}.audit-list>div{padding:12px 0;border-bottom:1px solid var(--border)}.audit-list small{color:var(--muted);display:block;margin-top:4px}
/* Receipt */
.receipt-body{background:#eeeae2}.receipt-shell{max-width:850px;margin:34px auto 60px;padding:0 15px}.receipt-tools{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:17px}.receipt-paper{background:#fffdf8;color:#23394b;border:1px solid #ded6c5;box-shadow:0 12px 44px rgba(66,51,30,.11)}.receipt-top{padding:25px 32px;background:#f7f5ee;border-bottom:2px dashed #c9c1ad;display:flex;align-items:center;justify-content:space-between}.receipt-brand{display:flex;align-items:center;gap:9px;font-size:24px;font-weight:800;letter-spacing:-.05em;color:#137e73}.receipt-brand img{width:38px;height:38px}.receipt-no{font-size:12px;letter-spacing:.06em;color:#6d695d}.receipt-no strong{display:block;font-size:17px;color:#23394b;margin-top:5px}.receipt-main{padding:40px 45px}.receipt-main h1{font-size:22px;letter-spacing:.08em;margin-bottom:27px}.receipt-value{background:#edf8f3;border:1px solid #d5e9e1;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;margin-bottom:28px}.receipt-value span{font-size:12px;letter-spacing:.08em;color:#457364;font-weight:800}.receipt-value strong{font-size:26px;color:#06745f}.receipt-main>p{line-height:2;font-size:15px}.receipt-details{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:30px;padding-top:25px;border-top:1px solid #dbe2df}.receipt-details>div small{color:#7b8a8d;font-size:11px;letter-spacing:.08em;display:block;margin-bottom:8px}.receipt-details strong{font-size:15px}.receipt-sign{padding:60px 0 25px;max-width:320px;margin:0 auto;text-align:center}.receipt-sign span{display:block;border-bottom:1px solid #6f7a77}.receipt-sign small{display:block;margin-top:8px;color:#7a8888}.receipt-disclaimer{font-size:11px!important;color:#8a9590;line-height:1.6!important}.receipt-footer{text-align:center;background:#f7f5ee;border-top:1px solid #ece6dc;padding:16px;font-size:11px;color:#85877b}.receipt-hint{margin-top:15px;color:#776d5e;font-size:12px;line-height:1.6}
/* footer & support */
.footer{padding:24px 40px;border-top:1px solid var(--border);display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:var(--muted);font-size:10px;line-height:1.5}.footer strong{color:var(--text)}.support-float{position:fixed;right:23px;bottom:22px;z-index:40;background:#0a9d80;color:#fff;border-radius:50px;padding:10px 18px 10px 11px;display:flex;align-items:center;gap:9px;box-shadow:0 12px 30px rgba(5,102,81,.22);font-size:12px}.support-float>span{display:grid;place-items:center;background:rgba(255,255,255,.20);height:31px;width:31px;border-radius:50%;font-size:18px;font-weight:800}.nav-backdrop{display:none}
@media(min-width:1750px){.overview-grid{gap:22px}.chart-grid{gap:24px}}
@media(max-width:1320px){.sidebar{width:235px}.app-content{margin-left:235px}.topbar{padding:0 24px}.main-content{padding:32px 25px}.overview-grid{gap:11px}.stat-card{padding:20px 16px}.donut{width:156px;height:156px;flex-basis:156px}.donut-hole strong{font-size:14px}.donut-layout{gap:14px}.panel{padding:21px}.table-panel>.panel-head,.table-panel>.filter-bar{margin-left:21px;margin-right:21px}}
@media(max-width:1050px){.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-grid{grid-template-columns:1fr}.bottom-grid{grid-template-columns:1fr}.person-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.donut{width:180px;height:180px;flex-basis:180px}.profile-grid{grid-template-columns:1fr}.stat-card>strong{font-size:27px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s ease;width:min(280px,80vw)}.sidebar.is-open{transform:translateX(0)}.nav-backdrop.is-visible{display:block;position:fixed;inset:0;background:#0007;z-index:20}.app-content{margin-left:0}.menu-trigger{display:inline-grid}.topbar{height:70px;padding:0 17px}.topbar-start{gap:12px}.topbar-end{gap:12px}.topbar-breadcrumb{font-size:10px}.top-user>span:not(.avatar){display:none}.clock{display:none}.main-content{padding:26px 16px 36px}.page-heading{align-items:flex-start;flex-direction:column;gap:14px}.page-heading .btn{min-width:155px}.page-heading h1{font-size:28px}.footer{padding:22px 16px 75px;align-items:flex-start;flex-direction:column}.auth-shell{grid-template-columns:1fr}.auth-hero{padding:24px;min-height:auto;gap:24px}.auth-hero h1{font-size:30px;margin:14px 0}.auth-hero p{font-size:13px}.hero-metrics{display:none}.auth-hero .brand{font-size:20px}.auth-form-wrap{padding:40px 22px 75px}.auth-legal{margin-top:40px}.suspended-banner{flex-wrap:wrap}.suspended-banner .btn{margin-left:0}.person-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.overview-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:17px 13px}.stat-card>strong{font-size:clamp(15px,4.3vw,21px)}.stat-head{font-size:10px;margin-bottom:16px}.stat-head .icon{width:15px}.stat-card>small{font-size:10px}.wallet-inline{flex-wrap:wrap}.wallet-inline button{width:100%}.panel{padding:18px 14px}.panel-head h2{font-size:15px}.chart-grid,.bottom-grid{gap:15px}.donut-layout{flex-direction:column;align-items:center;min-height:0}.donut{width:170px;height:170px;flex:0 0 170px}.donut-legend{width:100%}.bar-chart{gap:6px;padding:5px 0 0}.bar-fill{width:65%}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:span 1}.form-actions .btn{width:100%}.filter-bar .search-wrap{min-width:100%;flex-basis:100%}.filter-bar select,.filter-bar input[type=month]{flex:1;min-width:0}.filter-bar .btn{flex:1}.person-grid{grid-template-columns:1fr}.person-top{margin-bottom:12px}.profile-avatar-row{gap:13px}.profile-avatar{height:74px;width:74px}.admin-summary{grid-template-columns:1fr 1fr}.admin-summary .stat-card:last-child{grid-column:span 2}.topbar-breadcrumb{max-width:138px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-user .avatar{width:40px;height:40px;min-width:40px}.receipt-main{padding:25px 18px}.receipt-top{padding:20px}.receipt-main h1{font-size:18px}.receipt-value{padding:16px;flex-direction:column;align-items:flex-start}.receipt-details{grid-template-columns:1fr}.receipt-tools{justify-content:flex-start}.receipt-tools .btn{flex:1;font-size:11px;white-space:normal}.support-float{bottom:13px;right:13px;padding:8px 11px}.support-float b{display:none}}
@media print{.no-print,.support-float{display:none!important}body.receipt-body{background:#fff}.receipt-shell{padding:0;margin:0;max-width:100%}.receipt-paper{box-shadow:none;border:1px solid #ddd}.receipt-main{padding:30px}.receipt-top,.receipt-footer{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* ClariFin 1.1: assinaturas, recibos e ações de sessão */
.logout-side-form{padding:8px 15px}.logout-nav{width:100%;cursor:pointer;text-align:left;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.06);font:inherit;color:#d9f1ee}.logout-nav:hover{background:rgba(255,255,255,.13)}
.logout-top-form{display:flex;align-items:center}.logout-top{color:var(--text)}
.subscription-mini{display:flex;flex-wrap:wrap;gap:7px;align-items:center;color:var(--accent);font-size:12px;margin:0 0 21px;padding:10px 15px;border-radius:10px;border:1px solid var(--border);background:var(--panel)}.subscription-mini span{color:var(--muted)}
.suspended-banner{border-radius:14px;padding:16px 20px;display:flex;align-items:center;gap:12px;font-weight:700;margin:0 0 22px;background:#fff5e9;color:#815214;border:1px solid #f1d4a7}.suspended-banner p{font-size:13px;line-height:1.5}
.receipts-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(230px,.75fr);gap:20px;margin-bottom:22px}.receipt-editor .panel-head{margin-bottom:20px}.receipt-editor textarea{min-height:82px}.receipt-help{display:flex;flex-direction:column;align-items:flex-start;gap:15px;align-self:start}.receipt-help h2{font-size:20px}.receipt-help p{font-size:14px;color:var(--muted);line-height:1.6}.receipt-help small{color:var(--muted);line-height:1.6}.receipt-help-icon{width:56px;height:56px;border-radius:17px;display:grid;place-items:center;color:var(--accent);background:var(--accent-light)}.receipt-help-step{border-top:1px solid var(--border);width:100%;display:flex;gap:12px;padding:14px 0;font-size:13px}.receipt-help-step b{color:var(--accent)}
.receipt-review-card{max-width:820px;margin:0 auto 22px;background:#fffdf7;color:#203849;border:1px solid #e2dbcb;border-radius:16px;box-shadow:0 18px 45px rgba(21,41,37,.08);overflow:hidden}.receipt-review-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 34px;background:#f5f4ed;border-bottom:2px dashed #c9c5b5}.receipt-review-logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:25px;color:#078d78}.receipt-review-number{text-align:right;color:#71756e;font-size:12px;line-height:1.7;letter-spacing:.1em}.receipt-review-number strong{color:#223647;font-size:17px}.receipt-review-content{padding:36px}.receipt-review-content h2{font-size:28px;margin:8px 0 24px}.receipt-review-total{background:#eaf7f0;border:1px solid #c4e8db;border-radius:15px;padding:23px 26px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}.receipt-review-total span{color:#327767;font-size:12px;letter-spacing:.07em;font-weight:800}.receipt-review-total strong{font-size:28px;color:#007d65}.receipt-declaration{font-size:16px;line-height:2;margin:24px 0}.receipt-review-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:24px 0;border-top:1px solid #e4e5de}.receipt-review-fields>div{min-width:0;word-break:break-word}.receipt-review-fields small{display:block;color:#81918e;margin-bottom:5px}.receipt-review-fields strong{font-size:14px}.receipt-extra{font-size:13px;color:#536661;margin-top:10px}.receipt-signature-line{width:min(100%,330px);text-align:center;margin:50px auto 22px}.receipt-signature-line span{display:block;border-bottom:1px solid #788580;height:1px}.receipt-signature-line small{display:block;color:#7e8f8a;margin-top:9px}.receipt-toolbar{max-width:820px;margin:0 auto;display:flex;gap:10px;flex-wrap:wrap;align-items:center}.receipt-toolbar .inline-form{display:inline-flex}.receipt-sharing-note{max-width:820px;margin:16px auto 35px;font-size:12px;line-height:1.6;color:var(--muted)}
.admin-details{margin-bottom:10px}.admin-details summary{display:flex;gap:6px;align-items:center}.admin-action-form input,.admin-action-form select{max-width:280px}.admin-action-form .btn{white-space:normal}
@media(max-width:970px){.receipts-layout{grid-template-columns:1fr}.receipt-help{display:none}}@media(max-width:570px){.receipt-review-heading{padding:18px}.receipt-review-content{padding:20px}.receipt-review-content h2{font-size:23px}.receipt-review-fields{grid-template-columns:1fr}.receipt-review-total{padding:17px}.receipt-review-total strong{font-size:25px}.receipt-toolbar .btn,.receipt-toolbar .inline-form{width:100%}.receipt-toolbar .inline-form button{width:100%}}

/* ClariFin 1.2 - assinatura em todas as telas / suporte / exclusão segura */
.suspended-banner{align-items:flex-start;gap:14px}
.suspended-body{min-width:0;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.suspended-body p{margin:0;color:inherit}
.suspended-contact,.subscription-help{color:#07694e;text-decoration:underline;text-underline-offset:3px;font-size:12px;font-weight:800}
.subscription-status{padding:15px 18px;display:flex;align-items:center;gap:13px}
.subscription-status-details{display:flex;min-width:0;flex-direction:column;gap:5px}
.subscription-status-details>strong{font-size:13px}
.subscription-status-details>span{line-height:1.5}
.subscription-expired{border-color:#f1d4a7;background:#fff9f1;color:#8b561a}
.subscription-help{margin-left:auto;white-space:nowrap}
.plan-profile-panel{margin:0 0 22px}
.plan-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}
.plan-profile-grid>div{background:var(--bg);border:1px solid var(--border);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:10px;min-width:0}
.plan-profile-grid small{color:var(--muted);font-size:12px}
.plan-profile-grid strong{font-size:18px;overflow-wrap:anywhere}
.admin-danger-details{border:1px solid #eccaca;padding:12px;border-radius:12px;background:#fff7f7}
.admin-danger-details summary{color:#a92a37!important;cursor:pointer}
.admin-danger-note{font-size:12px;color:#a32935;line-height:1.5}
.admin-delete-check{display:flex!important;flex-direction:row!important;gap:9px;align-items:start;color:#80303a;font-size:12px;line-height:1.5}
.admin-delete-check input{min-width:18px;width:18px;height:18px;flex:0 0 18px}
.admin-danger-details .admin-action-form{padding-top:14px}
@media(max-width:700px){.plan-profile-grid{grid-template-columns:1fr}.subscription-status{align-items:flex-start;flex-wrap:wrap}.subscription-help{margin:0}.suspended-contact{line-height:1.7}}

/* Recibo horizontal A4 - ClariFin 1.2 */
.receipt-landscape{width:100%;max-width:1140px;background:#fff;color:#213641;border:1px solid #dce9e6;border-radius:20px;box-shadow:0 20px 55px rgba(10,37,45,.12);overflow:hidden;margin:0 auto 22px}
.receipt-landscape .receipt-review-heading{background:#093b40;color:white;display:flex;justify-content:space-between;gap:20px;border:0;border-bottom:5px solid #19cba1;padding:26px 36px}
.receipt-landscape .receipt-review-logo{color:#fff;font-size:25px;gap:12px}
.receipt-landscape .receipt-review-logo>div{display:flex;flex-direction:column;gap:3px}
.receipt-landscape .receipt-review-logo small{font-size:10px;letter-spacing:.1em;color:#b2ded4;font-weight:700}
.receipt-mark{width:46px;height:46px;border-radius:11px;background:#1ab08d;color:#fff;display:grid;place-items:center;font-size:17px;font-weight:900;letter-spacing:-1px}
.receipt-landscape .receipt-review-number{color:#a3dacf;font-size:12px;line-height:1.5;font-weight:800;letter-spacing:.07em}
.receipt-landscape .receipt-review-number strong{font-size:21px;letter-spacing:0;display:block;color:#fff}
.receipt-landscape .receipt-review-number small{font-size:11px;color:#c5e8e1;display:block}
.receipt-landscape .receipt-review-content{padding:28px 36px 22px}
.receipt-landscape .receipt-review-total{background:#edf9f4;border:0;border-left:5px solid #13b288;border-radius:13px;padding:22px 25px;gap:15px}
.receipt-landscape .receipt-review-total>div{display:flex;flex-direction:column;gap:7px}
.receipt-landscape .receipt-review-total span{color:#367366;font-size:11px}
.receipt-landscape .receipt-review-total small{color:#536c65;font-size:12px}
.receipt-landscape .receipt-review-total strong{font-size:31px;color:#08755b;white-space:nowrap}
.receipt-parties{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0;padding-bottom:20px;border-bottom:1px solid #e1e9e6}
.receipt-parties>div{display:flex;flex-direction:column;gap:7px;min-width:0;word-break:break-word}
.receipt-parties small,.receipt-purpose small,.receipt-notes small{font-size:11px;letter-spacing:.07em;color:#708580;font-weight:800}
.receipt-parties strong{font-size:18px;color:#163a3c}
.receipt-parties span{font-size:12px;color:#627577}
.receipt-landscape .receipt-review-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0 0 22px;margin:0;border:none}
.receipt-landscape .receipt-review-fields strong{font-size:14px;display:block}
.receipt-purpose{background:#f7faf9;border-radius:12px;padding:16px 18px;margin-bottom:12px;overflow-wrap:anywhere}
.receipt-purpose p{font-size:14px;line-height:1.6;margin:10px 0 0;white-space:normal}
.receipt-notes{margin-top:10px;overflow-wrap:anywhere}
.receipt-notes p{font-size:12px;line-height:1.6;margin:6px 0}
.receipt-bottom{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-top:22px}
.receipt-bottom>p{font-size:10px;line-height:1.8;color:#879894;max-width:320px}
.receipt-landscape .receipt-signature-line{width:280px;margin:12px 0 6px}
.receipt-review-footer{padding:12px 36px;background:#f3f7f5;border-top:1px solid #e2e9e6;display:flex;justify-content:space-between;gap:10px;color:#5b7e76;font-size:10px;font-weight:700}
.receipt-landscape + .receipt-toolbar{max-width:1140px}
.receipt-landscape ~ .receipt-sharing-note{max-width:1140px}
@media(max-width:700px){.receipt-landscape .receipt-review-heading{padding:20px;gap:10px}.receipt-landscape .receipt-review-content{padding:20px}.receipt-landscape .receipt-review-total{flex-direction:column;align-items:flex-start}.receipt-parties{grid-template-columns:1fr}.receipt-landscape .receipt-review-fields{grid-template-columns:1fr 1fr}.receipt-bottom{flex-direction:column;align-items:flex-start}.receipt-review-footer{padding:12px 20px;flex-wrap:wrap}}
@media(max-width:430px){.receipt-landscape .receipt-review-heading{flex-wrap:wrap}.receipt-landscape .receipt-review-fields{grid-template-columns:1fr}}
@media print{@page{size:A4 landscape;margin:10mm}.receipt-landscape{max-width:100%;box-shadow:none;border:1px solid #e0e0e0;border-radius:0}.receipt-landscape .receipt-review-heading,.receipt-landscape .receipt-review-total,.receipt-review-footer{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* Recibos associados aos lançamentos: mesma orientação horizontal na impressão. */
.receipt-shell{max-width:1140px;width:min(100% - 24px,1140px)}
.receipt-paper{max-width:100%;border-radius:19px;box-shadow:0 20px 50px rgba(10,37,45,.12)}
.receipt-top{background:#093b40;color:#fff;border-bottom:5px solid #19cba1;padding:25px 34px}
.receipt-no{color:#d8f2eb}.receipt-no strong{color:#fff}
.receipt-brand{color:#fff}
.receipt-main{padding:29px 37px 26px}
.receipt-main h1{font-size:19px;letter-spacing:.06em;margin:0 0 20px}
.receipt-value{border-radius:13px;border:none;border-left:5px solid #13b288;background:#edf9f4;padding:19px 24px}
.receipt-details{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:22px;padding-top:21px}
.receipt-sign{margin:20px 0 0 auto;max-width:300px;padding:20px 0}
@media(max-width:760px){.receipt-details{grid-template-columns:1fr 1fr}.receipt-top{padding:20px}.receipt-main{padding:20px}}
@media(max-width:470px){.receipt-details{grid-template-columns:1fr}.receipt-top{flex-wrap:wrap}}
@media print{.receipt-shell{width:100%;max-width:100%}.receipt-paper{max-width:100%;box-shadow:none;border-radius:0}.receipt-value,.receipt-top{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* ClariFin 1.3 — renovação, suporte e apresentação de valores */
.suspended-banner {display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.suspended-banner .suspended-body {flex:1 1 320px;min-width:0;}
.suspended-banner .suspended-phone {margin-left:auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;padding:11px 15px;border-radius:12px;background:#0b816f;color:#fff;text-decoration:none;font-weight:800;font-size:12px;white-space:normal;text-align:center;line-height:1.3;}
.suspended-banner .suspended-phone:hover {background:#076455;color:white;}
.suspended-banner .suspended-phone .icon {flex-shrink:0;}
.admin-current-plan {font-size:12px;color:var(--text);border:1px solid var(--border);background:var(--bg);border-radius:10px;padding:11px 12px;line-height:1.5;}
.admin-current-plan strong{display:inline;color:var(--accent);}
.admin-money{display:flex;flex-direction:column;gap:6px;min-width:135px;}
.admin-money span{font-size:11px;color:var(--muted);white-space:nowrap;}
.admin-money strong{font-size:12px;color:var(--text);display:inline;}
.person-tile .person-doc{margin:0 0 14px;color:var(--muted);font-size:12px;}
@media(max-width:760px){.suspended-banner .suspended-phone{width:100%;margin-left:0;}.admin-money span{white-space:normal;}}

/* ClariFin 1.5 — planejamento, metas e lançamento rápido */
.easy-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}
.easy-panel{padding:24px;min-width:0}.easy-panel h2{display:flex;align-items:center;gap:8px}
.easy-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end}.easy-form-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:var(--text)}
.easy-form-grid label:first-of-type{grid-column:1/-1}.easy-form-grid input,.easy-form-grid select,.reserve-form input{width:100%;min-width:0;padding:12px 13px;border-radius:11px;border:1px solid var(--border);background:var(--input);color:var(--text);font:inherit}
.easy-form-grid .btn{min-height:46px;justify-content:center}.daily-result{display:flex;align-items:start;flex-direction:column;gap:6px;background:rgba(19,167,137,.09);border:1px solid rgba(19,167,137,.18);padding:16px;border-radius:13px;margin-bottom:13px}
.daily-result span{font-size:12px;color:var(--muted)}.daily-result strong{font-size:clamp(25px,3vw,34px);color:#11a486;line-height:1.2}.daily-result small{color:var(--muted)}
.planning-warning{color:#b43a2d;font-size:12px;font-weight:750}.planning-summary{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted);margin:10px 0}.planning-controls{display:flex;flex-direction:column;gap:15px}
.days-links{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:12px;color:var(--muted)}.days-chip{border:1px solid var(--border);border-radius:9px;padding:7px 11px;color:var(--text);text-decoration:none}.days-chip.selected{background:#0a846d;border-color:#0a846d;color:white}
.reserve-form{display:flex;gap:9px;align-items:end}.reserve-form label{flex:1;min-width:0;font-size:12px;display:flex;flex-direction:column;gap:6px;font-weight:700}.reserve-form .btn{min-height:43px;white-space:nowrap}.fine-note{color:var(--muted);font-size:11px;line-height:1.55;margin:10px 0 0}
.monthly-note{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 22px;margin-bottom:20px}.monthly-note>div{display:flex;flex-direction:column;gap:6px}.monthly-note>div strong{font-size:13px}.monthly-note>div span{font-size:12px;color:var(--muted)}
.goal-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.goal-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.goal-card{padding:22px;min-width:0}.goal-card-heading{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:12px}.goal-card h2{font-size:17px;line-height:1.3;margin:0}.goal-card p{font-size:12px;color:var(--muted);margin:7px 0 0}.goal-progress-track{width:100%;height:12px;border-radius:99px;background:rgba(137,160,167,.16);overflow:hidden;margin:22px 0 12px}.goal-progress-bar{background:linear-gradient(90deg,#0e967f,#33caa2);height:100%;border-radius:inherit;max-width:100%}.goal-numbers{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.goal-numbers span{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:11px}.goal-numbers strong{font-size:15px;color:var(--text)}.goal-actions{display:flex;gap:10px;margin-top:22px}.goal-actions .btn{font-size:12px}.goal-actions form{margin:0}
@media(max-width:1100px){.easy-grid{grid-template-columns:1fr}}@media(max-width:760px){.goal-summary-grid{grid-template-columns:1fr 1fr}.goal-cards{grid-template-columns:1fr}.easy-panel{padding:18px}}
@media(max-width:520px){.easy-form-grid,.goal-summary-grid{grid-template-columns:1fr}.monthly-note{flex-direction:column;align-items:flex-start}.reserve-form{flex-direction:column;align-items:stretch}.easy-form-grid .btn{width:100%}}

/* ClariFin 1.6: entrada, planos e segurança */
.login-pricing{margin:22px 0 14px;border:1px solid #b3e7d6;border-radius:18px;padding:20px;background:linear-gradient(135deg,#effdf6 0%,#eaf8fd 100%);color:#123b3a}
.login-pricing-kicker{font-size:11px;font-weight:800;letter-spacing:.15em;color:#087c64}
.login-price-row{display:flex;align-items:baseline;gap:9px;margin:8px 0}
.login-price-row strong{font-size:clamp(29px,4vw,42px);line-height:1;font-weight:850;letter-spacing:-.05em}
.login-price-row span{font-size:14px;color:#456b67}
.login-pricing p{font-size:13px;line-height:1.55;margin:9px 0 16px}
.login-pricing small{display:block;font-size:11px;color:#56766c;margin-top:12px;line-height:1.5}
.service-indicator{display:flex;align-items:center;gap:9px;min-height:40px;font-size:12px;font-weight:750;color:#6e797f}
.service-orb{width:12px;height:12px;flex-shrink:0;border-radius:50%;background:#9ba5a6;box-shadow:0 0 0 4px #9ba5a633}
.service-indicator.is-online{color:#047857}.service-indicator.is-online .service-orb{background:#16ff72;box-shadow:0 0 0 4px #15dd6533,0 0 12px #00fb68;animation:clarifin-pulse 1.4s ease-in-out infinite}
.service-indicator.is-offline{color:#b45309}.service-indicator.is-offline .service-orb{background:#f59e0b;box-shadow:0 0 0 4px #f59e0b33}
@keyframes clarifin-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.75)}}
@media (prefers-reduced-motion:reduce){.service-indicator.is-online .service-orb{animation:none}}
.security-hint{font-size:12px;color:#5f7283;line-height:1.6}
.admin-secret-panel{border:1px solid #b7e3d3;padding:22px;background:#edfff6;border-radius:16px;margin:14px 0 22px;color:#165442}
.admin-secret-panel h2{font-size:18px;margin:0 0 8px}
.admin-secret-panel p{line-height:1.55;font-size:13px;margin:8px 0}
.admin-secret-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:15px}
.admin-secret-row code{padding:12px 16px;background:white;border:1px solid #d0e5df;border-radius:10px;overflow-wrap:anywhere;user-select:all}
.password-update-panel{max-width:560px;padding:28px}
@media(max-width:600px){.login-pricing{padding:16px}.admin-secret-row .btn{width:100%}}
