/* Soda ZW Accounting OS v6 — final design and accessibility layer */
:root{
  --accounting-navy:#062b49;
  --accounting-navy-deep:#031d33;
  --accounting-navy-soft:#eaf1f6;
  --accounting-orange:#c74500;
  --accounting-orange-bright:#ff5b08;
  --accounting-orange-soft:#fff0e7;
  --accounting-green:#087648;
  --accounting-green-soft:#e7f6ee;
  --accounting-red:#a92e35;
  --accounting-red-soft:#fcebed;
  --accounting-amber:#a65b00;
  --accounting-amber-soft:#fff5df;
  --accounting-blue:#1e5b86;
  --accounting-text:#102e47;
  --accounting-muted:#5f778a;
  --accounting-line:#d8e2ea;
  --accounting-canvas:#f3f6f8;
  --accounting-card:#fff;
  --accounting-shadow:0 12px 38px rgba(5,40,68,.075);
  --accounting-shadow-strong:0 24px 60px rgba(5,40,68,.14);
}

body.accounting-v6{
  margin:0;
  background:linear-gradient(145deg,#f8fafb 0%,var(--accounting-canvas) 55%,#edf3f6 100%);
  color:var(--accounting-text);
  font-family:"Aptos","Segoe UI Variable","Segoe UI",Arial,sans-serif;
  font-size:14px;
  -webkit-font-smoothing:antialiased;
}
body.accounting-v6 *{box-sizing:border-box}
body.accounting-v6 a,body.accounting-v6 button,body.accounting-v6 input,body.accounting-v6 select,body.accounting-v6 textarea,body.accounting-v6 summary{font:inherit}
body.accounting-v6 :focus-visible{outline:3px solid rgba(255,91,8,.38);outline-offset:3px;border-radius:7px}
.sr-only,.accounting-v6 .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Stable application shell */
body.accounting-v6 .sidebar{width:252px;padding:14px 12px;background:linear-gradient(180deg,#072f50 0%,var(--accounting-navy-deep) 100%);border-right:1px solid rgba(255,255,255,.06);box-shadow:14px 0 40px rgba(3,29,51,.12)}
body.accounting-v6 .main{margin-left:252px;padding:0 30px 28px}
body.accounting-v6 .brand{min-height:60px}
body.accounting-v6 .brand img{width:62px;height:46px;object-fit:contain}
body.accounting-v6 .brand>span strong{font-size:15px;letter-spacing:-.02em}
body.accounting-v6 .brand>span small{color:#9bb1c2;font-size:9px;letter-spacing:.11em}
body.accounting-v6 .nav-section{display:block;padding:16px 11px 6px;color:#809db3;font-size:8px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
body.accounting-v6 .sidebar nav a{min-height:42px;padding:6px 8px;border-radius:10px;color:#bdd0dd;font-size:12px;font-weight:680;text-decoration:none}
body.accounting-v6 .sidebar nav a:hover{background:rgba(255,255,255,.065);color:#fff}
body.accounting-v6 .sidebar nav a.active{background:#fff;color:var(--accounting-navy);box-shadow:0 8px 24px rgba(0,0,0,.13)}
body.accounting-v6 .sidebar nav a b{width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:rgba(255,255,255,.065)}
body.accounting-v6 .sidebar nav a.active b{background:var(--accounting-orange-soft);color:var(--accounting-orange)}
body.accounting-v6 .nav-count{background:#244f6e;color:#fff;font-variant-numeric:tabular-nums}
body.accounting-v6 .sidebar nav a.active .nav-count{background:var(--accounting-orange);color:#fff}
body.accounting-v6 .system-topbar{height:88px;margin:0 -30px 24px;padding:0 30px;background:rgba(248,250,251,.88);border-bottom:1px solid rgba(209,221,230,.86);backdrop-filter:blur(18px)}
body.accounting-v6 .page-identity{min-width:0;flex:1 1 auto}
body.accounting-v6 .page-identity>span{color:var(--accounting-orange);font-size:8px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
body.accounting-v6 .page-identity h1{margin:4px 0 0;color:var(--accounting-navy);font-size:26px;font-weight:800;letter-spacing:-.035em;line-height:1.05}
body.accounting-v6 .topbar-tools{flex:0 0 auto}
body.accounting-v6 .topbar-icon,body.accounting-v6 .topbar-profile{border-color:var(--accounting-line);box-shadow:0 5px 16px rgba(5,40,68,.045)}
body.accounting-v6 .create-menu>summary{background:linear-gradient(135deg,#d44b00,var(--accounting-orange));box-shadow:0 9px 24px rgba(199,69,0,.2)}
body.accounting-v6 .create-menu>div{max-height:min(590px,calc(100vh - 110px));overflow:auto}
body.accounting-v6 .alert{max-width:1180px;margin:0 auto 18px}
body.accounting-v6 .app-footer{color:#647d90;font-size:11px;text-align:center}

body.accounting-v6.sidebar-collapsed .sidebar{width:78px}
body.accounting-v6.sidebar-collapsed .main{margin-left:78px}
body.accounting-v6.sidebar-collapsed .nav-label,body.accounting-v6.sidebar-collapsed .brand>span,body.accounting-v6.sidebar-collapsed .nav-section,body.accounting-v6.sidebar-collapsed .nav-count,body.accounting-v6.sidebar-collapsed .user-copy,body.accounting-v6.sidebar-collapsed .sidebar-user>a{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.accounting-v6.sidebar-collapsed .brand-row{display:grid;justify-items:center}
body.accounting-v6.sidebar-collapsed .brand{justify-content:center;padding:7px 0}
body.accounting-v6.sidebar-collapsed .brand img{width:51px}
body.accounting-v6.sidebar-collapsed .sidebar-collapse{margin:0 0 8px;transform:rotate(180deg)}
body.accounting-v6.sidebar-collapsed .sidebar nav a{justify-content:center;padding:5px}
body.accounting-v6.sidebar-collapsed .sidebar-user{justify-content:center}
.accounting-v6 .mobile-backdrop[hidden]{display:none!important}

/* Shared accounting controls */
body.accounting-v6 .panel,body.accounting-v6 .stat{border:1px solid var(--accounting-line);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:var(--accounting-shadow)}
body.accounting-v6 .panel{padding:22px}
body.accounting-v6 .panel-head h2,body.accounting-v6 .panel h2{color:var(--accounting-navy);font-size:18px;font-weight:790;letter-spacing:-.025em}
body.accounting-v6 .panel-head p{color:var(--accounting-muted);font-size:11px}
body.accounting-v6 .button{min-height:42px;padding:10px 15px;border-radius:10px;font-weight:780;letter-spacing:-.01em}
body.accounting-v6 .button.primary{border-color:var(--accounting-orange);background:linear-gradient(135deg,#d54c00,var(--accounting-orange));color:#fff;box-shadow:0 8px 20px rgba(199,69,0,.17)}
body.accounting-v6 .button.primary:hover{background:#ad3b00}
body.accounting-v6 .button.secondary{border-color:#c9d6df;background:#fff;color:var(--accounting-navy)}
body.accounting-v6 .button.command-payment{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #08663f;background:linear-gradient(135deg,#0a8150,var(--accounting-green));color:#fff;box-shadow:0 8px 20px rgba(8,118,72,.16);text-decoration:none}
body.accounting-v6 .button.command-payment:hover{background:#065f3a}
body.accounting-v6 .button.command-payment svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9}
body.accounting-v6 .button.small{min-height:35px;padding:7px 10px;font-size:11px}
body.accounting-v6 label{color:#344f64;font-size:11px;font-weight:760}
body.accounting-v6 input,body.accounting-v6 select,body.accounting-v6 textarea{min-height:44px;border:1px solid #c8d5df;border-radius:10px;background:#fff;color:var(--accounting-text);font-size:13px}
body.accounting-v6 input:focus,body.accounting-v6 select:focus,body.accounting-v6 textarea:focus{border-color:#6f93ae;box-shadow:0 0 0 4px rgba(30,91,134,.1)}
body.accounting-v6 thead th{background:#f3f7f9;color:#526c80;font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
body.accounting-v6 td{color:#29465d;font-size:12px}
body.accounting-v6 .money-cell,body.accounting-v6 td.money-cell{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
body.accounting-v6 .status{font-size:9px;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
body.accounting-v6 .status-paid,body.accounting-v6 .status-accepted,body.accounting-v6 .status-completed,body.accounting-v6 .status-delivered,body.accounting-v6 .status-ready{border-color:#bde4ce;background:var(--accounting-green-soft);color:#08623c}
body.accounting-v6 .status-overdue,body.accounting-v6 .status-failed,body.accounting-v6 .status-rejected,body.accounting-v6 .status-cancelled{border-color:#efc6ca;background:var(--accounting-red-soft);color:var(--accounting-red)}
body.accounting-v6 .status-partial,body.accounting-v6 .status-awaiting_payment,body.accounting-v6 .status-awaiting_refill{border-color:#efd7a7;background:var(--accounting-amber-soft);color:#885000}
body.accounting-v6 .register-title{font-size:27px;font-weight:820;letter-spacing:-.035em}
body.accounting-v6 .invoice-tabs{display:flex;gap:7px;overflow:auto;padding:2px 2px 8px;scrollbar-width:thin}
body.accounting-v6 .invoice-tabs a{flex:0 0 auto;min-height:38px;padding:8px 13px;border:1px solid var(--accounting-line);border-radius:100px;background:#fff;color:#4f687c;font-size:11px;font-weight:760;text-decoration:none}
body.accounting-v6 .invoice-tabs a.active{border-color:var(--accounting-navy);background:var(--accounting-navy);color:#fff}
body.accounting-v6 .invoice-tabs a b{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;padding:0 5px;border-radius:20px;background:rgba(5,40,68,.08);font-size:9px;font-variant-numeric:tabular-nums}
body.accounting-v6 .invoice-tabs a.active b{background:rgba(255,255,255,.16)}
body.accounting-v6 .invoice-register .table-wrap{overflow:auto}
body.accounting-v6 .invoice-register table{min-width:980px}

/* Accounting command centre */
.accounting-command-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:end;gap:32px;max-width:1500px;margin:0 auto 18px;padding:28px 30px;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:linear-gradient(125deg,var(--accounting-navy-deep),#08456e);color:#fff;box-shadow:0 18px 50px rgba(3,29,51,.18)}
.accounting-command-hero:after{position:absolute;right:-85px;top:-135px;width:330px;height:330px;border:58px solid rgba(255,255,255,.035);border-radius:50%;content:"";pointer-events:none}
.accounting-command-copy,.period-control{position:relative;z-index:1}
.command-kicker,.section-kicker{display:block;margin-bottom:8px;color:#ff9a65;font-size:8px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.accounting-command-copy h2{max-width:720px;margin:0;color:#fff;font-size:34px;font-weight:820;letter-spacing:-.045em;line-height:1.03}
.accounting-command-copy p{max-width:670px;margin:10px 0 20px;color:#c4d5e1;font-size:13px;line-height:1.6}
.command-actions{display:flex;flex-wrap:wrap;gap:9px}
.accounting-command-hero .button.secondary{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.09);color:#fff;box-shadow:none}
.accounting-command-hero .button.secondary:hover{background:rgba(255,255,255,.16)}
.period-control{display:grid;gap:7px;padding:16px;border:1px solid rgba(255,255,255,.12);border-radius:15px;background:rgba(255,255,255,.075);backdrop-filter:blur(8px)}
.period-control label{color:#b9cfdd;font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.period-control select{width:100%;border-color:rgba(255,255,255,.2);background:#fff;color:var(--accounting-navy);font-weight:760}
.period-control small{color:#a9c2d3;font-size:9px;line-height:1.4}

.accounting-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;max-width:1500px;margin:0 auto 18px}
.accounting-kpis>a{position:relative;display:grid;min-height:148px;padding:20px 66px 18px 20px;overflow:hidden;border:1px solid var(--accounting-line);border-radius:17px;background:#fff;color:var(--accounting-text);box-shadow:var(--accounting-shadow);text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.accounting-kpis>a:hover{transform:translateY(-2px);border-color:#b9cbd7;box-shadow:0 18px 44px rgba(5,40,68,.1)}
.accounting-kpis>a>span{align-self:start;color:var(--accounting-muted);font-size:10px;font-weight:760}
.accounting-kpis>a>strong{align-self:center;color:var(--accounting-navy);font-size:25px;font-weight:820;letter-spacing:-.04em;line-height:1.05;font-variant-numeric:tabular-nums}
.accounting-kpis>a>small{align-self:end;color:#71889a;font-size:9px}
.accounting-kpis .trend.up{color:var(--accounting-green)}
.accounting-kpis .trend.down,.accounting-kpis .needs-attention{color:var(--accounting-red)}
.kpi-icon{position:absolute;right:17px;top:17px;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--accounting-navy-soft);color:var(--accounting-blue)}
.kpi-icon.cash{background:var(--accounting-green-soft);color:var(--accounting-green)}
.kpi-icon.receivables{background:var(--accounting-orange-soft);color:var(--accounting-orange)}
.kpi-icon.payables{background:var(--accounting-amber-soft);color:var(--accounting-amber)}
.kpi-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}

.accounting-primary-grid,.accounting-secondary-grid,.accounting-activity-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:18px;max-width:1500px;margin:0 auto 18px}
.accounting-secondary-grid{grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr)}
.accounting-activity-grid{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)}
.accounting-primary-grid>.panel,.accounting-secondary-grid>.panel,.accounting-activity-grid>.panel{margin:0}
.attention-bubble{display:grid;place-items:center;min-width:43px;height:43px;padding:0 10px;border-radius:13px;background:var(--accounting-orange-soft);color:var(--accounting-orange);font-size:18px;font-variant-numeric:tabular-nums}
.priority-list{display:grid}
.priority-list>a{display:grid;grid-template-columns:9px minmax(0,1fr) auto 16px;align-items:center;gap:13px;min-height:60px;padding:10px 5px;border-bottom:1px solid #e8eef2;color:var(--accounting-text);text-decoration:none}
.priority-list>a:last-child{border-bottom:0}
.priority-list>a:hover span b{color:var(--accounting-orange)}
.priority-list>a>span{display:grid;gap:3px}
.priority-list>a span b{font-size:12px}
.priority-list>a span small{color:var(--accounting-muted);font-size:9px}
.priority-list>a>strong{min-width:30px;text-align:right;color:var(--accounting-navy);font-size:17px;font-variant-numeric:tabular-nums}
.priority-list>a>em{color:#8aa0b0;font-size:16px;font-style:normal}
.priority-mark{width:8px;height:36px;border-radius:8px;background:#9eb2c0}
.priority-mark.urgent{background:var(--accounting-red)}.priority-mark.warning{background:#d47b09}.priority-mark.brand{background:var(--accounting-orange)}.priority-mark.neutral{background:var(--accounting-blue)}

.command-legend{display:flex;align-items:center;gap:5px;color:var(--accounting-muted);font-size:9px}
.command-legend i,.command-legend b{display:inline-block;width:9px;height:9px;border-radius:3px;background:var(--accounting-green)}
.command-legend b{margin-left:5px;background:#b5c5d0}
.command-chart{display:flex;align-items:flex-end;height:220px;padding:20px 8px 0;border-bottom:1px solid var(--accounting-line)}
.command-month{display:grid;grid-template-rows:1fr auto;justify-items:center;width:16.666%;height:100%}
.command-bars{display:flex;align-items:flex-end;justify-content:center;gap:5px;width:100%;height:100%}
.command-bars i,.command-bars b{display:block;width:12px;min-height:3px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#0b9760,var(--accounting-green));box-shadow:0 5px 13px rgba(8,118,72,.12)}
.command-bars b{width:8px;background:#bdccd6;box-shadow:none}
.command-month>span{padding-top:9px;color:#627a8d;font-size:9px;font-weight:730}
.cash-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:17px}
.cash-summary>div{display:grid;gap:5px;padding:12px;border-radius:11px;background:#f4f7f9}
.cash-summary span{color:var(--accounting-muted);font-size:8px}
.cash-summary strong{color:var(--accounting-navy);font-size:13px;font-variant-numeric:tabular-nums}
.cash-summary .positive{background:var(--accounting-green-soft)}.cash-summary .positive strong{color:var(--accounting-green)}
.cash-summary .negative{background:var(--accounting-red-soft)}.cash-summary .negative strong{color:var(--accounting-red)}

.ageing-workbench .panel-head>a,.payment-mix .panel-head>a,.recent-financials .panel-head>a,.recent-receipts .panel-head>a{color:var(--accounting-blue);font-size:10px;font-weight:780;text-decoration:none}
.command-ageing{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:16px}
.command-ageing>a{display:grid;gap:9px;min-height:82px;padding:13px;border:1px solid #e2e9ee;border-radius:12px;background:#f8fafb;color:var(--accounting-text);text-decoration:none}
.command-ageing span{color:var(--accounting-muted);font-size:8px;font-weight:730}
.command-ageing strong{font-size:12px;font-variant-numeric:tabular-nums}
.command-ageing .watch{background:#fffaf0}.command-ageing .warning{background:var(--accounting-amber-soft)}.command-ageing .danger,.command-ageing .critical{background:var(--accounting-red-soft)}
.command-ageing .danger strong,.command-ageing .critical strong{color:var(--accounting-red)}
.collection-list,.financial-list,.receipt-list{display:grid}
.collection-list>a,.financial-list>a,.receipt-list>a{display:flex;align-items:center;gap:12px;min-height:57px;padding:10px 2px;border-bottom:1px solid #e8eef2;color:var(--accounting-text);text-decoration:none}
.collection-list>a:last-child,.financial-list>a:last-child,.receipt-list>a:last-child{border-bottom:0}
.collection-list span,.financial-list span,.receipt-list span{display:grid;flex:1;min-width:0;gap:3px}
.collection-list b,.financial-list b,.receipt-list b{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.collection-list small,.financial-list small,.receipt-list small{color:var(--accounting-muted);font-size:9px}
.collection-list strong,.financial-list strong,.receipt-list strong{color:var(--accounting-navy);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.financial-list>a>em{color:#8aa0b0;font-style:normal}
.doc-kind{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:var(--accounting-navy-soft);color:var(--accounting-blue)}
.doc-kind.quotation{background:var(--accounting-orange-soft);color:var(--accounting-orange)}
.doc-kind svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.payment-channel-list{display:grid;gap:2px}
.payment-channel-list>div{display:grid;grid-template-columns:minmax(90px,1fr) minmax(70px,1.2fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e9eef2}
.payment-channel-list>div>span{display:grid;gap:2px}.payment-channel-list span b{font-size:10px}.payment-channel-list span small{color:var(--accounting-muted);font-size:8px}
.payment-channel-list>div>i{display:block;height:6px;overflow:hidden;border-radius:9px;background:#edf2f5}.payment-channel-list>div>i b{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,var(--accounting-green),#26a86f)}
.payment-channel-list>div>strong{font-size:10px;font-variant-numeric:tabular-nums}
.receive-payment-card{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;margin-top:17px;padding:13px;border:1px solid #bfe2cf;border-radius:13px;background:var(--accounting-green-soft);color:#075f3b;text-decoration:none}
.receive-payment-card>i{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#fff}.receive-payment-card svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.receive-payment-card>span{display:grid;gap:2px}.receive-payment-card b{font-size:11px}.receive-payment-card small{color:#39785e;font-size:8px}.receive-payment-card>em{font-style:normal;font-size:18px}
.command-empty{display:grid;justify-items:center;gap:6px;padding:28px 15px;color:var(--accounting-muted);text-align:center}.command-empty b{color:var(--accounting-navy);font-size:12px}.command-empty span{font-size:10px}.command-empty .button{margin-top:7px}
.operations-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:16px}
.operations-mini>a{display:grid;gap:5px;padding:10px;border:1px solid #e2e9ee;border-radius:11px;background:#f7f9fa;color:var(--accounting-text);text-decoration:none}
.operations-mini span{color:var(--accounting-muted);font-size:8px}.operations-mini strong{font-size:17px;font-variant-numeric:tabular-nums}

/* Guided receive-payment experience */
.payment-command-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;max-width:1400px;margin:0 auto 15px;padding:24px 27px;border:1px solid var(--accounting-line);border-radius:19px;background:linear-gradient(125deg,#fff,#f4f8fa);box-shadow:var(--accounting-shadow)}
.payment-command-hero h2{margin:0;color:var(--accounting-navy);font-size:27px;font-weight:820;letter-spacing:-.04em}.payment-command-hero p{margin:8px 0 0;color:var(--accounting-muted);font-size:11px}
.payment-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:1400px;margin:0 auto 16px}
.payment-overview article{display:grid;gap:6px;padding:16px 18px;border:1px solid var(--accounting-line);border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(5,40,68,.05)}
.payment-overview span{color:var(--accounting-muted);font-size:9px;font-weight:720}.payment-overview strong{color:var(--accounting-navy);font-size:20px;font-variant-numeric:tabular-nums}.payment-overview small{color:#768c9d;font-size:8px}
.receive-payment-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(370px,.8fr);align-items:start;gap:17px;max-width:1400px;margin:0 auto 17px}
.receive-payment-layout>.panel{margin:0}
.payment-step-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px}.payment-step-heading>i{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:10px;background:var(--accounting-navy);color:#fff;font-size:12px;font-style:normal;font-weight:850}.payment-step-heading>span{display:grid;gap:4px}.payment-step-heading h2{margin:0;font-size:17px}.payment-step-heading p{margin:0;color:var(--accounting-muted);font-size:9px}
.payment-search{display:grid;gap:6px;margin-bottom:13px}.payment-search>div{display:flex;gap:7px}.payment-search input{flex:1}.payment-search a{align-self:center;color:var(--accounting-blue);font-size:10px;font-weight:730}
.open-invoice-list{display:grid;max-height:560px;overflow:auto;border:1px solid #e0e8ed;border-radius:13px;background:#fff}
.open-invoice-list>a{display:grid;grid-template-columns:35px minmax(0,1fr) auto 15px;align-items:center;gap:11px;min-height:66px;padding:10px 12px;border-bottom:1px solid #e7edf1;color:var(--accounting-text);text-decoration:none}.open-invoice-list>a:last-child{border-bottom:0}.open-invoice-list>a:hover{background:#f7fafb}.open-invoice-list>a.selected{background:var(--accounting-navy-soft);box-shadow:inset 3px 0 0 var(--accounting-blue)}
.open-invoice-list>a>i{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#edf3f7;color:var(--accounting-blue)}.open-invoice-list svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.open-invoice-list>a>span{display:grid;min-width:0;gap:4px}.open-invoice-list b{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.open-invoice-list small{color:var(--accounting-muted);font-size:8px}.open-invoice-list small em{color:var(--accounting-red);font-style:normal;font-weight:750}.open-invoice-list>a>strong{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.open-invoice-list>a>em{color:#8299a9;font-style:normal}
.receive-payment-panel{position:sticky;top:18px}
.selected-invoice-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}.selected-invoice-summary>span{display:grid;gap:4px;padding:12px;border-radius:11px;background:#f4f7f9}.selected-invoice-summary small{color:var(--accounting-muted);font-size:8px}.selected-invoice-summary b{font-size:10px}.selected-invoice-summary .balance{grid-column:1/-1;background:var(--accounting-orange-soft)}.selected-invoice-summary .balance strong{color:var(--accounting-orange);font-size:20px;font-variant-numeric:tabular-nums}
.guided-payment-form{display:grid;grid-template-columns:1fr 1fr;gap:11px}.guided-payment-form label{display:grid;gap:6px}.guided-payment-form .full{grid-column:1/-1}.payment-application{display:flex!important;align-items:center;justify-content:space-between;padding:13px;border:1px solid #bfe2cf;border-radius:11px;background:var(--accounting-green-soft);color:#1c6748}.payment-application span{font-size:9px}.payment-application strong{font-size:15px;font-variant-numeric:tabular-nums}.guided-payment-form button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.payment-awaiting-selection{display:grid;justify-items:center;gap:8px;min-height:430px;padding:60px 20px;text-align:center}.payment-awaiting-selection>i{display:grid;place-items:center;width:70px;height:70px;border-radius:22px;background:var(--accounting-green-soft);color:var(--accounting-green)}.payment-awaiting-selection svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7}.payment-awaiting-selection>span{color:var(--accounting-orange);font-size:8px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.payment-awaiting-selection h2{margin:0;font-size:18px}.payment-awaiting-selection p{max-width:310px;margin:0;color:var(--accounting-muted);font-size:10px;line-height:1.6}
.payment-assurance{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:1400px;margin:0 auto}.payment-assurance>div{display:grid;gap:4px;padding:13px 16px;border-left:3px solid var(--accounting-green);border-radius:0 10px 10px 0;background:rgba(255,255,255,.7)}.payment-assurance b{font-size:10px}.payment-assurance span{color:var(--accounting-muted);font-size:8px}

/* Faster, searchable document studio */
body.accounting-v6 .item-picker-bar{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(190px,1.2fr) auto;gap:8px}
body.accounting-v6 .item-picker-bar input,body.accounting-v6 .item-picker-bar select{width:100%;min-width:0}
body.accounting-v6 .item-quantity button,body.accounting-v6 .remove-selected-item{width:44px;height:44px;min-width:44px;border-radius:10px}
body.accounting-v6 .item-quantity input{width:62px;min-height:44px;text-align:center;font-variant-numeric:tabular-nums}
body.accounting-v6 .popular-products button{min-height:38px;color:var(--accounting-navy);font-weight:700}

@media(max-width:1180px){
  .accounting-kpis{grid-template-columns:repeat(2,1fr)}
  .accounting-primary-grid,.accounting-secondary-grid,.accounting-activity-grid{grid-template-columns:1fr}
  .receive-payment-layout{grid-template-columns:1fr}.receive-payment-panel{position:static}
}
@media(max-width:900px){
  body.accounting-v6 .main{padding-left:18px;padding-right:18px}
  body.accounting-v6 .system-topbar{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}
  .accounting-command-hero{grid-template-columns:1fr}.period-control{max-width:360px}
  .command-ageing{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  body.accounting-v6 .sidebar,body.accounting-v6.sidebar-collapsed .sidebar{width:min(310px,88vw);transform:translateX(-105%)}
  body.accounting-v6 .sidebar.open{transform:translateX(0)}
  body.accounting-v6 .main,body.accounting-v6.sidebar-collapsed .main{margin-left:0;padding:0 12px 22px}
  body.accounting-v6 .system-topbar{height:74px;margin:0 -12px 16px;padding:0 12px}
  body.accounting-v6 .page-identity{min-width:0}
  body.accounting-v6 .page-identity>span{display:none}
  body.accounting-v6 .page-identity h1{max-width:none;overflow:visible;font-size:20px;line-height:1.1;text-overflow:clip;white-space:normal}
  body.accounting-v6 .topbar-tools{flex:0 0 auto;gap:5px}
  body.accounting-v6 .sidebar-collapse{display:none}
  body.accounting-v6.sidebar-collapsed .nav-label,body.accounting-v6.sidebar-collapsed .brand>span,body.accounting-v6.sidebar-collapsed .nav-section,body.accounting-v6.sidebar-collapsed .nav-count,body.accounting-v6.sidebar-collapsed .user-copy,body.accounting-v6.sidebar-collapsed .sidebar-user>a{position:static;width:auto;height:auto;padding:initial;margin:initial;overflow:visible;clip:auto;white-space:normal}
  body.accounting-v6 .panel{padding:16px;border-radius:15px}
  .accounting-command-hero{margin-bottom:12px;padding:22px 18px;border-radius:17px}
  .accounting-command-copy h2{font-size:27px}.accounting-command-copy p{font-size:11px}.command-actions{display:grid;grid-template-columns:1fr 1fr}.command-actions .button:first-child{grid-column:1/-1}
  .period-control{max-width:none}
  .accounting-kpis{grid-template-columns:1fr 1fr;gap:9px}.accounting-kpis>a{min-height:132px;padding:15px 52px 14px 15px}.accounting-kpis>a>strong{font-size:19px}.kpi-icon{right:12px;top:12px;width:34px;height:34px}
  .accounting-primary-grid,.accounting-secondary-grid,.accounting-activity-grid{gap:12px;margin-bottom:12px}
  .priority-list>a{grid-template-columns:7px minmax(0,1fr) auto 12px;gap:9px}.priority-list>a span small{line-height:1.35}
  .command-chart{height:185px}.command-bars i{width:9px}.command-bars b{width:6px}.cash-summary{grid-template-columns:1fr}.command-ageing{display:flex;overflow:auto;padding-bottom:5px}.command-ageing>a{min-width:130px}
  .payment-command-hero{align-items:flex-start;flex-direction:column;padding:20px}.payment-command-hero h2{font-size:23px}.payment-overview{grid-template-columns:1fr 1fr}.payment-overview article:last-child{grid-column:1/-1}
  .receive-payment-layout{gap:12px}.open-invoice-list{max-height:none}.guided-payment-form{grid-template-columns:1fr}.guided-payment-form .full{grid-column:auto}.selected-invoice-summary{grid-template-columns:1fr}.selected-invoice-summary .balance{grid-column:auto}.payment-assurance{grid-template-columns:1fr}
  .payment-search>div{display:grid;grid-template-columns:1fr auto}.payment-search>div>a{grid-column:1/-1}
  .operations-mini{grid-template-columns:1fr 1fr 1fr}
  body.accounting-v6 .item-picker-bar{grid-template-columns:1fr}body.accounting-v6 .item-picker-bar .button{width:100%}
}
@media(max-width:430px){
  .accounting-kpis{grid-template-columns:1fr}.accounting-kpis>a{min-height:118px}
  .command-actions{grid-template-columns:1fr}.command-actions .button:first-child{grid-column:auto}
  .accounting-command-copy h2{font-size:24px}
  .accounting-command-hero .button{width:100%}
  .cash-summary{grid-template-columns:1fr}
  .payment-overview{grid-template-columns:1fr}.payment-overview article:last-child{grid-column:auto}
  .open-invoice-list>a{grid-template-columns:32px minmax(0,1fr) 12px}.open-invoice-list>a>strong{grid-column:2}.open-invoice-list>a>em{grid-column:3;grid-row:1/3}.operations-mini{grid-template-columns:1fr}
  body.accounting-v6 .button-row{display:grid;width:100%}body.accounting-v6 .button-row .button{width:100%}
}

@media print{
  body.accounting-v6{background:#fff!important;color:#111!important}
  body.accounting-v6 .sidebar,body.accounting-v6 .system-topbar,body.accounting-v6 .app-footer,body.accounting-v6 .mobile-backdrop,body.accounting-v6 .doc-actions,body.accounting-v6 .statement-actions{display:none!important}
  body.accounting-v6 .main,body.accounting-v6.sidebar-collapsed .main{margin:0!important;padding:0!important}
  body.accounting-v6 .statement-document,body.accounting-v6 .document-card{width:100%!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
  body.accounting-v6 .statement-document table,body.accounting-v6 .document-card table{page-break-inside:auto}
  body.accounting-v6 .statement-document thead,body.accounting-v6 .document-card thead{display:table-header-group}
  body.accounting-v6 .statement-document tr,body.accounting-v6 .document-card tr{page-break-inside:avoid}
}
