:root{--navy:#16324a;--navy-2:#224d68;--teal:#0f766e;--green:#2f7d32;--blue:#2563eb;--amber:#d97706;--red:#b42318;--ink:#182230;--muted:#667085;--line:#dfe4ea;--soft:#f4f7f9;--paper:#fff;--sidebar:238px;--shadow:0 8px 26px #13263612}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;background:#eef2f5}body{color:var(--ink);overscroll-behavior-y:none;background:#eef2f5;margin:0;font-family:Microsoft YaHei,PingFang SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}.app-shell{min-height:100vh}.sidebar{width:var(--sidebar);color:#fff;z-index:20;background:linear-gradient(165deg,#15334b 0%,#102a3e 70%,#0e2638 100%);flex-direction:column;padding:26px 18px 20px;display:flex;position:fixed;top:0;bottom:0;left:0;right:auto}.brand{border-bottom:1px solid #ffffff1f;align-items:center;gap:12px;padding:0 8px 28px;display:flex}.brand-mark{color:#17324a;background:#fff;border-radius:13px;place-items:center;width:42px;height:42px;font-size:22px;font-weight:900;display:grid;box-shadow:0 7px 16px #00000029}.brand strong,.brand small{display:block}.brand strong{letter-spacing:.03em;font-size:18px}.brand small{color:#a8c0ce;letter-spacing:.12em;margin-top:2px;font-size:11px}.nav-list{gap:7px;padding:24px 0;display:grid;overflow-y:auto}.nav-list button{color:#c8d6df;text-align:left;background:0 0;border:0;border-radius:11px;align-items:center;gap:11px;width:100%;padding:11px 12px;transition:all .18s;display:flex}.nav-list button span{color:#bad0dc;background:#ffffff12;border-radius:8px;place-items:center;width:28px;height:28px;font-size:12px;font-weight:800;display:grid}.nav-list button:hover{color:#fff;background:#ffffff12}.nav-list button.active{color:#17324a;background:#fff;font-weight:800;box-shadow:0 8px 20px #0000001f}.nav-list button.active span{color:#fff;background:var(--teal)}.sidebar-foot{color:#b7c9d3;border-top:1px solid #ffffff1f;margin-top:auto;padding:14px 10px 0;font-size:11px}.sidebar-foot small{color:#7793a3;text-overflow:ellipsis;margin:7px 0 0 15px;display:block;overflow:hidden}.sidebar-foot.sync-saving .online-dot,.autosave-note.saving .online-dot{background:#f6c85f;animation:1s infinite sync-pulse;box-shadow:0 0 0 3px #f6c85f2e}.sidebar-foot.sync-pending .online-dot,.autosave-note.pending .online-dot{background:#f97066;box-shadow:0 0 0 3px #f970662e}@keyframes sync-pulse{50%{opacity:.45}}.online-dot{background:#68d391;border-radius:50%;width:7px;height:7px;margin-right:7px;display:inline-block;box-shadow:0 0 0 3px #68d39126}.main{min-height:100vh;margin-left:var(--sidebar);padding:0 34px 44px}.topbar{justify-content:space-between;align-items:center;gap:20px;min-height:104px;display:flex}.topbar h1{letter-spacing:-.02em;margin:2px 0 0;font-size:clamp(24px,2.5vw,32px)}.eyebrow{color:var(--teal);letter-spacing:.13em;text-transform:uppercase;margin:0;font-size:11px;font-weight:900}.top-actions,.button-row{align-items:center;gap:10px;display:flex}.button-row.end{justify-content:flex-end;margin-top:10px}.button-row.wrap,.panel-head.wrap{flex-wrap:wrap}.user-chip{border:1px solid var(--line);background:#fff;border-radius:14px;align-items:center;gap:10px;min-width:170px;padding:7px 12px 7px 7px;display:flex;box-shadow:0 3px 10px #1326360a}.user-chip>span{color:#fff;background:var(--navy);border-radius:10px;place-items:center;width:36px;height:36px;font-weight:800;display:grid}.user-chip strong,.user-chip small{display:block}.user-chip strong{text-overflow:ellipsis;white-space:nowrap;max-width:130px;font-size:12px;overflow:hidden}.user-chip small{color:var(--muted);margin-top:2px;font-size:10px}.page-stack{gap:18px;display:grid}.panel{background:var(--paper);box-shadow:var(--shadow);border:1px solid #d0d5ddbf;border-radius:17px;overflow:hidden}.panel-head{border-bottom:1px solid #edf0f2;justify-content:space-between;align-items:center;gap:12px;min-height:74px;padding:19px 22px 14px;display:flex}.panel-head h3{margin:3px 0 0;font-size:18px}.panel-head .eyebrow{font-size:9px}.welcome-card,.tax-hero,.report-hero,.ledger-summary,.petty-hero,.payment-hero,.purchase-hero,.profit-hero,.expense-hero{color:#fff;border-radius:19px;justify-content:space-between;align-items:center;gap:30px;min-height:174px;padding:28px 30px;display:flex;position:relative;overflow:hidden;box-shadow:0 14px 32px #13324a29}.welcome-card:after,.tax-hero:after,.report-hero:after,.ledger-summary:after,.petty-hero:after,.payment-hero:after,.purchase-hero:after,.profit-hero:after,.expense-hero:after{content:"";border:45px solid #ffffff0f;border-radius:50%;width:270px;height:270px;position:absolute;top:-120px;right:-70px}.welcome-card{background:linear-gradient(130deg,#173b54,#1f6170)}.tax-hero{background:linear-gradient(130deg,#173b54,#285d83)}.report-hero{background:linear-gradient(130deg,#3d4d28,#2f7d32)}.petty-hero{background:linear-gradient(130deg,#584120,#a16a16)}.payment-hero{background:linear-gradient(130deg,#213e58,#315f88)}.purchase-hero{background:linear-gradient(130deg,#405329,#63843b)}.profit-hero{background:linear-gradient(130deg,#5a2f56,#8f4b76)}.expense-hero{background:linear-gradient(130deg,#513d25,#9a6430)}.ledger-summary.teal{background:linear-gradient(130deg,#154b50,#0f766e)}.ledger-summary.green{background:linear-gradient(130deg,#365529,#2f7d32)}.ledger-summary.blue{background:linear-gradient(130deg,#1e4f7a,#2878a7)}.ledger-summary.amber{background:linear-gradient(130deg,#7a4d12,#b7791f)}.welcome-card h2,.tax-hero h2,.report-hero h2,.ledger-summary h2,.petty-hero h2,.payment-hero h2,.purchase-hero h2,.profit-hero h2,.expense-hero h2{letter-spacing:-.03em;margin:5px 0 8px;font-size:clamp(24px,3vw,35px)}.welcome-card p:last-child,.tax-hero p:last-child,.report-hero p:last-child,.petty-hero p:last-child,.payment-hero p:last-child,.purchase-hero p:last-child,.profit-hero p:last-child,.expense-hero p:last-child{color:#ffffffc2;margin:0}.welcome-card .eyebrow,.tax-hero .eyebrow,.report-hero .eyebrow,.ledger-summary .eyebrow,.petty-hero .eyebrow,.payment-hero .eyebrow,.purchase-hero .eyebrow,.profit-hero .eyebrow,.expense-hero .eyebrow{color:#dce9bd}.welcome-actions{z-index:1;gap:9px;display:flex}.dashboard-hero-tools{z-index:1;gap:10px;display:grid;position:relative}.dashboard-hero-tools .welcome-actions{justify-content:flex-end}.profit-hero-tools{z-index:1;justify-items:end;gap:10px;display:grid;position:relative}.button{border:0;border-radius:10px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:9px 15px;font-weight:800;text-decoration:none;transition:all .15s;display:inline-flex}.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.55;cursor:not-allowed;transform:none}.button.primary{color:#fff;background:var(--teal);box-shadow:0 5px 12px #0f766e33}.button.secondary{color:var(--ink);border:1px solid var(--line);background:#fff}.button.light{color:var(--navy);background:#fff;box-shadow:0 8px 18px #0000001f}.text-button,.link-danger,.row-actions button{color:var(--teal);background:0 0;border:0;font-size:12px;font-weight:800}.link-danger,.row-actions button.danger{color:var(--red)}.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.kpi-card{border:1px solid var(--line);min-height:146px;box-shadow:var(--shadow);background:#fff;border-radius:16px;padding:19px 20px;position:relative;overflow:hidden}.kpi-card:after{content:"";opacity:.06;background:currentColor;border-radius:50%;width:75px;height:75px;position:absolute;top:-25px;right:-24px}.kpi-icon{color:#fff;background:currentColor;border-radius:9px;place-items:center;width:31px;height:31px;font-size:13px;font-weight:900;display:grid}.kpi-card p{color:var(--muted);margin:13px 0 3px;font-size:11px;font-weight:800}.kpi-card>strong{color:var(--ink);white-space:nowrap;font-size:clamp(20px,2vw,27px);display:block}.kpi-card small{color:#98a2b3;font-size:10px}.kpi-card.navy{color:var(--navy)}.kpi-card.teal{color:var(--teal)}.kpi-card.green{color:var(--green)}.kpi-card.blue{color:var(--blue)}.kpi-card.amber{color:var(--amber)}.kpi-card.red{color:var(--red)}.dashboard-grid{grid-template-columns:1.35fr .8fr;gap:18px;display:grid}.business-comparison{gap:18px;padding:22px;display:grid}.business-row>div:first-child{justify-content:space-between;align-items:center;gap:12px;display:flex}.business-row strong{font-size:13px}.business-row small{color:var(--muted);text-align:right;margin-top:5px;font-size:10px;display:block}.bar-track{background:#edf1f3;border-radius:999px;height:8px;margin-top:9px;overflow:hidden}.bar-track span{border-radius:inherit;height:100%;display:block}.bar-track span.teal{background:var(--teal)}.bar-track span.green{background:var(--green)}.business-tag{border-radius:6px;justify-content:center;align-items:center;min-width:40px;padding:3px 7px;font-size:10px;font-weight:900;display:inline-flex}.business-tag.teal{color:#09655f;background:#e3f4f1}.business-tag.green{color:#256c29;background:#e9f5e9}.business-tag.amber{color:#a15b08;background:#fff4df}.business-tag.blue{color:#1d4ed8;background:#e8efff}.mini-stats{border-top:1px solid #edf0f2;grid-template-columns:1fr 1fr;display:grid}.mini-stats span{color:var(--muted);padding:15px 22px;font-size:10px}.mini-stats span+span{border-left:1px solid #edf0f2}.mini-stats strong{color:var(--ink);margin-top:3px;font-size:16px;display:block}.invoice-panel{position:relative}.invoice-ring{--progress:100%;background:conic-gradient(var(--teal) var(--progress), #e8edef 0);border-radius:50%;place-items:center;width:128px;height:128px;margin:20px auto 15px;display:grid}.invoice-ring:before{content:"";background:#fff;border-radius:50%;width:92px;height:92px;position:absolute}.invoice-ring div{text-align:center;position:relative}.invoice-ring strong,.invoice-ring small{display:block}.invoice-ring strong{font-size:25px}.invoice-ring small{color:var(--muted);font-size:10px}.invoice-legend{color:var(--muted);justify-content:center;gap:20px;padding:0 22px 18px;font-size:10px;display:flex}.invoice-legend i{border-radius:50%;width:7px;height:7px;margin-right:5px;display:inline-block}.green-dot{background:var(--teal)}.amber-dot{background:var(--amber)}.table-wrap{width:100%;overflow:auto}.table-wrap.compact{max-height:370px}.wide-table{min-width:1480px}table{border-collapse:collapse;width:100%;font-size:12px}th{color:#667085;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap;letter-spacing:.02em;background:#f7f9fa;padding:11px 12px;font-size:10px}td{vertical-align:middle;border-bottom:1px solid #eef1f3;padding:11px 12px}tbody tr:hover{background:#fafcfc}tbody tr:last-child td{border-bottom:0}.number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.mono{font-family:Consolas,SFMono-Regular,monospace;font-size:11px}.positive{color:#14733c}.negative{color:var(--red)!important}.emphasis{color:var(--navy);font-weight:900}.cell-note,.matched-note{color:#98a2b3;margin-top:2px;font-size:9px;display:block}.matched-note{color:var(--teal)}.row-actions{gap:4px;display:flex}.status{white-space:nowrap;border-radius:6px;padding:4px 7px;font-size:9px;font-weight:900;display:inline-flex}.status.ok{color:#166534;background:#eaf7ec}.status.warn{color:#a15b08;background:#fff4df}.status.missing{color:#a12b22;background:#fdeceb}.empty-state{text-align:center;color:var(--muted);padding:38px 15px}.empty-state strong,.empty-state span{display:block}.empty-state strong{color:var(--ink);margin-bottom:4px}.total-row td{color:var(--navy);border-top:2px solid var(--teal);background:#eaf3f2;font-weight:900}.initial-stock{z-index:1;background:#ffffff1c;border-radius:13px;min-width:360px;padding:14px;position:relative}.initial-stock label{color:#ffffffbf;margin-bottom:7px;font-size:10px;font-weight:800;display:block}.initial-stock div{gap:7px;display:flex}.initial-stock input{border:0;border-radius:8px;flex:1;width:100px;min-width:0;padding:8px 10px}.year-control{z-index:1;background:#ffffff1a;border-radius:14px;align-items:center;gap:15px;padding:10px;display:flex;position:relative}.year-control button{color:#fff;background:#ffffff21;border:0;border-radius:9px;width:36px;height:36px;font-size:24px}.year-control strong{text-align:center;min-width:66px;font-size:23px}.importer{overflow:visible}.import-grid{grid-template-columns:.75fr 1.4fr;gap:22px;padding:22px;display:grid}.import-grid textarea{border:1px solid var(--line);resize:vertical;border-radius:11px;width:100%;min-height:230px;padding:12px;font:11px/1.5 Consolas,monospace}.file-drop{text-align:center;cursor:pointer;background:#f9fbfb;border:1.5px dashed #aab6bf;border-radius:11px;place-items:center;min-height:92px;margin-top:11px;display:grid}.file-drop input{display:none}.file-drop strong,.file-drop small{display:block}.file-drop strong{color:var(--teal)}.file-drop small{color:var(--muted);font-size:10px}.import-grid ol{color:var(--muted);margin:14px 0 0;padding-left:20px;font-size:11px}.table-input{border:1px solid var(--line);border-radius:7px;min-width:150px;padding:6px 8px}.bank-import-note{color:#125d53;background:#ebf7f4;border:1px solid #c8e6df;border-radius:10px;margin:0 22px 20px;padding:11px 13px;font-size:11px;font-weight:800}.bank-table{min-width:1600px}.bank-table td{max-width:300px}.bank-review-table{min-width:1900px}.bank-balance-strip{border:1px solid var(--line);background:var(--line);box-shadow:var(--shadow);border-radius:15px;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.bank-balance-strip.six{grid-template-columns:repeat(6,minmax(0,1fr))}.bank-balance-strip>div{background:#fff;min-height:90px;padding:16px 18px}.bank-balance-strip span,.bank-balance-strip strong{display:block}.bank-balance-strip span{color:var(--muted);font-size:10px;font-weight:800}.bank-balance-strip strong{color:var(--navy);font-variant-numeric:tabular-nums;margin-top:7px;font-size:18px}.reconciliation-grid{grid-template-columns:repeat(3,1fr);gap:12px;padding:18px 22px 10px;display:grid}.reconciliation-grid>div{border:1px solid var(--line);background:#f9fbfb;border-radius:12px;padding:15px}.reconciliation-grid span,.reconciliation-grid strong,.reconciliation-grid small,.reconciliation-grid b{display:block}.reconciliation-grid span{color:var(--muted);font-size:10px;font-weight:800}.reconciliation-grid strong{color:var(--navy);margin-top:5px;font-size:19px}.reconciliation-grid small{color:var(--muted);margin-top:5px;font-size:10px}.reconciliation-grid b{margin-top:7px;font-size:11px}.reconciliation-note{color:var(--muted);margin:0;padding:8px 22px 18px;font-size:10px}.cell-amount{white-space:nowrap;margin-top:7px;display:block}.ai-reason{white-space:normal;max-width:240px;line-height:1.45}.mini-action{color:#7b5515;background:#fff8e8;border:1px solid #ead39f;border-radius:7px;width:100%;margin-top:7px;padding:6px 8px;font-size:9px;font-weight:800;line-height:1.35}.bank-review-table .table-input{min-width:120px;margin-top:5px}.monthly-reconciliation-table{min-width:1900px}.confidence,.cash-direction{white-space:nowrap;border-radius:7px;justify-content:center;align-items:center;min-width:48px;padding:4px 7px;font-size:9px;font-weight:900;display:inline-flex}.confidence.高,.cash-direction.in{color:#146c43;background:#e9f7ef}.confidence.中{color:#9a6207;background:#fff4d9}.confidence.低,.cash-direction.out{color:#a3342b;background:#fdecea}.panel-head .button-row>select{min-height:40px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 30px 8px 10px}.invoice-library-actions{align-items:flex-end}.invoice-status-query{color:var(--muted);align-items:center;gap:8px;font-size:11px;font-weight:800;display:flex}.invoice-status-query select{min-width:185px;min-height:40px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:9px;outline:none;padding:8px 34px 8px 12px}.invoice-status-query select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0f766e1a}.modal-backdrop{z-index:100;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#0c1c2894;place-items:center;padding:20px;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.modal{background:#fff;border-radius:19px;width:min(900px,100%);max-height:calc(100vh - 35px);overflow:auto;box-shadow:0 30px 80px #00000040}.modal-head{z-index:2;border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;padding:21px 24px 15px;display:flex;position:sticky;top:0}.modal-head h2{margin:3px 0 0}.icon-button{width:36px;height:36px;color:var(--muted);background:var(--soft);border:0;border-radius:9px;font-size:25px}.modal form,.modal-body{padding:22px 24px}.form-grid{grid-template-columns:repeat(4,1fr);gap:14px;display:grid}.field{display:block}.field.wide{grid-column:span 4}.field>span{color:#475467;min-height:20px;font-size:10px;font-weight:900;display:block}.field>span b{color:var(--red)}.field input,.field select,.field textarea,td select{width:100%;min-height:39px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:8px;outline:none;padding:8px 9px}.field input:focus,.field select:focus,.field textarea:focus,td select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0f766e1a}.field small{color:#98a2b3;margin-top:4px;font-size:9px;display:block}.calculated{min-height:39px;color:var(--navy);background:#eef5f4;border-radius:8px;padding:9px 10px;font-weight:900}.form-section{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.form-section h3{margin:0 0 15px;font-size:14px}.form-section h3 small{color:var(--muted);margin-left:8px;font-size:9px;font-weight:400}.modal-actions{border-top:1px solid var(--line);background:#fff;justify-content:flex-end;gap:9px;margin:22px -24px -22px;padding:15px 24px;display:flex;position:sticky;bottom:-22px}.autosave-actions{justify-content:space-between;align-items:center}.autosave-note{color:var(--muted);align-items:center;font-size:12px;font-weight:700;display:inline-flex}.autosave-note.saved{color:#087e6c}.autosave-note.pending{color:var(--red)}.form-section.wide,.petty-check.wide{grid-column:span 4}.petty-modal{width:min(980px,100%)}.large-modal{width:min(1180px,100%)}.customer-invoice-body{gap:18px;display:grid}.customer-invoice-body .subsection{border:1px solid var(--line);background:#fff;border-radius:13px;overflow:hidden}.customer-invoice-body .compact-form{padding:18px 20px 8px}.customer-invoice-actions{padding:0 20px 16px}.petty-check{background:#fffaf0;border:1px solid #ead9b9;border-radius:11px;grid-template-columns:repeat(4,1fr);gap:9px;padding:13px;display:grid}.petty-check span{color:var(--muted);font-size:10px}.petty-check strong{color:var(--ink);margin-top:4px;font-size:14px;display:block}.petty-actions{flex-wrap:wrap;min-width:130px}.invoice-batch-shared{background:#f2f8f7;border:1px solid #cfe0df;border-radius:12px;grid-template-columns:1.2fr 1fr .55fr;gap:14px;margin-bottom:18px;padding:16px;display:grid}.manual-invoice-list{gap:14px;display:grid}.manual-invoice-row{border:1px solid var(--line);background:#fbfcfc;border-radius:13px;padding:16px}.manual-row-head{justify-content:space-between;align-items:center;margin-bottom:13px;display:flex}.manual-row-head h3{color:var(--navy);margin:0;font-size:14px}.add-invoice-row{width:100%;margin-top:14px;border-style:dashed!important}.invoice-batch-total{color:var(--navy);text-align:right;background:#eaf3f2;border-radius:10px;margin-top:12px;padding:12px 15px;font-weight:900}.alert{color:#8a251e;background:#fdeceb;border:1px solid #f6c9c5;border-radius:10px;justify-content:space-between;gap:12px;margin-bottom:16px;padding:11px 14px;font-size:12px;display:flex}.alert button{color:inherit;background:0 0;border:0;font-weight:800}.loading-grid{grid-template-columns:repeat(4,1fr);gap:14px;display:grid}.loading-grid div{background:linear-gradient(90deg,#e5eaed 25%,#f4f6f7 50%,#e5eaed 75%) 0 0/200% 100%;border-radius:16px;height:150px;animation:1.2s infinite loading}@keyframes loading{to{background-position:-200% 0}}.mobile-nav{display:none}.date-range-bar{z-index:1;background:#ffffff1f;border-radius:13px;grid-template-columns:1fr 1fr auto;align-items:end;gap:8px;min-width:480px;padding:12px;display:grid;position:relative}.date-range-bar label span{color:#fffc;margin-bottom:5px;font-size:9px;font-weight:800;display:block}.date-range-bar input{width:100%;min-height:38px;color:var(--ink);background:#fff;border:0;border-radius:8px;padding:7px 9px}.date-range-bar>strong{color:#ffffffdb;text-align:right;grid-column:1/-1;font-size:10px}.quick-panel .mini-stats{align-items:center;min-height:90px}.profit-formula{padding:24px}.profit-formula h3{margin:0 0 18px}.profit-formula>div{grid-template-columns:1fr auto 1fr auto 1fr auto 1.2fr;align-items:center;gap:12px;display:grid}.profit-formula span{border:1px solid var(--line);color:var(--muted);background:#f9fbfb;border-radius:12px;padding:18px;font-size:11px}.profit-formula span strong{color:var(--ink);margin-top:5px;font-size:18px;display:block}.profit-formula b{color:var(--muted);font-size:22px}.net-profit-formula{background:#fbfefc;border-color:#cfe3d4}.formula-note{color:var(--muted);margin:-10px 0 16px;font-size:10px}.payment-check{background:#f4f8fb;border-color:#cbdceb}.file-button{cursor:pointer}.file-button input{display:none}.inventory-month{z-index:1;align-items:flex-end;gap:10px;display:flex;position:relative}.inventory-month label span{color:#fffc;margin-bottom:5px;font-size:9px;font-weight:800;display:block}.inventory-month input{min-height:40px;color:var(--ink);background:#fff;border:0;border-radius:9px;padding:8px 10px}.inventory-range-tools{z-index:1;align-items:flex-end;gap:10px;display:flex;position:relative}.inventory-range-tools .date-range-bar{min-width:470px}.inventory-editor{grid-template-columns:1.5fr .65fr 1fr 1fr auto;gap:10px;padding:0 22px 18px;display:grid}.inventory-editor input,.inventory-editor select{width:100%;min-height:40px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px}.inventory-editor.issue-editor{border-top:1px solid var(--line);grid-template-columns:1fr 1.3fr .8fr 1fr 1fr 1fr 1.2fr auto;padding-top:18px}.subsection-title{border-top:1px solid var(--line);justify-content:space-between;align-items:baseline;gap:12px;padding:18px 22px 10px;display:flex}.subsection-title strong{color:var(--navy);font-size:13px}.subsection-title span{color:var(--muted);font-size:10px}.inline-error{color:var(--red);margin:-8px 22px 16px;font-size:11px;font-weight:700}.issue-filter-title{align-items:flex-end}.issue-print-tools{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.issue-print-tools label span{color:var(--muted);margin-bottom:4px;font-size:9px;font-weight:800;display:block}.issue-print-tools input{min-height:40px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 9px}.inventory-accounting-table{min-width:1680px}.summary-total-row td{background:#eef7f4;border-top:2px solid #a5d2c8;font-weight:800}@media (max-width:1150px){:root{--sidebar:202px}.main{padding-inline-start:22px;padding-inline-end:22px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:repeat(2,1fr)}.field.wide,.form-section.wide,.petty-check.wide{grid-column:span 2}.petty-check,.invoice-batch-shared{grid-template-columns:repeat(2,1fr)}.bank-balance-strip{grid-template-columns:repeat(3,1fr)}.inventory-editor,.inventory-editor.issue-editor{grid-template-columns:repeat(2,1fr)}}@media (max-width:760px){body{background:#f3f6f7}.sidebar{display:none}.main{padding:env(safe-area-inset-top) 12px calc(90px + env(safe-area-inset-bottom));margin-left:0}.topbar{min-height:82px}.topbar h1{font-size:23px}.top-actions .button{display:none}.user-chip{min-width:auto;padding-right:7px}.user-chip div{display:none}.welcome-card,.tax-hero,.report-hero,.ledger-summary,.petty-hero,.payment-hero,.purchase-hero,.profit-hero,.expense-hero{flex-direction:column;align-items:flex-start;gap:18px;min-height:200px;padding:23px 20px}.dashboard-hero-tools,.profit-hero-tools{justify-items:stretch;width:100%}.welcome-actions{width:100%}.welcome-actions .button{flex:1}.tax-hero .button,.petty-hero .button{width:100%}.date-range-bar{grid-template-columns:1fr 1fr;width:100%;min-width:0}.date-range-bar .button{grid-column:1/-1}.initial-stock{width:100%;min-width:0}.initial-stock input{flex:1}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kpi-card{min-height:130px;padding:15px}.kpi-card>strong{white-space:normal;font-size:18px}.dashboard-grid{gap:12px}.panel{border-radius:14px}.panel-head{padding-inline-start:15px;padding-inline-end:15px}.table-wrap{-webkit-overflow-scrolling:touch}.profit-formula>div{grid-template-columns:1fr}.profit-formula b{text-align:center}.import-grid{grid-template-columns:1fr;padding:15px}.form-grid,.invoice-batch-shared{grid-template-columns:1fr}.field.wide,.form-section.wide,.petty-check.wide{grid-column:span 1}.petty-check{grid-template-columns:repeat(2,1fr)}.manual-invoice-row{padding:13px}.invoice-batch-total{text-align:left}.modal-backdrop{align-items:end;padding:0}.modal{max-height:94dvh;padding-bottom:env(safe-area-inset-bottom);border-radius:20px 20px 0 0}.modal form,.modal-body,.modal-head{padding-inline-start:16px;padding-inline-end:16px}.modal-actions{margin-inline-start:-16px;margin-inline-end:-16px;padding-inline-start:16px;padding-inline-end:16px}.autosave-actions{gap:12px}.autosave-note{font-size:10px}.form-section h3 small{margin:4px 0 0;display:block}.field input,.field select,.field textarea,td select{min-height:44px;font-size:16px}.mobile-nav{left:max(8px, env(safe-area-inset-left));right:max(8px, env(safe-area-inset-right));bottom:max(8px, env(safe-area-inset-bottom));z-index:50;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff0;border:1px solid #d0d5dde6;border-radius:17px;grid-auto-columns:minmax(58px,1fr);grid-auto-flow:column;gap:2px;height:66px;padding:6px;display:grid;position:fixed;overflow-x:auto;box-shadow:0 12px 35px #142a3a33}.mobile-nav button{min-width:0;color:var(--muted);background:0 0;border:0;border-radius:10px;place-items:center;gap:0;display:grid}.mobile-nav button span{font-weight:900}.mobile-nav button small{white-space:nowrap;font-size:8px}.mobile-nav button.active{color:#fff;background:var(--navy)}.loading-grid{grid-template-columns:1fr 1fr}.bank-balance-strip{grid-template-columns:repeat(2,1fr)}.bank-balance-strip>div{min-height:78px;padding:13px}.bank-balance-strip strong{font-size:15px}.reconciliation-grid{grid-template-columns:1fr;padding:14px}.reconciliation-note{padding-inline-start:14px;padding-inline-end:14px}.invoice-library-actions,.invoice-status-query{flex-direction:column;align-items:stretch;width:100%}.invoice-status-query select,.invoice-library-actions .button{width:100%}.inventory-month{flex-direction:column;align-items:stretch;width:100%}.inventory-month input,.inventory-month .button{width:100%}.inventory-range-tools{flex-direction:column;align-items:stretch;width:100%}.inventory-range-tools .date-range-bar,.inventory-range-tools .button{width:100%;min-width:0}.inventory-editor,.inventory-editor.issue-editor{grid-template-columns:1fr;padding-inline-start:14px;padding-inline-end:14px}.subsection-title{flex-direction:column;align-items:flex-start;padding-inline-start:14px;padding-inline-end:14px}.issue-print-tools{grid-template-columns:1fr 1fr;width:100%;display:grid}.issue-print-tools .button{width:100%}}.petty-record-list{gap:16px;padding:0 20px 22px;display:grid}.petty-record-card{border:1px solid var(--line);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 5px 18px #142a3a0d}.petty-record-head{border-bottom:1px solid var(--line);background:linear-gradient(120deg,#fbfcfc,#fffaf0);grid-template-columns:minmax(210px,1.1fr) minmax(430px,2fr) auto;align-items:center;gap:18px;padding:16px 18px;display:grid}.petty-record-head>div:first-child{min-width:0}.petty-record-head>div:first-child>strong,.petty-record-head>div:first-child>span,.petty-record-head>div:first-child>small{display:block}.petty-record-head>div:first-child>strong{color:var(--navy);font-size:15px}.petty-record-head>div:first-child>span{color:#475467;margin-top:4px;font-size:11px}.petty-record-head>div:first-child>small{color:var(--muted);margin-top:3px}.petty-record-summary{grid-template-columns:repeat(4,minmax(85px,1fr));gap:8px;display:grid}.petty-record-summary span{color:var(--muted);background:#ffffffe0;border-radius:9px;padding:8px 10px;font-size:9px}.petty-record-summary strong{color:var(--ink);white-space:nowrap;margin-top:3px;font-size:12px;display:block}.petty-detail-table table{min-width:1040px}.personal-cash-stats{grid-template-columns:repeat(3,1fr)}.detail-print-button{white-space:nowrap;color:#087e6c;background:#eaf7f4!important;border-color:#bfe3da!important}.empty-card{color:var(--muted);text-align:center;border:1px dashed var(--line);border-radius:13px;padding:42px 20px}.detail-section{justify-content:space-between;align-items:flex-end;gap:16px;margin-top:24px;display:flex}.detail-section h3{margin-bottom:4px}.detail-section p{color:var(--muted);margin:0;font-size:11px}.petty-detail-editor{gap:14px;margin-top:14px;display:grid}.petty-detail-card{background:#fffdf8;border:1px solid #ead9b9;border-radius:13px;padding:15px}.petty-detail-card-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px;display:flex}.petty-detail-card-head>div:first-child{align-items:center;gap:9px;display:flex}.petty-detail-card-head strong{color:#6e4c14;font-size:13px}.petty-detail-card .form-grid{grid-template-columns:repeat(4,1fr)}.add-detail-wide{color:#7b5515;background:#fffaf0;border:1px dashed #b9975a;border-radius:10px;width:100%;margin-top:13px;padding:12px;font-weight:800}.petty-modal .petty-check{grid-template-columns:repeat(6,1fr);margin-top:15px}@media (max-width:1150px){.petty-record-head{grid-template-columns:1fr}.petty-record-head>.row-actions{justify-content:flex-end}.petty-detail-card .form-grid{grid-template-columns:repeat(2,1fr)}.petty-detail-card .field.wide{grid-column:span 2}.petty-modal .petty-check{grid-template-columns:repeat(3,1fr)}}@media (max-width:760px){.petty-record-list{padding:0 12px 16px}.petty-record-head{gap:12px;padding:14px}.petty-record-summary{grid-template-columns:repeat(2,1fr)}.petty-record-head>.row-actions{justify-content:stretch}.petty-record-head>.row-actions button{flex:1}.personal-cash-stats{grid-template-columns:1fr}.detail-section{flex-direction:column;align-items:stretch}.detail-section .button{width:100%}.petty-detail-card{padding:13px}.petty-detail-card-head{flex-direction:column;align-items:stretch}.petty-detail-card-head .row-actions button{flex:1}.petty-detail-card .form-grid{grid-template-columns:1fr}.petty-detail-card .field.wide{grid-column:span 1}.petty-modal .petty-check{grid-template-columns:repeat(2,1fr)}}
