:root{
  --font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Helvetica,Arial,sans-serif;
  --bg:#f5f5f7;
  --surface:#fff;
  --surface-card:rgba(255,255,255,.92);
  --surface-glass:rgba(255,255,255,.82);
  --secondary:#e9ebef;
  --surface-hover:#e2e6ec;
  --ink:#1d1d1f;
  --muted:#5f636b;
  --line:#dfe1e6;
  --input-line:#858c96;
  --primary:#0067d8;
  --primary-hover:#0057b8;
  --primary-pressed:#004a9c;
  --on-primary:#fff;
  --link:#005fcf;
  --soft:#edf4ff;
  --soft-hover:#dceaff;
  --soft-border:#a8c8ef;
  --focus:#005fcf;
  --focus-halo:rgba(0,95,207,.16);
  --warm:#fff7e8;
  --amber:#785217;
  --warning-border:#e0cda8;
  --red:#b4233b;
  --red-bg:#fff1f3;
  --red-border:#e4b6c0;
  --success:#216a3b;
  --success-bg:#edf7f0;
  --scrim:rgba(20,25,34,.48);
  --radius:18px;
  --radius-large:24px;
  --radius-control:12px;
  --radius-pill:999px;
  --shadow:0 2px 12px rgba(25,32,44,.035);
  --shadow-panel:0 1px 0 rgba(255,255,255,.8) inset,0 20px 48px -28px rgba(25,32,44,.2);
  --shadow-dialog:0 24px 80px rgba(25,32,44,.2);
  --shadow-bar:0 -4px 16px rgba(25,32,44,.035);
  --nav-height:64px;
  --sidebar-width:216px;
  font-family:var(--font-sans);font-synthesis:none;color:var(--ink);background:var(--bg);font-size:16px;line-height:1.5;color-scheme:light
}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ca8c32;outline-offset:3px}button,a{transition:background .16s,color .16s}button{color:inherit}a{color:var(--primary)}svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.2;letter-spacing:-.8px;font-weight:650}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:16px}small,.small{font-size:13px}.muted{color:var(--muted)}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--primary)}.num{font-variant-numeric:tabular-nums}.skip-link{position:fixed;z-index:100;left:16px;top:-60px;background:var(--ink);color:#fff;padding:12px}.skip-link:focus{top:8px}.boot{min-height:100dvh;display:grid;place-content:center;justify-items:center;gap:20px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink)}.brand-name{font-size:22px;font-weight:750;letter-spacing:2px;line-height:1.1}.brand-sub{color:var(--muted);font-size:11px;letter-spacing:.4px}.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:25px;font-weight:700}
.shell{min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:var(--surface);border-right:1px solid var(--line);padding:30px 20px 22px;display:flex;flex-direction:column;z-index:20}.nav{display:flex;flex-direction:column;gap:7px;margin-top:42px}.nav a{min-height:48px;padding:12px 15px;display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:550;color:var(--muted);border-radius:10px}.nav a:hover{background:var(--bg)}.nav a.active{background:var(--soft);color:var(--primary);font-weight:650}.nav .count{margin-left:auto;background:#fff;border-radius:5px;min-width:21px;text-align:center;font-size:12px}.side-footer{margin-top:auto;padding-top:20px}.side-note{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:12px;padding:13px;margin-bottom:18px}.user-line{display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:50%;background:#eaf0f5;color:#375672;font-size:13px;font-weight:700;display:grid;place-items:center;flex:none}.user-line .name{font-size:13px;font-weight:600}.user-line .role{font-size:11px;color:var(--muted)}.page{margin-left:232px}.topbar{height:82px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;background:#ffffffcc;border-bottom:1px solid var(--line);gap:16px}.topbar-left{display:flex;align-items:center;gap:14px}.topbar-right{display:flex;align-items:center;gap:10px}.mobile-brand{display:none}.date-label{color:var(--muted);font-size:13px}.status{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:550;color:var(--primary);white-space:nowrap}.status:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.status.offline{color:var(--amber)}.demo{color:var(--amber);background:var(--warm);font-size:11px;font-weight:650;padding:4px 8px;border-radius:5px;white-space:nowrap}.content{padding:34px 38px 110px;max-width:1580px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-heading p{margin-top:8px;color:var(--muted);font-size:14px}.row{display:flex;align-items:center;gap:12px}.spread{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:14px}.btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:10px 16px;font-size:14px;font-weight:600;text-decoration:none}.btn:hover{background:#eef3f3}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-hover)}.btn.light{background:var(--soft);border-color:var(--soft);color:var(--primary)}.btn.danger{color:var(--red);background:var(--red-bg);border-color:#ebceca}.btn.small{min-height:44px;padding:8px 12px;font-size:13px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.icon-btn:hover{background:var(--soft)}.text-btn{background:transparent;border:0;color:var(--primary);min-height:44px;padding:8px;font-weight:600;font-size:13px}.full{width:100%}.banner{border-radius:var(--radius);padding:24px 28px;background:var(--primary);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;position:relative;overflow:hidden}.banner .eyebrow{color:#b6d9cd}.banner h2{font-size:24px;margin-top:5px;letter-spacing:-.6px}.banner p{color:#d8e9e2;font-size:14px;margin-top:8px;max-width:640px}.banner .btn{background:#fff;color:var(--primary);border-color:#fff;flex:none}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat{padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:6px;color:var(--muted);font-size:13px}.stat-top svg{width:19px;color:var(--primary)}.stat-value{font-size:30px;font-weight:650;margin:8px 0 1px;letter-spacing:-.8px}.stat-note{font-size:11px;color:var(--muted)}.two-col{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:22px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;box-shadow:var(--shadow)}.panel-head{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-body{padding:20px 22px}.section-gap{margin-top:26px}.customer-row{display:flex;align-items:center;gap:14px;padding:17px 22px;border-bottom:1px solid #edf1f1;text-decoration:none;color:var(--ink)}.customer-row:last-child{border:0}.customer-row:hover{background:#f8faf9}.customer-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#eff3f4;color:#466268;flex:none}.customer-row .body{min-width:0;flex:1}.customer-name{font-size:15px;font-weight:650}.customer-meta{font-size:12px;color:var(--muted);margin-top:3px}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;background:var(--soft);color:var(--primary);font-size:11px;font-weight:600;border-radius:6px}.badge.warn{background:var(--warm);color:var(--amber)}.badge.error{background:var(--red-bg);color:var(--red)}.badge.neutral{background:#eef2f4;color:#53676f}.badge-wrap{display:flex;flex-wrap:wrap;gap:6px}.card{padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.recommendation{border-left:3px solid #67a995}.recommendation .product-name{font-size:16px;font-weight:650;margin:12px 0 7px}.recommendation .reason{font-size:13px;color:var(--muted);line-height:1.65}.recommendation .evidence{font-size:11px;color:var(--muted);margin:8px 0 15px;padding:8px 10px;background:var(--bg);border-radius:7px}.price{font-weight:650;font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums}.product-muted{font-size:12px;color:var(--muted)}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px}.search{display:flex;align-items:center;gap:10px;flex:1;min-width:210px;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:0 14px;color:var(--muted)}.search input{border:0;background:transparent;outline:none;min-height:48px;width:100%;color:var(--ink)}.search:focus-within{outline:2px solid var(--primary);outline-offset:2px}.select,input.field,textarea.field{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);min-height:46px;padding:10px 12px;max-width:100%}label.field-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}.field-block{margin-bottom:16px}.field-block .field,.field-block select{width:100%}.chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.chip{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:9px 13px;min-height:44px;font-size:13px;color:var(--muted)}.chip.active{background:var(--soft);border-color:#b4d7c9;color:var(--primary);font-weight:600}.catalog-list{display:grid;gap:10px}.product-row{display:flex;align-items:center;gap:15px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.product-visual{width:54px;height:54px;background:#f1f4f4;border-radius:10px;display:grid;place-items:center;color:#50746a;flex:none}.product-visual svg{width:28px;height:28px}.product-details{flex:1;min-width:0}.product-title{font-size:14px;font-weight:600;line-height:1.45;margin-bottom:4px}.product-price{min-width:110px;text-align:right}.product-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.add-btn{background:var(--soft);border:1px solid #cee1d9;color:var(--primary);width:44px;height:44px;border-radius:10px;display:grid;place-items:center;flex:none}.add-btn:hover{background:#d6eade}.customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.customer-card{display:flex;flex-direction:column;gap:14px;text-decoration:none;color:var(--ink)}.customer-card:hover{border-color:#83b8a6}.card-footer{border-top:1px solid var(--line);padding-top:12px;font-size:12px;display:flex;justify-content:space-between;color:var(--muted)}.info-strip{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;color:var(--muted);margin-bottom:20px}.notice{border:1px solid #e6d9bc;border-radius:10px;background:var(--warm);color:#74511b;padding:13px 16px;font-size:13px;line-height:1.6;margin-bottom:18px}.notice.error{background:var(--red-bg);border-color:#ebceca;color:var(--red)}.notice.info{background:var(--soft);border-color:#cbdfd6;color:var(--primary)}.empty{padding:40px 24px;text-align:center;color:var(--muted)}.empty svg{width:36px;height:36px;margin-bottom:10px;color:#819996}.empty h3{color:var(--ink);margin-bottom:6px}.empty p{font-size:13px;max-width:430px;margin:0 auto 16px}.task-row{padding:17px 20px;border-bottom:1px solid var(--line)}.task-row:last-child{border:0}.task-title{font-size:14px;font-weight:650}.task-row .task-meta{display:flex;flex-wrap:wrap;gap:9px;font-size:12px;color:var(--muted);margin:6px 0 9px}.history-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;font-size:13px}.history-row:last-child{border:0}.history-row .left{min-width:0}.history-row .right{text-align:right;flex:none}.order-card{margin-bottom:14px}.order-lines{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}.order-lines li{padding:5px 0;font-size:13px}.order-lines ul{padding-left:18px;margin:0}.cartbar{position:fixed;bottom:22px;right:38px;left:270px;z-index:25;background:var(--ink);color:#fff;border-radius:14px;padding:13px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;box-shadow:0 8px 28px #102b3330;max-width:1240px;margin:auto}.cartbar .btn{background:#fff;color:var(--ink);border:0}.cartbar small{color:#bcd3d1}.cart-line{padding:18px 0;border-bottom:1px solid var(--line);display:flex;gap:16px;align-items:center}.qty-input{width:95px;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px;text-align:center;font-variant-numeric:tabular-nums}.cart-line .body{flex:1;min-width:0}.cart-total{display:flex;justify-content:space-between;align-items:center;padding:20px 0;font-size:20px;font-weight:650}.check-label{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6;margin:15px 0}.check-label input{width:20px;height:20px;accent-color:var(--primary);margin-top:2px;flex:none}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.divider{height:1px;background:var(--line);margin:20px 0}.file-input{width:100%;font-size:13px;padding:10px;border:1px dashed #a8c5ba;border-radius:9px;background:#f8fbfa}.file-input::file-selector-button{background:var(--soft);border:0;border-radius:6px;padding:10px;margin-right:10px;color:var(--primary);cursor:pointer}.sync-line{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;font-size:14px}.sync-line:last-child{border:0}.toast{position:fixed;bottom:104px;left:50%;transform:translateX(-50%) translateY(10px);max-width:min(90vw,620px);background:#173d36;color:white;padding:13px 20px;border-radius:10px;z-index:150;box-shadow:0 4px 20px #0002;opacity:0;pointer-events:none;transition:.2s;font-size:14px}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.toast.error{background:#8c2c2c}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;max-width:min(94vw,560px);width:100%;color:var(--ink);box-shadow:0 24px 80px #102b3333}dialog::backdrop{background:#152e3a66}dialog h2{margin-bottom:16px}dialog .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.form-error{color:var(--red);font-size:13px;margin:12px 0;min-height:20px}.login-page{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{padding:10vh 8vw;background:#123e38;color:#fff;display:flex;flex-direction:column;justify-content:center}.login-story h1{font-size:48px;line-height:1.12;margin:44px 0 22px;max-width:540px;letter-spacing:-1.6px}.login-story p{color:#b9d4ca;max-width:450px;line-height:1.8}.login-story .brand-name,.login-story .brand-sub{color:white}.login-story .brand-mark{background:#fff;color:#126459}.login-story .feature{display:flex;align-items:center;gap:10px;color:#c7dfd5;font-size:14px;margin-top:16px}.login-form-wrap{display:flex;justify-content:center;align-items:center;padding:40px 24px}.login-card{width:100%;max-width:400px}.login-card h2{font-size:28px}.login-card>p{color:var(--muted);font-size:14px;margin:10px 0 28px}.demo-logins{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.login-card .notice{margin-top:24px;margin-bottom:0}.bottom-nav{display:none}.loading-line{height:3px;background:linear-gradient(90deg,var(--primary),#9fd6b9,var(--primary));background-size:200% 100%;animation:loading 1.2s linear infinite;position:fixed;top:0;left:0;right:0;z-index:200}@keyframes loading{to{background-position:-200% 0}}.subtle-link{text-decoration:none;color:var(--muted);font-size:13px}.metrics-note{font-size:12px;color:var(--muted);margin-top:14px;line-height:1.7}.snapshot-label{font-size:11px;color:var(--muted);margin-top:4px}.inline-error{color:var(--red);font-size:12px;margin-top:6px}.spacer{flex:1}
@media(min-width:1500px){.content{padding-top:40px}.customer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.sidebar{width:200px;padding:25px 14px}.page{margin-left:200px}.topbar{padding:0 24px}.content{padding:28px 24px 110px}.cartbar{left:224px;right:24px}.two-col{grid-template-columns:1.2fr 1fr}.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{gap:10px}.stat{padding:16px}.stat-top{font-size:12px}}
@media(max-width:850px){.sidebar{display:none}.page{margin-left:0}.topbar{height:72px;padding:0 20px}.mobile-brand{display:flex}.date-label{display:none}.topbar-left .desktop-label{display:none}.content{padding:25px 20px 160px}.two-col{grid-template-columns:1fr}.cartbar{left:20px;right:20px;bottom:90px}.bottom-nav{position:fixed;inset:auto 0 0;background:#fffffffa;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:8px 8px max(8px,env(safe-area-inset-bottom));z-index:30}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;font-size:10px;color:var(--muted);min-height:48px;padding:4px;border-radius:8px}.bottom-nav a.active{color:var(--primary);background:var(--soft)}.topbar .brand-mark{width:31px;height:31px;border-radius:9px;font-size:21px}.topbar .brand-name{font-size:18px}.topbar .brand-sub{display:none}.page-heading{align-items:flex-start}.page-heading h1{font-size:27px}.banner{padding:22px;align-items:flex-start;flex-direction:column;gap:16px}.banner h2{font-size:22px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.login-page{grid-template-columns:1fr}.login-story{padding:35px 28px}.login-story h1{font-size:32px;margin:28px 0 14px;max-width:520px}.login-story>p{font-size:14px}.login-story .feature{display:none}.login-form-wrap{padding:30px 24px}.login-card{max-width:500px}.toast{bottom:155px}.grid-2{grid-template-columns:1fr}}
@media(max-width:520px){.topbar{padding:0 14px;gap:8px}.topbar-right{gap:6px}.topbar .btn{font-size:0;padding:10px;min-width:44px}.topbar .btn svg{width:20px}.status{font-size:11px}.demo{font-size:10px;padding:3px 5px}.content{padding:22px 15px 160px}.page-heading{gap:12px;margin-bottom:20px}.page-heading p{font-size:13px}.page-heading .btn{font-size:12px;padding:8px 10px}.customer-grid{grid-template-columns:1fr}.panel-head{padding:17px}.panel-body{padding:17px}.customer-row{padding:16px}.product-row{gap:10px;padding:13px 12px;flex-wrap:wrap}.product-visual{width:42px;height:42px}.product-details{flex-basis:calc(100% - 56px)}.product-price{text-align:left;margin-left:52px;min-width:0;flex:1}.product-title{font-size:14px}.cart-line{flex-wrap:wrap;gap:12px}.cart-line .body{flex-basis:100%}.cart-line .qty-input{margin-right:auto}.cartbar{left:12px;right:12px;padding:12px;gap:8px}.cartbar .btn{font-size:12px;padding:9px 12px}.cartbar .cart-label{font-size:13px}.cartbar small{font-size:11px}.stat-value{font-size:27px}.stat-top svg{display:none}.card{padding:17px}.filters .select{width:100%}.banner p{font-size:13px}.notice{font-size:12px}.info-strip{gap:10px;font-size:12px}.brand-sub{display:none}}
@media(max-width:520px){.topbar{height:auto;min-height:106px;padding:12px 14px;flex-wrap:wrap;gap:8px}.topbar-left,.topbar-right{width:100%;justify-content:space-between}.topbar-right .status{margin-right:auto}.topbar .btn{font-size:12px;padding:8px 10px}.topbar-left .demo{margin-left:auto}.content{padding-bottom:210px}.cartbar{flex-wrap:wrap}.cartbar>.row{width:100%;justify-content:space-between}.cartbar .cart-label{overflow-wrap:anywhere}.spread{flex-wrap:wrap}.cart-total{font-size:18px}.customer-row>.badge{max-width:90px}.page-heading{flex-wrap:wrap}.history-row span{overflow-wrap:anywhere}.order-card h2{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.card>.row.section-gap{flex-wrap:wrap}

/* A client stays the working context through selection and final review. */
.sync-status{min-height:48px;text-align:left;padding:7px 12px;flex:none}
.sync-status>span{display:flex;flex-direction:column;line-height:1.25}
.sync-status small{font-size:11px;font-weight:400;color:var(--primary);margin-top:3px}
.sync-status.is-offline small{color:var(--amber)}
.workspace,.workspace-layout,.workspace-primary,.workspace-opportunities{min-width:0}
.workspace-back{min-height:44px;width:fit-content;margin-bottom:12px}
.workspace .page-heading{margin-bottom:12px}
.workspace .page-heading h1{overflow-wrap:anywhere}
.workspace .info-strip{align-items:center;gap:8px 16px;margin-bottom:20px}
.customer-phone{display:inline-flex;align-items:center;min-height:44px;gap:6px}
.workspace-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:22px;align-items:start}
.workspace-primary,.workspace-opportunities{display:flex;flex-direction:column;gap:18px}
.workspace-opportunities>p{margin-top:-10px}
.workspace-order .panel-head{padding-bottom:16px}
.workspace-order .panel-head p{margin-top:5px}
.workspace-order-intro{padding-bottom:8px}
.workspace-order-intro>p{margin-bottom:14px;max-width:55ch}
.workspace-order-intro .select{width:100%;max-width:260px}
.workspace-line{display:flex;flex-direction:column;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);min-width:0}
.workspace-line-info{min-width:0;overflow-wrap:anywhere}
.workspace-line-info>strong{font-size:15px;line-height:1.5;display:block}
.workspace-line-info .product-meta{gap:4px 12px;margin-top:5px;line-height:1.5}
.last-shipment{margin-top:4px}
.workspace-line-actions{display:flex;align-items:flex-end;gap:12px;min-width:0}
.quantity-field{min-width:0;flex:none;max-width:100%}
.quantity-label{display:block;font-size:12px;line-height:1.4;margin-bottom:5px;color:var(--muted)}
.quantity-control{display:inline-flex;align-items:center;gap:8px;max-width:100%}
.quantity-control .qty-input{width:72px;min-width:0;font-size:16px;min-height:44px;padding:8px 4px;background:var(--surface);color:var(--ink)}
.quantity-step{width:44px;height:44px;min-width:44px;border:1px solid var(--line);border-radius:9px;color:var(--primary);background:var(--soft);font-size:23px;line-height:1;touch-action:manipulation}
.quantity-step:hover{background:#d6eade}
.quantity-step:active{background:#c4e2d4}
.qty-input.invalid{border-color:var(--red);background:var(--red-bg)}
.quantity-field .inline-error{max-width:290px;overflow-wrap:anywhere}
.quantity-field .inline-error:empty{display:none}
.line-amount{margin-left:auto;min-width:0;align-self:flex-end;padding-bottom:10px;text-align:right}
.line-amount .price{font-size:15px}
.workspace-line-actions .remove-line{flex:none;align-self:flex-end;color:var(--muted)}
.remaining-lines{margin-top:18px}
.remaining-lines>p{margin-bottom:8px}
.order-category{border:1px solid var(--line);border-radius:9px;margin-top:8px;padding:0 12px;background:var(--bg)}
.order-category>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:600;cursor:pointer;list-style:none}
.order-category>summary:before{content:'+';font-size:20px;font-weight:400;color:var(--primary)}
.order-category[open]>summary:before{content:'−'}
.order-category>summary>span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}
.order-category>summary::-webkit-details-marker{display:none}
.order-category .workspace-line:last-child{border-bottom:0}
.order-note-details{margin:14px 0;border-top:1px solid var(--line);padding-top:5px}
.order-note-details>summary,.workspace-catalog>summary,.rec-evidence>summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;color:var(--primary);font-size:13px;font-weight:600;line-height:1.5}
.order-note-details .field-label{margin-top:8px}
.undo-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin-top:12px;border:1px solid #cbdfd6;border-radius:9px;background:var(--soft);color:var(--primary);font-size:13px;line-height:1.5}
.undo-notice>span{min-width:0;overflow-wrap:anywhere}
.undo-notice .btn{flex:none}
.growth-list{gap:12px}
.growth-card{padding:18px}
.growth-card .product-name{font-size:16px;line-height:1.5;margin:10px 0 7px;overflow-wrap:anywhere}
.growth-reason{font-size:13px;line-height:1.6;color:var(--muted)}
.rec-evidence{margin:4px 0 10px;border-bottom:1px solid var(--line)}
.rec-evidence>p{font-size:12px;color:var(--muted);line-height:1.65;padding-bottom:12px;overflow-wrap:anywhere}
.growth-price{align-items:center;flex-wrap:wrap}
.growth-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px -8px -8px;flex-wrap:wrap}
.workspace-tasks .task-row{padding:16px}
.workspace-tasks .task-title{overflow-wrap:anywhere}
.workspace-history>summary{padding:16px 18px;min-height:52px;cursor:pointer;font-size:14px;font-weight:600;line-height:1.5}
.workspace-history[open]>summary{border-bottom:1px solid var(--line)}
.workspace-history .history-row strong{overflow-wrap:anywhere}
.workspace-search-panel .search-label{margin-top:14px}
.workspace-search-panel .search{min-width:0}
.workspace-search-panel .search input{font-size:16px;min-width:0}
.workspace-chips{margin:12px 0 2px;gap:8px}
.workspace-chips .chip{font-size:12px;padding:8px 10px}
.catalog-result-list{border-top:1px solid var(--line)}
.catalog-row-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.catalog-row-actions>.price{font-size:16px;padding-bottom:10px}
.catalog-row-actions>.quantity-field{margin-left:auto}
.catalog-pagination{padding-top:16px;gap:8px}
.review-context{display:flex;gap:8px 18px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
.review-context strong{font-size:17px;flex-basis:100%;overflow-wrap:anywhere}
.review-context span{font-size:13px;color:var(--muted)}
.review-new{margin-top:6px;white-space:normal}
.review-note{padding:10px 0;overflow-wrap:anywhere}
.review-line{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0}
.review-line .workspace-line-actions{max-width:500px;width:100%}
.review-agreement{font-size:14px;line-height:1.65;margin:0 0 18px;max-width:70ch}
.review-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.review-actions .btn{white-space:normal;min-height:48px}
.cartbar-summary{min-width:0}
.cartbar .cart-label{overflow-wrap:anywhere}
.cartbar small{display:block;line-height:1.45}
.workspace summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:5px}
.workspace button,.order-review button{touch-action:manipulation}
@media(min-width:1300px){.workspace-layout{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr)}.review-line{flex-direction:row;align-items:center;gap:24px}.review-line .workspace-line-info{flex:1}.review-line .workspace-line-actions{width:360px;flex:none}}
@media(max-width:1100px){.workspace-layout{grid-template-columns:minmax(0,1fr)}.workspace-opportunities{display:flex}.growth-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.growth-list>.empty{grid-column:1/-1}}
@media(max-width:520px){
  .topbar{min-height:76px;flex-wrap:nowrap;gap:10px;padding:10px 14px}
  .topbar-left{min-width:0;width:auto;flex:1;justify-content:flex-start;flex-wrap:wrap;gap:4px 8px}
  .topbar-right{width:auto;flex:none}
  .topbar-left .demo{margin-left:0}
  .topbar .sync-status{font-size:12px;padding:7px 9px;min-height:48px;gap:6px}
  .topbar .sync-status small{font-size:10px}
  .workspace .page-heading h1{font-size:25px}
  .workspace .panel-body{padding:14px}
  .workspace .panel-head{padding:15px 14px;flex-wrap:wrap}
  .workspace-line-info>strong{font-size:14px}
  .workspace-line-actions{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px 10px;align-items:end}
  .workspace-line-actions>.quantity-field{grid-column:1;grid-row:1}
  .workspace-line-actions>.remove-line{grid-column:2;grid-row:1}
  .workspace-line-actions>.line-amount{grid-column:1/-1;grid-row:2;justify-self:end;padding-bottom:0;margin-left:0}
  .workspace-line-actions .quantity-field .inline-error{max-width:100%}
  .quantity-control{gap:8px}
  .quantity-control .qty-input{width:76px}
  .order-category{padding:0 10px}
  .order-category .quantity-control .qty-input{width:60px}
  .workspace-order-intro .select,.workspace .field{font-size:16px}
  .growth-list{grid-template-columns:minmax(0,1fr)}
  .growth-card{padding:16px}
  .growth-card .spread{gap:10px}
  .undo-notice{flex-wrap:wrap}
  .catalog-row-actions{align-items:center}
  .catalog-row-actions>.price{padding-bottom:0}
  .catalog-row-actions>.quantity-field{width:100%;margin-left:0}
  .review-actions{flex-direction:column-reverse;align-items:stretch}
  .review-actions .btn{width:100%;font-size:14px}
  .order-review .panel-body{padding:14px}
  .review-line .workspace-line-actions{display:grid}
  .cartbar>.row{gap:8px;flex-wrap:wrap}
  .cartbar>.row>.btn{flex:1;min-width:150px}
  .cartbar .cartbar-summary{width:100%}
}

.report-table{max-width:100%;overflow-x:auto;margin:14px 0}.report-table table{width:100%;border-collapse:collapse;font-size:13px}.report-table th,.report-table td{padding:10px 8px;border-bottom:1px solid var(--line,#e3e8e6);text-align:right;vertical-align:top}.report-table th:first-child{text-align:left;min-width:130px}.report-table thead{color:var(--muted,#67756e)}.replenishment-hint{flex-basis:100%;margin:8px 0;color:#52644e}

.review-line{flex-wrap:wrap}.workspace-line .replenishment-hint{flex-basis:auto}.review-line .replenishment-hint{order:3;flex-basis:100%;width:100%}
.two-col>.stack,.stack>.panel,.panel-body,.panel-body>details{min-width:0;max-width:100%}.report-table{width:100%;min-width:0}.metrics-note{overflow-wrap:anywhere}
.client-service{margin:16px 0}.client-service>summary{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;min-height:48px;padding:14px;cursor:pointer;font-weight:600}.client-service>summary span:last-child{font-size:13px;color:var(--muted)}.product-link{color:inherit;text-decoration:underline;text-decoration-color:#b4c9c3;text-underline-offset:3px}.return-choices{max-height:280px;overflow:auto;margin:12px 0}.return-line{border-top:1px solid var(--line);padding:18px 0}.return-line .field,.return-line .select{min-height:44px;font-size:16px}.return-line h3{overflow-wrap:anywhere}.barcode-video{width:100%;max-height:240px;object-fit:contain;margin-top:12px}.product-photo{max-width:100%;max-height:360px;object-fit:contain}.print-document{background:#fff;color:#111;padding:24px;overflow-wrap:anywhere}.print-document table{border-collapse:collapse;width:100%}.print-document td,.print-document th{padding:8px;border-bottom:1px solid #ccc;text-align:left}.client-service .history-row{gap:12px}.client-service .history-row>*{min-width:0;overflow-wrap:anywhere}
@media print{body{background:white}.sidebar,.topbar,.bottom-nav,.cartbar,.toast,.no-print,.loading-line{display:none!important}.page,.content{margin:0!important;padding:0!important;max-width:none!important}.shell{display:block!important}.print-document{padding:0}.print-document a{color:inherit}body:has(.print-document) #main>*:not(.print-document){display:none!important}}
.product-detail-photo{display:flex;justify-content:center;align-items:center;min-height:120px;max-height:360px;margin-top:16px}.product-detail-photo img{display:block;max-width:100%;max-height:360px;object-fit:contain}
.product-detail-photo img,.sales-detail .product-thumb img{cursor:zoom-in}
dialog.photo-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:16px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
dialog.photo-viewer:not([open]){display:none}
dialog.photo-viewer::backdrop{background:rgba(12,16,22,.88)}
.photo-viewer-image{display:block;max-width:100%;max-height:calc(100dvh - 32px);object-fit:contain;border-radius:12px;background:#fff;cursor:default}
.photo-viewer-close{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.94);color:#1a1c1e;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.photo-viewer-close svg{width:24px;height:24px;fill:currentColor}
/* The gallery of a product card (owner, 26.11.2026). */
.product-gallery{position:relative;min-width:0}
.product-gallery-track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;border-radius:10px;outline-offset:2px}
.product-gallery-track::-webkit-scrollbar{display:none}
.product-gallery-track>.product-thumb{flex:0 0 100%;width:100%;height:280px;scroll-snap-align:center;scroll-snap-stop:always;border-radius:0}
.product-gallery-track>.product-thumb img{padding:8px}
.product-gallery-arrow{position:absolute;top:140px;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.94);color:#1a1c1e;display:grid;place-items:center;cursor:pointer;box-shadow:0 1px 6px rgba(0,0,0,.22)}
.product-gallery-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2}
.product-gallery-arrow.is-prev{left:8px}.product-gallery-arrow.is-next{right:8px}
.product-gallery-arrow:disabled{opacity:0;pointer-events:none}
.product-gallery-count{position:absolute;top:8px;right:8px;padding:2px 8px;border-radius:999px;background:rgba(26,28,30,.6);color:#fff;font-size:12px;line-height:18px;font-variant-numeric:tabular-nums;pointer-events:none}
.product-gallery-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;margin-top:6px}
.product-gallery-dot{width:24px;height:24px;border:0;padding:0;background:none;display:grid;place-items:center;cursor:pointer}
.product-gallery-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:#c6cad2;transition:transform .15s,background-color .15s}
.product-gallery-dot[aria-current="true"]::before{background:var(--primary);transform:scale(1.25)}
.photo-viewer-prev,.photo-viewer-next{position:fixed;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.94);color:#1a1c1e;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.photo-viewer-prev{left:max(12px,env(safe-area-inset-left))}.photo-viewer-next{right:max(12px,env(safe-area-inset-right))}
.photo-viewer-prev[hidden],.photo-viewer-next[hidden],.photo-viewer-count[hidden]{display:none}
.photo-viewer-prev:disabled,.photo-viewer-next:disabled{opacity:.35;cursor:default}
.photo-viewer-prev svg,.photo-viewer-next svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2}
.photo-viewer-count{position:fixed;top:max(22px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.94);color:#1a1c1e;font-size:14px;font-variant-numeric:tabular-nums}
dialog.photo-viewer{touch-action:pinch-zoom}
.product-photo-placeholder{padding:24px;text-align:center;color:var(--muted)}.product-specifications dd{margin-left:16px;overflow-wrap:anywhere}.product-specifications dt{overflow-wrap:anywhere}.order-print-meta{display:grid;gap:8px}.order-print-meta>div{display:flex;gap:12px}.order-print-meta dd{margin:0;overflow-wrap:anywhere}

/* Light mobile workspace. Keep the existing selectors for recovery, review and management. */
html{scroll-padding-bottom:calc(200px + env(safe-area-inset-bottom,0px))}
body{min-width:280px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #006fee;outline-offset:3px}
h1{font-size:32px;font-weight:750;letter-spacing:-.9px;line-height:1.14}
h2{font-size:19px;font-weight:700;letter-spacing:-.35px}
h3{font-weight:650}
.page,.content,.row,.spread,.filters,.today-layout,.today-main,.today-card,.today-summary,.workspace-tabs,.workspace-search-top,.mobile-order-summary,.debt-summary,.invoice-card,.invoice-row,.catalog-grid,.card.product{min-width:0}
.sidebar{width:var(--sidebar-width);padding:28px 16px 22px}
.page{margin-left:var(--sidebar-width)}
.content{max-width:1380px;padding:28px 28px 150px}
.topbar{height:68px;padding:0 28px;background:var(--bg);border-bottom:0}
.brand-name,.wordmark{color:var(--primary);font-weight:800;letter-spacing:-.65px}
.brand-mark{border-radius:11px;background:var(--primary)}
.nav{margin-top:32px;gap:6px}
.nav a{font-size:14px;border-radius:11px;color:#5d6777}
.nav a.active{color:var(--primary);background:var(--soft)}
.nav a.active .count{background:white}
.side-note{border-color:var(--line);background:var(--bg);line-height:1.6}
.side-footer>.spread{gap:8px;flex-wrap:wrap;margin-top:16px}
.avatar{background:#eaf1ff;color:#2463aa}
.btn{min-height:44px;border-radius:10px;padding:10px 14px;font-size:14px;font-weight:650;line-height:1.35;white-space:normal}
.btn:hover{background:#f0f3f9}
.btn.primary{background:var(--primary);border-color:var(--primary);color:white}
.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.btn.primary:active{background:#0054b8}
.btn.light{background:var(--soft);border-color:var(--soft);color:var(--primary)}
.btn.light:hover,.icon-btn:hover,.add-btn:hover{background:#deebff}
.btn.danger{background:var(--red-bg);border-color:#f4d7dd;color:var(--red)}
.btn:disabled,.icon-btn:disabled,.quantity-step:disabled,.add-btn:disabled{opacity:.48}
.icon-btn{border-radius:10px}
.text-btn{font-size:13px}
.page-heading{margin-bottom:20px;align-items:flex-start}
.page-heading p{margin-top:7px;line-height:1.5}
.mobile-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}
.mobile-page-heading>div{min-width:0}
.mobile-page-heading h1{font-size:32px;overflow-wrap:anywhere}
.mobile-page-heading p{margin-top:7px;color:var(--muted);font-size:14px}
.mobile-page-heading .wordmark{font-size:21px;line-height:1.5;flex:none;white-space:nowrap;padding-top:2px;text-decoration:none}
.panel,.card,.stat,.today-card,.invoice-card{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel-head{padding:17px 18px}
.panel-body,.card{padding:18px}
.panel-head h2{font-size:18px}
.badge{border-radius:6px;font-size:11px;font-weight:600}
.badge.neutral{background:#f0f2f7;color:#5f6979}
.customer-icon{background:#edf3fd;color:#3374bd;border-radius:11px}
.customer-card:hover{border-color:#a7c8f4}
.customer-row:hover{background:#f6f9ff}
.customer-row{border-bottom-color:var(--line)}
.customer-name{font-weight:700}
.product-link{color:inherit;text-decoration:none}
.product-link:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#98b5dd}
.notice{border-color:#eedbb7;border-radius:12px}
.notice.info{border-color:#d3e2fb;background:var(--soft);color:#185998}
.notice.error{border-color:#efcbd3}
.empty svg{color:#8192aa}
.search{border-radius:11px;border-color:#e6e9f0;background:#eef0f5;min-width:0;padding:0 12px;gap:8px}
.search input{min-height:46px;font-size:16px;min-width:0}
.search input::placeholder{color:#6e7889;opacity:1}
.select,input.field,textarea.field{font-size:16px;border-radius:10px}
.chip{border-color:var(--line);border-radius:9px;color:#596477;min-height:44px}
.chip.active{background:var(--soft);border-color:#d3e3fd;color:var(--primary)}
.sync-status{background:transparent;border-color:transparent;min-height:44px;padding:6px 8px}
.sync-status small{color:#5f6f86}
.sync-status.is-offline small{color:var(--amber)}
.sync-footnote{display:flex;align-items:flex-start;justify-content:center;gap:6px;color:var(--muted);font-size:12px;line-height:1.5;margin:18px 0 0;text-align:center;overflow-wrap:anywhere}
.sync-footnote svg{width:15px;height:15px;margin-top:2px}
.loading-line{background-image:linear-gradient(90deg,#006fee,#84bbff,#006fee)}
.toast{background:#202c42;border-radius:12px;box-shadow:0 4px 20px #16274420}
.toast.error{background:#9e2735}
dialog{border-radius:18px;box-shadow:0 24px 70px #152b4a26}
dialog::backdrop{background:#101d3659}
.file-input{background:#f7f9fd;border-color:#b7c9e2}
.login-story{background:#f0f5ff;color:var(--ink)}
.login-story h1{letter-spacing:-1.2px}
.login-story p,.login-story .feature{color:#5a6980}
.login-story .brand-name{color:var(--primary)}
.login-story .brand-sub{color:var(--muted)}
.login-story .brand-mark{background:var(--primary);color:white}

/* Today: one next client and a short, actionable view of the day. */
.today-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:18px;align-items:start}
.today-main{display:flex;flex-direction:column;gap:16px}
.today-card{padding:17px 18px}
.today-card h2{font-size:18px;margin-bottom:12px}
.today-card>p{font-size:14px;color:var(--muted)}
.today-card .eyebrow{font-size:12px;letter-spacing:0;text-transform:none;color:var(--muted);font-weight:500}
.current-client h2{font-size:23px;line-height:1.25;margin:7px 0 5px;letter-spacing:-.5px;overflow-wrap:anywhere}
.current-client .btn{margin-top:15px;width:100%}
.current-client .customer-meta,.current-client .small{font-size:14px}
.today-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.today-summary>div{padding:2px 12px;min-width:0}
.today-summary>div:first-child{padding-left:0}
.today-summary>div+div{border-left:1px solid var(--line)}
.today-summary>div:last-child{padding-right:0}
.today-summary strong{display:block;font-size:24px;line-height:1.2;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.today-summary small,.today-summary span{display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.today-task{display:flex;align-items:flex-start;gap:11px;padding:12px 0;border-top:1px solid var(--line);font-size:14px}
.today-task:first-of-type{border-top:0;padding-top:3px}
.today-task>svg{color:#7b8698;width:20px;height:20px;margin-top:1px}
.today-task>div{flex:1;min-width:0}
.today-task strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.today-task p,.today-task small{color:var(--muted);font-size:12px;margin-top:3px}
.today-task .icon-btn{border:0;background:transparent;margin:-9px -8px -9px 0}
.today-recommendation{display:grid;grid-template-columns:68px minmax(0,1fr);gap:12px;align-items:center}
.today-recommendation .product-thumb{width:68px;height:82px}
.today-recommendation h3,.today-recommendation .product-name{font-size:14px;line-height:1.35;margin:0 0 5px;overflow-wrap:anywhere}
.today-recommendation p{font-size:12px;line-height:1.5;color:var(--muted)}
.today-recommendation .btn{margin-top:10px}

/* Product imagery is real content or an explicit fallback, never a fabricated stock claim. */
.product-thumb{width:72px;height:84px;display:flex;align-items:center;justify-content:center;flex:none;background:#f5f6f9;border-radius:10px;overflow:hidden;color:#7c879b}
.product-thumb img{display:block;max-width:100%;width:100%;height:100%;object-fit:contain;padding:5px}
.product-thumb svg{width:34px;height:34px;stroke-width:1.5}
.product-thumb .fallback,.product-thumb .product-photo-placeholder{font-size:11px;line-height:1.35;padding:7px;text-align:center;overflow-wrap:anywhere}
.stock-label{display:flex;align-items:center;gap:4px;color:#237442;font-size:11px;line-height:1.5;font-weight:500;flex-wrap:wrap}
.stock-label svg{width:13px;height:13px;stroke-width:2.1}
.stock-label.unavailable,.stock-label.is-unavailable{color:var(--muted)}
.workspace .page-heading h1{font-size:32px}
.workspace-back{margin-bottom:10px;color:var(--primary);background:transparent;border:0;padding-left:0}
.workspace .info-strip{gap:5px 12px;margin-bottom:14px;font-size:12px}
.workspace-layout{grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);gap:18px}
.workspace-primary,.workspace-opportunities{gap:16px}
.workspace-tabs{display:flex;gap:4px;padding:4px;background:#e9ecf2;border-radius:11px;margin-bottom:16px;flex-wrap:wrap}
.workspace-tabs .chip{flex:1;padding:8px;min-width:0;min-height:44px;border:0;background:transparent;color:#596477;text-align:center;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.workspace-tabs .chip.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px #1834570d}
.workspace-search-top{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.workspace-search-top .search{flex:1}
.workspace-search-top>.btn,.workspace-search-top>.icon-btn{flex:none}
.workspace-order{background:transparent;border:0;box-shadow:none;overflow:visible}
.workspace-order>.panel-head{border:0;padding:0 0 12px;align-items:flex-start;flex-wrap:wrap}
.workspace-order>.panel-head h2{font-size:19px}
.workspace-order>.panel-body{padding:0}
.workspace-order-intro{padding-bottom:4px}
.workspace-order-intro>p{font-size:13px;line-height:1.5}
.workspace-line{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px 12px;padding:12px;margin-bottom:10px;background:white;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}
.workspace-line>.product-thumb{grid-column:1;grid-row:1}
.workspace-line>.workspace-line-info{grid-column:2;grid-row:1;align-self:center}
.workspace-line:not(:has(>.product-thumb))>.workspace-line-info{grid-column:1/-1}
.workspace-line-info>strong{font-size:14px;font-weight:650;line-height:1.35}
.workspace-line-info .product-meta{font-size:11px;gap:2px 9px;line-height:1.4;margin-top:5px}
.workspace-line-info .price{font-size:18px;margin:5px 0 3px;line-height:1.3}
.workspace-line-info .stock-label{margin-top:4px}
.last-shipment{font-size:11px;line-height:1.4;margin-top:4px}
.workspace-line>.workspace-line-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:8px;align-items:end}
.workspace-line-actions>.quantity-field{grid-column:1;grid-row:1}
.workspace-line-actions>.line-amount{grid-column:2;grid-row:1;align-self:end;justify-self:end;max-width:100%;padding-bottom:11px;margin:0}
.workspace-line-actions>.remove-line{grid-column:3;grid-row:1;align-self:end;min-width:44px;color:#7b8494;border-color:transparent}
.workspace-line-actions .price{font-size:14px;white-space:normal;overflow-wrap:anywhere}
.quantity-label{font-size:11px;margin-bottom:4px;line-height:1.4}
.quantity-control{gap:0;border:1px solid #e2e7ef;border-radius:9px;background:#f9fafc}
.quantity-step{width:44px;height:44px;min-width:44px;border:0;border-radius:8px;background:transparent;color:#486180;font-size:22px}
.quantity-step:hover{background:#e9f1ff}
.quantity-step:active{background:#dceaff}
.quantity-control .qty-input{width:48px;min-height:44px;border:0;border-left:1px solid #e2e7ef;border-right:1px solid #e2e7ef;border-radius:0;background:#fff;font-size:16px;padding:8px 3px;color:var(--ink)}
.quantity-control .qty-input.invalid{background:var(--red-bg);box-shadow:inset 0 0 0 2px var(--red)}
.workspace-line>.replenishment-hint{grid-column:1/-1;margin:0;border:0}
.replenishment-hint>summary{font-size:12px;font-weight:500;color:#4b637b}
.replenishment-hint>p{padding-bottom:6px}
.remaining-lines{margin-top:14px}
.order-category{border:0;border-radius:12px;background:#eef1f6;padding:0 10px}
.order-category>summary{font-size:13px;min-height:48px}
.order-category .workspace-line:last-child{border:1px solid var(--line)}
.order-category .quantity-control .qty-input{width:48px}
.order-note-details{border:0;margin:12px 0}
.undo-notice{background:var(--soft);border-color:#d3e2fb}
.growth-list{display:flex;flex-direction:column;gap:12px}
.growth-card{padding:15px;border-left:1px solid var(--line)}
.growth-card .product-name{font-size:15px;line-height:1.4;margin:9px 0 6px}
.growth-reason{font-size:13px;line-height:1.5;color:#586477}
.growth-card .product-thumb{float:left;width:64px;height:76px;margin:8px 12px 8px 0}
.growth-card .rec-evidence,.growth-card .growth-price,.growth-card .growth-actions{clear:both}
.growth-actions{margin:10px 0 0;gap:8px;align-items:center}
.growth-actions .btn{font-size:13px}
.rec-evidence{border-bottom-color:var(--line)}
.workspace-search-panel .panel-body{padding:15px}
.workspace-search-panel .workspace-line{box-shadow:none;margin-top:10px}
.catalog-row-actions{grid-column:1/-1}
.workspace-chips .chip{padding:8px 9px;font-size:12px}
.workspace-history>summary{font-size:14px}
.workspace-tasks .task-row{padding:15px}
.review-line .workspace-line-actions{max-width:none}
.review-line .line-amount{padding-bottom:10px}
.review-agreement{font-size:14px;color:#4f5e72}
.review-actions .btn.primary{min-height:48px}

/* A full-width order action above the real app navigation. */
.mobile-order-bar{position:fixed;left:var(--sidebar-width);right:0;bottom:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 28px max(14px,env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line);box-shadow:0 -3px 14px #152b4a06}
.mobile-order-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;line-height:1.35}
.mobile-order-summary strong,.mobile-order-summary .price{font-size:20px;line-height:1.3;letter-spacing:-.3px;font-variant-numeric:tabular-nums;white-space:normal}
.mobile-order-summary small,.mobile-order-summary .small{font-size:12px;color:var(--muted);display:block;line-height:1.4;margin-top:3px;overflow-wrap:anywhere}
.mobile-order-bar>.btn{min-width:190px;min-height:46px;flex:none}
.cartbar{left:calc(var(--sidebar-width) + 28px);right:28px;background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 3px 16px #152b4a12;max-width:1324px}
.cartbar small{color:var(--muted)}
.cartbar .btn{background:var(--primary);color:white}

/* Browse products without turning the client workspace into 6000 rows. */
.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
.catalog-grid .card.product{display:flex;flex-direction:column;gap:9px;padding:11px;border-radius:12px;overflow:visible}
.catalog-photo{display:flex;align-items:center;justify-content:center;aspect-ratio:1.2;min-height:120px;background:#f7f8fa;border-radius:8px;color:#8390a3;overflow:hidden;text-decoration:none}
.catalog-photo img{display:block;width:100%;height:100%;max-height:180px;object-fit:contain;padding:10px}
.catalog-photo svg{width:52px;height:52px;stroke-width:1.3}
.catalog-grid .product-title,.catalog-grid h2,.catalog-grid h3{font-size:14px;font-weight:650;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere;margin:0}
.catalog-grid .product-meta{font-size:11px;gap:2px 8px}
.catalog-grid .product-price{min-width:0;text-align:left;margin:0}
.catalog-grid .price{font-size:18px;line-height:1.3;white-space:normal}
.catalog-grid .stock-label{font-size:11px}
.catalog-add{width:100%;min-height:44px;margin-top:auto;font-size:13px;border-radius:8px}
.catalog-grid .catalog-add{padding:9px 7px}
.catalog-grid .product-details{flex:none}

/* Debt values are supplied by data; unknown and overdue remain distinct. */
.debt-customer{margin-bottom:15px}.debt-customer>strong{font-size:18px;font-weight:650;overflow-wrap:anywhere}
.debt-summary{display:block;padding:18px;margin-bottom:20px}
.debt-summary>.debt-total{display:block;padding:0;margin:7px 0 16px;font-size:32px;font-weight:750;line-height:1.2;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.debt-summary>.debt-overdue,.debt-current{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:0;border-radius:10px;box-shadow:none;background:var(--red-bg);color:var(--red);font-size:13px}
.debt-summary .debt-overdue strong,.debt-current strong{font-size:22px;font-weight:700;line-height:1.3;text-align:right;letter-spacing:-.4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.debt-summary .debt-current{background:#f1f4f8;color:#566477}
.debt-summary>.snapshot-label{margin-top:12px;line-height:1.5}
.debt-overdue-inline,.invoice-due.is-overdue{color:var(--red)}
.invoice-card{padding:0;margin-top:12px;overflow:hidden}
.invoice-item+.invoice-item{border-top:1px solid var(--line)}
.invoice-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(70px,auto) 18px;align-items:center;gap:10px;margin:0;padding:15px;font-size:13px;line-height:1.5;min-height:72px;text-decoration:none;color:var(--ink);list-style:none;cursor:pointer}
.invoice-row::-webkit-details-marker{display:none}
.invoice-info{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.invoice-info strong{font-size:15px;line-height:1.4;text-align:left;font-weight:650}
.invoice-info .small{font-size:12px;line-height:1.4}
.invoice-amount{font-size:15px;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:140px}
.invoice-chevron{width:18px;height:18px;color:#a0a8b5;transition:transform .16s}
.invoice-item[open] .invoice-chevron{transform:rotate(90deg)}
.invoice-details{padding:0 15px 15px;line-height:1.6}
.invoice-details>p+p{margin-top:4px}
.debt-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.debt-list .debt-client{margin:0;padding:16px}
.debt-client:hover{border-color:#b3cdf1}
.client-service .subtle-link{display:inline-flex;align-items:center;min-height:44px;gap:4px;color:var(--primary)}
.client-service>.small{margin-top:5px}
.debt-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.debt-actions .btn{flex:1;min-width:160px}

@media(min-width:1500px){.content{padding-top:32px}.catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1200px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.today-layout,.workspace-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}}
@media(max-width:1023px){
  .sidebar{display:none}.page{margin-left:0}.topbar{height:60px;padding:7px 24px;min-height:60px}.mobile-brand{display:flex}
  .topbar .date-label,.topbar-left .desktop-label{display:none}.content{padding:20px 24px calc(190px + env(safe-area-inset-bottom,0px));max-width:960px}
  .bottom-nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:calc(var(--nav-height) + env(safe-area-inset-bottom,0px));padding:4px max(8px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));background:#fff;border-top:1px solid #e9ecf2;z-index:50}
  .bottom-nav a{min-width:0;min-height:56px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px;line-height:1.25;font-weight:500;color:#6c7688;border-radius:0;padding:4px 2px;text-align:center}
  .bottom-nav a svg{width:24px;height:24px;stroke-width:1.7}.bottom-nav a.active{color:var(--primary);background:transparent}
  .mobile-order-bar{left:0;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px));padding:12px 24px;gap:12px}
  .cartbar{left:24px;right:24px;bottom:calc(76px + env(safe-area-inset-bottom,0px));border-radius:13px}
  .toast{bottom:calc(190px + env(safe-area-inset-bottom,0px))}
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .catalog-photo{aspect-ratio:1.45}.catalog-photo img{max-height:200px}
  .today-layout,.workspace-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
  .growth-list{display:flex;flex-direction:column}
  .two-col{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:739px){
  .today-layout,.workspace-layout{grid-template-columns:minmax(0,1fr)}
  .today-main,.workspace-primary,.workspace-opportunities{gap:14px}
  .today-card{padding:16px}.today-card h2{margin-bottom:11px}.current-client h2{font-size:23px}
  .workspace-opportunities{margin-top:2px}.workspace-line{grid-template-columns:72px minmax(0,1fr)}
  .catalog-photo{aspect-ratio:1.15}.catalog-photo img{max-height:160px}
}
@media(max-width:520px){
  .topbar{height:auto;min-height:54px;padding:6px 16px;gap:8px;flex-wrap:nowrap}
  .topbar-left{width:auto;flex:1;gap:5px 8px;flex-wrap:wrap;justify-content:flex-start;min-width:0}
  .topbar-right{width:auto;flex:none;gap:4px}.topbar .brand-mark{width:28px;height:28px;font-size:18px}.topbar .brand-name{font-size:18px;letter-spacing:-.4px}
  .topbar .demo{font-size:9px;padding:3px 5px;margin:0}.topbar .sync-status{min-height:44px;padding:5px 6px;font-size:12px;gap:5px}.topbar .sync-status svg{width:18px;height:18px}.topbar .sync-status small{font-size:10px}
  .content{padding:17px 16px calc(214px + env(safe-area-inset-bottom,0px))}
  .page-heading,.mobile-page-heading{margin-bottom:18px;gap:10px}.page-heading h1,.workspace .page-heading h1,.mobile-page-heading h1{font-size:32px}.page-heading p,.mobile-page-heading p{font-size:13px}
  .mobile-page-heading .wordmark{font-size:20px;padding-top:3px}
  .card,.panel-body{padding:16px}.panel-head{padding:16px}.panel-head h2{font-size:18px}
  .today-card{padding:15px}.today-summary>div{padding:0 10px}.today-summary strong{font-size:23px}.today-summary small,.today-summary span{font-size:11px;line-height:1.45}
  .today-task{padding:11px 0}.today-recommendation{grid-template-columns:64px minmax(0,1fr);gap:11px}.today-recommendation .product-thumb{width:64px;height:78px}
  .workspace-tabs{gap:3px;padding:3px;margin-bottom:14px}.workspace-tabs .chip{padding:7px 5px;font-size:12px;min-height:44px}
  .workspace-search-top{gap:8px}.workspace-search-top .search{padding:0 10px}.workspace-search-top>.btn{min-width:44px;padding:9px}
  .workspace .panel-body{padding:14px}.workspace-order>.panel-body{padding:0}.workspace-order>.panel-head{padding:0 0 12px}
  .workspace-line{grid-template-columns:64px minmax(0,1fr);padding:11px;gap:9px 11px;border-radius:12px}
  .workspace-line>.product-thumb{width:64px;height:80px}.workspace-line-info>strong{font-size:14px}.workspace-line-info .product-meta{font-size:11px}
  .workspace-line>.workspace-line-actions{grid-template-columns:minmax(0,1fr) auto 44px;gap:6px}.workspace-line-actions .line-amount{grid-column:2;grid-row:1;padding-bottom:12px;justify-self:end}
  .workspace-line-actions .remove-line{grid-column:3;grid-row:1}.workspace-line-actions .quantity-field{grid-column:1;grid-row:1}
  .workspace-line-actions .price{font-size:13px}.quantity-control{gap:0}.quantity-control .qty-input,.order-category .quantity-control .qty-input{width:44px}
  .workspace-line .quantity-label{font-size:11px}.workspace-line .quantity-field .inline-error{max-width:145px}
  .order-category{padding:0 8px}.order-category .workspace-line{padding:9px}.order-category .workspace-line-actions{grid-template-columns:minmax(0,1fr) 44px}.order-category .workspace-line-actions .remove-line{grid-column:2}.order-category .workspace-line-actions .line-amount{grid-column:1/-1;grid-row:2;padding:0}
  .workspace .info-strip{font-size:12px;margin-bottom:12px}.customer-phone{min-height:44px}
  .growth-card{padding:15px}.growth-card .product-name{font-size:15px}.growth-actions{gap:8px}.growth-actions .btn{padding:9px 11px}
  .catalog-row-actions>.quantity-field{width:auto;margin-left:auto}.catalog-row-actions{gap:8px}
  .mobile-order-bar{padding:11px 16px 12px;display:flex;flex-direction:column;align-items:stretch;gap:9px}
  .mobile-order-summary{width:100%;gap:10px}.mobile-order-summary strong,.mobile-order-summary .price{font-size:20px}.mobile-order-summary small{font-size:11px}
  .mobile-order-bar>.btn{width:100%;min-width:0;min-height:44px;font-size:15px}
  .cartbar{left:12px;right:12px;padding:12px;bottom:calc(75px + env(safe-area-inset-bottom,0px))}.cartbar .btn{font-size:13px}
  .catalog-grid{gap:10px}.catalog-grid .card.product{padding:9px;gap:8px}.catalog-photo{aspect-ratio:auto;height:120px;min-height:120px}.catalog-photo img{max-height:120px;padding:7px}
  .catalog-grid .product-title,.catalog-grid h2,.catalog-grid h3{font-size:13px;line-height:1.4}.catalog-grid .price{font-size:17px}.catalog-grid .product-meta{font-size:10px;line-height:1.4}.catalog-grid .stock-label{font-size:10px;line-height:1.5}.catalog-grid .catalog-add{font-size:12px}
  .debt-summary{padding:16px;margin-bottom:18px}.debt-summary>.debt-total{font-size:32px}.debt-summary>.debt-overdue,.debt-current{padding:12px}.debt-summary .debt-overdue strong,.debt-current strong{font-size:21px}.invoice-card{padding:0}.invoice-row{font-size:13px;padding:14px;gap:8px}.invoice-amount{max-width:120px;font-size:14px}.invoice-info strong{font-size:14px}.invoice-details{padding:0 14px 14px}.debt-actions{gap:10px}.debt-actions .btn{flex-basis:100%}
  .sync-footnote{font-size:11px;line-height:1.5;margin-top:16px}.review-context strong{font-size:17px}.review-actions .btn{font-size:14px}
  .login-story{padding:28px 24px}.login-story h1{font-size:32px;margin-top:25px}.login-form-wrap{padding:28px 24px}.login-form-wrap input{font-size:16px}
}
@media(max-width:359px){
  .workspace-line>.workspace-line-actions{grid-template-columns:minmax(0,1fr) 44px}.workspace-line-actions>.remove-line{grid-column:2}.workspace-line-actions>.line-amount{grid-column:1/-1;grid-row:2;padding:0}
  .catalog-grid .price{font-size:16px}.workspace-tabs .chip{font-size:11px}.today-summary strong{font-size:21px}
}
@media print{.mobile-order-bar,.workspace-tabs,.workspace-search-top,.sync-footnote{display:none!important}.content{padding:0!important}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.card,.panel,.invoice-card{box-shadow:none;break-inside:avoid}}

/* Match the integrated screen markup, including legacy cartbar class reuse. */
.heading-actions{display:flex;gap:10px;flex-wrap:wrap;margin:-4px 0 18px}
.current-client-link{display:block;color:var(--ink);text-decoration:none;margin-top:4px}
.current-client-link p{font-size:14px;color:var(--muted);line-height:1.5}
.current-client .subtle-link,.today-card>a.subtle-link{display:inline-flex;align-items:center;gap:3px;min-height:44px;color:var(--primary)}
.today-card>a.subtle-link{font-size:12px;margin-top:3px}
.today-card .spread h2{margin-bottom:0;font-size:17px}
.today-card .spread:has(.subtle-link){align-items:center}
.today-summary{display:block;padding-top:3px;padding-bottom:3px}
.today-summary-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:72px;padding:12px 0;text-decoration:none;color:var(--ink)}
.today-summary-row+.today-summary-row{border-top:1px solid var(--line)}
.today-summary-row span{margin:0;font-size:12px;line-height:1.4}
.today-summary-row>span:nth-child(2){min-width:0}
.today-summary-row strong{font-size:19px;font-weight:700;letter-spacing:-.3px;line-height:1.3;margin-top:4px;color:var(--ink)}
.today-summary-row small{font-size:12px;margin-top:4px;line-height:1.4;color:var(--ink)}
.today-summary-row .text-link{font-size:12px;color:var(--primary)}
.today-summary-row>svg{width:18px;height:18px;color:#9aa3b3}
.today-summary-row .summary-icon{display:flex;align-items:center;justify-content:center;width:32px;height:36px;border-radius:8px;background:#edf3fd;color:#5c7ba6}
.today-summary-row .summary-icon svg{width:19px;height:19px}
.today-summary-row .debt-icon{background:#fff1f3;color:#c25d6c}
.today-summary-row .overdue-text{color:var(--red);font-size:11px}
.today-task{width:100%;min-height:44px;text-align:left;background:transparent;border:0;border-top:1px solid var(--line);align-items:center;padding:10px 0;gap:11px;line-height:1.45}
.today-task:hover{background:#f8faff}
.today-task .task-check{width:21px;height:21px;border:1.5px solid #b7c2d2;border-radius:5px;flex:none;background:white}
.today-task>span:last-child{min-width:0;overflow-wrap:anywhere}
.today-recommendation{grid-template-columns:64px minmax(0,1fr) auto;gap:10px}
.today-recommendation .btn{padding:9px 4px;margin:0;min-width:44px;background:transparent;border:0;font-size:13px}
.today-recommendation .product-thumb{width:64px;height:80px}
.today-recommendation>div:nth-child(2){min-width:0}
.today-recommendation .small{font-size:11px}
.today-recommendation h3{margin:4px 0 5px;font-size:14px}
.sync-footnote{text-decoration:none;min-height:44px;align-items:center;margin-top:0;flex-wrap:wrap}
.sync-footnote svg{margin-top:0}
.workspace-utility{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:-7px 0 8px}
.workspace-utility .subtle-link{display:inline-flex;align-items:center;gap:4px;min-height:44px;color:var(--primary);font-size:12px}
.workspace-utility svg{width:16px;height:16px}
.unit-price{font-size:18px;font-weight:700;line-height:1.3;margin:5px 0;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.2px}
.workspace-order-intro{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 10px;margin-bottom:12px}
.workspace-order-intro>p{grid-column:1/-1;margin:0;font-size:12px;line-height:1.5}
.workspace-order-intro>.field-label{margin:0;font-size:12px;font-weight:500;color:var(--muted)}
.workspace-order-intro .select{width:100%;max-width:none;min-height:44px;font-size:14px;padding:8px 10px;background:transparent;border-color:var(--line)}
.workspace-more>summary,.catalog-context>summary{display:list-item;align-content:center;min-height:48px;padding:12px 16px;font-size:14px;line-height:1.5;font-weight:600;cursor:pointer}
.workspace-more[open]>summary{border-bottom:1px solid var(--line)}
.catalog-context{margin:-4px 0 12px}
.catalog-context>summary{padding:8px 0;color:var(--primary);font-size:13px;min-height:44px}
.catalog-context>.select{margin:4px 0 8px}
.catalog-count{margin:-5px 0 14px;font-size:12px}
.catalog-result-list{border:0;background:transparent;overflow:visible;box-shadow:none}
.catalog-result-list .workspace-line{margin-top:10px}
.workspace-search-panel .catalog-row-actions{justify-content:flex-end}
.catalog-photo>.product-thumb{width:100%;height:100%;border-radius:8px;background:transparent}
.catalog-grid .card.product>.spread{margin-top:auto;align-items:center;flex-wrap:nowrap;gap:7px}
.catalog-grid .catalog-add{width:44px;height:44px;min-width:44px;margin:0;padding:0;flex:none;color:var(--primary);border:1px solid #deebff;background:var(--soft)}
.catalog-grid .stock-label{min-width:0}
.product-thumb{position:relative}
.product-thumb svg.demo-product-art{width:100%;height:100%;max-width:160px;max-height:160px;stroke:none;fill:none;padding:5px}
.demo-art-label{position:absolute;right:4px;bottom:2px;font-size:9px;line-height:1.3;color:#66748a;background:#ffffffd9;border-radius:3px;padding:1px 3px;pointer-events:none}
.thumbnail-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px;color:var(--muted);text-align:center}
.thumbnail-placeholder svg{width:29px;height:29px}.thumbnail-placeholder small{font-size:11px}
.mode-growth .workspace-layout{grid-template-columns:minmax(0,1fr)}
.mode-growth .workspace-opportunities:empty{display:none}
.mode-growth .growth-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.cartbar.mobile-order-bar{left:var(--sidebar-width);right:0;bottom:0;max-width:none;margin:0;padding:12px 28px max(12px,env(safe-area-inset-bottom,0px));border:0;border-top:1px solid var(--line);border-radius:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 20px;background:#fff;box-shadow:0 -3px 14px #152b4a06}
.cartbar.mobile-order-bar>.mobile-order-summary{grid-column:1;grid-row:1;width:100%;justify-content:flex-start;gap:20px}
.cartbar.mobile-order-bar>.btn{grid-column:2;grid-row:1/3;width:auto;min-width:200px;min-height:46px;margin:0;padding:10px 16px;font-size:15px;align-self:center}
.cartbar.mobile-order-bar>small{grid-column:1;grid-row:2;display:block;font-size:11px;color:var(--muted);line-height:1.4;margin:0;overflow-wrap:anywhere}
@media(min-width:1024px){.mode-routine .workspace-opportunities,.mode-catalog .workspace-opportunities{display:flex}}
@media(max-width:1023px){
  .cartbar.mobile-order-bar{left:0;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px));padding:12px 24px}
  .topbar .subtle-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px}
}
@media(max-width:739px){
  .today-clients,.workspace-opportunities.mobile-tab-hidden{display:none}
  .mode-growth .growth-list{grid-template-columns:minmax(0,1fr)}
  .today-layout{display:block}.today-main{gap:12px}
  .topbar .subtle-link{display:none}
  .workspace-order>.panel-head{align-items:center;padding-bottom:8px;gap:8px}
  .workspace-order>.panel-head>div{min-width:0;flex:1}.workspace-order>.panel-head h2{display:none}.workspace-order>.panel-head p{margin:0;font-size:12px}
  .workspace-order>.panel-head .badge{font-size:10px}
}
@media(max-width:520px){
  .topbar{min-height:48px;padding:2px 16px;justify-content:space-between;gap:8px}.topbar-right .sync-status{font-size:11px;padding:6px;min-height:44px}
  .topbar .demo{font-size:9px}.content{padding-top:10px}
  .today-summary{padding:2px 15px}.today-summary-row{min-height:70px;padding:11px 0}.today-summary-row strong{font-size:18px}
  .today-card .spread h2{font-size:16px}.today-recommendation{grid-template-columns:60px minmax(0,1fr) auto;gap:9px}.today-recommendation .product-thumb{width:60px;height:76px}
  .current-client h2{font-size:22px}.current-client .btn{margin-top:13px}
  .workspace-order-intro .select{font-size:16px}.workspace-order-intro>p{font-size:11px}.workspace-order-intro>.field-label{font-size:11px}
  .workspace-more>summary{font-size:13px;padding:13px 14px}.workspace-utility{margin-top:-8px;margin-bottom:5px}.workspace-utility .subtle-link{font-size:11px}
  .workspace-line>.workspace-line-info .last-shipment{font-size:10px}.workspace-line-info .unit-price{font-size:18px}
  .cartbar.mobile-order-bar{padding:10px 16px 9px;display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
  .cartbar.mobile-order-bar>.mobile-order-summary{grid-column:1;grid-row:1;justify-content:space-between;gap:10px;font-size:13px}
  .cartbar.mobile-order-bar>.btn{grid-column:1;grid-row:2;width:100%;min-width:0;min-height:44px;padding:10px;font-size:15px}
  .cartbar.mobile-order-bar>small{grid-column:1;grid-row:3;font-size:10px;line-height:1.35;text-align:center}
  .review-line{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:center}.review-line>.product-thumb{grid-column:1;grid-row:1;width:64px;height:80px}.review-line>.workspace-line-info{grid-column:2;grid-row:1}.review-line>.workspace-line-actions,.review-line>.replenishment-hint{grid-column:1/-1;max-width:100%}
}

/* Mobile density correction after the actual 390 px screenshots. */
.workspace-tabs .chip.active{background:var(--primary);color:#fff;box-shadow:none}
.debt-summary>.debt-overdue{flex-direction:column;align-items:flex-start;gap:6px;padding:14px;font-size:14px;background:#fff0f2}
.debt-summary .debt-overdue strong{font-size:28px;font-weight:750;text-align:left;line-height:1.2}
@media(max-width:739px){
  .mode-routine .workspace-order>.panel-head{display:none}
  .mode-routine .workspace-line{grid-template-columns:72px minmax(0,1fr);gap:8px;padding:10px;margin-bottom:9px;align-items:start}
  .mode-routine .workspace-line>.product-thumb{grid-column:1;grid-row:1/3;width:72px;height:86px;align-self:start}
  .mode-routine .workspace-line>.workspace-line-info{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 5px;align-self:start}
  .mode-routine .workspace-line-info>strong{grid-column:1/-1;font-size:14px;line-height:1.3}
  .mode-routine .workspace-line-info>.stock-label{grid-column:2;grid-row:2;margin:0;font-size:10px;line-height:1.35;justify-self:end;gap:3px}
  .mode-routine .workspace-line-info>.unit-price{grid-column:1;grid-row:2;margin:0;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
  .mode-routine .workspace-line-info>.product-meta{grid-column:1/-1;margin:0;font-size:10px;line-height:1.35;gap:2px 7px}
  .mode-routine .workspace-line-info>.inline-error,.mode-routine .workspace-line-info>.review-new{grid-column:1/-1}
  .mode-routine .workspace-line .last-shipment{display:none}
  .mode-routine .workspace-line>.workspace-line-actions{grid-column:2;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:start}
  .mode-routine .workspace-line-actions>.quantity-field{grid-column:1;grid-row:1;position:relative;min-width:0}
  .mode-routine .workspace-line .quantity-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
  .mode-routine .workspace-line .quantity-control{gap:0;max-width:100%}
  .mode-routine .workspace-line .quantity-step{width:44px;min-width:44px;height:44px}
  .mode-routine .workspace-line .quantity-control .qty-input{width:44px;min-height:44px}
  .mode-routine .workspace-line-actions>.line-amount{display:none}
  .mode-routine .workspace-line-actions>.remove-line{grid-column:2;grid-row:1;align-self:start;width:44px;height:44px;min-width:44px;min-height:44px}
  .mode-routine .workspace-line>.replenishment-hint{grid-column:1/-1;grid-row:3;margin:0}
  .mode-routine .workspace-line .replenishment-hint>summary{font-size:11px;line-height:1.4;min-height:44px}
  .mode-routine .workspace-line .quantity-field .inline-error{max-width:100%;font-size:11px;line-height:1.4}
  .workspace-search-top>button[data-action="barcode"]{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;font-size:0;gap:0}
  .workspace-search-top>button[data-action="barcode"] svg{width:20px;height:20px}
}
@media(max-width:520px){
  .topbar{height:44px;min-height:44px;padding:0 16px}
  .customer-content>.mobile-page-heading{margin-bottom:8px}
  .workspace-utility{margin:-2px 0 2px;gap:5px}
  .workspace-search-top{margin-bottom:10px}
  .workspace-tabs{margin-bottom:10px}
}

/* Catalog correction from catalog-390.png: compact cards and a distinct add action. */
.catalog-grid .catalog-add{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;background:var(--primary);border-color:var(--primary);color:#fff}
.catalog-grid .catalog-add:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}
.catalog-grid .catalog-add:disabled{background:#e9edf3;border-color:#e9edf3;color:#8a94a3;opacity:1}
.catalog-grid .product-title{font-size:14px;font-weight:500;line-height:1.4;min-height:2.8em;max-height:2.8em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.catalog-context~.chips .chip.active,.workspace-search-panel>.chips .chip.active{background:var(--primary);border-color:var(--primary);color:#fff}
@media(max-width:520px){
  .catalog-context~.chips,.workspace-search-panel>.chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:14px}
  .catalog-context~.chips .chip,.workspace-search-panel>.chips .chip{min-width:0;min-height:44px;height:auto;padding:6px;font-size:11px;line-height:1.3;letter-spacing:-.1px;white-space:normal;overflow-wrap:anywhere;hyphens:auto}
  .catalog-grid .card.product{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:120px auto auto auto;gap:6px 8px;align-content:start}
  .catalog-grid .catalog-photo{grid-column:1/-1;grid-row:1;height:120px;min-height:120px}
  .catalog-grid .product-title{grid-column:1/-1;grid-row:2;font-size:14px;font-weight:500;line-height:1.4}
  .catalog-grid .product-meta{display:none}
  .catalog-grid .card.product>.price{grid-column:1;grid-row:3;align-self:end;margin:0;font-size:17px;line-height:1.3}
  .catalog-grid .card.product>.spread{display:contents}
  .catalog-grid .stock-label{grid-column:1;grid-row:4;align-self:start;font-size:10px;line-height:1.4}
  .catalog-grid .catalog-add{grid-column:2;grid-row:3/5;align-self:center;justify-self:end}
}

/* Final Today-only mobile adjustment; other pages and navigation are unchanged. */
@media(max-width:520px){
  .today-layout .today-main{gap:10px}
  .today-layout .today-card{padding:12px}
  .today-layout .current-client>.spread{margin-top:-6px;margin-bottom:-4px;gap:6px;min-height:44px}
  .today-layout .current-client .subtle-link{min-height:44px}
  .today-layout .current-client-link{margin-top:0}
  .today-layout .current-client h2{font-size:21px;line-height:1.2;margin:0 0 3px;letter-spacing:-.4px}
  .today-layout .current-client-link p{font-size:13px;line-height:1.4}
  .today-layout .current-client>.btn{min-height:44px;margin-top:8px;padding:10px 12px}
  .today-layout .today-summary{padding:0 12px}
  .today-layout .today-summary-row{min-height:64px;padding:6px 0;gap:9px}
  .today-layout .today-summary-row span{font-size:11px;line-height:1.3}
  .today-layout .today-summary-row strong{font-size:18px;line-height:1.2;margin-top:2px}
  .today-layout .today-summary-row small{font-size:11px;line-height:1.3;margin-top:2px}
  .today-layout .today-summary-row .text-link{font-size:11px}
  .today-layout .today-card .spread h2{font-size:15px;line-height:1.4;margin:0}
  .today-layout .today-task{min-height:44px;padding:6px 0;gap:9px;font-size:13px;line-height:1.4}
  .today-layout .today-task:first-of-type{padding-top:6px}
  .today-layout .today-card>a.subtle-link{min-height:44px;margin-top:0;padding:0;font-size:11px}
  .today-layout .today-recommendation{grid-template-columns:52px minmax(0,1fr) auto;gap:8px;align-items:center}
  .today-layout .today-recommendation .product-thumb{width:52px;height:62px}
  .today-layout .today-recommendation h3{font-size:13px;line-height:1.3;margin:2px 0 3px}
  .today-layout .today-recommendation .small{font-size:11px;line-height:1.3}
  .today-layout .today-recommendation p.small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .today-layout .today-recommendation .btn{min-width:44px;min-height:44px;padding:8px 3px;font-size:12px}
}

/* Sales V2 uses the same shell while keeping context, unknown data and decisions visible. */
.sales-v2{--sales-blue:#007aff;--sales-link:#005fcf;font-size:16px;min-width:0;max-width:100%;line-height:1.45}
.sales-v2 a{color:var(--sales-link)}
.sales-v2 .btn.primary{background:var(--sales-blue);border-color:var(--sales-blue);color:#fff;font-size:19px;font-weight:700;line-height:1.25}
.sales-v2 .btn,.sales-v2 .select,.sales-v2 input.field{min-height:44px}
.sales-v2 .btn:focus-visible,.sales-v2 a:focus-visible,.sales-v2 input:focus-visible,.sales-v2 select:focus-visible,.sales-v2 summary:focus-visible{outline:3px solid var(--sales-blue);outline-offset:3px}
.sales-v2 .btn:disabled{opacity:.5}
.sales-v2 .page-heading{margin-bottom:16px}.sales-v2 .page-heading h1{font-size:32px}
.sales-context{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:7px 12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:0 0 16px;box-shadow:var(--shadow)}
.sales-context>div{min-width:0;flex:1}.sales-context strong{font-size:17px;line-height:1.35;display:block;overflow-wrap:anywhere}.sales-context p{font-size:12px;color:#5d6a7c;margin-top:3px;overflow-wrap:anywhere}.sales-context>small{width:100%;font-size:11px;color:var(--muted)}
.sales-context-change,.sales-back,.sales-inline-link{min-height:44px;display:inline-flex;align-items:center;gap:5px;font-size:13px;line-height:1.4;text-decoration:none}.sales-back{margin:-4px 0 12px}.sales-context-empty{margin-bottom:16px}
.sales-section{margin-top:18px}.sales-v2 h2{font-size:19px;line-height:1.35;margin-bottom:10px;overflow-wrap:anywhere}
.sales-today-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px}.sales-history-link{display:flex;flex-direction:column;margin-top:8px}.sales-history-link>a{display:flex;align-items:center;min-height:44px}.sales-history-link>span{font-size:13px;color:var(--muted)}
.sales-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.sales-counters .btn{font-size:13px;padding:10px 6px;background:#edf4ff;border-color:#dce9fb;color:var(--sales-link)}
.sales-help{font-size:12px;line-height:1.5;color:#5c6b80;margin:6px 0;overflow-wrap:anywhere}.sales-origin{font-size:11px;color:#5c6b80;margin-top:5px}.sales-big-number{display:block;font-size:32px;font-weight:750;letter-spacing:-.6px;line-height:1.25;margin:8px 0 14px;overflow-wrap:anywhere}.sales-big-number small{font-size:14px;font-weight:400}
.sales-overdue{color:var(--red);font-size:14px;margin-bottom:12px}.sales-empty{padding:24px 16px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--muted);text-align:center}.sales-empty h2{color:var(--ink);font-size:18px}.sales-empty p{font-size:14px;line-height:1.5}
.sales-customer-list{display:grid;gap:10px;margin-top:14px}.sales-customer-list>.card{display:flex;align-items:center;justify-content:space-between;gap:12px}.sales-customer-list>.card>div{min-width:0}.sales-customer-list h2{font-size:16px;margin:0 0 5px}.sales-customer-list .btn{flex:none}
.sales-task{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.sales-task>div{min-width:0}.sales-task strong{font-size:15px;line-height:1.4}.sales-task p{font-size:12px;color:var(--muted);margin-top:4px}.sales-task .btn{font-size:13px;flex:none}
.sales-search{display:flex;gap:8px;margin:0 0 8px;align-items:center}.sales-search .search{flex:1;min-width:0}.sales-search .btn{font-size:13px;padding:10px;flex:none}.sales-search input{font-size:16px}
.sales-filters{padding:0 0 8px}.sales-filters>summary,.sales-order-conditions>summary,.sales-form details>summary{min-height:44px;align-content:center;cursor:pointer;font-size:13px;line-height:1.4;color:var(--sales-link)}.sales-filters[open]{display:flex;gap:10px;flex-wrap:wrap}.sales-filters>summary{width:100%}.sales-filters label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:170px;font-size:12px}.sales-filters .select{width:100%;font-size:16px}
.sales-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:12px;padding:4px;border-radius:11px;background:#e9edf4}.sales-tabs .chip{padding:7px 4px;min-width:0;border:0;font-size:12px;line-height:1.3;overflow-wrap:normal;word-break:normal;hyphens:none}.sales-tabs .chip.active{background:#0062d8;color:#fff;border-color:#0062d8}
.sales-result-count{font-size:12px;color:var(--muted);margin:8px 0}.sales-results,.sales-review-lines,.sales-recommendations{display:grid;gap:10px}.sales-results.with-photos{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
.sales-product-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.65fr);gap:12px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);min-width:0}.sales-product-row.has-photo{grid-template-columns:72px minmax(0,1fr) minmax(220px,.65fr)}
.sales-product-row>.product-thumb{width:72px;height:90px;align-self:start}.sales-product-info{min-width:0}.sales-product-name{display:block;font-size:16px;font-weight:650;line-height:1.35;color:var(--ink)!important;overflow-wrap:anywhere}
.sales-sku{font-size:11px;color:var(--muted);margin:4px 0}.sales-specs{display:flex;gap:4px 12px;flex-wrap:wrap;font-size:12px;line-height:1.4;margin:6px 0;color:#536178;overflow-wrap:anywhere}.sales-specs strong{font-weight:600;color:var(--ink)}
.sales-stock{display:flex;align-items:flex-start;gap:5px;font-size:12px;line-height:1.4;margin-top:6px;color:#5e6c80}.sales-stock svg{width:15px;height:15px;flex:none;margin-top:1px}.sales-stock.available{color:#237442}
.sales-unit-price{font-size:19px;font-weight:700;line-height:1.25;margin-top:7px;font-variant-numeric:tabular-nums}.sales-unit-price small{font-size:12px;font-weight:400;color:var(--muted)}.sales-promo{font-size:12px;line-height:1.5;color:#215da9;background:#edf4ff;padding:7px 9px;border-radius:8px;margin-top:7px}
.sales-product-actions{display:flex;align-items:center;justify-content:flex-start;gap:6px 10px;flex-wrap:wrap;min-width:0;align-content:start}.sales-product-actions>.btn.primary{font-size:19px}.sales-product-actions>.sales-inline-link{font-size:12px}.sales-quantity{flex:1 0 100%;display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}.sales-quantity .quantity-control{flex:none}.sales-quantity .qty-input{width:44px;font-size:16px}.sales-quantity .quantity-step{width:44px;min-width:44px;height:44px;padding:0;font-size:23px;font-weight:400;background:#f5f8fc;border:0}.sales-quantity .sales-unit{flex:1;min-width:110px;max-width:100%;font-size:14px;padding:8px}.sales-quantity .inline-error,.sales-quantity .sales-help{flex:1 0 100%;margin:0}.sales-quantity .inline-error:empty{display:none}
.sales-line-total{font-size:14px;flex:1;font-variant-numeric:tabular-nums}.sales-product-actions>.text-btn{font-size:12px}.sales-reason{margin-top:7px}.sales-reason>summary{font-size:12px;line-height:1.45;min-height:44px;align-content:center;cursor:pointer;color:var(--sales-link)}.sales-reason>p{font-size:12px;color:var(--muted);line-height:1.5;margin:6px 0}.sales-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.with-photos .sales-product-row{display:flex;flex-direction:column}.with-photos .sales-product-row>.product-thumb{width:100%;height:150px}.with-photos .sales-product-actions{margin-top:auto;padding-top:7px}.sales-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;font-size:12px}.sales-pagination .btn{font-size:13px}
.sales-issues{padding:10px 12px 10px 29px;background:var(--red-bg);border:1px solid #efd1d7;border-radius:10px;color:var(--red);font-size:13px;line-height:1.5;margin:12px 0}.sales-issues li+li{margin-top:6px}
.sales-order-conditions{margin-top:16px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:white}.sales-order-conditions p{font-size:13px;line-height:1.5;margin:7px 0}.sales-secondary{display:flex;gap:8px 18px;flex-wrap:wrap;margin-top:16px}.sales-secondary>a{min-height:44px;display:inline-flex;align-items:center;font-size:13px}
.sales-order-bar{position:fixed;z-index:40;left:var(--sidebar-width);right:0;bottom:0;padding:12px 28px max(12px,env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line);box-shadow:0 -3px 14px #152b4a06;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 20px}.sales-order-bar>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.sales-order-bar>div>span{font-size:13px}.sales-order-bar strong{font-size:22px;font-variant-numeric:tabular-nums;line-height:1.3;white-space:nowrap}.sales-order-bar>.btn{grid-column:2;grid-row:1/3;min-width:200px;align-self:center}.sales-order-bar>small{grid-column:1;font-size:10px;color:var(--muted);line-height:1.4}.sales-content:has(.sales-order-bar){padding-bottom:190px}
.sales-review-total{margin-top:16px}.sales-review-total>.spread>strong{font-size:24px}.sales-review-total>p{margin:8px 0}.sales-review-total .sales-form-actions .btn{width:100%}
.sales-history-order{margin-top:12px}.sales-history-order h2{font-size:16px}.sales-history-order li{font-size:14px;line-height:1.5;margin:7px 0}.sales-history-order ul{padding-left:20px}
.sales-detail{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(0,1fr);gap:22px}.sales-detail>.product-thumb{width:100%;height:240px}.sales-detail>.product-gallery{width:100%}.sales-detail>div{min-width:0}.sales-detail p{font-size:14px;line-height:1.6}.sales-detail .sales-product-row{grid-template-columns:minmax(0,1fr);margin-top:15px;box-shadow:none}.sales-facts{margin:12px 0}.sales-facts>div{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:7px 0;border-bottom:1px solid var(--line)}.sales-facts dd{margin:0;font-weight:600;text-align:right}
.sales-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:14px;margin:14px 0}.sales-compare h2{font-size:17px;margin-top:10px}.sales-compare .btn{margin-top:12px;width:100%}.sales-compare>.card>p{font-size:13px;line-height:1.5;margin:8px 0}
.sales-debt-summary>p{font-size:13px;color:var(--muted)}.sales-debt-overdue{display:flex;flex-direction:column;gap:5px;background:var(--red-bg);color:var(--red);border-radius:11px;padding:14px;margin:12px 0}.sales-debt-overdue>span{font-size:14px}.sales-debt-overdue>strong{font-size:28px;line-height:1.3;letter-spacing:-.4px}.sales-debt-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.sales-debt-actions .btn{flex:1;font-size:14px}
.sales-invoice{border-top:1px solid var(--line)}.sales-invoice>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:66px;cursor:pointer;list-style:none;font-size:14px;padding:10px 0}.sales-invoice>summary::-webkit-details-marker{display:none}.sales-invoice>summary span{display:flex;flex-direction:column;gap:4px}.sales-invoice small{font-size:12px;color:var(--muted)}.sales-invoice>p{font-size:13px;margin-bottom:10px}.sales-payment{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:12px 0;font-size:14px}.sales-activity{padding:12px 0;border-top:1px solid var(--line)}.sales-activity>p{font-size:13px;line-height:1.5;margin-top:4px}
.sales-form{max-width:720px;margin-top:12px}.sales-form h2{font-size:19px}.sales-form .field-label{font-size:14px}.sales-form textarea{resize:vertical;min-height:96px;font-size:16px}.sales-form .field,.sales-form .select{font-size:16px}.sales-form details{margin:12px 0}.sales-form details[open]{padding-bottom:10px}.sales-form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.sales-form-actions .sales-back{margin:0}.sales-form .check-label{font-size:14px;min-height:44px}.sales-form .check-label input{width:24px;height:24px;min-width:24px;margin-top:0}.sales-form .check-label{align-items:center}
.sales-exceptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.sales-exceptions h2{font-size:18px}.sales-exceptions p{font-size:14px;margin:7px 0}.sales-exceptions .btn{margin-top:8px}
.sales-row-more{margin-left:auto;position:relative;min-width:44px}.sales-row-more>summary{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;cursor:pointer;font-size:12px;color:var(--sales-link);list-style:none}.sales-row-more>summary::-webkit-details-marker{display:none}.sales-row-more[open]{flex:1 0 100%;border-top:1px solid var(--line)}.sales-row-more[open]>summary{justify-content:flex-start}.sales-row-more>div{display:flex;gap:8px 16px;flex-wrap:wrap}.sales-draft-options>.field-label{margin-top:10px}.sales-draft-options>.field,.sales-draft-options>.select{font-size:16px}
.sales-saved-orders{display:grid;gap:14px;margin-top:16px}.sales-saved-order .spread{flex-wrap:wrap}.sales-saved-order h2{font-size:18px;margin:0}.sales-saved-order>.spread>strong{font-size:20px}.sales-saved-order .badge{white-space:normal;line-height:1.4}.sales-saved-lines>summary{min-height:44px;align-content:center;cursor:pointer;font-size:14px;color:var(--sales-link)}.sales-saved-lines ul{padding-left:18px;margin:0}.sales-saved-lines li{font-size:14px;line-height:1.5;margin:10px 0}.sales-saved-lines li>span{display:block;font-size:13px;color:var(--muted)}
@media(max-width:1023px){.sales-order-bar{left:0;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px));padding:12px 24px}.sales-content:has(.sales-order-bar){padding-bottom:calc(225px + env(safe-area-inset-bottom,0px))}.sales-product-row{grid-template-columns:minmax(0,1fr)}.sales-product-row.has-photo{grid-template-columns:72px minmax(0,1fr)}.sales-product-row.has-photo>.sales-product-actions{grid-column:1/-1}.sales-detail{grid-template-columns:minmax(0,1fr)}.sales-detail>.product-thumb{height:200px}.sales-exceptions{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.sales-today-grid{grid-template-columns:minmax(0,1fr)}.sales-v2 .page-heading h1{font-size:30px}.sales-context{padding:12px;gap:5px 9px}.sales-context strong{font-size:16px}.sales-context-change{font-size:12px}.sales-counters{gap:5px}.sales-counters .btn{font-size:12px}.sales-product-row{padding:12px;gap:10px}.sales-product-info .sales-specs{font-size:12px}.sales-tabs{gap:3px;padding:3px}.sales-tabs .chip{font-size:11px;min-height:44px}.sales-search .btn{font-size:12px;padding:9px}.sales-quantity .sales-unit{font-size:16px}.sales-product-actions>.sales-inline-link{font-size:12px}.sales-order-bar{padding:10px 16px 9px;grid-template-columns:minmax(0,1fr);gap:7px}.sales-order-bar>.btn{grid-column:1;grid-row:2;width:100%;min-width:0;font-size:19px}.sales-order-bar>small{grid-column:1;grid-row:3;font-size:10px}.sales-order-bar>div>span{font-size:12px}.sales-order-bar strong{font-size:21px}.sales-debt-actions{flex-direction:column}.sales-debt-actions .btn{width:100%}.sales-task{align-items:flex-start}.sales-task .btn{font-size:12px;padding:10px}.sales-form-actions{flex-wrap:wrap}.sales-form-actions>.btn.primary{flex:1;min-width:180px}.sales-pagination .btn{font-size:12px;padding:9px}.sales-big-number{font-size:30px}.sales-form{padding:16px}}
@media print{.sales-order-bar,.sales-search,.sales-tabs,.sales-pagination,.sales-context-change,.sales-form-actions{display:none!important}.sales-v2{font-size:12pt}.sales-product-row{break-inside:avoid;box-shadow:none}}

/* V2 browser audit: full touch targets for product names and the page brand. */
.sales-v2 .sales-product-name,.sales-v2 .wordmark{display:flex;align-items:center;min-height:44px;min-width:44px}

/* UX11: readable compact workspaces; commercial facts stay visible, auxiliary actions disclose. */
.nav a.active{color:#005fcf;background:#edf4ff}
.sales-v2 .sales-help,.sales-v2 .sales-sku,.sales-v2 .sales-stock,.sales-v2 .sales-specs,
.sales-v2 .sales-result-count,.sales-v2 .sales-promo,.sales-v2 .sales-origin,
.sales-v2 .sales-task p,.sales-v2 .sales-context p,.sales-v2 .sales-context>small,
.sales-v2 .sales-invoice small,.sales-v2 .sales-reason>summary,.sales-v2 .sales-reason>p{font-size:13px;line-height:1.4}
.sales-v2 .sales-tabs .chip,.sales-v2 .sales-filters label,.sales-v2 .sales-counters .btn{font-size:13px}
.sales-v2 .sales-context-change,.sales-v2 .sales-row-more>summary{font-size:14px}
.sales-v2 details>summary{min-height:44px;align-content:center;cursor:pointer;overflow-wrap:anywhere}
.sales-v2 .sales-context-compact{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px;padding:4px 10px;margin-bottom:8px}
.sales-context-compact>details{min-width:0}
.sales-context-compact>details>summary{min-height:44px;padding-right:10px;list-style:none;position:relative}
.sales-context-compact>details>summary::-webkit-details-marker{display:none}
.sales-context-compact>details>summary::after{content:'⌄';position:absolute;right:0;top:10px;color:#526176}
.sales-context-compact>details[open]>summary::after{content:'⌃'}
.sales-context-compact strong{font-size:16px;line-height:1.35}
.sales-context-compact summary>span{display:block;font-size:13px;line-height:1.4;color:#526176}
.sales-context-compact details>div{padding:2px 0 8px}.sales-context-compact details p{margin:3px 0}
.sales-v2 .sales-product-name{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;font-size:16px;line-height:1.35;min-height:44px;gap:0}
.sales-v2 .sales-product-name .sales-sku{font-weight:400;margin:0;color:#536178}
.sales-v2 .sales-specs{gap:1px 10px;margin:2px 0}.sales-v2 .sales-specs:empty{display:none}
.sales-v2 .sales-stock{margin:2px 0}.sales-v2 .sales-stock svg{width:16px;height:16px}
.sales-pricing{display:flex;justify-content:space-between;align-items:baseline;gap:6px 12px;flex-wrap:wrap;margin:3px 0}
.sales-pricing .sales-unit-price{margin:0;font-size:19px;line-height:1.3}
.sales-pricing .sales-unit-price small{font-size:13px}
.sales-pricing .sales-line-total{font-size:14px;line-height:1.4;flex:0 1 auto;text-align:right}
.sales-v2 .sales-product-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:start}
.sales-v2 .sales-quantity{display:grid;grid-template-columns:134px minmax(0,1fr);gap:2px 8px;margin:0;min-width:0}
.sales-v2 .sales-quantity .sales-unit{min-width:0;width:100%;font-size:16px;padding:6px;max-width:100%}
.sales-v2 .sales-unit-label{font-size:14px;align-self:center;overflow-wrap:anywhere}
.sales-v2 .sales-quantity .inline-error,.sales-v2 .sales-quantity .sales-help{grid-column:1/-1;font-size:13px;margin:0;line-height:1.4}
.sales-v2 .sales-row-more{margin:0;min-width:44px}
.sales-v2 .sales-row-more[open]{grid-column:1/-1;width:100%;padding-top:4px}
.sales-v2 .sales-row-more>div{padding-bottom:4px}.sales-v2 .sales-row-more .sales-origin{flex-basis:100%}
.sales-v2 .sales-product-row>.sales-promo,.sales-v2 .sales-product-row>.sales-reason,.sales-v2 .sales-unavailable-actions{grid-column:1/-1}
.sales-v2 .sales-promo{padding:3px 6px;margin:1px 0 0}
.sales-v2 .sales-reason{margin:0}
.sales-unavailable-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.sales-unavailable-actions>.btn{flex:1;font-size:14px;padding:8px;min-width:130px}
.sales-unavailable-actions>.sales-help{flex-basis:100%;margin:0}
.sales-workspace .page-heading{margin-bottom:6px}.sales-workspace .page-heading p:empty{display:none}
.sales-workspace .sales-context-compact{padding:0 10px;margin-bottom:6px}
.sales-workspace .sales-context-compact>details>summary{display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;padding-right:14px;min-height:44px}
.sales-workspace .sales-search-controls{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:6px;align-items:start;margin-bottom:4px}
.sales-workspace .sales-search{margin:0;gap:6px}
.sales-workspace .sales-search .btn{width:44px;min-width:44px;padding:0;gap:0;font-size:0}
.sales-workspace .sales-search .btn svg{width:20px;height:20px}
.sales-workspace .sales-filters{padding:0;min-width:0}
.sales-workspace .sales-filters>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px;list-style:none}
.sales-workspace .sales-filters>summary::-webkit-details-marker{display:none}
.sales-workspace .sales-search-controls:has(.sales-filters[open]) .sales-search,
.sales-workspace .sales-filters[open]{grid-column:1/-1}
.sales-workspace .sales-filters[open]{display:flex;padding:0 0 6px}
.sales-workspace .sales-filters[open]>.btn{font-size:14px}
.sales-workspace .sales-tabs{margin-bottom:3px;padding:2px;gap:3px}
.sales-workspace .sales-tabs .chip{padding:5px 2px;min-height:44px}
.sales-workspace .sales-result-count{margin:3px 0}
.sales-workspace .sales-results{gap:8px}
.sales-workspace .sales-product-row{padding:8px 10px;gap:4px 12px}
.sales-workspace .sales-product-row:not(.has-photo){grid-template-columns:minmax(0,1fr) minmax(280px,.8fr)}
.sales-workspace .sales-product-row>.sales-product-actions{align-self:center}
.sales-workspace .sales-results.with-photos .sales-product-row{display:grid;grid-template-columns:minmax(0,1fr)}
.sales-workspace .sales-results.with-photos .sales-product-row>.product-thumb{height:120px;width:100%}
.sales-workspace .sales-results.with-photos .sales-product-actions{padding:0;margin:0}
.sales-workspace .sales-order-bar{padding-top:6px;padding-bottom:6px;gap:4px 12px}
.sales-workspace .sales-order-bar>small{font-size:13px;line-height:1.3}
.sales-task-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.sales-today-prepare{padding:12px}.sales-today-prepare .sales-counters{margin-top:8px}
.sales-today-growth{margin-top:14px}.sales-growth-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:10px 12px}
.sales-growth-preview .sales-product-name{min-height:44px;font-size:16px}
.sales-growth-argument{font-size:14px;line-height:1.4;color:#40536d;margin:2px 0}
.sales-growth-preview>.btn{align-self:center;font-size:16px!important;min-height:44px}
.sales-growth-preview>.sales-reason{grid-column:1/-1}
.sales-today-finance{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px}
.sales-today-finance h2{font-size:16px;margin:0}.sales-today-finance strong{font-size:22px}.sales-today-finance .sales-overdue{margin:2px 0}
.sales-today-finance>.sales-help{grid-column:1/-1;margin:0}.sales-today-finance>.btn{align-self:center;font-size:14px}
.sales-today-history>summary,.sales-debt-workspace details.card>summary{font-size:16px;line-height:1.4;color:#005fcf}
.sales-debt-workspace .page-heading{margin-bottom:6px}
.sales-debt-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:12px}
.sales-debt-summary .sales-big-number{font-size:28px;line-height:1.2;margin:3px 0}
.sales-debt-summary .sales-debt-overdue{margin:0;padding:8px}.sales-debt-summary .sales-debt-overdue>span{font-size:13px}
.sales-debt-summary .sales-debt-overdue>strong{font-size:26px}.sales-debt-summary>.sales-help{grid-column:1/-1;margin:0}
.sales-debt-workspace .sales-section{margin-top:10px;padding:10px 12px}
.sales-debt-workspace h2{font-size:16px;margin-bottom:4px}
.sales-debt-workspace .sales-invoice>summary{min-height:54px;padding:6px 0}
.sales-debt-workspace .sales-nearest-promise .sales-activity{padding:0;border:0}
.sales-debt-workspace .sales-nearest-promise .sales-activity>strong{display:none}
.sales-debt-workspace .sales-debt-actions{margin:10px 0}.sales-debt-secondary .sales-debt-actions{margin:0}
@media(max-width:1023px){
  .sales-workspace .sales-product-row:not(.has-photo){grid-template-columns:minmax(0,1fr)}
  .sales-workspace .sales-product-row.has-photo{grid-template-columns:64px minmax(0,1fr)}
  .sales-workspace .sales-product-row.has-photo>.product-thumb{width:64px;height:80px}
  .sales-workspace .sales-product-row.has-photo>.sales-product-actions{grid-column:1/-1}
  .sales-workspace .sales-order-bar{padding:6px 16px;grid-template-columns:minmax(0,1fr) minmax(170px,1.15fr);gap:3px 12px}
  .sales-workspace .sales-order-bar>div{display:flex;flex-direction:column-reverse;gap:0;align-items:flex-start;justify-content:center}
  .sales-workspace .sales-order-bar>div>span{font-size:13px;line-height:1.3}
  .sales-workspace .sales-order-bar strong{font-size:20px}
  .sales-workspace .sales-order-bar>.btn{grid-column:2;grid-row:1;min-width:0;min-height:44px;padding:7px 8px;font-size:18px}
  .sales-workspace .sales-order-bar>small{grid-column:1/-1;grid-row:2;font-size:13px}
}
@media(max-width:600px){
  .sales-v2 .sales-product-row{gap:4px 10px}
  .sales-v2 .sales-context-compact strong{font-size:16px}
  .sales-v2 .sales-quantity .quantity-step,.sales-v2 .sales-quantity .qty-input{min-width:44px;min-height:44px}
  .sales-workspace .sales-results.with-photos{grid-template-columns:minmax(0,1fr)}
  .sales-workspace .sales-results.with-photos .sales-product-row{grid-template-columns:64px minmax(0,1fr)}
  .sales-workspace .sales-results.with-photos .sales-product-row>.product-thumb{width:64px;height:80px}
  .sales-growth-preview{grid-template-columns:minmax(0,1fr)}.sales-growth-preview>.btn{justify-self:start}
  .sales-today-finance{grid-template-columns:minmax(0,1fr)}.sales-today-finance>.btn{justify-self:start}
}

/* Catalog hierarchy only: the compact order workspace keeps its existing layout. */
.sales-catalog-tree{margin:0 0 10px;border:1px solid #d6e3f5;border-radius:12px;background:#fff;min-width:0;overflow:visible}
.sales-catalog-tree>summary{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;min-height:44px;padding:6px 10px;list-style:none;color:#005fcf;background:#edf4ff;border-radius:11px;cursor:pointer}
.sales-catalog-tree>summary::-webkit-details-marker{display:none}
.sales-catalog-tree>summary h2{font-size:16px;line-height:1.4;margin:0;min-width:0}
.sales-catalog-tree>summary>span{font-size:13px;line-height:1.4;min-width:0;flex:1;overflow-wrap:anywhere;color:#40536d}
.sales-catalog-tree>summary>svg{width:20px;height:20px;flex:none}
.sales-catalog-tree[open]>summary{border-radius:11px 11px 0 0}
.sales-catalog-tree[open]>summary>svg{transform:rotate(90deg)}
.sales-catalog-tree #sales-tree-heading:focus{outline:3px solid var(--sales-blue);outline-offset:3px;border-radius:3px}
.sales-tree-body{padding:4px 10px 10px;min-width:0}
.sales-tree-source,.sales-tree-leaf{font-size:13px;line-height:1.4;color:#526176;margin:6px 0}
.sales-tree-breadcrumbs ol{display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;list-style:none;margin:0;padding:0}
.sales-tree-breadcrumbs li{display:flex;align-items:center;min-width:0;max-width:100%;gap:8px}
.sales-tree-breadcrumbs li+li::before{content:'›';color:#526176;font-size:18px;flex:none}
.sales-tree-breadcrumbs .sales-tree-crumb{min-height:44px;min-width:44px;max-width:100%;padding:6px 0;border:0;background:transparent;color:#005fcf;font-size:14px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.sales-tree-breadcrumbs [aria-current]{font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;padding:6px 0;min-height:44px;display:flex;align-items:center}
.sales-tree-level{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:2px 0 8px;min-width:0}
.sales-tree-level>p{font-size:13px;line-height:1.4;color:#526176;margin:0;min-width:0;overflow-wrap:anywhere}
.sales-tree-level .sales-tree-back{min-height:44px;font-size:14px;padding:6px 10px;flex:none}
.sales-group-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:8px;list-style:none;margin:0;padding:0;max-height:320px;overflow:auto;overscroll-behavior:contain;scroll-padding:6px}
.sales-group-list>li{min-width:0;padding:0;margin:0}
.sales-v2 .sales-group-node{display:flex;align-items:center;gap:8px;min-height:44px;width:100%;min-width:0;padding:9px 10px;text-align:left;border-color:#dce5f1;background:#f8faff;color:#172235;font-size:16px;line-height:1.4;white-space:normal}
.sales-group-node>svg{width:20px;height:20px;flex:none;stroke:#005fcf;stroke-width:1.7;fill:none}
.sales-group-node>.sales-group-name{flex:1;min-width:0;overflow-wrap:anywhere}
.sales-group-node>.sales-group-count{font-size:13px;font-variant-numeric:tabular-nums;color:#40536d;flex:none}
.sales-group-node:hover{background:#edf4ff}.sales-group-node:active{background:#dfeaff}
.sales-search-scope{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;margin:3px 0 5px}
.sales-search-scope>p{font-size:13px;line-height:1.4;color:#40536d;margin:0;overflow-wrap:anywhere;flex:1 1 180px}
.sales-search-scope .sales-tree-global-search{min-height:44px;font-size:14px;line-height:1.4;padding:6px 9px;color:#005fcf;white-space:normal}
@media(max-width:600px){.sales-group-list{grid-template-columns:minmax(0,1fr);max-height:260px}.sales-catalog-tree>summary>span{flex-basis:80px}}

/* Visit actions: cash is explicitly recorded; source balances stay separate. */
.sales-v2 .sales-context-client{display:inline-flex;align-items:center;min-height:48px;min-width:48px;font-size:16px;font-weight:700;line-height:1.35;color:var(--ink);overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:#bbcde1;text-underline-offset:3px}
.sales-v2 .sales-context-change{min-height:48px;min-width:48px}
.sales-visit-actions{display:flex;align-items:center;gap:8px;min-width:0}
.sales-visit-actions>.btn{min-height:48px;min-width:48px;line-height:1.3;font-size:14px;padding:8px 10px;white-space:normal}
.sales-today-prepare>.sales-visit-actions{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,1fr);margin-top:8px}
.sales-v2 .sales-order-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.sales-order-heading>div:first-child{flex:1 0 auto;max-width:100%}
.sales-order-heading h1{margin:0;overflow-wrap:normal;word-break:normal;hyphens:none}
.sales-order-heading>.sales-visit-actions{margin:0;flex:0 1 auto;flex-wrap:wrap}
.sales-debt-cash-action{margin:10px 0 8px}
.sales-debt-cash-action .btn,.sales-invoice-cash{min-height:48px;min-width:48px;font-size:16px}
.sales-invoice-cash{margin-top:2px;width:100%}
.sales-cash-summary{margin:8px 0;color:var(--ink);font-size:14px;line-height:1.4}
.sales-cash-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.sales-cash-summary>div>strong{font-size:18px}.sales-cash-summary .sales-help{margin:4px 0;font-size:13px}
.sales-cash-latest{margin:5px 0}.sales-cash-latest small{display:block;font-size:13px;color:#40536d;margin-top:2px}
.sales-cash-unavailable{font-size:13px;margin:6px 0}
.sales-cash-form{padding:12px}.sales-cash-form .field,.sales-cash-form .select{min-height:48px;font-size:16px}
.sales-cash-basis{display:flex;flex-wrap:wrap;gap:2px 12px;margin:0 0 8px;font-size:14px;line-height:1.4;color:#40536d;overflow-wrap:anywhere}

/* Wholesale entry stays in the product row before and after explicit addition. */
.sales-v2 .sales-entry{display:grid;grid-template-columns:minmax(168px,1fr) 84px;gap:2px 8px;align-items:center;min-width:0}
.sales-v2 .sales-entry>.quantity-control{grid-column:1;grid-row:1;display:grid;grid-template-columns:44px 64px 44px;gap:8px;width:168px;min-width:168px;border:0;background:transparent}
.sales-v2 .sales-entry .qty-input{width:64px;min-width:44px;min-height:44px;font-size:16px;padding:7px 5px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:center}
.sales-v2 .sales-entry .quantity-step{min-width:44px;min-height:44px;border-radius:8px;touch-action:manipulation}
.sales-v2 .sales-entry>.sales-unit{width:100%;min-width:0;max-width:100%;min-height:44px;padding:6px;font-size:16px}
.sales-v2 .sales-entry-add{grid-column:2;grid-row:1;min-height:44px;min-width:44px;width:100%;padding:7px 4px;font-size:16px;line-height:1.3;white-space:normal}
.sales-v2 .sales-entry>.inline-error{grid-column:1/-1;font-size:13px;line-height:1.4;margin:0}
.sales-v2 .sales-entry>.inline-error:empty{display:none}
.sales-v2 .sales-quantity{grid-template-columns:154px minmax(0,1fr)}
.sales-v2 .sales-quantity .quantity-control{display:grid;grid-template-columns:44px 64px 44px;width:154px;min-width:154px}
.sales-v2 .sales-quantity .qty-input{width:64px;min-width:44px;min-height:44px;font-size:16px;padding:7px 4px}
.sales-v2 .sales-packing-info,.sales-v2 .sales-order-multiple{font-size:13px;line-height:1.35;color:#40536d;margin:2px 0;overflow-wrap:anywhere}
.sales-v2 .sales-pricing{gap:4px 6px}
.sales-line-status{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:0 6px;min-width:0}
.sales-in-order{font-size:13px;font-weight:500;line-height:1.4;color:#20653a;white-space:nowrap}
.sales-growth-preview{grid-template-columns:minmax(0,1fr) minmax(270px,.8fr)}
.sales-growth-preview>.sales-product-actions{display:grid;grid-template-columns:minmax(0,1fr);align-self:center;min-width:0}
.sales-growth-preview .sales-line-status{justify-content:flex-start;margin-top:3px}
@media(max-width:767px){.sales-growth-preview{grid-template-columns:minmax(0,1fr)}.sales-growth-preview>.sales-product-actions{margin-top:4px}}
.sales-cash-method{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin:0 0 12px}
.sales-cash-method>span{font-size:14px;color:#40536d}
.sales-cash-form .sales-cash-selected-invoice{margin:-4px 0 12px;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.sales-cash-form .sales-cash-options{margin:8px 0}
.sales-cash-options>summary{min-height:48px;display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.4;cursor:pointer}
.sales-cash-options>summary::before{content:'›';font-size:22px;color:#005fcf}.sales-cash-options[open]>summary::before{transform:rotate(90deg)}
.sales-cash-options>summary::-webkit-details-marker{display:none}
.sales-cash-form .sales-cash-accounting{margin:8px 0 12px;font-size:14px;line-height:1.4}
.sales-cash-form .sales-form-actions{gap:8px;margin-top:8px}.sales-cash-form .sales-form-actions>.btn{min-height:48px;font-size:16px;white-space:normal}
.sales-cash-form .sales-form-actions>.sales-back{display:flex;align-items:center;justify-content:center;min-height:48px;min-width:48px}
@media(max-width:600px){
  .sales-v2 .sales-order-heading{gap:6px}.sales-order-heading .sales-visit-actions{gap:8px}
  .sales-order-heading .sales-visit-actions>.btn{padding:8px;font-size:14px}
  .sales-cash-form .sales-form-actions{display:flex;flex-direction:column;align-items:stretch}
  .sales-cash-form .sales-form-actions>.btn{width:100%}
}
/* Results remain readable inside compact task rows, including long order IDs. */
.sales-task-outcome{min-width:0;overflow-wrap:anywhere;margin-top:8px;padding-top:8px;border-top:1px solid #e5e9f0}
.sales-task-outcome p{margin:4px 0}
/* Direct ordering: confirmed units stay visible, including after addition. */
.sales-v2 .sales-unit-options{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;min-width:0;width:100%}
.sales-v2 .sales-unit-options>.sales-unit-choice{flex:1 0 max-content;min-width:44px;max-width:100%;min-height:44px;padding:5px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:#fff;color:#164a80;border:1px solid #b9c9dc;border-radius:8px;white-space:normal;overflow-wrap:anywhere;line-height:1.12;font-size:16px}
.sales-v2 .sales-unit-choice small{font-size:13px;line-height:1.15;color:inherit;white-space:nowrap}
.sales-v2 .sales-unit-choice[aria-pressed="true"]{background:#0067d8;color:#fff;border-color:#0067d8;box-shadow:inset 0 0 0 1px #0067d8}
.sales-v2 .sales-unit-choice:focus-visible{outline:3px solid #17406d;outline-offset:2px}
.sales-v2 .sales-entry,.sales-v2 .sales-quantity{row-gap:6px}
.sales-v2 .sales-entry>.sales-unit-label{grid-column:1/-1;min-height:20px}
.sales-v2 .sales-entry-total{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px;line-height:1.3;color:#40536d;margin:0;min-width:0;overflow-wrap:anywhere}
.sales-v2 .sales-entry-total strong{display:block;font-size:16px;font-weight:650;color:#172b44;font-variant-numeric:tabular-nums}
.sales-v2 .sales-unit-options>.inline-error{flex:1 0 100%;margin:0}

/* The draft composition is a working list, separate from final server review. */
.sales-order-tools{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.sales-order-tools>.btn,.sales-quick-repeat>.btn{min-height:44px;font-size:16px}
.sales-quick-repeat{margin:6px 0 10px}.sales-quick-repeat>.sales-help{margin:3px 0;line-height:1.35}
.sales-v2 .sales-compose-link{min-height:44px;font-size:16px;padding:4px 8px}
.sales-composition-lines{display:grid;gap:6px}.sales-composition-growth{display:grid;gap:6px;margin-top:20px}
.sales-composition-growth>h2,.sales-composition-growth>.sales-help{margin:2px 0}
.sales-v2 .sales-product-row.is-compact{padding:8px;gap:4px 10px;box-shadow:none}
.sales-product-row.is-compact .sales-product-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1px 6px}
.sales-product-row.is-compact .sales-product-name,.sales-product-row.is-compact .sales-specs,.sales-product-row.is-compact .sales-packing-info,.sales-product-row.is-compact .sales-order-multiple,.sales-product-row.is-compact .sales-product-info>.inline-error,.sales-product-row.is-compact .sales-product-info>.sales-help{grid-column:1/-1;margin:0}
.sales-product-row.is-compact .sales-specs{font-size:13px;line-height:1.3}
.sales-product-row.is-compact .sales-stock{font-size:13px;line-height:1.3;margin:0;min-width:0}
.sales-product-row.is-compact .sales-pricing{grid-column:2;grid-row:3;display:flex;flex-direction:column;align-items:flex-end;margin:0;gap:0}
.sales-product-row.is-compact .sales-unit-price{font-size:17px;white-space:nowrap}
.sales-product-row.is-compact .sales-line-total{font-size:13px;white-space:normal}
.sales-product-row.is-compact .sales-in-order{display:none}
.sales-product-row.is-compact .sales-packing-info{font-size:12px;line-height:1.25}
.sales-product-row.is-compact .sales-unit-label{display:none}
.sales-product-row.is-compact .sales-quantity,.sales-product-row.is-compact .sales-entry{row-gap:4px}
.sales-product-row.is-compact .sales-unit-options{gap:6px}
.sales-product-row.is-compact .sales-product-actions{gap:2px 6px}
.sales-product-row.is-compact>.sales-promo{margin:0;padding:3px 6px;line-height:1.3}
.sales-bulk-form{padding:12px}.sales-bulk-form textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;border:1px solid #9aaec5;border-radius:8px;padding:10px;font:16px/1.5 ui-monospace,monospace;min-height:150px;background:#fff;color:var(--ink)}
.sales-bulk-form textarea:focus-visible{outline:3px solid #007aff;outline-offset:2px}
.sales-bulk-preview{margin-top:16px}.sales-bulk-preview>div{display:grid;gap:6px}
.sales-bulk-row{padding:10px;overflow-wrap:anywhere}.sales-bulk-row p{margin:3px 0;font-size:14px;line-height:1.4}
.sales-bulk-quantity{font-variant-numeric:tabular-nums}.sales-bulk-total{margin-top:12px;padding:12px}
.sales-bulk-workspace .btn{min-height:44px;font-size:16px}
@media(min-width:768px){.sales-workspace .sales-product-row.is-compact:not(.has-photo){grid-template-columns:minmax(0,1fr) minmax(300px,.85fr)}}
@media(max-width:767px){.sales-workspace .sales-product-row.is-compact:not(.has-photo){grid-template-columns:minmax(0,1fr)}.sales-bulk-form>.btn{width:100%}}
.sales-composition-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-bottom:4px}
.sales-composition-heading h1{font-size:26px;line-height:1.2;margin:0}.sales-composition-heading>.sales-back{margin:0;min-height:44px;font-size:16px;flex:none}
.sales-composition-tools{display:flex;align-items:center;gap:10px;margin:4px 0 8px}.sales-composition-tools>.btn{flex:none;min-height:44px;font-size:16px}
.sales-composition-tools>.sales-help{margin:0;font-size:12px;line-height:1.35}
.sales-composition-search{margin:8px 0}.sales-composition-search>.field-label{margin:0 0 4px}.sales-composition-search input{min-height:44px;font-size:16px;width:100%}
.sales-composition-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.sales-composition-search .sales-clear-search{position:absolute;right:0;top:0;min-width:44px;min-height:44px;padding:0;background:transparent;border:0}
.sales-composition-search>.sales-help{margin:4px 0;font-size:13px}.sales-composition-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.sales-composition-shortcuts>.btn{min-height:44px;font-size:16px;max-width:100%;white-space:normal}
#sales-composition-growth-heading,#sales-bulk-text,.sales-composition .qty-input{scroll-margin-block:24px calc(180px + env(safe-area-inset-bottom,0px))}
#sales-composition-growth-heading:focus-visible{outline:3px solid #007aff;outline-offset:3px}
#sales-bulk-preview[hidden],#sales-bulk-change-status[hidden],#sales-bulk-form-errors[hidden]{display:none}
.sales-bulk-row>.btn,.sales-bulk-row .btn{margin-top:6px}
.sales-workspace .sales-order-bar>div{display:block;min-width:0}
.sales-workspace .sales-order-bar .sales-compose-link{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:48px;padding:2px 6px;gap:0;line-height:1.2;font-size:14px}
.sales-workspace .sales-order-bar .sales-compose-link>strong{font-size:20px}
.sales-search-field{position:relative;flex:1;min-width:0}
.sales-search-field>.search{min-width:0;margin:0}
.sales-search-field:has(.sales-clear-search) input{padding-right:48px}
.sales-v2 .sales-search .sales-clear-search{position:absolute;right:0;top:0;width:44px;min-width:44px;min-height:44px;height:100%;padding:0;background:transparent;border:0;font-size:0}
.sales-order-search-scope{margin:4px 0 8px;font-size:13px;line-height:1.4;color:#40536d}
.sales-v2 .sales-conversion{grid-column:1/-1;margin:0;font-size:14px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sales-v2 .sales-conversion[hidden]{display:none}
.sales-next-product{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;width:100%;grid-column:1/-1}
.sales-next-product[hidden]{display:none}
.sales-next-product>span{font-size:13px;line-height:1.4;color:#40536d}
.sales-v2 .sales-next-product>.btn{min-width:44px;min-height:44px;font-size:16px;padding:8px 10px}

/* Team pilot: utility action and feedback form stay clear of order controls. */
.topbar .support-entry{min-height:44px;font-size:14px;padding:8px 10px;color:var(--primary);white-space:nowrap;flex:none}
.support-entry svg{width:20px;height:20px}
.pilot-notice{font-size:13px;line-height:1.4;color:#526070;margin:0 0 14px;padding:8px 12px;background:#eaf3ff;border-radius:8px}
.support-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.support-layout>*{min-width:0}.support-compose h2{margin:18px 0}.support-compose .field-block{margin:16px 0}.support-compose textarea{min-height:144px;resize:vertical;font-size:16px;line-height:1.5}
.support-compose select{font-size:16px}.support-compose .field-label{font-size:16px}.support-explainer{margin-top:12px;line-height:1.5}
.support-ticket{padding:18px 0;border-bottom:1px solid var(--line)}.support-ticket:last-child{border-bottom:0}.support-ticket p{margin:10px 0}.support-ticket .spread{align-items:start;flex-wrap:wrap}.support-ticket .badge{white-space:normal;text-align:left;line-height:1.4}.support-ticket-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.5}.support-reply{padding:12px;border-radius:8px;background:var(--soft);white-space:pre-wrap;overflow-wrap:anywhere}.support-history .panel-head{flex-wrap:wrap}.support-history .notice{overflow-wrap:anywhere}
@media(max-width:760px){.support-layout{grid-template-columns:minmax(0,1fr);gap:16px}.support-layout .panel-body{padding:16px}.support-layout .panel-head{padding:16px}.support-layout .btn{min-height:44px}.support-compose{scroll-margin-top:12px}.support-history{scroll-margin-top:12px}}
@media(max-width:430px){.topbar .support-entry{font-size:13px;padding:8px;gap:6px}.sales-shell .topbar{min-height:48px;height:auto}.support-ticket .badge{max-width:100%}}

/* Optional support attachments remain inside the existing four-tab workflow. */
.support-file-picker input[type=file]{min-height:44px;font-size:16px;max-width:100%;padding:10px 0;border:0;border-radius:0}
.support-file-picker input[type=file]::file-selector-button{font:inherit;min-height:44px;padding:8px 12px;border:1px solid var(--line,#dce2ea);border-radius:10px;background:#fff;color:#007aff;margin-right:8px}
.support-files{padding:0;margin:12px 0;list-style:none;display:grid;gap:8px}
.support-file{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:10px;background:var(--bg,#f5f7fa);border-radius:10px;min-width:0}
.support-file>span{min-width:0;overflow-wrap:anywhere;font-size:14px}.support-file small{display:block;color:var(--muted,#677184);margin-top:3px}.support-file .btn{flex-shrink:0;min-height:44px}

/* Five primary tabs, per owner decision 2026-11-04. */
.sales-form[data-visit-form]{max-width:720px}
.sales-form[data-visit-form] textarea{resize:vertical}
@media(max-width:900px){.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.bottom-nav a{min-width:0;min-height:48px;padding-left:2px;padding-right:2px}.bottom-nav a span{font-size:11px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}}
.catalog-preview-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin:0 0 12px;padding:10px 12px;background:#eef5ff;border:1px solid #d5e5fb;border-radius:12px;color:#344660}
.catalog-preview-notice p{flex:1 1 250px;margin:0;font-size:13px;line-height:1.4}
.catalog-preview-notice .btn{min-height:44px;flex:0 1 auto;white-space:normal}

/* Team feedback: optional details stay nested, legible and touch-friendly. */
.sales-today-tools{display:flex;justify-content:flex-end;margin:-4px 0 12px}
.customer-facts{margin:12px 0;display:grid;gap:12px}
.customer-fact{min-width:0}.customer-fact dt{color:var(--muted,#596579);font-size:14px;margin-bottom:3px}.customer-fact dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.customer-coordinate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.customer-note-editor>summary{min-height:44px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.customer-note-editor .field,.customer-note-editor .select{font-size:16px;min-height:44px;max-width:100%;box-sizing:border-box}
.customer-note-editor .field-label{display:block;margin-top:12px}.customer-note-editor textarea{min-height:72px}
.customer-note-editor .sales-form{margin-top:8px}.customer-note-editor .btn{margin-top:12px}

.plan-query{display:grid;gap:8px}.plan-query .field-label{margin-top:4px}.plan-query .field,.plan-query .select,[data-plan-target-form] .field,[data-plan-target-form] .select{font-size:16px;min-height:44px;width:100%;max-width:100%;box-sizing:border-box}
.plan-fact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.plan-fact-grid strong{font-variant-numeric:tabular-nums}.plan-group-row+.plan-group-row{border-top:1px solid #dce1e8;margin-top:12px;padding-top:12px}
.plan-group-editor{display:flex;gap:8px;align-items:flex-end}.plan-group-editor label{flex:1;min-width:0}[data-plan-target-form]>.field-label{display:block;margin-top:12px}[data-plan-target-form]>.btn{margin-top:12px}
@media(max-width:600px){.plan-fact-grid{grid-template-columns:1fr}.plan-fact-grid .card{margin:0}}

/* Explicit broad matching keeps ordinary model searches quiet. */
.sales-search-mode{grid-column:1/-1;display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap}
.sales-search-mode>label{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-size:14px;color:var(--ink)}
.sales-search-mode input{width:20px;height:20px;accent-color:var(--sales-blue);flex:none}
.sales-search-mode>span{font-size:13px;line-height:1.4;color:var(--muted)}
@media(max-width:600px){
  .sales-workspace .sales-search-controls:has(.sales-search-mode)>.sales-search{grid-column:1/-1}
  .sales-workspace .sales-search-controls:has(.sales-search-mode)>.sales-filters:not([open]){grid-row:2;grid-column:2}
  .sales-workspace .sales-search-controls>.sales-search-mode{grid-row:2;grid-column:1}
  .sales-workspace .sales-search-controls:has(.sales-filters[open])>.sales-search-mode{grid-row:auto;grid-column:1/-1}
}

/* Order composition: edit the chosen lines before considering more products. */
.sales-composition-heading{flex-wrap:wrap;gap:4px 12px}
.sales-composition-heading h1{font-size:24px;overflow-wrap:normal}
.sales-composition-heading>.sales-back{font-size:14px;font-weight:600;min-width:44px}
.sales-composition .sales-composition-shortcuts{gap:8px;margin:4px 0}
.sales-composition .sales-composition-shortcuts>.btn{font-size:14px;padding:8px 10px}
.sales-composition .sales-composition-source{margin:4px 0 10px;font-size:12px;line-height:1.4}
.sales-composition-lines{gap:10px}
.sales-v2 .sales-product-row.is-composition-line{padding:12px;gap:8px 16px;border-color:var(--line);border-radius:12px}
.sales-product-row.is-composition-line .sales-product-info{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}
.sales-product-row.is-composition-line .sales-product-name{font-size:16px;line-height:1.35;font-weight:650;text-decoration:none;min-height:44px}
.sales-product-row.is-composition-line .sales-sku{display:block;font-size:13px;font-weight:400;line-height:1.4;margin-top:3px;overflow-wrap:anywhere}
.sales-product-row.is-composition-line .sales-composition-prices{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:12px;margin:0;padding-top:6px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}
.sales-composition-prices>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.sales-composition-prices .sales-line-status{text-align:right;align-items:flex-end}
.sales-composition-prices .sales-price-label{color:var(--muted);font-size:12px;font-weight:400;line-height:1.4}
.sales-product-row.is-composition-line .sales-unit-price{font-size:16px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;margin:0;font-weight:500}
.sales-product-row.is-composition-line .sales-line-total{font-size:19px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;font-weight:700}
.sales-product-row.is-composition-line .sales-product-actions{display:block;position:relative;align-self:start}
.sales-product-row.is-composition-line .sales-quantity{row-gap:8px}
.sales-product-row.is-composition-line .sales-unit-options{gap:8px}
.sales-product-row.is-composition-line .sales-unit-label{display:flex;grid-column:1/-1;align-items:center;min-height:24px;font-size:16px}
.sales-product-row.is-composition-line .sales-row-more:not([open]){position:absolute;top:0;right:0}
.sales-product-row.is-composition-line .sales-row-more>summary{min-width:64px;min-height:44px;display:flex;align-items:center;justify-content:center;font-size:14px;cursor:pointer}
.sales-product-row.is-composition-line .sales-row-more[open]{width:100%;min-width:0;margin-top:8px}
.sales-product-row.is-composition-line .sales-row-more>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;min-width:0}
.sales-product-row.is-composition-line .sales-row-more .sales-specs{flex-basis:100%;min-width:0}
.sales-product-row.is-composition-line .sales-row-more .btn,.sales-product-row.is-composition-line .sales-inline-link{min-height:44px;display:inline-flex;align-items:center;white-space:normal}
.sales-composition .sales-composition-growth{margin-top:28px;padding-top:16px;border-top:2px solid var(--line);gap:8px}
.sales-composition-growth>h2{font-size:18px;line-height:1.35}
.sales-composition-growth>.sales-help{font-size:13px;margin-bottom:4px}
.sales-composition-missing .btn{min-height:44px}
.sales-composition .sales-order-bar .sales-composition-total{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:48px;padding:2px 6px;font-variant-numeric:tabular-nums}
.sales-composition-total>span{font-size:12px;line-height:1.3;color:var(--muted)}
.sales-composition-total>strong{font-size:20px;line-height:1.2;overflow-wrap:anywhere}
@media(min-width:768px){.sales-workspace .sales-product-row.is-composition-line:not(.has-photo){grid-template-columns:minmax(0,1fr) minmax(300px,.8fr)}}
@media(max-width:430px){.sales-composition-heading h1{font-size:22px}}

/* Explicit facade preview and contact actions on the selected point card. */
.customer-facade{margin:12px 0}
.customer-facade-image{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:10px}
.customer-contact-actions,.customer-facade-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}

/* Keep the test-price disclosure visible while leaving room for order lines. */
.catalog-preview-notice.catalog-preview-compact{display:block;padding:0}
.catalog-preview-compact>summary{display:list-item;list-style-position:inside;min-height:44px;padding:10px 12px;font-size:13px;line-height:1.4;cursor:pointer}
.catalog-preview-compact>.catalog-preview-content{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:0 12px 10px}

/* Apple-inspired finish. Layout and quantity geometry above remain authoritative.
   No row-level blur or entrance animation: a long order stays cheap to repaint. */
html{font-family:var(--font-sans);-webkit-font-smoothing:antialiased}
body{background:var(--bg);color:var(--ink)}
h1,h2,h3{font-weight:600;letter-spacing:-.025em}
.page-heading h1,.mobile-page-heading h1{font-weight:600}
.sales-v2{--sales-blue:var(--primary);--sales-link:var(--link)}
.sales-v2 h2,.sales-v2 h3,.sales-v2 .sales-product-name,
.sales-product-row.is-composition-line .sales-product-name{font-weight:600}
.stat-value,.today-summary strong,.sales-big-number,.sales-unit-price,
.sales-product-row.is-composition-line .sales-line-total,.debt-summary>.debt-total,
.debt-summary .debt-overdue strong,.sales-order-bar strong{font-weight:600}
.eyebrow{font-weight:600}
.btn,.sales-v2 .btn.primary{font-weight:600;border-radius:var(--radius-pill)}
.btn:hover{background:var(--surface-hover)}
.btn.primary,.sales-v2 .btn.primary{color:var(--on-primary);background:var(--primary);border-color:var(--primary)}
.btn.primary:hover,.sales-v2 .btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.btn.primary:active,.sales-v2 .btn.primary:active{background:var(--primary-pressed);border-color:var(--primary-pressed)}
.btn.light{color:var(--link);background:var(--soft);border-color:var(--soft)}
.btn.light:hover,.icon-btn:hover,.add-btn:hover{background:var(--soft-hover)}
.btn.danger{color:var(--red);background:var(--red-bg);border-color:var(--red-border)}
.icon-btn{border-radius:var(--radius-control)}
.badge,.demo{border-radius:var(--radius-pill)}
.badge.neutral{color:var(--muted);background:var(--secondary)}
.nav a{border-radius:var(--radius-control);color:var(--muted);font-weight:500}
.nav a.active{background:var(--soft);color:var(--link);font-weight:600}
.nav a:hover{background:var(--secondary)}
.nav a.active:hover{background:var(--soft-hover)}
.sidebar{background:var(--surface-card)}
.topbar{background:var(--surface);border-bottom:1px solid var(--line)}
.brand-logo{gap:10px;min-width:0;min-height:44px}
.brand-logo img{display:block;width:121px;height:44px;max-width:100%;object-fit:contain;flex:none}
.brand-logo .brand-sub{color:var(--muted);font-size:10px;line-height:1.35;letter-spacing:.08em;white-space:normal;min-width:0}
.sidebar .brand-logo{flex-direction:column;align-items:flex-start;gap:4px}
.mobile-page-heading .wordmark.brand-logo{display:flex;align-items:flex-start;min-width:0;padding-top:0}
.avatar,.customer-icon,.today-summary-row .summary-icon{background:var(--soft);color:var(--link)}
.panel,.card,.stat,.today-card,.invoice-card{background:var(--surface-card);border-color:var(--line);box-shadow:var(--shadow)}
.customer-row:hover,.today-task:hover{background:var(--soft)}
.customer-card:hover,.debt-client:hover{border-color:var(--soft-border)}
.sales-context,.sales-order-conditions,.sales-empty{background:var(--surface-card);border-color:var(--line);border-radius:var(--radius)}
.sales-product-row,.sales-v2 .sales-product-row.is-compact,.sales-v2 .sales-product-row.is-composition-line{
  background:var(--surface);border-radius:14px;border-color:var(--line);box-shadow:none
}
.sales-v2 .sales-context p,.sales-v2 .sales-help,.sales-v2 .sales-origin,
.sales-v2 .sales-sku,.sales-v2 .sales-stock,.sales-v2 .sales-specs,
.sales-v2 .sales-packing-info,.sales-v2 .sales-order-multiple,
.sales-v2 .sales-product-name .sales-sku,.sales-context-compact summary>span,
.sales-growth-argument,.sales-growth-reason,.sales-search-scope>p,
.sales-order-search-scope,.sales-next-product>span,.sales-v2 .sales-entry-total{color:var(--muted)}
.sales-context-compact>details>summary::after{color:var(--muted)}
.sales-v2 .sales-stock.available,.stock-label,.sales-in-order{color:var(--success)}
.sales-v2 .sales-entry-total strong{color:var(--ink)}
.notice{color:var(--amber);background:var(--warm);border-color:var(--warning-border);border-radius:var(--radius-control)}
.notice.info{color:var(--link);background:var(--soft);border-color:var(--soft-border)}
.notice.error,.sales-issues{color:var(--red);background:var(--red-bg);border-color:var(--red-border)}
.sales-promo,.sales-counters .btn,.undo-notice{color:var(--link);background:var(--soft);border-color:var(--soft-border)}
.sales-catalog-tree{background:var(--surface);border-color:var(--line);border-radius:var(--radius)}
.sales-catalog-tree>summary{color:var(--link);background:var(--secondary);border-radius:var(--radius)}
.sales-catalog-tree[open]>summary{border-radius:var(--radius) var(--radius) 0 0}
.sales-catalog-tree>summary>span,.sales-tree-source,.sales-tree-leaf,.sales-tree-level>p,
.sales-tree-breadcrumbs li+li::before,.sales-group-node>.sales-group-count{color:var(--muted)}
.sales-tree-breadcrumbs .sales-tree-crumb,.sales-search-scope .sales-tree-global-search{color:var(--link)}
.sales-v2 .sales-group-node{background:var(--surface);border-color:var(--line);color:var(--ink);border-radius:var(--radius-control)}
.sales-group-node>svg{stroke:var(--link)}
.sales-v2 .sales-group-node:hover{background:var(--soft)}
.sales-v2 .sales-group-node:active{background:var(--soft-hover)}
.sales-tabs,.workspace-tabs{background:var(--secondary);border-radius:var(--radius)}
.chip,.sales-tabs .chip,.workspace-tabs .chip{border-radius:var(--radius-pill);color:var(--muted)}
.sales-tabs .chip.active,.workspace-tabs .chip.active{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.search{background:var(--secondary);border-color:transparent;border-radius:var(--radius-pill)}
.search input::placeholder{color:var(--muted);opacity:1}
.select,input.field,textarea.field,.sales-bulk-form textarea{
  background:var(--surface);color:var(--ink);border-color:var(--input-line);border-radius:var(--radius-control)
}
.sales-workspace .sales-filters>summary{background:var(--surface);border-color:var(--line);border-radius:var(--radius-pill)}
.quantity-control{background:var(--secondary);border-color:var(--input-line);border-radius:var(--radius-control)}
.quantity-step,.sales-quantity .quantity-step{background:var(--secondary);color:var(--link)}
.quantity-step:hover,.sales-quantity .quantity-step:hover{background:var(--soft-hover)}
.quantity-step:active,.sales-quantity .quantity-step:active{background:var(--soft-border)}
.quantity-control .qty-input,.sales-v2 .sales-entry .qty-input{background:var(--surface);border-color:var(--input-line);color:var(--ink)}
.quantity-control .qty-input.invalid,.sales-v2 .sales-entry .qty-input.invalid{background:var(--red-bg);border-color:var(--red)}
.sales-v2 .sales-unit-options>.sales-unit-choice{color:var(--link);background:var(--surface);border-color:var(--input-line);border-radius:var(--radius-control)}
.sales-v2 .sales-unit-choice[aria-pressed="true"]{background:var(--primary);color:var(--on-primary);border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
.sales-v2 .sales-unit-choice:hover:not([aria-pressed="true"]){background:var(--soft)}
.sales-v2 .sales-entry-add{border-radius:var(--radius-pill)}
.sales-debt-overdue,.debt-summary>.debt-overdue{background:var(--red-bg);color:var(--red)}
.debt-summary .debt-current{background:var(--secondary);color:var(--muted)}
.pilot-notice,.catalog-preview-notice{color:var(--muted);background:var(--soft);border-color:var(--soft-border);border-radius:var(--radius-control)}
.sales-order-bar,.mobile-order-bar,.cartbar.mobile-order-bar,.bottom-nav{
  background:var(--surface);border-color:var(--line);box-shadow:none
}
.cartbar{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow-panel)}
.sales-order-bar,.mobile-order-bar,.cartbar.mobile-order-bar{box-shadow:var(--shadow-bar)}
.file-input{background:var(--bg);border-color:var(--input-line);border-radius:var(--radius-control)}
.file-input::file-selector-button,.support-file-picker input[type=file]::file-selector-button{
  min-height:44px;border-radius:var(--radius-pill);color:var(--link);background:var(--soft);border-color:var(--soft-border)
}
.support-file,.support-reply{border-radius:var(--radius-control)}
.toast{background:var(--ink);color:var(--on-primary);border-radius:var(--radius);box-shadow:var(--shadow-dialog)}
.toast.error{background:var(--red)}
dialog{background:var(--surface);border-color:var(--line);border-radius:var(--radius-large);box-shadow:var(--shadow-dialog)}
dialog::backdrop{background:var(--scrim)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,
.sales-v2 .sales-unit-choice:focus-visible,.sales-bulk-form textarea:focus-visible,
#sales-composition-growth-heading:focus-visible{outline-color:var(--focus)}
.search:focus-within{outline-color:var(--focus)}
.loading-line{background-image:linear-gradient(90deg,var(--primary),var(--soft-border),var(--primary))}

/* The authentic login keeps its form, role shortcuts and recovery controls. */
.login-story{background:var(--bg);color:var(--ink)}
.login-story p,.login-story .feature{color:var(--muted)}
.login-page.login-redesign{
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,5vw,72px);
  max-width:1280px;margin:0 auto;padding:clamp(32px,6vw,80px) clamp(24px,5vw,64px);background:var(--bg)
}
.login-redesign .login-story{padding:0;background:transparent;color:var(--ink);min-width:0}
.login-redesign .login-story .brand-logo{align-self:flex-start;max-width:100%;margin-bottom:32px}
.login-redesign .login-eyebrow{color:var(--link);font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;margin:0 0 12px}
.login-redesign .login-title{font-size:clamp(38px,4.6vw,58px);font-weight:600;letter-spacing:-.045em;line-height:1.08;margin:0;max-width:600px;text-wrap:balance}
.login-title-accent{display:block;color:var(--primary)}
.login-redesign .login-lead{font-size:18px;line-height:1.6;color:var(--muted);margin:22px 0 0;max-width:46ch}
.login-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:36px}
.login-benefit{min-width:0;padding-top:14px;border-top:1px solid var(--input-line)}
.login-benefit strong{display:block;font-size:14px;line-height:1.4;font-weight:600;color:var(--ink)}
.login-redesign .login-benefit p{font-size:13px;line-height:1.5;color:var(--muted);margin:6px 0 0}
.login-redesign .login-form-wrap{min-width:0;padding:0;align-items:center}
.login-card.login-form-panel{max-width:480px;min-width:0;padding:32px;border:1px solid var(--line);border-radius:var(--radius-large);background:var(--surface);box-shadow:var(--shadow-panel)}
.login-form-panel h2{font-size:30px;font-weight:600;line-height:1.2;letter-spacing:-.035em}
.login-form-panel>.description,.login-form-panel>.login-description{font-size:14px;line-height:1.6;color:var(--muted);margin:12px 0 20px}
.login-form-panel .demo-logins{display:flex;gap:8px;padding:4px;border-radius:var(--radius);background:var(--secondary);margin:8px 0 22px}
.login-form-panel .demo-logins .btn{flex:1;min-width:0;min-height:44px;padding:9px 8px;border-color:transparent;background:var(--surface);font-size:14px;color:var(--link)}
.login-form-panel .demo-logins .btn:hover{background:var(--soft)}
.login-form-panel .field-label{font-size:14px;color:var(--ink)}
.login-form-panel input.field{min-height:54px;padding:12px 14px;font-size:16px;border-radius:var(--radius-control)}
.login-form-panel input.field:focus-visible{box-shadow:0 0 0 5px var(--focus-halo)}
.login-form-panel form>.btn.primary{min-height:52px;width:100%;font-size:16px}
.login-form-panel .login-notes{font-size:13px;line-height:1.6;padding:16px 0 0;margin-top:24px;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;color:var(--muted)}
.login-form-panel .snapshot-label{font-size:12px;line-height:1.5;color:var(--muted);margin-top:14px}

@media(min-width:1024px){
  .topbar{position:sticky;top:0;z-index:30}
  .panel,.card:not(.sales-product-row):not(.sales-form),.today-card{border-radius:var(--radius)}
  .login-form-panel{background:var(--surface-glass)}
  @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    .topbar,.login-card.login-form-panel{background:var(--surface-glass);-webkit-backdrop-filter:saturate(140%) blur(16px);backdrop-filter:saturate(140%) blur(16px)}
  }
}
@media(max-width:1023px){
  .bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));background:var(--surface)}
  .bottom-nav a{color:var(--muted)}
  .bottom-nav a.active{color:var(--link);background:var(--soft);border-radius:var(--radius-control)}
  .login-page.login-redesign{grid-template-columns:minmax(0,1fr);max-width:600px;gap:28px;padding:28px 24px}
  .login-redesign .login-story .brand-logo{margin-bottom:24px}
  .login-redesign .login-title{font-size:38px;max-width:520px}
  .login-redesign .login-lead{font-size:16px;line-height:1.5;margin-top:16px}
  .login-benefits{margin-top:20px;gap:12px}
  .login-card.login-form-panel{max-width:none;box-shadow:var(--shadow);background:var(--surface)}
}
@media(max-width:600px){
  .mobile-page-heading .wordmark.brand-logo img{width:90px;height:33px}
  .login-page.login-redesign{padding:24px 16px;gap:24px}
  .login-redesign .login-story .brand-logo{margin-bottom:20px}
  .login-redesign .login-title{font-size:32px;line-height:1.12;letter-spacing:-.035em}
  .login-redesign .login-eyebrow{margin-bottom:10px;font-size:12px}
  .login-benefits{margin-top:18px;gap:10px}
  .login-benefit{padding-top:10px}
  .login-benefit strong{font-size:13px}
  .login-redesign .login-benefit p{display:none}
  .login-card.login-form-panel{padding:24px 20px}
  .login-form-panel h2{font-size:27px}
  .login-form-panel .demo-logins .btn{font-size:13px;padding:8px 5px}
  .login-form-panel .login-notes{margin-top:20px}
}
@media(prefers-reduced-transparency:reduce){
  .topbar,.sidebar,.panel,.card,.stat,.today-card,.invoice-card,.sales-context,.sales-order-conditions,.login-card.login-form-panel{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{
  .panel,.card,.stat,.today-card,.invoice-card,.sales-context{background:var(--surface);box-shadow:none}
}

/* vitol-apple-code-v1: the supplied visual reference, adapted to the live PWA.
   The original quantity controls, stored context and fixed actions are retained. */
:root{
  --apple-background:oklch(0.975 0.002 260);
  --apple-foreground:oklch(0.2 0.005 260);
  --apple-card:oklch(1 0 0 / 72%);
  --apple-primary:oklch(0.58 0.2 255);
  /* Same reference hue/chroma; small lightness changes keep action text legible. */
  --apple-action-primary:oklch(0.57 0.2 255);
  --apple-action-hover:oklch(0.54 0.2 255);
  --apple-action-pressed:oklch(0.51 0.2 255);
  --apple-link:oklch(0.54 0.2 255);
  --apple-secondary:oklch(0.94 0.003 260);
  --apple-muted:oklch(0.52 0.01 260);
  --apple-border:oklch(0.2 0.005 260 / 10%);
  --apple-input:oklch(0.2 0.005 260 / 12%);
  --apple-nav-active:oklch(0.2 0.005 260 / 6%);
  --apple-gradient-text:linear-gradient(100deg,oklch(0.58 0.2 255),oklch(0.6 0.2 300) 50%,oklch(0.67 0.19 20));
  --apple-gradient-glow:radial-gradient(60% 50% at 70% 20%,oklch(0.85 0.08 255 / 55%),transparent 70%),radial-gradient(50% 40% at 20% 80%,oklch(0.9 0.07 20 / 45%),transparent 70%);
  --apple-shadow-glass:0 1px 0 oklch(1 0 0 / 80%) inset,0 30px 60px -20px oklch(0.2 0.02 260 / 18%),0 0 0 1px oklch(0.2 0.005 260 / 6%);
  --apple-shadow-selected:0 1px 3px oklch(0.2 0.005 260 / 10%);
  --apple-content-width:1152px;
}
.apple-workspace,.login-page.login-redesign{
  --bg:var(--apple-background);--ink:var(--apple-foreground);--surface-card:var(--apple-card);
  --surface-glass:var(--apple-card);--secondary:var(--apple-secondary);--muted:var(--apple-muted);
  --line:var(--apple-border);--radius:24px;--radius-large:24px;--shadow-panel:var(--apple-shadow-glass);
  --primary:var(--apple-action-primary);--primary-hover:var(--apple-action-hover);--primary-pressed:var(--apple-action-pressed);--link:var(--apple-link);--focus:var(--apple-link);
  --sidebar-width:0px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Helvetica,Arial,sans-serif;
  position:relative;isolation:isolate;min-height:100dvh;background:var(--bg);color:var(--ink);letter-spacing:-.011em
}
.apple-workspace::before,.login-page.login-redesign::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:var(--apple-gradient-glow);opacity:.6
}
.apple-workspace>.page{margin-left:0}
.apple-workspace>.sidebar{display:none}
.workspace-topbar,.login-topbar{position:sticky;top:0;z-index:60;background:var(--apple-card);border-bottom:1px solid var(--apple-border);box-shadow:var(--apple-shadow-glass)}
.workspace-header-inner,.login-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:56px;max-width:var(--apple-content-width);margin:0 auto;padding:0 24px;font-size:14px;min-width:0}
.workspace-header-inner>.brand-logo,.login-header-inner>.brand-logo{flex:none;min-width:0;gap:8px}
.workspace-header-inner .brand-logo img,.login-header-inner .brand-logo img{width:100px;height:37px;object-fit:contain}
.workspace-header-inner .brand-sub,.login-header-inner .brand-sub{display:none}
.workspace-nav{display:flex;flex:1;gap:4px;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.workspace-nav::-webkit-scrollbar{display:none}
.workspace-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex:none;gap:6px;white-space:nowrap;padding:8px 12px;border-radius:var(--radius-pill);color:var(--muted);text-decoration:none;font-size:14px;font-weight:400;line-height:1.35}
.workspace-nav a:hover{color:var(--ink);background:var(--secondary)}
.workspace-nav a.active,.workspace-nav a[aria-current="page"]{background:var(--apple-nav-active);color:var(--ink);font-weight:500}
.workspace-nav a>svg{display:none}
.workspace-tools{display:flex;align-items:center;gap:8px;flex:none;min-width:0}
.workspace-tools .sync-status{min-height:44px;padding:6px 4px;font-size:12px;white-space:nowrap;color:var(--muted)}
.workspace-tools .sync-status.is-offline{color:var(--amber)}
.workspace-status-dot{display:block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--success)}
.sync-status.is-offline .workspace-status-dot{background:var(--amber)}
.apple-workspace .workspace-tools .sync-status{min-width:44px;max-width:122px;background:transparent;border-color:transparent;color:var(--muted)}
.apple-workspace .workspace-tools .sync-status.is-offline{color:var(--amber)}
.workspace-tools .sync-status>span:not(.workspace-status-dot){display:block;max-width:100px;white-space:normal;line-height:1.3}
.workspace-tools .support-entry{min-width:44px;min-height:44px;width:44px;padding:0}
.workspace-menu{position:relative}
.workspace-menu>summary{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:6px;border-radius:var(--radius-pill);color:var(--link);cursor:pointer;list-style:none}
.workspace-menu>summary::-webkit-details-marker{display:none}
.workspace-menu>summary:hover{background:var(--secondary)}
.workspace-menu-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 90px);overflow:auto;display:grid;gap:8px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-dialog)}
.workspace-menu-panel>*{min-width:0;overflow-wrap:anywhere}
.workspace-menu-panel .btn,.workspace-menu-panel>a{min-height:44px;justify-content:flex-start;text-align:left;white-space:normal;font-size:14px}
.workspace-menu-panel>a{display:flex;align-items:center;gap:8px;text-decoration:none;padding:8px 12px;color:var(--link)}
.workspace-notice{position:relative;max-width:var(--apple-content-width);margin:0 auto;padding:12px 24px 0;color:var(--muted);font-size:12px;line-height:1.5;text-align:center}
.workspace-notice .catalog-preview-notice,.workspace-notice .pilot-notice{background:transparent;border:0;padding:0;margin:0;border-radius:0;color:inherit}
.workspace-notice .catalog-preview-compact>summary{font-size:12px;padding:6px 0;min-height:44px}
.workspace-notice .catalog-preview-content{justify-content:center;padding-top:8px}
.apple-workspace .workspace-body{position:relative;max-width:var(--apple-content-width);min-width:0;width:100%;margin:0 auto;padding:40px 24px 120px}
.apple-workspace .workspace-body:has(.sales-order-bar),.apple-workspace .workspace-body:has(.mobile-order-bar){padding-bottom:220px}
.apple-workspace .page-heading,.apple-workspace .mobile-page-heading,.apple-workspace .sales-composition-heading{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:40px}
.apple-workspace .page-heading h1,.apple-workspace .mobile-page-heading h1,.apple-workspace .sales-composition-heading h1{font-size:48px;font-weight:600;line-height:1.08;letter-spacing:-.04em;overflow-wrap:anywhere}
.apple-workspace .page-heading p,.apple-workspace .mobile-page-heading p{font-size:18px;line-height:1.5;color:var(--muted);margin-top:8px}
.apple-workspace .page-eyebrow{font-size:14px;font-weight:600;color:var(--link);line-height:1.4;margin:0 0 8px}
.apple-workspace .panel,.apple-workspace .card,.apple-workspace .today-card,.apple-workspace .stat,.apple-workspace .invoice-card{background:var(--apple-card);border:1px solid var(--line);border-radius:24px;box-shadow:var(--apple-shadow-glass)}
.apple-workspace .card:not(.sales-product-row),.apple-workspace .today-card,.apple-workspace .stat{padding:24px}
.apple-workspace .panel-head,.apple-workspace .panel-body{padding:24px}
.apple-workspace .panel h2,.apple-workspace .card h2{font-weight:600;letter-spacing:-.025em}
.apple-workspace .btn{font-weight:500;min-height:44px;border-radius:var(--radius-pill)}
.apple-workspace .sales-v2 .btn.primary{font-size:16px;font-weight:500}
.apple-workspace .btn:where(:not(.primary):not(.danger):not(.text-btn)){background:var(--secondary);border-color:transparent;color:var(--ink)}
.apple-workspace .btn:where(:not(.primary):not(.danger):not(.text-btn)):hover{background:var(--surface-hover)}
.apple-workspace .sales-entry .sales-entry-add{font-size:16px}
.apple-workspace .badge{border-radius:var(--radius-pill);padding:4px 10px;font-size:12px;font-weight:500}
.apple-workspace .sales-context{background:var(--apple-card);border-radius:24px;box-shadow:var(--apple-shadow-glass)}
.apple-workspace .sales-context-compact{padding:6px 16px;margin-bottom:16px}
.apple-workspace .sales-context-change{background:var(--secondary);border-radius:var(--radius-pill);padding:6px 12px;color:var(--ink)}
.apple-workspace .sales-context strong{font-weight:500}
.apple-workspace .page-heading>.sales-context,.apple-workspace .mobile-page-heading>.sales-context{max-width:min(100%,520px);margin:0;flex:0 1 auto}
.apple-workspace .sales-search input,.apple-workspace .sales-composition-search input{font-size:16px;min-height:44px}
.apple-workspace .search{background:var(--apple-card);border-color:var(--input-line);border-radius:var(--radius-pill)}
.apple-workspace .sales-tabs{display:flex;flex-wrap:nowrap;gap:4px;padding:4px;margin:0 0 20px;background:var(--secondary);border-radius:var(--radius-pill);max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.apple-workspace .sales-tabs .chip{flex:0 0 auto;min-height:44px;padding:8px 12px;white-space:nowrap;overflow-wrap:normal;font-size:14px;line-height:1.4;background:transparent;border:0;color:var(--muted)}
.apple-workspace .sales-tabs .chip.active{background:var(--bg);color:var(--ink);font-weight:500;box-shadow:var(--apple-shadow-selected)}
.apple-workspace .sales-product-row,.apple-workspace .sales-v2 .sales-product-row.is-compact,.apple-workspace .sales-v2 .sales-product-row.is-composition-line{border-radius:24px;background:var(--apple-card);border-color:var(--line);box-shadow:var(--apple-shadow-glass)}
.apple-workspace .sales-product-row .sales-product-name{font-weight:500}
.apple-workspace .sales-unit-price,.apple-workspace .sales-line-total{font-weight:600}
.apple-workspace .sales-unit-options .sales-unit-choice{background:var(--surface);border-color:var(--input-line);color:var(--link)}
.apple-workspace .sales-unit-options .sales-unit-choice[aria-pressed="true"]{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.apple-workspace .sales-catalog-tree{background:var(--apple-card);border-radius:24px;border-color:var(--line);box-shadow:var(--apple-shadow-glass)}
.apple-workspace .sales-catalog-tree>summary{background:var(--secondary);border-radius:24px}
.apple-workspace .sales-catalog-tree[open]>summary{border-radius:24px 24px 0 0}
.apple-today-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:24px;align-items:start}
.apple-today-main,.apple-today-side{display:grid;gap:24px;min-width:0}
.apple-today-main .sales-section,.apple-today-side .sales-section{margin-top:0}
.apple-workspace .sales-today-prepare h2{font-size:24px;font-weight:600;line-height:1.25;margin-top:12px}
.apple-workspace .sales-today-prepare>.sales-visit-actions{display:flex;flex-wrap:wrap;margin-top:24px;gap:8px}
.apple-workspace .sales-today-prepare .sales-visit-actions>.btn{flex:0 1 auto;padding:10px 20px;min-height:44px}
.apple-current-point>h2{font-size:24px}
.apple-point-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.apple-point-actions>.btn{padding:10px 20px}
.apple-recent-orders>.spread,.apple-today-tasks>.spread{margin-bottom:16px;align-items:baseline}
.apple-recent-orders>.spread h2,.apple-today-tasks>.spread h2{font-size:16px;margin:0}
.apple-recent-orders>.spread a,.apple-today-tasks>.spread a{min-height:44px;display:inline-flex;align-items:center;font-size:14px}
.apple-recent-order{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line);text-decoration:none;font-size:14px;line-height:1.4;color:var(--ink)}
.apple-recent-order>span{min-width:0;overflow-wrap:anywhere}
.apple-recent-order small{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.apple-recent-order strong{flex:none;max-width:50%;overflow-wrap:anywhere;text-align:right;font-weight:500;font-variant-numeric:tabular-nums}
.apple-workspace .sales-customer-list:has(>.apple-customer-row){grid-template-columns:minmax(0,1fr);gap:0;background:var(--apple-card);border:1px solid var(--line);border-radius:24px;box-shadow:var(--apple-shadow-glass);overflow:hidden}
.apple-customer-row{display:flex;align-items:center;gap:16px;padding:16px 24px;min-height:80px;min-width:0;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left}
.apple-customer-row:last-child{border-bottom:0}
.apple-customer-row:hover{background:var(--secondary)}
.apple-customer-row:focus-visible{outline-offset:-3px}
.apple-customer-initial{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:var(--secondary);font-size:14px;font-weight:600}
.apple-customer-copy{display:block;flex:1;min-width:0;overflow-wrap:anywhere}
.apple-customer-copy strong{display:block;font-size:16px;font-weight:500;line-height:1.4}
.apple-customer-copy small,.apple-customer-copy>span{display:block;font-size:14px;line-height:1.4;color:var(--muted);margin-top:4px}
.apple-catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.apple-catalog-main,.apple-order-summary{min-width:0}
.apple-order-summary{position:sticky;top:80px;background:var(--apple-card);border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--apple-shadow-glass)}
.apple-order-summary h2,.apple-order-summary h3{font-size:16px;font-weight:600;line-height:1.4;margin-bottom:16px}
.apple-order-summary p{font-size:14px;line-height:1.5;color:var(--muted)}
.apple-order-summary .btn{margin-top:16px;width:100%;white-space:normal}
.apple-order-summary .apple-summary-lines>div{display:flex;justify-content:space-between;gap:12px;margin:8px 0;font-size:14px;line-height:1.4}
.apple-order-summary .apple-summary-lines>div>span{min-width:0;overflow-wrap:anywhere}
.apple-order-summary .apple-summary-lines strong{flex:none;max-width:45%;overflow-wrap:anywhere;font-weight:400;color:var(--muted);text-align:right}
.apple-order-summary .apple-summary-total{display:flex;justify-content:space-between;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line);font-weight:600;font-variant-numeric:tabular-nums}
.apple-summary-total>strong{min-width:0;text-align:right;overflow-wrap:anywhere}
.apple-catalog-main .sales-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.apple-workspace .apple-catalog-main .sales-results .sales-product-row{display:flex;flex-direction:column;padding:16px;gap:12px}
.apple-workspace .apple-catalog-main .sales-results .sales-product-row>.product-thumb{width:100%;height:150px}
.apple-workspace .apple-catalog-main .sales-results .sales-product-actions{display:block;margin-top:auto;width:100%}
.apple-debt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.apple-debt-main,.apple-debt-side{min-width:0}
.apple-debt-side>.sales-section:first-child{margin-top:0}
.apple-saved-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.apple-saved-heading>div{min-width:0;flex:1}
.apple-saved-heading h2{margin-bottom:8px}
.apple-saved-total{font-size:24px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;max-width:45%;overflow-wrap:anywhere}
.apple-workspace .sales-debt-summary{padding:24px}
.apple-workspace .sales-debt-summary .sales-big-number{font-size:36px;margin:8px 0 16px;font-weight:600}
.apple-workspace .sales-debt-overdue{border-radius:18px}
.apple-workspace .plan-fact-grid{gap:16px}
.apple-workspace .sales-saved-orders{gap:16px}
.apple-workspace .sales-saved-order h2{font-size:20px;font-weight:600}
.apple-workspace .sales-order-bar,.apple-workspace .mobile-order-bar,.apple-workspace .cartbar.mobile-order-bar{left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding-left:max(24px,calc((100% - 1104px)/2));padding-right:max(24px,calc((100% - 1104px)/2))}
.apple-workspace>.workspace-mobile-nav{display:none}

/* The reference login has its own full-width header and a two-column main. */
.login-page.login-redesign{display:block;max-width:none;padding:0;margin:0}
.login-page.login-redesign:not(:has(.login-layout)){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:64px;max-width:var(--apple-content-width);margin:auto;padding:80px 24px}
.login-page.login-redesign::before{opacity:1}
.login-header-inner{min-height:48px}
.login-header-inner>span{color:var(--muted);font-size:14px}
.login-layout{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:64px;max-width:var(--apple-content-width);margin:0 auto;padding:112px 24px 96px}
.login-redesign .login-story{padding:0;background:transparent}
.login-redesign .login-eyebrow{font-size:14px;font-weight:600;letter-spacing:.12em;color:var(--link);margin-bottom:16px}
.login-redesign .login-title{font-size:72px;line-height:1.05;letter-spacing:-.045em;font-weight:600;margin:0;max-width:none;text-wrap:initial}
.login-redesign .login-title-accent{display:block;background:var(--apple-gradient-text);-webkit-background-clip:text;background-clip:text;color:transparent}
.login-redesign .login-lead{font-size:20px;line-height:1.625;margin-top:24px;max-width:512px;color:var(--muted)}
.login-redesign .login-benefits{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:48px}
.login-redesign .login-benefit{border:0;padding:0}
.login-redesign .login-benefit::before{content:"";display:block;width:32px;height:1px;background:var(--input-line);margin-bottom:12px}
.login-redesign .login-benefit>svg{display:none}
.login-redesign .login-benefit strong{font-size:16px;font-weight:600;line-height:1.5}
.login-redesign .login-benefit p{display:block;font-size:14px;line-height:1.5;margin-top:4px;color:var(--muted)}
.login-redesign .login-form-wrap{padding:0;min-width:0}
.login-redesign .login-card.login-form-panel{max-width:none;padding:40px;background:var(--apple-card);border:1px solid var(--line);border-radius:24px;box-shadow:var(--apple-shadow-glass)}
.login-redesign .login-form-panel h2{font-size:30px;font-weight:600;line-height:1.2;letter-spacing:-.025em}
.login-redesign .login-description{font-size:14px;line-height:1.5;margin:8px 0 24px}
.login-redesign .login-form-panel h2+form,.login-redesign .login-form-panel h2+.login-role-picker{margin-top:24px}
.login-redesign .demo-logins{border-radius:var(--radius-pill);background:var(--secondary);gap:0;padding:4px;margin:8px 0 24px}
.login-redesign .demo-logins .btn{background:transparent;color:var(--muted);min-height:44px;font-size:14px;font-weight:500;padding:8px 12px}
.login-redesign .demo-logins .btn:hover,.login-redesign .demo-logins .btn:focus-visible{background:var(--bg);color:var(--ink);box-shadow:var(--apple-shadow-selected)}
.login-redesign .login-form-panel input.field{min-height:56px;font-size:16px;border-radius:16px;padding:12px 16px;background:var(--bg)}
.login-redesign .login-form-panel form>.btn.primary{min-height:56px;font-size:16px;font-weight:500}
.login-redesign .login-notes{margin-top:32px;padding-top:24px;font-size:12px;line-height:1.625}
.login-redesign .snapshot-label{font-size:12px;line-height:1.625}
.app-update-banner{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:12px max(16px,calc((100% - 1104px)/2));background:var(--soft);border-bottom:1px solid var(--soft-border);color:var(--ink)}
.app-update-banner[hidden]{display:none}
.app-update-message{flex:1 1 300px;min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
.app-update-action,.app-update-dismiss{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;border-radius:var(--radius-pill);padding:10px 16px;line-height:1.35;font-size:14px;font-weight:500;border:1px solid var(--primary)}
.app-update-action{background:var(--primary);color:var(--on-primary)}
.app-update-dismiss{background:var(--surface);color:var(--link);border-color:var(--soft-border)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .workspace-topbar,.login-topbar,.login-redesign .login-card.login-form-panel{-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px)}
  .apple-today-main>.card:not(.sales-product-row),.apple-today-side>.card,.apple-debt-grid .card,.apple-workspace .plan-fact-grid>.card,.apple-workspace .sales-customer-list:has(>.apple-customer-row),.apple-order-summary{-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px)}
}
@media(max-width:1023px){
  .workspace-header-inner{gap:12px}
  .workspace-header-inner .brand-logo img{width:88px;height:32px}
  .workspace-nav a{padding:8px 10px}
  .workspace-tools .sync-status{font-size:12px;gap:6px}
  .workspace-tools .sync-status svg{width:20px;height:20px}
  .apple-today-grid{grid-template-columns:minmax(0,1fr)}
  .apple-today-side{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .apple-catalog-layout{grid-template-columns:minmax(0,1fr)}
  .apple-order-summary{display:none}
  .apple-workspace .sales-order-bar,.apple-workspace .mobile-order-bar,.apple-workspace .cartbar.mobile-order-bar{left:16px;right:16px;border:1px solid var(--line);border-radius:24px;padding:12px;box-shadow:var(--apple-shadow-glass)}
  .login-layout{grid-template-columns:minmax(0,1fr);gap:64px;padding-top:80px}
  .login-page.login-redesign:not(:has(.login-layout)){grid-template-columns:minmax(0,1fr)}
  .login-redesign .login-story{max-width:760px}
  .login-redesign .login-title{font-size:72px}
}
@media(min-width:768px){
  .apple-workspace .sales-order-bar,.apple-workspace .mobile-order-bar,.apple-workspace .cartbar.mobile-order-bar{bottom:0}
  .apple-workspace .workspace-body{padding-bottom:120px}
  .apple-workspace .workspace-body:has(.sales-order-bar){padding-bottom:220px}
}
@media(min-width:1024px){
  .apple-workspace .sales-catalog-workspace>.sales-order-bar,.apple-workspace .sales-order-workspace>.sales-order-bar{display:none}
  .apple-workspace .workspace-body:has(.sales-catalog-workspace),.apple-workspace .workspace-body:has(.sales-order-workspace){padding-bottom:96px}
}
@media(max-width:767px){
  .workspace-header-inner{padding:0 16px;min-height:56px}
  .workspace-nav{display:none}
  .workspace-tools{gap:8px}
  .workspace-tools .sync-status{font-size:12px;gap:6px}
  .workspace-notice{padding:12px 16px 0}
  .apple-workspace .workspace-body{padding:24px 16px calc(128px + env(safe-area-inset-bottom,0px))}
  .apple-workspace .workspace-body:has(.sales-order-bar),.apple-workspace .workspace-body:has(.mobile-order-bar){padding-bottom:calc(260px + env(safe-area-inset-bottom,0px))}
  .apple-workspace .page-heading,.apple-workspace .mobile-page-heading,.apple-workspace .sales-composition-heading{margin-bottom:24px;gap:16px}
  .apple-workspace .page-heading h1,.apple-workspace .mobile-page-heading h1,.apple-workspace .sales-composition-heading h1{font-size:30px;line-height:1.2;letter-spacing:-.025em}
  .apple-workspace .page-heading p,.apple-workspace .mobile-page-heading p{font-size:16px;margin-top:4px}
  .apple-workspace .card:not(.sales-product-row),.apple-workspace .today-card,.apple-workspace .stat,.apple-workspace .panel-head,.apple-workspace .panel-body,.apple-workspace .sales-debt-summary{padding:16px}
  .apple-workspace .sales-order-bar,.apple-workspace .mobile-order-bar,.apple-workspace .cartbar.mobile-order-bar{bottom:calc(var(--nav-height) + 8px + env(safe-area-inset-bottom,0px))}
  .apple-workspace>.workspace-mobile-nav{position:fixed;inset:auto 0 0;z-index:50;display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));height:calc(var(--nav-height) + env(safe-area-inset-bottom,0px));padding:0 max(2px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(2px,env(safe-area-inset-left,0px));border-top:1px solid var(--line);background:var(--bg);overflow-x:auto;overscroll-behavior-x:contain}
  .workspace-mobile-nav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:44px;min-width:44px;padding:8px 2px;text-decoration:none;color:var(--muted);font-size:10px;font-weight:400;line-height:1.2;white-space:nowrap}
  .workspace-mobile-nav a svg{width:20px;height:20px}
  .workspace-mobile-nav a.active,.workspace-mobile-nav a[aria-current="page"]{color:var(--link);font-weight:500;background:transparent;border-radius:0}
  .workspace-mobile-nav a:focus-visible{outline-offset:-3px}
  .apple-today-main,.apple-today-side{gap:24px}
  .apple-today-side{grid-template-columns:minmax(0,1fr)}
  .apple-debt-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .apple-saved-heading{flex-wrap:wrap}
  .apple-saved-total{max-width:100%;font-size:24px;text-align:left}
  .apple-customer-row{padding:16px}
  .apple-workspace .sales-debt-summary .sales-big-number{font-size:30px}
  .login-header-inner{padding:0 24px}
  .login-layout{padding:80px 24px 96px;gap:64px}
  .login-redesign .login-title{font-size:48px;line-height:1.05}
  .login-redesign .login-lead{font-size:20px;line-height:1.625}
  .login-redesign .login-card.login-form-panel{padding:32px}
}
@media(max-width:639px){
  .apple-catalog-main .sales-results{grid-template-columns:minmax(0,1fr)}
  .login-redesign .login-benefits{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:389px){
  .login-redesign .login-card.login-form-panel{padding:24px}
  .login-redesign .demo-logins .btn{font-size:13px;padding:8px 6px}
}
@media(prefers-reduced-transparency:reduce){
  .workspace-topbar,.login-topbar,.login-redesign .login-card.login-form-panel,.apple-workspace .card,.apple-workspace .panel,.apple-today-main>.card:not(.sales-product-row),.apple-today-side>.card,.apple-debt-grid .card,.apple-workspace .plan-fact-grid>.card,.apple-workspace .sales-customer-list:has(>.apple-customer-row),.apple-order-summary{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{
  .workspace-topbar,.apple-workspace>.workspace-mobile-nav,.workspace-notice,.app-update-banner{display:none!important}
  .apple-workspace::before{display:none}
  .apple-workspace .workspace-body{padding:0!important;max-width:none}
}
/* Visit plan from 1C: an ordered round, drawn like the client list */
.sales-visit-plan{list-style:none;padding:0;margin:10px 0 0}
/* Stock as in the 1C picker: availability group, other cities, supplier orders. */
.sales-stock-1c{display:block;font-size:12px;line-height:1.4;color:var(--muted);margin-top:2px}
.sales-stock-1c-detail{margin-top:12px;display:grid;gap:8px}
.sales-stock-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.sales-stock-table caption{text-align:left;font-weight:650;padding-bottom:6px}
.sales-stock-table th,.sales-stock-table td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:right}
.sales-stock-table th[scope=row],.sales-stock-table thead th:first-child{text-align:left;font-weight:500}
.sales-stock-table th small{display:block;color:var(--muted);font-size:11px}
.sales-stock-table tr.is-selected{background:var(--accent-soft,rgba(0,113,227,.08))}
.sales-stock-table tr.is-selected th[scope=row]{font-weight:650}
.sales-stock-others summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;font-size:13px}
.sales-stock-others ul{margin:0;padding-left:18px;font-size:13px;display:grid;gap:4px}
.sales-stock-others small{display:block;color:var(--muted)}
@media(max-width:520px){.sales-stock-table{font-size:12px}.sales-stock-table th,.sales-stock-table td{padding:5px 4px}}
.customer-contact-1c{display:block;padding:2px 0}.customer-contact-1c small{display:block;color:var(--muted);font-size:12px}
.sales-signs{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.sales-sign{font-size:11px;font-weight:600;padding:2px 6px;border-radius:5px;background:#eef2f4;color:#3f525a}.sales-sign.warn{background:var(--warm);color:var(--amber)}.sales-sign.pg{background:var(--soft);color:var(--primary)}
.sales-product-row[style*="--sign-color"]{box-shadow:inset 4px 0 0 rgb(var(--sign-color))}

/* Lovable mockup alignment (10.11.2026): login fields, plan/fact hero and segments */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.login-redesign .login-form-panel input.field{border-radius:var(--radius-pill);padding:12px 22px}
.login-form-panel form>.btn.primary{border-radius:var(--radius-pill)}
.login-form-panel form>.btn.primary svg{display:none}
.login-form-panel .field-block+.field-block{margin-top:12px}
.plan-query{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:transparent;border:0;box-shadow:none;padding:0}
.plan-query .field-label{margin:0}
.plan-query .select,.plan-query .field{width:auto;min-width:170px;border-radius:var(--radius-pill)}
.plan-query .btn{border-radius:var(--radius-pill)}
.plan-segment{display:inline-flex;gap:2px;padding:4px;border-radius:var(--radius-pill);background:var(--secondary)}
.plan-segment label{position:relative;cursor:pointer}
.plan-segment input{position:absolute;inset:0;opacity:0;cursor:pointer}
.plan-segment span{display:block;padding:8px 16px;border-radius:var(--radius-pill);font-size:14px;color:var(--muted);white-space:nowrap}
.plan-segment input:checked+span{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.plan-segment input:focus-visible+span{outline:2px solid var(--link);outline-offset:2px}
.plan-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px 32px;align-items:center}
.plan-hero>p{grid-column:1/-1;margin:0}
.plan-hero-main{display:flex;align-items:center;gap:24px;min-width:0}
.plan-hero-fact{font-size:clamp(26px,3.4vw,36px);font-weight:700;letter-spacing:-.03em;line-height:1.1;margin:4px 0;font-variant-numeric:tabular-nums}
.plan-ring{width:132px;height:132px;flex:none}
.plan-ring circle{fill:none;stroke-width:11}
.plan-ring-track{stroke:var(--secondary)}
.plan-ring-value{stroke:var(--primary);stroke-linecap:round}
.plan-ring text{font-size:24px;font-weight:700;fill:var(--ink);stroke:none}
.plan-hero-bars{display:grid;gap:14px;min-width:0}
.plan-bar p{display:flex;justify-content:space-between;gap:12px;margin:0 0 6px;font-size:14px}
.plan-bar span{color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}
.plan-bar-track{display:block;width:100%;height:8px}
.plan-bar-bg{fill:var(--secondary);stroke:none}
.plan-bar-fill{fill:var(--primary);stroke:none}
@media(max-width:700px){.plan-hero{grid-template-columns:1fr}.plan-ring{width:104px;height:104px}}
.workspace-nav .nav-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:var(--radius-pill);background:var(--primary);color:#fff;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.page-eyebrow{margin:0 0 6px;color:var(--link);font-size:13px;font-weight:600}
.page-eyebrow+.page-heading{margin-top:0;padding-top:0}
.apple-order-main{min-width:0}
.sales-stock-block{min-width:0;display:grid;gap:2px}
.sales-stock-block .sales-stock-1c{margin:0}

/* UI review 10.11.2026: lighter product row, 44px targets, darker link blue */
.sales-pack-line{display:flex;flex-wrap:wrap;gap:0 12px;align-items:baseline;min-width:0}
.sales-pack-line>p{margin:0}
.sales-product-row.is-compact .sales-pack-line{grid-column:1;grid-row:auto}
.sales-product-row.is-compact .sales-pack-line .sales-order-multiple,.sales-product-row.is-compact .sales-pack-line .sales-packing-info{font-size:12px;line-height:1.35;color:var(--muted)}
.sales-product-row.is-compact .sales-stock-block{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:0 10px;align-items:baseline}
.sales-product-row.is-compact .sales-signs{grid-column:1/-1;margin-top:2px}
.sales-product-row.is-compact .sales-pricing{grid-row:auto;align-self:end}
.sales-v2 .sales-sku,.sales-sku{font-size:12px}
.sales-sign{font-size:12px}
@media(max-width:767px){
  .sales-product-row.is-compact .sales-product-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:2px 6px}
  .sales-product-row.is-compact .sales-row-more[open]{grid-column:1/-1}
}
.sales-product-row.is-compact .sales-unavailable-actions>.sales-help{display:none}
.apple-current-point .sales-visit-cash.primary{background:var(--secondary);color:var(--ink);border-color:transparent;box-shadow:none}
.apple-current-point .subtle-link{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
.apple-current-point .sales-visit-actions{margin-top:8px}
.apple-current-point .sales-visit-actions .btn{min-height:44px;font-size:14px;padding:8px 14px}
.plan-segment span{padding:12px 16px;min-height:44px;display:flex;align-items:center}
.apple-workspace main a[href^="tel:"],.apple-workspace main a[href^="mailto:"]{display:inline-flex;align-items:center;min-height:44px}
.apple-workspace,.login-redesign{--apple-link:oklch(0.47 0.19 255)}
.sales-sign.pg{color:oklch(0.42 0.17 255)}
.apple-current-point .badge{color:oklch(0.42 0.17 255)}
.sales-product-row.is-compact .sales-pack-line.is-no-pack .sales-packing-info{display:none}
.apple-point-more{margin-top:10px}
.apple-point-more>summary{cursor:pointer;min-height:44px;display:inline-flex;align-items:center;color:var(--link);font-size:14px;font-weight:600}
.sales-ship-other{margin-top:8px}
.sales-ship-other>summary{cursor:pointer;min-height:44px;display:inline-flex;align-items:center;color:var(--link);font-size:14px;font-weight:600}
@media(max-width:767px){
  .sales-product-row.is-compact .sales-entry .sales-entry-total{display:none}
  .sales-product-row.is-compact .sales-product-name{font-size:15px;line-height:1.3}
}
.sales-product-row.is-browse{grid-template-columns:minmax(0,1fr)}
.sales-product-row.is-browse .sales-price-label{font-size:12px;color:var(--muted)}

/* Long lists scroll inside their own frame instead of stretching the page. The scrollbar is a thin rounded
   thumb with no track, inset from the frame's rounded corners. */
.scroll-frame,.apple-workspace .sales-customer-list.scroll-frame{max-height:max(340px,calc(100dvh - 300px));overflow-y:auto;overscroll-behavior:contain;align-content:start}
.scroll-frame::-webkit-scrollbar{width:10px}
.scroll-frame::-webkit-scrollbar-track{background:transparent;margin:18px 0}
.scroll-frame::-webkit-scrollbar-button{display:none;width:0;height:0}
.scroll-frame::-webkit-scrollbar-corner{background:transparent}
.scroll-frame::-webkit-scrollbar-thumb{background:rgba(60,60,67,.24);border-radius:999px;border:3px solid transparent;background-clip:padding-box}
.scroll-frame:hover::-webkit-scrollbar-thumb{background-color:rgba(60,60,67,.42)}
/* Browsers without the pseudo-elements above (Firefox) get the standard thin scrollbar instead. */
@supports not selector(::-webkit-scrollbar){.scroll-frame,.apple-workspace .sales-customer-list.scroll-frame{scrollbar-width:thin;scrollbar-color:rgba(60,60,67,.28) transparent}}
/* Frames made of separate cards keep room for the cards' shadows. */
.customer-grid.scroll-frame,.sales-saved-orders.scroll-frame{padding:4px 6px 12px 4px;margin-left:-4px;margin-right:-6px}
details.scroll-frame:not([open]){overflow:visible}
/* The heading of an open breakdown stays in place; it covers the frame's own padding with an opaque band. */
.apple-workspace details.card.plan-detail[open]{padding-top:0}
details.plan-detail[open]>summary{position:sticky;top:0;z-index:1;background:#fff;margin:0 -24px 8px;padding:20px 24px 12px;border-bottom:1px solid var(--line)}
@media (max-width:767px){.scroll-frame,.apple-workspace .sales-customer-list.scroll-frame{max-height:max(300px,calc(100dvh - 330px))}}

/* Less empty space above the content: the page starts right under the top bar. */
@media (min-width:768px){
  .apple-workspace .workspace-body{padding-top:24px}
  .apple-workspace .page-heading,.apple-workspace .mobile-page-heading,.apple-workspace .sales-composition-heading{margin-bottom:20px}
  .apple-workspace .page-heading h1,.apple-workspace .mobile-page-heading h1,.apple-workspace .sales-composition-heading h1{font-size:36px}
  .apple-workspace .page-heading p,.apple-workspace .mobile-page-heading p{font-size:16px;margin-top:4px}
}
/* A heading takes focus when a page opens (for screen readers); it is not a control and shows no ring. */
.apple-workspace h1[tabindex="-1"]:focus{outline:none;box-shadow:none}

/* The chosen point on Today: one card — name and terms, one row of actions, three numbers. */
.apple-workspace .point-card{padding:24px 28px}
.point-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.point-card-head>div{min-width:0}
.point-card-label{margin:0 0 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.apple-workspace .point-card h2{margin:0;font-size:24px;font-weight:600;line-height:1.25}
.apple-workspace .point-card .sales-context-client{display:inline;min-height:0;font-size:inherit;font-weight:inherit;line-height:inherit;text-decoration:none;color:var(--ink)}
.apple-workspace .point-card .sales-context-client:hover{text-decoration:underline}
.point-card-address{margin:6px 0 0;font-size:15px;line-height:1.45;color:var(--muted)}
.point-card-terms{margin:2px 0 0;font-size:13px;line-height:1.45;color:var(--muted)}
.apple-workspace .point-card .point-card-head>.subtle-link{flex:none;min-height:32px;padding:0 4px;font-size:14px}
.point-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:20px}
.point-card-actions>.sales-visit-actions{display:contents}
.apple-workspace .point-card .point-card-actions .btn{min-height:44px;padding:10px 18px;font-size:14px;flex:0 0 auto;margin:0}
.apple-workspace .point-card .point-card-actions .btn.primary:not(.sales-visit-cash){font-size:15px;padding:10px 22px}
.point-card .sales-quick-repeat{margin-top:12px}
.point-card-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--line);gap:1px}
.apple-workspace .point-card .point-stat{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:0;padding:12px 16px;border:0;border-radius:0;background:#fff;color:var(--ink);box-shadow:none;text-align:left;font-size:13px;font-weight:400}
.apple-workspace .point-card .point-stat:hover{background:var(--soft,#f5f8ff)}
.point-stat strong{font-size:22px;font-weight:600;line-height:1.2}
.point-stat span{color:var(--muted)}
.point-stat .point-stat-dot{display:none}
.point-card .sales-issues{margin-top:12px}
.point-card-foot{margin:14px 0 0;font-size:12px;color:var(--muted)}
@media (max-width:767px){.apple-workspace .point-card{padding:18px 16px}.apple-workspace .point-card h2{font-size:20px}.apple-workspace .point-card .point-stat{padding:10px 10px}.point-stat strong{font-size:18px}}

/* «⋯» menu of the chosen point: the less frequent actions as a small floating list. */
.point-card-actions>.sales-visit-actions{display:none}
.point-menu{position:relative}
.apple-workspace .point-card .point-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:44px;min-width:44px;height:44px;padding:0;border-radius:999px;list-style:none;cursor:pointer}
.point-menu-toggle::-webkit-details-marker{display:none}
.point-menu-toggle::marker{content:''}
.point-menu-toggle>span{width:4px;height:4px;border-radius:50%;background:currentColor}
.point-menu[open]>.point-menu-toggle{background:var(--ink);color:#fff}
.point-menu-list{position:absolute;z-index:30;top:calc(100% + 8px);left:0;min-width:240px;padding:6px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 32px rgba(15,23,42,.14),0 2px 6px rgba(15,23,42,.06);display:grid;gap:2px}
.point-menu-list>.sales-visit-actions{display:contents}
.apple-workspace .point-card .point-menu-list .btn{display:flex;justify-content:flex-start;width:100%;min-height:44px;padding:10px 14px;border:0;border-radius:10px;background:transparent;color:var(--ink);box-shadow:none;font-size:15px;font-weight:400;text-align:left}
.apple-workspace .point-card .point-menu-list .btn:hover,.apple-workspace .point-card .point-menu-list .btn:focus-visible{background:var(--secondary,#f1f2f4)}
.apple-workspace .point-card{overflow:visible}
@media (max-width:767px){.point-menu-list{left:auto;right:0}}
/* Back from the chosen point to the list of all points. */
.point-back{margin:-8px 0 12px}
.apple-workspace .point-back-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 14px 6px 8px;border:0;border-radius:999px;background:transparent;color:var(--link);box-shadow:none;font-size:15px;font-weight:500}
.apple-workspace .point-back-btn:hover{background:var(--secondary,#f1f2f4)}
.point-back-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.apple-workspace .point-card .point-menu-toggle>span{display:block;flex:none;width:4px;height:4px;border-radius:50%;background:currentColor}
.apple-workspace .point-card .point-menu[open]>.point-menu-toggle{background:var(--secondary,#e9eaee);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
/* Orders page: the search field sits above the list. */
.sales-order-search{margin-top:16px}
.sales-order-search+.sales-result-count{margin:10px 2px 8px}
/* A search field shows one focus ring — on its rounded frame, not a second one on the input inside. */
.apple-workspace label.search input:focus,.apple-workspace label.search input:focus-visible{outline:none;box-shadow:none}

/* Orders page: filters in one row, page numbers under the list. */
.order-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin-top:12px}
.order-filter{display:grid;gap:4px;font-size:12px;color:var(--muted)}
.apple-workspace .order-filter .field,.apple-workspace .order-filter .select{min-height:40px;height:40px;padding:6px 12px;border-radius:12px;font-size:14px;width:auto;min-width:0}
.apple-workspace .order-filters .text-btn{min-height:40px;padding:0 8px;background:transparent;border:0;box-shadow:none;color:var(--link);font-size:14px}
.order-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:20px 0 4px}
.apple-workspace .order-page{min-width:40px;min-height:40px;padding:6px 12px;border-radius:999px;font-size:14px;background:transparent;border:1px solid transparent;box-shadow:none;color:var(--ink)}
.apple-workspace .order-page:hover:not(:disabled){background:var(--secondary,#f1f2f4)}
.apple-workspace .order-page.is-current{background:var(--ink);color:#fff}
.apple-workspace .order-page:disabled{opacity:.4}
.order-page-gap{color:var(--muted);padding:0 2px}

/* «Борги»: totals on top, clients as a table. */
.debt-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0 0 16px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--line)}
.debt-summary>div{display:grid;gap:2px;padding:14px 20px;background:#fff}
.debt-summary span{font-size:13px;color:var(--muted)}
.debt-summary strong{font-size:26px;font-weight:600;line-height:1.2}
.debt-summary small{font-size:12px;color:var(--muted)}
.debt-summary .is-overdue strong,.debt-table .is-overdue{color:#c62828}
.apple-workspace .card.debt-table-card{padding:0;overflow:hidden}
.debt-table{width:100%;border-collapse:collapse;font-size:15px}
.debt-table th{padding:12px 20px;text-align:left;font-size:12px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--muted);background:rgba(0,0,0,.025);border-bottom:1px solid var(--line);white-space:nowrap}
.debt-table td{padding:12px 20px;border-bottom:1px solid var(--line);vertical-align:middle}
.debt-table tbody tr:last-child td{border-bottom:0}
.debt-table tbody tr{position:relative}
.debt-table tbody tr:hover{background:rgba(0,113,227,.05)}
.debt-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.debt-table td.num{font-weight:600}
.debt-table td small{display:block;margin-top:2px;font-size:13px;color:var(--muted)}
.debt-table .debt-route{color:var(--muted);font-size:13px}
.debt-row-link{color:var(--ink);font-weight:600;text-decoration:none}
.debt-row-link::after{content:'';position:absolute;inset:0}
@media (max-width:767px){.debt-table .debt-route{display:none}.debt-table th,.debt-table td{padding:10px 12px}.debt-table{font-size:14px}.debt-summary strong{font-size:20px}.debt-summary>div{padding:12px 14px}}
.apple-workspace .sales-v2 .debt-summary{padding:0;gap:1px;box-shadow:none}
.apple-workspace .sales-v2 .debt-summary>div{border-radius:0;box-shadow:none;margin:0}
.apple-workspace .debt-table .debt-row-link{color:var(--ink)}
.point-back.is-top{margin:-6px 0 6px}

/* The chosen point looks the same on every page: the Today head as a card of its own. */
.apple-workspace .point-card-solo{margin:0 0 16px}
.apple-workspace .point-card-solo .point-card-head>.subtle-link{align-self:center}

/* Orders page: «Замовлення / Чернетки» switch and the drafts table. */
.order-tabs{display:inline-flex;gap:4px;padding:4px;margin:0 0 16px;border-radius:999px;background:var(--secondary,#f1f2f4)}
.apple-workspace .order-tab{min-height:36px;padding:6px 18px;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--ink);font-size:14px;font-weight:500}
.apple-workspace .order-tab.is-current{background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.draft-table .draft-when{color:var(--muted);font-size:13px;white-space:nowrap}
.draft-table .draft-actions{text-align:right;white-space:nowrap}
.apple-workspace .draft-table .draft-actions .btn{min-height:36px;padding:6px 14px;font-size:14px;margin-left:6px}
.apple-workspace .draft-table .draft-actions .text-btn{background:transparent;border:0;box-shadow:none;color:var(--muted)}
.apple-workspace .draft-table .draft-actions .text-btn.is-danger{color:#c62828;font-weight:600}
.draft-table tbody tr:hover{background:transparent}
/* «Видалити чернетку?» — its own row under the draft, so the columns keep their width (owner 24.11.2026: the table jumped) */
.draft-table tr.draft-confirm-row td{text-align:right;padding-top:0}
.draft-table tr:has(+ tr.draft-confirm-row) td{border-bottom:0}
.draft-table .draft-confirm-row .draft-confirm{margin-left:0;flex-wrap:wrap;justify-content:flex-end}
.draft-only{font-size:14px;color:var(--muted);align-self:center}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:767px){.draft-table .draft-when{display:none}.draft-table .draft-actions .btn{display:block;margin:0 0 4px auto}}

/* Shown for a moment while a reloaded page opens the workspace again. */
.login-resume{min-height:60vh;display:grid;place-items:center;color:var(--muted);font-size:15px}

/* Point card: what can be done with the point itself — another point, its terms, its details. */
.point-card-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.apple-workspace .point-card .point-card-links .btn{min-height:36px;padding:6px 14px;border-radius:999px;font-size:13px;font-weight:500;background:var(--secondary,#f1f2f4);border:0;box-shadow:none;color:var(--ink)}
.apple-workspace .point-card .point-card-links .btn:hover{background:#e6e8ec}

/* The 1C dollar rate in the header and the ₴/$ switch of shown prices in the picker. */
.workspace-rate{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:var(--secondary,#f1f2f4);color:var(--ink);font-size:13px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.price-currency{display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:var(--secondary,#f1f2f4);flex:none}
.apple-workspace .price-currency .chip{min-width:38px;min-height:38px;padding:0 10px;border:0;border-radius:999px;background:transparent;box-shadow:none;font-size:15px;font-weight:600;color:var(--muted)}
.apple-workspace .price-currency .chip.active{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(15,23,42,.12)}

/* Clients list: a row offers the point's details and choosing it; the chosen one is marked. */
.apple-customer-actions{display:flex;flex:none;gap:8px;align-items:center}
.apple-workspace .apple-customer-actions .btn{min-height:40px;padding:8px 16px;border-radius:999px;font-size:14px;white-space:nowrap}
.apple-customer-row.is-current{background:rgba(0,113,227,.05)}
.apple-customer-row .badge{vertical-align:middle;margin-left:6px;font-size:12px}
div.apple-customer-row:hover{background:transparent}
div.apple-customer-row.is-current:hover{background:rgba(0,113,227,.05)}
@media (max-width:767px){.apple-customer-row{flex-wrap:wrap}.apple-customer-actions{width:100%;padding-left:56px}.apple-workspace .apple-customer-actions .btn{flex:1}}

/* Rows of the clients list size themselves: as grid tracks inside the scrolling frame they were squeezed to 80px. */
.apple-workspace .sales-customer-list:has(>.apple-customer-row){display:block}
.apple-customer-row{height:auto}
@media (max-width:767px){.apple-workspace .apple-customer-actions .btn{flex:none;min-height:36px;padding:6px 16px}.apple-customer-row{row-gap:10px}}

/* The order number the agent names to the office and 1C finds the document by. */
.order-number{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}

/* Orders page: every point or only the chosen one. */
.order-point-switch{margin-left:8px;max-width:100%}
.apple-workspace .order-point-switch .order-tab{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:767px){.order-point-switch{margin-left:0;display:flex}.apple-workspace .order-point-switch .order-tab{max-width:none;flex:1;min-width:0}}
.apple-workspace .order-point-switch .order-tab{max-width:none}

/* ------------------------------------------------------------------------------------------------------------------
   Goods as rows (the default view; «З фото» keeps tiles): name, stock, price and quantity in one line, the rest of
   the product opens with «Ще». The markup is the same as for tiles; only the layout differs. The row adapts to the
   width of the list itself (container queries), not of the window: side columns come and go. */
.apple-workspace .sales-workspace .sales-results:not(.with-photos){display:block;background:var(--apple-card,#fff);border:1px solid var(--line);border-radius:20px;overflow:visible;container-type:inline-size}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:12px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;min-height:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:last-child{border-bottom:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:hover{background:rgba(0,113,227,.035)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:has(.sales-quantity){background:rgba(0,113,227,.06)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-info{display:contents}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-name{grid-column:1 / -1;display:block;min-height:0;padding:0;text-decoration:none;color:var(--ink)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-name>span:first-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;font-weight:500;line-height:1.3}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-name .sales-sku{display:block;margin-top:2px;font-size:12px;font-weight:400;color:var(--muted)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-signs{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:4px;margin:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-signs .sales-sign{font-size:11px;padding:1px 6px}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-stock-block{grid-column:1;display:grid;gap:2px;margin:0;font-size:13px;line-height:1.35}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-stock-block .sales-stock-1c{font-size:12px;color:var(--muted)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-pricing{grid-column:2;display:block;margin:0;padding:0;text-align:right;border:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-price{margin:0;font-size:16px;font-weight:600;white-space:nowrap}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-price small{font-size:12px;font-weight:400;color:var(--muted)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-line-status{display:block;margin:2px 0 0;font-size:12px;color:var(--muted)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-line-status strong{font-size:12px;font-weight:600;color:var(--ink)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;width:auto;margin:0;padding:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-entry,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-quantity{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;margin:0;padding:0;width:auto;max-width:100%}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .quantity-control{display:grid;grid-template-columns:36px 52px 36px;gap:4px;flex:none;min-width:0;width:auto;margin:0;order:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .quantity-control .quantity-step{min-width:36px;width:36px;min-height:36px;height:36px;padding:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .quantity-control .qty-input{width:52px;min-width:0;min-height:36px;height:36px;padding:4px;text-align:center}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-options{display:flex;flex:none;gap:4px;margin:0;width:auto;order:1}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-choice{display:inline-flex;flex:none;flex-direction:column;align-items:center;justify-content:center;min-height:36px;height:36px;min-width:0;width:auto;padding:0 8px;border-radius:10px;font-size:12px;line-height:1.1;margin:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-choice small{font-size:10px;font-weight:400;opacity:.8}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-entry-add{flex:none;order:2;min-height:36px;padding:6px 14px;font-size:14px;margin:0;width:auto}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-entry .inline-error,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-quantity .inline-error,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-entry .sales-conversion,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-quantity .sales-conversion{order:3;flex-basis:100%;margin:2px 0 0;text-align:right;font-size:12px}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-entry .inline-error:empty,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-quantity .inline-error:empty{display:none}
/* What a row does not need at a glance; «Ще» opens it. */
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-specs,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-pack-line,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-entry-total,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-label,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-origin,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-info>.sales-help,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row>.sales-unavailable-actions,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-next-product{display:none}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open]) .sales-specs:not(:empty),.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open]) .sales-product-info>.sales-help,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open])>.sales-unavailable-actions{display:block;grid-column:1 / -1;margin:6px 0 0;font-size:13px}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open]) .sales-pack-line{display:flex;flex-wrap:wrap;gap:4px 16px;grid-column:1 / -1;margin:6px 0 0;font-size:13px}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row>.sales-promo,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row>.sales-reason,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-info>.inline-error{grid-column:1 / -1;margin:4px 0 0;font-size:12px}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more{position:relative;flex:none;margin:0;width:auto;display:block}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more>summary{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:0 8px;border-radius:999px;background:var(--secondary,#f1f2f4);font-size:13px;list-style:none;cursor:pointer;color:var(--ink)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more>summary::-webkit-details-marker{display:none}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more>summary::after{content:none}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more[open]>div{position:absolute;z-index:20;right:0;top:calc(100% + 6px);min-width:220px;display:grid;gap:2px;padding:6px;border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 32px rgba(15,23,42,.14)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more[open]>div>*{display:flex;align-items:center;justify-content:flex-start;min-height:40px;width:100%;padding:6px 12px;border:0;border-radius:10px;background:transparent;box-shadow:none;font-size:14px;text-decoration:none;color:var(--ink)}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more[open]>div>*:hover{background:var(--secondary,#f1f2f4)}
/* A list at least 720px wide: name | stock | price over the controls. */
@container (min-width:720px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row{grid-template-columns:minmax(120px,1fr) 165px max-content;gap:4px 14px;padding:8px 14px}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-name{grid-column:1;grid-row:1 / span 2;align-self:center}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-stock-block{grid-column:2;grid-row:1 / span 2;align-self:center}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-signs{grid-column:3;grid-row:1;justify-self:start;align-self:center;flex-wrap:nowrap;overflow:hidden;max-width:calc(100% - 130px)}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-pricing{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:baseline;gap:10px}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-line-status{margin:0}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-actions{grid-column:3;grid-row:2;flex-wrap:nowrap}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-entry,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-quantity{flex-wrap:nowrap}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-entry:has(.inline-error:not(:empty)),.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-entry:has(.sales-conversion:not([hidden])),.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-quantity:has(.inline-error:not(:empty)),.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-quantity:has(.sales-conversion:not([hidden])){flex-wrap:wrap}
}
/* A list at least 1040px wide: everything in one line. */
@container (min-width:1040px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row{grid-template-columns:minmax(220px,1fr) 200px 130px max-content}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-name{grid-row:1;align-self:end}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-signs{grid-column:1;grid-row:2;align-self:start;max-width:none;flex-wrap:wrap}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-pricing{grid-column:3;grid-row:1 / span 2;display:block;align-self:center}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-actions{grid-column:4;grid-row:1 / span 2}
}
/* The point card in one line above the goods. */
.apple-workspace .point-card-compact{padding:10px 16px;margin:0 0 12px}
.point-card-compact .point-card-label,.point-card-compact .point-card-address{display:none}
.point-card-compact .point-card-head,.point-card-compact .point-card-head>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;width:100%}
.apple-workspace .point-card-compact h2{font-size:16px;line-height:1.3}
.point-card-compact .point-card-terms{margin:0}
.point-card-compact .point-card-links{margin:0}
.apple-workspace .point-card.point-card-compact .point-card-links .btn{min-height:32px;padding:4px 12px}
@media (min-width:900px){
  .point-card-compact .point-card-head>div{flex-wrap:nowrap}
  .apple-workspace .point-card-compact h2{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .point-card-compact .point-card-terms{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .point-card-compact .point-card-links{flex:none;flex-wrap:nowrap;margin-left:auto}
}
/* Catalog: the groups tree beside the goods on a wide screen, above them otherwise. Goods need the width, so the
   catalog and the order page use a wider page than the rest. */
.apple-catalog-layout.has-groups>.apple-catalog-controls{grid-column:1 / -1;min-width:0}
@media (min-width:1200px){
  .apple-workspace .workspace-body:has(.sales-catalog-workspace),.apple-workspace .workspace-body:has(.sales-order-workspace){max-width:1520px}
  .apple-workspace:has(.sales-catalog-workspace) .workspace-header-inner,.apple-workspace:has(.sales-order-workspace) .workspace-header-inner{max-width:1520px}
  .apple-catalog-layout.has-groups{grid-template-columns:250px minmax(0,1fr) 300px}
  .apple-catalog-layout.has-groups>.apple-catalog-controls{grid-column:auto;position:sticky;top:84px;max-height:calc(100dvh - 104px);overflow:auto}
}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row .sales-quantity .quantity-control{grid-template-columns:36px 52px 36px;gap:4px;width:auto;min-width:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row .sales-quantity .quantity-control .qty-input{width:52px;min-width:0;height:36px;min-height:36px}
/* A narrow list (a phone): name, then stock beside the price, then the controls; «Ще» in the corner of the row. */
@container (max-width:719px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row{position:relative}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-name{grid-row:1;padding-right:44px}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-stock-block{grid-row:2}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-pricing{grid-row:2;align-self:end}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-signs{grid-row:3}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-actions{grid-row:4}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more{position:absolute;top:8px;right:8px}
}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-signs .sales-sign{white-space:nowrap}
/* Even rows: every column has its own fixed width, so stock, price and the buttons stand one under another in all
   rows. Three lines: price / controls / the product's marks under its name; name and stock take the first two.
   Unit choice stands before the stepper, which keeps its place. */
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-options{order:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .quantity-control{order:1}
@container (min-width:720px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row{grid-template-columns:minmax(120px,1fr) 160px 372px;grid-template-rows:auto auto auto;gap:4px 14px;padding:10px 14px;align-items:start}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-name{grid-column:1;grid-row:1 / span 2;align-self:start}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-stock-block{grid-column:2;grid-row:1 / span 3;align-self:start}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-pricing{grid-column:3;grid-row:1;justify-self:end;align-self:start}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-actions{grid-column:3;grid-row:2;justify-self:end;align-self:start}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-signs{grid-column:1;grid-row:3;justify-self:start;align-self:start;flex-wrap:wrap;overflow:visible;max-width:none;margin-top:2px}
}
@container (min-width:860px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row{grid-template-columns:minmax(160px,1fr) 220px 372px}
}
/* A wide list: name with its marks | stock | price | controls, all top-aligned in one line. */
@container (min-width:1000px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row{grid-template-columns:minmax(200px,1fr) 210px 120px 372px;grid-template-rows:auto auto}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-name{grid-row:1}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-signs{grid-column:1;grid-row:2}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-stock-block{grid-row:1 / span 2}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-pricing{grid-column:3;grid-row:1 / span 2;align-self:start;justify-self:end;padding-top:8px}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-actions{grid-column:4;grid-row:1 / span 2;align-self:start}
}
}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-choice{max-width:76px;overflow:hidden}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-choice span,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-unit-choice small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Order multiplicity is always seen, under the quantity; pack and box details stay behind «Ще». */
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row .sales-pack-line{display:block;grid-column:1 / -1;margin:0;font-size:12px;line-height:1.3;color:var(--muted);text-align:right}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row .sales-pack-line p{margin:0}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row .sales-pack-line .sales-packing-info{display:none}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open]) .sales-pack-line{display:block;grid-column:1 / -1;margin:0;font-size:12px}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open]) .sales-pack-line .sales-packing-info{display:block}
@container (max-width:719px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row .sales-pack-line{grid-row:5}
}
@container (min-width:720px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row .sales-pack-line,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open]) .sales-pack-line{grid-column:3;grid-row:3;justify-self:end;padding-right:42px}
}
@container (min-width:1000px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-actions{grid-row:1}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row .sales-pack-line,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open]) .sales-pack-line{grid-column:4;grid-row:2}
}

/* Catalog as a reference: rows without quantity; one button into the order when a point is chosen. */
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse{grid-template-columns:minmax(0,1fr) auto}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-product-actions .btn{min-height:36px;padding:6px 14px;font-size:14px;margin:0;width:auto;white-space:nowrap}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-price-label{display:block;font-size:11px;color:var(--muted)}
@container (min-width:720px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse{grid-template-columns:minmax(160px,1fr) 240px 130px 140px;grid-template-rows:auto auto}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-product-name{grid-column:1;grid-row:1}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-signs{grid-column:1;grid-row:2}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-stock-block{grid-column:2;grid-row:1 / span 2}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-pricing{grid-column:3;grid-row:1 / span 2;display:block;justify-self:end;align-self:start;padding-top:0}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-product-actions{grid-column:4;grid-row:1 / span 2;justify-self:end;align-self:start}
}
@media (min-width:1200px){.apple-catalog-layout.has-groups.no-summary{grid-template-columns:250px minmax(0,1fr)}}
.apple-workspace .point-card .point-card-links .btn[data-action="sales-all-points"]{background:transparent;color:var(--muted)}

/* The chosen point: one card on every page, a cross in its corner drops the point; without a point it says so. */
.apple-workspace .point-card{position:relative}
.point-card-reset{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.point-card-reset:hover{background:var(--secondary,#f1f2f4);color:var(--ink)}
.point-card-reset svg{width:16px;height:16px}
.apple-workspace .point-card-compact{padding-right:44px}
.point-card-empty .point-card-head{justify-content:space-between}
.point-card-empty .point-card-head>div{width:auto}
.apple-workspace .point-card-empty h2{color:var(--muted);font-weight:500}
.apple-workspace .point-card .point-card-choose{min-height:36px;padding:6px 18px;font-size:14px;margin:0;width:auto}
.apple-workspace .point-card-empty{padding-right:16px}
/* The catalog shows multiplicity and packing as facts of the product, under its name. */
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-pack-line{grid-column:1 / -1;grid-row:auto;justify-self:start;text-align:left;padding:0;display:flex;flex-wrap:wrap;gap:2px 14px}
.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-pack-line .sales-packing-info{display:block}
@container (min-width:720px){
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse{grid-template-rows:auto auto auto}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-pack-line{grid-column:1;grid-row:3}
  .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-stock-block,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-pricing,.apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row.is-browse .sales-product-actions{grid-row:1 / span 3}
}
.apple-workspace .point-card-empty h2{max-width:none;overflow:visible;white-space:normal;flex:1 1 auto}
.point-card-empty .point-card-head>div{flex:1 1 auto}

/* «Скинути точку» is the last, quiet button of the card; «Точку не обрано» is never cut. */
.apple-workspace .point-card .point-card-links .btn.point-card-reset{position:static;width:auto;height:auto;border-radius:999px;background:transparent;color:var(--muted);padding:4px 10px}
.apple-workspace .point-card .point-card-links .btn.point-card-reset:hover{background:var(--secondary,#f1f2f4);color:var(--ink)}
.apple-workspace .point-card-compact{padding-right:16px}
.apple-workspace .point-card.point-card-empty h2{flex:1 1 auto;max-width:none;min-width:0;overflow:visible;text-overflow:clip;white-space:normal}
.apple-workspace .point-card.point-card-empty .point-card-head,.apple-workspace .point-card.point-card-empty .point-card-head>div{flex-wrap:nowrap}
.apple-workspace .point-card.point-card-empty .point-card-head>div{flex:1 1 auto;width:auto}
/* Below a wide screen the terms keep their own line instead of being squeezed out by the buttons. */
@media (min-width:900px) and (max-width:1299px){
  .point-card-compact:not(.point-card-empty) .point-card-head>div{flex-wrap:wrap}
  .apple-workspace .point-card-compact:not(.point-card-empty) h2{max-width:60%}
  .point-card-compact:not(.point-card-empty) .point-card-terms{order:3;flex-basis:100%}
}

/* Plan / fact in the web: a month switch and the 1C plan with its percent. */
.plan-month{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.plan-month .field-label{margin:0}
.plan-month-nav{display:inline-flex;align-items:center;gap:6px}
.plan-month-nav strong{min-width:150px;text-align:center;font-size:17px}
.apple-workspace .plan-month .btn{min-height:40px;padding:6px 16px;margin:0;width:auto}
.apple-workspace .plan-month-nav .btn{min-width:44px;padding:6px 0;font-size:20px;line-height:1}

/* ===== Order as a document, picker beside it (owner, 13.11.2026) ===== */
.sales-doc{border:2px solid var(--primary);border-radius:16px;background:#fff;overflow:hidden;margin:12px 0 16px}
.sales-doc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);background:linear-gradient(color-mix(in oklab,var(--primary) 7%,#fff),#fff)}
.sales-doc-head h2{font-size:19px;line-height:1.3;margin:0}
.sales-doc-head .sales-help{margin:2px 0 0;font-size:13px}
.sales-doc-count{flex:none;padding:3px 10px;border-radius:999px;background:color-mix(in oklab,var(--primary) 12%,#fff);color:var(--primary);font-size:13px;font-weight:600;white-space:nowrap}
.sales-composition .sales-composition-shortcuts.sales-doc-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 18px;margin:0;border-bottom:1px solid var(--line)}
.sales-doc-tools .sales-doc-pick{font-size:16px;padding-inline:20px}
.sales-doc-tools-rest{margin-left:auto;display:flex;flex-wrap:wrap;gap:4px}
.sales-doc .sales-composition-search{padding:10px 18px;border-bottom:1px solid var(--line)}
.sales-doc>.notice{margin:10px 18px}
.sales-doc .sales-composition-lines{display:block}
.sales-doc .sales-composition-lines>.empty{padding:28px 18px 8px}
.sales-doc .sales-quick-repeat{padding:0 18px 20px;margin:0;text-align:center}
.sales-doc .sales-product-row.is-composition-line,.apple-workspace .sales-doc .sales-v2 .sales-product-row.is-composition-line,.apple-workspace .sales-v2 .sales-doc .sales-product-row.is-composition-line{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;padding:12px 18px;margin:0}
.sales-doc .undo-notice{margin:10px 18px}
.sales-doc-foot{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px 16px;padding:14px 18px;background:color-mix(in oklab,var(--primary) 3%,#fafafb);font-size:14px;color:var(--muted)}
.sales-doc-foot strong{font-size:20px;color:var(--ink);font-variant-numeric:tabular-nums}
.sales-pick-heading>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sales-pick-heading .sales-pick-back{flex:none}
.sales-product-row.is-in-order,.apple-workspace .sales-v2 .sales-product-row.is-in-order{background:color-mix(in oklab,var(--primary) 8%,#fff);box-shadow:inset 4px 0 0 var(--primary)}
.sales-product-row.is-compact.is-in-order .sales-in-order{display:inline;color:var(--primary);font-weight:600}
.apple-order-summary.sales-doc-side{border:2px solid var(--primary)}
.sales-doc-side-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.apple-order-summary .sales-doc-side-head h2{margin:0}
.apple-order-summary.sales-doc-side .apple-summary-lines>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;padding:6px 0;margin:0;border-bottom:1px solid var(--line)}
.apple-order-summary.sales-doc-side .apple-summary-lines strong{color:inherit;font-weight:600;max-width:none;font-variant-numeric:tabular-nums}
.apple-order-summary.sales-doc-side .apple-summary-lines small{grid-column:1/-1;color:var(--muted);font-size:13px}
@media(max-width:600px){.sales-doc-head,.sales-composition .sales-composition-shortcuts.sales-doc-tools,.sales-doc .sales-composition-search,.sales-doc-foot{padding-inline:12px}.sales-doc .sales-product-row.is-composition-line,.apple-workspace .sales-v2 .sales-doc .sales-product-row.is-composition-line{padding:12px}.sales-doc-tools .sales-doc-pick{flex:1 1 100%;justify-content:center}.sales-doc-tools-rest{margin-left:0}}
/* table-like lines of the order document on a wide screen */
@media(min-width:900px){
  .sales-doc .sales-product-row.is-composition-line,.apple-workspace .sales-v2 .sales-doc .sales-product-row.is-composition-line{display:grid;grid-template-columns:56px minmax(0,1fr) 230px 190px;gap:2px 16px;align-items:start}
  .sales-doc .sales-product-row.is-composition-line:not(.has-photo){grid-template-columns:0 minmax(0,1fr) 230px 190px}
  .sales-doc .is-composition-line>.sales-product-info{display:contents}
  .sales-doc .is-composition-line>.product-thumb,.sales-doc .is-composition-line>:first-child:not(.sales-product-info){grid-column:1;grid-row:1/span 4;width:56px;height:56px;min-height:0}
  .sales-doc .is-composition-line .sales-product-info>*{grid-column:2}
  .sales-doc .is-composition-line .sales-product-info>.sales-product-name{min-height:0}
  .sales-doc .is-composition-line .sales-product-info>.sales-composition-prices{grid-column:3;grid-row:1/span 4;border-top:0;padding-top:0;align-self:center;text-align:right}
  .sales-doc .is-composition-line>.sales-product-actions{grid-column:4;grid-row:1/span 4;align-self:center}
  .sales-doc .is-composition-line>.sales-promo,.sales-doc .is-composition-line>.sales-unavailable-actions,.sales-doc .is-composition-line>.sales-reason{grid-column:2/-1}
  .sales-doc .is-composition-line .sales-row-more:not([open]){position:static;margin-top:4px}
}
.sales-product-row.is-in-order .sales-line-status{display:flex;align-items:baseline;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.sales-product-row.is-compact.is-in-order .sales-in-order::before{content:"✓ "}

/* ===== Compact pass (owner, 13.11.2026): a working tool, not a showcase — paddings and radii a third smaller, one
   solid blue action on a page, one height for buttons and fields. The web look only: the tablet theme has its own. ===== */
html:not([data-theme]){--radius:12px;--radius-large:16px;--radius-control:10px}
html:not([data-theme]) .apple-workspace .panel,html:not([data-theme]) .apple-workspace .card,html:not([data-theme]) .apple-workspace .today-card,html:not([data-theme]) .apple-workspace .stat,html:not([data-theme]) .apple-workspace .invoice-card,
html:not([data-theme]) .apple-workspace .sales-context,html:not([data-theme]) .apple-workspace .sales-product-row,html:not([data-theme]) .apple-workspace .sales-v2 .sales-product-row.is-compact,
html:not([data-theme]) .apple-workspace .sales-catalog-tree,html:not([data-theme]) .apple-workspace .sales-catalog-tree>summary,html:not([data-theme]) .apple-workspace .sales-customer-list:has(>.apple-customer-row),
html:not([data-theme]) .apple-order-summary,html:not([data-theme]) .debt-summary,html:not([data-theme]) .workspace-menu-panel,html:not([data-theme]) .apple-workspace .sales-workspace .sales-results:not(.with-photos){border-radius:16px}
html:not([data-theme]) .apple-workspace .sales-catalog-tree[open]>summary{border-radius:16px 16px 0 0}
html:not([data-theme]) .apple-workspace .card:not(.sales-product-row),html:not([data-theme]) .apple-workspace .today-card,html:not([data-theme]) .apple-workspace .stat,html:not([data-theme]) .apple-workspace .panel-head,html:not([data-theme]) .apple-workspace .panel-body,html:not([data-theme]) .apple-order-summary,html:not([data-theme]) .apple-workspace .sales-debt-summary{padding:16px}
html:not([data-theme]) .apple-workspace .point-card{padding:14px 18px}
html:not([data-theme]) .apple-catalog-layout,html:not([data-theme]) .apple-today-grid,html:not([data-theme]) .apple-today-main,html:not([data-theme]) .apple-today-side,html:not([data-theme]) .apple-debt-grid{gap:16px}
html:not([data-theme]) .apple-workspace .page-heading,html:not([data-theme]) .apple-workspace .mobile-page-heading,html:not([data-theme]) .apple-workspace .sales-composition-heading{margin-bottom:16px;gap:12px}
@media(min-width:1024px){
  html:not([data-theme]) .apple-workspace .workspace-body{padding-top:24px}
  html:not([data-theme]) .apple-workspace .page-heading h1,html:not([data-theme]) .apple-workspace .mobile-page-heading h1,html:not([data-theme]) .apple-workspace .sales-composition-heading h1{font-size:32px;letter-spacing:-.02em}
  /* one height for every control */
  html:not([data-theme]) .apple-workspace .btn,html:not([data-theme]) .apple-workspace .field,html:not([data-theme]) .apple-workspace .select,html:not([data-theme]) .apple-workspace input.qty-input,html:not([data-theme]) .apple-workspace .quantity-step,html:not([data-theme]) .apple-workspace .sales-search-field input,html:not([data-theme]) .apple-workspace .sales-row-more>summary{min-height:40px;height:auto}
  html:not([data-theme]) .apple-workspace input.field,html:not([data-theme]) .apple-workspace select.select,html:not([data-theme]) .apple-workspace input.qty-input,html:not([data-theme]) .apple-workspace .sales-search-field input{height:40px}
}
/* one solid blue action: «add» in every row is a quiet tinted button, the page's main action stays solid */
html:not([data-theme]) .apple-workspace .sales-v2 .sales-results .sales-product-actions .btn.primary,html:not([data-theme]) .apple-workspace .sales-v2 .sales-composition-growth .sales-product-actions .btn.primary{background:color-mix(in oklab,var(--primary) 12%,#fff);border-color:transparent;color:var(--primary)}
html:not([data-theme]) .apple-workspace .sales-v2 .sales-results .sales-product-actions .btn.primary:hover{background:color-mix(in oklab,var(--primary) 20%,#fff)}
.sales-product-row.is-in-order .sales-line-status .sales-line-total{margin-left:8px}
@media(max-width:600px){
  .sales-doc-head .sales-help{display:none}
  html:not([data-theme]) .apple-workspace .page-heading h1,html:not([data-theme]) .apple-workspace .mobile-page-heading h1,html:not([data-theme]) .apple-workspace .sales-composition-heading h1{font-size:24px}
  html:not([data-theme]) .apple-workspace .page-heading,html:not([data-theme]) .apple-workspace .mobile-page-heading,html:not([data-theme]) .apple-workspace .sales-composition-heading{margin-bottom:10px;gap:8px}
  html:not([data-theme]) .apple-workspace .workspace-body{padding-top:14px}
  html:not([data-theme]) .apple-workspace .point-card{padding:12px 14px}
  html:not([data-theme]) .apple-workspace .card:not(.sales-product-row){padding:12px 14px}
  html:not([data-theme]) .apple-workspace .btn{min-height:40px}
}
/* head fields of the order document */
.sales-doc-fields{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:12px;padding:10px 18px;border-bottom:1px solid var(--line)}
.sales-doc-fields label{display:grid;gap:3px;min-width:0}
.sales-doc-fields label>span{font-size:12px;color:var(--muted)}
.sales-doc-fields .select,.sales-doc-fields .field{width:100%;min-width:0}
@media(max-width:600px){.sales-doc-fields{grid-template-columns:minmax(0,1fr);padding-inline:12px;gap:8px}}
.sales-doc .sales-order-conditions,.apple-workspace .sales-doc .sales-order-conditions{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:none;margin:0;padding:6px 18px}
.sales-doc .sales-order-conditions>summary{min-height:32px;display:flex;align-items:center;gap:6px;cursor:pointer}
.sales-doc .sales-composition-search{padding:8px 18px}
.sales-doc .sales-composition-search>.field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sales-doc-head{padding-block:10px}
.sales-doc-fields{padding-block:8px}
@media(min-width:900px){.sales-doc-fields label{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}.sales-doc-fields{grid-template-columns:minmax(260px,340px) minmax(0,1fr)}}

/* ===== Quantity in the row, last purchase, warnings, debt in the order head, order path (owner, 14.11.2026) ===== */
.sales-entry .quantity-step.sales-entry-plus{font-size:20px;font-weight:600}
.sales-last-buy{margin:2px 0 0;font-size:13px;color:var(--muted)}
.sales-entry .sales-last-add{flex:1 0 100%;justify-content:flex-end;min-height:32px;padding:2px 4px;font-size:13px;text-align:right}
.sales-row-warning,.sales-row-hint{margin:4px 0 0;padding:4px 8px;border-radius:8px;font-size:13px;line-height:1.35}
.sales-row-warning{background:var(--warm);color:var(--amber);border:1px solid var(--warning-border)}
.sales-row-hint{background:var(--success-bg);color:var(--success)}
.sales-doc-debt{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:0 0 10px;padding:8px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;color:inherit;text-decoration:none;font-size:14px}
.sales-doc-debt>span{color:var(--muted)}
.sales-doc-debt>strong{font-size:17px;font-variant-numeric:tabular-nums}
.sales-doc-debt.is-overdue{border-color:var(--red-border);background:var(--red-bg)}
.sales-doc-debt.is-overdue>strong,.sales-doc-debt .sales-doc-debt-overdue{color:var(--red);font-weight:600}
.order-chain{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:6px 0 8px;padding:0;font-size:13px}
.order-chain li{position:relative;padding:3px 10px 3px 22px;border-radius:999px;background:var(--pill,#ececee);color:var(--muted)}
.order-chain li::before{content:"";position:absolute;left:8px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:currentColor;opacity:.45}
.order-chain li.is-done{background:var(--success-bg);color:var(--success)}
.order-chain li.is-current{background:color-mix(in oklab,var(--primary) 12%,#fff);color:var(--primary);font-weight:600}
.order-chain li.is-problem{background:var(--red-bg);color:var(--red);font-weight:600}
.order-chain li.is-done::before,.order-chain li.is-current::before,.order-chain li.is-problem::before{opacity:1}
/* the last purchase and its «repeat» sit under the product, not among the quantity controls (they overlapped the stock) */
.sales-last-buy{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px}
.sales-last-buy .sales-last-add{flex:none;min-height:28px;height:auto;padding:0 8px;font-size:13px;width:auto}
html:not([data-theme]) .apple-workspace .sales-last-buy .btn.sales-last-add{min-height:28px}
.sales-last-buy .sales-last-add{padding-left:0}
.sales-last-buy .sales-last-add{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:block;text-align:left;line-height:28px}

/* ===== Interface v2 (owner, 14.11.2026): a rail of five sections and the client's card with tabs. Web look only. ===== */
.workspace-menu-label{display:none}
.client-frame{margin:0 0 14px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.client-head{display:flex;align-items:center;gap:14px;padding:10px 16px}
.client-title{min-width:0}
.client-title h1,.apple-workspace .client-title h1{font-size:19px;line-height:1.25;font-weight:700;letter-spacing:0;margin:0}
.client-title h1 a{color:inherit;text-decoration:none}
.client-address{margin:1px 0 0;font-size:13px;color:var(--muted)}
.client-terms{display:flex;flex-wrap:wrap;gap:6px;margin:5px 0 0}
.client-terms span{padding:2px 9px;border-radius:999px;background:var(--secondary,#ececee);font-size:12px;font-weight:600}
.client-side{margin-left:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
.client-debt{padding:5px 11px;border-radius:999px;background:var(--secondary,#ececee);font-size:13px;font-weight:600;text-decoration:none;color:inherit;white-space:nowrap}
.client-debt.is-overdue{background:var(--red-bg);color:var(--red)}
.client-tabs{display:flex;gap:2px;padding:0 10px;border-top:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.client-tabs::-webkit-scrollbar{display:none}
.client-tabs a{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:42px;padding:0 13px;border-bottom:3px solid transparent;color:var(--muted);font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap}
.client-tabs a.is-current{color:var(--primary);border-bottom-color:var(--primary)}
.client-tabs a b{padding:1px 7px;border-radius:999px;background:var(--secondary,#ececee);font-size:11px;color:var(--muted)}
.client-tabs a.is-current b{background:color-mix(in oklab,var(--primary) 12%,#fff);color:var(--primary)}
.client-tabs a b.is-alert{background:var(--red-bg);color:var(--red)}
.sales-doc-page .sales-doc{margin-top:0}
@media(max-width:700px){.client-head{flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px}.client-side{margin-left:0;justify-content:flex-start}.client-side .btn{min-height:34px;font-size:13px;padding:4px 10px}.client-tabs{padding:0 4px}.client-tabs a{padding:0 10px;font-size:13px}}
@media(min-width:1024px){
  html:not([data-theme]) .apple-workspace{padding-left:88px}
  html:not([data-theme]) .workspace-topbar{position:fixed;inset:0 auto 0 0;width:88px;border-bottom:0;border-right:1px solid var(--apple-border);box-shadow:none;z-index:60}
  html:not([data-theme]) .workspace-header-inner{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;height:100%;min-height:0;max-width:none;margin:0;padding:10px 6px}
  html:not([data-theme]) .workspace-header-inner>.brand-logo{justify-content:center}
  html:not([data-theme]) .workspace-header-inner .brand-logo img{width:68px;height:26px}
  html:not([data-theme]) .workspace-nav{flex:none;flex-direction:column;gap:2px;overflow:visible}
  html:not([data-theme]) .workspace-nav a{position:relative;flex-direction:column;gap:3px;min-height:54px;padding:6px 2px;border-radius:12px;font-size:11px;line-height:1.2;white-space:normal;text-align:center}
  html:not([data-theme]) .workspace-nav a>svg{display:block;width:22px;height:22px}
  html:not([data-theme]) .workspace-nav a.active,html:not([data-theme]) .workspace-nav a[aria-current="page"]{background:color-mix(in oklab,var(--primary) 10%,#fff);color:var(--primary);font-weight:600}
  html:not([data-theme]) .workspace-nav .nav-count{position:absolute;top:4px;right:10px}
  html:not([data-theme]) .workspace-tools{flex-direction:column;gap:6px;margin-top:auto;align-items:center}
  html:not([data-theme]) .workspace-tools .workspace-rate{font-size:11px;padding:4px 6px}
  html:not([data-theme]) .workspace-menu{position:static}
  html:not([data-theme]) .workspace-menu>summary{display:flex;flex-direction:column;align-items:center;gap:2px;width:auto;height:auto;min-height:48px;padding:6px 10px;border-radius:12px;font-size:11px}
  html:not([data-theme]) .workspace-menu-label{display:block}
  html:not([data-theme]) .workspace-menu-panel{position:fixed;left:96px;right:auto;top:auto;bottom:12px}
  html:not([data-theme]) .apple-workspace .workspace-body{max-width:1360px;padding:16px 24px 110px}
  html:not([data-theme]) .apple-workspace .sales-order-bar{left:88px}
}

/* ===== Interface v2: the cabinet menu (rail) and the point panel above every page (owner, 14.11.2026) ===== */
.point-panel{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.point-panel.is-empty{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 24px}
.point-panel-hint{margin:0;font-size:15px;font-weight:600}
.point-panel-choose{display:flex;align-items:center;gap:8px;flex:1 1 320px;max-width:560px;min-height:42px;padding:0 14px;border:2px dashed #b9c4d6;border-radius:12px;background:#f8fafd;color:var(--muted);text-decoration:none;font-size:14px}
.point-panel-choose svg{width:18px;height:18px;flex:none}
.point-panel-choose b{margin-left:auto;color:var(--primary);font-weight:600;white-space:nowrap}
.point-panel.is-set{background:color-mix(in oklab,var(--primary) 9%,#fff);border-bottom:2px solid var(--primary)}
.point-panel-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:8px 24px 4px}
.point-panel-title{min-width:0}
.point-panel-label{margin:0;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--primary)}
.point-panel-title h2{margin:0;font-size:17px;line-height:1.25;font-weight:700}
.point-panel-title h2 a{color:inherit;text-decoration:none}
.point-panel-address{margin:0;font-size:12px;color:var(--muted)}
.point-panel-terms{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.point-panel-terms span,.point-panel-debt{padding:3px 10px;border-radius:999px;background:#fff;font-size:12px;font-weight:600;white-space:nowrap}
.point-panel-debt{text-decoration:none;color:inherit}
.point-panel-debt.is-overdue{background:var(--red-bg);color:var(--red)}
.point-panel-actions{margin-left:auto;display:flex;flex-wrap:wrap;gap:6px}
.point-panel-actions .btn,.apple-workspace .point-panel-actions .btn{min-height:34px;height:34px;padding:0 12px;font-size:13px;background:#fff;border-color:transparent}
.point-menu{display:flex;gap:2px;padding:0 16px;overflow-x:auto;scrollbar-width:none}
.point-menu::-webkit-scrollbar{display:none}
.point-menu a{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:38px;padding:0 13px;border-radius:10px 10px 0 0;color:#33415c;font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap}
.point-menu a.is-current{background:var(--apple-background,#f5f5f7);color:var(--primary);box-shadow:inset 0 2px 0 var(--primary)}
.point-menu a b{padding:1px 7px;border-radius:999px;background:#fff;font-size:11px;color:var(--primary)}
.point-menu a b.is-alert{background:var(--red-bg);color:var(--red)}
@media(min-width:1024px){html:not([data-theme]) .workspace-nav a{font-size:10.5px}}
@media(max-width:700px){.point-panel.is-empty,.point-panel-row{padding-inline:12px}.point-panel-actions{margin-left:0}.point-menu{padding:0 4px}.point-menu a{padding:0 10px;font-size:13px}.point-panel-address,.point-panel-terms{display:none}}
.point-panel-actions{flex-wrap:nowrap}
.point-panel-actions .btn,.apple-workspace .point-panel-actions .btn,.apple-workspace .point-panel-actions .btn.point-card-reset{flex:none;width:auto;white-space:nowrap;color:var(--ink);font-weight:600;border-radius:10px;line-height:1}
@media(max-width:1250px){.point-panel-row{row-gap:8px}.point-panel-actions{margin-left:0}}
/* the point's actions sit at the right of its menu row, so the panel stays two rows high */
@media(min-width:1024px){
  .point-panel.is-set .point-panel-actions{position:absolute;right:24px;bottom:3px;margin:0}
  .point-panel.is-set .point-menu{padding-right:400px}
}

/* the quick choice of a point in the panel */
.point-chooser{position:relative}
.point-panel.is-empty .point-chooser{flex:1 1 320px;max-width:560px}
.point-chooser>summary{list-style:none;cursor:pointer}
.point-chooser>summary::-webkit-details-marker{display:none}
.point-panel.is-empty .point-panel-choose{max-width:none}
.point-chooser-panel{position:absolute;z-index:70;top:calc(100% + 6px);left:0;width:min(560px,calc(100vw - 32px));max-height:min(70vh,560px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 50px rgba(25,32,44,.2);overflow:hidden}
.point-panel.is-set .point-chooser-panel{left:auto;right:0}
.point-chooser-panel>.search{margin:10px;flex:none}
.point-chooser-list{overflow:auto;min-height:0}
.point-chooser-head{margin:0;padding:8px 14px 4px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.point-chooser-empty{margin:0;padding:14px;color:var(--muted)}
.point-chooser-row{display:flex;align-items:center;gap:10px;width:100%;padding:8px 14px;border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer}
.point-chooser-row:hover,.point-chooser-row:focus-visible{background:color-mix(in oklab,var(--primary) 8%,#fff)}
.point-chooser-row.is-current{background:color-mix(in oklab,var(--primary) 6%,#fff)}
.point-chooser-copy{min-width:0;display:grid;flex:1}
.point-chooser-copy strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.point-chooser-copy span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.point-chooser-note,.point-chooser-draft{flex:none;padding:2px 8px;border-radius:999px;background:var(--secondary,#ececee);font-size:11px;font-weight:600;color:var(--muted)}
.point-chooser-draft{background:color-mix(in oklab,var(--primary) 12%,#fff);color:var(--primary)}
.point-chooser-all{flex:none;display:block;padding:10px 14px;border-top:1px solid var(--line);font-weight:600;text-decoration:none;color:var(--primary)}
/* the point's buttons lie above its menu row: the menu's free space must not swallow their clicks */
.point-panel.is-set .point-panel-actions{z-index:2}
.point-panel.is-set .point-menu{position:relative;z-index:1}
/* the panel folded into one line in a section of the cabinet */
.point-panel.is-folded{display:flex;align-items:center;gap:12px;padding:4px 24px;min-height:42px}
.point-panel-back{display:flex;align-items:center;gap:8px;min-width:0;min-height:34px;color:var(--primary);font-weight:600;text-decoration:none}
.point-panel-back svg{width:18px;height:18px;flex:none}
.point-panel-back span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.point-panel-back strong{color:var(--ink)}
.point-panel-back b{flex:none;padding:1px 8px;border-radius:999px;background:#fff;font-size:11px}
.point-panel.is-folded .point-panel-actions,.point-panel.is-set.is-folded .point-panel-actions{position:static;margin-left:auto;z-index:2}
@media(max-width:700px){.point-panel.is-folded{padding-inline:12px}.point-panel.is-folded .point-panel-close{display:none}}

/* ===== One visual system for the web (owner, 14.11.2026): a single type scale, one control height and radius, one
   card look. Written as a last layer over the many page-specific rules, hence the !important. ===== */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) *{font-size:14px!important;font-weight:400!important;letter-spacing:0!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel){font-size:14px;line-height:1.45}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) h1{font-size:24px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:-.01em!important;margin:0!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) h2{font-size:16px!important;font-weight:600!important;line-height:1.3!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) h3{font-size:14px!important;font-weight:600!important;line-height:1.3!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(h1,h2,h3) *{font-size:inherit!important;font-weight:inherit!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(strong,b,th,dt,.field-label,.sales-product-name>span:first-child,.order-number,.debt-row-link,.point-panel-back strong){font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(small,.small,.muted,.sales-help,.sales-sku,.sales-specs,.sales-specs *,.sales-stock-1c,.sales-stock-1c *,.sales-packing,.sales-packing *,.sales-origin,.sales-result-count,.snapshot-label,.sales-price-label,.sales-conversion,.sales-last-buy,.sales-last-buy *,.point-panel-address,.point-card-address,.point-card-terms,.point-card-foot,.point-chooser-copy>span,.apple-customer-copy>span,.order-filter>span,.sales-doc-fields label>span,.inline-error,.sales-row-warning,.sales-row-hint,.sales-entry-total,th,.customer-meta,.sales-filters label,.sales-search-scope p,.sales-tree-level p){font-size:12px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.small,.muted,.sales-help,.sales-sku,.sales-specs,.sales-stock-1c,.sales-origin,.snapshot-label,.sales-price-label,.point-panel-address,.point-card-address,.point-card-terms,.point-card-foot,.point-chooser-copy>span,.apple-customer-copy>span) :is(strong,b){font-weight:600!important;font-size:inherit!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.point-panel-label,.point-card-label,.point-chooser-head){font-size:11px!important;font-weight:600!important;letter-spacing:.06em!important;text-transform:uppercase}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.badge,.chip:not(.btn),.sales-doc-count,.point-panel-terms span,.point-panel-debt,.order-chain li,.sales-signs *,.nav-count,.point-chooser-note,.point-chooser-draft,.point-menu a b,.client-terms span,.sales-in-order,.point-panel-back b){font-size:12px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-unit-price,.sales-line-total,.apple-summary-total strong,.sales-doc-foot strong){font-size:15px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.apple-saved-total,.sales-order-bar strong,.sales-composition-total strong,.sales-review-total strong,.point-stat strong){font-size:18px!important;font-weight:700!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-big-number,.plan-hero-fact,.sales-debt-overdue strong,.sales-debt-summary strong,.debt-summary strong,.sales-today-finance strong,.plan-hero strong){font-size:22px!important;font-weight:700!important;line-height:1.2!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-unit-price,.sales-line-total) small{font-size:12px!important;font-weight:400!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :where(.btn,button:not(.quantity-step):not(.point-chooser-row):not(.apple-customer-row):not(.point-stat):not(.dash-list>li>button)){font-size:14px!important;font-weight:500!important;min-height:36px!important;height:auto!important;padding:6px 14px!important;border-radius:10px!important;line-height:1.25!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :where(.btn,button) *{font-size:inherit!important;font-weight:inherit!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .btn.primary{font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .btn.text-btn{padding:6px 8px!important;background:none!important;border-color:transparent!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.point-menu a,.order-tab,.client-tabs a,.sales-tabs .btn,.chip.btn){font-size:14px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.point-menu a,.point-panel-back) :is(span,strong){font-size:14px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-back{font-size:14px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-back span{font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-search>button.btn{font-size:0!important;min-width:36px;padding:0!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(input:not([type=checkbox]):not([type=radio]),select){font-size:14px!important;font-weight:400!important;height:36px!important;min-height:36px!important;border-radius:10px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) textarea{font-size:14px!important;border-radius:10px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .quantity-step{font-size:18px!important;font-weight:600!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:10px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) input.qty-input{font-size:15px!important;font-weight:600!important;text-align:center}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-unit-options .btn,.sales-unit-options button){font-size:12px!important;font-weight:600!important;padding:4px 10px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) summary{font-size:14px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-stat{font-size:14px!important;min-height:0!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.point-chooser-copy strong,.apple-customer-copy strong,.point-chooser-all){font-size:14px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.card,.panel,.today-card,.stat,.invoice-card,.sales-product-row,.apple-order-summary,.debt-summary,.sales-customer-list,.sales-catalog-tree){border-radius:14px!important;box-shadow:0 1px 2px rgba(25,32,44,.05)!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-doc :is(.card,.sales-product-row){border-radius:0!important;box-shadow:none!important}
/* picker rows: the name column gets the room the removed «add» button used to take */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-order-multiple,.sales-packing-info,.sales-pack-line,.sales-pack-line *,.sales-facts,.sales-facts *,.sales-catalog-tree>summary small,.sales-catalog-tree>summary span:not(:first-child),.sales-tree-level small,.sales-group-count){font-size:12px!important;font-weight:400!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-group-name{font-size:14px!important;font-weight:500!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-catalog-tree>summary{white-space:nowrap}
@media(min-width:1024px){
  html:not([data-theme]) .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:not(.is-browse){grid-template-columns:minmax(220px,1fr) 190px 250px!important}
  html:not([data-theme]) .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-actions{grid-column:3!important;justify-content:flex-end}
}
@media(min-width:1500px){html:not([data-theme]) .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-product-row:not(.is-browse){grid-template-columns:minmax(260px,1fr) 220px 260px!important}}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-stock,.sales-stock *,.sales-stock-block,.sales-stock-block *){font-size:12px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-stock{font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-last-buy{overflow:visible;position:relative;z-index:1}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-last-buy .sales-last-add{max-width:none!important;overflow:visible!important;min-height:24px!important;padding:2px 0!important;font-size:12px!important;font-weight:600!important;background:none!important}
html:not([data-theme]) .apple-workspace .sales-doc .sales-composition-lines>.empty{border:0!important;box-shadow:none!important;background:none!important}

/* ===== Fixes after the common layer (16.11.2026) ===== */
/* icon-only buttons keep their label for screen readers only */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-search>.btn:not(.chip),.sales-search-controls>.btn:not(.chip),.sales-clear-search,.workspace-search-top>button[data-action="barcode"]){font-size:0!important;width:36px!important;min-width:36px!important;padding:0!important;gap:0!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-search .btn,.sales-search-controls>.btn,.sales-clear-search) svg{width:18px;height:18px}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-clear-search{background:transparent!important;border:0!important}
/* the terms of the point are links to their settings */
.point-panel-terms .point-panel-term{display:inline-flex;align-items:center;gap:4px;padding:3px 6px 3px 10px;border-radius:999px;background:#fff;font-size:12px;font-weight:600;white-space:nowrap;color:inherit;text-decoration:none;border:1px solid transparent}
.point-panel-terms .point-panel-term:hover,.point-panel-terms .point-panel-term:focus-visible{border-color:var(--primary);color:var(--primary)}
.point-panel-terms .point-panel-term svg{width:12px;height:12px;flex:none;transform:rotate(90deg);opacity:.6}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-term{font-size:12px!important;font-weight:600!important}
@media(min-width:1024px){.point-panel.is-set .point-menu{padding-right:270px}}
/* picker rows: the units go on their own line above the quantity, so the column never overflows; catalog rows keep their own layout */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-actions :is(.sales-quantity,.sales-entry){display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center;gap:6px!important;max-width:100%}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-actions .sales-unit-options{order:-1;flex:1 0 100%;display:flex;justify-content:flex-end;gap:6px}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-actions{flex-wrap:wrap!important;justify-content:flex-end!important;min-width:0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-pricing{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-line-status{flex-wrap:wrap;justify-content:flex-end;max-width:100%}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-line-total{font-size:14px!important}
/* the final scale: five sizes (11, 12, 14, 16, 22) and three weights (400, 500 for buttons, 600) */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) h1{font-size:22px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-unit-price,.sales-line-total,.apple-summary-total strong,.sales-doc-foot strong){font-size:14px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.apple-saved-total,.sales-order-bar strong,.sales-composition-total strong,.sales-review-total strong,.point-stat strong){font-size:16px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.sales-big-number,.plan-hero-fact,.sales-debt-overdue strong,.sales-debt-summary strong,.debt-summary strong,.sales-today-finance strong,.plan-hero strong){font-size:22px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) :is(.btn,button) small{font-size:12px!important;font-weight:400!important}
/* the general button rule has no weight of its own (:where), so every special button above wins over it */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-actions :is(.sales-quantity,.sales-entry){flex:0 1 auto!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-actions .sales-row-more{flex:none}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .price-currency .btn.chip{font-size:14px!important;font-weight:600!important;width:auto!important;min-width:36px!important;padding:6px 10px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .quantity-step{font-size:16px!important}
/* «Ще» stands beside the quantity, not under it */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row:not(.is-browse)>.sales-product-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end;justify-items:end;gap:6px}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row:not(.is-browse)>.sales-product-actions>:not(.sales-row-more):not(.sales-quantity):not(.sales-entry){grid-column:1/-1}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row:not(.is-browse)>.sales-product-actions>.sales-row-more:not([open]){grid-column:2;position:static!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row:not(.is-browse)>.sales-product-actions>.sales-row-more[open]{grid-column:1/-1;justify-self:stretch}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-actions :is(.sales-quantity,.sales-entry)>p:empty{display:none}
/* the contract and the warehouse of the point: drop-down lists that look like the other terms in the panel */
.point-panel-terms select.point-panel-select{appearance:none;-webkit-appearance:none;max-width:320px;height:26px;padding:0 26px 0 10px;border:1px solid transparent;border-radius:999px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2333415c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;font:inherit;font-size:12px;font-weight:600;color:inherit;cursor:pointer;text-overflow:ellipsis}
.point-panel-terms select.point-panel-select:hover,.point-panel-terms select.point-panel-select:focus-visible{border-color:var(--primary);outline:none}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-terms select.point-panel-select.point-panel-select.point-panel-select{height:26px!important;min-height:26px!important;border-radius:999px!important;font-size:12px!important;font-weight:600!important}
/* The panel stays one line (owner, 17.11.2026): the choosers of the contract and the warehouse shrink, the debt does not wrap. */
@media(min-width:1024px){.point-panel.is-set:not(.is-folded) .point-panel-terms{flex:1 1 280px;min-width:0;flex-wrap:nowrap}
  .point-panel.is-set:not(.is-folded) .point-panel-terms select.point-panel-select{flex:0 1 auto;min-width:120px;max-width:250px}
  .point-panel.is-set:not(.is-folded) .point-panel-terms select.point-panel-select[data-point-term="shipTo"]{max-width:220px}
  .point-panel.is-set:not(.is-folded) .point-panel-terms select.point-panel-select[data-point-term="contractId"]{flex-shrink:.4;min-width:170px}
  .point-panel.is-set:not(.is-folded) .point-panel-terms span{flex:none}}
/* «Борг і оплати»: the debt of every contract of the client; the chosen contract is marked. */
.debt-contracts .history-lines{margin:0 0 6px}
.debt-contract-pick{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.debt-contract-pick input{flex:none;width:16px;height:16px;min-height:0;margin:2px 0 0;padding:0;accent-color:var(--primary)}
.debt-contract-pick small{display:block;color:var(--muted);font-size:12px}
.debt-contracts tr.is-current td{background:color-mix(in oklab,var(--primary) 7%,#fff)}
.debt-contracts td.is-overdue{color:#be123c;font-weight:600}
.debt-contracts tfoot td{font-weight:600;border-top:1px solid var(--line);border-bottom:0}
.debt-contracts td.num,.debt-contracts th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
html:not([data-theme]) .apple-workspace .point-panel .point-panel-debt span{padding:0;background:none;font-size:12px!important;font-weight:600!important;color:inherit}
html:not([data-theme]) .apple-workspace .point-panel .point-panel-debt span.point-debt-narrow,.debt-contracts td small.debt-contract-over{display:none}
@media(max-width:700px){.debt-contracts :is(th,td):nth-child(n+3){display:none}
  .debt-contracts td small.debt-contract-over{display:block;color:#be123c;font-size:12px;font-weight:600;white-space:normal}
  .debt-contracts td.num{white-space:normal}.debt-contracts td.num,.debt-contracts td.num small{text-align:right}
  html:not([data-theme]) .apple-workspace .point-panel .point-panel-debt span.point-debt-wide{display:none}html:not([data-theme]) .apple-workspace .point-panel .point-panel-debt span.point-debt-narrow{display:inline}}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-terms optgroup,html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-terms option{font-size:14px!important;font-weight:400!important}

/* ===== The picker is a panel on the right, the order stays on the left (owner, 16.11.2026) ===== */
.sales-pick-drawer{min-width:0}
.sales-pick-heading>div{flex-direction:row-reverse;justify-content:space-between;width:100%}
@media(min-width:1100px){
  .sales-pick-split{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:16px;align-items:start}
  .sales-pick-split>.apple-order-summary{position:sticky;top:112px;width:auto;max-height:calc(100dvh - 140px);overflow:auto;margin:0}
  .sales-pick-drawer{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px 18px;box-shadow:-14px 0 36px rgba(25,32,44,.09)}
  .sales-pick-drawer.is-entering{animation:sales-pick-in .24s cubic-bezier(.2,.7,.2,1)}
  .sales-pick-split>.apple-order-summary{animation:none}
  .sales-pick-drawer.is-entering~*{animation:none}
  .sales-pick-split>.sales-order-bar{display:none}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse){grid-template-columns:minmax(180px,1fr) 160px 236px!important}
  html:not([data-theme]) .apple-workspace .workspace-body:has(.sales-pick-split){padding-bottom:32px}
}
@media(min-width:1500px){html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse){grid-template-columns:minmax(240px,1fr) 200px 250px!important}}
@media(max-width:1099px){.sales-pick-split>.apple-order-summary{display:none}}
@keyframes sales-pick-in{from{transform:translateX(48px);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.sales-pick-drawer.is-entering{animation:none}}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-pick-drawer .page-heading{margin-bottom:10px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-pick-drawer h1{font-size:16px!important}
/* rows inside the picker panel: their own two-part layout that does not depend on the window width */
@media(min-width:1100px){
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse){display:grid!important;grid-template-columns:minmax(0,1fr) 236px!important;grid-template-rows:auto!important;gap:6px 16px!important;align-items:start!important;padding:10px 14px!important}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-info{display:grid!important;grid-template-columns:minmax(0,1fr) 170px;gap:2px 14px;align-content:start;grid-column:1!important;grid-row:1!important;min-width:0}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-info>*{grid-column:1!important;grid-row:auto!important;min-width:0}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-info>.sales-pricing{grid-column:2!important;grid-row:1!important;justify-self:end;text-align:right}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-info>:is(.sales-stock-block,.sales-stock,.sales-facts){grid-column:2!important;grid-row:2/span 5!important;justify-self:end;text-align:right}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-actions{grid-column:2!important;grid-row:1!important;align-self:center!important}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>:not(.sales-product-info):not(.sales-product-actions):not(.product-thumb){grid-column:1/-1!important}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-line-status{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
  .sales-pick-split .apple-catalog-layout{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .sales-pick-split .apple-catalog-controls{position:static!important;max-height:none!important}
  .sales-pick-split .sales-catalog-tree .sales-group-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px;max-height:300px;overflow:auto;margin:0;padding:0;list-style:none}
  .sales-pick-split .sales-group-node{width:100%}
  .sales-pick-split .sales-group-name{white-space:normal;overflow-wrap:break-word;hyphens:auto;line-height:1.3;min-width:0;flex:1}
  .sales-pick-split .sales-group-count{flex:none}
}
@media(min-width:1500px){html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse){grid-template-columns:minmax(0,1fr) 250px!important}html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-info{grid-template-columns:minmax(0,1fr) 210px}}
@media(min-width:1100px){html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results .sales-product-info>:is(.sales-pack-line,.sales-order-multiple,.sales-packing-info){justify-self:start!important;text-align:left!important;margin:0!important}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results .sales-pack-line *{text-align:left!important}}
/* the order beside the picker is edited in place */
.apple-order-summary.sales-doc-side .apple-summary-lines>.sales-side-line{grid-template-columns:minmax(0,1fr) auto;align-items:start;padding:8px 0}
.sales-side-qty{grid-column:1/-1;display:flex;align-items:center;gap:6px;margin-top:4px}
.sales-side-qty b{min-width:64px;text-align:center;font-weight:600}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-side-qty .quantity-step{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;border-radius:8px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-side-qty .sales-side-remove{margin-left:auto;width:30px!important;min-width:30px!important;min-height:30px!important;height:30px!important;padding:0!important;font-size:0!important;background:transparent!important;border:0!important;color:var(--muted)}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-side-qty .sales-side-remove svg{width:16px;height:16px}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-side-qty b{font-size:14px!important;font-weight:600!important}
.sales-side-qty b{line-height:30px;margin:0;padding:0}
.order-head-actions{display:inline-flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
/* the two order buttons are one family: the same size and weight; «continue» is filled, «new» is outlined */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .order-head-actions .btn{min-width:0;font-weight:600!important;padding:6px 16px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .order-head-actions .btn.order-head-new{background:#fff!important;border:1.5px solid var(--primary)!important;color:var(--primary)!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .order-head-actions .btn.order-head-new:hover{background:color-mix(in oklab,var(--primary) 8%,#fff)!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .order-head-actions .btn.primary{border:1.5px solid var(--primary)!important}
/* Fields in focus (owner, 16.11.2026: the thick blue frame around a field gets in the way): a field the agent types in
   shows it with a blue border and a faint glow, with no frame standing off it. Buttons and links keep the keyboard ring. */
html:not([data-theme]) :is(input,select,textarea):focus-visible{outline:none!important;border-color:var(--primary)!important;box-shadow:0 0 0 3px color-mix(in oklab,var(--primary) 14%,transparent)!important}
html:not([data-theme]) :is(input[type=checkbox],input[type=radio]):focus-visible{box-shadow:none!important;outline:2px solid var(--primary)!important;outline-offset:2px}
html:not([data-theme]) .search:focus-within{outline:none!important}
/* a long comment without spaces must not push the drafts table off the card: it wraps and is cut after two lines */
.draft-table td small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.draft-table td:first-child{overflow-wrap:anywhere}
/* the order beside the picker repeats the warning of the product row: ordered more than the warehouse has */
.sales-side-line>.sales-side-warning{grid-column:1/-1;margin:6px 0 0}
/* the order beside the picker (owner, 16.11.2026): the total and the two buttons are always in sight, only the list of
   lines scrolls between the heading and the total */
@media(min-width:1100px){
  .sales-pick-split>.apple-order-summary.sales-doc-side{display:flex;flex-direction:column;overflow:hidden}
  .sales-pick-split>.apple-order-summary.sales-doc-side>*{flex:none}
  .sales-pick-split>.apple-order-summary.sales-doc-side>.apple-summary-lines{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin-right:-8px;padding-right:8px;scrollbar-width:thin}
  .sales-pick-split>.apple-order-summary.sales-doc-side>.apple-summary-total{margin-top:0;border-top:1px solid var(--line)}
}
/* Picker rows keep their shape (owner, 16.11.2026). «Ще» is a pop-up over the row: opening it moves nothing and shows
   nothing extra inside the row. A product in the order shows its sum in one line under the price, in the room every
   row keeps for it, so adding a product or changing its quantity does not shift the row. */
@media(min-width:1100px){
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-actions>.sales-row-more{grid-column:2!important;justify-self:end!important;position:relative!important;width:auto!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-row-more[open]>div>*{margin:0!important;padding:6px 12px!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open]) :is(.sales-specs,.sales-product-info>.sales-help,.sales-unavailable-actions,.sales-packing-info){display:none!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:has(.sales-row-more[open]){z-index:5}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-pricing{min-height:40px}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-line-status{display:block!important;margin:0!important;white-space:nowrap}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-line-status .sales-in-order{display:none!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-line-status .sales-line-total{margin:0!important;color:var(--primary)!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-line-status .sales-line-total::before{content:"✓ "}
}
/* the row menu is opened by the standard three dots, not by a word */
html:not([data-theme]) .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more>summary{width:36px;min-width:36px;padding:0}
html:not([data-theme]) .apple-workspace .sales-workspace .sales-results:not(.with-photos) .sales-row-more>summary svg{width:20px;height:20px;color:var(--ink);stroke-width:2.6}
/* The product card and the analogs as a window over the page (owner, 16.11.2026) */
.sales-modal-layer{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:24px;background:rgba(15,23,42,.42)}
.sales-modal{position:relative;width:min(1040px,100%);max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;padding:20px 24px 24px;border-radius:16px;background:#fff;box-shadow:0 24px 64px rgba(15,23,42,.28);text-align:left}
.sales-modal.is-product{width:min(880px,100%)}
.sales-modal>.sales-modal-close{position:sticky;top:0;float:right;z-index:2;margin:0 0 8px 16px;display:inline-flex;align-items:center;gap:6px}
.sales-modal>.sales-modal-close svg{width:16px;height:16px}
.sales-modal .sales-back,.sales-modal a[href^="#sales-demand/"]{display:none!important}
.sales-modal .sales-compare{margin-bottom:0}
@media(max-width:767px){.sales-modal-layer{padding:0;place-items:end stretch}.sales-modal{width:100%;max-height:92dvh;border-radius:16px 16px 0 0;padding:16px}}
/* «in development» window: the Vitol mark, a short promise, one button */
.sales-modal.is-compare{width:min(460px,100%);padding:0;overflow:hidden}
.sales-soon{display:grid;justify-items:center;gap:10px;padding:36px 32px 28px;text-align:center;background:linear-gradient(180deg,color-mix(in oklab,var(--primary) 9%,#fff) 0,#fff 46%)}
.sales-soon-logo{width:132px;height:auto;margin-bottom:8px}
.sales-soon-tag{margin:0;padding:3px 10px;border-radius:999px;background:color-mix(in oklab,var(--primary) 12%,#fff);color:var(--primary);font-size:12px;font-weight:600}
.sales-soon h1{margin:2px 0 0;font-size:22px;line-height:1.25;font-weight:600;letter-spacing:0}
.sales-soon-text{margin:0;max-width:36ch;color:var(--muted);font-size:14px;line-height:1.5}
.sales-soon .btn{margin-top:12px;min-width:160px}
/* an empty notice strip above the contractor panel took 12 px and made the panel jump on the first scroll */
html:not([data-theme]) .apple-workspace .workspace-notice:not(:has(*)){display:none}
/* the heading of the groups takes the focus after a group is chosen (for screen readers) — without a visible frame */
html:not([data-theme]) #sales-tree-heading:focus,html:not([data-theme]) #sales-tree-heading:focus-visible{outline:none!important;box-shadow:none!important}
/* the «in development» card right on a page */
.apple-order-main>.sales-soon,.sales-results>.sales-soon{margin:8px 0 0;padding:48px 24px;border:1px solid var(--line);border-radius:14px}
/* the order beside the picker sticks exactly where it stands before scrolling (it used to rise 10 px first) */
@media(min-width:1100px){.sales-pick-split>.apple-order-summary{top:122px;max-height:calc(100dvh - 138px)}}
/* The picker's filters: a button in the search row and a small pop-up under it (owner, 16.11.2026) */
html:not([data-theme]) .apple-workspace .sales-workspace .sales-filters-pop{position:relative;display:block!important;grid-column:auto!important;padding:0!important;min-width:0}
html:not([data-theme]) .apple-workspace .sales-workspace .sales-search-controls:has(.sales-filters-pop[open]) .sales-search{grid-column:auto}
html:not([data-theme]) .apple-workspace .sales-workspace .sales-filters-pop>summary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;height:36px;width:auto!important;min-width:0;padding:0 14px!important;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:14px;font-weight:500;white-space:nowrap;cursor:pointer;list-style:none}
html:not([data-theme]) .apple-workspace .sales-workspace .sales-filters-pop>summary svg{width:16px;height:16px}
html:not([data-theme]) .apple-workspace .sales-workspace .sales-filters-pop>summary b{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--primary);color:#fff;font-size:11px;font-weight:600}
html:not([data-theme]) .apple-workspace .sales-workspace .sales-filters-pop.has-active>summary,html:not([data-theme]) .apple-workspace .sales-workspace .sales-filters-pop[open]>summary{border-color:var(--primary);color:var(--primary)}
.sales-filters-panel{position:absolute;z-index:40;right:0;top:calc(100% + 6px);width:300px;display:grid;gap:4px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.14);text-align:left}
.sales-filters-title{margin:2px 6px 4px;color:var(--muted);font-size:12px;font-weight:600}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-filters-panel .sales-filter-option{display:grid!important;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:10px;width:100%;height:auto!important;min-height:48px!important;padding:8px 10px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;text-align:left;white-space:normal;justify-content:start}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-filters-panel .sales-filter-option:hover{background:var(--secondary,#f1f2f4)!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-filters-panel .sales-filter-option.is-on{background:color-mix(in oklab,var(--primary) 9%,#fff)!important}
.sales-filter-check{display:grid;place-items:center;width:20px;height:20px;border:1.5px solid var(--line);border-radius:6px;background:#fff;color:#fff}
.sales-filter-option.is-on .sales-filter-check{background:var(--primary);border-color:var(--primary)}
.sales-filter-check svg{width:14px;height:14px;stroke-width:3}
.sales-filter-copy{display:grid;gap:1px;min-width:0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-filter-copy strong{font-size:14px!important;font-weight:500!important;color:var(--ink)}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-filter-copy small{font-size:12px!important;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-filters-panel .sales-filters-reset{justify-self:start;margin:4px 0 0 2px}
html:not([data-theme]) .apple-workspace .sales-workspace .sales-search-controls:has(.sales-filters-pop){grid-template-columns:minmax(0,1fr) auto}
/* the payment form as a window */
.sales-modal.is-cash{width:min(560px,100%)}
.sales-modal.is-cash .sales-form{border:0;box-shadow:none;padding:0;margin:0;background:transparent}
.sales-modal.is-cash .page-heading{margin:0 0 12px}
/* «Борг і оплати» v2: figures and actions on top, invoices left, agreements right */
.sales-modal.is-form{width:min(560px,100%)}
.sales-modal.is-form .sales-form{border:0;box-shadow:none;padding:0;margin:0;background:transparent}
.sales-modal.is-form .page-heading{margin:0 0 12px}
.debt-v2>.sales-debt-summary{display:grid;gap:14px;padding:18px 20px;margin:0 0 16px}
.debt-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.debt-figure{display:grid;gap:2px;align-content:start;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;margin:0}
.debt-figure>span{color:var(--muted);font-size:12px}
.debt-figure>strong{font-size:22px;line-height:1.25;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
.debt-figure>small{color:var(--muted);font-size:12px}
.debt-v2 .debt-figure.sales-debt-overdue{background:#fff1f2;border-color:#fecdd3}
.debt-v2 .debt-figure.sales-debt-overdue>strong{color:#be123c}
.debt-v2 .debt-figure.sales-debt-overdue.is-clear{background:#fff;border-color:var(--line)}
.debt-v2 .debt-figure.sales-debt-overdue.is-clear>strong{color:var(--ink)}
.debt-v2 .debt-figure.sales-debt-overdue.is-clear>small{color:#15803d}
.debt-head-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.debt-v2>.sales-debt-summary>.sales-help{margin:0}
.debt-v2 .apple-debt-grid{gap:16px}
.debt-v2 .sales-section{margin-top:0;margin-bottom:12px;padding:14px 16px}
.debt-v2 .debt-cash .sales-cash-summary{margin:0;padding:0;border:0;background:transparent}
@media(max-width:900px){.debt-figures{grid-template-columns:minmax(0,1fr)}}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .debt-figure>strong{font-size:22px!important;font-weight:600!important;line-height:1.25!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .debt-figure>:is(span,small){font-size:12px!important}
/* the debt head: the first figure's label is a paragraph; the actions row; «Інші дії» is a small pop-up */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .debt-figure>p{margin:0;color:var(--muted);font-size:12px!important}
.debt-v2 .debt-head-actions .sales-debt-cash-action{margin:0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .debt-v2 .debt-head-actions .sales-debt-cash-action .btn{width:auto!important;min-height:36px!important;font-size:14px!important;padding:6px 18px!important}
.debt-v2 .debt-head-actions>details.sales-debt-secondary{position:relative;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.debt-v2 .debt-head-actions>details.sales-debt-secondary>summary{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:10px;color:var(--primary);font-size:14px;font-weight:500;cursor:pointer;list-style:none}
.debt-v2 .debt-head-actions>details.sales-debt-secondary>summary::-webkit-details-marker{display:none}
.debt-v2 .debt-head-actions>details.sales-debt-secondary>summary::after{content:" ▾";margin-left:4px}
.debt-v2 .debt-head-actions>details.sales-debt-secondary[open]>.sales-debt-actions{position:absolute;z-index:30;left:0;top:calc(100% + 6px);display:grid;gap:4px;min-width:280px;margin:0;padding:8px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.14)}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .debt-v2 .debt-head-actions>details.sales-debt-secondary .sales-debt-actions .btn{justify-content:flex-start;width:100%;background:transparent!important;border:0!important;box-shadow:none!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .debt-v2 .debt-head-actions>details.sales-debt-secondary .sales-debt-actions .btn:hover{background:var(--secondary,#f1f2f4)!important}
html:not([data-theme]) .apple-workspace .debt-v2>.sales-debt-summary{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
html:not([data-theme]) .apple-workspace .debt-v2>.sales-debt-summary>*{grid-column:1!important;min-width:0}
/* «Історія з 1С»: a toolbar with the search and the filters, documents as rows that open into their lines */
.history-v2 .page-heading{margin:0 0 12px}
.history-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 8px}
.history-toolbar .history-search{flex:1 1 280px;min-width:220px;margin:0}
.history-filters{display:inline-flex;gap:2px;padding:3px;border-radius:12px;background:var(--secondary,#f1f2f4)}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .history-filters .btn.chip{min-height:30px!important;height:30px!important;padding:0 12px!important;border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;color:var(--muted);font-size:13px!important;font-weight:500!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .history-filters .btn.chip.active{background:#fff!important;color:var(--ink);box-shadow:0 1px 3px rgba(15,23,42,.12)!important}
.history-count{display:flex;align-items:center;gap:10px;margin:4px 0 10px}
.history-v2 .history-doc{margin:0 0 8px;padding:0;overflow:hidden}
.history-v2 .history-doc>summary{display:grid;grid-template-columns:minmax(0,1fr) 130px 70px 130px 20px;align-items:center;gap:12px;min-height:52px;padding:8px 16px;cursor:pointer;list-style:none;color:var(--ink)}
.history-v2 .history-doc>summary::-webkit-details-marker{display:none}
.history-v2 .history-doc>summary:hover{background:color-mix(in oklab,var(--primary) 4%,#fff)}
.history-doc-title{display:flex;align-items:center;gap:10px;min-width:0}
.history-doc-title{flex-wrap:wrap;row-gap:2px}
.history-doc-ref{flex-basis:100%;color:var(--muted);font-size:12px;font-weight:400;line-height:1.35}
.history-doc-title>strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-doc-date,.history-doc-count{color:var(--muted);font-size:13px;white-space:nowrap}
.history-doc-count{text-align:right}
.history-doc-sum{text-align:right;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.history-doc.is-return .history-doc-sum{color:#b45309}
.history-v2 .history-doc>summary>svg{width:16px;height:16px;color:var(--muted);transition:transform .15s}
.history-v2 .history-doc[open]>summary>svg{transform:rotate(90deg)}
.history-doc-body{padding:4px 16px 14px;border-top:1px solid var(--line)}
.history-lines{width:100%;border-collapse:collapse;margin:0 0 10px}
.history-lines th{padding:8px 8px 6px;color:var(--muted);font-size:12px;font-weight:500;text-align:left;border-bottom:1px solid var(--line)}
.history-lines td{padding:8px;font-size:14px;border-bottom:1px solid var(--line);vertical-align:top}
.history-lines tr:last-child td{border-bottom:0}
.history-lines .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-lines td strong{display:block;font-weight:500}
.history-lines td small{display:block;color:var(--muted);font-size:12px}
.history-note{margin:14px 0 0}
@media(max-width:800px){.history-v2 .history-doc>summary{grid-template-columns:minmax(0,1fr) auto 20px}.history-doc-count{display:none}.history-doc-date{grid-column:1;grid-row:2}.history-doc-sum{grid-column:2;grid-row:1}}
/* the «in development» card as a whole page */
.soon-page>h1{margin:0 0 12px;font-size:22px;font-weight:600}
.soon-page>.sales-soon,.insights-soon>.sales-soon{padding:48px 24px;border:1px solid var(--line);border-radius:14px}
.insights-soon>.sales-soon{padding:28px 16px;border:0}
/* «Про клієнта» v2: cards in two columns, facts as label — value rows */
html:not([data-theme]) .insights-v2{columns:2 420px;column-gap:16px}
html:not([data-theme]) .insights-v2>*{break-inside:avoid;margin:0 0 16px!important;padding:16px 18px}
html:not([data-theme]) .insights-v2 h2{margin:0 0 10px;font-size:16px;font-weight:600}
html:not([data-theme]) .insights-v2 h3{margin:14px 0 6px;padding-top:12px;border-top:1px solid var(--line);font-size:14px;font-weight:600}
html:not([data-theme]) .insights-v2 .customer-facts{margin:0;display:grid;gap:0}
html:not([data-theme]) .insights-v2 .customer-fact{display:grid;grid-template-columns:minmax(120px,38%) minmax(0,1fr);gap:12px;padding:7px 0;border-bottom:1px solid color-mix(in oklab,var(--line) 60%,transparent)}
html:not([data-theme]) .insights-v2 .customer-fact:last-child{border-bottom:0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .insights-v2 .customer-fact dt{margin:0;color:var(--muted);font-size:13px!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .insights-v2 .customer-fact dd{font-size:14px!important;font-weight:500}
html:not([data-theme]) .insights-v2 .customer-contact-1c{display:block}
html:not([data-theme]) .insights-v2 .customer-contact-1c small{margin-left:6px;color:var(--muted);font-weight:400}
html:not([data-theme]) .insights-v2>section>p.small.muted{margin:10px 0 0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .insights-v2 .customer-fact dt{font-weight:400!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .insights-v2 .customer-contact-1c{margin:0 0 6px}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .insights-v2 .customer-contact-1c:last-child{margin-bottom:0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .insights-v2 .customer-contact-1c a{display:inline!important;min-height:0!important;padding:0!important;margin:0!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .insights-v2 .customer-contact-1c small{display:block;margin:1px 0 0!important;padding:0!important}
/* the search field: the frame is the pill itself, the input inside has none (it used to show a second frame in focus) */
html:not([data-theme]) .search :is(input,input:focus,input:focus-visible){outline:none!important;border-color:transparent!important;box-shadow:none!important}
html:not([data-theme]) .apple-workspace .search:focus-within{border-color:var(--primary)!important;box-shadow:0 0 0 3px color-mix(in oklab,var(--primary) 14%,transparent)!important}
/* Compact picker rows (owner, 16.11.2026): less air, the sum of
   a line lives in the order on the left, availability is a short table of lines */
.sales-stock-lines{display:grid;gap:0;margin:2px 0 0}
.sales-stock-lines>div{display:flex;justify-content:space-between;gap:10px;min-width:0}
.sales-stock-lines dt{margin:0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sales-stock-lines dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ink)}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-stock-lines :is(dt,dd){font-size:12px!important;line-height:1.35!important;font-weight:400!important}
@media(min-width:1100px){
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse){grid-template-columns:minmax(0,1fr) 196px!important;padding:8px 12px!important;gap:2px 14px!important}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-info{grid-template-columns:minmax(0,1fr) 208px!important;gap:1px 14px!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-pricing{min-height:0!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-line-status{display:none!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-stock-block{text-align:left!important;justify-self:stretch!important;width:100%}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-stock-block>.sales-stock{display:flex;justify-content:flex-end;gap:4px}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-stock-block>.sales-stock{font-size:12px!important;line-height:1.35!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-stock-block>.sales-stock svg{width:13px;height:13px}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-signs>*{font-size:11px!important;padding:1px 6px!important;min-height:0!important;line-height:1.4!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) :is(.sales-signs,.sales-last-buy,.sales-pack-line){margin:1px 0 0!important}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-last-buy .btn{min-height:0!important;height:auto!important;padding:0!important}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos){gap:6px}
}
@media(min-width:1500px){html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse)>.sales-product-info{grid-template-columns:minmax(0,1fr) 240px!important}}
/* availability lines: the first one says what can be ordered */
.sales-stock-lines>.is-here dt{color:var(--ink)}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-stock-lines>.is-here :is(dt,dd){font-weight:600!important}
.sales-stock-lines>.is-here.is-available dd{color:#15803d}
.sales-stock-lines>.is-here.is-none dd{color:#b45309}
.sales-filters-panel>.sales-filters-title:not(:first-child){margin-top:8px;padding-top:10px;border-top:1px solid var(--line)}
@media(min-width:1100px){
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-stock-block{align-self:start!important;grid-row:2/span 8!important;margin:0!important}
  /* small photos beside the product */
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results.with-thumbs .sales-product-row.has-photo:not(.is-browse){grid-template-columns:60px minmax(0,1fr) 196px!important}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results.with-thumbs .sales-product-row.has-photo:not(.is-browse)>.product-thumb{grid-column:1!important;grid-row:1!important;width:60px!important;height:60px!important;margin:0!important;border-radius:8px;align-self:start}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results.with-thumbs .sales-product-row.has-photo:not(.is-browse)>.product-thumb img{width:100%;height:100%;object-fit:contain}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results.with-thumbs .sales-product-row.has-photo:not(.is-browse)>.sales-product-info{grid-column:2!important}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results.with-thumbs .sales-product-row.has-photo:not(.is-browse)>.sales-product-actions{grid-column:3!important}
  html:not([data-theme]) .apple-workspace .sales-workspace.sales-pick-split .sales-results.with-thumbs .sales-product-row.has-photo:not(.is-browse)>.product-thumb :is(span,small){font-size:9px!important}
}
html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-stock-block{padding:0!important}
html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-stock-lines{margin:0!important;padding:0!important}
/* the multiplicity stands in the article line of a picker row; elsewhere the separate line stays */
.sales-sku-step{display:none}
@media(min-width:1100px){
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-sku-step{display:inline}
  html:not([data-theme]) .apple-workspace .sales-pick-split .sales-results:not(.with-photos) .sales-product-row:not(.is-browse) .sales-pack-line{display:none!important}
}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-sku .sales-sku-step,html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-sku .sales-sku-step *{font-size:inherit!important;font-weight:inherit!important;color:inherit!important;line-height:inherit!important}
/* the order document: the multiplicity stands in the article line too (owner, 16.11.2026); packaging keeps its line */
html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-sku-step{display:inline}
html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-order-multiple{display:none!important}
html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-pack-line:not(:has(.sales-packing-info)){display:none!important}
/* the «in development» card inside a side card */
.tasks-soon>.sales-soon{padding:20px 12px 12px;border:0;background:transparent}
.tasks-soon>.sales-soon .sales-soon-logo{width:96px}
.tasks-soon>.sales-soon h1{font-size:16px!important}
/* «Робота з контрагентом» as a summary: figures, the plan, the assortment, the latest documents */
.work-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 12px}
.work-head .page-heading{margin:0}
.work-head-actions{display:flex;flex-wrap:wrap;gap:8px}
.work-figures{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 16px}
.work-v2 .debt-figure.sales-debt-overdue{background:#fff1f2;border-color:#fecdd3}
.work-v2 .debt-figure.sales-debt-overdue>strong{color:#be123c}
.work-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start}
.work-main,.work-side{display:grid;gap:16px;min-width:0}
.work-v2 .work-card{margin:0;padding:16px 18px}
.work-v2 .work-card h2{margin:0;font-size:16px;font-weight:600}
.work-v2 .work-card h3{margin:14px 0 6px;font-size:13px;font-weight:600;color:var(--muted)}
.work-v2 .work-card>.spread{margin:0 0 10px;align-items:center}
.work-v2 .work-card>.sales-help{margin:4px 0 0}
.work-steps{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.work-step{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.work-step-mark{width:10px;height:10px;border-radius:50%;background:var(--primary)}
.work-step.is-warn{border-color:#fecdd3;background:#fff7f8}
.work-step.is-warn .work-step-mark{background:#e11d48}
.work-step.is-ok .work-step-mark{background:#16a34a}
.work-step-copy{display:grid;gap:1px;min-width:0}
.work-step-copy strong{font-size:14px;font-weight:600}
.work-step-copy small{font-size:13px;color:var(--muted)}
.work-step-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.work-assort{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .work-assort .work-assort-btn{justify-content:space-between;width:100%;height:auto!important;min-height:44px!important;padding:8px 14px!important;font-weight:600!important}
.work-assort-btn::after{content:"›";margin-left:8px;font-size:18px;color:var(--muted)}
.work-top,.work-docs{list-style:none;margin:0;padding:0}
.work-top li,.work-docs li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;border-bottom:1px solid color-mix(in oklab,var(--line) 60%,transparent);font-size:14px}
.work-top li:last-child,.work-docs li:last-child{border-bottom:0}
.work-top li a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);text-decoration:none}
.work-top li a:hover{color:var(--primary)}
.work-top li span,.work-docs li span{color:var(--muted);font-size:13px;white-space:nowrap}
.work-docs li strong{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
html:not([data-theme]) .work-v2 .customer-facts{margin:0;display:grid;gap:0}
html:not([data-theme]) .work-v2 .customer-fact{display:grid;grid-template-columns:minmax(90px,34%) minmax(0,1fr);gap:12px;padding:7px 0;border-bottom:1px solid color-mix(in oklab,var(--line) 60%,transparent)}
html:not([data-theme]) .work-v2 .customer-fact:last-child{border-bottom:0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .work-v2 .customer-fact dt{margin:0;color:var(--muted);font-size:13px!important;font-weight:400!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .work-v2 .customer-fact dd{margin:0;font-size:14px!important;font-weight:500}
.sales-modal.is-list{width:min(900px,100%)}
.work-window .page-heading{margin:0 0 12px}
.work-window-table td a{text-decoration:none;color:var(--ink)}
.work-window-table td a:hover strong{color:var(--primary)}
.work-window-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:14px 0 0}
.work-window-foot .sales-help{margin:0}
@media(max-width:1100px){.work-grid{grid-template-columns:minmax(0,1fr)}.work-figures{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.work-step{grid-template-columns:10px minmax(0,1fr)}.work-step-actions{grid-column:2;justify-content:flex-start}.work-assort{grid-template-columns:minmax(0,1fr)}}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .work-v2 .customer-fact dd a{display:inline!important;min-height:0!important;padding:0!important;margin:0!important}
/* Choosing a contractor with none chosen (owner, 16.11.2026): the dashed field and the search inside the list looked
   like two search fields. The open list now lies over the dashed field, so the one real field is where the click was. */
.point-panel.is-empty .point-chooser[open]>summary{visibility:hidden}
.point-panel.is-empty .point-chooser[open]>.point-chooser-panel{top:0;width:100%;min-width:min(560px,calc(100vw - 32px))}
.point-panel.is-empty .point-chooser[open]>.point-chooser-panel>.search{margin:3px 3px 8px}
/* The row of the order document (owner, 16.11.2026: «якось дуже криво»): one tidy line — photo, product, availability,
   price, sum, quantity, the three-dots menu as a pop-up. Nothing moves when the menu opens. */
@media(min-width:1100px){
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line{display:grid!important;grid-template-columns:56px minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:start!important;gap:4px 16px!important;padding:12px 16px!important;position:relative}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.product-thumb{grid-column:1!important;grid-row:1!important;width:56px!important;height:56px!important;margin:0!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info{display:grid!important;grid-column:2!important;grid-row:1!important;grid-template-columns:minmax(0,1fr) 200px 110px 120px!important;gap:1px 20px!important;align-items:start!important;align-content:start;min-width:0}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>*{grid-column:1!important;grid-row:auto!important;min-width:0;margin:0!important;justify-self:start!important;text-align:left!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>:is(.sales-stock-block,.sales-stock){grid-column:2!important;grid-row:1/span 8!important;justify-self:stretch!important;align-self:start!important;padding:0!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>.sales-stock-block .sales-stock-lines{margin:0!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>.sales-pricing{grid-column:3/span 2!important;grid-row:1/span 8!important;display:grid!important;grid-template-columns:110px 120px!important;gap:0 20px!important;justify-self:stretch!important;align-self:start!important;min-height:0!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>.sales-pricing>*{display:grid!important;gap:1px;justify-items:end!important;text-align:right!important;margin:0!important;min-width:0}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>.sales-pricing .sales-price-label{color:var(--muted);font-size:12px!important;font-weight:400!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>.sales-pricing :is(.sales-unit-price,.sales-line-total){margin:0!important;font-size:14px!important;font-weight:600!important;font-variant-numeric:tabular-nums;white-space:nowrap}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>.sales-pack-line{display:none!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>.sales-pack-line:has(.sales-packing-info){display:block!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-actions{grid-column:3!important;grid-row:1!important;display:flex!important;align-items:flex-start!important;gap:8px!important;margin:0!important;padding:0!important;border:0!important;width:auto!important;min-width:0}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-actions>.sales-quantity{display:grid;gap:4px;justify-items:start;margin:0!important;width:auto!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-actions .sales-unit-label{display:none!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>:not(.product-thumb):not(.sales-product-info):not(.sales-product-actions){grid-column:2/-1!important;margin:2px 0 0!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more{position:relative!important;margin:0!important;padding:0!important;border:0!important;width:auto!important;min-width:0!important;flex:none}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more>summary{display:inline-flex!important;align-items:center;justify-content:center;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:999px;background:var(--secondary,#f1f2f4);color:var(--ink);list-style:none;cursor:pointer}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more>summary::-webkit-details-marker{display:none}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more>summary::after{content:none!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more>summary svg{width:20px;height:20px;stroke-width:2.6}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more[open]>div{position:absolute!important;z-index:20;right:0;top:calc(100% + 6px);min-width:230px;display:grid!important;gap:2px;margin:0!important;padding:6px!important;border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 32px rgba(15,23,42,.14)}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-doc .sales-product-row.is-composition-line .sales-row-more[open]>div>*{display:flex!important;align-items:center;justify-content:flex-start!important;width:100%!important;min-height:40px!important;height:auto!important;margin:0!important;padding:6px 12px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;font-size:14px!important;font-weight:400!important;color:var(--ink)!important;text-decoration:none;white-space:nowrap}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-doc .sales-product-row.is-composition-line .sales-row-more[open]>div>*:hover{background:var(--secondary,#f1f2f4)!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line:has(.sales-row-more[open]){z-index:5}
}
@media(min-width:1100px){
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-actions{flex-wrap:nowrap!important;justify-content:flex-end}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-actions>.sales-quantity{flex:0 0 auto!important;width:max-content!important;max-width:none!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-info>.sales-stock-block .sales-stock-lines{width:100%}
}
/* «Підібрати аналог» and «Зафіксувати попит» under a line without stock: both are «in development» for now; the
   analogs stay in the three-dots menu of the line */
html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-unavailable-actions{display:none!important}
/* «Усі борги» v2 */
.debts-v2 .page-heading{margin:0 0 12px}
.debts-figures{margin:0 0 14px}
.debts-v2 .debt-figure.sales-debt-overdue{background:#fff1f2;border-color:#fecdd3}
.debts-v2 .debt-figure.sales-debt-overdue>strong{color:#be123c}
.debts-toolbar .select{width:auto;min-width:0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .debts-card .debt-row-link{display:inline;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;height:auto!important;min-height:0!important;font-size:14px!important;font-weight:600!important;color:var(--ink);text-align:left;cursor:pointer;white-space:normal}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .debts-card .debt-row-link:hover{color:var(--primary);text-decoration:underline}
.debts-card tbody tr{cursor:default}
.debts-card tbody tr:hover{background:color-mix(in oklab,var(--primary) 4%,#fff)}
.debt-window h2{margin:16px 0 6px;font-size:15px;font-weight:600}
.debt-window .is-overdue{color:#be123c}
.debt-window td small.is-overdue{display:block;font-size:12px}
.debt-window .page-heading p a{color:var(--primary)}
/* «Усі замовлення»: a calmer card — the name and the sum in one line, small type for the rest */
html:not([data-theme]) .apple-workspace .sales-saved-orders{gap:10px;margin-top:10px}
html:not([data-theme]) .apple-workspace .sales-saved-order{padding:14px 18px}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-saved-order h2{font-size:16px!important;font-weight:600!important;margin:0}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-saved-order .apple-saved-total{font-size:16px!important;font-weight:600!important;font-variant-numeric:tabular-nums}
html:not([data-theme]) .apple-workspace .sales-saved-order .apple-saved-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
html:not([data-theme]) .apple-workspace .sales-saved-order .apple-saved-heading>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}
html:not([data-theme]) .apple-workspace .sales-saved-order>.sales-help{margin:4px 0 0}
html:not([data-theme]) .apple-workspace .sales-order-search{margin:0 0 8px}
/* The catalog like the picker (owner, 16.11.2026): the groups are a bar over the list, rows are compact with
   availability in short lines, the filters are the same pop-up */
@media(min-width:1100px){
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .apple-catalog-layout{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .apple-catalog-controls{position:static!important;max-height:none!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-catalog-tree .sales-group-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px;max-height:300px;overflow:auto;margin:0;padding:0;list-style:none}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-group-node{width:100%}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-group-name{white-space:normal;overflow-wrap:break-word;hyphens:auto;line-height:1.3;min-width:0;flex:1}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-group-count{flex:none}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos){gap:6px}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;gap:2px 16px!important;align-items:center!important;padding:8px 12px!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse.has-photo{grid-template-columns:60px minmax(0,1fr) auto!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.product-thumb{grid-column:1!important;grid-row:1!important;width:60px!important;height:60px!important;margin:0!important;border-radius:8px;align-self:start}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.product-thumb img{width:100%;height:100%;object-fit:contain}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.sales-product-info{display:grid!important;grid-column:1!important;grid-row:1!important;grid-template-columns:minmax(0,1fr) 220px 150px!important;gap:1px 20px!important;align-items:start!important;min-width:0}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse.has-photo>.sales-product-info{grid-column:2!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.sales-product-info>*{grid-column:1!important;grid-row:auto!important;min-width:0;margin:0!important;justify-self:start!important;text-align:left!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.sales-product-info>:is(.sales-stock-block,.sales-stock){grid-column:2!important;grid-row:1/span 6!important;justify-self:stretch!important;align-self:start!important;padding:0!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.sales-product-info>.sales-stock-block .sales-stock-lines{margin:0!important;width:100%}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.sales-product-info>.sales-pricing{grid-column:3!important;grid-row:1/span 6!important;justify-self:end!important;text-align:right!important;align-self:start!important;min-height:0!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.sales-product-info>.sales-pricing *{text-align:right!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.sales-product-info>:is(.sales-specs,.sales-pack-line){display:none!important}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse>.sales-product-actions{grid-row:1!important;grid-column:2!important;margin:0!important;display:flex!important;align-items:center}
  html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse.has-photo>.sales-product-actions{grid-column:3!important}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-catalog-browse .sales-product-row.is-browse .sales-signs>*{font-size:11px!important;padding:1px 6px!important;min-height:0!important;line-height:1.4!important}
}
/* the catalog's own filters inside the pop-up */
.sales-filters-selects{display:grid;gap:8px;padding:2px 6px 6px}
.sales-filters-selects label{display:grid;gap:3px;font-size:12px;color:var(--muted)}
.sales-filters-selects .select{width:100%}
.sales-filters-selects h3{margin:6px 0 0;font-size:12px;font-weight:600;color:var(--muted)}
.sales-catalog-browse .sales-filters-panel{max-height:min(70vh,560px);overflow:auto}
@media(min-width:1100px){html:not([data-theme]) .apple-workspace .sales-catalog-browse .sales-results:not(.with-photos) .sales-product-row.is-browse{min-height:0!important;align-items:start!important}}
/* «Інформація» of the contractors list as a window (owner, 16.11.2026) */
html:not([data-theme]) .sales-modal .info-window .page-heading{margin:0 0 12px;padding-right:110px}
html:not([data-theme]) .sales-modal .info-window .insights-v2{margin:0}
/* The account menu of the rail: a round user icon instead of «Ще» (owner, 16.11.2026) */
@media(min-width:1100px){
  html:not([data-theme]) .workspace-menu>summary.is-user{width:44px!important;min-width:44px;height:44px!important;min-height:44px!important;padding:0!important;border-radius:999px!important;background:var(--secondary,#f1f2f4);color:var(--ink);justify-content:center}
  html:not([data-theme]) .workspace-menu>summary.is-user:hover,html:not([data-theme]) .workspace-menu[open]>summary.is-user{background:#e4e7ec}
  html:not([data-theme]) .workspace-menu>summary.is-user svg{width:22px;height:22px}
  html:not([data-theme]) .workspace-menu>summary.is-user .workspace-menu-label{display:none!important}
}
/* The row menu of the order document must not be cut by the document frame (owner, 16.11.2026: «меню за фоном») */
@media(min-width:1100px){
  html:not([data-theme]) .apple-workspace .sales-doc{overflow:visible!important}
  html:not([data-theme]) .apple-workspace .sales-doc>:first-child{border-top-left-radius:14px;border-top-right-radius:14px}
  html:not([data-theme]) .apple-workspace .sales-doc>:last-child,html:not([data-theme]) .apple-workspace .sales-doc>:last-child>.sales-product-row:last-child{border-bottom-left-radius:14px;border-bottom-right-radius:14px}
}
/* One page for help and support (owner, 16.11.2026): the help cards sit under the support form */
.support-help{margin-top:24px}.support-help>h2{margin:0 0 12px;font-size:20px}
@media(min-width:900px){.support-help>.stack{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.support-help>.stack>*{margin:0}}
.support-help .card{display:grid;gap:10px;justify-items:start}.support-help .card>*{margin:0}
/* The cross that removes a line of the order document (owner, 16.11.2026) */
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-doc .sales-product-row .sales-row-remove{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:var(--secondary,#f1f2f4)!important;color:var(--muted)!important;box-shadow:none!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-doc .sales-product-row .sales-row-remove:hover{background:#fde8e8!important;color:#c62828!important}
html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row .sales-row-remove svg{width:18px;height:18px;stroke-width:2.4}
/* Deleting a draft: the confirmation is a clear red button with «Ні» beside it (owner, 16.11.2026) */
html:not([data-theme]) .draft-confirm{display:inline-flex;align-items:center;gap:8px;margin-left:8px;padding:4px 4px 4px 12px;border-radius:12px;background:#fdecec;vertical-align:middle}
html:not([data-theme]) .draft-confirm-text{font-size:13px;font-weight:600;color:#a11d1d;white-space:nowrap}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .draft-confirm .draft-confirm-yes{min-height:36px!important;height:36px!important;padding:0 14px!important;border:0!important;border-radius:10px!important;background:#d32f2f!important;color:#fff!important;font-size:14px!important;font-weight:600!important;white-space:nowrap;box-shadow:none!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .draft-confirm .draft-confirm-yes:hover{background:#b71c1c!important}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .draft-confirm .draft-confirm-no{min-height:36px!important;height:36px!important;padding:0 12px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#fff!important;color:var(--ink)!important;font-size:14px!important;font-weight:500!important;box-shadow:none!important}

/* ===== v2 on a phone (owner, 16.11.2026: «полную адаптивность, чтобы это работало на мобильном») ===== */
@media(min-width:1024px){html:not([data-theme]) .workspace-menu-panel .menu-narrow{display:none!important}}
@media(max-width:767px){
  /* the chosen contractor: one compact block, terms and the warehouse stay reachable */
  html:not([data-theme]) .apple-workspace .point-panel-label{display:none!important}
  html:not([data-theme]) .apple-workspace .point-panel-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px!important;align-items:center;padding:8px 12px!important}
  html:not([data-theme]) .apple-workspace .point-panel-title{grid-column:1;min-width:0}
  html:not([data-theme]) .apple-workspace .point-panel-title h2{font-size:15px!important;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:not([data-theme]) .apple-workspace .point-panel-debt{grid-column:2;grid-row:1;justify-self:end}
  html:not([data-theme]) .apple-workspace .point-panel-terms{display:flex!important;grid-column:1/-1;flex-wrap:wrap;gap:6px}
  html:not([data-theme]) .apple-workspace .point-panel-terms select.point-panel-select{max-width:100%!important}
  html:not([data-theme]) .apple-workspace .point-panel-actions{grid-column:1/-1;display:flex!important;gap:8px;margin:0!important}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-actions>*{flex:1 1 0;min-width:0}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-actions :is(summary,button.btn){width:100%!important;min-height:36px!important;height:36px!important;padding:0 10px!important;font-size:13px!important;justify-content:center;white-space:nowrap}
  html:not([data-theme]) .apple-workspace details.point-chooser>.point-chooser-panel{position:fixed!important;left:8px!important;right:8px!important;top:64px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 140px);z-index:60}
  /* the summary «Робота з контрагентом» */
  html:not([data-theme]) .apple-workspace .work-v2 :is(.work-grid,.work-main,.work-side){grid-template-columns:minmax(0,1fr)!important}
  html:not([data-theme]) .apple-workspace .work-v2 :is(.work-grid,.work-main,.work-side)>*{min-width:0}
  html:not([data-theme]) .apple-workspace .work-v2 .work-step{flex-wrap:wrap}
  html:not([data-theme]) .apple-workspace .work-v2 .work-assort{grid-template-columns:minmax(0,1fr)!important}
  html:not([data-theme]) .apple-workspace .work-v2 :is(.work-top,.work-docs) li{flex-wrap:wrap;gap:2px 12px}
  html:not([data-theme]) .apple-workspace :is(.debt-figures,.debts-figures){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}
  html:not([data-theme]) .apple-workspace :is(.debt-figures,.debts-figures)>.debt-figure{padding:10px 12px!important;min-width:0}
  html:not([data-theme]) .apple-workspace :is(.debt-figures,.debts-figures)>.debt-figure strong{font-size:18px!important;overflow-wrap:anywhere}
  html:not([data-theme]) .apple-workspace :is(.debt-figures,.debts-figures)>.debt-figure:last-child:nth-child(odd){grid-column:1/-1}
  /* search: the field takes the whole line, currency and filters go under it */
  html:not([data-theme]) .apple-workspace .sales-search-controls{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
  html:not([data-theme]) .apple-workspace .sales-search-controls>.sales-search{display:contents!important}
  html:not([data-theme]) .apple-workspace .sales-search-controls .sales-search-field{grid-column:1/-1;min-width:0}
  html:not([data-theme]) .apple-workspace .sales-search-controls .price-currency{grid-column:1;justify-self:start}
  html:not([data-theme]) .apple-workspace .sales-search-controls>details.sales-filters{grid-column:2;justify-self:end}
  html:not([data-theme]) .apple-workspace .sales-search-controls>:not(.sales-search):not(details){grid-column:1/-1}
  html:not([data-theme]) .apple-workspace .sales-search-controls .sales-filters-panel{position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(72px + env(safe-area-inset-bottom));width:auto!important;max-height:70dvh;overflow:auto;z-index:60}
  html:not([data-theme]) .apple-workspace .sales-tabs{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  /* a product row: name, then availability and price side by side, then the quantity line */
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact{grid-template-columns:minmax(0,1fr) auto!important;gap:6px 12px!important;padding:12px!important;height:auto!important;min-height:0!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-product-name{grid-column:1/-1!important;grid-row:auto!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact :is(.sales-stock-block,.sales-stock){grid-column:1!important;grid-row:auto!important;min-width:0}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-pricing{grid-column:2!important;grid-row:auto!important;display:grid!important;justify-items:end;align-content:start;gap:2px;text-align:right;min-width:0}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-pricing>*{margin:0!important;white-space:nowrap}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact :is(.sales-signs,.sales-pack-line,.sales-specs){grid-column:1/-1!important;grid-row:auto!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-pack-line.is-default-step{display:none!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact>.sales-product-actions{grid-column:1/-1!important;grid-row:auto!important;display:flex!important;align-items:center;gap:8px;width:100%!important;margin:2px 0 0!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact>.sales-product-actions>.sales-entry{flex:1 1 auto;display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:8px;width:auto!important;min-width:0;margin:0!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-unit-options{flex:0 1 auto;min-width:0;margin:0!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .quantity-control{flex:none;margin:0 0 0 auto!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact.is-browse>.sales-product-actions{justify-content:flex-end}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-row-more{position:relative;flex:none}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-row-more[open]>div{position:absolute!important;right:0;top:calc(100% + 6px);z-index:30;min-width:220px;display:grid!important;gap:2px;padding:6px!important;border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 32px rgba(15,23,42,.14)}
  /* tables of «Усі борги», of the debt window and of drafts turn into cards */
  html:not([data-theme]) .apple-workspace :is(.debts-v2,.debt-window,.draft-table-card) table:is(.debt-table,.history-lines){display:block;width:100%}
  html:not([data-theme]) .apple-workspace :is(.debts-v2,.debt-window) table:is(.debt-table,.history-lines) thead,html:not([data-theme]) .apple-workspace table.draft-table thead{display:none}
  html:not([data-theme]) .apple-workspace :is(.debts-v2,.debt-window) table:is(.debt-table,.history-lines) tbody,html:not([data-theme]) .apple-workspace table.draft-table,html:not([data-theme]) .apple-workspace table.draft-table tbody{display:block;width:100%}
  html:not([data-theme]) .apple-workspace :is(.debts-v2,.debt-window) table:is(.debt-table,.history-lines) tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 12px;padding:10px 0;border-bottom:1px solid var(--line)}
  html:not([data-theme]) .apple-workspace :is(.debts-v2,.debt-window) table:is(.debt-table,.history-lines) td{display:block;padding:0!important;border:0!important;text-align:left!important;min-width:0;font-size:14px}
  html:not([data-theme]) .apple-workspace :is(.debts-v2,.debt-window) table:is(.debt-table,.history-lines) td:first-child{grid-column:1/-1}
  html:not([data-theme]) .apple-workspace :is(.debts-v2,.debt-window) table:is(.debt-table,.history-lines) td:not(:first-child)::before{display:block;font-size:11px;font-weight:400;color:var(--muted);line-height:1.3}
  html:not([data-theme]) .apple-workspace .debts-v2 table.debt-table td.debt-route{grid-column:1/-1;color:var(--muted);font-size:12px}
  html:not([data-theme]) .apple-workspace .debts-v2 table.debt-table td.debt-route:empty{display:none}
  html:not([data-theme]) .apple-workspace .debts-v2 table.debt-table td:nth-child(3)::before{content:"Борг"}
  html:not([data-theme]) .apple-workspace .debts-v2 table.debt-table td:nth-child(4)::before{content:"Прострочено"}
  html:not([data-theme]) .apple-workspace .debt-window table.history-lines tr{grid-template-columns:repeat(3,minmax(0,1fr))}
  html:not([data-theme]) .apple-workspace .debt-window table.history-lines:first-of-type td:nth-child(2)::before{content:"Борг"}
  html:not([data-theme]) .apple-workspace .debt-window table.history-lines:first-of-type td:nth-child(3)::before{content:"Прострочено"}
  html:not([data-theme]) .apple-workspace .debt-window table.history-lines:first-of-type td:nth-child(4)::before{content:"Кредитний ліміт"}
  html:not([data-theme]) .apple-workspace .debt-window table.history-lines:not(:first-of-type) td:nth-child(2)::before{content:"Видана"}
  html:not([data-theme]) .apple-workspace .debt-window table.history-lines:not(:first-of-type) td:nth-child(3)::before{content:"Строк"}
  html:not([data-theme]) .apple-workspace .debt-window table.history-lines:not(:first-of-type) td:nth-child(4)::before{content:"Залишок"}
  html:not([data-theme]) .apple-workspace table.draft-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 0;border-bottom:1px solid var(--line)}
  html:not([data-theme]) .apple-workspace table.draft-table td{display:block;padding:0!important;border:0!important;min-width:0}
  html:not([data-theme]) .apple-workspace table.draft-table td:first-child,html:not([data-theme]) .apple-workspace table.draft-table td.draft-actions{grid-column:1/-1}
  html:not([data-theme]) .apple-workspace table.draft-table td:nth-child(2){text-align:left!important;color:var(--muted);font-size:13px}
  html:not([data-theme]) .apple-workspace table.draft-table td:nth-child(2)::after{content:" поз."}
  html:not([data-theme]) .apple-workspace table.draft-table td:nth-child(4){grid-column:1/-1;font-size:12px;color:var(--muted)}
  html:not([data-theme]) .apple-workspace table.draft-table td.draft-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  html:not([data-theme]) .apple-workspace .draft-confirm{margin-left:0}
  html:not([data-theme]) .apple-workspace .debts-toolbar{gap:8px!important}
  html:not([data-theme]) .apple-workspace .debts-toolbar :is(.debts-sort,.debts-size){flex:1 1 0;min-width:0}
  /* windows are sheets from the bottom; their tables scroll inside */
  html:not([data-theme]) .apple-workspace .sales-modal .work-window-table{display:block;overflow-x:auto;white-space:nowrap}
  html:not([data-theme]) .apple-workspace .sales-modal .work-window-foot{flex-wrap:wrap}
  html:not([data-theme]) .apple-workspace .sales-modal .info-window .page-heading{padding-right:0!important}
  html:not([data-theme]) .apple-workspace .sales-modal .page-heading h1{font-size:20px!important;overflow-wrap:anywhere}
  /* headings and wide rows of other pages */
  html:not([data-theme]) .apple-workspace .order-head-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .order-head-actions>*{flex:1 1 auto;justify-content:center}
  html:not([data-theme]) .apple-workspace .support-help>.stack{display:grid;gap:12px}
}
@media(max-width:767px){
  html:not([data-theme]) .apple-workspace .point-panel-terms{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;align-items:center}
  html:not([data-theme]) .apple-workspace .point-panel-terms>*{flex:none}
  html:not([data-theme]) .apple-workspace .point-panel-terms select.point-panel-select{flex:0 1 auto;max-width:210px!important}
  html:not([data-theme]) .apple-workspace .debts-toolbar .history-filters{flex:1 1 100%}
  html:not([data-theme]) .apple-workspace .debts-toolbar :is(.debts-sort,.debts-size){flex:1 1 0;min-width:120px;width:auto!important}
  html:not([data-theme]) .apple-workspace .debts-v2 table.debt-table td.debt-route{font-size:12px!important}
}
@media(max-width:767px){
  /* product row on a phone: explicit lines — name / availability + price / signs / quantity */
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-product-name{grid-row:1!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact :is(.sales-stock-block,.sales-stock){grid-row:2!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-pricing{grid-row:2!important;align-self:start}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-signs{grid-row:3!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-pack-line{grid-row:4!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact>.sales-product-actions{grid-row:5!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact>.sales-product-actions>.sales-entry{flex-direction:row!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-unit-options{order:1}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .quantity-control{order:2}
  /* a line of the order document: quantity, cross and menu on one line, units under them */
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:8px!important;align-items:center;width:100%!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-actions :is(.sales-quantity,.sales-entry){display:contents!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .quantity-control{grid-column:1;grid-row:1;justify-self:start;margin:0!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-remove{grid-column:2;grid-row:1}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more{grid-column:3;grid-row:1;position:relative}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-unit-options{grid-column:1/-1;grid-row:2;margin:0!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more>summary{display:inline-flex!important;align-items:center;justify-content:center;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:999px;background:var(--secondary,#f1f2f4);color:var(--ink);list-style:none}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more>summary::after{content:none!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more[open]>div{position:absolute!important;right:0;top:calc(100% + 6px);z-index:30;min-width:200px;display:grid!important;padding:6px!important;border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 32px rgba(15,23,42,.14)}
  html:not([data-theme]) .apple-workspace .sales-doc{overflow:visible!important}
}
@media(max-width:767px){
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact{grid-template-columns:minmax(150px,1fr) minmax(0,auto)!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-pricing{max-width:44vw}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact .sales-pricing *{white-space:normal!important;text-align:right}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact:not(.is-browse)>.sales-product-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact:not(.is-browse)>.sales-product-actions>.sales-entry{display:contents!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact:not(.is-browse) .sales-unit-options{grid-column:1;grid-row:1;justify-self:start;justify-content:flex-start}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact:not(.is-browse) .quantity-control{grid-column:2;grid-row:1;margin:0!important}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact:not(.is-browse) .sales-row-more{grid-column:3;grid-row:1}
  html:not([data-theme]) .apple-workspace .sales-results .sales-product-row.is-compact:not(.is-browse) .sales-entry>:not(.sales-unit-options):not(.quantity-control):not(.sales-sr-only){grid-column:1/-1}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more>summary{min-width:36px!important;max-width:36px}
}
@media(max-width:767px){
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row.is-compact:not(.is-browse)>.sales-product-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center;gap:8px!important}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row.is-compact:not(.is-browse)>.sales-product-actions>.sales-entry{display:contents!important}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row.is-compact:not(.is-browse) .sales-unit-options{grid-column:1!important;grid-row:1!important;justify-self:start!important;justify-content:flex-start!important;width:auto!important}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row.is-compact:not(.is-browse) .quantity-control{grid-column:2!important;grid-row:1!important;margin:0!important}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row.is-compact:not(.is-browse) .sales-row-more{grid-column:3!important;grid-row:1!important}
  /* assortment windows: a product per card with labelled figures */
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table{display:block!important;overflow:visible!important;white-space:normal!important;width:100%}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table thead{display:none}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table tbody{display:block}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 8px;padding:10px 0;border-bottom:1px solid var(--line)}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table td{display:block;padding:0!important;border:0!important;text-align:left!important;min-width:0;font-size:13px}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table td:first-child{grid-column:1/-1;font-size:14px}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table td:not(:first-child)::before{display:block;font-size:11px;color:var(--muted);line-height:1.3}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table td:nth-child(2)::before{content:"Востаннє"}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table td:nth-child(3)::before{content:"Кількість"}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table td:nth-child(4)::before{content:"Разів"}
  html:not([data-theme]) .apple-workspace .sales-modal table.work-window-table td:nth-child(5)::before{content:"Усього"}
}
@media(max-width:767px){
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row.is-compact:not(.is-browse)>.sales-product-actions>.sales-quantity{display:contents!important}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .sales-results .sales-product-row.is-compact:not(.is-browse)>.sales-product-actions>.sales-next-product{grid-column:1/-1}
}
/* v2 between a phone and a desktop (768–1099 px): the top menu scrolls, the order line keeps one tidy line */
@media(min-width:768px) and (max-width:1023px){
  html:not([data-theme]) .apple-workspace .workspace-header-inner{min-width:0}
  html:not([data-theme]) .apple-workspace .workspace-nav{flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
  html:not([data-theme]) .apple-workspace .workspace-nav::-webkit-scrollbar{display:none}
  html:not([data-theme]) .apple-workspace .workspace-nav a{flex:none;white-space:nowrap}
}
@media(min-width:768px) and (max-width:1023px){
  html:not([data-theme]) .apple-workspace .sales-doc{overflow:visible!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-actions{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto;gap:8px!important;align-items:center;width:100%!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line>.sales-product-actions :is(.sales-quantity,.sales-entry){display:contents!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .quantity-control{grid-column:1;grid-row:1;margin:0!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-unit-options{grid-column:2;grid-row:1;justify-self:start;margin:0!important;width:auto!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-unit-options>*{flex:none!important;width:auto!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-remove{grid-column:3;grid-row:1}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more{grid-column:4;grid-row:1;position:relative}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more>summary{display:inline-flex!important;align-items:center;justify-content:center;width:36px!important;min-width:36px!important;max-width:36px;height:36px!important;min-height:36px!important;padding:0!important;border-radius:999px;background:var(--secondary,#f1f2f4);color:var(--ink);list-style:none}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more>summary::after{content:none!important}
  html:not([data-theme]) .apple-workspace .sales-doc .sales-product-row.is-composition-line .sales-row-more[open]>div{position:absolute!important;right:0;top:calc(100% + 6px);z-index:30;min-width:200px;display:grid!important;padding:6px!important;border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 32px rgba(15,23,42,.14)}
}

/* Phone (owner, 16.11.2026): bottom menu icons across the whole width; the contractor panel is folded,
   its menu is a drop-down. Wider screens do not see the two toggles. */
html:not([data-theme]) :is(.point-panel-fold,.point-menu-toggle){display:none}
@media(max-width:767px){
  html:not([data-theme]) .apple-workspace>.workspace-mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;justify-items:stretch;padding-inline:4px!important}
  html:not([data-theme]) .workspace-mobile-nav a{width:100%;min-width:0}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded){position:sticky;top:0;z-index:40;padding:0!important}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-panel-row{grid-template-columns:minmax(0,1fr) auto 36px!important;gap:4px 8px!important;padding:6px 8px 6px 12px!important;align-items:center}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-fold{display:inline-flex!important;grid-column:3;grid-row:1;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.7);color:var(--ink)}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel-fold svg{width:18px;height:18px;transform:rotate(90deg);transition:transform .15s}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel.is-open .point-panel-fold svg{transform:rotate(-90deg)}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-panel-title{grid-column:1;grid-row:1}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-panel-debt{grid-column:2;grid-row:1}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded):not(.is-open) :is(.point-panel-terms,.point-panel-actions,.point-panel-address){display:none!important}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open .point-panel-address{display:block!important;font-size:12px;color:var(--muted);margin:2px 0 0}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open .point-panel-terms{flex-wrap:wrap!important;overflow:visible}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open .point-panel-title h2{white-space:normal}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-menu-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:calc(100% - 24px);min-height:40px;margin:0 12px 8px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:15px;font-weight:600;text-align:left}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-menu-toggle>span{display:inline-flex;align-items:center;gap:8px;min-width:0}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-menu-toggle>span>b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--soft,#e8f1ff);color:var(--primary);font-size:12px}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-menu-toggle svg{width:18px;height:18px;flex:none;transform:rotate(90deg);transition:transform .15s}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel.is-menu-open .point-menu-toggle svg{transform:rotate(-90deg)}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-menu{display:none!important}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-menu-open:not(.is-folded) .point-menu{display:grid!important;position:absolute;left:12px;right:12px;top:calc(100% - 4px);z-index:45;gap:2px;padding:6px!important;margin:0;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 16px 40px rgba(15,23,42,.18);overflow:visible}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel.is-menu-open .point-menu a{display:flex!important;align-items:center;justify-content:space-between;min-height:44px;height:auto;padding:0 12px!important;border:0!important;border-radius:10px;background:transparent;font-size:15px!important;color:var(--ink);box-shadow:none}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel.is-menu-open .point-menu a.is-current{background:var(--soft,#e8f1ff);color:var(--primary);font-weight:600}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-panel.is-menu-open .point-menu a::after{content:none!important}
}
@media(max-width:767px){
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded){position:relative!important;top:auto!important}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-menu-toggle>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-menu-toggle :is(span,b)::before,html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-menu-toggle::before{content:none!important;display:none!important}
}
@media(max-width:767px){
  html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .point-menu-toggle>span{display:flex!important;flex:1 1 auto;align-items:center;gap:8px;width:auto!important;height:auto!important;min-width:0;padding:0!important;border-radius:0!important;background:none!important;color:inherit!important;font-size:15px!important;font-weight:600!important;line-height:1.3}
}
@media(max-width:767px){
  /* «Історія з 1С»: the lines of a document as cards with labelled figures */
  html:not([data-theme]) .apple-workspace details.history-doc table.history-lines,html:not([data-theme]) .apple-workspace details.history-doc table.history-lines tbody{display:block;width:100%}
  html:not([data-theme]) .apple-workspace details.history-doc table.history-lines thead{display:none}
  html:not([data-theme]) .apple-workspace details.history-doc table.history-lines tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px;padding:10px 0;border-bottom:1px solid var(--line)}
  html:not([data-theme]) .apple-workspace details.history-doc table.history-lines td{display:block;padding:0!important;border:0!important;text-align:left!important;min-width:0;font-size:13px}
  html:not([data-theme]) .apple-workspace details.history-doc table.history-lines td:first-child{grid-column:1/-1;font-size:14px}
  html:not([data-theme]) .apple-workspace details.history-doc table.history-lines td:not(:first-child)::before{display:block;font-size:11px;color:var(--muted);line-height:1.3}
  html:not([data-theme]) .apple-workspace details.history-doc table.history-lines td:nth-child(2)::before{content:"Кількість"}
  html:not([data-theme]) .apple-workspace details.history-doc table.history-lines td:nth-child(3)::before{content:"Ціна"}
  html:not([data-theme]) .apple-workspace details.history-doc table.history-lines td:nth-child(4)::before{content:"Сума"}
}
/* «Сьогодні» of the agent — the dashboard (owner, 18.11.2026). */
.dash{display:grid;gap:18px;max-width:1240px;margin-inline:auto}
.dash-hero{display:flex;align-items:center;justify-content:space-between;gap:20px 32px;padding:28px 32px;border-radius:24px;color:#fff;background:#0b4fb3 radial-gradient(120% 160% at 100% 0%,#2f86f6 0%,#0b5fd0 42%,#083d91 100%);box-shadow:0 14px 34px -18px rgba(8,61,145,.7);overflow:hidden;position:relative}
.dash-hero::after{content:"";position:absolute;right:-70px;bottom:-130px;width:320px;height:320px;border-radius:50%;border:44px solid rgba(255,255,255,.07);pointer-events:none}
.dash-hero-text{min-width:0;position:relative;z-index:1}
.dash-date{margin:0 0 8px;font-size:14px;font-weight:600;letter-spacing:.01em;color:rgba(255,255,255,.78)}
.dash-hero h1{margin:0;color:#fff;letter-spacing:-.02em}
.dash-hero-plan{position:relative;z-index:1;display:flex;align-items:center;gap:16px;flex:none;padding:12px 22px 12px 12px;border-radius:20px;background:rgba(255,255,255,.12);color:#fff;text-decoration:none;backdrop-filter:blur(6px);transition:background .15s}
.dash-hero-plan:hover,.dash-hero-plan:focus-visible{background:rgba(255,255,255,.2);outline:none}
.dash-hero-plan>span{display:grid;gap:2px}
.dash-hero-plan small{color:rgba(255,255,255,.78)}
.dash-ring{width:104px;height:104px;flex:none}
.dash-ring circle{fill:none;stroke-width:11}
.dash-ring-track{stroke:rgba(255,255,255,.22)}
.dash-ring-value{stroke:#fff;stroke-linecap:round}
.dash-ring text{font-size:28px;font-weight:700;fill:#fff;stroke:none;letter-spacing:-.02em}
.dash-alert{display:block;padding:12px 16px;border:1px solid #fecdd3;border-radius:16px;background:#fff1f2;color:#9f1239;text-decoration:none;font-size:14px}
.dash-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.dash-tile{position:relative;display:grid;gap:2px;align-content:start;padding:18px 18px 16px;border:1px solid rgba(15,23,42,.06);border-radius:20px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px -16px rgba(15,23,42,.18);transition:transform .15s,box-shadow .15s}
.dash-tile:hover,.dash-tile:focus-visible{transform:translateY(-2px);box-shadow:0 2px 4px rgba(15,23,42,.05),0 16px 30px -16px rgba(15,23,42,.28);outline:none}
.dash-tile-icon{display:grid;place-items:center;width:40px;height:40px;margin-bottom:10px;border-radius:12px;background:var(--tile-bg);color:var(--tile-ink)}
.dash-tile-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dash-tile>span{color:var(--muted)}
.dash-tile>strong{font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.dash-tile>small{color:var(--muted);line-height:1.4}
.dash-tile.is-blue{--tile-bg:#e3efff;--tile-ink:#0b5fd0}
.dash-tile.is-amber{--tile-bg:#fef3c7;--tile-ink:#b45309}
.dash-tile.is-red{--tile-bg:#ffe4e6;--tile-ink:#be123c}
.dash-tile.is-green{--tile-bg:#dcfce7;--tile-ink:#15803d}
.dash-tile.is-violet{--tile-bg:#ede9fe;--tile-ink:#6d28d9}
.dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.dash-col{display:grid;gap:18px;min-width:0}
.dash-card{margin:0;padding:18px 20px 12px;border-radius:20px;border:1px solid rgba(15,23,42,.06);box-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px -16px rgba(15,23,42,.18)}
.dash-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.dash-card-head h2{display:flex;align-items:center;gap:8px;margin:0}
.dash-card-head h2 b{padding:1px 9px;border-radius:999px;background:var(--secondary,#f1f2f4);color:var(--muted);font-size:12px;font-weight:600}
.dash-card-head a{padding:4px 10px;border-radius:999px;font-size:13px;font-weight:600;color:var(--primary);text-decoration:none}
.dash-card-head a:hover{background:color-mix(in oklab,var(--primary) 10%,#fff)}
.dash-list{list-style:none;margin:0 -8px;padding:0}
.dash-list li+li{border-top:1px solid rgba(15,23,42,.06)}
.dash-list li>:is(a,button){display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:0;padding:10px 8px;border:0;border-radius:10px;background:none;color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.dash-list li>:is(a,button):hover,.dash-list li>:is(a,button):focus-visible{background:var(--secondary,#f1f2f4);outline:none}
.dash-list span{display:grid;gap:1px;min-width:0}
.dash-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-list small{color:var(--muted)}
.dash-list b{flex:none;font-variant-numeric:tabular-nums;white-space:nowrap}
.dash-list i{font-style:normal}
.dash-list b.is-late{color:#be123c}
.dash-empty{display:flex;align-items:center;gap:10px;margin:2px 0 8px;padding:14px;border-radius:14px;background:#f6f8fb;color:var(--muted);font-size:14px}
.dash-empty svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dash-stamp{margin:0;text-align:center}
html:not([data-theme]) .apple-workspace #main .dash-hero h1{font-size:clamp(26px,3.2vw,36px)!important;font-weight:700!important;line-height:1.15!important;color:#fff!important}
html:not([data-theme]) .apple-workspace #main .dash-hero-plan small{font-size:13px!important;font-weight:500!important}
html:not([data-theme]) .apple-workspace #main .dash-ring text{font-size:28px!important;font-weight:700!important}
html:not([data-theme]) .apple-workspace #main .dash-hero-plan strong{font-size:18px!important;font-weight:700!important;color:#fff}
html:not([data-theme]) .apple-workspace #main .dash-tile>strong{font-size:28px!important;font-weight:700!important;line-height:1.2!important;color:var(--ink)}
html:not([data-theme]) .apple-workspace #main .dash-tile.is-red>strong{color:#be123c}
html:not([data-theme]) .apple-workspace #main .dash-tile>span{font-size:13px!important;font-weight:500!important}
html:not([data-theme]) .apple-workspace #main .dash-tile>small{font-size:12px!important}
html:not([data-theme]) .apple-workspace #main .dash-card-head h2{font-size:16px!important;font-weight:700!important}
html:not([data-theme]) .apple-workspace #main .dash-list strong{font-size:14px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace #main .dash-list b{font-size:14px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace #main .dash-list small,html:not([data-theme]) .apple-workspace #main .dash-list small i{font-size:12px!important}
@media(max-width:900px){.dash-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.dash{gap:12px}.dash-hero{padding:20px;border-radius:20px;gap:14px}.dash-hero h1 br{display:none}.dash-hero-plan{flex-direction:column;gap:6px;padding:10px 12px;text-align:center}.dash-ring{width:76px;height:76px}.dash-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dash-tile{padding:14px;border-radius:16px}.dash-tile-icon{width:34px;height:34px;margin-bottom:8px}.dash-col{gap:12px}.dash-card{padding:14px 16px 8px;border-radius:16px}
  html:not([data-theme]) .apple-workspace #main .dash-tile>strong{font-size:21px!important}
  html:not([data-theme]) .apple-workspace #main .dash-hero h1{font-size:22px!important}
  html:not([data-theme]) .apple-workspace #main .dash-hero-plan strong{font-size:13px!important}
  html:not([data-theme]) .apple-workspace #main .dash-hero-plan small{font-size:11px!important}}
/* The printed order (owner, 18.11.2026): a plain order form on screen and on paper. */
.order-sheet{max-width:860px;margin:0 auto;padding:32px 36px;border:1px solid var(--line);border-radius:16px;background:#fff;color:#111;font-size:14px;line-height:1.45}
.order-sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:16px;border-bottom:2px solid #111}
.order-sheet-brand{margin:0 0 4px;font-size:13px;font-weight:700;letter-spacing:.18em;color:#0b5fd0}
.order-sheet-head h1{margin:0;letter-spacing:-.01em}
.order-sheet-head p{margin:2px 0 0;color:#555}
.order-sheet-status{display:grid;gap:2px;text-align:right;font-size:13px;color:#555}
.order-sheet-status strong{color:#111}
.order-sheet-parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:18px 0}
.order-sheet-parties h2,.order-sheet-comment h2{margin:0 0 4px;color:#777;letter-spacing:.06em;text-transform:uppercase}
.order-sheet-parties p{margin:0}
.order-sheet-parties dl{display:grid;gap:2px;margin:0}
.order-sheet-parties dl div{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px}
.order-sheet-parties dt{color:#777}.order-sheet-parties dd{margin:0}
.order-sheet-table{width:100%;border-collapse:collapse;margin:0}
.order-sheet-table th,.order-sheet-table td{padding:7px 8px;border-bottom:1px solid #d9dce1;text-align:left;vertical-align:top}
.order-sheet-table thead th{border-bottom:1px solid #111;color:#555}
.order-sheet-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.order-sheet-table tfoot :is(th,td){border-top:1px solid #111;border-bottom:0;padding-top:10px}
.order-sheet-table tr{break-inside:avoid}
/* .print-document breaks words anywhere, so a narrow column could take «Артикул» letter by letter (owner 24.11.2026,
   the PDF on the tablet): headings stay whole, a cell breaks a word only when it alone is wider than the column. */
.order-sheet-table{overflow-wrap:normal}
.order-sheet-table thead th{white-space:nowrap}
.order-sheet-table td{overflow-wrap:break-word}
.order-sheet-comment{margin-top:18px}.order-sheet-comment p{margin:0}
.order-sheet-note{margin:22px 0 0;color:#777;font-size:12px}
html:not([data-theme]) .apple-workspace #main .order-sheet-brand{font-size:13px!important;font-weight:700!important;color:#0b5fd0}
html:not([data-theme]) .apple-workspace #main .order-sheet-head h1{font-size:24px!important;font-weight:700!important;line-height:1.2!important}
html:not([data-theme]) .apple-workspace #main .order-sheet :is(h2,thead th){font-size:11px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace #main .order-sheet-table tbody td{font-size:13px!important;font-weight:400!important}
/* Screen only (review В15): an A4 page with 14 mm margins is ~688 px wide and must keep «Артикул» and two columns. */
@media screen and (max-width:700px){.order-sheet{padding:18px 14px}.order-sheet-head,.order-sheet-parties{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.order-sheet-status{text-align:left}.order-sheet-table .order-sheet-sku{display:none}}
@media print{@page{margin:14mm}
  .point-panel,.app-update-banner,.workspace-nav,.workspace-side{display:none!important}
  html,body,.shell,.apple-workspace,#main,.content,.page{background:#fff!important;background-image:none!important}
  .order-sheet{max-width:none;margin:0;padding:0;border:0;border-radius:0}
  .print-document{margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important}}
/* A saved order in the list: the name and the sum, one line of facts, the path, the actions. */
.order-facts{display:flex;flex-wrap:wrap;gap:2px 14px;margin:4px 0 0}
.order-card-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:8px}
.order-card-row .order-chain{margin:0}
/* The order against 1C (owner, 24.11.2026): one chip of the state, the 1C document line, what 1C changed marked in
   place — by words («було…», «додано в 1С») and weight, not by colour alone. */
.order-1c-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0;font-size:13px;color:var(--muted)}
.order-1c-number{color:var(--ink);font-weight:600}
.order-state{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-weight:600;white-space:normal;line-height:1.35}
.order-state::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:currentColor}
.order-state.is-wait{background:var(--warm);color:var(--amber)}
.order-state.is-info{background:color-mix(in oklab,var(--primary) 12%,#fff);color:var(--primary)}
.order-state-reason{flex-basis:100%;color:var(--ink)}.order-state-reason.is-bad{color:var(--red)}
.order-state.is-ok{background:var(--success-bg);color:var(--success)}
.order-state.is-bad{background:var(--red-bg);color:var(--red)}
.order-state.is-closed{background:var(--pill,#ececee);color:var(--muted)}
.order-state.is-warn{background:var(--warm);color:var(--amber)}
/* In a line of a list (the last orders on «Сьогодні»): next to the number and the date, as wide as its text; the dot
   and the text never part — on a narrow screen the whole chip goes to the next line (owner, 24.11.2026). */
.dash-list span.order-state{display:inline-flex;gap:5px;margin-left:4px;padding:0 8px;white-space:nowrap;vertical-align:middle;line-height:1.5}
.dash-list span.order-state::before{width:6px;height:6px}
/* Lines of the 1C document (owner, 25.11.2026: «неудобно и некрасиво»): every line has the same rhythm — the name with
   small marks after it, one line of figures; a change is a thin bar on the left and a light tint, not a filled block;
   a line 1C took out is grey with only its name struck. The words of the marks say it, not the colour alone. */
.order-changed-1c{margin-left:6px;font-size:13px;font-weight:600;color:var(--amber)}
.sales-saved-lines>summary:has(.order-changed-1c){flex-wrap:wrap;align-items:baseline;column-gap:0}
.sales-saved-lines .order-lines{padding-left:0;list-style:none}
.order-lines .order-line{margin:2px 0;padding:6px 12px;border-left:3px solid transparent;border-radius:0 8px 8px 0;overflow-wrap:anywhere}
.order-line.is-changed{background:color-mix(in srgb,var(--amber) 6%,transparent);border-left-color:var(--amber)}
.order-line.is-added{background:color-mix(in srgb,var(--success) 6%,transparent);border-left-color:var(--success)}
.order-line.is-removed{border-left-color:var(--line);color:var(--muted)}
.order-line.is-removed strong{color:var(--muted);font-weight:500}
.order-line .order-line-math,.order-line .order-line-open{display:block;font-size:13px;color:var(--muted)}
.order-line .order-line-open{color:var(--amber)}
.order-new{color:var(--ink);font-weight:700}
.order-was{white-space:nowrap;color:var(--muted)}
.order-line .order-mark{display:inline-block;vertical-align:1px;margin-left:6px;padding:0 8px;border-radius:999px;background:var(--pill,#ececee);font-size:12px;font-weight:600;line-height:18px;color:var(--muted);white-space:nowrap}
.order-line .order-mark.is-added{background:var(--success-bg);color:var(--success)}
.order-line .order-mark.is-removed{background:var(--pill,#ececee);color:var(--muted)}
.apple-saved-total .order-was{display:block;font-size:13px;font-weight:400;color:var(--muted);text-align:right}
.order-card-actions{display:flex;flex-wrap:wrap;gap:6px}
html:not([data-theme]) .apple-workspace #main .order-card-actions .btn{min-height:32px!important;height:32px;padding:0 12px!important;font-size:13px!important}
.sales-saved-order .sales-saved-lines{margin-top:8px}
/* «Допомога і техпідтримка»: the file chooser is not cut, the note keeps away from the button (owner, 18.11.2026). */
html:not([data-theme]) .apple-workspace #main .support-file-picker input[type=file]{height:auto!important;min-height:44px!important;padding:0!important;border:0!important;background:none!important;overflow:visible;line-height:44px;font-size:14px!important}
html:not([data-theme]) .apple-workspace #main .support-file-picker input[type=file]::file-selector-button{min-height:36px;height:36px;margin:4px 10px 4px 0;padding:0 14px;border:1px solid var(--line,#dce2ea);border-radius:10px;background:#fff;color:var(--primary);font:inherit;font-weight:600;line-height:1;cursor:pointer}
.support-compose form>p.small{margin:14px 0 10px}
.support-compose #support-name-help:empty,.support-compose #support-draft-state:empty{display:none}
/* The delivery route of a client: a mark that catches the eye (owner, 18.11.2026). */
.route-chip{display:inline-flex;align-items:center;gap:5px;margin:2px 0 2px 4px;padding:2px 10px 2px 8px;border-radius:999px;background:#fff4d6;color:#8a4b00;white-space:nowrap;vertical-align:middle}
.route-chip svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .route-chip,html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .route-chip span{font-size:12px!important;font-weight:600!important;color:#8a4b00}
/* A client of another agent: a mark in the lists (owner, 18.11.2026). */
.colleague-chip{display:inline-block;margin:2px 6px 2px 0;padding:2px 10px;border-radius:999px;background:#ede9fe;color:#5b21b6;white-space:nowrap;vertical-align:middle}
html:not([data-theme]) .apple-workspace :is(#main,.point-panel) .colleague-chip{font-size:12px!important;font-weight:600!important;color:#5b21b6}
/* «Інформація»: the contracts of a client are signed (owner, 18.11.2026). */
.contracts-heading{margin-bottom:0;padding-top:14px;border-top:1px solid var(--line)}
.contract-title{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:14px;padding:10px 12px;border-radius:10px;background:var(--secondary,#f1f2f4)}
.contract-title small{flex:0 0 100%;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.contract-mark{padding:1px 9px;border-radius:999px;background:#e5e7eb;color:#475569;white-space:nowrap}
.contract-mark.is-main{background:#dbeafe;color:#1d4ed8}.contract-mark.is-blocked{background:#ffe4e6;color:#be123c}
html:not([data-theme]) .apple-workspace .contract-title small{font-size:11px!important;font-weight:600!important}
html:not([data-theme]) .apple-workspace .contract-title span{font-size:15px!important;font-weight:700!important}
html:not([data-theme]) .apple-workspace .contract-mark{font-size:12px!important;font-weight:600!important}
.support-compose form>button[type=submit]{margin-top:14px}
/* The empty contractor panel is as high as the folded one «Повернутись до роботи з …» (owner, 18.11.2026). */
@media(min-width:701px){html:not([data-theme]) .apple-workspace .point-panel.is-empty{padding:4px 24px!important;min-height:46px;gap:4px 16px}
  html:not([data-theme]) .apple-workspace .point-panel.is-empty .point-panel-choose{min-height:36px!important;height:36px}
  html:not([data-theme]) .apple-workspace .point-panel.is-empty .point-panel-hint{margin:0}}
/* The print page: the way back on the left as on other pages, the print button on the right (owner, 18.11.2026). */
.print-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:860px;margin:0 auto 12px}
.print-bar .sales-back{margin:0}
.print-bar .sales-back svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* The printed order on screen: the sheet alone, without a white box around it (owner, 18.11.2026). */
@media screen{html:not([data-theme]) .apple-workspace #main .print-document{background:transparent!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important}}
/* The contractor panel on the phone (owner, 18.11.2026): the name on its own line, the debt under it; opened —
   the address, the choosers and the actions each at full width. */
@media(max-width:767px){
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-panel-row{display:grid!important;grid-template-columns:minmax(0,1fr) 36px!important;gap:6px 8px!important;padding:8px 8px 8px 12px!important;align-items:center}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-panel-label{display:none}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-panel-title{grid-column:1!important;grid-row:1!important;min-width:0}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-panel-title h2{font-size:16px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-panel-fold{grid-column:2!important;grid-row:1!important;align-self:start}
  html:not([data-theme]) .apple-workspace .point-panel.is-set:not(.is-folded) .point-panel-debt{grid-column:1/-1!important;grid-row:2!important;justify-self:start;max-width:100%;white-space:normal!important;line-height:1.35;padding:4px 12px}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open:not(.is-folded) .point-panel-title h2{white-space:normal!important;overflow:visible;overflow-wrap:anywhere}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open:not(.is-folded) .point-panel-address{display:block!important;margin:2px 0 0;font-size:13px!important;line-height:1.35}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open:not(.is-folded) .point-panel-terms{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr);gap:6px;overflow:visible}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open:not(.is-folded) .point-panel-terms select.point-panel-select{width:100%;max-width:none!important;min-width:0;height:36px!important;min-height:36px!important;font-size:14px!important}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open:not(.is-folded) .point-panel-terms>span{justify-self:start}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open:not(.is-folded) .point-panel-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0!important;position:static!important}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open:not(.is-folded) .point-panel-actions>*{min-width:0}
  html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open:not(.is-folded) .point-panel-actions .btn,html:not([data-theme]) .apple-workspace .point-panel.is-set.is-open:not(.is-folded) .point-panel-actions summary .btn{display:flex;justify-content:center;width:100%!important;height:40px!important;min-height:40px!important}
  html:not([data-theme]) .apple-workspace .point-panel.is-folded .point-panel-actions{display:none!important}
  html:not([data-theme]) .apple-workspace .point-panel.is-folded .point-panel-back{flex:1 1 auto}
}

/* Sign-in page (owner, 19.11.2026): plain words about the work; on a phone the form is on the first screen. */
.login-redesign .login-title{font-size:60px}
.login-redesign .login-benefit strong{text-wrap:balance}
.login-redesign .login-show-password{margin:10px 0 0;font-size:14px;color:var(--muted);min-height:32px;align-items:center}
.login-redesign .login-show-password input{width:18px;height:18px;margin-top:0}
.login-version{margin:16px 0 0;font-size:12px;color:var(--muted);text-align:center}
@media(max-width:1023px){.login-redesign .login-title{font-size:52px}}
@media(max-width:767px){
  .login-layout{display:flex;flex-direction:column;gap:32px;padding:24px 16px 48px}
  .login-redesign .login-form-wrap{order:-1;width:100%}
  .login-redesign .login-card.login-form-panel{width:100%;padding:24px 20px}
  .login-redesign .login-title-accent{display:inline}
  .login-form-panel h2{font-size:26px}
  .login-redesign .login-eyebrow{display:none}
  .login-redesign .login-title{font-size:26px;line-height:1.2;letter-spacing:-.02em}
  .login-redesign .login-lead{font-size:16px;line-height:1.5;margin-top:12px}
  .login-redesign .login-benefits{display:none}
}
/* «Заказ як із сайту»: notes of the order check are information, not an error */
.sales-gift-choice{max-width:100%;min-height:36px;padding:4px 8px;border:1px solid var(--soft-border);border-radius:8px;background:var(--surface,#fff);color:inherit;font:inherit}
.sales-issues.sales-notes{color:var(--link);background:var(--soft);border-color:var(--soft-border)}
/* The order check on the order page (owner, 23.11.2026): one short line of state, the terms and total over the bar */
.sales-check-status{display:flex;align-items:flex-start;gap:8px;margin:4px 0 0;font-size:13px;line-height:1.45;color:var(--muted)}
.sales-check-dot{flex:none;width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--muted)}
.sales-check-status.is-checking .sales-check-dot,.sales-check-status.is-pending .sales-check-dot{background:var(--link);animation:sales-check-pulse 1.2s ease-in-out infinite}
.sales-check-status.is-verified{color:var(--success)}.sales-check-status.is-verified .sales-check-dot{background:var(--success)}
.sales-check-status.is-changed,.sales-check-status.is-offline{color:var(--amber)}.sales-check-status.is-changed .sales-check-dot,.sales-check-status.is-offline .sales-check-dot{background:var(--amber)}
.sales-check-status.is-blocked,.sales-check-status.is-error{color:var(--red)}.sales-check-status.is-blocked .sales-check-dot,.sales-check-status.is-error .sales-check-dot{background:var(--red)}
@keyframes sales-check-pulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.sales-check-dot{animation:none!important}}
.sales-order-check{margin:16px 18px;padding:14px 16px}
.sales-order-check-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sales-order-check h2{font-size:16px;margin:0}.sales-order-check h3{font-size:13px;margin:12px 0 0;color:var(--muted);font-weight:600}
.sales-order-check .sales-issues{margin:6px 0 0}
.sales-order-check-total{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}
.sales-order-check-total>.spread>strong{font-size:22px}.sales-order-check-total p{margin:6px 0 0;font-size:13px;color:var(--muted)}
.sales-order-check .sales-gifts{margin-top:12px}.sales-order-check>.sales-help{margin:12px 0 0}
.sales-price-change{margin:4px 0 0;padding:4px 8px;border-radius:8px;font-size:13px;line-height:1.35;background:var(--warm);color:var(--amber);border:1px solid var(--warning-border);font-variant-numeric:tabular-nums}
.sales-price-change s{opacity:.75}.sales-price-change strong{color:inherit}
.sales-product-row .sales-issues{margin:6px 0 0;font-size:13px}
.sales-order-bar-status{display:block}
.sales-order-bar-status.is-verified{color:var(--success)}.sales-order-bar-status.is-changed,.sales-order-bar-status.is-offline{color:var(--amber)}.sales-order-bar-status.is-blocked,.sales-order-bar-status.is-error{color:var(--red)}
.sales-gifts .sales-gift-list{list-style:none;margin:6px 0 0;padding:0}.sales-gifts .sales-gift-list li+li{margin-top:6px}
.sales-order-check .sales-check-note{margin-top:8px}
/* The administrator: «Співробітники» and «Журнал» (owner, 24.11.2026). */
.admin-users{display:grid;gap:10px}.admin-user{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.admin-user.is-off{opacity:.72}.admin-user h3{font-size:15px;margin-bottom:4px}
.admin-user-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.admin-marks{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.admin-secret code,.admin-password code{font-size:20px;font-weight:650;letter-spacing:1px;user-select:all}.admin-password{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0}
.admin-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-filters .select{width:100%}
.admin-journal{overflow-x:auto}.admin-journal table{width:100%;border-collapse:collapse;font-size:13px}.admin-journal th,.admin-journal td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top}.admin-journal tr.is-problem td{background:var(--red-bg)}
.admin-bare-nav{display:flex;gap:10px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid var(--line)}.admin-password-choice{border:0;padding:0;margin:0 0 16px}
@media(max-width:720px){.admin-user{flex-direction:column}.admin-user-actions{justify-content:flex-start}.admin-filters{grid-template-columns:1fr}}
.admin-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.admin-journal .text-btn{min-height:32px;padding:2px 6px}.admin-journal .text-btn.is-late{color:var(--red)}.admin-journal tr.admin-total td{font-weight:650}.admin-journal tr.is-off td{color:var(--muted)}.admin-order{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.admin-readonly{min-height:46px;display:flex;align-items:center;padding:10px 12px;border:1px dashed var(--line);border-radius:9px;color:var(--ink);margin:0}
