:root{--ink:#1f2a37;--muted:#778292;--line:#e9edf1;--bg:#f6f8fa;--blue:#2368d8;--blue2:#edf4ff;--green:#24966a;--orange:#d58a25;--red:#d45555;--nav:#172436}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans','Noto Sans SC',sans-serif}.sidebar{width:236px;position:fixed;inset:0 auto 0 0;background:var(--nav);color:#eaf0f8;padding:25px 15px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:1px 12px 29px}.brand-mark{width:37px;height:37px;border-radius:11px;background:#4386ed;display:grid;place-items:center;font-size:21px;font-weight:700}.brand b{font-size:18px;letter-spacing:1px;display:block}.brand small{font-size:11px;color:#93a3b9}.company{margin:0 4px 22px;padding:11px 12px;background:#22334a;border-radius:9px;display:flex;align-items:center;gap:9px;font-size:12px}.company button{margin-left:auto;border:0;background:none;color:#adbbcc;font-size:16px;cursor:pointer}.dot,.online-dot{width:8px;height:8px;border-radius:50%;background:#55c792}.sidebar nav{display:grid;gap:6px}.sidebar nav button{height:43px;border:0;border-radius:8px;background:none;color:#adbacb;text-align:left;padding:0 12px;cursor:pointer;font:inherit}.sidebar nav button.active,.sidebar nav button:hover{background:#2b4260;color:white}.sidebar nav i{font-style:normal;font-size:17px;width:30px;display:inline-block;color:#9eb2ca}.side-bottom{margin-top:auto;color:#91a0b3;font-size:11px;padding:12px}.online-dot{display:inline-block;margin-right:8px}main{margin-left:236px;min-height:100vh}header{height:64px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 36px}.crumb{font-size:12px;color:#4b596a}.crumb span{padding:0 8px;color:#b2bac3}.top-actions{display:flex;align-items:center;gap:23px;font-size:12px;color:var(--muted)}.user-chip{border:0;background:none;display:flex;align-items:center;gap:8px;color:#38465a;font:inherit}.avatar{width:28px;height:28px;border-radius:50%;background:#e8f0fd;color:#356dc3;display:grid;place-items:center}#app{max-width:1320px;padding:32px 36px 60px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:25px}.page-head h1{margin:0 0 6px;font-size:23px;font-weight:650;letter-spacing:-.4px}.page-head p{margin:0;color:var(--muted);font-size:12px}.btn{border:1px solid #dbe2e9;background:white;padding:9px 14px;border-radius:7px;color:#3e4c5e;cursor:pointer;font:500 12px inherit}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.soft{background:var(--blue2);border-color:var(--blue2);color:var(--blue)}.btn.danger{color:var(--red)}.btn:hover{filter:brightness(.97)}.head-actions{display:flex;gap:9px}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.card{background:white;border:1px solid var(--line);border-radius:10px;padding:19px}.stat-label{color:var(--muted);font-size:12px}.stat-val{font-size:24px;font-weight:650;margin:12px 0 8px;letter-spacing:-.3px}.stat-note{font-size:11px;color:#9aa4af}.stat-icon{float:right;width:32px;height:32px;border-radius:9px;background:#eef4ff;color:#3d78d4;display:grid;place-items:center}.columns{grid-template-columns:1.45fr 1fr}.card-title{font-weight:600;font-size:14px;margin-bottom:4px}.card-sub{font-size:11px;color:var(--muted)}.chart-wrap{height:220px;margin-top:17px;position:relative}canvas{width:100%;height:100%}.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.quick button{border:1px solid var(--line);background:white;border-radius:8px;padding:13px;text-align:left;cursor:pointer;color:var(--ink)}.quick button b{display:block;font-size:12px;margin:0 0 4px}.quick button small{font-size:10px;color:var(--muted)}.activity{margin-top:17px}.row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #f0f2f4;font-size:12px}.row:last-child{border-bottom:0}.tag{padding:4px 8px;border-radius:20px;background:#eef7f2;color:var(--green);font-size:10px}.tag.draft{background:#fff5e8;color:var(--orange)}.table-card{padding:0;overflow:hidden}.toolbar{display:flex;justify-content:space-between;padding:15px 18px;border-bottom:1px solid var(--line);gap:12px;align-items:center}.filters{display:flex;gap:8px;align-items:center}.input,select{border:1px solid #dfe5eb;background:#fff;border-radius:6px;height:34px;padding:0 10px;color:#364354;font:12px inherit;outline:none}.input:focus,select:focus{border-color:#77a6ed}.search{width:220px}table{border-collapse:collapse;width:100%;background:white}th{text-align:left;color:#7c8795;background:#fafbfc;font-size:11px;font-weight:500;padding:12px 16px;border-bottom:1px solid var(--line);white-space:nowrap}td{font-size:12px;padding:13px 16px;border-bottom:1px solid #f0f2f4;color:#364354}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfe}.amount{text-align:right;font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.link{color:var(--blue);cursor:pointer}.pagination{display:flex;justify-content:space-between;padding:12px 18px;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}.empty{text-align:center;padding:48px;color:var(--muted)}.report-cards{grid-template-columns:repeat(5,1fr)}.report-card{cursor:pointer;transition:.15s}.report-card:hover{border-color:#aac7f5;transform:translateY(-1px)}.report-card .r-icon{font-size:21px;color:var(--blue);margin-bottom:15px}.report-card b{display:block;margin-bottom:6px}.report-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}.balance{color:var(--blue);font-weight:600}.settings-grid{grid-template-columns:1fr 1fr}.setting-title{font-weight:600;margin-bottom:8px}.setting-copy{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:15px}.modal-bg{position:fixed;inset:0;background:#101c2c66;display:grid;place-items:center;z-index:5;padding:20px}.modal{width:min(820px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 24px 80px #14243a33}.modal.small{width:min(500px,100%)}.modal-head{padding:19px 23px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-head h2{font-size:16px;margin:0}.x{border:0;background:none;font-size:22px;color:#85909e;cursor:pointer}.modal-body{padding:22px 23px}.modal-foot{padding:14px 23px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:20px}.field label{display:block;color:#6d7887;font-size:11px;margin-bottom:6px}.field input,.field select{width:100%;height:36px}.voucher-table{border:1px solid var(--line);border-radius:8px;overflow:hidden}.voucher-table th,.voucher-table td{padding:9px}.voucher-table input,.voucher-table select{width:100%;height:32px}.voucher-table input.money{text-align:right}.voucher-bottom{display:flex;justify-content:space-between;margin:12px 0;font-size:12px}.sum{display:flex;gap:30px}.balanced{color:var(--green)}.unbalanced{color:var(--red)}.add-line{margin-top:10px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;background:#203047;color:white;padding:11px 18px;border-radius:8px;font-size:12px;transition:.2s;z-index:10;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.modal-note{color:var(--muted);font-size:11px;line-height:1.7}.pill-tabs{display:flex;gap:5px}.pill-tabs button{border:0;background:#f1f3f6;padding:7px 11px;border-radius:6px;cursor:pointer;color:#697587;font-size:11px}.pill-tabs button.active{background:var(--blue2);color:var(--blue)}
.opening-field{width:126px;text-align:right}.modal-note{font-size:11px}.subtotal-row{font-weight:700;background:#f3f6fa}.subtotal-row td{border-top:1px solid #cbd4df}@media print{.sidebar,header,.head-actions,.report-cards,.quick{display:none!important}main{margin:0}#app{max-width:none;padding:0}.card{border:0}.table-card{overflow:visible}body{background:#fff}}
@media(max-width:1000px){.sidebar{width:190px}main{margin-left:190px}#app{padding:25px 22px}.stats{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1fr}}@media(max-width:700px){.sidebar{width:64px;padding:20px 8px}.brand{padding:0 5px 25px}.brand>div:last-child,.company,.sidebar nav button:not(.active),.side-bottom{display:none}.sidebar nav button{font-size:0;text-align:center;padding:0}.sidebar nav i{width:auto;font-size:18px}main{margin-left:64px}header{padding:0 14px}#app{padding:20px 12px}.stats,.settings-grid,.report-cards{grid-template-columns:1fr 1fr}.page-head{gap:12px}.page-head h1{font-size:20px}.form-grid{grid-template-columns:1fr 1fr}.toolbar{align-items:flex-start;flex-direction:column}.search{width:100%}.opening-field{width:92px}}

.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.online-dot.error{background:#d45555}.online-dot.saving{background:#d58a25}

.profit-total{font-weight:700;background:#f5f8fc}@media(min-width:1001px){.report-cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:1000px){.report-cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.report-cards{grid-template-columns:repeat(2,1fr)}}

.reconciled-row{background:#f1faf5}.reconciliation-check{width:34px;text-align:center}

.modal.modal-tall{display:flex;flex-direction:column;overflow:hidden}.modal-tall .modal-head,.modal-tall .modal-foot{flex:0 0 auto}.modal-tall .modal-body{overflow:auto;min-height:0}
@media print{body *{visibility:hidden!important}#payrollPrintable,#payrollPrintable *{visibility:visible!important}#payrollPrintable{position:absolute;left:0;top:0;width:100%;padding:12mm;background:#fff}#payrollPrintable table{width:100%;border-collapse:collapse}#payrollPrintable th,#payrollPrintable td{border:1px solid #aeb8c4;padding:6px}#payrollPrintable h2{margin:0 0 16px}}
.cash-flow-table{width:100%;border-collapse:collapse;font-size:12px}.cash-flow-table thead th{background:#e7eee9;border:1px solid #cdd7d1;padding:8px 10px;color:#33443a}.cash-flow-table tbody td{border:1px solid #d9e0dc;padding:6px 10px}.cash-flow-table .cash-flow-row-no{width:70px;text-align:center;color:#748077}.cash-flow-table .cash-flow-action{width:84px;text-align:center}.cash-flow-card .stats{grid-template-columns:repeat(3,minmax(0,1fr))}.cash-flow-card .subtotal-row{background:#f2f5f3}.cash-flow-card .profit-total{background:#f6f7f4}
@media print{body.cash-flow-printing *{visibility:hidden!important}body.cash-flow-printing #cashFlowPrintable,body.cash-flow-printing #cashFlowPrintable *{visibility:visible!important}body.cash-flow-printing #cashFlowPrintable{position:absolute;left:0;top:0;width:100%;padding:10mm;background:#fff;border:0}body.cash-flow-printing #cashFlowPrintable .toolbar select,body.cash-flow-printing #cashFlowPrintable .cash-flow-action{display:none!important}body.cash-flow-printing #cashFlowPrintable table{width:100%;border-collapse:collapse}body.cash-flow-printing #cashFlowPrintable th,body.cash-flow-printing #cashFlowPrintable td{border:1px solid #aeb8c4;padding:5px}body.cash-flow-printing #cashFlowPrintable .stats{grid-template-columns:repeat(3,1fr)}}
.custom-report-toolbar{margin-top:14px}.custom-report-toolbar .toolbar{align-items:center;gap:14px;flex-wrap:wrap}.custom-report-toolbar .filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.custom-report-toolbar .filters label{display:flex;align-items:center;gap:7px}.custom-report-hint{margin-top:10px;color:#66736a;font-size:12px}.custom-report-hint code{padding:2px 5px;border-radius:4px;background:#edf2ed;color:#2c5937}.custom-report-sheet{padding:0;overflow:hidden}.custom-report-scroll{overflow:auto;max-height:calc(100vh - 300px)}.custom-report-sheet table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:fixed}.custom-report-sheet th,.custom-report-sheet td{min-width:130px;height:34px;padding:0;border:1px solid #dce3de}.custom-report-sheet thead th{position:sticky;top:0;z-index:2;background:#edf2ee;text-align:center}.custom-report-sheet .custom-report-row{position:sticky;left:0;z-index:1;min-width:44px;width:44px;background:#f2f5f3;text-align:center}.custom-report-sheet thead .custom-report-row{z-index:3}.custom-report-cell{display:block;box-sizing:border-box;width:100%;height:100%;min-height:18px;border:0;padding:5px 8px;background:transparent;color:#27332b;font:inherit;outline:none}.custom-report-cell:focus{box-shadow:inset 0 0 0 2px #468456;background:#f7fbf7}.custom-report-value{text-align:right}.custom-report-sheet .pagination{padding:10px 14px}.report-card{cursor:pointer}@media print{body:has(.custom-report-sheet) *{visibility:hidden!important}body:has(.custom-report-sheet) #app,body:has(.custom-report-sheet) #app *{visibility:visible!important}body:has(.custom-report-sheet) #app{position:absolute;left:0;top:0;width:100%;padding:8mm;background:#fff}body:has(.custom-report-sheet) .sidebar,body:has(.custom-report-sheet) .topbar,body:has(.custom-report-sheet) .custom-report-toolbar,body:has(.custom-report-sheet) .pagination,body:has(.custom-report-sheet) .page-head button{display:none!important}body:has(.custom-report-sheet) .custom-report-sheet{border:0;box-shadow:none;overflow:visible}body:has(.custom-report-sheet) .custom-report-scroll{max-height:none;overflow:visible}body:has(.custom-report-sheet) .custom-report-sheet table{width:100%;table-layout:auto;font-size:9pt}body:has(.custom-report-sheet) .custom-report-sheet th,body:has(.custom-report-sheet) .custom-report-sheet td{min-width:0;height:auto;border:1px solid #777}body:has(.custom-report-sheet) .custom-report-cell{height:auto;min-height:20px;padding:3px;color:#111}}
.custom-report-print-header,.custom-report-print-footer{display:none}@media print{body.custom-report-printing *{visibility:hidden!important}body.custom-report-printing #customReportPrintable,body.custom-report-printing #customReportPrintable *{visibility:visible!important}body.custom-report-printing #customReportPrintable{position:absolute!important;left:0!important;top:0!important;width:100%!important;padding:0!important;background:#fff!important;box-shadow:none!important;border:0!important}body.custom-report-printing #app{max-width:none!important;padding:0!important;margin:0!important}body.custom-report-printing #customReportPrintable .custom-report-scroll{max-height:none!important;overflow:visible!important}body.custom-report-printing #customReportPrintable table{min-width:0!important;border-collapse:collapse!important}body.custom-report-printing #customReportPrintable thead{display:table-header-group}body.custom-report-printing #customReportPrintable tr{break-inside:avoid;page-break-inside:avoid}body.custom-report-printing #customReportPrintable th,body.custom-report-printing #customReportPrintable td{min-width:0!important;height:auto!important;border:1px solid #777!important}body.custom-report-printing #customReportPrintable .custom-report-cell{width:100%!important;height:auto!important;min-height:20px!important;padding:3px!important;color:#111!important}body.custom-report-printing .custom-report-print-header,body.custom-report-printing .custom-report-print-footer{display:block!important;text-align:center;font-size:10pt;color:#111;padding:4mm 0}body.custom-report-printing #customReportPrintable .pagination{display:none!important}}
.custom-report-format-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fafcfb}.custom-report-format-toolbar label{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:12px}.custom-report-format-toolbar .input{min-width:78px;height:32px;padding:4px 7px}.custom-report-format-toolbar input[type=color]{width:34px;height:30px;border:1px solid var(--line);padding:2px;background:#fff;border-radius:5px}.custom-report-format-toolbar input[type=checkbox]{margin:0}.custom-report-format-toolbar #customReportMergeRange{width:106px}.custom-report-sheet td[rowspan],.custom-report-sheet td[colspan]{vertical-align:middle}.custom-report-sheet .custom-report-cell{overflow:hidden;text-overflow:ellipsis}

@media print{.custom-report-sheet tr,.custom-report-sheet th,.custom-report-sheet td{position:static!important;top:auto!important;left:auto!important;z-index:auto!important}}

@media print{.fixed-asset-report-filters{display:none!important}.fixed-asset-report .pagination{display:none!important}}
