/* Soda ZW Command Centre v9 — premium accounting and operations interface */
:root{
  --v9-navy:#062b4d;
  --v9-navy-2:#0b385f;
  --v9-orange:#ff5a0a;
  --v9-green:#168a61;
  --v9-ink:#102c49;
  --v9-copy:#526a82;
  --v9-line:#d9e4ed;
  --v9-bg:#f3f7fa;
  --v9-panel:#fff;
  --v9-soft:#edf4f8;
  --v9-warn:#a96300;
  --v9-danger:#c33b31;
  --v9-radius:18px;
  --v9-shadow:0 12px 32px rgba(6,43,77,.07);
}

body.command-v9{
  margin:0;
  color:var(--v9-ink);
  background:var(--v9-bg);
  font-family:"Aptos","Segoe UI",Inter,system-ui,-apple-system,sans-serif;
  font-size:15px;
  line-height:1.5;
  letter-spacing:-.005em;
}
body.command-v9 *,body.command-v9 *::before,body.command-v9 *::after{box-sizing:border-box}
body.command-v9 h1,body.command-v9 h2,body.command-v9 h3,body.command-v9 strong,body.command-v9 b{
  color:var(--v9-ink);
  font-family:"Aptos Display","Segoe UI Variable Display","Segoe UI",sans-serif;
}
body.command-v9 h1,body.command-v9 h2,body.command-v9 h3{letter-spacing:-.035em}
body.command-v9 a{color:var(--v9-navy-2)}
body.command-v9 .muted,body.command-v9 small,body.command-v9 p{color:var(--v9-copy)}

