/* Page-specific additions to the shared visual system. */
.sidebar-bottom{margin-top:auto}.brand{text-decoration:none;color:inherit}.brand>span:last-child{display:grid;gap:4px}.sidebar-note{margin:0 17px 16px;padding:13px;background:#f0f2f7;border-radius:9px;font-size:12px;color:#596579}.sidebar-note small{display:block;margin-top:6px;font-size:11px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#28a47c;margin-right:7px}.app-footer{padding:10px 36px 24px;color:#98a0af;font-size:12px}.month-picker{display:flex;align-items:center;gap:8px;color:#677286;font-size:12px}.month-picker input{font:inherit;padding:7px 8px;background:#fff;border:1px solid #e1e5ec;border-radius:7px;color:#384055}.sidebar-overlay{display:none}.nav-item{width:100%;text-decoration:none}.nav-item svg{flex-shrink:0}.button svg{width:16px;height:16px}.row{display:flex;align-items:center;gap:10px}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.table-wrap td .muted{display:block;font-size:11px;margin-top:5px}.amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.submetric{font-size:11px;color:#8d96a6;margin-top:5px}.dashboard-grid{align-items:start}.dashboard-main,.dashboard-rail{display:grid;gap:20px}.big-number{font-size:30px;font-weight:650;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.profit-head{background:#f1f3ff;padding:20px;border-radius:12px 12px 0 0}.profit-head .small-label{color:#626ba3}.profit-head .big-number{margin-top:9px;color:#3546bc}.account-icon svg{width:17px;height:17px}.account-icon.business{background:#edf0fd;color:#5368db}.account-icon.personal{background:#eaf5f2;color:#2f8872}.kpi-card{cursor:pointer;transition:transform .15s,box-shadow .15s}.kpi-card:hover{transform:translateY(-2px);box-shadow:0 5px 15px #172b5210}.kpi-card:focus-visible{outline:3px solid #a8b5ff;outline-offset:3px}.kpi-icon{display:flex}.kpi-label{display:flex;align-items:center;justify-content:space-between}.kpi-label svg{width:18px;height:18px}.kpi-value small{font-size:17px;color:#788396;margin-right:4px;font-weight:400}.summary-strip strong{font-variant-numeric:tabular-nums}.summary-strip>button{border:0;background:none;color:inherit;cursor:pointer;text-align:left;font:inherit}.compact-chart{display:flex;align-items:flex-end;justify-content:space-around;height:156px;padding:14px 16px 2px;gap:8px}.bar-day{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;position:relative}.bar-pair{display:flex;gap:4px;align-items:flex-end;height:120px;width:70%;max-width:42px}.bar-pair i{width:50%;background:#5266db;border-radius:4px 4px 0 0;min-height:2px}.bar-pair i.out{background:#dce2f3}.bar-day>span{font-size:10px;color:#8c96a7;margin-top:8px}.chart-key{display:flex;gap:14px;color:#7b8496;font-size:11px}.chart-key i{width:7px;height:7px;display:inline-block;border-radius:2px;margin-right:5px;background:#5266db}.chart-key i.out{background:#dce2f3}.account-select{font:inherit;max-width:210px;border:1px solid #e0e5ee;border-radius:7px;padding:9px;background:#fff;color:#47536a}.full-width{width:100%}.panel .table-wrap{border:0;border-radius:0 0 12px 12px}.panel-head .button{white-space:nowrap}.task-count{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;width:30px;height:30px;background:#fff4df;color:#a77719;font-weight:700}.task-text{flex:1}.task-text strong{font-size:13px;display:block}.task-text small{font-size:11px;color:#8d96a6}.list-row.button-row{border:0;border-bottom:1px solid #eef0f5;background:none;width:100%;font:inherit;text-align:left;cursor:pointer}.list-row.button-row:last-child{border:0}.button-row:hover{background:#f9faff}.data-note{font-size:12px;color:#9199a8;line-height:1.8}.customer-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.customer-card{padding:16px;text-align:left;border:1px solid #e4e8ef;background:#fff;border-radius:10px;cursor:pointer;font:inherit}.customer-card.selected{border-color:#7182e7;background:#f6f7ff}.customer-card .amount{font-size:23px;display:block;margin:12px 0 5px}.table-actions{display:flex;gap:12px;white-space:nowrap}.table-actions button,.text-button{border:0;background:none;padding:0;color:#4b5fd2;font:inherit;font-size:12px;cursor:pointer}.text-button:hover,.table-actions button:hover{text-decoration:underline}.sn-code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;color:#626f84}.statement-head{padding:18px 20px;background:#f7f8fc;display:flex;justify-content:space-between;gap:20px}.form-grid input,.form-grid select,.form-grid textarea{min-width:0;width:100%;box-sizing:border-box}.field textarea{min-height:90px;resize:vertical}.modal-body .form-grid+.preview-box{margin-top:18px}.preview-box .amount{font-size:14px}.preview-box .positive{color:#2b8b70}.preview-box h3{font-size:13px;margin:0 0 10px}.modal-foot{display:flex;justify-content:flex-end;gap:10px}.modal-head .muted{font-size:12px;margin:6px 0 0}.modal-head{align-items:flex-start}.modal-head h2{font-size:19px;margin:0}.close-modal{border:0;background:none;font-size:24px;line-height:1;color:#8590a1;cursor:pointer}.error-message:empty{display:none}.error-message{margin-top:14px;background:#fff0ee;color:#b74339;padding:10px 12px;border-radius:7px;font-size:13px}.allocation-preview{max-height:150px;overflow:auto}.preview-row{gap:12px}.detail-item{overflow-wrap:anywhere}.detail-item dt{font-size:12px;color:#8992a4;margin-bottom:8px}.detail-item dd{margin:0;font-size:15px;font-weight:550}.detail-grid{margin:0 0 20px}.timeline{list-style:none;padding:0;margin:18px 0}.timeline li{position:relative;margin-left:7px;padding:0 0 22px 24px;border-left:1px solid #dee3ed;font-size:13px;line-height:1.8}.timeline li:last-child{border-left-color:transparent;padding-bottom:0}.timeline li:before{content:'';position:absolute;width:8px;height:8px;background:#6072da;border:4px solid #f0f3ff;border-radius:50%;left:-8px;top:2px}.timeline small{display:block;color:#8d95a5}.import-file{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #edf0f5}.file-icon{color:#48967b;background:#ecf8f2;padding:10px;border-radius:8px;align-self:flex-start}.import-file>div:nth-child(2){flex:1}.import-file strong{font-size:13px}.import-file small{display:block;margin-top:5px;color:#9099aa;font-size:11px}.drop-zone{cursor:default}.settings-row{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid #edf0f5}.settings-row:last-child{border:0}.settings-row strong{display:block;font-size:13px}.settings-row small{font-size:12px;color:#8d96a6}.profit-table .profit-positive{color:#23856a}.compact-summary{display:flex;gap:20px;flex-wrap:wrap;padding:16px 20px}.compact-summary>span{font-size:12px;color:#8993a5}.compact-summary strong{margin-left:8px;color:#384158}.formula-total{padding-top:16px;margin-top:12px;border-top:1px solid #e6eaf2;display:flex;justify-content:space-between;gap:14px;font-weight:650}.number-muted{font-size:11px;color:#8d96a6;display:block}.success-box{border:1px solid #d7eee2;background:#f1faf5;padding:16px;border-radius:9px;color:#2f805f;font-size:13px}.check-list{padding-left:20px;line-height:2;font-size:13px;color:#657187}.invoice-note{font-size:12px;line-height:1.8;color:#8992a3}.screenreader-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1100px){.customer-cards{grid-template-columns:repeat(2,1fr)}.topbar-actions{gap:8px}.month-picker>span{display:none}.dashboard-grid{grid-template-columns:1fr!important}.dashboard-rail{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.app-footer{padding:12px 18px 24px}.demo-badge{font-size:10px;padding:5px 7px}.month-picker input{max-width:120px;font-size:11px}.topbar-actions{gap:6px}.topbar-actions #helpButton{display:none}.breadcrumb{font-size:12px}.breadcrumb>span{margin:0 5px}.dashboard-rail{grid-template-columns:1fr}.customer-cards{gap:9px}.customer-card{padding:12px}.customer-card .amount{font-size:20px}.statement-head{flex-direction:column;gap:8px}.form-grid{grid-template-columns:1fr!important}.field.full{grid-column:auto}.page-actions .button{font-size:12px;padding:9px 11px}.summary-strip{row-gap:12px}.sidebar-overlay.visible{display:block;position:fixed;inset:0;width:100%;height:100%;z-index:39;border:0;background:#17233b70}.sidebar{z-index:40}.page-head h1{font-size:25px}.table-toolbar{flex-wrap:wrap}.search-input{max-width:100%}.bar-pair{width:80%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
