:root{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#1d2938;background:#f5f6f8;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#1d2938;--muted:#7c8795;--line:#e9edf1;--blue:#335eea;--blue-dark:#264bd1;--blue-light:#eef2ff;--green:#18866a;--green-bg:#eaf7f1;--red:#c74444;--red-bg:#fff0ef;--amber:#a66a09;--amber-bg:#fff7e6;--paper:#fff;--sidebar:#fff;--shadow:0 3px 16px rgba(27,39,57,.035)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f5f6f8}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(51,94,234,.2);outline-offset:1px}.app-shell{min-height:100vh}.sidebar{position:fixed;z-index:5;inset:0 auto 0 0;width:246px;background:#fff;border-right:1px solid #edf0f3;display:flex;flex-direction:column;padding:22px 15px 14px}.brand{height:48px;padding:0 10px;display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#335eea;color:#fff;flex:none}.brand-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand strong{font-family:Manrope,sans-serif;display:block;font-size:17px;letter-spacing:-.65px}.brand small{display:block;margin-top:1px;font-size:8px;letter-spacing:1.3px;color:#9aa3ae;font-weight:700}.workspace-label{margin:39px 10px 10px;color:#a0a8b3;font-size:9px;letter-spacing:1.25px;font-weight:700}.nav-list{display:grid;gap:4px}.nav-link{width:100%;height:43px;padding:0 11px;display:flex;align-items:center;gap:12px;border:0;border-radius:8px;background:transparent;color:#596574;font-size:12px;text-align:left;transition:background .15s,color .15s}.nav-link:hover{background:#f5f7fb;color:#263548}.nav-link.active{background:#edf2ff;color:#335eea;font-weight:700}.nav-icon,.icon-button [data-icon],.nav-icon svg,.icon-button svg{width:17px;height:17px;display:grid;place-items:center;flex:none}.nav-icon svg,.icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-count{margin-left:auto;border-radius:5px;padding:2px 6px;background:#f0f2f5;color:#818b97;font-size:10px}.nav-link.active .nav-count{background:#fff;color:#335eea}.sidebar-bottom{margin-top:auto}.help-card{display:flex;gap:10px;align-items:flex-start;margin:0 2px 14px;padding:13px 10px;background:#f7f8fb;border:1px solid #f0f2f5;border-radius:9px}.help-spark{color:#335eea;font-size:15px}.help-card strong{font-size:10px}.help-card p{margin:4px 0 0;color:#8b95a2;font-size:9px;line-height:1.5}.settings-link{height:39px;border-top:1px solid #f0f2f5;border-radius:0;margin-bottom:7px;padding-top:5px}.profile{height:52px;border-top:1px solid #edf0f3;padding:10px 5px 0;display:flex;align-items:center;gap:9px}.avatar{width:30px;height:30px;border-radius:9px;background:#eef2ff;color:#335eea;display:grid;place-items:center;font-size:10px;font-weight:700}.profile-copy{min-width:0;flex:1}.profile-copy strong,.profile-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-copy strong{font-size:10px}.profile-copy small{margin-top:3px;color:#98a1ac;font-size:9px}.icon-button{border:0;background:transparent;color:#939ca8;display:grid;place-items:center;width:30px;height:30px;border-radius:6px}.icon-button:hover{background:#f2f4f7}.main-area{min-height:100vh;margin-left:246px;display:flex;flex-direction:column}.topbar{height:72px;position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid #eaedf1;background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}.breadcrumb{display:flex;align-items:center;gap:10px}.breadcrumb>span:first-child{font-size:9px;letter-spacing:1.05px;color:#a1aab5;font-weight:700}.crumb-slash{color:#d1d6dc;font-size:12px}.breadcrumb strong{font-family:Manrope,sans-serif;font-size:13px;letter-spacing:-.2px}.topbar-actions{display:flex;align-items:center;gap:12px}.search-box{width:250px;height:35px;display:flex;align-items:center;gap:8px;padding:0 9px;border:1px solid #e9edf1;border-radius:7px;background:#fff;color:#98a1ad}.search-box svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#3c4857;font-size:10px}.search-box input::placeholder{color:#a2abb5}.search-box kbd{white-space:nowrap;border:1px solid #e6e9ed;border-radius:4px;padding:2px 4px;color:#9aa2ad;font:9px 'DM Sans',sans-serif}.button{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid transparent;border-radius:7px;font-size:10px;font-weight:700;transition:background .15s,transform .15s}.button:active{transform:translateY(1px)}.button-primary{background:var(--blue);color:#fff;box-shadow:0 2px 4px rgba(51,94,234,.16)}.button-primary:hover{background:var(--blue-dark)}.button-secondary{background:#fff;border-color:#e5e9ee;color:#425064}.button-secondary:hover{background:#f8f9fb}.button-quiet{height:31px;padding:0 9px;background:transparent;color:#6e7987}.button-quiet:hover{background:#f4f6f9}.button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.button-small{height:35px}.button-danger{color:var(--red);background:#fff;border-color:#f2d7d5}.page-content{width:min(1240px,100%);margin:0 auto;padding:30px 36px 34px;flex:1}.app-footer{min-height:45px;border-top:1px solid #e9edf1;display:flex;align-items:center;gap:8px;padding:0 36px;color:#a1aab4;font-size:9px}.footer-dot{width:3px;height:3px;border-radius:50%;background:#c6ccd3}.app-footer button{margin-left:auto;border:0;background:transparent;color:#8993a0;font-size:9px}.mobile-brand{display:none}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.eyebrow{margin:0 0 7px;color:#9aa4af;font-size:9px;letter-spacing:1.2px;font-weight:700}.page-heading h1{margin:0;font-family:Manrope,sans-serif;font-weight:700;font-size:23px;letter-spacing:-.8px}.page-heading p{margin:6px 0 0;color:#85909d;font-size:11px}.heading-actions{display:flex;gap:8px;align-items:center}.date-chip{display:inline-flex;align-items:center;gap:7px;height:33px;padding:0 10px;border:1px solid #e7ebef;border-radius:7px;background:#fff;color:#697585;font-size:10px}.date-chip svg{width:13px;height:13px;fill:none;stroke:#8994a1;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat-card{min-height:116px;padding:15px 16px;border:1px solid #ebeff2;border-radius:9px;background:#fff;box-shadow:var(--shadow)}.stat-head{display:flex;align-items:center;justify-content:space-between;color:#778391;font-size:10px}.stat-icon{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;background:#f2f5ff;color:#4568dd}.stat-icon.green{background:#ebf7f2;color:#218766}.stat-icon.amber{background:#fff6e8;color:#bc7b12}.stat-icon.red{background:#fff0ef;color:#c3514e}.stat-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.stat-value{margin-top:12px;font-family:Manrope,sans-serif;font-size:21px;font-weight:700;letter-spacing:-.7px}.stat-foot{display:flex;align-items:center;gap:5px;margin-top:5px;color:#9ba4ae;font-size:9px}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.neutral-tag{color:#848f9d}.delta{font-weight:700}.notice{display:flex;align-items:flex-start;gap:11px;margin:0 0 16px;padding:13px 14px;border:1px solid #f0dfb6;border-radius:8px;background:#fffaf0;color:#624d25}.notice-icon{margin-top:1px;width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:#ffefcb;color:#9a6b13;font-size:10px;font-weight:800}.notice-copy{flex:1}.notice-copy strong{display:block;font-size:10px}.notice-copy p{margin:4px 0 0;color:#8c7952;font-size:9px;line-height:1.5}.notice button{border:0;background:transparent;color:#8d6b28;font-size:9px;font-weight:700;white-space:nowrap}.dash-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(265px,.9fr);gap:14px;margin-bottom:15px}.panel{border:1px solid #e9edf1;border-radius:9px;background:#fff;box-shadow:var(--shadow)}.panel-head{height:54px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f2f4}.panel-title{font-size:11px;font-weight:700}.panel-subtitle{margin-top:3px;color:#a0a8b2;font-size:9px}.panel-body{padding:14px 16px}.chart-legend{display:flex;gap:14px;color:#8d97a3;font-size:9px}.legend-dot{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#5575e8}.legend-dot.purch{background:#a8b5e6}.chart-wrap{height:163px;padding:12px 0 0}.bar-chart{height:125px;display:flex;align-items:flex-end;justify-content:space-around;gap:9px;border-bottom:1px solid #eef0f3;background:repeating-linear-gradient(to bottom,transparent 0,transparent 30px,#f1f3f6 31px)}.chart-day{height:100%;min-width:16px;flex:1;position:relative;display:flex;align-items:flex-end;justify-content:center;gap:3px}.chart-bar{width:min(13px,35%);min-height:2px;border-radius:3px 3px 0 0;background:#5877e8;opacity:.92}.chart-bar.purch{background:#afbbe9}.chart-labels{display:flex;justify-content:space-around;color:#a3abb4;font-size:8px;padding-top:7px}.empty-chart{height:125px;display:grid;place-items:center;color:#a2aab4;font-size:10px}.quick-actions{display:grid;gap:7px}.quick-action{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #eef0f3;border-radius:7px;background:#fff;text-align:left;transition:background .15s,border .15s}.quick-action:hover{border-color:#dce4fa;background:#f9faff}.qa-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#eff3ff;color:#4568de}.qa-icon.green{background:#eaf7f1;color:#22876a}.qa-icon.amber{background:#fff5e6;color:#b77a17}.qa-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.qa-copy{flex:1}.qa-copy strong{display:block;font-size:9px}.qa-copy small{display:block;margin-top:3px;color:#9ba4ae;font-size:8px}.qa-arrow{color:#a6aeb8;font-size:15px}.section-row{display:flex;align-items:center;justify-content:space-between;margin:19px 0 10px}.section-row h2{margin:0;font-size:12px}.section-row button{border:0;background:transparent;color:#4568de;font-size:9px;font-weight:700}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap}.data-table th{height:34px;padding:0 13px;background:#fafbfc;color:#98a1ac;text-align:left;font-size:8px;letter-spacing:.5px;text-transform:uppercase;font-weight:700;border-bottom:1px solid #eff1f3}.data-table td{height:45px;padding:0 13px;border-bottom:1px solid #f1f3f5;color:#556171;font-size:9px}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fcfcfd}.product-main{display:flex;align-items:center;gap:9px}.product-thumb{width:27px;height:27px;border:1px solid #edf0f3;border-radius:6px;background:#f8f9fc;display:grid;place-items:center;color:#8794a7;flex:none}.product-thumb svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.product-name{font-weight:700;color:#364354}.product-meta{margin-top:3px;color:#a2abb5;font-size:8px}.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:10px;background:#eff7f3;color:#248065;font-size:8px;font-weight:700}.badge:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.badge.low{background:#fff5e4;color:#ac7418}.badge.out{background:#fff0ef;color:#c34f4b}.badge.review{background:#fff6e6;color:#a46b13}.badge.credit{background:#f2f3f5;color:#677486}.table-empty{padding:28px 16px!important;text-align:center;color:#9ca6b1!important;white-space:normal!important}.account-list{display:grid;gap:0}.account-row{display:flex;align-items:center;padding:9px 0;border-bottom:1px solid #f0f2f4}.account-row:last-child{border-bottom:0}.party-avatar{width:29px;height:29px;margin-right:9px;border-radius:8px;background:#f2f5fc;color:#6078c3;display:grid;place-items:center;font-size:9px;font-weight:700}.party-name{flex:1;font-size:9px;font-weight:700}.party-type{margin-top:3px;color:#a0a8b1;font-size:8px}.party-amount{font-size:10px;font-weight:700}.muted{color:#a1a9b3}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:7px}.filter-select,.filter-chip{height:32px;padding:0 10px;border:1px solid #e7ebef;border-radius:6px;background:#fff;color:#697585;font-size:9px}.filter-chip{display:inline-flex;align-items:center;gap:6px}.filter-chip.active{background:#edf2ff;border-color:#dce5ff;color:#3a60dc;font-weight:700}.filter-input{height:32px;width:220px;padding:0 10px;border:1px solid #e7ebef;border-radius:6px;color:#3d4b5c;font-size:9px}.table-count{color:#9ca5b0;font-size:9px}.entry-type{display:inline-flex;padding:4px 7px;border-radius:5px;font-size:8px;font-weight:700;text-transform:capitalize}.entry-type.sale{background:#edf7f2;color:#218565}.entry-type.purchase{background:#eef2ff;color:#4867d1}.entry-type.receive,.entry-type.cash-in{background:#eef7f3;color:#218565}.entry-type.payment,.entry-type.cash-out{background:#fff1f0;color:#bf514c}.entry-type.adjustment{background:#fff6e6;color:#a77016}.amount-cell{font-weight:700;color:#354253!important}.secondary-text{color:#9ba4ae!important}.row-action{width:25px;height:25px;border:0;border-radius:5px;background:transparent;color:#9aa4af;font-size:14px}.row-action:hover{background:#fff0ef;color:#c74444}.balance-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.balance-card{padding:16px}.balance-card-head{display:flex;align-items:center;justify-content:space-between}.balance-card-head h2{margin:0;font-size:11px}.balance-card-head span{color:#9aa3ad;font-size:9px}.balance-total{margin:15px 0 4px;font-family:Manrope,sans-serif;font-size:22px;font-weight:700;letter-spacing:-.5px}.balance-caption{color:#9ba4ad;font-size:9px}.people-panel{margin-top:14px}.person-cell{display:flex;align-items:center;gap:8px}.small-avatar{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;background:#f1f3f8;color:#6a7891;font-size:8px;font-weight:700}.entry-lines{color:#84909e!important;max-width:250px;overflow:hidden;text-overflow:ellipsis}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.summary-mini{padding:13px 14px;border:1px solid #ebeff2;border-radius:8px;background:#fff}.summary-mini span{display:block;color:#8e99a6;font-size:9px}.summary-mini strong{display:block;margin-top:8px;font-family:Manrope,sans-serif;font-size:17px;letter-spacing:-.4px}.settings-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.settings-card{padding:17px}.settings-card h2{margin:0;font-size:12px}.settings-card>p{margin:6px 0 16px;color:#8e99a6;font-size:9px;line-height:1.5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.field{display:grid;gap:5px}.field.full{grid-column:1/-1}.field label{color:#73808e;font-size:9px;font-weight:700}.field input,.field select,.field textarea{width:100%;height:35px;padding:0 9px;border:1px solid #e4e8ed;border-radius:6px;background:#fff;color:#334155;font-size:10px}.field textarea{height:65px;padding:8px;resize:vertical}.field-hint{color:#a0a8b2;font-size:8px;line-height:1.45}.form-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:15px}.baseline-list{display:grid;gap:0}.baseline-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #eff1f3;font-size:9px}.baseline-row:last-child{border-bottom:0}.baseline-row span{color:#85909e}.baseline-row strong{text-align:right}.modal-backdrop{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:20px;background:rgba(20,30,44,.38);backdrop-filter:blur(2px)}.modal{width:min(600px,100%);max-height:min(90vh,900px);display:flex;flex-direction:column;border:1px solid #e6eaee;border-radius:12px;background:#fff;box-shadow:0 20px 80px rgba(20,30,44,.2);overflow:hidden;animation:modal-in .18s ease-out}.modal.modal-wide{width:min(760px,100%)}@keyframes modal-in{from{transform:translateY(7px);opacity:.5}to{transform:translateY(0);opacity:1}}.modal-head{min-height:62px;padding:13px 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eff1f3}.modal-head h2{margin:0;font-family:Manrope,sans-serif;font-size:14px;letter-spacing:-.2px}.modal-head p{margin:4px 0 0;color:#969faa;font-size:9px}.modal-body{padding:17px 19px;overflow-y:auto}.modal-close{width:28px;height:28px;border:0;border-radius:6px;background:#f5f6f8;color:#85909b;font-size:17px;line-height:1}.modal-footer{padding:12px 19px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #eff1f3;background:#fcfcfd}.line-items{margin-top:15px;border:1px solid #edf0f3;border-radius:7px;overflow:hidden}.line-items-head,.line-item-row{display:grid;grid-template-columns:minmax(170px,2fr) .7fr .85fr .8fr 25px;gap:7px;align-items:center;padding:8px 9px}.line-items-head{background:#fafbfc;color:#9aa3ae;font-size:8px;letter-spacing:.45px;text-transform:uppercase;font-weight:700}.line-item-row{border-top:1px solid #eff1f3}.line-item-row select,.line-item-row input{width:100%;height:30px;padding:0 7px;border:1px solid #e7ebef;border-radius:5px;background:#fff;color:#495668;font-size:9px}.line-item-total{text-align:right;font-size:9px;font-weight:700;color:#445165}.remove-line{border:0;background:transparent;color:#9ca5af;font-size:15px}.add-line{display:flex;align-items:center;gap:5px;margin:8px 0 0;padding:0;border:0;background:transparent;color:#4568de;font-size:9px;font-weight:700}.payment-box{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px;padding:11px;border:1px solid #edf0f3;border-radius:7px;background:#fafbfc}.payment-total{display:flex;align-items:center;justify-content:space-between;padding:0 3px;color:#75808e;font-size:9px}.payment-total strong{color:#344256;font-size:11px}.modal-info{margin-top:12px;padding:9px 10px;border-radius:6px;background:#f5f7fb;color:#758197;font-size:9px;line-height:1.5}.modal-warning{background:#fff8e9;color:#8c691f}.toast-root{position:fixed;z-index:40;right:20px;bottom:20px;display:grid;gap:8px}.toast{padding:10px 13px;border:1px solid #e5ebe7;border-radius:8px;background:#fff;box-shadow:0 8px 28px rgba(30,44,61,.12);color:#3e5149;font-size:10px;animation:modal-in .2s ease-out}.toast.error{border-color:#f1d8d6;color:#ad4642}.empty-state{padding:44px 18px;text-align:center}.empty-state-icon{width:42px;height:42px;margin:0 auto 12px;border-radius:12px;background:#f1f4fb;color:#7085c7;display:grid;place-items:center}.empty-state-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.empty-state strong{display:block;font-size:11px}.empty-state p{max-width:300px;margin:6px auto 13px;color:#939daa;font-size:9px;line-height:1.55}.hint-inline{margin-left:7px;color:#a1a9b2;font-size:8px;font-weight:400}
@media(max-width:1100px){.sidebar{width:212px}.main-area{margin-left:212px}.topbar{padding:0 24px}.page-content{padding:26px 24px}.app-footer{padding:0 24px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.search-box{width:205px}.dash-grid{grid-template-columns:minmax(0,1.3fr) minmax(230px,.8fr)}}
@media(max-width:760px){.sidebar{position:sticky;inset:0 0 auto;width:100%;height:auto;padding:8px 10px 7px;border-right:0;border-bottom:1px solid #edf0f3;display:block}.brand{display:none}.workspace-label,.sidebar-bottom{display:none}.nav-list{display:flex;gap:3px;overflow-x:auto;scrollbar-width:none}.nav-list::-webkit-scrollbar{display:none}.nav-link{width:auto;min-width:max-content;height:36px;padding:0 10px;gap:7px;font-size:9px}.nav-icon,.nav-icon svg{width:14px;height:14px}.nav-count{display:none}.main-area{margin-left:0;min-height:calc(100vh - 51px)}.topbar{height:59px;position:sticky;padding:0 14px}.mobile-brand{display:flex;align-items:center;gap:7px;font-family:Manrope,sans-serif;font-size:13px}.mobile-brand .brand-mark{width:27px;height:27px;border-radius:8px}.mobile-brand .brand-mark svg{width:17px;height:17px}.breadcrumb{display:none}.topbar-actions{gap:7px}.search-box{width:34px;height:34px;justify-content:center;padding:0;border:0;background:transparent}.search-box input,.search-box kbd{display:none}.search-box.search-open{position:absolute;left:10px;right:10px;top:10px;z-index:2;width:auto;justify-content:flex-start;padding:0 10px;border:1px solid #e4e8ed;background:#fff;box-shadow:0 3px 14px #26374d1a}.search-box.search-open input{display:block}.search-box.search-open kbd{display:block}.button-small{height:33px;padding:0 9px}.button-small span:last-child{font-size:9px}.page-content{padding:22px 14px 28px}.page-heading{align-items:flex-start;margin-bottom:17px}.page-heading h1{font-size:20px}.page-heading p{max-width:255px;font-size:10px}.heading-actions{gap:5px}.heading-actions .button{height:32px;padding:0 8px;font-size:9px}.date-chip{height:31px;padding:0 8px;font-size:9px}.stat-grid{gap:8px}.stat-card{min-height:104px;padding:12px}.stat-value{font-size:18px}.stat-head{font-size:9px}.stat-foot{font-size:8px}.dash-grid{grid-template-columns:1fr;gap:10px}.balance-grid{gap:9px}.panel-head{height:49px;padding:0 12px}.panel-body{padding:12px}.section-row{margin:16px 0 9px}.data-table th{padding:0 9px;font-size:7px}.data-table td{padding:0 9px;font-size:8px}.table-toolbar{align-items:flex-start;flex-direction:column}.toolbar-left,.toolbar-right{width:100%;overflow-x:auto}.filter-input{width:100%}.summary-strip{gap:7px}.summary-mini{padding:10px}.summary-mini span{font-size:8px}.summary-mini strong{font-size:14px}.settings-grid{grid-template-columns:1fr}.app-footer{padding:0 14px}.app-footer span:nth-child(2),.app-footer span:nth-child(3){display:none}.app-footer button{font-size:8px}.line-items-head,.line-item-row{grid-template-columns:minmax(120px,1.5fr) .6fr .75fr .75fr 18px;gap:4px;padding:7px 5px}.line-item-row select,.line-item-row input{font-size:8px;padding:0 4px}.modal-backdrop{padding:9px}.modal{max-height:95vh}.modal-head{padding:12px 14px}.modal-body{padding:14px}.modal-footer{padding:10px 14px}.form-grid{gap:9px}.payment-box{grid-template-columns:1fr 1fr;padding:9px}.notice{padding:11px}.notice button{font-size:8px}}
@media(max-width:430px){.nav-link{padding:0 8px;font-size:8px}.nav-link span:nth-child(2){display:block}.nav-icon,.nav-icon svg{width:13px;height:13px}.stat-icon{width:24px;height:24px}.stat-card{min-height:100px}.balance-card{padding:12px}.balance-total{font-size:18px}.page-heading{gap:7px}.page-heading p{max-width:215px}.heading-actions .button span:last-child{font-size:8px}.line-items-head,.line-item-row{grid-template-columns:minmax(100px,1.3fr) .55fr .72fr .65fr 16px}.line-items-head{font-size:7px}.line-item-total{font-size:8px}.form-grid{grid-template-columns:1fr 1fr}.filter-select{max-width:145px}}
/* Keep ledger controls and figures readable at everyday desktop and phone sizes. */
.page-heading h1{font-size:clamp(24px,3vw,34px)}
.page-heading p,.nav-link,.panel-subtitle,.notice-copy p,.field-hint,.product-meta,.table-count{font-size:13px}
.page-heading p,.stat-foot,.stat-head,.notice-copy p,.product-meta,.table-count{color:#586779}
.stat-head,.stat-foot,.summary-mini span,.baseline-row,.settings-card>p,.field span,.filter-label,.check-field{font-size:13px}
.stat-value{font-size:clamp(20px,2.1vw,29px);font-variant-numeric:tabular-nums}
.button,.filter-select,.field input,.field select,.line-item-row input,.line-item-row select{min-height:38px;font-size:13px}
.search-box input{display:block;font-size:13px}
.data-table th{font-size:11px;color:#556578}
.data-table td{font-size:13px;font-variant-numeric:tabular-nums;padding-top:7px;padding-bottom:7px}
.data-table td .button{min-height:30px;height:auto;padding:5px 8px;font-size:12px}
.entry-lines{max-width:220px}
.text-button,.section-row a{padding:0;border:0;background:none;color:#294eb8;font-size:inherit;font-weight:700;text-decoration:none}
.text-button:hover,.section-row a:hover{text-decoration:underline}
.section-row h2,.settings-card h2{font-size:16px}
.notice-copy strong{font-size:14px}
.notice .button{font-size:12px;background:#fff;border:1px solid #e3ca95}
.badge{font-size:11px;margin-left:4px}
.quick-buttons,.filters,.pager,.check-field{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.check-field{align-self:flex-end;min-height:38px}
.check-field input{width:16px;height:16px}
.filter-label{display:grid;gap:5px;color:#546378}
.pager{justify-content:flex-end;padding-top:12px;color:#546378}
.form-error{margin-top:12px;border-radius:6px;padding:10px;background:#fff1ef;color:#9e3030}
.modal-info,.payment-total,.toast{font-size:13px}
.modal-head h2{font-size:18px}
.modal-body p{font-size:14px}
.modal-body{min-height:0}
dialog.modal{inset:0;margin:auto;width:min(650px,calc(100% - 24px));max-height:calc(100% - 28px);padding:0;color:var(--ink)}
dialog.modal.modal-wide{width:min(840px,calc(100% - 24px))}
dialog.modal::backdrop{background:rgba(20,30,44,.5)}
.line-items + .button{margin-top:9px}
.line-item-total{font-size:12px}
.line-items-head{font-size:11px}
button:disabled{opacity:.55;cursor:default}
@media(max-width:760px){
  .search-box{width:min(35vw,170px);padding:0 7px;border:1px solid #e9edf1;background:#fff}
  .search-box input{display:block}
  .table-toolbar .toolbar-left{flex-wrap:wrap;overflow:visible}
  .page-heading{flex-wrap:wrap}
  .nav-link{font-size:12px}
  .notice{flex-wrap:wrap}
  .topbar{top:52px}
}
@media(max-width:530px){
  .line-item-row{grid-template-columns:repeat(3,minmax(0,1fr)) 26px;gap:6px}
  .line-item-row select{grid-column:1/-1}
  .line-item-row input{min-width:0}
  .line-items-head{display:none}
  .line-item-row .remove-line{min-height:36px}
  .summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}

[hidden]{display:none!important}
.access-screen{
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:32px 16px;
  background:radial-gradient(ellipse at 50% 0%,#eaf0ff 0%,#f5f6f8 68%);
}
.access-card{
  width:min(100%,430px);
  padding:clamp(22px,6vw,36px);
  background:#fff;
  border:1px solid #e1e8f4;
  border-radius:18px;
  box-shadow:0 20px 55px #253b6b12;
}
.access-brand{display:flex;align-items:center;gap:10px;margin-bottom:24px}
.access-brand .brand-mark svg,.entry-tile-icon svg{
  width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round
}
.access-brand strong{font-size:18px;letter-spacing:-.02em}
.access-card h1{margin:0;font-size:clamp(23px,5vw,30px);letter-spacing:-.04em}
.access-card>p{margin:8px 0 24px;color:#586779;font-size:15px;line-height:1.5}
.access-form{display:grid;gap:14px}
.access-form .field span{font-weight:650;color:#334155}
.access-form .field input{height:46px;padding:0 11px;font-size:16px}
.access-form>.button{min-height:46px;font-size:15px}
.access-form .form-error{margin:0;font-size:13px}
.access-hint{margin-top:-7px;color:#526174;font-size:13px;line-height:1.4}
.password-field{position:relative}
.password-field input{padding-right:65px!important}
.password-toggle{
  position:absolute;right:5px;top:4px;min-height:38px;padding:0 10px;border:0;border-radius:5px;
  background:#fff;color:#294eb8;font-size:13px;font-weight:700
}
.password-toggle:hover{background:#edf2ff}
.sign-out{white-space:nowrap}
.nav-link .nav-compact,.nav-mobile-settings{display:none}
.entry-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.entry-grid.entry-chooser{grid-template-columns:repeat(2,minmax(0,1fr))}
.entry-tile{
  display:flex;align-items:center;gap:10px;padding:13px 11px;text-align:left;min-height:74px;
  border:1px solid #dfe6f2;border-radius:10px;background:#fff;color:#27364a
}
.entry-tile:hover{border-color:#8fa7ed;background:#f6f8ff}
.entry-tile-icon{flex:0 0 34px;height:34px;display:grid;place-items:center;background:#eef3ff;color:#2b50c2;border-radius:9px}
.entry-tile strong,.entry-tile small{display:block}
.entry-tile strong{font-size:14px}
.entry-tile small{margin-top:3px;font-size:12px;line-height:1.35;color:#586779}
.daily-totals{margin:0 0 10px;color:#586779;font-size:13px}
.daily-totals span{margin:0 5px}
.opening-status{margin-top:16px}
.inventory-search{width:min(270px,100%);max-width:none}
#inventoryResults>.table-count{margin:0 0 9px}
@media(max-width:1100px){.entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .nav-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;overflow:visible}
  .nav-link{min-width:0;min-height:44px;flex-direction:column;justify-content:center;gap:4px;padding:3px 1px;font-size:11px}
  .nav-link .nav-compact,.nav-mobile-settings{display:flex}
  .nav-link span.nav-wide{display:none}
  .topbar{top:60px}
}
@media(max-width:530px){
  .access-screen{align-items:start;padding-top:clamp(24px,9vh,85px)}
  .mobile-brand strong{display:none}
  .topbar-actions{margin-left:auto}
  .sign-out{padding:0 8px}
  .topbar-actions .button-small span:last-child{font-size:12px}
  .entry-tile{align-items:flex-start;padding:10px;min-height:80px}
  .entry-tile-icon{display:none}
  .entry-grid.entry-chooser{gap:6px}
  .inventory-search{width:min(240px,70vw)}
}