/* Application frame */
body.command-v9 .app-shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh;background:var(--v9-bg)}
body.command-v9 .sidebar{
  position:sticky;top:0;align-self:start;height:100vh;width:auto;
  display:flex;flex-direction:column;padding:20px 14px 14px;
  color:#d9e8f4;background:linear-gradient(180deg,var(--v9-navy) 0%,#041f38 100%);
  border:0;box-shadow:none;z-index:40;overflow:hidden;
}
body.command-v9 .brand-row{display:flex;align-items:center;gap:8px;padding:0 4px 18px;margin:0 0 10px;border-bottom:1px solid rgba(255,255,255,.12)}
body.command-v9 .brand{display:flex;align-items:center;gap:10px;min-width:0;color:#fff;text-decoration:none}
body.command-v9 .brand img{width:50px;height:50px;padding:5px;background:#fff;border-radius:14px;object-fit:contain;box-shadow:0 7px 18px rgba(0,0,0,.15)}
body.command-v9 .brand span{display:grid;min-width:0}
body.command-v9 .brand strong{color:#fff;font-size:18px;line-height:1.15}
body.command-v9 .brand small{color:#9bb8ce;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
body.command-v9 .sidebar-collapse{display:grid;place-items:center;width:30px;height:30px;margin-left:auto;border:1px solid rgba(255,255,255,.16);border-radius:9px;color:#fff;background:rgba(255,255,255,.06);cursor:pointer}
body.command-v9 .sidebar nav{display:block;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent;padding:0 3px 16px}
body.command-v9 .nav-section{display:block;margin:18px 10px 6px;color:#6f91aa;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
body.command-v9 .sidebar nav a{display:flex;align-items:center;gap:11px;min-height:42px;padding:9px 10px;margin:3px 0;border-radius:11px;color:#bbcedd;text-decoration:none;font-weight:650;transition:background .18s,color .18s,transform .18s}
body.command-v9 .sidebar nav a:hover{color:#fff;background:rgba(255,255,255,.08);transform:translateX(2px)}
body.command-v9 .sidebar nav a.active{color:#fff;background:rgba(255,255,255,.13);box-shadow:inset 3px 0 0 var(--v9-orange)}
body.command-v9 .sidebar nav a b{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;color:inherit}
body.command-v9 .sidebar nav a svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.command-v9 .nav-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.command-v9 .nav-count{display:grid;place-items:center;min-width:21px;height:21px;margin-left:auto;padding:0 6px;border-radius:20px;background:var(--v9-orange);color:#fff;font-size:10px;font-style:normal;font-weight:800}
body.command-v9 .sidebar-user{display:flex;align-items:center;gap:10px;padding:14px 8px 4px;margin-top:auto;border-top:1px solid rgba(255,255,255,.12)}
body.command-v9 .user-avatar,body.command-v9 .topbar-profile>span{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.13);color:#fff;font-weight:800}
body.command-v9 .user-copy{display:grid;min-width:0}.command-v9 .user-copy strong{color:#fff}.command-v9 .user-copy small{color:#83a2b9}.command-v9 .sidebar-user>a{margin-left:auto;color:#a9c0d1;text-decoration:none}

body.command-v9 .main{min-width:0;width:auto;margin:0;padding:0 28px 32px;background:var(--v9-bg)}
body.command-v9 .system-topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:18px;min-height:84px;margin:0 -28px 24px;padding:14px 28px;background:rgba(243,247,250,.94);border-bottom:1px solid var(--v9-line);backdrop-filter:blur(14px)}
body.command-v9 .page-identity{min-width:0}.command-v9 .page-identity>span{display:block;margin-bottom:2px;color:var(--v9-orange);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.command-v9 .page-identity h1{margin:0;font-size:clamp(23px,2vw,31px);line-height:1.12}
body.command-v9 .topbar-tools{display:flex;align-items:center;gap:9px;margin-left:auto}
body.command-v9 .topbar-icon,body.command-v9 .topbar-profile{display:flex;align-items:center;justify-content:center;gap:8px;height:43px;padding:0 12px;border:1px solid var(--v9-line);border-radius:12px;background:#fff;text-decoration:none;box-shadow:0 4px 14px rgba(6,43,77,.04)}
body.command-v9 .topbar-icon{position:relative;width:43px;padding:0}.command-v9 .topbar-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.command-v9 .topbar-icon i{position:absolute;right:-4px;top:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid var(--v9-bg);border-radius:15px;background:var(--v9-orange);color:#fff;font-size:9px;font-style:normal}
body.command-v9 .topbar-profile>span{width:29px;height:29px;flex-basis:29px;background:var(--v9-navy)}
body.command-v9 .topbar-profile b{font-size:13px}
body.command-v9 .create-menu{position:relative}.command-v9 .create-menu summary{display:flex;align-items:center;gap:7px;height:43px;padding:0 16px;border-radius:12px;background:var(--v9-orange);color:#fff;font-weight:800;cursor:pointer;list-style:none;box-shadow:0 8px 20px rgba(255,90,10,.2)}.command-v9 .create-menu summary::-webkit-details-marker{display:none}.command-v9 .create-menu summary span{color:#fff;font-size:20px}.command-v9 .create-menu>div{position:absolute;right:0;top:50px;width:270px;padding:8px;border:1px solid var(--v9-line);border-radius:16px;background:#fff;box-shadow:0 20px 50px rgba(6,43,77,.16)}.command-v9 .create-menu>div a{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;text-decoration:none}.command-v9 .create-menu>div a:hover{background:var(--v9-soft)}.command-v9 .create-menu>div svg{width:19px;height:19px;fill:none;stroke:var(--v9-navy);stroke-width:1.8}.command-v9 .create-menu>div span{display:grid}.command-v9 .create-menu>div small{font-size:11px}
body.command-v9 .menu-toggle{display:none}

/* Reusable premium surfaces */
body.command-v9 .panel,body.command-v9 .stat,body.command-v9 .stock-summary article,body.command-v9 .accounting-kpis>a{
  border:1px solid var(--v9-line);border-radius:var(--v9-radius);background:var(--v9-panel);box-shadow:var(--v9-shadow);
}
body.command-v9 .panel{padding:22px}
body.command-v9 .panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid var(--v9-line)}
body.command-v9 .panel-head h2{margin:2px 0 1px;font-size:21px}.command-v9 .panel-head p{margin:2px 0 0}
body.command-v9 .section-kicker,body.command-v9 .dashboard-eyebrow,body.command-v9 .command-kicker{color:var(--v9-orange);font-size:10px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
body.command-v9 .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 16px;border:1px solid var(--v9-line);border-radius:12px;background:#fff;color:var(--v9-navy);font-weight:750;text-decoration:none;cursor:pointer;box-shadow:none;transition:transform .15s,box-shadow .15s,background .15s}
body.command-v9 .button:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(6,43,77,.09)}
body.command-v9 .button.primary{border-color:var(--v9-orange);background:var(--v9-orange);color:#fff;box-shadow:0 7px 18px rgba(255,90,10,.17)}
body.command-v9 .button.secondary{background:#fff;color:var(--v9-navy)}
body.command-v9 .button.command-payment,body.command-v9 .button.green{border-color:var(--v9-green);background:var(--v9-green);color:#fff}
body.command-v9 .button.danger{border-color:#f2d3d0;background:#fff7f6;color:var(--v9-danger)}
body.command-v9 .button.small{min-height:34px;padding:6px 11px;border-radius:9px;font-size:12px}
body.command-v9 .button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9}
body.command-v9 input:not([type=checkbox]):not([type=radio]),body.command-v9 select,body.command-v9 textarea{
  width:100%;min-height:46px;padding:10px 13px;border:1px solid #cbd9e5;border-radius:11px;background:#fff;color:var(--v9-ink);font:inherit;outline:none;transition:border .15s,box-shadow .15s;
}
body.command-v9 textarea{min-height:90px;resize:vertical}.command-v9 input:focus,.command-v9 select:focus,.command-v9 textarea:focus{border-color:#68a5d1;box-shadow:0 0 0 4px rgba(64,139,191,.12)}
body.command-v9 label{color:var(--v9-ink);font-size:13px;font-weight:700}.command-v9 label>small{display:block;margin-top:5px;font-weight:500}
body.command-v9 .form-grid{gap:16px}.command-v9 .check{display:flex;align-items:center;gap:8px}
body.command-v9 .alert{margin:0 0 18px;padding:13px 16px;border-radius:12px}.command-v9 .alert.success{border:1px solid #bae4d3;background:#edfaf5;color:#116345}.command-v9 .alert.error{border:1px solid #f1cbc7;background:#fff1ef;color:#9a2d25}
body.command-v9 table{width:100%;border-collapse:separate;border-spacing:0}.command-v9 th{padding:11px 13px;border-bottom:1px solid var(--v9-line);color:#71879b;background:#f7fafc;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase;text-align:left}.command-v9 td{padding:13px;border-bottom:1px solid #e6edf3;vertical-align:middle}.command-v9 tbody tr:hover td{background:#fbfdfe}.command-v9 tbody tr:last-child td{border-bottom:0}.command-v9 .table-wrap{overflow-x:auto;border:1px solid var(--v9-line);border-radius:14px}
body.command-v9 .status,body.command-v9 .category-pill{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border:0;border-radius:30px;background:var(--v9-soft);color:var(--v9-navy);font-size:10px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.command-v9 .status-paid,.command-v9 .status-completed,.command-v9 .status-delivered{background:#e7f7f0;color:#14704f}.command-v9 .status-overdue,.command-v9 .status-cancelled,.command-v9 .status-failed{background:#fff0ee;color:#a43830}.command-v9 .status-draft,.command-v9 .status-pending{background:#f0f3f6;color:#62788b}.command-v9 .status-sent,.command-v9 .status-ready,.command-v9 .status-accepted{background:#edf3ff;color:#315ea6}
body.command-v9 .page-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 20px}.command-v9 .page-actions h2{margin:0;font-size:27px}.command-v9 .page-actions p{margin:4px 0 0}.command-v9 .button-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}

/* Command-centre dashboard */
body.command-v9 .accounting-command-hero{position:relative;overflow:hidden;margin:0 0 18px;padding:28px 30px;border:0;border-radius:22px;background:linear-gradient(120deg,var(--v9-navy) 0%,var(--v9-navy-2) 72%,#104b78 100%);box-shadow:0 18px 40px rgba(6,43,77,.15)}
body.command-v9 .accounting-command-hero::after{content:"";position:absolute;right:-60px;top:-110px;width:300px;height:300px;border:52px solid rgba(255,255,255,.035);border-radius:50%}
body.command-v9 .accounting-command-copy{position:relative;z-index:1;max-width:780px}.command-v9 .accounting-command-copy h2{max-width:700px;margin:6px 0 8px;color:#fff;font-size:clamp(27px,3.2vw,43px);line-height:1.08}.command-v9 .accounting-command-copy p{max-width:680px;margin:0;color:#b9cee0;font-size:16px}.command-v9 .command-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.command-v9 .accounting-command-hero .button.secondary{border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.08);color:#fff}
body.command-v9 .accounting-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.command-v9 .accounting-kpis>a{position:relative;display:grid;gap:4px;min-height:142px;padding:19px;text-decoration:none;overflow:hidden}.command-v9 .accounting-kpis>a:hover{border-color:#aec9dc;transform:translateY(-2px)}.command-v9 .accounting-kpis span{color:var(--v9-copy);font-size:12px;font-weight:700}.command-v9 .accounting-kpis strong{font-size:clamp(24px,2.4vw,34px);line-height:1.1}.command-v9 .accounting-kpis small{margin-top:auto}.command-v9 .accounting-kpis .trend.up{color:var(--v9-green)}.command-v9 .accounting-kpis .trend.down,.command-v9 .needs-attention{color:var(--v9-danger)}.command-v9 .kpi-icon{position:absolute;right:-20px;bottom:-25px;display:grid;place-items:center;width:100px;height:100px;border-radius:50%;background:var(--v9-soft);color:#8ca9bd}.command-v9 .kpi-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5}
body.command-v9 .accounting-primary-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(460px,1.3fr);gap:18px;margin-bottom:18px}.command-v9 .accounting-secondary-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:18px;margin-bottom:18px}
body.command-v9 .priority-list{display:grid}.command-v9 .priority-list>a{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:13px 2px;border-bottom:1px solid var(--v9-line);text-decoration:none}.command-v9 .priority-list>a:last-child{border:0}.command-v9 .priority-list>a span{display:grid}.command-v9 .priority-list>a em{font-style:normal}.command-v9 .priority-mark{width:10px;height:10px;border-radius:50%;background:#8ba5b8}.command-v9 .priority-mark.urgent{background:var(--v9-danger)}.command-v9 .priority-mark.warning{background:#eca12f}.command-v9 .priority-mark.brand{background:var(--v9-orange)}.command-v9 .attention-bubble{display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border-radius:50px;background:#fff1e9;color:var(--v9-orange)}
body.command-v9 .command-line-chart svg{display:block;width:100%;height:215px}.command-v9 .command-line-chart line{stroke:#e2eaf0;stroke-width:.45}.command-v9 .flow-area{fill:rgba(255,90,10,.08)}.command-v9 .flow-line{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}.command-v9 .flow-line.cash{stroke:var(--v9-orange)}.command-v9 .flow-line.out{stroke:#7f9bb0}.command-v9 .line-chart-labels{display:grid;grid-template-columns:repeat(6,1fr);color:#7b90a3;font-size:11px;text-align:center}.command-v9 .line-chart-legend{display:flex;justify-content:flex-end;gap:15px;margin-top:8px;color:var(--v9-copy);font-size:11px}.command-v9 .line-chart-legend i,.command-v9 .line-chart-legend b{display:inline-block;width:9px;height:9px;margin-right:5px;border-radius:50%;background:var(--v9-orange)}.command-v9 .line-chart-legend b{background:#7f9bb0}.command-v9 .cash-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.command-v9 .cash-summary>div{display:grid;padding:11px 13px;border-radius:12px;background:var(--v9-soft)}.command-v9 .cash-summary span{font-size:11px}.command-v9 .cash-summary strong{font-size:18px}.command-v9 .cash-summary .positive strong{color:var(--v9-green)}.command-v9 .cash-summary .negative strong{color:var(--v9-danger)}
body.command-v9 .command-ageing{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.command-v9 .command-ageing>a{display:grid;gap:4px;padding:12px;border-radius:12px;background:var(--v9-soft);text-decoration:none}.command-v9 .command-ageing span{font-size:10px}.command-v9 .command-ageing strong{font-size:16px}.command-v9 .collection-list{display:grid;margin-top:12px}.command-v9 .collection-list>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px;border-top:1px solid var(--v9-line);text-decoration:none}.command-v9 .collection-list span{display:grid}.command-v9 .payment-channel-list{display:grid;gap:12px}.command-v9 .payment-channel-list>div{display:grid;grid-template-columns:minmax(120px,1fr) 1.25fr auto;align-items:center;gap:10px}.command-v9 .payment-channel-list span{display:grid}.command-v9 .payment-channel-list i{height:7px;border-radius:10px;background:var(--v9-soft);overflow:hidden}.command-v9 .payment-channel-list i b{display:block;height:100%;border-radius:10px;background:var(--v9-orange)}.command-v9 .operations-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px}.command-v9 .operations-mini a{display:grid;padding:11px;border-radius:12px;background:var(--v9-soft);text-decoration:none}.command-v9 .operations-mini strong{font-size:21px}

/* Invoice and quotation document studio */
body.command-v9 .document-studio-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 18px}.command-v9 .document-studio-heading h2{margin:3px 0;font-size:30px}.command-v9 .document-studio-heading p{margin:0}.command-v9 .document-type-switch{display:flex;padding:4px;border:1px solid var(--v9-line);border-radius:13px;background:#fff}.command-v9 .document-type-switch a{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 13px;border-radius:9px;text-decoration:none;font-weight:750}.command-v9 .document-type-switch a.active{background:var(--v9-navy);color:#fff}.command-v9 .document-type-switch svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
body.command-v9 .document-studio{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.command-v9 .studio-main{display:grid;gap:16px}.command-v9 .studio-section{padding:22px}.command-v9 .studio-section-head{display:flex;align-items:flex-start;gap:13px;margin:0 0 17px;padding:0 0 15px;border-bottom:1px solid var(--v9-line)}.command-v9 .studio-section-head h2{margin:1px 0;font-size:22px}.command-v9 .studio-section-head p{margin:2px 0 0}.command-v9 .studio-step{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--v9-navy);color:#fff;font-size:14px;font-weight:850}
body.command-v9 .customer-mode,body.command-v9 .quick-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px}.command-v9 .customer-mode label,.command-v9 .quick-choice label{position:relative}.command-v9 .customer-mode input,.command-v9 .quick-choice input{position:absolute;opacity:0}.command-v9 .customer-mode label>span,.command-v9 .quick-choice label>span{display:grid;min-height:74px;padding:13px 14px;border:1px solid var(--v9-line);border-radius:13px;background:#fff;cursor:pointer}.command-v9 .customer-mode input:checked+span,.command-v9 .quick-choice input:checked+span{border-color:var(--v9-navy);background:#f1f6fa;box-shadow:0 0 0 3px rgba(6,43,77,.08)}.command-v9 .customer-mode small,.command-v9 .quick-choice small{font-weight:500}
body.command-v9 .studio-customer-search,body.command-v9 .studio-customer-select,body.command-v9 .studio-catalog-search{display:grid;gap:6px;margin:0 0 12px}.command-v9 .studio-catalog{max-height:330px;overflow:auto;padding:2px 5px 2px 0;scrollbar-width:thin}.command-v9 .studio-catalog-group{margin:0 0 14px}.command-v9 .studio-catalog-group h3{margin:0 0 6px;color:var(--v9-orange);font-size:10px;letter-spacing:.12em;text-transform:uppercase}.command-v9 .studio-catalog-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.command-v9 .catalog-product{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;min-height:66px;padding:10px 12px;border:1px solid var(--v9-line);border-radius:12px;background:#fff;color:var(--v9-ink);text-align:left;cursor:pointer}.command-v9 .catalog-product:hover{border-color:#9dbed5;background:#f8fbfd}.command-v9 .catalog-product span{display:grid;min-width:0}.command-v9 .catalog-product strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.command-v9 .catalog-product small{font-size:10px}.command-v9 .catalog-product b{white-space:nowrap}.command-v9 .catalog-product i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--v9-soft);color:var(--v9-navy);font-style:normal;font-weight:900}
body.command-v9 .studio-items{display:grid;gap:8px;margin-top:16px}.command-v9 .studio-items-head,.command-v9 .studio-item{display:grid;grid-template-columns:minmax(230px,2fr) 75px 110px 78px 108px 34px;gap:8px;align-items:center}.command-v9 .studio-items-head{padding:0 8px;color:#71879b;font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.command-v9 .studio-item{padding:10px;border:1px solid var(--v9-line);border-radius:13px;background:#fbfdfe}.command-v9 .studio-item-product{display:grid;gap:7px}.command-v9 .studio-item label{display:grid;gap:4px}.command-v9 .studio-item label span{display:none}.command-v9 .studio-item input,.command-v9 .studio-item select{min-height:40px;padding:7px 9px}.command-v9 .studio-item>strong{text-align:right}.command-v9 .studio-remove{display:grid;place-items:center;width:31px;height:31px;border:0;border-radius:9px;background:#fff0ee;color:var(--v9-danger);font-size:20px;cursor:pointer}.command-v9 .studio-add-custom{margin-top:10px}.command-v9 .studio-item-flash{animation:v9Flash .65s ease}@keyframes v9Flash{50%{border-color:var(--v9-orange);box-shadow:0 0 0 4px rgba(255,90,10,.1)}}
body.command-v9 .studio-summary{position:sticky;top:103px;padding:22px}.command-v9 .studio-summary-top{display:flex;align-items:center;gap:11px}.command-v9 .summary-document-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--v9-navy);color:#fff}.command-v9 .summary-document-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.command-v9 .studio-summary-top h2{margin:0;font-size:22px}.command-v9 .studio-summary>p{padding:13px 0;margin:13px 0;border-top:1px solid var(--v9-line);border-bottom:1px solid var(--v9-line);font-weight:700}.command-v9 .studio-summary-lines{display:flex;justify-content:space-between;gap:9px;margin-bottom:12px}.command-v9 .studio-summary-lines button{border:0;background:none;color:var(--v9-navy);font-weight:700;cursor:pointer}.command-v9 .studio-summary dl{margin:0}.command-v9 .studio-summary dl>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0}.command-v9 .studio-summary dt{color:var(--v9-copy)}.command-v9 .studio-summary dd{margin:0;font-weight:750}.command-v9 .studio-summary .studio-total{margin-top:7px;padding:14px 0;border-top:1px solid var(--v9-line)}.command-v9 .studio-total dt,.command-v9 .studio-total dd{color:var(--v9-ink);font-size:21px;font-weight:850}.command-v9 .studio-assurance{display:grid;gap:2px;margin:4px 0 13px;padding:11px;border-radius:11px;background:var(--v9-soft)}.command-v9 .studio-summary>.button{width:100%;margin-top:8px}.command-v9 .studio-cancel{display:block;margin-top:13px;text-align:center;text-decoration:none;font-weight:700}
body.command-v9 .studio-more{margin-top:15px}.command-v9 .studio-more summary{padding:11px 13px;border-radius:11px;background:var(--v9-soft);color:var(--v9-navy);font-weight:750;cursor:pointer}.command-v9 .studio-more[open] summary{margin-bottom:14px}

/* Stock centre */
body.command-v9 .stock-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.command-v9 .stock-summary article{display:grid;gap:3px;min-height:112px;padding:18px}.command-v9 .stock-summary span{color:var(--v9-copy);font-size:12px;font-weight:700}.command-v9 .stock-summary strong{font-size:29px}.command-v9 .stock-summary article.warning{border-color:#f0c98d;background:#fffaf2}.command-v9 .stock-summary article.warning strong{color:var(--v9-warn)}
body.command-v9 .quick-stock-panel{margin-bottom:18px}.command-v9 .stock-count-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.command-v9 .stock-count-card{display:grid;grid-template-columns:minmax(0,1fr) 106px;align-items:center;gap:12px;padding:12px 13px;border:1px solid var(--v9-line);border-radius:13px;background:#fbfdfe}.command-v9 .stock-count-card>span:first-child{display:grid;min-width:0}.command-v9 .stock-count-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.command-v9 .stock-count-input{display:grid;gap:3px;color:var(--v9-copy);font-size:9px;text-transform:uppercase}.command-v9 .stock-count-input input{min-height:38px!important;padding:6px 9px!important;text-align:center;font-weight:850}.command-v9 .bulk-stock-submit{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:14px;padding-top:14px;border-top:1px solid var(--v9-line)}
body.command-v9 .product-stock-table{padding:0;overflow:hidden}.command-v9 .product-stock-table .table-wrap{border:0;border-radius:0}.command-v9 .stock-low{color:var(--v9-danger)}.command-v9 .stock-ok{color:var(--v9-green)}.command-v9 .stock-warning{display:block;color:var(--v9-danger);font-size:10px}.command-v9 .movement-list{display:grid}.command-v9 .movement-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--v9-line)}.command-v9 .movement-list span{display:grid}.command-v9 .movement-in{color:var(--v9-green)}.command-v9 .movement-out{color:var(--v9-danger)}

/* Registers, CRM and settings */
body.command-v9 .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}.command-v9 .stat{display:grid;gap:4px;min-height:112px;padding:18px}.command-v9 .stat span{color:var(--v9-copy);font-size:12px;font-weight:700}.command-v9 .stat strong{font-size:27px}.command-v9 .dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
body.command-v9 .toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:18px;padding:12px;border:1px solid var(--v9-line);border-radius:14px;background:#fff}.command-v9 .toolbar input,.command-v9 .toolbar select{width:auto;min-width:170px}.command-v9 .empty{padding:34px 20px;text-align:center;color:var(--v9-copy)}.command-v9 .empty strong{display:block;margin-bottom:4px}
body.command-v9 .app-footer{padding:24px 0 0;color:#7990a2;font-size:11px;text-align:center}

/* Premium sign-in */
body.auth-page.command-v9{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 82% 12%,rgba(255,90,10,.11),transparent 28%),linear-gradient(135deg,#041f38 0%,var(--v9-navy) 52%,#0c426d 100%)}
body.auth-page.command-v9::before{content:"";position:fixed;left:-110px;bottom:-180px;width:440px;height:440px;border:70px solid rgba(255,255,255,.025);border-radius:50%;pointer-events:none}
body.auth-page.command-v9 .auth-card{width:min(460px,100%);margin:0;padding:34px;border:1px solid rgba(255,255,255,.4);border-radius:24px;background:#fff;box-shadow:0 30px 80px rgba(0,15,29,.3)}
body.auth-page.command-v9 .auth-card>img{display:block;width:94px;height:72px;margin:0 0 23px;padding:7px;border-radius:15px;background:#f8fbfd;object-fit:contain}
body.auth-page.command-v9 .auth-card .eyebrow{display:block;color:var(--v9-orange);font-size:10px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
body.auth-page.command-v9 .auth-card h1{margin:6px 0 3px;font-size:34px}.auth-page.command-v9 .auth-card>p{margin:0 0 22px}
body.auth-page.command-v9 .auth-card form{display:grid;gap:15px}.auth-page.command-v9 .auth-card label{display:grid;gap:6px}.auth-page.command-v9 .auth-card .button{width:100%;margin-top:4px}

/* Responsive design */
@media(max-width:1180px){
  body.command-v9 .app-shell{grid-template-columns:84px minmax(0,1fr)}
  body.command-v9 .brand span,body.command-v9 .sidebar-collapse,body.command-v9 .nav-label,body.command-v9 .nav-section,body.command-v9 .user-copy,body.command-v9 .sidebar-user>a{display:none}
  body.command-v9 .brand-row{justify-content:center}.command-v9 .brand img{width:48px}.command-v9 .sidebar nav a{justify-content:center}.command-v9 .nav-count{position:absolute;margin:-25px 0 0 25px}.command-v9 .sidebar-user{justify-content:center}
  body.command-v9 .accounting-primary-grid,body.command-v9 .accounting-secondary-grid{grid-template-columns:1fr}
  body.command-v9 .document-studio{grid-template-columns:minmax(0,1fr) 285px}
  body.command-v9 .stock-count-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  body.command-v9 .accounting-kpis,body.command-v9 .stock-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.command-v9 .document-studio{grid-template-columns:1fr}.command-v9 .studio-summary{position:static;order:-1}.command-v9 .studio-catalog-group>div{grid-template-columns:1fr}
  body.command-v9 .studio-items-head{display:none}.command-v9 .studio-item{grid-template-columns:1fr 70px 100px}.command-v9 .studio-item-product{grid-column:1/-1}.command-v9 .studio-item label span{display:block;color:var(--v9-copy);font-size:9px;text-transform:uppercase}.command-v9 .studio-item>strong{text-align:left}.command-v9 .studio-remove{justify-self:end}
  body.command-v9 .command-ageing{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  body.command-v9 .app-shell{display:block}.command-v9 .main{padding:0 14px 24px}.command-v9 .system-topbar{margin:0 -14px 18px;padding:11px 14px;min-height:70px}.command-v9 .menu-toggle{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--v9-line);border-radius:11px;background:#fff;color:var(--v9-navy)}
  body.command-v9 .sidebar{position:fixed;left:0;top:0;width:min(84vw,310px);height:100vh;transform:translateX(-105%);transition:transform .2s;box-shadow:0 20px 60px rgba(0,0,0,.25)}.command-v9 .sidebar.open{transform:translateX(0)}.command-v9 .brand span,.command-v9 .nav-label,.command-v9 .nav-section,.command-v9 .user-copy,.command-v9 .sidebar-user>a{display:grid}.command-v9 .brand-row{justify-content:flex-start}.command-v9 .sidebar nav a{justify-content:flex-start}.command-v9 .nav-count{position:static;margin-left:auto}.command-v9 .sidebar-user{justify-content:flex-start}.command-v9 .mobile-backdrop{position:fixed;inset:0;z-index:35;border:0;background:rgba(4,31,56,.52)}
  body.command-v9 .topbar-profile b{display:none}.command-v9 .topbar-icon{display:none}.command-v9 .page-identity>span{display:none}.command-v9 .page-identity h1{font-size:21px}.command-v9 .create-menu summary{padding:0 12px}.command-v9 .create-menu>div{position:fixed;left:14px;right:14px;top:72px;width:auto}
  body.command-v9 .accounting-command-hero{padding:22px}.command-v9 .accounting-command-copy h2{font-size:29px}.command-v9 .accounting-kpis{grid-template-columns:1fr 1fr}.command-v9 .accounting-kpis>a{min-height:126px;padding:15px}.command-v9 .accounting-kpis strong{font-size:24px}
  body.command-v9 .cash-summary{grid-template-columns:1fr}.command-v9 .command-ageing{grid-template-columns:repeat(2,1fr)}.command-v9 .payment-channel-list>div{grid-template-columns:1fr auto}.command-v9 .payment-channel-list i{grid-column:1/-1}.command-v9 .operations-mini{grid-template-columns:1fr 1fr 1fr}
  body.command-v9 .document-studio-heading,body.command-v9 .page-actions,body.command-v9 .panel-head{align-items:flex-start;flex-direction:column}.command-v9 .document-type-switch{width:100%}.command-v9 .document-type-switch a{flex:1;justify-content:center}.command-v9 .customer-mode,.command-v9 .quick-choice{grid-template-columns:1fr 1fr}.command-v9 .studio-item{grid-template-columns:1fr 1fr}.command-v9 .studio-item-product{grid-column:1/-1}.command-v9 .studio-remove{justify-self:end}.command-v9 .studio-item>strong{align-self:end;padding-bottom:8px}.command-v9 .form-grid{grid-template-columns:1fr}.command-v9 .form-grid .full{grid-column:auto}
  body.command-v9 .stock-count-grid{grid-template-columns:1fr}.command-v9 .stock-summary{grid-template-columns:1fr 1fr}.command-v9 .bulk-stock-submit{align-items:stretch;flex-direction:column}.command-v9 .dashboard-grid{grid-template-columns:1fr}.command-v9 .toolbar input,.command-v9 .toolbar select{width:100%;min-width:0}
}
@media(max-width:480px){
  body.command-v9{font-size:14px}.command-v9 .accounting-kpis,.command-v9 .stock-summary{grid-template-columns:1fr}.command-v9 .accounting-command-copy h2{font-size:25px}.command-v9 .command-actions .button{width:100%}.command-v9 .customer-mode,.command-v9 .quick-choice{grid-template-columns:1fr}.command-v9 .studio-item{grid-template-columns:1fr}.command-v9 .studio-item>strong,.command-v9 .studio-remove{justify-self:start}.command-v9 .operations-mini{grid-template-columns:1fr}.command-v9 .command-ageing{grid-template-columns:1fr 1fr}.command-v9 .topbar-profile{display:none}
}
@media(prefers-reduced-motion:reduce){body.command-v9 *,body.command-v9 *::before,body.command-v9 *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
