/* KIT-1 starter. Shared tokens/components; never include legacy page styles with this file. */
:root{font:14px/1.45 Arial,Helvetica,sans-serif;color-scheme:light;--ink:#111829;--navy:#091333;--muted:#54709b;--blue:#075aff;--line:rgba(99,151,220,.22);--shadow:0 8px 25px #2763ac14,0 2px 5px #3879c90b;--radius:22px;--gap:16px;color:var(--ink)}
*{box-sizing:border-box;min-width:0}html{scrollbar-gutter:stable}body{margin:0;background:#e2efff;isolation:isolate;overflow-x:visible}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}[hidden]{display:none!important}
button{display:inline-flex;position:relative;flex-flow:row nowrap;align-items:center;justify-content:center;gap:8px;padding:0;border:0;background:transparent;cursor:pointer;line-height:1.25;touch-action:manipulation}button>*:not(canvas){position:relative;z-index:1;pointer-events:none}button:disabled{cursor:wait;opacity:1}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #1464e6;outline-offset:3px}
svg{display:block;flex:none}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.sprite{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#liquid-scene{position:fixed;inset:0;display:block;width:100%;height:100%;z-index:-1;pointer-events:none}
.glass,[data-glass]{position:relative;isolation:isolate;background:rgba(180,215,249,.15);border:1px solid rgba(242,250,255,.5);border-radius:var(--radius);box-shadow:var(--shadow)}.glass-painted.glass{background:transparent;border-color:rgba(240,251,255,.3)}.glass::before,.glass::after{content:none}
.sg-pane{position:absolute!important;inset:-1px!important;display:block!important;width:calc(100% + 2px)!important;height:calc(100% + 2px)!important;max-width:none!important;border-radius:inherit;pointer-events:none!important;z-index:-1!important;contain:strict}
.glass-off .sg-pane{visibility:hidden!important}.glass-off .glass{background:rgba(218,234,250,.25)}
.app-frame{max-width:1740px;margin:auto;padding:16px 20px 24px}.app-header{position:sticky;top:14px;z-index:100;min-height:66px;display:flex;align-items:center;gap:20px;padding:10px 16px;border-radius:23px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:750;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:36px;height:36px;aspect-ratio:1;flex:0 0 36px;background:var(--blue);color:#fff;border-radius:10px}.brand-mark img{width:100%;height:100%;object-fit:contain}.brand em{font-style:normal;color:var(--blue)}
.header-actions,.desktop-tools{display:flex;align-items:center;gap:8px}.header-actions{margin-left:auto}.desktop-tools>label{font-size:11px;color:var(--muted)}
.icon-btn{width:44px;height:44px;min-width:44px;flex:0 0 44px;aspect-ratio:1;border-radius:12px;color:#111}.avatar{border-radius:50%;font-weight:700}.mobile-menu,.drawer-close{display:none}
.button,.select-trigger{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:12px;font-weight:600;font-size:12px;color:#111;gap:10px}.select-trigger{justify-content:space-between;min-width:140px}.select-trigger>.selected-label{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.select-trigger>.icon,.setting-trigger>.icon{margin-left:auto;width:15px;height:15px}.primary{color:#fff}.primary:not(.glass-painted),.glass-off .primary{background:#075aff}.block{width:100%}
button.is-loading{overflow:hidden;color:#111!important}button.is-loading>:not(.sg-pane):not(.loading-label){visibility:hidden}button>.loading-label{position:absolute;inset:0;z-index:2;display:grid;place-items:center;pointer-events:none;white-space:nowrap;color:#111!important;font:inherit;font-weight:600}
.layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:24px;align-items:start;margin-top:16px}.sidebar{position:sticky;top:98px;z-index:80;display:flex;flex-direction:column;min-height:510px;height:calc(100dvh - 116px);padding:24px 12px 14px;border-radius:24px}.workspace{padding:0 14px 22px}.eyebrow{font-size:10px;letter-spacing:1.65px;text-transform:uppercase;color:var(--blue);font-weight:700}.workspace strong{display:block;margin-top:7px}.sidebar nav{display:grid;gap:7px}.nav-item{display:flex;align-items:center;justify-content:flex-start;gap:11px;min-height:46px;padding:0 10px;border:1px solid transparent;border-radius:14px;color:#49648d;font-size:12px}.nav-item.active{font-weight:750;color:#111;box-shadow:-3px 0 0 #0862fa,0 4px 12px #3979c211}.nav-item:focus-visible,.nav-item:hover{color:#111}.nav-icon,.badge-icon{display:inline-grid;place-items:center;width:34px;height:36px;flex:0 0 34px;border-radius:11px;color:#1268ec}.nav-icon{width:29px;height:30px;flex-basis:29px;color:inherit}.nav-icon>.icon{width:17px;height:17px}.sidebar-footer{margin-top:auto;padding-top:24px}.sidebar-footer .button{width:100%;font-size:11px}
.page-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:145px;padding:13px 8px 22px}.page-heading h1{font-size:clamp(28px,3vw,40px);line-height:1.13;letter-spacing:-1.15px;color:var(--navy);margin:7px 0 10px;font-weight:750}.page-heading p{font-size:12px;color:var(--muted);line-height:1.65;max-width:680px}.heading-copy{flex:1}.hero-art{width:150px;height:110px;flex:none;pointer-events:none}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.panel{padding:22px;border-radius:22px}.panel h2{font-size:18px;color:var(--navy);margin-bottom:9px;line-height:1.35}.panel p,.muted{font-size:12px;color:var(--muted);line-height:1.7}.stat-head{display:flex;align-items:center;gap:11px;margin-bottom:16px}.stat-value{font-size:29px;font-weight:750;color:var(--navy)}.demo-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.field-label{display:block;font-size:12px;color:var(--muted);margin:14px 0 7px}.field-shell{display:block;border-radius:12px}.field-shell input{width:100%;min-height:44px;padding:10px 12px;background:transparent;color:var(--ink);border:0;border-radius:inherit}.field-shell:focus-within{outline:2px solid #3a83ee;outline-offset:2px}.field-shell input:focus-visible{outline:none}.feature-list{list-style:none;padding:0;margin:16px 0;display:grid;gap:12px;font-size:12px;color:var(--muted)}.feature-list li{display:flex;gap:9px;align-items:center}.feature-list .icon{width:15px;height:15px;color:var(--blue)}
html.has-modal,html.has-drawer{overflow:hidden}.dialog-scrim{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:22px;background:#254a751e;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.dialog{position:relative;width:min(490px,100%);max-height:calc(100dvh - 44px);border-radius:26px;box-shadow:0 24px 75px #2549753f;overflow:visible}.dialog-scroll{max-height:calc(100dvh - 46px);overflow-y:auto;overflow-x:clip;padding:28px;border-radius:inherit}.dialog h2{font-size:24px;line-height:1.25;letter-spacing:-.5px;color:var(--navy);margin:5px 40px 15px 0}.dialog-close{position:absolute;right:12px;top:12px;z-index:5;color:#111}.dialog-close .icon{stroke:#111}.dialog .button:not(.primary){color:#111}.dialog-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:16px}.dialog .primary:not(.glass-painted){background:#075aff}
.select-menu,.profile-menu{position:fixed;z-index:1200;padding:8px;border-radius:19px;max-width:calc(100vw - 24px);overflow-x:clip;box-shadow:0 16px 45px #25487d35}.select-scroll{display:grid;gap:4px;max-height:min(370px,60dvh);overflow-y:auto;overflow-x:clip;border-radius:13px}.select-option{display:flex;align-items:center;justify-content:space-between;min-height:40px;width:100%;padding:0 12px;border-radius:12px;font-size:12px;gap:10px}.select-option>.icon{opacity:0;width:15px;height:15px}.select-option.selected{color:#fff}.select-option.selected>.icon{opacity:1}.select-option.selected:not(.glass-painted),.glass-off .select-option.selected{background:var(--blue)}
.profile-account{display:flex;align-items:center;gap:10px;padding:12px 10px;border-bottom:1px solid var(--line);margin-bottom:5px}.profile-account strong{display:block;font-size:12px;overflow-wrap:anywhere}.profile-row{display:flex;justify-content:flex-start;align-items:center;gap:10px;min-height:43px;width:100%;padding:0 12px;border-radius:12px;font-size:12px;text-align:left}.profile-row>span{flex:1}.profile-row>small{color:var(--muted)}.profile-row:hover{background:#9fc5f528}.profile-row .icon:last-child{width:13px;height:13px}.toast{position:fixed;z-index:1400;bottom:22px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 28px);padding:14px 20px;border-radius:17px;font-size:12px;text-align:center;color:#111}
.control{margin-top:17px}.control label{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted)}.control output{color:var(--blue);font-weight:600}input[type=range]{width:100%;accent-color:#1265e9;margin-top:12px}.toggle-label{display:flex;align-items:center;gap:9px;font-size:12px;margin:16px 0}input[type=checkbox]{accent-color:#0963ec}
*{scrollbar-width:thin;scrollbar-color:#76aee080 #cee4f933}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#d7e8fa44}::-webkit-scrollbar-thumb{border:2px solid #eaf5ffad;border-radius:20px;background:linear-gradient(90deg,#b2d8fbaa,#79b0e799)}
@media(max-width:1050px){.layout{grid-template-columns:180px minmax(0,1fr);gap:16px}.grid{grid-template-columns:1fr 1fr}.grid>.panel:last-child{grid-column:1/-1}.demo-columns{grid-template-columns:1fr}.panel{padding:18px}.app-header{gap:12px}.brand{font-size:16px}.company-label{display:none}.select-trigger{min-width:100px}}
@media(max-width:760px){.app-frame{padding:9px 12px max(20px,env(safe-area-inset-bottom))}.app-header{top:max(8px,env(safe-area-inset-top));min-height:59px;padding:8px 9px;border-radius:18px;gap:7px}.brand{font-size:15px;gap:7px}.brand-mark{width:29px;height:29px;flex-basis:29px}.header-actions{gap:5px}.desktop-tools{display:none}.mobile-menu{display:inline-flex}.icon-btn{width:40px;height:40px;min-width:40px;flex-basis:40px}.layout{display:block;margin-top:12px}.sidebar{display:none;position:fixed;inset:0 auto 0 0;z-index:1000;width:min(280px,calc(100vw - 44px));height:100dvh;min-height:0;max-height:100dvh;padding:52px 14px 18px;border-radius:0 24px 24px 0;background:transparent;overflow-y:auto;overflow-x:clip}.sidebar.open{display:flex}.nav-item{font-size:13px;min-height:47px}.drawer-close{display:inline-flex;position:absolute;top:10px;right:10px}.mobile-backdrop{position:fixed;inset:0;z-index:990;background:#30598329;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.page-heading{min-height:0;display:block;padding:14px 2px 20px}.heading-copy{max-width:none}.page-heading h1{font-size:29px}.page-heading:has(>.hero-art){padding-right:100px;min-height:138px}.page-heading>.hero-art{position:absolute;right:0;top:18px;width:91px;height:81px}.page-heading p{font-size:11px}.grid{gap:12px}.panel{padding:17px 15px}.stat-head{gap:8px}.stat-head .muted{font-size:11px}.stat-value{font-size:25px}.field-shell input{font-size:16px}.dialog-scrim{padding:13px}.dialog{max-height:calc(100dvh - 26px)}.dialog-scroll{max-height:calc(100dvh - 28px);padding:26px 20px}.dialog h2{font-size:22px}.dialog-close{width:40px;height:40px;min-width:40px}.actions>.button{flex:1}.toast{bottom:max(16px,env(safe-area-inset-bottom))}}
@media(max-width:370px){.app-frame{padding-inline:9px}.app-header{gap:5px;padding-inline:7px}.brand{font-size:13px;gap:5px}.header-actions{gap:4px}.brand-mark{width:27px;height:27px;flex-basis:27px}.app-header .icon-btn{width:36px;height:36px;min-width:36px;flex-basis:36px}.page-heading h1{font-size:27px}.page-heading:has(>.hero-art){padding-right:80px}.page-heading>.hero-art{width:72px;height:65px}.stat-value{font-size:23px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Order application: one shell, one material, responsive transactional screens. */
:root{font-size:14px;--danger:#b42336;--green:#147553;--amber:#906018;--soft:#507297;--radius:20px;--shadow:0 6px 24px #316aaa10,0 1px 3px #4a7bbb09}
body{overflow-x:visible}button,input,textarea{font:inherit}button:disabled{cursor:not-allowed;opacity:.6}textarea{color:var(--ink);resize:vertical}b,strong{font-weight:700}h1{letter-spacing:-1px}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:15px}.icon{width:18px;height:18px}.button{font-size:13px;min-height:44px;gap:8px;font-weight:600;white-space:nowrap}.button:hover:not(:disabled),.icon-btn:hover:not(:disabled){box-shadow:0 4px 18px #2163bf24}.primary,.dialog .primary{color:#fff}.primary .icon{color:inherit}.button.primary:not(.is-loading):not(.glass-painted){background:var(--blue)}.link-button{color:var(--blue);font-weight:600;min-height:44px;padding:0 6px;gap:7px;text-align:left}.link-button.danger{color:var(--danger)}.icon-btn{color:#375a86}.quiet{color:var(--muted)}.small{font-size:11px}.muted{font-size:12px}.subline{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:4px;line-height:1.4}.danger-text{color:var(--danger)!important}.good-text{color:var(--green)!important}.mono{font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.app-frame{max-width:1740px;padding:14px 22px 105px}.app-header{top:12px;padding:10px 15px;min-height:66px;gap:12px}.brand-mark{width:37px;height:37px;flex-basis:37px;background:transparent}.brand-mark svg{width:100%;height:100%}.brand{font-size:19px;letter-spacing:-.35px}.brand em{font-weight:400;color:#3e6da9}.header-divider{height:24px;width:1px;background:var(--line);margin:0 8px}.header-location{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.demo-tag{display:inline-flex;gap:5px;align-items:center;font-size:10px;letter-spacing:.6px;font-weight:700;color:#356499;padding:5px 9px;border:1px solid #659bd43d;border-radius:7px;white-space:nowrap}.demo-tag::before{content:'';width:5px;height:5px;border-radius:50%;background:#4487d9}.shift-button{font-size:12px;padding:0 13px;min-height:40px;color:var(--green)}.shift-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.header-clock{font-size:12px;color:var(--muted);margin-right:10px}.layout{grid-template-columns:205px minmax(0,1fr);gap:26px;margin-top:18px}.sidebar{padding:22px 10px 12px;height:calc(100dvh - 112px);min-height:0;top:98px;max-height:900px}.workspace{padding:1px 12px 20px}.workspace strong{font-size:13px;letter-spacing:-.2px;margin:7px 0 3px}.workspace .eyebrow{font-size:9px;letter-spacing:1.4px}.workspace small{font-size:10px;color:var(--muted)}.sidebar nav{gap:3px;overflow-y:auto;overflow-x:visible;flex:1;padding:0 3px}.nav-item{font-size:12px;gap:10px;min-height:43px;padding:0 10px;flex-shrink:0}.nav-item>.icon{width:17px;height:17px;flex-shrink:0}.nav-item .nav-count{font-size:10px;margin-left:auto;padding:2px 6px;border-radius:6px;background:#609ce91a}.nav-separator{height:1px;background:var(--line);margin:12px 9px}.sidebar-footer{padding:12px 8px 2px}.sidebar-footer p{font-size:10px;color:var(--muted);line-height:1.7}.sidebar-footer .demo-reset{font-size:11px;min-height:36px}.main{padding-top:2px}.page-heading{min-height:0;padding:8px 0 23px;align-items:end;gap:16px}.page-heading h1{font-size:32px;line-height:1.15;margin:7px 0 6px}.page-heading .eyebrow{font-size:9px;letter-spacing:1.6px}.page-heading p{font-size:12px;max-width:700px}.page-heading .heading-actions{display:flex;gap:9px;align-items:center;flex-shrink:0;padding-bottom:1px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-top h2{margin:0}.flex{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.push{margin-left:auto}.vstack{display:grid;gap:15px}.notice{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid #679cdd31;background:#8ab7f012;border-radius:12px;color:#526f95;font-size:12px;line-height:1.5}.notice .icon{flex:0 0 18px}.notice.warn{color:#895823;border-color:#c9a05745;background:#dfbe780b}.notice.error{color:var(--danger);border-color:#c971803d;background:#eb8b9a0c}.notice.good{color:var(--green);border-color:#559b803d;background:#75b99a09}.notice a{color:var(--blue)}.demo-note{font-size:10px;color:var(--muted);line-height:1.5}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}.kpi{padding:16px 17px;border-radius:18px;min-height:117px;position:relative}.kpi-label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.kpi-label>.icon{width:16px;height:16px}.kpi-value{display:block;font-size:27px;letter-spacing:-.8px;line-height:1.3;margin-top:10px;font-variant-numeric:tabular-nums;color:#10254a}.kpi-note{font-size:10px;color:var(--muted);margin-top:5px}.kpi .spark{position:absolute;width:63px;height:28px;bottom:17px;right:16px;color:#5f96d8;opacity:.6}.kpi.critical .kpi-value,.kpi.critical .kpi-label>.icon{color:var(--danger)}.tabs{display:flex;gap:5px;align-items:center;padding:5px;border-radius:14px;width:fit-content;max-width:100%;margin-bottom:16px}.tab{padding:0 14px;min-height:39px;font-size:12px;border-radius:10px;gap:7px;color:var(--muted);white-space:nowrap}.tab.active{color:#153765;font-weight:700;background:#86b8ed23;box-shadow:0 2px 6px #2e62a00b}.counter{font-size:10px;font-weight:700;min-width:20px;padding:2px 6px;border-radius:6px;background:#b2cef43a;color:#355f91}.counter.red{color:var(--danger);background:#e5a7b220}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:15px}.search-shell{display:flex;align-items:center;gap:10px;padding:0 13px;min-height:44px;border-radius:12px;flex:1;min-width:170px}.search-shell .icon{color:#6689b4;flex-shrink:0}.search-shell input{min-width:0;flex:1;width:100%;border:0;background:transparent;outline:0;color:var(--ink);font-size:12px;min-height:42px}.search-shell input::placeholder{color:#7390b4}.key{border:1px solid var(--line);border-radius:4px;font-size:10px;padding:1px 4px;color:#7c95b8}.filter-button{font-size:11px;min-height:44px;padding:0 13px}.filter-button .icon{width:15px;height:15px}.status-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:17px}.status-filter{font-size:11px;min-height:34px;padding:0 12px;border:1px solid #729fd42d;border-radius:10px;color:var(--muted);gap:7px}.status-filter.active{background:#075aff;color:white;border-color:#075aff}.status-filter.active .status-dot{background:white}.status-filter b{font-size:10px;opacity:.78;margin-left:2px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8b9fb9;flex:0 0 6px}.status-dot.confirmed{background:#42997c}.status-dot.production{background:#d19437}.status-dot.ready{background:#408de3}.status-dot.out{background:#8a7fc0}.status-dot.delivered,.status-dot.completed{background:#4d9b71}.status-dot.cancelled{background:#be6c7b}.list-panel{border-radius:18px;padding:0 16px}.order-head,.order-row{display:grid;grid-template-columns:32px 107px minmax(130px,1.15fr) minmax(110px,1.1fr) 102px minmax(90px,.85fr) 120px 36px;align-items:center;gap:10px}.order-head{min-height:44px;color:#5a789f;font-size:10px;border-bottom:1px solid var(--line);letter-spacing:.15px}.order-row{min-height:93px;border-bottom:1px solid #80a8d328;cursor:pointer;transition:background .12s;border-radius:0;position:relative}.order-row:last-of-type{border-bottom:0}.order-row:hover,.order-row.selected{background:#8db9ed17}.order-row.selected{box-shadow:-3px 0 0 #075aff}.order-row:focus-visible{outline:2px solid #075aff;outline-offset:1px}.select-cell{min-width:32px;min-height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer}.select-cell input{width:16px;height:16px;cursor:pointer;accent-color:#075aff}.order-number{font-size:13px;font-weight:700;color:#183252}.order-type{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--muted);margin-top:6px}.order-type .icon{width:12px;height:12px}.customer-cell{display:flex;align-items:center;gap:9px}.avatar-square{width:33px;height:33px;flex:0 0 33px;display:grid;place-items:center;border-radius:11px;font-size:10px;letter-spacing:.2px;background:#82add526;color:#37669a;border:1px solid #aac9e747}.avatar-square:nth-child(even){background:#c0c8d638}.customer-name{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-items{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.mini-item{width:30px;height:33px;flex:0 0 30px;background:#c9def32b;border-radius:7px;display:grid;place-items:center;border:1px solid #f4faff45}.mini-item svg{width:28px;height:28px}.goods-count{font-size:10px;color:var(--muted);white-space:nowrap}.amount{text-align:right;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.amount .subline{font-size:10px;font-weight:400}.time-cell{font-size:11px;font-variant-numeric:tabular-nums}.time-cell.overdue{color:var(--amber)}.state-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:27px;padding:4px 9px;border-radius:7px;font-size:10px;white-space:nowrap;background:#7895b813;color:#627b9e;border:1px solid #8ca9cc25}.state-pill.confirmed{color:#24765b;background:#5dbea712;border-color:#4a9d7e22}.state-pill.production{color:#936522;background:#d0a33c10;border-color:#ba973f25}.state-pill.ready{color:#2b6fb7;background:#5c9cea18;border-color:#4386d029}.state-pill.out{color:#6c5e9e;background:#9a8ab511;border-color:#a48dcd29}.state-pill.completed,.state-pill.delivered{color:#267256;background:#5b9e7812}.state-pill.cancelled{color:var(--danger);background:#cb678612}.row-menu{width:34px;height:40px;min-width:34px;flex-basis:34px;border-radius:10px;box-shadow:none;border-color:transparent}.table-bottom{padding:12px 1px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.pager{display:flex;align-items:center;gap:5px}.pager button{width:34px;min-width:34px;height:34px;font-size:11px;border-radius:8px}.pager button.active{background:#adcdf129;color:#163f77}.list-hint{display:flex;justify-content:space-between;gap:10px;margin:12px 1px;color:#6d87a9;font-size:10px}.floating-scan{position:fixed;bottom:24px;left:calc(50% + 115px);transform:translateX(-50%);z-index:200;box-shadow:0 8px 28px #075aff2b;border-radius:16px;padding:0 21px;height:48px;font-size:12px}.floating-scan .icon{width:20px;height:20px}.batch-bar{position:fixed;bottom:21px;left:calc(50% + 112px);transform:translateX(-50%);z-index:300;padding:11px 15px;border-radius:19px;display:flex;align-items:center;gap:9px;max-width:calc(100vw - 300px);width:max-content;box-shadow:0 10px 45px #1f589433}.batch-bar .batch-info{font-size:12px;min-width:115px;margin-right:6px}.batch-bar .batch-info strong{font-size:13px}.batch-bar .button{font-size:11px;padding:0 12px}.batch-bar .separator{height:26px;width:1px;background:var(--line)}.empty{min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:12px;color:var(--muted);padding:30px}.empty>.icon{width:34px;height:34px;opacity:.6}.empty h3{color:#34577d;font-size:16px}.empty p{font-size:12px;max-width:420px;line-height:1.6}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:17px;align-items:start}.content-grid>.vstack{min-width:0}.panel{padding:20px}.panel h2{font-size:16px;margin:0}.panel p{font-size:12px}.side-summary{position:sticky;top:99px}.summary-lines{display:grid;gap:11px;padding:17px 0}.summary-lines>div{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted)}.summary-lines b{font-weight:600;color:var(--ink)}.summary-total{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:15px 0;font-size:13px;font-weight:700}.summary-total strong{font-size:25px;letter-spacing:-.7px}.summary-due{font-size:12px;display:flex;justify-content:space-between;padding-bottom:15px;color:var(--danger)}.customer-card{display:flex;align-items:center;gap:12px;padding:17px 0 12px}.customer-card .avatar-square{width:42px;height:42px;flex-basis:42px;font-size:13px}.customer-card strong{font-size:14px}.customer-contact{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px;margin:10px 0;overflow-wrap:anywhere}.customer-contact .icon{width:14px;height:14px}.timeline-steps{display:flex;gap:5px;margin-bottom:20px}.timeline-step{flex:1;min-width:0}.timeline-step>i{display:block;height:4px;border-radius:4px;background:#a5bfde39;margin-bottom:8px}.timeline-step.done>i{background:#548ada}.timeline-step.current>i{background:#075aff}.timeline-step span{font-size:10px;color:var(--muted)}.timeline-step.current span{color:#164c9d;font-weight:700}.detail-title{display:flex;align-items:center;gap:12px}.detail-title h1{margin:0;font-size:29px}.detail-meta{display:flex;flex-wrap:wrap;gap:13px;font-size:11px;color:var(--muted);margin-top:10px}.detail-meta span{display:flex;gap:5px;align-items:center}.detail-meta .icon{width:13px;height:13px}.detail-tabs{display:flex;gap:18px;overflow-x:auto;max-width:100%;border-bottom:1px solid var(--line);padding-bottom:0;margin-bottom:18px}.detail-tab{font-size:11px;white-space:nowrap;min-height:43px;color:var(--muted);padding:0 2px;border-bottom:2px solid transparent;gap:5px}.detail-tab.active{color:#124c9d;border-bottom-color:#075aff;font-weight:700}.product-row{display:grid;grid-template-columns:minmax(130px,1fr) 128px 97px 88px 32px;gap:10px;align-items:center;min-height:84px;border-bottom:1px solid var(--line)}.product-cell{display:flex;align-items:center;gap:10px;min-width:0}.product-image{width:44px;height:48px;flex:0 0 44px;display:grid;place-items:center;background:#d8e9f82e;border-radius:12px}.product-image svg{width:44px;height:44px}.product-name{font-size:12px;font-weight:600;line-height:1.4}.product-cell small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.qty{display:flex;align-items:center;border:1px solid #639de142;border-radius:10px;height:39px;min-width:0;overflow:hidden}.qty button{width:30px;flex:0 0 30px;height:37px;font-size:17px;color:#2d69bc}.qty input{width:100%;min-width:25px;flex:1;border:0;background:transparent;text-align:center;outline:0;height:36px;font-size:12px;font-variant-numeric:tabular-nums;padding:0 2px;appearance:textfield;-moz-appearance:textfield}.qty input::-webkit-inner-spin-button,.price-field::-webkit-inner-spin-button{appearance:none}.price-control{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:4px}.price-control .price-entry{display:flex;align-items:center;border:1px solid #78a5df43;border-radius:10px;min-height:39px;width:100%}.price-field{border:0;background:transparent;font-size:12px;color:var(--ink);width:100%;min-width:0;padding:0 9px;outline:0;height:37px;appearance:textfield}.history-trigger{width:29px;height:35px;min-width:29px;color:#5480b6}.history-trigger .icon{width:15px;height:15px}.price-source{font-size:9px;color:#287f66}.price-source.manual,.price-source.history,.price-source.copied{color:#7c688f}.table-labels{display:grid;grid-template-columns:minmax(130px,1fr) 128px 97px 88px 32px;gap:10px;color:var(--muted);font-size:10px;padding:14px 0 5px}.add-items-wide{width:100%;margin-top:15px;border-style:dashed;min-height:48px;color:var(--blue);font-size:12px}.note-input{width:100%;border:0;background:transparent;outline:0;padding:12px;min-height:78px;font-size:12px;line-height:1.6;border-radius:12px}.note-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field-row.three{grid-template-columns:1fr 1fr 1fr}.field-shell input,.field-shell textarea{font-size:13px;min-height:44px}.field-shell textarea{display:block;width:100%;padding:11px;border:0;background:transparent;border-radius:12px;outline:0;min-height:90px}.field-label{font-size:11px;margin-top:10px;line-height:1.5}.section-space{margin-top:17px}.divider{height:1px;background:var(--line);margin:17px 0}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{text-align:left;font-size:10px;font-weight:500;color:var(--muted);padding:12px 9px;border-bottom:1px solid var(--line)}.data-table td{padding:14px 9px;border-bottom:1px solid #80a7d527;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table .num{text-align:right;font-variant-numeric:tabular-nums}.data-table .action-cell{width:45px}.data-table td:first-child,.data-table th:first-child{padding-left:0}.data-table td:last-child,.data-table th:last-child{padding-right:0}.data-table .small{font-size:10px}.stock-number{font-size:14px;font-weight:700;color:var(--danger)}.table-scroll{max-width:100%;overflow-x:auto}.table-scroll .data-table{min-width:590px}.material-name{font-size:12px;font-weight:600}.material-name small{display:block;font-size:10px;color:var(--muted);margin-top:4px;font-weight:400}.supplier-tag{font-size:10px;background:#99bce21c;padding:5px 7px;border-radius:7px;color:#5278a0;display:inline-block}.progress-bar{height:5px;background:#8cb6e227;border-radius:5px;overflow:hidden}.progress-bar>span{display:block;height:100%;background:#4386df;border-radius:5px;max-width:100%}.stock-indicator{display:flex;align-items:center;gap:7px;font-size:10px}.stock-indicator .icon{width:12px;height:12px}.dialog{width:min(590px,100%)}.dialog.wide{width:min(1240px,100%)}.dialog.medium{width:min(830px,100%)}.dialog.full{width:min(1080px,100%)}.dialog-scroll{padding:25px;max-height:calc(100dvh - 54px);scrollbar-gutter:stable}.dialog h2{font-size:22px;margin:0 52px 8px 0}.modal-subtitle{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:20px}.modal-head{margin-bottom:16px}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}.modal-footer .total-block{margin-right:auto}.modal-footer .total-block span{font-size:10px;color:var(--muted);display:block}.modal-footer .total-block strong{font-size:23px;color:#103665}.modal-footer .button{font-size:12px}.picker-dialog .dialog-scroll{padding:24px 20px 19px;overflow:visible;display:flex;flex-direction:column;max-height:calc(100dvh - 48px)}.picker-dialog .modal-head{padding:0 5px}.picker-grid{display:grid;grid-template-columns:37% minmax(0,1fr);gap:15px;min-height:0;flex:1}.picker-catalog,.picker-selected{border:1px solid #8bb3df40;border-radius:16px;background:transparent;min-height:0;display:flex;flex-direction:column;padding:12px}.picker-catalog .search-shell{flex:0 0 auto;min-width:0}.catalog-categories{display:flex;gap:5px;overflow-x:auto;flex-shrink:0;padding:11px 0 8px}.category{font-size:10px;padding:0 10px;min-height:30px;border-radius:8px;white-space:nowrap;color:var(--muted);border:1px solid transparent}.category.active{background:#075aff;color:white}.catalog-scroll{max-height:440px;min-height:140px;overflow-y:auto;padding-right:3px;flex:1}.catalog-row{display:flex;align-items:center;gap:8px;min-height:70px;border-bottom:1px solid #86a9d028;padding:8px 0}.catalog-row .product-image{width:40px;height:44px;flex-basis:40px}.catalog-row .product-image svg{width:37px;height:37px}.catalog-row .product-name{font-size:11px}.catalog-row .catalog-price{font-size:11px;font-weight:600;white-space:nowrap;margin-left:auto}.catalog-row .add-product{width:35px;height:40px;min-width:35px;flex-basis:35px;color:#075aff;border-radius:10px;font-size:17px}.catalog-row.in-cart{background:#95bdea10}.catalog-row .added-count{font-size:10px;font-weight:700}.picker-selected h3{padding:3px 2px 12px;font-size:14px;color:#163359}.selected-scroll{flex:1;overflow-y:auto;max-height:455px;padding-right:3px;min-height:190px}.picker-selected .table-labels,.picker-selected .product-row{grid-template-columns:minmax(105px,1fr) 116px 97px 83px 27px;gap:8px}.picker-selected .product-image{width:36px;height:42px;flex-basis:36px}.picker-selected .product-image svg{width:36px;height:36px}.picker-selected .product-name{font-size:11px}.picker-selected .product-row{min-height:86px}.picker-selected .product-cell{gap:6px}.picker-selected .amount{font-size:11px}.picker-selected .row-menu{min-width:28px;width:28px}.picker-footer{padding:13px 4px 0;display:flex;align-items:center;gap:9px}.picker-footer .button{font-size:11px;padding:0 11px}.picker-footer .total-block{margin-right:auto}.picker-footer .total-block>span{font-size:10px;color:var(--muted);display:block}.picker-footer .total-block>strong{font-size:23px;letter-spacing:-.6px;line-height:1.4}.picker-tools{display:flex;gap:12px;justify-content:space-between;border-top:1px solid var(--line);padding-top:7px}.picker-tools button{font-size:10px;min-height:35px}.inline-error{font-size:11px;color:var(--danger);margin-top:9px;line-height:1.5}.popup-menu{display:grid;gap:3px}.popup-menu button{display:flex;justify-content:flex-start;text-align:left;padding:0 11px;min-height:43px;border-radius:9px;font-size:12px;gap:9px}.popup-menu button:hover{background:#b4d0f335}.popup-menu button .icon{width:16px;height:16px}.popup-menu button.danger{color:var(--danger)}.profile-account strong{font-size:12px}.history-tabs{display:flex;gap:7px;margin:17px 0}.history-choice{width:100%;display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;padding:14px;border-radius:12px;border:1px solid #79a9df36;min-height:73px;margin-bottom:8px}.history-choice strong{font-size:15px}.history-choice small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.history-choice:hover{background:#aacff226}.history-choice.special{border-color:#47987955;background:#54ab7b09}.history-choice .icon{color:var(--blue)}.checkline{display:flex;align-items:center;gap:9px;font-size:12px;min-height:44px;line-height:1.4}.checkline input{width:17px;height:17px;flex:0 0 17px}.option-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.option-card{display:flex;flex-direction:column;gap:9px;align-items:flex-start;padding:15px;border:1px solid #7fafe044;border-radius:13px;min-height:97px;text-align:left}.option-card strong{font-size:12px}.option-card span{font-size:10px;color:var(--muted);line-height:1.5}.option-card .icon{color:#497fb9}.option-card.active{border-color:#075aff;background:#5d9cf814}.option-card.active .icon{color:#075aff}.print-preview{padding:24px;background:white;border:1px solid #8dadd144;border-radius:6px;margin:15px auto;max-width:690px;box-shadow:0 5px 17px #1d579515;color:#18202d;font-size:11px}.print-preview h2{color:#18202d;font-size:22px;margin:8px 0}.print-preview th,.print-preview td{border-bottom:1px solid #ccc;padding:8px;font-size:10px}.print-preview table{border-collapse:collapse;width:100%;margin:15px 0}.print-preview .print-watermark{font-size:10px;letter-spacing:3px;color:#7e8897;margin:8px 0 15px}.print-preview .qr-svg{width:91px;height:91px}.print-preview .print-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:20px}.print-preview.receipt{max-width:310px;padding:17px;font-family:monospace}.print-preview.label{max-width:350px;padding:18px;text-align:center}.document-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.document-card{padding:19px;cursor:pointer;border-radius:18px}.document-thumb{height:143px;border-radius:13px;background:#bbd2ef24;display:grid;place-items:center;margin-bottom:14px;position:relative;overflow:hidden}.mini-paper{width:79px;height:110px;border-radius:4px;background:#f5f9ffe0;border:1px solid #c4d9ed;box-shadow:5px 7px 8px #4b7faa16;padding:13px 9px;transform:rotate(-5deg)}.mini-paper .line{height:3px;background:#88a5cc35;margin-top:7px;border-radius:2px}.mini-paper .line:first-child{background:#5b82b955;width:60%;height:5px}.mini-paper .line:nth-child(3){width:75%}.mini-paper .line:nth-child(6){width:65%;margin-left:auto}.document-card h3{font-size:13px}.document-card p{font-size:11px;margin-top:5px;color:var(--muted)}.qr-box{display:grid;place-items:center;padding:20px;border:1px solid #8fafe033;border-radius:18px;max-width:255px;margin:20px auto;background:#f8fcff70}.qr-svg{max-width:100%;width:180px;height:180px}.scan-stage{height:195px;max-width:360px;width:100%;margin:20px auto;border:1px solid #679bda4f;border-radius:18px;display:grid;place-items:center;position:relative;background:#7daee719;overflow:hidden}.scan-stage>.icon{width:98px;height:98px;stroke-width:.8;color:#7194be}.scan-line{position:absolute;left:15%;right:15%;height:1px;background:#3c85ed;top:50%;box-shadow:0 0 10px #075aff47}.scan-result{margin-top:13px;font-size:12px}.payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.pay-amount{font-size:39px;color:#0e315e;letter-spacing:-1px;font-weight:700;margin:12px 0}.payment-result{text-align:center;padding:30px 15px}.success-mark{width:68px;height:68px;display:grid;place-items:center;border-radius:50%;margin:0 auto 20px;background:#6dbf961d;color:#137f55}.success-mark .icon{width:33px;height:33px}.success-mark.error{background:#d37a8b1a;color:var(--danger)}.success-mark.secure{background:#7aa2dc1c;color:#075aff}.payment-result h2{margin:0 0 12px}.payment-result p{font-size:12px;color:var(--muted);line-height:1.7}.payment-result .button{margin-top:20px}.history-timeline{padding:4px 0}.history-event{display:flex;gap:14px;padding:14px 0;font-size:12px;line-height:1.6;border-bottom:1px solid #8bb0d42b}.history-event>.icon{width:16px;height:16px;color:#6590c7;margin-top:2px}.history-event time{font-size:10px;color:var(--muted);display:block;margin-top:5px}.checklist-row{display:flex;align-items:center;gap:12px;min-height:68px;border-bottom:1px solid #89acd029}.checklist-row .checkline{flex:1;margin:0}.task-info{flex:1}.task-title{font-size:12px;font-weight:600}.task-title.done{text-decoration:line-through;color:var(--muted)}.task-info .subline{font-size:10px}.priority{width:6px;height:6px;border-radius:50%;background:#97adca;display:inline-block}.priority.high{background:#c35b70}.task-meta{font-size:10px;color:var(--muted)}.attachment-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.attachment-tile{width:125px;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:11px;overflow-wrap:anywhere}.attachment-tile>.icon{color:#5586be;margin-bottom:10px}.attachment-tile small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.map-demo{height:177px;border-radius:14px;background:repeating-linear-gradient(20deg,transparent 0 44px,#d9e9f25e 44px 54px),repeating-linear-gradient(110deg,#cee1e72b 0 75px,#f7fbff8f 75px 87px);border:1px solid #7ca7cf45;position:relative;overflow:hidden;display:grid;place-items:center;margin-top:17px}.map-demo .map-pin{color:#075aff;background:#e2efff;border:1px solid #85b2e5;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;box-shadow:0 7px 20px #5286bf33}.map-demo .map-note{position:absolute;bottom:8px;left:10px;font-size:9px;color:var(--muted);background:#eef6fcaa;padding:4px 7px;border-radius:5px}.map-demo .map-road{position:absolute;border:3px dashed #8aaed3;width:200px;height:80px;border-left:0;border-bottom:0;transform:rotate(-20deg)}.catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.product-card{padding:16px;border-radius:18px;position:relative}.product-art-large{height:124px;display:grid;place-items:center;position:relative;background:#afd1ee18;border-radius:12px;margin-bottom:14px}.product-art-large svg{width:103px;height:103px}.product-card h3{font-size:13px}.product-card .product-price{font-size:17px;letter-spacing:-.4px;margin-top:12px}.product-card .product-desc{font-size:11px;color:var(--muted);line-height:1.6;margin-top:8px;min-height:34px}.client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.client-tile{padding:20px}.client-tile .avatar-square{width:45px;height:45px;flex-basis:45px;font-size:13px}.client-tile h3{margin-top:14px;font-size:14px}.client-tile .stat-pair{display:flex;justify-content:space-between;gap:10px;margin:20px 0 10px;padding-top:14px;border-top:1px solid var(--line)}.stat-pair span{font-size:10px;color:var(--muted);display:block;margin-bottom:6px}.stat-pair strong{font-size:15px}.charts-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:17px;margin-bottom:17px}.chart-wrap{height:222px;position:relative;margin-top:25px}.chart-wrap svg{width:100%;height:100%;overflow:visible}.chart-wrap text{font-family:Arial,sans-serif;fill:#6e89ac;font-size:10px}.chart-legend{display:flex;gap:18px;margin-top:14px;font-size:10px;color:var(--muted)}.chart-legend span{display:flex;gap:7px;align-items:center}.chart-legend i{width:7px;height:7px;border-radius:3px;background:#3e85df}.bar-list{display:grid;gap:21px;margin-top:22px}.bar-item-top{display:flex;justify-content:space-between;font-size:11px;margin-bottom:8px;color:var(--muted)}.bar-item-top b{color:var(--ink)}.bar-item .progress-bar{height:7px}.insight{margin-top:18px;padding:12px;border-radius:11px;background:#76a5dd14;color:#466992;font-size:11px;line-height:1.6}.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:19px;margin:27px 0 22px}.plan{padding:24px 22px;position:relative}.plan.featured{border-color:#619dea60}.popular{position:absolute;right:19px;top:-14px;min-height:23px;padding:4px 10px;font-size:9px;border-radius:7px;box-shadow:0 3px 10px #3575b520;color:#075aff;background:#dfedff}.plan h2{font-size:19px;margin-bottom:7px}.plan .plan-price{font-size:37px;color:#12315c;letter-spacing:-1px;margin:18px 0 8px}.plan-price small{font-size:11px;color:var(--muted);font-weight:400;letter-spacing:0}.features{list-style:none;padding:0;margin:22px 0;display:grid;gap:12px;font-size:12px;color:#4e6c90}.features li{display:flex;gap:9px;align-items:center}.features .icon{width:14px;height:14px;color:#075aff}.plan-badge{height:58px;width:58px;position:absolute;right:16px;top:48px;opacity:.8;color:#5e9dd5}.plan-badge svg{width:100%;height:100%}.billing-summary{display:flex;align-items:center;gap:20px;padding:23px;flex-wrap:wrap}.billing-summary .summary-plan{flex:1;min-width:180px}.billing-summary strong{font-size:20px}.billing-summary .status{font-size:10px;color:var(--green);margin-left:8px}.billing-toggle{display:flex;gap:5px;padding:4px;border-radius:12px;width:fit-content}.billing-toggle button{min-height:39px;padding:0 15px;border-radius:9px;font-size:12px}.billing-toggle button.active{background:#075aff;color:white}.integrations-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.integration{padding:23px;min-height:226px;display:flex;flex-direction:column;align-items:flex-start}.integration-logo{width:44px;height:44px;border-radius:13px;color:#386db2;display:grid;place-items:center;background:#83b2ec1a;font-size:19px;font-weight:700;border:1px solid #a3c4e745;margin-bottom:15px}.integration h3{font-size:15px;margin-bottom:7px}.integration p{font-size:11px;color:var(--muted);line-height:1.6;margin-bottom:19px;flex:1}.integration .button{font-size:11px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:69px;border-bottom:1px solid #8fafd02b}.settings-row strong{font-size:12px}.settings-row small{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:5px}.switch{width:43px;height:25px;border-radius:18px;background:#adc6e264;border:1px solid #9ab9de5c;position:relative;flex:0 0 43px}.switch span{position:absolute;width:19px;height:19px;border-radius:50%;background:#eff7ff;left:2px;top:2px;box-shadow:0 1px 3px #476aa829}.switch.on{background:#075aff;border-color:#075aff}.switch.on span{left:20px}.login-layout{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;max-width:1020px;margin:55px auto}.login-hero h1{font-size:50px;letter-spacing:-2px;line-height:1.1;margin:20px 0}.login-hero p{font-size:14px;color:var(--muted);line-height:1.8;max-width:430px}.login-hero .icon{width:42px;height:42px;color:#075aff}.login-panel{padding:30px}.login-panel h2{font-size:24px}.mobile-tab-switch{display:none}.loading-panel{padding:15px;text-align:center;font-size:12px;color:var(--muted)}.label-danger{color:var(--danger)}.group-card{margin-bottom:13px;padding:17px}.group-card .section-top{margin:0 0 14px}.group-card h3{font-size:13px}.group-checks{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.group-checks .checkline{font-size:11px}.inline-quantity{border:1px solid var(--line);border-radius:8px;background:transparent;max-width:80px;width:100%;padding:8px;font-size:12px;color:var(--ink)}.cell-actions{display:flex;gap:6px;justify-content:flex-end}.pill-outline{border:1px solid var(--line);border-radius:6px;padding:4px 7px;font-size:10px;color:var(--muted)}.toast{max-width:min(540px,calc(100vw - 30px));font-size:12px;padding:13px 20px;bottom:85px;line-height:1.5}.mobile-backdrop{position:fixed;inset:0;z-index:990;background:#30598329;backdrop-filter:blur(3px)}.plan .button{width:100%}.table-bottom .button{font-size:10px;min-height:34px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.hide-scrollbar{scrollbar-width:none}.hide-scrollbar::-webkit-scrollbar{display:none}.print-root{display:none}.shortcut-note{font-size:10px;color:var(--muted);display:flex;gap:6px;align-items:center}.active-filter-dot{width:5px;height:5px;background:var(--blue);border-radius:50%}.order-row .mobile-label{display:none}.welcome-note{margin-bottom:20px}.compact .order-row{min-height:74px}.inventory-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:17px}.inventory-kpis .kpi{min-height:109px}.text-right{text-align:right}.history-source-note{font-size:10px;color:var(--muted);line-height:1.6;padding:10px 0}.scrolling-content{overflow:auto;max-height:380px}.muted-link{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.optics-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.help-step{border:1px solid var(--line);padding:14px;border-radius:12px;font-size:12px;color:var(--muted);line-height:1.65}.help-step strong{color:#15345f;display:block;margin-bottom:6px}.site-footnote{font-size:10px;color:#7590b1;text-align:center;margin-top:21px}.row-check{color:#fff;background:#075aff;border-radius:6px;width:16px;height:16px;display:grid;place-items:center}.row-check .icon{width:13px;height:13px}.row-minus{color:#a75a68}
@media(min-width:1650px){.order-head,.order-row{grid-template-columns:34px 125px minmax(180px,1.3fr) minmax(150px,1fr) 135px 118px 135px 36px}.kpi{padding:19px 21px}.kpi-value{font-size:30px}.order-row{min-height:100px}}
@media(max-width:1250px){.layout{grid-template-columns:183px minmax(0,1fr);gap:19px}.order-head,.order-row{grid-template-columns:28px 83px minmax(100px,1fr) minmax(80px,.8fr) 77px 85px 104px 28px;gap:7px}.list-panel{padding:0 11px}.customer-cell .avatar-square{display:none}.mini-items .mini-item:nth-child(2){display:none}.content-grid{grid-template-columns:minmax(0,1fr) 270px;gap:14px}.product-row,.table-labels{grid-template-columns:minmax(112px,1fr) 112px 87px 75px 27px;gap:7px}.kpi-value{font-size:23px}.header-location{display:none}.catalog-grid,.client-grid{grid-template-columns:repeat(3,1fr)}.kpi .spark{display:none}.batch-bar{left:calc(50% + 101px);max-width:calc(100vw - 240px)}.batch-bar .batch-info{min-width:95px}.batch-bar .button{padding:0 9px}.picker-selected .table-labels,.picker-selected .product-row{grid-template-columns:minmax(99px,1fr) 104px 88px 76px 27px;gap:6px}.picker-selected .product-image{display:none}}
@media(max-width:1060px){.layout{grid-template-columns:165px minmax(0,1fr);gap:16px}.app-frame{padding-inline:15px}.nav-item{font-size:11px;padding-inline:7px;gap:8px}.order-head,.order-row{grid-template-columns:26px 77px minmax(100px,1fr) 72px 80px 97px 28px;gap:7px}.order-head .goods-head,.order-row .goods-cell{display:none}.order-row{min-height:88px}.kpi{padding:14px 12px;min-height:108px}.kpi-label{font-size:10px;gap:5px}.kpi-label .icon{width:14px;height:14px}.kpi-value{font-size:22px}.kpi-note{font-size:9px}.content-grid{grid-template-columns:1fr}.side-summary{position:static;display:grid;grid-template-columns:1fr 1fr;gap:14px}.side-summary .vstack{gap:14px}.side-summary .summary-panel{grid-column:2;grid-row:1}.side-summary .customer-panel{grid-column:1}.page-heading h1{font-size:29px}.page-heading .heading-actions{gap:7px}.heading-actions .button{font-size:11px}.charts-grid{grid-template-columns:1.4fr 1fr}.catalog-grid,.client-grid,.integrations-grid,.document-grid{grid-template-columns:repeat(2,1fr)}.plans{gap:12px}.plan{padding:20px 16px}.plan-price{font-size:32px!important}.plan-badge{display:none}.features{font-size:11px}.settings-grid{grid-template-columns:1fr}.batch-bar{left:calc(50% + 90px);max-width:calc(100vw - 215px);gap:6px;padding:9px 10px}.batch-bar .button{font-size:10px;padding:0 9px}.batch-bar .batch-info{min-width:90px;font-size:10px}.batch-bar .batch-info strong{font-size:12px}.batch-bar .button .icon{display:none}.floating-scan{left:calc(50% + 89px)}.document-thumb{height:139px}}
@media(max-width:900px){.picker-grid{grid-template-columns:34% minmax(0,1fr);gap:10px}.picker-catalog,.picker-selected{padding:10px}.catalog-row .product-image{display:none}.catalog-row .catalog-price{font-size:10px}.catalog-row .product-name{font-size:11px}.catalog-row{gap:5px}.catalog-row .add-product{width:30px;min-width:30px;flex-basis:30px}.picker-selected .table-labels,.picker-selected .product-row{grid-template-columns:minmax(97px,1fr) 96px 80px 73px 24px;gap:5px}.qty button{width:27px;flex-basis:27px}.picker-selected .product-name{font-size:10px}.picker-selected .amount{font-size:10px}.picker-footer .button{padding:0 8px;font-size:10px}.picker-footer .total-block>strong{font-size:20px}.dialog-scroll{padding:23px}.header-clock{display:none}.kpis{gap:9px}.option-grid{gap:8px}}
@media(max-width:760px){:root{font-size:14px}.app-frame{padding:9px 12px 106px}.app-header{top:max(8px,env(safe-area-inset-top));min-height:62px;padding:8px;gap:7px}.brand{font-size:17px;gap:8px}.brand-mark{width:32px;height:32px;flex-basis:32px}.header-divider,.desktop-tools,.header-clock,.header-location{display:none}.header-actions{gap:4px}.header-actions .notifications-trigger{display:none}.header-actions>.demo-tag{padding:4px 6px;font-size:8px;margin-right:3px}.icon-btn{width:44px;height:44px;min-width:44px;flex-basis:44px}.app-header .avatar{width:37px;height:37px;min-width:37px;flex-basis:37px;font-size:12px}.mobile-menu{display:inline-flex}.layout{display:block;margin-top:15px}.sidebar{display:none;position:fixed;top:0;left:0;bottom:0;width:min(300px,calc(100vw - 44px));height:100dvh;max-height:none;border-radius:0 22px 22px 0;z-index:1000;padding:63px 13px 18px;overflow:visible}.sidebar.open{display:flex}.sidebar nav{overflow:auto;padding-inline:5px}.drawer-close{display:inline-flex;position:absolute;top:10px;right:11px}.nav-item{font-size:13px;min-height:45px;padding:0 12px;gap:11px}.workspace strong{font-size:15px}.sidebar-footer{padding:10px 10px 0}.sidebar-footer .demo-note{font-size:11px}.workspace{padding-bottom:17px}.page-heading{padding:6px 2px 18px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-height:0}.page-heading h1{font-size:29px;letter-spacing:-1px;margin:5px 0 6px}.page-heading .heading-actions{margin-left:auto;align-self:center}.page-heading .eyebrow{font-size:8px;letter-spacing:1.1px}.page-heading p{font-size:11px;line-height:1.6;max-width:100%}.heading-actions .button{min-height:44px;padding:0 12px;font-size:12px}.heading-actions .secondary-title-action{display:none}.kpis{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.kpi{min-height:102px;padding:14px 13px}.kpi-label{font-size:10px;gap:7px}.kpi-label .icon{width:15px;height:15px}.kpi-value{font-size:25px;margin-top:8px}.kpi-note{font-size:9px;margin-top:2px}.tabs{width:100%;gap:3px;justify-content:space-between;margin-bottom:13px;border-radius:13px;padding:4px}.tabs .tab{font-size:11px;min-height:40px;padding:0 9px;flex:1;gap:5px}.tabs .tab .counter{font-size:9px;min-width:16px;padding-inline:4px}.toolbar{gap:8px;margin-bottom:13px}.toolbar .search-shell{flex-basis:100%;min-width:0}.toolbar .button{flex:1;min-height:41px;padding:0 10px;font-size:11px}.toolbar .icon-btn{flex:0 0 41px;width:41px;min-width:41px;height:41px}.toolbar .key{display:none}.search-shell input{font-size:16px}.status-filters{gap:6px;margin-bottom:13px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:0 0 5px;scrollbar-width:none}.status-filter{flex:0 0 auto;min-height:37px;padding:0 10px;font-size:10px}.order-head{display:none}.list-panel{padding:0;border:0;box-shadow:none;background:transparent!important}.list-panel>canvas{display:none!important}.order-row{display:grid;grid-template-columns:28px minmax(0,1fr) 107px 30px;gap:0 7px;border:1px solid #f7fcff77!important;border-radius:15px;padding:13px 10px;margin-bottom:10px;min-height:139px;grid-template-rows:30px 35px 28px;background:#accbe718;box-shadow:0 4px 14px #4473a709;cursor:pointer}.order-row .select-cell{grid-column:1;grid-row:1/4;align-self:stretch;min-height:44px}.order-row .number-cell{grid-column:2;grid-row:1}.order-number{font-size:13px}.order-type{display:inline-flex;margin-left:5px;margin-top:0;font-size:9px}.order-type .icon{display:none}.order-row .customer-cell{grid-column:2/4;grid-row:2}.customer-cell .avatar-square{display:grid;width:24px;height:24px;flex-basis:24px;border-radius:8px;font-size:8px}.customer-name{font-size:12px}.customer-cell .subline{display:none}.order-row .goods-cell{display:flex;grid-column:2;grid-row:3}.mini-items .mini-item{display:none}.mini-items .goods-count{font-size:10px;white-space:nowrap}.order-row .state-cell{grid-column:3;grid-row:1;justify-self:end}.state-pill{font-size:9px;min-height:26px;padding:4px 7px}.order-row .amount{grid-column:3/5;grid-row:3;justify-self:end;font-size:13px;line-height:1.3;padding-right:4px}.order-row .amount .subline{font-size:9px;margin-top:4px}.order-row .time-cell{grid-column:2;grid-row:4;font-size:9px;padding-top:6px;color:var(--muted)}.order-row .time-cell .subline{display:none}.order-row .time-cell::before{content:'К выдаче · '}.order-row .menu-cell{grid-column:4;grid-row:1;justify-self:end}.order-row .row-menu{width:30px;height:40px;min-width:30px;flex-basis:30px}.order-row.selected{background:#92bdf329;box-shadow:inset 3px 0 0 #075aff,0 3px 15px #507bbb12}.table-bottom{border-top:0;font-size:10px;padding:5px 2px}.list-hint{font-size:9px;padding:0 3px;line-height:1.5}.list-hint span:last-child{display:none}.floating-scan{left:50%;bottom:max(18px,env(safe-area-inset-bottom));height:47px;font-size:12px;max-width:calc(100vw - 30px);min-width:172px}.batch-bar{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));transform:none;max-width:none;width:auto;display:grid;grid-template-columns:repeat(4,1fr) 35px;padding:9px 10px;gap:7px;border-radius:17px}.batch-bar .batch-info{grid-column:1/5;min-width:0;display:flex;align-items:center;gap:9px;font-size:10px;line-height:1.5}.batch-bar .batch-info .subline{margin:0;font-size:10px}.batch-bar .batch-close{grid-column:5;grid-row:1;width:30px;min-width:30px;height:32px;flex-basis:30px}.batch-bar .separator{display:none}.batch-bar .button{grid-row:2;min-height:41px;padding:0 7px;font-size:10px;gap:4px}.batch-bar .button .icon{display:inline-block;width:14px;height:14px}.batch-bar .button:last-of-type{grid-column:4/6}.content-grid{grid-template-columns:1fr;gap:14px}.side-summary{display:flex;flex-direction:column;gap:13px}.side-summary .summary-panel{order:0}.side-summary .customer-panel{order:1}.panel{padding:17px 14px;border-radius:17px}.panel h2{font-size:16px}.detail-title h1{font-size:24px}.detail-title{gap:9px}.detail-meta{font-size:10px;gap:10px;margin-top:7px}.detail-tabs{gap:16px;margin-bottom:14px}.detail-tab{font-size:11px;min-height:44px;flex:0 0 auto}.timeline-step span{font-size:8px;display:block;white-space:nowrap}.timeline-steps{gap:4px;margin-bottom:15px}.table-labels{display:none}.product-row{grid-template-columns:minmax(130px,1fr) 92px 30px;grid-template-rows:auto auto;gap:10px 7px;padding:14px 0;min-height:114px}.product-row .product-cell{grid-column:1/3;grid-row:1}.product-row .row-menu{grid-column:3;grid-row:1;justify-self:end}.product-row .qty{grid-column:1;grid-row:2;width:126px}.product-row .price-control{grid-column:2;grid-row:2}.product-row .amount{grid-column:3;grid-row:2;display:none}.product-image{width:35px;height:39px;flex-basis:35px}.product-image svg{width:35px;height:35px}.product-name{font-size:12px}.qty{height:42px}.qty input{font-size:16px;height:40px}.qty button{width:35px;flex-basis:35px;height:40px}.price-field{font-size:16px;height:40px;padding:0 7px}.price-source{font-size:9px}.price-entry{height:42px}.product-cell small{font-size:9px}.add-items-wide{font-size:12px}.note-fields,.field-row,.field-row.three{grid-template-columns:1fr;gap:10px}.field-shell input,.field-shell textarea{font-size:16px}.section-top{gap:8px;margin-bottom:13px}.section-top .button{font-size:10px;padding:0 9px}.section-top .link-button{font-size:11px}.summary-total strong{font-size:27px}.notice{font-size:11px;padding:11px;align-items:flex-start}.notice .icon{margin-top:1px;width:16px;flex-basis:16px}.inventory-kpis{grid-template-columns:repeat(3,1fr);gap:8px}.inventory-kpis .kpi{min-height:93px;padding:13px 10px}.inventory-kpis .kpi-value{font-size:20px}.inventory-kpis .kpi-label{font-size:9px}.inventory-kpis .kpi-label .icon{display:none}.inventory-kpis .kpi-note{font-size:8px}.table-scroll .data-table{min-width:570px}.dialog-scrim{padding:10px}.dialog{border-radius:20px;max-height:calc(100dvh - 20px)}.dialog-scroll{padding:23px 17px;max-height:calc(100dvh - 23px)}.dialog h2{font-size:20px;line-height:1.3;margin-right:45px}.dialog-close{right:10px;top:9px;width:40px;height:40px;min-width:40px}.modal-subtitle{font-size:11px;margin-bottom:17px}.modal-footer{gap:8px;margin-top:17px;flex-wrap:wrap}.modal-footer .button{font-size:12px;min-height:44px;flex:1}.modal-footer .total-block{flex:0 0 100%;margin-bottom:5px}.picker-dialog .dialog-scroll{padding:21px 12px 12px;max-height:calc(100dvh - 22px)}.picker-dialog .modal-head{padding:0 4px;margin-bottom:10px}.picker-dialog .modal-head h2{font-size:20px}.picker-dialog .modal-head .modal-subtitle{font-size:10px;margin-bottom:5px}.mobile-tab-switch{display:flex;gap:5px;margin:0 4px 9px;padding:4px;border:1px solid var(--line);border-radius:12px;flex-shrink:0}.mobile-tab-switch button{flex:1;min-height:39px;border-radius:9px;font-size:11px;color:var(--muted)}.mobile-tab-switch button.active{background:#adcdef32;color:#134a90;font-weight:700}.picker-grid{display:block;min-height:0;overflow:hidden}.picker-catalog,.picker-selected{padding:10px;min-height:0;max-height:calc(100dvh - 195px);border-radius:13px}.picker-grid[data-mobile="selected"] .picker-catalog{display:none}.picker-grid[data-mobile="catalog"] .picker-selected{display:none}.picker-grid[data-mobile="catalog"] .picker-catalog{max-height:calc(100dvh - 190px)}.catalog-scroll{max-height:calc(100dvh - 350px);min-height:125px}.catalog-row .product-image{display:grid;width:35px;height:39px;flex-basis:35px}.catalog-row .product-image svg{width:33px;height:33px}.catalog-row .product-name{font-size:12px}.catalog-row .catalog-price{font-size:11px}.catalog-row .add-product{width:40px;height:44px;min-width:40px;flex-basis:40px}.catalog-row{min-height:68px;gap:8px}.category{min-height:34px;font-size:11px}.picker-tools{gap:4px}.picker-tools .link-button{font-size:10px}.picker-selected h3{display:none}.selected-scroll{max-height:calc(100dvh - 310px);min-height:180px;padding-right:4px}.picker-selected .table-labels{display:none}.picker-selected .product-row{grid-template-columns:minmax(105px,1fr) 100px 33px;grid-template-rows:auto auto;gap:9px 6px;min-height:115px;padding:10px 0}.picker-selected .product-cell{grid-column:1/3}.picker-selected .product-name{font-size:12px}.picker-selected .product-image{display:grid;width:30px;height:35px;flex-basis:30px}.picker-selected .product-image svg{width:30px;height:30px}.picker-selected .qty{grid-column:1;width:123px;height:41px}.picker-selected .price-control{grid-column:2}.picker-selected .amount{display:none}.picker-selected .row-menu{grid-column:3;width:32px;min-width:32px;height:44px}.picker-selected .price-field{font-size:15px}.picker-footer{padding:13px 0 0;gap:7px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:10px}.picker-footer .total-block{flex:1;min-width:100px}.picker-footer .total-block>strong{font-size:21px}.picker-footer .total-block>span{font-size:9px}.picker-footer .button{font-size:11px;padding:0 11px;min-height:44px}.picker-footer .picker-cancel{display:none}.history-choice{min-height:75px;padding:12px;gap:10px}.history-choice strong{font-size:14px}.history-choice small{font-size:10px}.history-tabs .button{font-size:10px;padding:0 9px}.option-grid{grid-template-columns:1fr 1fr;gap:8px}.option-card{min-height:90px;padding:13px}.option-card strong{font-size:12px}.option-card span{font-size:10px}.print-preview{padding:15px;font-size:10px}.print-preview table td,.print-preview table th{padding:5px;font-size:9px}.print-preview h2{font-size:18px}.print-preview .qr-svg{width:69px;height:69px}.payment-methods{gap:7px}.payment-methods .option-card{padding:11px;min-height:85px}.payment-methods .option-card strong{font-size:11px}.payment-methods .option-card span{font-size:9px}.pay-amount{font-size:34px}.help-grid,.optics-grid{grid-template-columns:1fr}.group-checks{grid-template-columns:1fr}.charts-grid{grid-template-columns:1fr;gap:14px}.chart-wrap{height:211px;margin-top:20px}.chart-wrap text{font-size:10px}.catalog-grid,.client-grid,.document-grid,.integrations-grid{grid-template-columns:1fr 1fr;gap:11px}.product-card{padding:13px;border-radius:16px}.product-art-large{height:103px;margin-bottom:11px}.product-art-large svg{width:83px;height:83px}.product-card h3{font-size:12px;line-height:1.5;min-height:36px}.product-card .product-price{font-size:16px}.product-card .product-desc{font-size:10px;min-height:48px}.product-card .button{font-size:10px;padding:0 9px;width:100%}.client-tile{padding:16px 13px}.client-tile h3{font-size:13px;line-height:1.5}.client-tile .customer-contact{font-size:9px}.client-tile .stat-pair{flex-direction:column;gap:12px;margin:14px 0 6px}.client-tile .stat-pair span{font-size:9px;display:inline-block;margin-right:7px}.client-tile .stat-pair strong{font-size:13px}.client-tile .link-button{font-size:11px}.client-tile .button{font-size:10px;width:100%;padding:0 8px}.document-card{padding:13px}.document-thumb{height:118px;margin-bottom:11px}.mini-paper{width:68px;height:95px;padding:9px}.document-card h3{font-size:12px;line-height:1.5}.document-card p{font-size:10px}.document-card .link-button{font-size:10px}.integration{padding:17px 14px;min-height:223px}.integration h3{font-size:13px}.integration p{font-size:10px}.integration .button{font-size:10px;padding:0 9px;max-width:100%}.integration-logo{width:38px;height:38px;font-size:16px}.plans{grid-template-columns:1fr;gap:24px;margin-top:26px}.plan{padding:22px}.plan-badge{display:block;right:25px;top:48px;width:63px;height:63px}.features{font-size:12px}.plan .plan-price{font-size:38px!important}.billing-summary{padding:20px;gap:17px}.billing-summary .summary-plan{min-width:100px;flex:1}.billing-summary strong{font-size:18px}.billing-summary .button{font-size:11px}.settings-grid{gap:14px}.checklist-row{gap:9px}.checklist-row .task-meta{display:none}.task-title{font-size:12px}.checklist-row .row-menu{width:34px;min-width:34px}.login-layout{grid-template-columns:1fr;gap:25px;margin:22px 4px}.login-panel{order:0;padding:24px}.login-hero{order:1;padding:12px}.login-hero h1{font-size:34px;letter-spacing:-1px}.login-hero p{font-size:12px}.login-hero .icon{width:30px;height:30px}.table-bottom .pager button{width:32px;min-width:32px}.toast{bottom:90px;font-size:11px;border-radius:13px}.shortcut-note{display:none}.page-heading.detail-heading{display:block}.detail-heading .heading-actions{margin:12px 0 0;justify-content:space-between}.detail-heading .heading-actions .button{flex:1}.panel .empty{padding:20px 8px;min-height:190px}.list-panel .empty{border:1px solid var(--line);border-radius:15px;background:#b0cee41a}.document-grid .link-button .icon{width:13px;height:13px}.mobile-tab-switch .counter{font-size:9px}.compact .order-row{min-height:133px}.floating-scan .key{display:none}.history-source-note{font-size:9px}.table-scroll:focus-visible{outline:2px solid #075aff;outline-offset:3px}.help-step{font-size:11px}}
@media(max-width:370px){.app-frame{padding-inline:9px}.app-header{padding-inline:5px;gap:3px}.brand{font-size:14px;gap:5px}.brand-mark{width:27px;height:27px;flex-basis:27px}.app-header .mobile-menu{width:39px;height:44px;min-width:39px;flex-basis:39px}.header-actions>.demo-tag{font-size:8px;padding:4px 5px;margin-right:2px}.header-actions>.demo-tag::before{display:none}.app-header .avatar{width:32px;height:36px;min-width:32px;flex-basis:32px}.page-heading h1{font-size:26px}.heading-actions .button{padding:0 10px;font-size:11px}.kpi-value{font-size:23px}.kpi-label{font-size:9px}.kpi{padding:13px 11px}.tabs .tab{font-size:10px;padding-inline:7px}.order-row{grid-template-columns:23px minmax(0,1fr) 90px 25px;padding-inline:8px;gap:0 5px}.order-type{font-size:8px;margin-left:4px}.state-pill{font-size:8px;padding-inline:6px}.order-row .row-menu{width:28px;min-width:28px}.client-grid{grid-template-columns:1fr}.catalog-grid{gap:9px}.product-card .product-desc{font-size:9px}.batch-bar{left:9px;right:9px;gap:5px;padding:8px}.batch-bar .button{font-size:9px;padding:0 5px;gap:3px}.picker-footer .button{font-size:10px;padding:0 9px}.picker-selected .product-row{grid-template-columns:minmax(90px,1fr) 88px 29px}.picker-selected .qty{width:111px}.picker-selected .qty button{width:29px;flex-basis:29px}.picker-selected .product-cell small{font-size:8px}.catalog-row .product-image{width:30px;flex-basis:30px}.catalog-row .product-name{font-size:11px}.dialog-scroll{padding:22px 13px}.integration{padding:16px 11px}.integration .button{font-size:9px}.document-card h3{font-size:11px}.dialog h2{font-size:19px}.settings-row strong{font-size:11px}}
@media(max-height:600px) and (min-width:761px){.sidebar{height:calc(100dvh - 113px);min-height:0}.workspace{padding-bottom:10px}.nav-item{min-height:37px}.sidebar-footer{display:none}.dialog-scroll{max-height:calc(100dvh - 34px)}.dialog-scrim{padding:15px}.picker-dialog .dialog-scroll{max-height:calc(100dvh - 30px)}.catalog-scroll,.selected-scroll{max-height:calc(100dvh - 267px);min-height:90px}}
@media print{html,body{margin:0!important;padding:0!important;background:white!important;overflow:visible!important}.app-frame,#liquid-scene,.dialog-scrim,.profile-menu,.select-menu,.toast,.batch-bar,.floating-scan,.mobile-backdrop{display:none!important}.print-root{display:block!important;padding:0}.print-root .print-preview{page-break-after:always;break-after:page;box-shadow:none;border:0;margin:0 auto;width:100%;max-width:none;border-radius:0}.print-root .print-preview:last-child{page-break-after:auto;break-after:auto}.print-root .print-preview.receipt{width:72mm;max-width:72mm}.print-root .print-preview.label{width:58mm;max-width:58mm;min-height:40mm;padding:3mm}.print-root .print-preview.label .qr-svg{width:21mm;height:21mm}.print-root .print-preview h2{font-size:16pt}a{color:black!important}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* Final optical/text refinements. */
@media(min-width:761px){.customer-name,.order-number{font-size:13px}.amount{font-size:13px}.time-cell{font-size:12px}.goods-count,.order-type{font-size:11px}.picker-dialog .catalog-row .product-name,.picker-dialog .product-name{font-size:13px}.picker-dialog .catalog-row .catalog-price{font-size:13px}.picker-dialog .product-cell small,.picker-dialog .subline{font-size:10px}.picker-dialog .table-labels{font-size:11px}.picker-dialog .qty input,.picker-dialog .price-field{font-size:14px}.picker-dialog .amount{font-size:13px}.picker-dialog .catalog-row{min-height:74px}.picker-selected .product-row{min-height:92px}.picker-dialog .modal-subtitle{font-size:12px}.picker-dialog .price-source{font-size:10px}.picker-dialog .picker-tools button{font-size:11px}.order-head{font-size:11px}.state-pill{font-size:11px}.select-option{min-height:43px;font-size:13px}.popup-menu button{font-size:13px}}
@media(min-width:761px) and (max-width:1250px){.picker-dialog .product-name,.picker-dialog .catalog-row .product-name{font-size:12px}.picker-dialog .amount{font-size:11px}.picker-dialog .catalog-row .catalog-price{font-size:12px}.order-head{font-size:10px}.state-pill{font-size:10px}.time-cell{font-size:11px}.amount,.customer-name{font-size:12px}}
.picker-catalog,.picker-selected{box-shadow:0 5px 16px #316aaa09}.is-loading{opacity:1!important}.auth-layout{display:block}.sidebar.auth-hidden{display:none!important}.select-option.selected{background:#075aff;color:#fff}.select-option:disabled{opacity:.4}.select-option:focus-visible{outline:2px solid #075aff;outline-offset:-2px}.history-choice:focus-visible{outline:2px solid #075aff;outline-offset:2px}.product-row input:disabled{color:#647993}.product-row button:disabled{opacity:.3;cursor:not-allowed}.print-root .print-preview.label h2{font-size:15px}.print-root .print-preview.label p{font-size:10px;margin:4px 0!important}

/* Retail UX: selection appears only after long press / accessible keyboard gesture. */
body:not(.selection-mode) .order-row>.select-cell,body:not(.selection-mode) .order-head>.select-cell{visibility:hidden;pointer-events:none}
.qty button,.catalog-row .add-product{display:flex;align-items:center;justify-content:center;padding:0;line-height:1;flex-shrink:0}
.catalog-row[data-product-id]{cursor:pointer}.catalog-row[data-product-id]:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;border-radius:10px}
.order-items-scroll{overflow-y:auto;scrollbar-gutter:stable}.order-items-scroll.limited{max-height:365px}.line-config{min-height:28px;padding:0;font-size:10px;justify-content:flex-start}.line-config .icon{width:12px;height:12px}.line-modifier-label{max-width:240px;white-space:normal}.retail-group-paper small{font-size:9px}
body[data-order-theme="contrast"]{--muted:#304c70;--ink:#071020;--navy:#020b21;--line:rgba(51,96,148,.42)}body[data-order-theme="contrast"] .subline,body[data-order-theme="contrast"] .quiet{color:var(--muted)}
@media(min-width:761px){.batch-bar{flex-wrap:wrap;justify-content:center;max-width:calc(100vw - 260px)}.order-head,.order-row{grid-template-columns:0px 100px minmax(130px,1fr) minmax(90px,.85fr) 92px minmax(84px,.8fr) 113px 34px}.selection-mode .order-head,.selection-mode .order-row{grid-template-columns:28px 100px minmax(130px,1fr) minmax(90px,.85fr) 92px minmax(84px,.8fr) 113px 34px}}
@media(min-width:761px) and (max-width:1060px){.order-head,.order-row{grid-template-columns:0px 77px minmax(90px,1fr) 72px 80px 97px 28px}.selection-mode .order-head,.selection-mode .order-row{grid-template-columns:26px 77px minmax(90px,1fr) 72px 80px 97px 28px}}
@media(max-width:760px){.batch-bar{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.batch-bar .batch-info{grid-column:1/3}.batch-bar .batch-close{grid-column:3;grid-row:1;justify-self:end}.batch-bar>.button{grid-column:auto!important;grid-row:auto;min-width:0;white-space:normal}.batch-bar>.button[data-act="batch-copy"]{grid-column:1/-1!important}.order-row{grid-template-columns:0px minmax(0,1fr) 107px 30px}.selection-mode .order-row{grid-template-columns:28px minmax(0,1fr) 107px 30px}.order-items-scroll.limited{max-height:440px}.detail-heading .heading-actions{flex-wrap:wrap}.detail-heading .heading-actions .button{flex:1 1 135px}.line-config{font-size:11px;min-height:36px}}
@media(max-width:370px){.order-row{grid-template-columns:0px minmax(0,1fr) 88px 26px}.selection-mode .order-row{grid-template-columns:23px minmax(0,1fr) 88px 26px}}
/* Touch review actions and readable per-line totals. */
.mobile-picker-next{display:none}
@media(max-width:760px){
.mobile-picker-next{display:block;flex:none;padding:8px 0 0}.mobile-picker-next .button{justify-content:space-between;font-size:12px;gap:6px}.mobile-picker-next .button>span:nth-child(2){margin-left:auto}.mobile-picker-next .icon{width:16px;height:16px}
.product-row,.picker-selected .product-row{grid-template-rows:auto auto auto}
.product-row .amount,.picker-selected .product-row .amount{display:flex;grid-column:1/4;grid-row:3;justify-content:space-between;align-items:center;font-size:12px;padding:2px 0 0;text-align:right}
.product-row .amount::before{content:"Сумма позиции";font-size:10px;color:var(--muted);font-weight:400}
.order-row .goods-cell{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;max-width:100%}.order-row .goods-cell .subline{margin:0;font-size:9px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}.order-row .goods-cell .mini-items{gap:5px}
}


/* Keep the underlying glass field visible when the browser fills credentials. */
.field-shell input:is(:autofill,:-webkit-autofill),
.field-shell input:is(:autofill,:-webkit-autofill):hover,
.field-shell input:is(:autofill,:-webkit-autofill):focus {
  -webkit-text-fill-color:var(--ink)!important;
  caret-color:var(--ink);
  background-color:transparent!important;
  transition:background-color 86400s ease-out 0s;
  background-clip:text!important;
  -webkit-background-clip:text!important;
}
.sidebar-collapse,.sidebar-resizer{display:none}
/* Compact sidebar rows: do not stretch items to fill the navigation grid. */
.sidebar nav{align-content:start;gap:5px}
.sidebar .nav-item{min-height:40px;padding:7px 10px;line-height:1.3;border-radius:12px}
.sidebar .nav-separator{margin:8px 9px}
@media(max-width:760px){.sidebar .nav-item{min-height:44px;padding:9px 12px}}
@media(min-width:761px){
  .layout:not(.auth-layout){grid-template-columns:var(--orders-sidebar-width,215px) minmax(0,1fr)}
  .layout.sidebar-collapsed:not(.auth-layout){grid-template-columns:68px minmax(0,1fr)}
  .layout.sidebar-collapsed .sidebar{display:flex;padding-left:7px;padding-right:7px;overflow:visible}
  .layout.sidebar-collapsed .sidebar .workspace,.layout.sidebar-collapsed .sidebar .sidebar-bottom,.layout.sidebar-collapsed .sidebar .sidebar-footer,.layout.sidebar-collapsed .sidebar .nav-separator,.layout.sidebar-collapsed .sidebar nav a span{display:none}
  .layout.sidebar-collapsed .sidebar nav{padding-top:39px;justify-items:center}
  .layout.sidebar-collapsed .sidebar .nav-item{width:44px;min-height:44px;padding:9px;justify-content:center;gap:0}
  .layout.sidebar-collapsed .sidebar .nav-item svg{flex:0 0 18px;width:18px;height:18px}
  .layout.sidebar-collapsed .sidebar-collapse{right:19px}
  .mobile-menu.desktop-visible{display:none}
  .sidebar-collapse{display:inline-flex;position:absolute;right:7px;top:6px;width:28px;height:28px}
  .sidebar .workspace{padding-right:23px}
  .sidebar-resizer{display:block;position:absolute;top:22px;bottom:22px;right:-8px;width:16px;cursor:col-resize;touch-action:none;border-radius:8px}
  .sidebar-resizer:hover,.sidebar-resizer:focus-visible{background:var(--line)}
  .sidebar-resizer:after{content:'';position:absolute;top:40%;bottom:40%;left:7px;width:2px;border-radius:2px;background:var(--muted);opacity:.45}
  .sidebar-resizing{cursor:col-resize;user-select:none}
}

@media(max-width:760px){.heading-actions .button{min-width:0;white-space:normal}.heading-actions .button span{min-width:0;overflow-wrap:anywhere}.heading-actions .button svg{flex-shrink:0}.app-header .demo-tag{display:none}.app-header .brand>span:last-child{display:none}.app-header .brand{flex:0 0 auto}.header-actions{min-width:0}}


.appearance-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.appearance-option{min-height:78px;flex-direction:column;padding:12px 7px;gap:9px;border:1px solid var(--line);border-radius:15px;color:var(--ink)}.appearance-option.active{outline:2px solid var(--blue);outline-offset:1px}.appearance-swatch{display:block;width:100%;height:22px;border-radius:9px;background:linear-gradient(120deg,#e1f4ff,#82b8fa 55%,#c4ddff);filter:hue-rotate(var(--swatch-hue)) saturate(var(--swatch-saturation));box-shadow:inset 0 1px 2px #fff9}.appearance-modes{display:flex;gap:9px}.appearance-modes .button{flex:1}
body[data-glass-preset] #liquid-scene,body[data-glass-preset] .sg-pane{filter:hue-rotate(var(--appearance-hue,0deg)) saturate(var(--appearance-saturation,1))}
body[data-glass-mode="dark"]{--ink:#edf3ff;--navy:#f2f6ff;--muted:#b4c6e1;--line:rgba(172,199,236,.32);--blue:#75a9ff;--shadow:0 8px 25px #0003;color:var(--ink);background:#10192b}
body[data-glass-mode="dark"] #liquid-scene,body[data-glass-mode="dark"] .sg-pane{filter:hue-rotate(var(--appearance-hue,0deg)) saturate(var(--appearance-saturation,1)) brightness(.19)}
body[data-glass-mode="dark"] .glass,body[data-glass-mode="dark"] [data-glass]{background-color:rgba(13,23,42,.35);border-color:rgba(177,206,247,.26)}
body[data-glass-mode="dark"] .button.primary{background:#175bd3;color:#fff}body[data-glass-mode="dark"] .field-shell,body[data-glass-mode="dark"] .qty,body[data-glass-mode="dark"] .price-entry{background:rgba(10,20,36,.4);color:var(--ink)}
body[data-glass-mode="dark"] input,body[data-glass-mode="dark"] textarea{color:var(--ink)}body[data-glass-mode="dark"] input::placeholder,body[data-glass-mode="dark"] textarea::placeholder{color:var(--muted)}
body[data-glass-mode="dark"] .subline,body[data-glass-mode="dark"] .quiet,body[data-glass-mode="dark"] .field-label,body[data-glass-mode="dark"] .modal-subtitle{color:var(--muted)}
body[data-glass-mode="dark"] .popup,body[data-glass-mode="dark"] .dialog,body[data-glass-mode="dark"] .profile-menu{background-color:rgba(14,25,44,.94);color:var(--ink)}
body[data-glass-mode="dark"] .print-preview{color:#111;--ink:#111;--navy:#111;--muted:#555;background:#fff}body[data-glass-mode="dark"] .print-preview .sg-pane{filter:none}
@media(max-width:420px){.appearance-presets{gap:8px}.appearance-option{font-size:12px;min-height:72px}.settings-grid{grid-template-columns:minmax(0,1fr)}}
body[data-glass-mode="dark"] .button,body[data-glass-mode="dark"] .nav-item,body[data-glass-mode="dark"] .tab,body[data-glass-mode="dark"] .detail-tab,body[data-glass-mode="dark"] .link-button,body[data-glass-mode="dark"] .category,body[data-glass-mode="dark"] .brand em,body[data-glass-mode="dark"] .icon-button,body[data-glass-mode="dark"] .popup-item{color:var(--ink)}
body[data-glass-mode="dark"] .button.primary{color:#fff;background:#175bd3}body[data-glass-mode="dark"] .button.primary .sg-pane{filter:none}
body[data-glass-mode="dark"] .nav-item.active,body[data-glass-mode="dark"] .tab.active,body[data-glass-mode="dark"] .detail-tab.active{color:#9ac1ff}
body[data-glass-mode="dark"] .shift-button{color:#8fe6bd}body[data-glass-mode="dark"] .brand-mark{color:#fff}
body[data-glass-mode="dark"] .dialog .button:not(.primary),body[data-glass-mode="dark"] .icon-btn,body[data-glass-mode="dark"] .dialog-close,body[data-glass-mode="dark"] .select-option,body[data-glass-mode="dark"] .toast{color:var(--ink)}body[data-glass-mode="dark"] .dialog-close .icon{stroke:currentColor}
body[data-glass-mode="dark"] button.is-loading,body[data-glass-mode="dark"] button>.loading-label{color:var(--ink)!important}
body[data-glass-mode="dark"] .orders-calendar .button.primary{color:#102344}

/* Keep the price field on the quantity/total baseline; its caption is secondary. */
.product-row .price-control{position:relative;gap:0}
.product-row .price-source{position:absolute;top:calc(100% + 4px);left:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:14px}
@media(min-width:761px){.picker-selected .price-field{padding:0 4px;font-size:12px}.picker-selected .history-trigger{width:24px;min-width:24px;flex:0 0 24px}}
@media(max-width:760px){.product-row .price-control{margin-bottom:18px;align-self:start}.product-row .qty{align-self:start}}
.modifier-stage-hint{display:block;margin-top:3px;font-size:10px;line-height:1.4;color:var(--muted)}

button[data-act="live-purchase-storage"] + button[data-act="live-purchase-add"] {
  margin-inline-start: 12px;
}
@media (max-width: 600px) {
  button[data-act="live-purchase-storage"],
  button[data-act="live-purchase-storage"] + button[data-act="live-purchase-add"] {
    display: flex;
    width: 100%;
  }
  button[data-act="live-purchase-storage"] + button[data-act="live-purchase-add"] {
    margin-inline-start: 0;
    margin-top: 12px;
  }
}

.purchase-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.purchase-context .button{width:100%;justify-content:flex-start}.purchase-grid{height:min(58vh,580px);min-height:330px}.purchase-catalog-row{display:flex;align-items:center;gap:12px;width:100%;padding:15px 10px;background:transparent;border:0;border-bottom:1px solid var(--line);color:inherit;text-align:left;cursor:pointer}.purchase-catalog-row:hover,.purchase-catalog-row.in-cart{background:var(--hover,rgba(0,93,255,.06))}.purchase-product-name{flex:1;min-width:0}.purchase-add-count{color:var(--accent);min-width:28px;text-align:center}.purchase-line{display:grid;grid-template-columns:minmax(130px,1fr) 98px 110px 76px 30px;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.purchase-line .field-label{font-size:10px;margin:0 0 5px}.purchase-line input{width:100%;min-width:0;padding:8px}.purchase-line .field-shell{min-width:0}.purchase-tabs{display:none}.purchase-grid .picker-footer{flex-wrap:wrap;gap:12px}.purchase-grid .picker-footer .total-block{margin-right:auto}.purchase-grid .picker-selected{min-width:0}.purchase-grid .catalog-scroll{min-height:0}.purchase-line strong{overflow-wrap:anywhere}.purchase-grid .selected-scroll{padding-bottom:10px}
@media(max-width:900px){.purchase-context{grid-template-columns:1fr 1fr}.purchase-context>div:last-child{grid-column:1/-1}.purchase-line{grid-template-columns:minmax(90px,1fr) 84px 90px 64px 28px;gap:6px}}
@media(max-width:760px){.purchase-context{gap:10px}.purchase-context .button{font-size:12px;padding:10px}.purchase-tabs{display:flex}.purchase-grid{height:55vh;min-height:320px}.purchase-grid[data-mobile="catalog"] .picker-selected{display:none}.purchase-grid[data-mobile="selected"] .picker-catalog{display:none}.purchase-line{grid-template-columns:1fr 1fr auto}.purchase-line>strong:first-child{grid-column:1/-1}.purchase-line>strong[data-purchase-total]{grid-column:1/3}.purchase-grid .picker-footer .button{padding:10px}.purchase-grid .picker-footer{gap:8px}}
.purchase-supplier-line{display:block;margin-top:7px;font-weight:400}.purchase-supplier-line .button{max-width:100%;padding:6px 9px;font-size:11px;justify-content:flex-start}.purchase-supplier-line .button span{overflow:hidden;text-overflow:ellipsis}.purchase-supplier-line .subline{font-size:10px;margin-top:4px}

.background-saves{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1100;display:flex;align-items:center;gap:12px;padding:14px 18px;max-width:min(720px,calc(100vw - 32px));border:1px solid var(--line);box-shadow:0 8px 30px #1233;flex-wrap:wrap}.background-saves.is-error{border-color:#d54848}.background-saves.is-error>span{flex-basis:100%}.background-saves .button{min-height:36px}.purchase-product-label{display:flex;align-items:center;gap:10px;min-width:0}.purchase-product-label>div{min-width:0}.purchase-product-label strong{display:block;overflow-wrap:anywhere}.purchase-product-label .catalog-thumb{flex:0 0 44px;width:44px;height:44px}.purchase-product-label img{width:44px;height:44px;object-fit:contain}.purchase-product-code{display:block;overflow-wrap:anywhere;font-size:10px;line-height:1.4;margin-bottom:4px;color:var(--muted)}.purchase-line-product{min-width:0}.procurement-covered-row{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid var(--line)}.procurement-covered-row small{display:block;margin-top:5px}.order-stock-notice.is-ordered{border-color:#578ec366;background:#578ec311}.order-stock-notice small{display:block;margin-top:5px}@media(max-width:760px){.purchase-line>.purchase-line-product{grid-column:1/-1}.procurement-covered-row{grid-template-columns:1fr auto}.procurement-covered-row>div:last-child{grid-column:1/-1}.background-saves{bottom:12px;padding:12px}}

.doc-studio{min-width:0}.doc-studio-header,.doc-studio-footer,.doc-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.doc-studio-header .modal-head{margin-bottom:14px}.doc-history,.doc-studio-footer>div{display:flex;gap:8px;flex-wrap:wrap}.doc-settings{display:grid;grid-template-columns:minmax(170px,1.4fr) auto auto minmax(150px,1fr);gap:12px;padding:14px 0 20px}.doc-settings .button{width:100%;justify-content:space-between}.doc-custom-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.doc-studio-grid{display:grid;grid-template-columns:210px minmax(260px,1fr) 260px;gap:16px;min-height:420px;height:min(62vh,760px)}.doc-palette,.doc-properties{padding:16px;border-radius:18px;overflow:auto;min-width:0}.doc-palette h3,.doc-properties h3{font-size:14px;margin:0 0 12px}.doc-palette-buttons{display:grid;gap:7px}.doc-palette-button{display:grid;grid-template-columns:1fr auto;gap:4px;text-align:left;border:1px solid var(--line,rgba(100,150,200,.2));border-radius:12px;padding:10px;background:rgba(255,255,255,.09);color:inherit;cursor:pointer}.doc-palette-button small{grid-column:1;font-size:10px;opacity:.65;line-height:1.4}.doc-palette-button>span{grid-column:2;grid-row:1/3;align-self:center;color:var(--primary,#155bff);font-size:20px}.doc-palette-button:hover,.doc-outline button:hover{background:rgba(95,145,255,.15)}.doc-outline{display:grid;gap:5px}.doc-outline button{display:flex;align-items:start;gap:8px;padding:8px;text-align:left;border:0;border-radius:8px;background:transparent;color:inherit;overflow-wrap:anywhere;font-size:11px;cursor:pointer}.doc-outline button.active{background:rgba(50,120,255,.15)}.doc-outline button span{opacity:.5}.doc-workspace{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:16px;background:rgba(80,110,160,.06);padding:12px}.doc-preview-toolbar{font-size:12px;flex-wrap:wrap}.doc-preview-toolbar .button{font-size:11px;padding:8px}.doc-sample-note{font-size:11px;opacity:.6;margin:9px 0}.doc-canvas{flex:1;overflow:auto;padding:12px 8px 24px;background-image:radial-gradient(rgba(80,100,130,.16) .6px,transparent .6px);background-size:12px 12px}.doc-canvas .print-preview{box-sizing:border-box;width:var(--document-width);max-width:100%;min-width:0;min-height:260px;margin:0 auto;padding:22px;color:#202124;box-shadow:0 8px 26px rgba(30,50,90,.15);border-radius:2px;background:#fff;font-size:12px}.doc-canvas .print-preview.receipt,.doc-canvas .print-preview.label{padding:8px}.doc-canvas .document-element{position:relative;outline:1px solid transparent;cursor:pointer;overflow-wrap:anywhere}.doc-canvas .document-element:hover{outline-color:#95b7ff}.doc-canvas .document-element.is-selected{outline:2px solid #2563eb;outline-offset:2px}.doc-canvas table{width:100%;border-collapse:collapse}.doc-canvas th,.doc-canvas td{padding:5px;border-bottom:1px solid #ddd}.doc-canvas .document-element img{max-height:180px;object-fit:contain}.doc-canvas .document-qr svg{width:80px;height:80px}.doc-textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:100px;border-radius:12px;padding:12px;border:1px solid var(--line,rgba(100,150,200,.25));color:inherit;background:rgba(255,255,255,.12);font:inherit;margin-bottom:10px}.doc-properties-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.doc-block-actions,.doc-alignment{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.doc-block-actions .button,.doc-alignment .button{font-size:11px;padding:8px}.doc-color-swatches{display:flex;gap:10px;margin:12px 0}.doc-color-swatches button{background:var(--swatch);width:26px;height:26px;border:2px solid rgba(160,175,195,.5);border-radius:50%;cursor:pointer}.doc-studio-footer{padding-top:18px;margin-top:16px;border-top:1px solid rgba(100,150,200,.2)}#doc-save-status{font-size:11px;opacity:.7}.doc-starters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.doc-starters .option-card{min-height:100px;display:grid;text-align:left;gap:8px}.doc-mobile-tabs{display:none}.doc-table-columns{margin:16px 0}.doc-library-intro{margin-bottom:20px}.doc-library-intro p{font-size:13px;opacity:.65}.doc-library-intro+.page-heading{display:none}
@media(min-width:1000px){.modal:has(.doc-studio){width:min(1400px,96vw);max-width:96vw}.modal:has(.doc-studio) #dialog-content{padding:22px}}
@media(max-width:1100px){.doc-studio-grid{grid-template-columns:175px minmax(210px,1fr) 225px;gap:10px}.doc-palette,.doc-properties{padding:12px}.doc-settings{grid-template-columns:1fr 1fr}.doc-studio-header .modal-subtitle{max-width:520px}}
@media(max-width:760px){.doc-studio-grid{display:block;height:58vh;min-height:330px}.doc-studio-grid>aside,.doc-studio-grid>section{height:100%;box-sizing:border-box}.doc-studio-grid[data-panel="page"]>aside,.doc-studio-grid[data-panel="blocks"]>.doc-workspace,.doc-studio-grid[data-panel="blocks"]>.doc-properties,.doc-studio-grid[data-panel="properties"]>.doc-workspace,.doc-studio-grid[data-panel="properties"]>.doc-palette{display:none}.doc-mobile-tabs{display:flex;gap:8px;margin-bottom:12px}.doc-mobile-tabs .button{flex:1;justify-content:center}.doc-settings{gap:10px;padding:4px 0 14px}.doc-studio-header{align-items:flex-start}.doc-studio-header h2{font-size:20px}.doc-history{flex-shrink:0}.doc-studio-footer{align-items:stretch;flex-direction:column;gap:10px}.doc-studio-footer>div{display:grid;grid-template-columns:1fr 1fr}.doc-studio-footer .button{justify-content:center}.doc-palette-buttons{grid-template-columns:1fr 1fr}.doc-starters{grid-template-columns:1fr}.doc-canvas .print-preview{padding:14px}.doc-library-intro{align-items:start;gap:10px;flex-direction:column}.doc-studio-grid .doc-properties{padding:16px}.doc-studio-header .modal-subtitle{font-size:11px;line-height:1.6}}
/* Keep save and export visible while each editing pane scrolls independently. */
.dialog:has(.doc-studio){width:min(1440px,96vw);max-width:96vw}.dialog:has(.doc-studio) #dialog-content{height:calc(100dvh - 70px);max-height:calc(100dvh - 70px);box-sizing:border-box;padding:22px}.doc-studio{display:flex;flex-direction:column;height:100%;min-height:0}.doc-studio-grid{flex:1;height:auto!important;min-height:160px!important}.doc-studio-header,.doc-settings,.doc-mobile-tabs,.doc-studio-footer{flex-shrink:0}.doc-studio-header .modal-head{margin-bottom:4px}.doc-settings{padding:8px 0 12px}.doc-studio-footer{padding-top:10px;margin-top:10px}.doc-custom-dimensions>div{min-width:0}.doc-settings .field-label{margin-top:0}.doc-settings .field-shell{margin-bottom:0}.doc-studio-header .modal-subtitle{margin-bottom:4px}.doc-outline button{min-height:30px}
@media(max-width:760px){.dialog:has(.doc-studio) #dialog-content{padding:14px;height:calc(100dvh - 36px);max-height:calc(100dvh - 36px)}.doc-studio-header .modal-subtitle{display:none}.doc-studio-header h2{font-size:18px}.doc-settings{grid-template-columns:1fr 1fr}.doc-studio-footer>div{grid-template-columns:repeat(4,1fr)}.doc-studio-footer .button{padding:8px 6px;font-size:11px;min-width:0}.doc-studio-footer .button:last-child{grid-column:3/5}.doc-studio-footer .button:first-child{grid-column:1/3}.doc-studio-footer>div .button:nth-child(2),.doc-studio-footer>div .button:nth-child(3){grid-row:2}.doc-studio-footer>div .button:nth-child(4){grid-row:2}.doc-history .icon-button{width:30px;height:30px}.doc-settings .button{font-size:11px}.doc-studio-grid{min-height:180px!important}}

.doc-library-intro h1{margin:0;font-size:30px}.doc-library-intro>.button{flex-shrink:0}.doc-library-grid .doc-card-format{margin:12px 0 22px}.doc-card-actions{display:flex;flex-wrap:wrap;gap:12px}.doc-library-grid .document-card{padding-bottom:24px}.doc-card-actions .button{margin:0!important}@media(max-width:600px){.doc-library-intro>.button{width:100%;justify-content:center}.doc-card-actions{gap:12px}.doc-library-grid .doc-card-format{margin-bottom:22px}}

.catalog-type-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}.catalog-type-tabs .status-filter{display:flex;align-items:center;gap:8px;min-height:42px}.catalog-create-type{margin-bottom:18px}.catalog-create-type .button{width:100%;justify-content:space-between}.catalog-type-tabs .counter{margin:0;min-width:22px}@media(max-width:600px){.catalog-type-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}.catalog-type-tabs .status-filter{justify-content:space-between;padding:10px;font-size:12px}}
.catalog-type-tabs .status-filter.active .counter{color:#fff;background:rgba(0,24,91,.28);opacity:1;font-weight:700;font-variant-numeric:tabular-nums}
.catalog-type-tabs .counter{color:inherit;opacity:1;font-weight:700;font-variant-numeric:tabular-nums}

.purchase-review-table{min-width:680px}.purchase-review-table td{vertical-align:middle}.purchase-review-table .field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.purchase-review-table input{min-width:90px;width:110px;margin:0}.receipt-photo-list{display:flex;gap:12px;overflow-x:auto;padding:16px 0}.receipt-photo-list figure{flex:0 0 144px;position:relative;margin:0;border:1px solid var(--line,#bcd6ec);border-radius:16px;overflow:hidden}.receipt-photo-list img{display:block;width:144px;height:144px;object-fit:contain}.receipt-photo-list figure button{position:absolute;right:6px;top:6px}.purchase-context strong{display:block;overflow-wrap:anywhere}
.purchase-review-context{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-review-context .button{max-width:100%;width:100%}.purchase-review-footer>strong{margin-right:auto}.purchase-review-footer>.button{min-width:0}@media(max-width:600px){.purchase-review-context{grid-template-columns:1fr}.purchase-review-footer{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.purchase-review-footer>strong{grid-column:1/-1;margin:0}.purchase-review-footer>.button{width:100%;min-width:0;white-space:normal;height:auto;min-height:48px;padding:10px}.purchase-review-footer>.button span{white-space:normal;overflow-wrap:anywhere}.purchase-review-footer>.button svg{flex:0 0 18px}}
@media(max-width:600px){.purchase-review-footer>.button{height:100%;align-self:stretch}}
.supply-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}.supply-toolbar>.button:last-child{margin-left:auto}.supply-invoice{margin-top:24px;margin-bottom:24px}.supply-invoice h3{margin-bottom:10px}

.product-gallery{margin:20px 0}.product-gallery-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 12px;max-width:100%}.product-photo-card{flex:0 0 min(260px,82vw);min-width:0;border:1px solid rgba(111,156,201,.32);border-radius:18px;background:rgba(255,255,255,.16);padding:12px;scroll-snap-align:start}.product-photo-frame{height:180px;display:grid;place-items:center;background:rgba(255,255,255,.28);border-radius:10px;overflow:hidden}.product-photo-frame img{width:100%;height:100%;object-fit:contain}.product-photo-card input{width:100%;min-width:0;margin-bottom:0}.product-photo-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px;flex-wrap:wrap}.product-photo-actions [data-step="-1"] svg{transform:rotate(180deg)}.product-advanced,.product-extra-section{border:1px solid rgba(111,156,201,.25);border-radius:16px;margin:14px 0;overflow:hidden}.product-advanced>summary,.product-extra-section>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:16px;font-weight:600}.product-advanced>summary::-webkit-details-marker,.product-extra-section>summary::-webkit-details-marker{display:none}.product-advanced[open]>summary svg,.product-extra-section[open]>summary svg{transform:rotate(180deg)}.product-advanced>.product-extra-section{margin:12px}.product-extra-content{padding:4px 16px 16px}.product-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.product-extra-grid>*{min-width:0}.product-extra-grid input{width:100%;min-width:0}.product-extra-switch{display:flex;align-items:center;gap:10px;min-height:42px;margin:0;font-size:13px}.product-extra-switch input{width:18px;height:18px;min-width:18px;margin:0;accent-color:#005bff}.product-extra-multi{margin:16px 0;display:flex;flex-wrap:wrap;gap:8px 20px}.product-extra-multi h4{flex:0 0 100%;margin:0 0 4px}.product-recipe-row{display:grid;grid-template-columns:minmax(120px,1fr) 100px 100px 44px;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid rgba(111,156,201,.25)}.product-recipe-row>strong{align-self:center;overflow-wrap:anywhere}.product-recipe-row input{margin-bottom:0;width:100%;min-width:0;height:44px}.product-recipe-row>.icon-btn,.product-spec-row>.icon-btn{height:44px;align-self:end;margin-bottom:0}.recipe-extra-method{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.product-recipe-types{display:flex;gap:12px;flex-wrap:wrap;font-size:12px}.product-recipe-types label{display:flex;align-items:center;gap:6px}.product-set-draft{display:flex;align-items:center;gap:12px;margin:12px 0}.product-set-draft strong{flex:1;min-width:0;overflow-wrap:anywhere}.product-spec-row{display:grid;grid-template-columns:1fr 1fr 44px;gap:12px;align-items:end}.product-spec-row input{margin-bottom:0;min-width:0;width:100%;height:44px}.extra-search-results{max-height:360px;overflow:auto}.extra-search-row{width:100%;display:flex;align-items:center;gap:12px;padding:12px;background:transparent;border:0;border-bottom:1px solid rgba(111,156,201,.25);text-align:left;color:inherit}.extra-search-row img{width:46px;height:46px;object-fit:contain;border-radius:8px}.extra-search-row span{flex:1;min-width:0}.extra-search-row small{display:block;opacity:.7}.product-location-prices{margin-top:16px}.product-location-prices>.product-extra-grid{grid-template-columns:1fr 1fr 1fr;align-items:center}.product-extra-content h4{font-size:13px}@media(max-width:620px){.product-extra-grid{grid-template-columns:1fr}.product-recipe-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}.product-recipe-row>strong{grid-column:1/-1}.product-advanced>.product-extra-section{margin:8px}.product-extra-content{padding:4px 12px 12px}.product-spec-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}.product-location-prices>.product-extra-grid{grid-template-columns:1fr 1fr}.product-location-prices strong{grid-column:1/-1}}
.product-editor-field{min-width:0}.product-editor-field .field-shell{margin-bottom:0}.product-recipe-row .product-editor-field input,.product-spec-row .product-editor-field input{height:44px}.product-recipe-row>.icon-btn,.product-spec-row>.icon-btn{margin-bottom:0}.product-extra-content .field-label{margin-top:0}.product-extra-content>.button{margin-top:14px}.product-photo-upload .product-photo-actions{margin-top:4px}
.product-recipe-types label{white-space:nowrap}.product-recipe-types input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0;flex:0 0 18px;accent-color:#005bff}.button:is([data-act="extra-recipe-method"],[data-act="catalog-create-type"],[data-act="catalog-create-unit"],[data-act="review-purchase-supplier"]) svg{order:2;margin-left:auto}.button:is([data-act="extra-recipe-method"],[data-act="catalog-create-type"],[data-act="catalog-create-unit"],[data-act="review-purchase-supplier"]) span{order:1}
.product-recipe-row .field-shell,.product-spec-row .field-shell{height:44px;min-height:44px;box-sizing:border-box;margin-bottom:0}.product-recipe-row .field-shell input,.product-spec-row .field-shell input{height:100%;min-height:0}.product-recipe-row>.icon-btn,.product-spec-row>.icon-btn{height:44px;min-height:44px;box-sizing:border-box}

.product-details-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-right:48px;margin-bottom:12px}.product-details-heading h2{margin:0;min-width:0;overflow-wrap:anywhere}.product-details-heading>.button{flex:none}@media(max-width:560px){.product-details-heading{flex-wrap:wrap;gap:12px}.product-details-heading>.button{min-height:40px}}
/* This imported image contains white side padding. Clip only that padding,
   preserving the original product photograph and every other catalog image. */
img[src$="/7493/01-5b599c8e36b2.webp"]{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;max-width:100%;max-height:100%;aspect-ratio:1;justify-self:center;clip-path:inset(0 16.714286% 0 16.571429%)}

.product-photo-button>img[src$="/7493/01-5b599c8e36b2.webp"],.product-photo-frame>img[src$="/7493/01-5b599c8e36b2.webp"]{height:100%!important;width:auto!important;max-width:none;max-height:100%}

.product-photo-button:has(>img[src$="/7493/01-5b599c8e36b2.webp"]),.product-photo-frame:has(>img[src$="/7493/01-5b599c8e36b2.webp"]){display:flex;align-items:center;justify-content:center}

.product-recipe-list{display:grid;gap:12px;margin-top:12px}.product-recipe-row{padding:14px;border:1px solid rgba(84,132,194,.36);border-radius:16px;background:rgba(255,255,255,.17);box-shadow:0 5px 18px rgba(51,100,165,.07)}.recipe-material-name{display:flex;align-items:center;gap:12px;min-width:0;align-self:center}.recipe-material-name strong{min-width:0;overflow-wrap:anywhere}.recipe-material-thumb{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;overflow:hidden;border:1px solid rgba(84,132,194,.28);border-radius:11px;background:rgba(255,255,255,.34)}.recipe-material-thumb img{display:block;width:100%;height:100%;object-fit:contain}.recipe-material-thumb svg{width:23px;height:23px;opacity:.55}@media(max-width:620px){.recipe-material-name{grid-column:1/-1}.product-recipe-row{padding:12px}}

.orders-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.orders-calendar .button{min-width:0;padding:10px 0;justify-content:center}.document-qr svg{width:90px;height:90px}.print-preview .document-element table{width:100%;border-collapse:collapse}.print-preview .document-element td,.print-preview .document-element th{padding:5px;border-bottom:1px solid #ddd}.header-location .button{max-width:250px;overflow:hidden}.header-location .button span{overflow:hidden;text-overflow:ellipsis}.qty button{display:grid;place-items:center;line-height:1}.login-panel{width:100%}[hidden]{display:none!important}@media(max-width:760px){.header-location{display:flex!important;max-width:42vw}.header-location .button{font-size:11px;padding:8px}.header-clock{display:none}}

.cash-dashboard{display:grid;gap:18px}.cash-status-bar,.cash-section-heading,.cash-payment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cash-main-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px}.cash-section{padding:20px;border:1px solid var(--border,rgba(88,132,200,.2));border-radius:20px;min-width:0}.cash-section h3{margin:0 0 10px}.cash-section h4{margin:18px 0 10px;font-size:12px}.cash-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.cash-metric{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid rgba(94,140,210,.22);border-radius:16px;background:rgba(140,187,255,.06);min-width:0}.cash-metric>span,.cash-metric>small{font-size:12px;line-height:1.5;opacity:.75}.cash-metric>strong{font-size:19px;overflow-wrap:anywhere}.cash-metric .field-shell{min-width:0}.cash-metric input{width:100%;min-width:0}.cash-actual{grid-column:span 2}.cash-denominations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cash-denomination{display:flex;align-items:center;gap:4px;border-radius:13px;padding:8px;border:1px solid rgba(94,140,210,.3);min-width:0}.cash-denomination:focus-within{outline:2px solid #1764ff;outline-offset:2px}.cash-token{display:grid;place-items:center;background:#f5d461;color:#17273f;font-weight:700;min-width:30px;height:30px;font-size:11px}.cash-token.coin{border-radius:50%}.cash-token.bill{border-radius:4px;background:#8bd8b1}.cash-denomination input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:inherit;font:inherit;text-align:center;padding:5px 0}.cash-counter-total{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid rgba(94,140,210,.22);padding-top:16px;margin-top:16px}.cash-counter-total strong{font-size:24px}.cash-custom-denomination{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}.cash-custom-denomination .field-label{width:100%}.cash-custom-denomination .field-shell{flex:1;min-width:85px}.cash-custom-denomination input{width:100%;min-width:0}.cash-bottom-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}.cash-metrics.time{grid-template-columns:1fr}.cash-payment-row{padding:10px 0;border-top:1px solid rgba(94,140,210,.2)}#cash-difference[data-discrepancy="true"]{color:#cb6429}.shift-button[data-cash-open="false"] .shift-dot{background:#e59736}.cash-dashboard .modal-footer{margin:0}.cash-dashboard textarea{min-height:70px}
@media(max-width:1000px){.cash-main-grid{grid-template-columns:minmax(0,1fr) 300px}.cash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-bottom-grid{grid-template-columns:1fr}.cash-metrics.time{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.cash-main-grid{grid-template-columns:1fr}.cash-section{padding:14px}.cash-metrics.time{grid-template-columns:1fr}.cash-metric{padding:12px}.cash-metric>strong{font-size:17px}.cash-dashboard .modal-footer .button{flex:1;white-space:normal}.cash-status-bar{font-size:12px}.cash-denomination input{font-size:16px;min-height:28px}.cash-dashboard{gap:12px}.cash-counter{order:2}}
.cash-token{border:0;cursor:pointer;font-family:inherit;flex-shrink:0;transition:transform .12s,filter .12s}.cash-token:hover{filter:brightness(1.12)}.cash-token:active{transform:scale(.92)}.cash-token:focus-visible{outline:2px solid #1764ff;outline-offset:3px}.cash-dashboard [data-act="cash-submit"]{background:linear-gradient(135deg,rgba(48,133,255,.96),rgba(13,67,236,.96))!important;color:#fff!important;border:1px solid rgba(166,204,255,.6)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 6px 20px rgba(21,91,244,.25)!important;backdrop-filter:blur(18px)}.cash-dashboard [data-act="cash-submit"]:disabled{opacity:.65!important}

.price-history-summary{display:flex;gap:24px;flex-wrap:wrap;margin:8px 0 18px}.price-history-summary>div{display:grid;gap:7px}.price-history-summary span{font-size:12px;opacity:.7}.price-history-summary strong{font-size:24px}.price-history-scroll{max-height:55vh;margin-top:16px}.price-history-table{min-width:560px}.price-history-table thead{position:sticky;top:0;z-index:1;background:var(--panel-bg,rgba(180,210,245,.95))}.price-history-table tr[data-act]{cursor:pointer;transition:background .15s}.price-history-table tr[data-act]:hover,.price-history-table tr[data-act]:focus-visible{background:rgba(51,126,255,.18);outline:2px solid #1764ff;outline-offset:-2px}.price-history-table .current-price{background:rgba(51,126,255,.08)}.price-history-table td:last-child{color:#1764ff;white-space:nowrap}.price-addons{font-size:10px;opacity:.75;display:block;margin-top:5px;max-width:130px}.price-control:has(.price-addons){align-self:center}

.price-history-table thead th{color:#203b61}.price-history-table td:last-child{font-size:15px}body[data-glass-mode="dark"] .price-history-table thead{background:#252d40}body[data-glass-mode="dark"] .price-history-table thead th{color:#d6e6ff}body[data-glass-mode="dark"] .price-history-table td:last-child{color:#93bdff}

/* Keep highlighted history rows inset from both table edges. */
.price-history-table th:first-child,.price-history-table td:first-child{padding-left:14px}
.price-history-table th:last-child,.price-history-table td:last-child{padding-right:14px}
.price-history-scroll{margin-bottom:14px;border-radius:12px;border:1px solid var(--line)}

.overview-dashboard{display:grid;gap:22px;min-width:0;max-width:1600px;margin:0 auto}.overview-dashboard .page-heading{margin:0;gap:20px}.overview-dashboard .page-heading h1{margin:6px 0}.overview-dashboard .heading-actions{gap:10px}.ov-period{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;padding:14px;border-radius:20px}.ov-presets{display:flex;gap:6px;flex-wrap:wrap}.ov-context{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:-10px}.ov-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.ov-card{padding:22px;border-radius:22px;display:flex;flex-direction:column;gap:10px;min-width:0}.ov-card-label{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted)}.ov-card-label svg{width:18px;height:18px}.ov-card>strong{font-size:30px;letter-spacing:-.8px;line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.ov-card>span{font-size:12px;color:var(--muted)}.ov-card>small{font-size:11px;padding-top:12px;border-top:1px solid var(--line,rgba(90,140,210,.2));color:var(--muted)}.ov-main-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:22px}.ov-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.overview-dashboard .panel{margin:0;padding:22px;min-width:0}.overview-dashboard .section-top{gap:12px;flex-wrap:wrap;margin-bottom:22px}.overview-dashboard .section-top h2{font-size:16px;margin:0}.ov-subtitle{font-size:11px;color:var(--muted)}.ov-chart-switch{display:flex;gap:6px}.ov-chart-switch .button{padding:8px 12px;font-size:11px}.ov-chart-summary{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.ov-chart-summary strong{font-size:25px}.ov-chart-summary span{color:var(--muted);font-size:12px}.ov-chart{height:205px;display:flex;gap:5px;margin-top:20px;background:repeating-linear-gradient(to top,transparent 0,transparent 47px,rgba(110,155,211,.14) 48px,transparent 49px);padding-top:6px}.ov-chart-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}.ov-bar{height:170px;display:flex;align-items:flex-end;justify-content:center;width:100%;border:0;background:none;cursor:pointer;padding:0 3px}.ov-bar span{width:100%;max-width:74px;height:var(--bar);min-height:2px;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,#519bff,#1457ed);box-shadow:inset 0 1px 0 #a9d0ff;transition:filter .15s}.ov-bar:hover span,.ov-bar:focus-visible span{filter:brightness(1.25)}.ov-bar:focus-visible{outline:2px solid #2467ee;outline-offset:2px;border-radius:8px}.ov-chart-column>small{font-size:10px;color:var(--muted);white-space:nowrap;margin-top:10px}.ov-chart-empty,.ov-empty{font-size:13px;color:var(--muted);line-height:1.6}.ov-breakdown{margin-bottom:20px}.ov-breakdown>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:9px}.ov-breakdown i{display:inline-block;width:8px;height:8px;background:var(--dot);border-radius:50%;margin-right:8px}.ov-breakdown strong{display:flex;gap:12px}.ov-breakdown small{font-weight:400;color:var(--muted);min-width:30px;text-align:right}.ov-track{height:5px;background:rgba(105,151,215,.18);border-radius:10px;overflow:hidden}.ov-track span{display:block;height:100%;background:#3d83ef;border-radius:10px}.ov-track.large{height:8px;margin:18px 0}.ov-payment-total{display:flex;justify-content:space-between;align-items:baseline;gap:15px;flex-wrap:wrap}.ov-payment-total span{font-size:13px}.ov-payment-total strong{font-size:27px}.ov-payment-lines{display:grid;gap:14px}.ov-payment-lines>div{display:flex;justify-content:space-between;gap:12px;font-size:13px}.ov-footnote{font-size:11px;line-height:1.65;color:var(--muted);margin:18px 0 0}.ov-product{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid rgba(104,151,212,.18);min-width:0}.ov-product:first-child{border-top:0;padding-top:0}.ov-rank{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;background:rgba(88,148,249,.12);border-radius:9px;font-size:12px;color:var(--muted)}.ov-product>div{flex:1;min-width:0}.ov-product strong{font-size:13px;overflow-wrap:anywhere}.ov-product small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.ov-product>b{font-size:13px;white-space:nowrap}.ov-orders{overflow:auto}.ov-orders table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.ov-orders th{font-weight:500;font-size:11px;color:var(--muted);padding:0 12px 12px}.ov-orders td{padding:14px 12px;border-top:1px solid rgba(104,151,212,.2)}.ov-orders td small{display:block;color:var(--muted);font-size:11px;margin-top:6px;white-space:nowrap}.ov-orders th:nth-child(4),.ov-orders th:nth-child(5),.ov-orders td:nth-child(4),.ov-orders td:nth-child(5){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.ov-status{font-size:11px;padding:6px 9px;border-radius:8px;background:rgba(88,148,249,.12);display:inline-block}.ov-date-fields{display:flex;gap:10px;margin:20px 0}.ov-date-fields .button{flex:1;white-space:normal}.ov-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0}.ov-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.ov-calendar>span{font-size:11px;padding:6px 0;color:var(--muted)}.ov-calendar .button{min-width:0;min-height:40px;padding:8px 0;justify-content:center}.ov-calendar .ov-in-range{background:rgba(50,119,255,.18)}
@media(max-width:1100px){.ov-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ov-main-grid{grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr)}}
@media(max-width:760px){.overview-dashboard{gap:16px}.ov-main-grid,.ov-detail-grid{grid-template-columns:1fr;gap:16px}.ov-card{padding:16px;gap:9px}.ov-kpis{gap:12px}.ov-card>strong{font-size:25px}.ov-card-label{font-size:12px}.overview-dashboard .panel{padding:18px}.ov-period{padding:12px}.ov-presets{width:100%}.ov-presets .button{font-size:11px;padding:9px 11px}.ov-period>.button{width:100%;justify-content:center}.overview-dashboard .page-heading{align-items:flex-start}.overview-dashboard .heading-actions{flex-wrap:wrap}.overview-dashboard .heading-actions .button{font-size:11px;padding:9px 12px}.ov-context{font-size:10px;margin-top:0}.ov-chart{gap:2px}.ov-bar{padding:0 1px}.ov-chart-column>small{font-size:9px}.ov-orders table{min-width:620px}.ov-card>small{font-size:10px}.ov-card>span{font-size:11px}.overview-dashboard .page-heading p{font-size:12px}}

.orders-viewbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;min-width:0}.orders-viewbar .status-filters{flex:1;min-width:0;margin:0;flex-wrap:wrap;overflow:visible}.orders-viewbar .tabs{flex:0 0 auto;margin:0;max-width:100%}.orders-viewbar.standalone{justify-content:flex-end}@media(max-width:1100px){.orders-viewbar{flex-wrap:wrap}.orders-viewbar .status-filters{flex-basis:100%}.orders-viewbar .tabs{margin-left:auto}}@media(max-width:600px){.orders-viewbar{gap:12px;margin-bottom:14px}.orders-viewbar .status-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.orders-viewbar .tabs{width:100%;justify-content:space-between}.orders-viewbar .tab{flex:1;justify-content:center}}

.tasks-workspace .page-heading{align-items:center;gap:18px}.tasks-workspace .heading-actions{flex:1;justify-content:flex-end;flex-wrap:wrap;gap:12px}.tasks-top-filters{display:flex;flex-wrap:wrap;gap:6px}.tasks-top-filters .button{padding:9px 11px;font-size:11px}.tasks-panel{padding:18px}.tasks-list-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}.tasks-list-head .search-shell{flex:1}.tasks-list-head>span{font-size:12px;color:var(--muted);white-space:nowrap}.task-list-row{display:grid;grid-template-columns:28px minmax(160px,1fr) minmax(140px,.55fr) 145px 36px;align-items:center;gap:14px;padding:18px 0;border-top:1px solid var(--line)}.task-complete{display:grid;place-items:center;width:24px;height:24px;border:1.5px solid #628bb9;border-radius:7px;flex-shrink:0;color:white;background:transparent}.task-complete.checked{background:#1264ed;border-color:#1264ed}.task-complete svg{width:17px;height:17px}.task-open{text-align:left;display:flex;flex-direction:column;gap:7px;min-width:0}.task-open strong{font-size:14px;overflow-wrap:anywhere}.task-open small,.task-assignees small{font-size:11px;color:var(--muted)}.task-assignees{font-size:12px;overflow-wrap:anywhere}.task-assignees small{display:block;margin-top:7px}.task-is-done .task-open strong{text-decoration:line-through;opacity:.7}.task-list-row>.button{font-size:11px;justify-content:space-between}.task-editor-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px}.task-editor-grid section{min-width:0}.task-editor-grid .field-label{margin-top:15px}.task-editor-controls{display:flex;gap:12px;flex-wrap:wrap}.task-editor-controls>div{flex:1;min-width:120px}.task-editor-controls .button{width:100%;justify-content:space-between}.task-editor-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.task-people{display:flex;gap:8px;flex-wrap:wrap}.task-editor-side{padding:18px;border-radius:18px;border:1px solid var(--line)}.task-editor-side h3{margin:0 0 14px;font-size:14px}.task-editor-side h3:not(:first-child){margin-top:24px}.task-step{display:flex;align-items:center;gap:8px;margin-bottom:9px}.task-step>input{min-width:0;width:100%;background:rgba(120,160,210,.1);border:1px solid var(--line);color:inherit;border-radius:9px;padding:9px;font:inherit}.task-extra{font-size:12px;margin-top:20px;line-height:1.6}.task-extra summary{cursor:pointer;font-weight:600}.cash-report{display:grid;gap:20px}.cash-report-dates{display:flex;gap:20px;flex-wrap:wrap;font-size:12px}.cash-report-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.cash-report-table th{font-size:11px;color:var(--muted)}.cash-report-table td,.cash-report-table th{padding:12px 8px;border-bottom:1px solid var(--line);vertical-align:top}.cash-journal-head,.cash-journal-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(160px,1fr) 120px 120px 24px;gap:15px;align-items:center;width:100%;text-align:left}.cash-journal-head{font-size:11px;color:var(--muted);padding:0 12px 12px}.cash-journal-row{padding:18px 12px;border-top:1px solid var(--line);border-radius:10px;font-size:13px}.cash-journal-row:hover{background:rgba(99,154,240,.12)}.cash-journal-row small{display:block;font-size:11px;color:var(--muted);margin-top:7px}.cash-journal-row svg{width:18px;height:18px}
@media(max-width:800px){.task-editor-grid{grid-template-columns:1fr}.task-list-row{grid-template-columns:26px minmax(0,1fr) 120px;gap:10px}.task-assignees{grid-column:2}.task-list-row>.button{grid-column:3;grid-row:1/3}.task-list-row>.icon-btn{display:none}.tasks-workspace .page-heading{align-items:flex-start;flex-wrap:wrap}.tasks-workspace .heading-actions{justify-content:flex-start}.cash-journal-head{display:none}.cash-journal-row{grid-template-columns:1fr 1fr 22px}.cash-journal-row>strong{font-size:12px}.cash-journal-row svg{grid-column:3;grid-row:1/3}.task-editor-dates{grid-template-columns:1fr}.cash-report-table{min-width:600px}.tasks-list-head .search-shell{min-width:0}}

.task-colors{display:flex;gap:12px}.task-colors button{width:28px;height:28px;border-radius:50%;background:var(--task-color);border:3px solid transparent}.task-colors button[aria-pressed="true"]{outline:2px solid var(--text);outline-offset:3px}
.task-open{align-items:flex-start}.task-editor-dates .field-shell{display:flex;align-items:center;gap:8px}.task-editor-dates .field-shell>input{min-width:0;flex:1}.task-editor-dates .field-shell>.icon-btn{flex:0 0 36px}
@media(max-width:800px){.tasks-workspace .page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;min-height:0}.tasks-workspace .heading-actions{display:contents}.tasks-workspace .heading-actions>.button{grid-column:2;grid-row:1}.tasks-workspace .tasks-top-filters{grid-column:1/-1;grid-row:2;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:5px 2px 10px}.tasks-top-filters>.button{flex-shrink:0;white-space:nowrap}}

.offer-promo-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-bottom:20px}.offer-promo-field{min-width:0}.offer-promo-row .field-shell{margin-bottom:0}.offer-promo-row>.button{margin:0;min-height:44px;white-space:nowrap}.offer-promo-field input{min-width:0;width:100%}@media(max-width:480px){.offer-promo-row{gap:8px}.offer-promo-row>.button{padding-inline:12px;font-size:12px}}

.discount-manual,.discount-rules{padding:18px;border:1px solid var(--line);border-radius:18px;margin:18px 0}.discount-manual h3,.discount-rules h3{margin:0 0 12px;font-size:16px}.discount-amount-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.discount-amount-row .field-shell{margin-bottom:0}.discount-current{display:flex;flex-wrap:wrap;gap:18px;margin-top:16px;font-size:13px}.discount-rule{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}.discount-rule p,.discount-empty{font-size:12px;line-height:1.6;color:var(--muted);margin:7px 0 0}.discount-rule .task-complete{margin-top:2px}.discount-sources{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;font-size:13px;margin:18px 0}.discount-sources dt{color:var(--muted)}.discount-sources dd{margin:0;overflow-wrap:anywhere}.discount-sources small{display:block;color:var(--muted);margin-top:5px;line-height:1.5}.discount-manual>.subline,.discount-rules>.subline{display:block;line-height:1.6;margin:12px 0 0}@media(max-width:480px){.discount-manual,.discount-rules{padding:14px}.discount-sources{grid-template-columns:1fr;gap:7px}.discount-sources dd{margin-bottom:10px}}

.document-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;max-height:210px;overflow:auto}.document-paper-scroll{overflow:auto;max-height:60vh}.document-paper-scroll .print-preview{width:var(--document-width);min-width:200px;max-width:100%;box-sizing:border-box}.document-paper-scroll .print-preview.label{min-height:40mm;padding:2mm}.document-paper-scroll .label .document-qr svg{width:18mm;height:18mm}@media(max-width:600px){.document-options{grid-template-columns:1fr 1fr;max-height:150px}.modal-footer{flex-wrap:wrap}.document-paper-scroll .print-preview{padding:12px}.document-paper-scroll .document-element table{font-size:9px}}
.field-shell.date-field{display:flex;align-items:center;min-width:0;padding:0;margin-bottom:14px}
.date-field-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.date-field-button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.date-field-button>svg{display:block;flex:0 0 18px;width:18px;height:18px}
.date-field-button:focus-visible{outline:2px solid var(--primary,#155bff);outline-offset:2px}
.print-preview{box-sizing:border-box;min-width:0!important;white-space:normal}
.print-preview .document-element{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.3}
.print-preview .document-qr svg{display:inline-block;vertical-align:middle;max-width:100%}
.print-preview .document-element table{table-layout:fixed;width:100%}
.print-preview .document-element th,.print-preview .document-element td{min-width:0;overflow-wrap:anywhere;white-space:normal;padding:4px 3px;vertical-align:top}
.print-preview.receipt .document-element th,.print-preview.receipt .document-element td{padding:3px 2px}
.print-preview.label{min-height:0!important}
@media print{.print-preview .document-element{break-inside:avoid}.print-preview .document-element:has(table){break-inside:auto}.print-preview tr{break-inside:avoid}.print-preview thead{display:table-header-group}}

/* Responsive purchasing: label rows align, all controls fit their grid cell. */
.purchase-grid .selected-scroll{overflow-x:hidden;min-width:0}
.purchase-line{grid-template-columns:minmax(0,1fr) minmax(74px,96px) minmax(82px,108px) minmax(64px,90px) 40px;gap:12px;align-items:end}
.purchase-line>*{min-width:0;box-sizing:border-box}
.purchase-context .button{min-width:0;overflow:hidden}.purchase-context .button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.purchase-context .button .icon{flex-shrink:0}
.purchase-line>strong{align-self:end;overflow-wrap:anywhere}
.purchase-line>strong[data-purchase-total]{display:flex;align-items:center;justify-content:flex-end;min-height:44px}
.purchase-line>.icon-btn{width:40px;min-width:0;height:44px;margin:0}
.purchase-line .field-shell{width:100%;margin:0;height:44px}
.purchase-line .field-shell input{box-sizing:border-box;width:100%;min-width:0;height:100%;padding:8px}
.purchase-line [data-purchase-total]{text-align:right;font-variant-numeric:tabular-nums}
.purchase-grid .picker-selected{container-type:inline-size}
.picker-catalog .search-shell{display:flex;align-items:center;gap:8px;padding-right:6px}
.picker-catalog .search-shell input{flex:1 1 0;width:0;min-width:0;padding-right:0}
.picker-catalog .search-shell>input,.picker-catalog .search-shell>svg{position:relative;z-index:1}
.picker-catalog .search-shell>.icon-btn{position:static;flex:0 0 36px;width:36px;min-width:36px;height:36px;margin-left:auto;margin-right:0}
.picker-catalog .catalog-categories{display:flex;gap:8px;overflow-x:auto;min-width:0;flex-shrink:0}.picker-catalog .catalog-categories>.category{flex:0 0 auto;white-space:nowrap}
.purchase-line input[type="number"]{appearance:textfield;-moz-appearance:textfield}.purchase-line input::-webkit-inner-spin-button,.purchase-line input::-webkit-outer-spin-button{appearance:none;margin:0}
.purchase-grid h3{color:var(--ink,#17304e)}
@container(max-width:570px){.purchase-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(64px,auto) 40px}.purchase-line>.purchase-line-product,.purchase-line>strong:first-child{grid-column:1/-1}.purchase-line>strong[data-purchase-total]{grid-column:3;grid-row:2}.purchase-line>.icon-btn{grid-column:4;grid-row:2}}
@media(max-width:760px){.purchase-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(54px,auto) 36px;gap:8px}.purchase-line>.purchase-line-product,.purchase-line>strong:first-child{grid-column:1/-1}.purchase-line>strong[data-purchase-total]{grid-column:3;grid-row:2;text-align:right}.purchase-line>.icon-btn{grid-column:4;grid-row:2;width:36px}.purchase-line .field-label{min-height:28px;display:flex;align-items:end}}
.order-task-sections{display:grid;gap:20px}
[data-items-toggle],.add-items-wide{margin-top:16px}
.task-list-row{position:relative;border-left:4px solid var(--task-color,#356df3);padding-left:14px}
.task-colors button{display:grid;place-items:center;color:white}
.task-colors button[aria-pressed="true"]{outline:2px solid var(--text,#18345a);outline-offset:3px;box-shadow:inset 0 0 0 2px white}
.task-notification-control{display:flex;align-items:center;gap:10px;margin:16px 0;background:transparent;border:0;color:inherit;text-align:left;cursor:pointer}
.task-notification-control .task-complete{pointer-events:none}
.task-view-details{display:grid;gap:16px}.task-view-details p{white-space:pre-wrap;overflow-wrap:anywhere}
.payment-method-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:8px 0 20px}
.payment-method-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:105px;padding:16px;border:1px solid var(--line);border-radius:16px;color:inherit;cursor:pointer;text-align:center}
.payment-method-card img{width:40px;height:40px;object-fit:contain}.payment-method-card[aria-pressed="true"]{outline:2px solid var(--accent,#075aff);outline-offset:2px}.payment-method-card small{font-size:10px}.payment-method-card .selected-mark{position:absolute;top:6px;right:6px}
.status-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:16px 0}
.status-choice{display:flex;align-items:center;gap:10px;min-height:54px;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface,rgba(255,255,255,.12));color:inherit;text-align:left;cursor:pointer}
.status-choice[aria-pressed="true"]{outline:2px solid var(--text,#1b3459);outline-offset:2px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.85)}
.status-choice i,.native-status i{display:block;flex:0 0 5px;width:5px;height:22px;border-radius:3px;background:var(--status-color)}
.status-choice .selected-mark{margin-left:auto}.native-status{display:inline-flex;align-items:center;gap:7px;color:inherit;background:color-mix(in srgb,var(--status-color) 18%,transparent);border:1px solid color-mix(in srgb,var(--status-color) 48%,transparent);border-radius:9px;padding:5px 9px;font:inherit;font-size:11px;cursor:pointer}.native-status i{height:14px;width:4px;flex-basis:4px}
.order-saving{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin:8px 0}.order-saving::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--accent,#075aff)}

.age-policy-card{min-width:0}.age-policy-card .muted,.order-age-check .subline{line-height:1.55}.age-policy-switch{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:14px 0;background:transparent;border:0;color:inherit;font:inherit;cursor:pointer}.age-switch-track{display:block;flex:0 0 48px;height:28px;border-radius:20px;background:var(--control-bg,rgba(88,130,187,.15));box-shadow:inset 1px 1px 5px rgba(30,68,125,.14),inset -1px -1px 1px rgba(255,255,255,.5);padding:3px;box-sizing:border-box}.age-switch-track i{display:block;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.9);box-shadow:0 2px 5px rgba(27,55,100,.2);transition:transform .18s}.age-policy-switch[aria-checked=true] .age-switch-track{background:#075aff}.age-policy-switch[aria-checked=true] i{transform:translateX(20px)}.age-policy-switch:focus-visible{outline:2px solid #075aff;outline-offset:3px;border-radius:10px}.age-policy-options{display:flex;gap:10px;margin-top:8px}.age-policy-options .button{min-width:92px;justify-content:center;gap:8px}.age-policy-note{margin:14px 0 18px}.order-age-check{margin-top:18px;padding-top:18px;border-top:1px solid rgba(70,130,200,.18);display:grid;gap:12px;min-width:0}.age-check-heading{display:flex;align-items:center;gap:10px}.age-check-heading>div{min-width:0}.age-check-badge{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:14px;border:1px solid rgba(220,146,20,.4);background:rgba(245,188,69,.16);font-weight:750;color:#855207}.age-check-badge.is-confirmed{color:#087c52;border-color:rgba(21,150,97,.4);background:rgba(23,185,111,.13)}.order-age-check .button{width:100%;justify-content:center;white-space:normal}.age-confirm-hero{display:flex;align-items:center;gap:16px;margin:18px 0}.age-confirm-hero .age-check-badge{width:64px;height:64px;font-size:23px}.age-confirm-hero p{margin:0;line-height:1.65}.age-policy-card button:disabled{cursor:not-allowed;opacity:.65}@media(max-width:520px){.age-policy-options .button{flex:1}.age-confirm-hero{align-items:flex-start}.age-confirm-hero .age-check-badge{width:48px;height:48px;font-size:18px}}

/* Orders list: compact heading and independent status/action hit areas. */
#order-list .number-cell{min-width:0}
#order-list .order-created{display:flex;flex-wrap:wrap;gap:2px 5px;margin:3px 0;font-size:10px;line-height:1.35;color:var(--muted)}
#order-list .order-created span{white-space:nowrap}
.layout:has(#order-list){margin-top:8px}
#page-content:has(#order-list){padding-top:0}
#page-content:has(#order-list)>.page-heading{padding:2px 0 12px;align-items:center;gap:12px}
#page-content:has(#order-list)>.page-heading .eyebrow:empty{display:none}
#page-content:has(#order-list)>.page-heading h1{margin:0}
#order-list .state-cell{min-width:0;max-width:100%}
#order-list .native-status{max-width:100%;min-width:0;min-height:36px;gap:6px}
#order-list .native-status span{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
#order-list .native-status svg{flex-shrink:0;width:14px;height:14px}
#order-list .menu-cell{display:flex;justify-content:flex-end;min-width:0}
#order-list .row-menu{width:34px;min-width:34px;max-width:34px}
@media(min-width:1061px){
  #page-content:has(#order-list) .order-head,#order-list .order-row{grid-template-columns:0px 90px minmax(90px,1fr) minmax(70px,.85fr) 80px minmax(94px,.8fr) 136px 34px;column-gap:14px}
  .selection-mode #page-content:has(#order-list) .order-head,.selection-mode #order-list .order-row{grid-template-columns:28px 90px minmax(90px,1fr) minmax(70px,.85fr) 80px minmax(94px,.8fr) 136px 34px}
}
@media(min-width:761px) and (max-width:1060px){
  #page-content:has(#order-list) .order-head,#order-list .order-row{grid-template-columns:0px 65px minmax(70px,1fr) 62px 85px 112px 34px;column-gap:12px}
  .selection-mode #page-content:has(#order-list) .order-head,.selection-mode #order-list .order-row{grid-template-columns:26px 65px minmax(70px,1fr) 62px 85px 112px 34px}
}
@media(max-width:760px){
  #page-content:has(#order-list)>.page-heading{padding:2px 2px 12px}
  #order-list .order-row{grid-template-columns:0px minmax(0,1fr) minmax(90px,120px) 34px;column-gap:10px;grid-template-rows:minmax(44px,auto) 35px 28px}
  .selection-mode #order-list .order-row{grid-template-columns:24px minmax(0,1fr) minmax(90px,120px) 34px}
  #order-list .native-status{padding:5px 7px;font-size:10px}
}

.commercial-order-tools,.commercial-actions,.commercial-product-top,.commercial-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.commercial-order-tools{margin:8px 0 16px}.commercial-order-summary{padding:12px 0;margin:12px 0;border-top:1px solid var(--line,rgba(67,120,180,.18))}.commercial-order-summary>div{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:8px 0}.commercial-order-summary small{display:block;margin-top:6px;color:var(--muted)}.commercial-promo-code,.commercial-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin:16px 0}.commercial-promo-code .field-label,.commercial-search-row .field-label{margin-top:0}.commercial-promo-list,.commercial-external-results{display:grid;gap:12px;margin:16px 0;max-height:38vh;overflow:auto;padding:2px}.commercial-promo-card{border:1px solid var(--line,rgba(67,120,180,.2));background:rgba(130,180,245,.08);padding:14px;border-radius:16px;min-width:0}.commercial-promo-card p{margin:8px 0;font-size:12px;line-height:1.6}.commercial-promo-card small{display:block;margin:8px 0}.commercial-reason{color:var(--danger,#bd3046)}.commercial-check{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px;border:1px solid transparent;border-radius:12px;background:transparent;color:inherit;cursor:pointer}.commercial-check.selected{border-color:var(--accent,#0864ff);background:rgba(45,120,255,.12)}.commercial-check:disabled{opacity:.55;cursor:default}.commercial-tick{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border:1px solid var(--line,rgba(67,120,180,.4));border-radius:8px}.commercial-check.selected .commercial-tick{background:#075aff;color:white;border-color:#075aff}.commercial-tick svg{width:16px;height:16px}.commercial-preview{display:flex;flex-wrap:wrap;gap:12px;padding:16px;margin:16px 0;border:1px solid var(--line,rgba(67,120,180,.25));border-radius:14px;background:rgba(130,180,245,.1)}.commercial-preview span{flex:1;min-width:110px;display:grid;gap:6px}.commercial-preview small{flex-basis:100%;color:var(--muted)}.commercial-details{padding:12px 0}.commercial-details p{font-size:12px}.commercial-tax-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.commercial-tax-pair .button{width:100%;justify-content:space-between}.commercial-line-list,.commercial-tax-options{display:grid;gap:8px;margin:16px 0;max-height:32vh;overflow:auto}.commercial-info{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 20px;margin:20px 0}.commercial-info dt{color:var(--muted);font-size:12px}.commercial-info dd{margin:0;overflow-wrap:anywhere}.commercial-documents{display:grid;gap:12px;margin:16px 0}.commercial-file{width:100%;height:65vh;border:0;border-radius:14px;background:white}.commercial-fee-row{display:grid;grid-template-columns:minmax(0,1fr) 130px 40px;gap:12px;align-items:end;margin-bottom:16px}.commercial-external-item{display:flex;align-items:center;gap:14px;text-align:left;padding:14px;border-radius:16px;border:1px solid var(--line,rgba(67,120,180,.2));color:inherit;width:100%;min-width:0}.commercial-external-item>span{flex:1;min-width:0}.commercial-external-item small{display:block;overflow-wrap:anywhere;margin-top:6px;color:var(--muted)}.commercial-external-item>img{width:54px;height:54px;object-fit:contain;border-radius:8px}.commercial-external-item>svg{flex:none;width:24px}.commercial-product-top{justify-content:space-between;margin:16px 0}.commercial-tabs{margin-top:20px}.commercial-tabs .active{color:#fff!important;background:#075aff}.commercial-product-top+.field-label{margin-top:12px}
@media(max-width:600px){.commercial-fee-row{grid-template-columns:minmax(0,1fr) 94px 32px;gap:8px}.commercial-tax-pair{grid-template-columns:1fr;gap:8px}.commercial-order-tools .button{flex:1;min-width:130px}.commercial-promo-code,.commercial-search-row{gap:8px}.commercial-info{grid-template-columns:1fr;gap:5px}.commercial-info dd{margin-bottom:10px}.commercial-external-item{gap:8px;padding:10px}.commercial-product-top .button{flex:1}.commercial-order-summary .button{padding:8px;font-size:11px}}

.commercial-file-image{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}
.attachment-pdf-viewer{width:100%;min-width:0}.attachment-pdf-toolbar{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:12px}.attachment-pdf-toolbar [role="status"]{font-size:13px;text-align:center}.attachment-pdf-pages{width:100%;max-height:58vh;overflow:auto;padding:12px;background:rgba(70,100,145,.12);border-radius:12px;box-sizing:border-box}.attachment-pdf-pages canvas{display:block;margin:auto;background:#fff;max-width:100%;box-shadow:0 3px 16px #1a365330}

.commercial-tax-pair .button{flex-direction:row-reverse;text-align:left;gap:12px}.commercial-tax-pair .button>span{flex:1}.commercial-tax-pair .button>svg{flex:none}.commercial-check{justify-content:flex-start}.commercial-check>span:last-child{min-width:0;overflow-wrap:anywhere}.commercial-line-list{padding:2px}.commercial-line-list .commercial-check{background:rgba(150,190,235,.12);border-color:var(--line)}
.order-task-sections .task-list-row{grid-template-columns:minmax(0,1fr) 40px;padding:14px 12px;gap:16px}.order-task-sections .task-open{width:100%;align-items:flex-start;justify-content:flex-start}.order-task-sections .task-list-row>.icon-btn{display:flex;grid-column:2;grid-row:1}.order-task-sections .task-open strong{word-break:normal;overflow-wrap:break-word}
[data-cash-sign="negative"]{color:#d42b43!important}[data-cash-sign="positive"]{color:#b48200!important}[data-cash-sign="zero"]{color:#101522!important}
.order-attachments{display:grid;gap:12px}.order-attachment{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;min-width:0}.attachment-open{display:flex;flex:1;align-items:center;justify-content:flex-start;gap:12px;text-align:left;min-width:0;color:inherit}.attachment-open>svg{flex:none;width:24px;height:24px}.attachment-open>span{min-width:0}.attachment-open strong{display:block;overflow-wrap:anywhere;font-size:13px}.attachment-open small{display:block;margin-top:6px;color:var(--muted);font-size:11px}.attachment-actions{display:flex;gap:8px;flex:none}.attachment-actions [data-act="remove-file"]{color:var(--danger,#c83147)}
.attachment-viewer{min-width:0;display:grid;place-items:center;min-height:160px}.attachment-image,.attachment-video{display:block;max-width:100%;max-height:64vh;object-fit:contain;border-radius:12px}.attachment-pdf{width:100%;height:65vh;border:0;border-radius:12px;background:white}.attachment-audio{width:100%;padding:28px 0;text-align:center}.attachment-audio audio{width:min(100%,640px);margin-top:20px}.attachment-text{width:100%;white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto}.attachment-loading{display:flex;align-items:center;gap:12px;color:var(--muted)}.glass-droplet{display:inline-block;width:22px;height:22px;border-radius:45% 55% 60% 40%;background:linear-gradient(135deg,#91c8ff,#075aff);box-shadow:inset 2px 2px 4px #ffffff80;animation:glass-droplet-pulse 1s ease-in-out infinite}.history-choice.is-loading{position:relative}.history-choice.is-loading .loading-label{display:flex;align-items:center;gap:10px}.history-choice.is-loading .loading-label::before{content:'';width:20px;height:20px;border-radius:45% 55% 60% 40%;background:linear-gradient(135deg,#91c8ff,#075aff);animation:glass-droplet-pulse 1s ease-in-out infinite}@keyframes glass-droplet-pulse{50%{transform:scale(.72) rotate(35deg);opacity:.65}}@media(prefers-reduced-motion:reduce){.glass-droplet,.history-choice.is-loading .loading-label::before{animation:none}}
@media(max-width:600px){.order-attachment{gap:8px;padding:10px}.attachment-actions{gap:4px}.attachment-open{gap:8px}.attachment-open>svg{width:20px}.commercial-tax-pair{gap:14px}}
.cloud-print-target{display:flex;align-items:center;gap:12px;margin:16px 0;flex-wrap:wrap}.cloud-print-target .button{min-width:220px;justify-content:flex-start}.cloud-print-target .button>span{flex:1;text-align:left}.cloud-print-target small{flex-basis:100%;color:var(--muted)}
.product-language-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 12px}.product-language-tabs .button{padding:8px 14px}.product-image-preview{margin:14px 0;background:rgba(255,255,255,.18);border-radius:16px;padding:12px}.product-image-preview button{border:0;background:none;width:100%;cursor:zoom-in}.product-image-preview img{display:block;object-fit:contain;width:100%;max-height:280px}.product-image-full{display:block;max-width:100%;max-height:70vh;object-fit:contain;margin:auto}.commercial-external-item img{object-fit:contain!important;background:rgba(255,255,255,.22)}.external-prices{display:flex;flex-direction:column;gap:4px;text-align:right}.external-prices del{color:var(--muted);font-size:12px}
.external-search-status{display:flex;align-items:center;gap:10px;min-height:30px;margin:8px 0;color:var(--muted);font-size:12px}
.receipt-settings-selection{display:grid;gap:10px;margin:16px 0}.receipt-template-open{width:100%;text-align:left}.receipt-template-open>span{flex:1;min-width:0}.receipt-template-id{display:block;overflow-wrap:anywhere;font-size:12px;margin:12px 0}.receipt-template-id code{user-select:all}.receipt-settings-thumbnail{display:block;width:100%;border:1px solid var(--line);border-radius:16px;padding:18px;background:rgba(255,255,255,.12);max-height:220px;overflow:hidden;cursor:pointer}.receipt-settings-thumbnail .receipt-preview-sheet{pointer-events:none;zoom:.65}.receipt-template-layout{display:grid;grid-template-columns:minmax(200px,280px) minmax(0,1fr);gap:20px;align-items:start}.receipt-template-options{display:grid;gap:10px;max-height:60vh;overflow:auto;padding:2px}.receipt-template-options .option-card{width:100%;text-align:left;display:grid;gap:6px;overflow-wrap:anywhere}.receipt-template-options small{font-size:10px;opacity:.7}.receipt-template-preview{min-width:0;padding:18px;max-height:60vh;overflow:auto}.receipt-preview-heading{display:grid;gap:5px;margin-bottom:18px}.receipt-preview-heading small{font-size:11px;opacity:.65}.receipt-preview-sheet{display:flex;justify-content:center}.receipt-preview-sheet .print-preview{flex:none;width:var(--document-width);max-width:100%;box-sizing:border-box;margin:0;color:#202124;background:white}.receipt-preview-sheet table{width:100%;border-collapse:collapse}.receipt-preview-sheet td,.receipt-preview-sheet th{border-bottom:1px solid #ddd;padding:5px}.receipt-preview-sheet .document-qr svg{width:72px;height:72px}
@media(max-width:640px){.receipt-template-layout{grid-template-columns:1fr}.receipt-template-options{max-height:180px;grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-template-preview{max-height:45vh}.receipt-template-options .option-card{padding:12px}}
.order-payments{padding:16px 0;margin:12px 0;border-top:1px solid var(--line)}.order-payments h3{font-size:14px;margin:0 0 10px}.order-payment-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);border-radius:14px;padding:12px;margin:8px 0;background:transparent;color:inherit;cursor:pointer}.order-payment-row>span{flex:1;min-width:0}.order-payment-row strong{display:block;overflow-wrap:anywhere}.order-payment-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.order-payment-row>b{white-space:nowrap;color:var(--success,#17815e)}.order-payment-row>svg{width:16px;height:16px;flex:none}.payment-detail-grid{display:grid;gap:14px;margin:20px 0}.payment-detail-grid>div{display:flex;justify-content:space-between;gap:18px;align-items:baseline}.payment-detail-grid dt{font-size:12px;color:var(--muted)}.payment-detail-grid dd{margin:0;text-align:right;overflow-wrap:anywhere;max-width:60%}.payment-detail-comment{margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere}.payment-refund-history{display:grid;gap:12px;margin:16px 0}.payment-refund-history>div{display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:12px}.payment-refund-history small{color:var(--muted)}

.delivery-panel{padding:22px;min-width:0}.delivery-panel h2{font-size:18px;margin:0}.delivery-fields{border:0;padding:0;margin:18px 0 0;display:flex;flex-direction:column;gap:18px;min-width:0}.delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}.delivery-grid>.field-label,.delivery-grid>.field-shell{grid-column:span 1}.delivery-select{width:100%;justify-content:space-between;min-height:46px;text-align:left}.delivery-select>span{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.delivery-select>svg{flex:none}.delivery-address-wrap{position:relative}.delivery-suggestions{position:absolute;z-index:20;left:0;right:0;top:72px;padding:6px;max-height:280px;overflow:auto;background:var(--panel-solid,#d0e5fa);box-shadow:0 12px 28px #12345c30;border-radius:14px}.delivery-suggestions button{display:flex;gap:12px;width:100%;padding:12px;border:0;background:transparent;color:inherit;text-align:left;border-radius:9px;cursor:pointer}.delivery-suggestions button:hover,.delivery-suggestions [aria-selected=true]{background:#1261ff25}.delivery-suggestions svg{width:18px;flex:none}.delivery-map-links,.delivery-save-row,.delivery-durations{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.delivery-map-links a{font-size:12px;min-height:38px;text-decoration:none}.delivery-avatar{width:36px;height:36px;border-radius:12px;object-fit:cover;flex:none}.delivery-initials{display:grid;place-items:center;background:#1664ff1a;color:var(--accent,#075aff)}.delivery-choice-list{display:flex;flex-direction:column;gap:10px;max-height:55vh;overflow:auto}.delivery-person{width:100%;justify-content:flex-start;text-align:left;min-height:56px}.delivery-person>strong{flex:1;white-space:normal}.delivery-person[aria-pressed=true]{outline:2px solid var(--accent,#075aff);outline-offset:-2px}.delivery-period-list{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.delivery-period-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid #5b8cbc33;border-radius:12px}.delivery-durations{margin-top:16px}.delivery-stages{border-top:1px solid #6b96c533;padding-top:16px}.delivery-stages summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;font-size:13px;font-weight:600}.delivery-stages summary>svg{margin-left:auto}.delivery-stages>div{padding-top:16px}.delivery-address-wrap [role=status]{display:flex;align-items:center;gap:8px;margin-top:6px;min-height:16px}body[data-mode=dark] .delivery-suggestions{background:#182745}@media(max-width:760px){.delivery-grid{grid-template-columns:1fr}.delivery-panel{padding:16px}.delivery-save-row>.button{width:100%;justify-content:center}.delivery-map-links{gap:8px}.delivery-select>span{font-size:13px}.delivery-fields{gap:16px}}

.delivery-panel .field-label{margin:0 0 8px}.delivery-panel .field-shell{margin:0}.delivery-panel .field-shell textarea{min-height:70px}.delivery-panel .section-top{margin-bottom:0}.delivery-panel .delivery-fields{gap:16px}

.delivery-manual-provider{display:flex;flex-direction:column;gap:12px;margin-top:20px}

.delivery-source{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;padding-bottom:12px;border-bottom:1px solid #6b96c533}.delivery-source strong{overflow-wrap:anywhere;font-size:13px}
.delivery-price-section{display:flex;flex-direction:column;gap:12px}.delivery-price-section>.delivery-save-row{justify-content:space-between}

.orders-period-presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.orders-period-presets .button{padding:9px 13px;font-size:12px}
.orders-period-presets ~ .ov-calendar .button.ov-in-range[aria-pressed="true"] {
 background: #c2dcff !important;
 color: #102f5b !important;
 border-color: #5689d0 !important;
 box-shadow: inset 0 -3px #477bc3 !important;
}
.orders-period-presets ~ .ov-calendar .button.primary[aria-pressed="true"] {
 background: #174fa9 !important;
 color: white !important;
 border-color: #103a89 !important;
}
.toolbar [data-act="orders-calendar"]{flex:0 0 auto;white-space:nowrap;gap:8px}.toolbar [data-act="refresh"]{flex-shrink:0}.orders-stock-loading{margin:10px 0 16px}.table-bottom{flex-wrap:wrap;gap:12px}.table-bottom .danger-text{flex-basis:100%}@media(max-width:760px){.toolbar [data-act="orders-calendar"]{margin-left:auto;max-width:calc(100% - 56px);font-size:12px}}

.catalog-category-nav{display:flex;align-items:center;gap:5px;min-width:0;flex-shrink:0;margin:8px 0}.catalog-category-nav>.icon-btn{width:28px;height:32px;min-width:28px;flex:0 0 28px}.catalog-category-nav>.icon-btn:disabled{opacity:.3}.catalog-category-nav.no-overflow>.icon-btn{display:none}.picker-catalog .catalog-category-nav>.catalog-categories{flex:1;min-width:0;max-width:100%;margin:0;padding:4px 0 7px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#75aadd transparent;touch-action:pan-x;overscroll-behavior-x:contain}.catalog-category-nav .catalog-categories::-webkit-scrollbar{height:4px}.catalog-category-nav .catalog-categories::-webkit-scrollbar-thumb{background:#75aadd;border-radius:4px}.catalog-category-nav .category{flex:none;white-space:nowrap}.catalog-category-nav .category:focus-visible{outline:2px solid var(--accent,#075aff);outline-offset:-2px}
#dialog-content .field-row:has([data-act="new-order-warehouse"]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:16px}#dialog-content .field-row:has([data-act="new-order-warehouse"])>div{min-width:0}#dialog-content [data-act="new-order-warehouse"],#dialog-content [data-act="new-order-client"]{min-width:0;max-width:100%;height:auto;min-height:44px;text-align:left;justify-content:flex-start!important}#dialog-content [data-act="new-order-warehouse"]>span,#dialog-content [data-act="new-order-client"]>span{min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left}#dialog-content [data-act="new-order-warehouse"]>svg,#dialog-content [data-act="new-order-client"]>svg{flex:none}
.product-photo-button{display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;padding:2px;border:0;background:transparent;border-radius:inherit;cursor:zoom-in}.catalog-product-photo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:7px}.product-image:has(.product-photo-button){width:42px;height:42px;flex:0 0 42px;background:#fff9;border-radius:9px}.product-art-large .product-photo-button{min-height:100px}.product-photo-fallback{display:grid;place-items:center}.product-photo-fallback[hidden],.catalog-product-photo[hidden]{display:none}.inventory-warning-list{display:grid;gap:12px;max-height:42vh;overflow:auto}.inventory-warning-row{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}.inventory-warning-row small{color:var(--muted)}.inventory-warning-row dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0 0}.inventory-warning-row dt{font-size:11px;color:var(--muted)}.inventory-warning-row dd{margin:5px 0 0;font-weight:600}.inventory-warning-row dl>div:last-child dd{color:#c76a12}@media(max-width:500px){#dialog-content .field-row:has([data-act="new-order-warehouse"]){grid-template-columns:1fr}.inventory-warning-row dl{gap:6px;font-size:12px}}
.inventory-warning-list+.subline{margin:8px 0 18px;line-height:1.5}
.product-art-large{min-width:0;overflow:hidden;isolation:isolate}.product-art-large>.product-photo-button{position:absolute;inset:0;min-height:0;max-height:100%;overflow:hidden}.product-photo-button{overflow:hidden;box-sizing:border-box}.product-art-large .catalog-product-photo{position:absolute;inset:4px;width:calc(100% - 8px);height:calc(100% - 8px);object-fit:contain}.product-card{min-width:0}.mini-item .product-photo-button{width:100%;height:100%}.delivery-calculation-warning{margin-bottom:16px;line-height:1.5}.delivery-calculation-warning .link-button{margin-left:12px}

.stock-toolbar{display:flex;align-items:flex-end;gap:12px;margin:12px 0 20px;flex-wrap:wrap}.stock-toolbar>div:first-child{position:relative;min-width:240px;max-width:100%}.stock-toolbar>div:first-child>.icon{position:absolute;right:12px;bottom:15px;pointer-events:none}.stock-toolbar>div:first-child .button{width:100%;padding-right:34px;justify-content:flex-start}.stock-toolbar .search-shell{flex:1;min-width:210px}.stock-toolbar .search-shell input{width:100%;min-width:0}.stock-page-table{width:100%;table-layout:fixed}.stock-page-table th:first-child{width:58%}.stock-page-table td{overflow-wrap:anywhere}.stock-page-table td:not(:first-child),.stock-page-table th:not(:first-child){text-align:right}.stock-page-table td{padding:12px 10px;height:62px}.stock-page-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px}.purchase-request-row{cursor:pointer}.purchase-request-row:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.purchase-detail-head{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.purchase-detail-head>div{flex:1;min-width:180px}.purchase-history{margin-top:20px}.purchase-detail-table{width:100%}.purchase-detail-table td:first-child{overflow-wrap:anywhere}.purchase-detail-table td:not(:first-child){text-align:right}.purchase-detail-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}@media(max-width:650px){.stock-toolbar>div:first-child{width:100%}.stock-page-table th:first-child{width:45%}.stock-page-table td,.stock-page-table th{padding:9px 5px;font-size:12px}.stock-page-footer{flex-wrap:wrap}}

.purchase-request-open{appearance:none;border:0;background:transparent;color:inherit;font:inherit;display:flex;align-items:center;gap:16px;text-align:left;min-width:0;flex:1;padding:12px 4px;cursor:pointer}.purchase-request-open>span{flex:1;min-width:0;overflow-wrap:anywhere}.purchase-request-open>strong{white-space:nowrap}.purchase-request-row,.employee-shift-row{gap:18px;width:100%}.purchase-request-row .purchase-detail-actions{margin:0}.employee-shift-row>.button{margin-left:auto;flex-shrink:0}.purchase-history li{display:flex;justify-content:space-between;gap:12px;padding:8px 0}.purchase-detail-total{text-align:right;margin:20px 0}.purchase-comment{white-space:pre-wrap}.picker-selected>#purchase-comment{margin-bottom:12px}.settings-grid [data-act="live-save-print"]{margin-top:18px}.settings-grid .field-shell{margin-bottom:12px}@media(max-width:600px){.purchase-request-row{flex-wrap:wrap}.purchase-request-open{width:100%;flex-basis:100%}.purchase-detail-actions{margin-left:auto!important}.employee-shift-row{gap:8px}.employee-shift-row>.button{padding:8px}.purchase-history li{flex-wrap:wrap}.purchase-detail-table{min-width:540px}}

.product-photo-upload{margin:18px 0 14px;padding:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;border:1px dashed #6d9bd0;border-radius:18px;min-width:0;background:#a9ccff18;text-align:center}.product-photo-upload>svg{width:28px;height:28px}.product-photo-upload.dragging{outline:2px solid var(--accent,#095dff);background:#7daeff33}.product-photo-upload.is-uploading{min-height:150px}.product-photo-upload .danger-text{overflow-wrap:anywhere}.age-verification-record{display:grid;gap:8px;padding:16px;border:1px solid #6b97bd40;border-radius:14px;margin:16px 0}.age-document-list{display:grid;gap:12px;max-height:38vh;overflow:auto}.age-document-row{padding:14px;border:1px solid #6b97bd40;border-radius:14px;display:grid;gap:12px}.age-document-row>div:first-child{display:grid;gap:6px;overflow-wrap:anywhere}.age-document-row.selected{outline:2px solid var(--accent,#095dff);outline-offset:-2px}.age-document-actions{display:flex;gap:10px;flex-wrap:wrap}.age-verifier{margin:12px 0 0}.timeline-step{--step-color:#7892b4}.timeline-step>i{background:var(--step-color)!important;opacity:.5}.timeline-step.reached>i,.timeline-step.current>i{opacity:1}.timeline-step.current>i{outline:2px solid var(--step-color);outline-offset:3px}.timeline-step.current>span{color:var(--ink);font-weight:700}

.button.production-confirmed,.button.production-confirmed:disabled{color:#116a46!important;background:#3bc98a28!important;border:1px solid #16845775;opacity:1;cursor:default;box-shadow:none}.button.production-confirmed>.icon{color:#138557}.customer-page-footer{display:flex;justify-content:center;align-items:center;gap:12px;padding:16px 0;min-height:48px}.customer-search-loading{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.customer-cell strong{overflow-wrap:anywhere}

.order-customer-panel { min-width: 0; }
.order-customer-panel .customer-card { display:flex; align-items:flex-start; gap:12px; min-width:0; max-width:100%; }
.order-customer-panel .customer-card .avatar-square { flex:0 0 42px; }
.order-customer-panel .order-customer-identity { flex:1 1 0; min-width:0; }
.order-customer-panel .order-customer-identity strong { display:block; white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
.order-customer-panel .customer-card .icon-btn { flex:0 0 36px; margin-left:0; }
.order-customer-panel .customer-contact { display:flex; align-items:flex-start; gap:10px; min-width:0; margin-top:12px; line-height:1.5; }
.order-customer-panel .customer-contact svg { flex:0 0 16px; margin-top:3px; }
.order-customer-panel .customer-contact a,.order-customer-panel .customer-contact span { min-width:0; overflow-wrap:anywhere; white-space:normal; color:inherit; }
.order-customer-panel .customer-contact a { text-decoration:none; }
.order-customer-panel .customer-contact a:hover { text-decoration:underline; }
.customer-profile-state { display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:12px; color:var(--text-secondary); margin-top:10px; overflow-wrap:anywhere; }
.order-customer-panel [hidden] { display:none!important; }
.order-customer-panel .order-customer-edit{margin:8px 0 4px}.order-customer-panel .order-customer-edit .button{width:100%;justify-content:center;min-height:38px}.customer-extra-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0}.customer-extra-heading strong{font-size:13px}

.paged-product-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto 40px;gap:12px;align-items:center;padding:13px 2px;border-bottom:1px solid var(--line,rgba(65,122,180,.16));min-width:0}
.paged-product-row:not(:has(.catalog-price)){grid-template-columns:48px minmax(0,1fr) 40px}
.catalog-thumb{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:10px;overflow:hidden;flex:none}
.catalog-thumb img{width:100%;height:100%;object-fit:contain;background:rgba(255,255,255,.65)}
.paged-product-name,.recipe-product{min-width:0;overflow-wrap:anywhere}
.paged-product-name strong,.recipe-product strong{display:block;font-size:13px;line-height:1.4}
.paged-product-name small,.recipe-product small{display:block;color:var(--muted,#4d6b92);font-size:10px;margin-top:4px;overflow-wrap:anywhere}
.catalog-choice-scroll{max-height:min(48vh,430px);min-height:160px;overflow-y:auto;overscroll-behavior:contain;margin-top:16px;padding-right:10px}
.catalog-page-state{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;min-height:54px;padding:12px;font-size:12px;color:var(--muted,#4d6b92)}
.recipe-lines{max-height:52vh;overflow-y:auto;overscroll-behavior:contain}
.recipe-line{display:grid;grid-template-columns:48px minmax(0,1fr) 132px 44px;gap:16px;align-items:center;width:100%;padding:14px 0;border-bottom:1px solid var(--line,rgba(65,122,180,.16))}
.recipe-line>.icon-btn{justify-self:end;align-self:end;width:44px;height:44px;min-height:44px;margin:0}.recipe-gross{align-self:end}.recipe-gross .field-label{margin:0 0 5px}.recipe-gross .field-shell{margin:0;height:44px;min-height:44px;box-sizing:border-box}.recipe-add{margin-top:18px}
.paged-catalog-grid .product-art-large{height:190px;min-height:190px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.paged-catalog-grid .product-art-large img{width:100%;height:100%;object-fit:contain}.paged-catalog-grid .product-card{min-width:0;overflow:hidden;display:flex;flex-direction:column}.paged-catalog-grid .product-card>.button{margin-top:auto}.paged-catalog-grid .product-desc{max-height:3.6em;overflow:hidden}
.paged-categories{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:8px;padding:10px 0}.paged-categories>.category{flex:none;white-space:nowrap}
@media(max-width:560px){.recipe-line{grid-template-columns:40px minmax(0,1fr) 44px;gap:10px}.recipe-gross{grid-column:2;grid-row:2}.recipe-line>.icon-btn{grid-column:3;grid-row:2}.recipe-line>.catalog-thumb{width:40px;height:40px}.paged-product-row{gap:8px;grid-template-columns:40px minmax(0,1fr) auto 36px}.catalog-thumb{width:40px;height:40px}.paged-catalog-grid .product-art-large{height:150px;min-height:150px}}

.catalog-thumb>.product-photo-button{width:100%;height:100%}.paged-catalog-grid .product-art-large>.product-photo-button{width:100%;height:100%;max-width:none;max-height:none}.paged-catalog-grid .product-art-large .catalog-product-photo{width:100%;height:100%;max-height:none;object-fit:contain}
.catalog-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 24px;margin:18px 0 12px;min-width:0}
.catalog-controls .catalog-type-tabs{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;margin:0;flex-wrap:wrap}
.catalog-controls>.toolbar{flex:0 1 440px;min-width:min(100%,300px);width:440px;margin:0;padding:0}
.catalog-controls .search-shell{display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:44px;padding:4px 4px 4px 12px;box-sizing:border-box}
.catalog-controls .search-shell>input{flex:1 1 0;min-width:0;width:0;height:36px;min-height:36px;padding:8px 0}
.catalog-controls .search-shell>.icon{flex:0 0 16px}
.catalog-controls .search-shell>.icon-btn{flex:0 0 36px;width:36px;height:36px;min-height:36px;margin:0;padding:0}
@media(max-width:720px){.catalog-controls>.toolbar{flex:1 1 100%;width:100%}.catalog-controls .catalog-type-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.catalog-controls .catalog-type-tabs>button{flex:none;white-space:nowrap}}

.recipe-lines{display:grid;gap:12px}.recipe-line{padding:12px 14px;border:1px solid rgba(84,132,194,.36);border-radius:16px;background:rgba(255,255,255,.17);box-shadow:0 5px 18px rgba(51,100,165,.07)}.recipe-line .catalog-thumb{border-radius:11px;overflow:hidden}

.order-bills{min-width:0}.order-bills .bill-note{margin:0 0 20px;line-height:1.55;color:var(--muted,#4d6d94)}.bill-editor-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.bill-editor-intro p{max-width:620px;margin:0;font-size:13px;line-height:1.5}.bill-editor-intro .button{flex-shrink:0}.bill-table-scroll{max-width:100%;overflow:auto;margin-bottom:22px;border:1px solid #82b6eb44;border-radius:16px}.bill-table{border-collapse:collapse;width:100%;min-width:600px}.bill-table th,.bill-table td{padding:12px 14px;border-bottom:1px solid #82b6eb44;text-align:left;vertical-align:middle}.bill-table th:first-child{width:50%;min-width:220px}.bill-table th:not(:first-child){min-width:155px}.bill-column-label{height:36px;display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:12px}.bill-column-label .icon-btn{width:32px;height:32px;padding:6px}.bill-table .input{width:100%;min-width:100px;height:44px;box-sizing:border-box;margin:0}.bill-table output{display:flex;align-items:center;height:44px;padding:0 14px;font-weight:600}.bill-product{display:flex;gap:12px;align-items:center}.bill-product img,.bill-product>svg{width:44px;height:44px;object-fit:contain;flex-shrink:0;border-radius:9px}.bill-product span{display:flex;flex-direction:column;gap:5px;min-width:0}.bill-product strong{font-size:13px;overflow-wrap:anywhere}.bill-product small{font-size:11px;color:var(--muted,#4d6d94)}.bill-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.bill-card{padding:18px;border-radius:18px;min-width:0}.bill-card header{display:flex;justify-content:space-between;gap:10px;align-items:center}.bill-card header strong{overflow-wrap:anywhere}.bill-card header span{font-size:11px;white-space:nowrap;color:var(--muted,#4d6d94)}.bill-total{font-size:26px;font-weight:700;margin:14px 0}.bill-card dl{font-size:12px;margin:0}.bill-card dl>div{display:flex;justify-content:space-between;gap:12px;margin:9px 0}.bill-card dd{margin:0;white-space:nowrap}.bill-due{padding-top:10px;border-top:1px solid #82b6eb55;font-weight:700}.bill-card-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.bill-summary{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:22px;padding-top:18px;border-top:1px solid #82b6eb55}.bill-summary strong{font-size:24px}.bill-payment-label{margin:0 0 16px;padding:12px 16px;border-radius:12px;background:#1559ff12;color:var(--text,#153254);font-weight:600}.bill-warning{color:#99630e;font-size:13px;padding:12px;border:1px solid #e7b74a55;border-radius:12px}#bill-preview[aria-busy=true]{opacity:.55;position:relative}#bill-preview[aria-busy=true]:before{content:'';display:block;position:absolute;height:3px;width:44px;top:0;background:#1559ff;border-radius:50%;animation:bill-loading 1.2s ease-in-out infinite alternate}@keyframes bill-loading{to{transform:translateX(170px)}}@media(max-width:650px){.bill-editor-intro{align-items:stretch;flex-direction:column;gap:12px}.bill-cards{grid-template-columns:1fr}.bill-table th,.bill-table td{padding:10px}.order-bills .modal-footer{flex-wrap:wrap}.bill-summary strong{font-size:22px}}

/* Compact POS preferences with aligned controls and a right-hand disclosure. */
.settings-grid>.compact-pos-settings{min-width:0;align-self:stretch;padding:18px 20px}
.compact-pos-settings>.section-top{min-height:30px;margin:0 0 14px;gap:12px}
.compact-pos-settings>.section-top h2{margin:0;min-width:0;font-size:15px}
.settings-language-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.settings-language-field{min-width:0;display:grid;gap:7px}
.compact-pos-settings .field-label{margin:0;font-size:11px}
.settings-language-picker.button{width:100%;min-width:0;min-height:42px;justify-content:space-between;gap:12px;text-align:left}
.settings-language-picker>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-language-picker svg{flex-shrink:0;width:15px;height:15px;order:2}
.settings-language-help{margin-top:12px;color:var(--muted);font-size:11px;line-height:1.5}
.settings-language-help summary{cursor:pointer;width:fit-content;padding:2px 0}
.settings-language-help p{margin:8px 0 0}
.compact-pos-settings .age-policy-switch{width:auto;min-height:30px;padding:0;gap:8px;font-size:11px;white-space:nowrap;justify-content:flex-start}
.compact-pos-settings .age-switch-track{flex-basis:40px;height:24px;padding:3px}
.compact-pos-settings .age-switch-track i{width:18px;height:18px}
.compact-pos-settings .age-policy-switch[aria-checked=true] i{transform:translateX(16px)}
.age-policy-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;min-height:63px}
.compact-pos-settings .age-policy-threshold{min-width:0}
.compact-pos-settings .age-policy-options{gap:6px;margin-top:7px}
.compact-pos-settings .age-policy-options .button{min-width:64px;min-height:42px;padding:9px 13px;gap:8px}
.age-policy-controls>[data-act="age-policy-save"]{min-height:42px;margin:0 0 0 auto;white-space:nowrap}
.compact-pos-settings .age-policy-note{margin:12px 0 0;font-size:11px;line-height:1.5}
.compact-pos-settings .inline-error:empty{display:none}
/* Dedicated document-check column before the order menu. */
.age-list-cell,.age-list-heading{display:flex;align-items:center;justify-content:center;min-width:0}
.age-list-button{display:inline-flex;align-items:center;justify-content:center;position:relative;width:38px;height:38px;min-width:38px;border-radius:12px;border:1px solid rgba(7,90,255,.28);background:rgba(7,90,255,.09);color:#075aff;cursor:pointer;padding:8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
.age-list-button.is-confirmed{background:rgba(14,150,103,.12);border-color:rgba(14,150,103,.32);color:#087c52}
.age-list-button:hover{background:rgba(7,90,255,.16)}
.age-list-button.is-confirmed:hover{background:rgba(14,150,103,.2)}
.age-list-button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.age-list-button svg{width:20px;height:20px;flex:none}
@media(min-width:1061px){
 #page-content:has(#order-list) .has-age-check .order-head,#order-list .order-row:has(.age-list-cell){grid-template-columns:0px 90px minmax(90px,1fr) minmax(70px,.85fr) 80px minmax(94px,.8fr) 136px 44px 34px;column-gap:12px}
 .selection-mode #page-content:has(#order-list) .has-age-check .order-head,.selection-mode #order-list .order-row:has(.age-list-cell){grid-template-columns:28px 90px minmax(90px,1fr) minmax(70px,.85fr) 80px minmax(94px,.8fr) 136px 44px 34px}
}
@media(min-width:761px) and (max-width:1060px){
 #page-content:has(#order-list) .has-age-check .order-head,#order-list .order-row:has(.age-list-cell){grid-template-columns:0px 65px minmax(70px,1fr) 62px 85px 112px 40px 34px;column-gap:8px}
 .selection-mode #page-content:has(#order-list) .has-age-check .order-head,.selection-mode #order-list .order-row:has(.age-list-cell){grid-template-columns:26px 65px minmax(70px,1fr) 62px 85px 112px 40px 34px}
}
@media(max-width:760px){
 #order-list .age-list-cell{grid-column:4;grid-row:2;align-self:center}
 #order-list .age-list-button{width:34px;height:34px;min-width:34px;padding:7px}
}
@media(max-width:420px){
 .settings-grid>.compact-pos-settings{padding:16px}
 .settings-language-fields{gap:10px}
 .settings-language-picker.button{padding:10px;font-size:12px}
 .age-policy-controls{gap:10px}
 .compact-pos-settings .age-policy-options .button{min-width:55px;padding:8px 10px}
}

.order-columns-trigger svg{width:19px;height:19px}
.payment-method-cell{min-width:0;display:flex;flex-wrap:wrap;gap:6px}.order-payment-method{display:inline-block;max-width:100%;padding:6px 8px;border:1px solid var(--line);border-radius:8px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.payment-method-head{white-space:normal}
.order-delivery-cell-button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:38px;padding:8px 10px;border:1px solid #85afe744;border-radius:10px;background:#ffffff18;color:inherit;text-align:left;cursor:pointer;font:inherit;font-size:12px;line-height:1.4}
.order-delivery-cell-button span,.order-delivery-cell-text{min-width:0;overflow-wrap:anywhere;white-space:normal}.order-delivery-cell-button svg{width:16px;height:16px;flex:none}.order-delivery-cell-button:hover{background:#1261ff15}.order-delivery-cell-button:focus-visible{outline:2px solid #075aff;outline-offset:2px}.order-delivery-cell-text{font-size:12px;line-height:1.4}.order-customer-phone{display:block;overflow-wrap:anywhere}.quick-delivery-panel{padding:0}.quick-delivery-panel .delivery-fields{margin-top:20px}.quick-delivery-panel .delivery-suggestions{position:relative;top:auto;margin-top:8px}.quick-courier-list{margin-top:20px}.address-cell,.courier-cell{min-width:0}
.order-column-tabs{display:flex;gap:8px;margin:20px 0 14px}
.order-columns-ready .menu-cell{display:flex;gap:4px;align-items:center;justify-content:flex-end}
#select-menu .order-status-option{gap:10px;border-inline-start:3px solid var(--status-color);background:color-mix(in srgb,var(--status-color) 12%,transparent)}
#select-menu .order-status-option-dot{width:9px;height:9px;flex:none;border-radius:50%;background:var(--status-color)}
#select-menu .order-status-option>span{flex:1;text-align:start}
@media(max-width:760px){.order-columns-ready .menu-cell{flex-direction:column;justify-content:flex-start;align-self:start}.order-columns-ready .menu-cell .icon-btn{width:32px;height:32px;min-width:32px;min-height:32px}}
.order-column-tabs>.button{flex:1;min-height:40px}
.column-settings-note{font-size:12px;color:var(--muted);line-height:1.5;margin:12px 0}
.order-column-options{display:grid;gap:0}
.order-column-option{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--line,rgba(70,120,180,.16))}
.order-column-option>label:first-child{display:flex;align-items:center;gap:10px;min-height:38px;flex:1;cursor:pointer;font-size:13px}
.order-column-option input[type=checkbox]{appearance:none;width:19px;height:19px;margin:0;flex:none;display:grid;place-items:center;border:1px solid #94bde9;border-radius:6px;background:rgba(235,246,255,.2);cursor:pointer}
.order-column-option input[type=checkbox]:checked{background:#075aff;border-color:#075aff}
.order-column-option input[type=checkbox]:checked::after{content:'';width:8px;height:4px;border-left:2px solid white;border-bottom:2px solid white;transform:translateY(-1px) rotate(-45deg)}
.order-column-option input:focus-visible{outline:2px solid #075aff;outline-offset:3px}
.column-width{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}
.column-width>input{width:80px!important;min-height:38px!important;height:38px;padding:6px 10px!important;text-align:right;font:inherit;font-size:12px;color:var(--ink,#152137);border:1px solid rgba(137,180,226,.45);border-radius:11px;background:rgba(226,241,255,.28);box-shadow:inset 0 2px 5px rgba(55,94,134,.1),0 1px 0 rgba(255,255,255,.4)}
.column-width>input:disabled{opacity:.4}
.column-settings-footer{gap:10px;margin-top:18px!important}
.column-settings-footer>[data-act=columns-reset]{margin-right:auto}
.order-columns-scroll{overflow-x:auto;max-width:100%;scrollbar-width:thin;scrollbar-color:#94c4ec transparent;padding-bottom:2px}
#page-content .order-columns-ready .order-column-hidden{display:none!important}
#page-content .order-columns-ready .order-head,#page-content .order-columns-ready .order-row{column-gap:12px!important}
#page-content .order-columns-ready .customer-cell{min-width:0;overflow:hidden}
#page-content .order-columns-ready .customer-cell>div{min-width:0}
#page-content .order-columns-ready .customer-cell .order-customer-phone{display:block!important;margin-top:3px;font-size:11px;line-height:1.4}
#page-content .order-columns-ready .customer-name{white-space:normal;overflow-wrap:anywhere;line-height:1.4}
#page-content .order-columns-ready .customer-cell .avatar-square{flex:none}
#page-content .order-columns-ready .order-head>[data-order-column=status]{text-align:left}
@media(min-width:761px){
 #page-content .order-columns-ready .goods-head:not(.order-column-hidden){display:block!important}
 #page-content .order-columns-ready .goods-cell:not(.order-column-hidden){display:block!important}
 #page-content .order-columns-ready .order-head>*{grid-column:auto!important;grid-row:auto!important}
 #page-content .order-columns-ready .order-row>*{grid-column:auto!important;grid-row:auto!important}
 #page-content .order-columns-ready .select-cell:not(.order-column-hidden){display:flex!important;visibility:visible!important;opacity:1!important;min-width:0}
}
@media(max-width:760px){
 #page-content .order-columns-ready .order-head{display:none!important}
 #page-content .order-columns-ready .order-row{row-gap:10px;min-height:0;padding:16px 12px;align-items:center}
 #page-content .order-columns-ready .order-row>[data-order-column]:not(.order-column-hidden){min-width:0;max-width:100%}
 #page-content .order-columns-ready .number-cell:not(.order-column-hidden){display:block}
 #page-content .order-columns-ready .amount:not(.order-column-hidden){display:block;text-align:right}
 #page-content .order-columns-ready .time-cell:not(.order-column-hidden){gap:8px;align-items:baseline}
 #page-content .order-columns-ready .goods-cell:not(.order-column-hidden){display:block}
 #page-content .order-columns-ready .state-cell{display:flex;justify-content:flex-start;justify-self:stretch}
 #page-content .order-columns-ready .native-status{min-height:34px;font-size:11px}
 .column-settings-footer>.button{padding-left:12px;padding-right:12px}
}
/* Square controls keep their hit area and show only a pulsing droplet. */
button.is-loading.loading-icon-only{position:relative}
button.is-loading.loading-icon-only>.loading-label{font-size:0!important;display:grid!important;place-items:center}
button.is-loading.loading-icon-only>.loading-label::before{content:'';display:block;width:17px;height:17px;border-radius:48% 52% 60% 40%;background:linear-gradient(135deg,#b3deff,#075aff);box-shadow:inset 2px 2px 4px #ffffff99;animation:order-icon-droplet 1s ease-in-out infinite}
@keyframes order-icon-droplet{0%,100%{transform:scale(.65);opacity:.7}50%{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){button.is-loading.loading-icon-only>.loading-label::before{animation:none}}

.offer-editor{min-width:0}
.offer-editor>.field-label{margin-top:18px}
.offer-editor>.field-label:first-child{margin-top:0}
.offer-editor>.button{max-width:100%;height:auto;min-height:44px;white-space:normal;text-align:left}
.offer-editor>.button>span{min-width:0;overflow-wrap:anywhere}
.offer-editor .offer-kind-status{margin:20px 0;gap:16px}
.offer-kind-status>.button{min-width:0;min-height:44px;height:auto;white-space:normal;padding:12px}
.offer-kind-status [data-offer-status="active"],.offer-kind-status [data-offer-status="active"]>span{color:#087548}
.offer-kind-status [data-offer-status="active"]{border:1px solid #16845755}
.offer-editor [data-act="live-offer-clear-date"]{margin:8px 0 4px}
.offer-editor .offer-usage-note{margin:18px 0 0;line-height:1.6;color:var(--muted)}
.calendar-time-fields{display:flex;align-items:flex-end;gap:16px;margin-top:24px}
.calendar-time-fields>div{flex:0 0 104px;min-width:0}
.calendar-time-fields .field-label{margin:0 0 8px}
.calendar-time-fields .button{width:100%;justify-content:center;min-height:44px;font-variant-numeric:tabular-nums}
.calendar-selection-summary{margin:16px 0 22px;line-height:1.5;font-variant-numeric:tabular-nums;color:var(--muted)}
.orders-calendar .button[aria-selected="true"]{background:#075aff!important;color:#fff!important;border-color:#075aff;box-shadow:0 2px 8px #075aff26}
.orders-calendar .button:focus-visible{outline:2px solid #075aff;outline-offset:2px}
@media(max-width:500px){.offer-editor .offer-kind-status{gap:10px}.offer-kind-status>.button{font-size:12px}.calendar-time-fields{gap:12px}.calendar-time-fields>div{flex-basis:96px}}

#dialog-content .offer-editor .offer-kind-status{margin:0 0 20px;padding-top:20px;gap:16px}
#dialog-content .offer-create-footer{display:flex;justify-content:flex-end;padding-top:20px;margin-top:8px;border-top:1px solid var(--line)}
.customer-order-history{display:flex;flex-direction:column;gap:12px;margin:18px 0 4px}
.customer-order-history>.button{width:100%;min-height:48px;justify-content:flex-start;padding:12px 16px;text-align:left}
.customer-order-history>.button>span{white-space:normal;overflow-wrap:anywhere}
.delivery-copy-field{display:flex;align-items:center;gap:8px;padding-right:6px!important;min-width:0}
.delivery-copy-field>input{flex:1;min-width:0;width:100%}
.delivery-copy-field>.icon-btn{flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:8px}
.summary-due.is-paid{color:#087548;justify-content:flex-start;gap:10px}
.summary-due.is-paid>span,.summary-due.is-paid>svg{color:#087548}
.bill-table .input{padding:11px 14px;line-height:20px;font:inherit;font-weight:400;box-sizing:border-box;color:var(--text);border:1px solid #82b6eb55;border-radius:12px}
.bill-table th,.bill-table td{padding:14px 16px}
.bill-table .bill-column-label{margin-bottom:10px}
.bill-table output{padding:11px 14px;line-height:20px;box-sizing:border-box;font-variant-numeric:tabular-nums}
@media(max-width:600px){.bill-table th,.bill-table td{padding:12px}.bill-table .input{padding:11px 12px}.bill-table output{padding:11px 12px}}
.product-primary-categories{margin:16px 0 20px;border:1px solid var(--line);border-radius:12px;padding:12px 14px}.product-primary-categories>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;font-size:13px}.product-primary-categories>summary>svg{width:18px;height:18px}.product-category-choices{max-height:250px;overflow:auto;padding-top:12px}.product-category-choices h4{display:none}.product-category-choices .product-extra-multi{margin:0}

.customer-editor{display:grid;gap:20px}.customer-editor fieldset{border:0;padding:0;margin:0;display:grid;gap:18px;min-width:0}.customer-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.customer-editor-grid>div>.button{width:100%;justify-content:space-between}.customer-photo-editor{display:flex;gap:16px;align-items:center}.customer-photo-editor img,.customer-photo-editor>.avatar-square{width:72px;height:72px;border-radius:16px;object-fit:cover}.customer-photo-editor>div{display:flex;gap:10px;flex-wrap:wrap}.customer-contacts-editor{display:grid;gap:14px}.customer-contact-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) 44px;gap:12px;align-items:end}.customer-contact-editor .icon-btn{width:44px;height:44px;margin-bottom:0}.customer-profile-open{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:0;background:none;padding:0 0 12px;color:inherit;cursor:pointer}.customer-profile-open>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.customer-profile-open strong,.customer-profile-open small{display:block}.customer-profile-open img{width:44px;height:44px;object-fit:cover;border-radius:12px}.customer-profile-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.customer-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.client-tile .customer-contact{overflow-wrap:anywhere;min-width:0}.payment-editor{display:grid;gap:18px}.payment-editor .field-label{margin-top:0}.payment-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.payment-editor-flags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.payment-method-settings-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.task-complete.is-loading{position:relative}.task-complete.loading-icon-only:after{content:'';position:absolute;width:9px;height:9px;left:calc(50% - 4.5px);top:calc(50% - 4.5px);border-radius:50%;background:currentColor;animation:customer-dot 900ms ease-in-out infinite}.task-complete.is-loading>*{visibility:hidden}@keyframes customer-dot{50%{transform:scale(.55);opacity:.5}}@media(max-width:560px){.customer-editor-grid,.payment-editor-grid,.payment-editor-flags{grid-template-columns:1fr}.customer-contact-editor{grid-template-columns:minmax(0,1fr) 44px}.customer-contact-editor>div:first-child{grid-column:1/-1}.customer-editor{gap:16px}.customer-profile-actions>.button{flex:1}.payment-method-settings-header{flex-wrap:wrap}}

.customer-editor-field{min-width:0}.customer-editor .field-label,.payment-editor .field-label{display:block;margin:0 0 8px}.customer-editor .field-shell,.payment-editor .field-shell{margin:0}.customer-editor .modal-footer,.payment-editor .modal-footer{margin:0;padding-top:18px}
.customer-photo-editor>.avatar-square{flex:0 0 72px}.customer-editor-grid [data-act="customer-editor-group"],.customer-editor-grid [data-act="customer-editor-language"]{flex-direction:row-reverse}.customer-editor-grid [data-act="customer-editor-group"]>span,.customer-editor-grid [data-act="customer-editor-language"]>span{flex:1;text-align:left}

.auth-recovery{display:flex;flex-direction:column;gap:18px}.auth-recovery>.alert{margin:0}.auth-recovery-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px}.auth-recovery-actions>.button{min-width:120px;min-height:44px;margin:0}

.order-customer-blocked{display:inline-flex;align-items:center;align-self:flex-start;max-width:100%;width:fit-content;padding:3px 8px;margin-top:5px;border:1px solid #c64a5550;border-radius:8px;color:#9d2131;background:#ffe3e8b8;font-size:11px;font-weight:600;line-height:1.4;white-space:normal;overflow-wrap:anywhere}

.orders-live-status{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#376e59;max-width:220px;line-height:1.4}.orders-live-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#21855b;flex-shrink:0}.orders-live-status[data-state="connecting"]{color:#64768e}.orders-live-status[data-state="connecting"]:before{background:#5389c6;animation:orders-live-pulse 1.2s ease-in-out infinite alternate}.orders-live-status[data-state="denied"]{color:#a24539}.orders-live-status[data-state="denied"]:before{background:#be5445}@media(max-width:760px){.orders-live-status{max-width:100%;flex-basis:100%}}

@keyframes orders-live-pulse{from{opacity:.45;transform:scale(.8)}to{opacity:1;transform:scale(1.15)}}
.order-stock-notice{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;margin:16px 0;border:1px solid #adc6dc70;border-radius:16px;background:#dcecff80;font-size:12px;line-height:1.5;min-width:0}.order-stock-notice.is-warning{border-color:#c5903760;background:#fff0cc65;color:#764a16}.order-stock-notice.is-ready{color:#236044;background:#d8f2e66b}.order-stock-notice>.button{flex-shrink:0;margin:0 0 0 auto;min-height:36px}.order-stock-content{flex:1;min-width:0}.order-stock-content>strong{font-size:13px}.order-stock-content ul{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:8px}.order-stock-content li{display:flex;justify-content:space-between;gap:16px;padding-top:8px;border-top:1px solid #c590372b}.order-stock-content li>div{min-width:0;overflow-wrap:anywhere}.order-stock-content li>span{flex-shrink:0}.order-stock-content small{display:block;opacity:.8}.order-stock-content p{margin:10px 0 0}.order-stock-content details{margin-top:10px}.order-stock-content summary{cursor:pointer;padding:6px 0;color:#075cff}@media(max-width:600px){.order-stock-notice{padding:12px;flex-wrap:wrap}.order-stock-content{flex-basis:100%}.order-stock-content li{gap:8px}.order-stock-notice>.button{margin-left:0}}
@media(prefers-reduced-motion:reduce){.orders-live-status:before{animation:none!important}}

.payment-method-settings-row{display:flex;align-items:center;gap:12px;margin:10px 0}.payment-method-settings-row>label{flex:1;min-width:0;margin:0}.payment-method-settings-row>.icon-btn{flex:none;width:40px;height:40px}

.notification-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #7898bd33}.notification-settings p{margin:6px 0 0}.notification-toolbar{display:flex;gap:12px;margin:16px 0}.notification-list{display:flex;flex-direction:column;gap:10px;margin:16px 0;max-height:52vh;overflow:auto}.notification-item{display:flex;gap:12px;align-items:flex-start;width:100%;padding:16px;border:1px solid #7898bd33;border-radius:16px;text-align:left;color:inherit;background:transparent;cursor:pointer}.notification-item>span:nth-child(2){flex:1;min-width:0}.notification-body{display:block;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.notification-item small{display:block;color:var(--muted)}.notification-dot{width:8px;height:8px;flex:none;margin-top:6px;border-radius:50%;background:transparent}.notification-item.unread .notification-dot{background:#075aff}.notification-link{display:block;margin-top:8px;color:#075aff}.has-notifications{position:relative}.has-notifications:after{content:'';position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%;background:#075aff}.orders-notification-toast{position:fixed;z-index:10000;right:20px;top:90px;max-width:430px;padding:18px;border-radius:20px;background:#d6e8fb;box-shadow:0 8px 32px #12345c30;display:flex;gap:12px;flex-wrap:wrap}.orders-notification-toast>div{flex-basis:100%;padding-right:24px;overflow-wrap:anywhere}.orders-notification-toast p{margin:8px 0}.orders-notification-toast>.icon-btn{position:absolute;right:10px;top:10px}body[data-mode=dark] .orders-notification-toast{background:#182745}@media(max-width:600px){.notification-settings{align-items:stretch;flex-direction:column}.notification-settings .button{width:100%;justify-content:center}.orders-notification-toast{left:12px;right:12px;top:70px;max-width:none}.notification-item{padding:12px}.notification-list{max-height:48vh}}

.notification-sound-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.notification-settings>div:first-child{min-width:0}.notification-settings .subline{max-width:420px}@media(max-width:600px){.notification-sound-actions{display:grid;grid-template-columns:1fr;width:100%}}

.writeoff-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}.writeoff-order-actions{justify-content:flex-end}.writeoff-form{display:grid;gap:20px}.writeoff-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.writeoff-fields .field-label{display:block;margin-bottom:8px}.writeoff-fields .writeoff-toolbar{margin:0}.writeoff-lines{display:grid;gap:14px}.writeoff-line{display:grid;grid-template-columns:minmax(160px,1fr) 112px 128px 44px;gap:12px;align-items:end;border-bottom:1px solid var(--line);padding-bottom:14px}.writeoff-line .field{margin:0}.writeoff-line .icon-btn{width:44px;height:44px;align-self:end}.writeoff-product{display:flex;align-items:center;gap:10px;min-width:0;align-self:center}.writeoff-product>div{min-width:0}.writeoff-product strong,.writeoff-product small{display:block;overflow-wrap:anywhere}.writeoff-product .button{margin-top:6px;max-width:100%;font-size:11px}.writeoff-line input{height:44px;box-sizing:border-box}.writeoff-product .product-photo-button{flex-shrink:0}@media(max-width:600px){.writeoff-fields{grid-template-columns:1fr}.writeoff-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:10px}.writeoff-product{grid-column:1/-1}.writeoff-order-actions .button{width:100%;justify-content:center}}
.dialog:has(.writeoff-form){width:min(900px,calc(100vw - 32px))}.writeoff-product>.product-photo-button{width:48px;height:48px;min-width:48px;max-width:48px;border-radius:10px;overflow:hidden}.writeoff-product .catalog-product-photo{width:48px;height:48px;object-fit:contain}.writeoff-number{min-width:0}.writeoff-fields .writeoff-toolbar{flex-wrap:nowrap}.writeoff-fields .writeoff-toolbar>.button{min-width:0;flex:1}.writeoff-fields .writeoff-toolbar>.button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.writeoff-fields .writeoff-toolbar>.icon-btn{flex:none}.writeoff-fields>div{min-width:0}
.writeoff-fields .writeoff-toolbar>.button{justify-content:space-between;text-align:left}.writeoff-fields .writeoff-toolbar>.button span{flex:1;text-align:left}.writeoff-fields .writeoff-toolbar>.button svg:last-child{flex:none;margin-left:auto}.writeoff-details{min-width:0}.writeoff-details p{overflow-wrap:anywhere;white-space:pre-wrap}.writeoff-details .data-table{width:100%;table-layout:fixed}.writeoff-details .data-table th:first-child,.writeoff-details .data-table td:first-child{width:60%;white-space:normal;overflow-wrap:anywhere}.dialog:has(.writeoff-details){width:min(960px,calc(100vw - 32px))}.writeoff-form textarea{min-height:110px}

.promotion-toolbar{display:flex;gap:12px;align-items:center;margin:20px 0}.promotion-toolbar .search-shell{flex:1;min-width:0;margin:0}.promotion-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:18px}.promotion-card{padding:22px;min-width:0;border-radius:22px;display:flex;flex-direction:column;gap:14px}.promotion-card h2{font-size:18px;margin:0;overflow-wrap:anywhere}.promotion-card p{font-size:13px;color:var(--muted);margin:0;overflow-wrap:anywhere}.promotion-card-top,.promotion-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.promotion-card-actions{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);justify-content:flex-start}.promotion-kind,.promotion-state{font-size:11px}.promotion-state{padding:5px 9px;border-radius:20px;background:rgba(100,120,150,.1)}.promotion-state[data-active=true]{color:#087348;background:rgba(30,160,95,.12)}.promotion-card-meta{display:flex;flex-wrap:wrap;gap:10px 16px;font-size:12px}.promotion-templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}.promotion-templates .option-card{display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:12px;padding:20px;min-height:165px}.promotion-templates small{color:var(--muted);font-size:12px;line-height:1.5}.promotion-templates svg{width:18px;margin-top:auto;align-self:flex-end}.promotion-editor{display:grid;gap:20px;margin-top:20px}.promotion-field{min-width:0}.promotion-field .input,.promotion-field input,.promotion-field textarea{width:100%;box-sizing:border-box}.promotion-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.promotion-editor .field-label{display:block;margin:0 0 8px}.promotion-section{border:1px solid var(--line);border-radius:18px;padding:0 18px}.promotion-section>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;padding:18px 0;font-weight:600;list-style:none}.promotion-section>summary::-webkit-details-marker{display:none}.promotion-section>summary svg{width:16px;flex:none}.promotion-section[open]>summary svg{transform:rotate(180deg)}.promotion-section-content{display:grid;gap:16px;padding:0 0 18px}.promotion-section-content p{margin:0}.promo-select{width:100%;justify-content:space-between;text-align:left}.promo-select>span{flex:1}.promotion-chips{display:flex;gap:8px;flex-wrap:wrap}.promotion-chips .chip{padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:transparent;color:inherit;cursor:pointer}.promotion-chips .chip.active{background:var(--primary,#1456ff);color:#fff}.promotion-products{display:grid;gap:12px}.promotion-product{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);border-radius:14px}.promotion-product>span{flex:1;min-width:0;overflow-wrap:anywhere}.promotion-product .promotion-field{max-width:170px}.promotion-product .icon-btn{flex:none;align-self:flex-end}.promotion-condition{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;padding:16px;border:1px solid var(--line);border-radius:14px;align-items:end}.promotion-condition>div:first-child .button{width:100%;justify-content:space-between;text-align:left}.promotion-condition-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:12px}.promotion-time{display:grid;grid-template-columns:minmax(0,160px) minmax(0,160px) 44px;gap:12px;align-items:end}.promotion-enable{display:grid;gap:10px;padding:18px;border-radius:16px;background:rgba(40,150,100,.07)}.supplier-create-form{display:grid;gap:14px;margin:20px 0}.supplier-create-form>.field-label{margin:0}.supplier-create-form input,.supplier-create-form textarea{width:100%;box-sizing:border-box}.promotion-editor .check-row{margin:8px 0}
@media(max-width:700px){.promotion-templates{grid-template-columns:1fr 1fr}.promotion-templates .option-card{min-height:145px;padding:16px}.promotion-toolbar{flex-wrap:wrap}.promotion-toolbar .search-shell{flex-basis:100%}.promotion-fields{grid-template-columns:1fr}.promotion-condition{grid-template-columns:1fr 1fr}.promotion-condition>div:first-child{grid-column:1/-1}.promotion-card{padding:18px}.promotion-section{padding:0 14px}.promotion-product{flex-wrap:wrap}.promotion-product>span{flex-basis:100%}.promotion-product .promotion-field{flex:1;max-width:none}}

.purchase-product-code{display:block;font-size:10px;font-weight:400;line-height:1.5;color:var(--muted);overflow-wrap:anywhere;margin-bottom:5px}.purchase-order-link,.purchase-filter-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:16px 0}.purchase-scan-tools{margin:18px 0;display:grid;gap:10px}.purchase-scan-input{display:grid;grid-template-columns:minmax(0,1fr) 44px auto;gap:12px;align-items:end}.purchase-scan-input .field-label{grid-column:1/-1}.purchase-scan-input .input{width:100%}.delivery-service-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.promotion-toolbar .button{flex-direction:row-reverse}@media(max-width:600px){.purchase-scan-input{grid-template-columns:minmax(0,1fr) 44px}.purchase-scan-input>.button:last-child{grid-column:1/-1}.purchase-order-link .field-label{width:100%}}

.purchase-scan-input input{height:44px;min-height:44px}.promotion-condition>div:first-child .button{flex-direction:row-reverse}

#order-list .number-cell{min-width:0;max-width:100%}
#order-list .order-number{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.native-order-payment{min-width:0;max-width:100%}
.native-order-payment .payment-method-cards{margin-bottom:14px}
.native-order-payment .native-payment-status{font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:12px 0 18px}
.native-order-payment .native-payment-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.native-order-payment .modal-footer{display:flex;flex-wrap:wrap;gap:10px}
.native-order-payment .modal-footer button{flex:1 1 150px;min-width:0;max-width:100%;white-space:normal;height:auto;min-height:48px;line-height:1.35}
.native-order-payment .native-payment-tools button{white-space:normal;height:auto;min-height:44px;max-width:100%}

#order-list button.order-items-preview-trigger{appearance:none;display:flex;align-items:center;justify-content:flex-start;gap:6px;width:max-content;max-width:100%;padding:3px;border:1px solid transparent;border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}
#order-list button.order-items-preview-trigger:hover,#order-list button.order-items-preview-trigger[aria-expanded=true]{background:rgba(255,255,255,.3);border-color:var(--line,rgba(105,150,198,.25))}
#order-list button.order-items-preview-trigger:focus-visible{outline:2px solid var(--accent,#075aff);outline-offset:3px}
.order-items-preview{position:fixed;z-index:1200;box-sizing:border-box;display:flex;flex-direction:column;width:min(420px,calc(100vw - 24px));max-height:min(460px,calc(100dvh - 24px));overflow:hidden;border:1px solid rgba(255,255,255,.72);border-radius:20px;background:color-mix(in srgb,var(--surface,#edf6ff) 90%,transparent);color:var(--ink,#152137);backdrop-filter:blur(24px) saturate(135%);-webkit-backdrop-filter:blur(24px) saturate(135%);box-shadow:0 16px 48px rgba(34,64,102,.2),inset 0 1px 0 rgba(255,255,255,.75);font-size:13px;line-height:1.45}
.order-items-preview>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line,rgba(105,150,198,.22));flex:none}
.order-items-preview>header>div{display:grid;gap:2px;min-width:0}.order-items-preview>header strong{font-size:14px}.order-items-preview>header small{color:var(--muted,#536a85);overflow-wrap:anywhere}.order-items-preview>header button{flex:none;width:30px;height:30px;min-width:30px;min-height:30px}
.order-items-preview-lines{list-style:none;margin:0;padding:0 16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0}
.order-items-preview-line{display:flex;align-items:flex-start;gap:10px;padding:13px 0;border-bottom:1px solid var(--line,rgba(105,150,198,.18))}.order-items-preview-line:last-child{border-bottom:0}
.order-items-preview-image{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:rgba(120,169,218,.12);overflow:hidden;flex:none;color:var(--muted,#536a85)}.order-items-preview-image img{width:100%;height:100%;object-fit:cover}.order-items-preview-image .icon{width:21px;height:21px}
.order-items-preview-detail{min-width:0;flex:1;display:grid;gap:5px}.order-items-preview-detail strong{font-weight:600;white-space:normal;overflow-wrap:anywhere}.order-items-preview-detail small{color:var(--muted,#536a85);font-size:11px;white-space:pre-line;overflow-wrap:anywhere}
.order-items-preview-quantity{flex:none;max-width:28%;font-weight:600;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere;text-align:end}.order-items-preview-empty{padding:20px 0;color:var(--muted,#536a85)}
.order-items-preview-error{margin:0;padding:10px 16px;color:var(--muted,#536a85);font-size:12px}
@media(max-width:760px){#order-list button.order-items-preview-trigger{min-height:36px}.order-items-preview{border-radius:16px}.order-items-preview>header{padding:12px}.order-items-preview-lines{padding:0 12px}}

.settings-grid>.panel:has(.appearance-control-panel){grid-column:1/-1}
.appearance-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:22px}.appearance-control-grid>section{min-width:0}.appearance-control-grid h3{font-size:14px;margin:0 0 16px}
.appearance-range{display:block;margin-top:17px;font-size:12px}.appearance-range>span{display:flex;justify-content:space-between;align-items:baseline;gap:12px;line-height:1.45}.appearance-range output{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}.appearance-range input[type=range]{display:block;width:100%;height:24px;min-height:24px;padding:0;margin:7px 0 0;accent-color:var(--blue,#075aff);cursor:pointer;box-shadow:none;border:0;background:transparent;touch-action:pan-y}.appearance-range:has(input:disabled){opacity:.45}.appearance-range input:disabled{cursor:default}
.appearance-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;min-height:38px;margin:10px 0}.appearance-toggle input{appearance:none;position:relative;flex:none;width:38px;height:22px;min-height:22px;border-radius:20px;margin:0;padding:0;border:1px solid var(--line);background:rgba(80,110,150,.2);cursor:pointer}.appearance-toggle input:before{content:'';display:block;width:16px;height:16px;border-radius:50%;background:white;position:absolute;top:2px;left:3px;box-shadow:0 1px 4px #26384d30}.appearance-toggle input:checked{background:var(--blue);border-color:var(--blue)}.appearance-toggle input:checked:before{left:17px}
.appearance-sample{display:grid;gap:14px;padding:22px;margin-top:24px;overflow:hidden}.appearance-sample-tag{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.appearance-sample>strong{font-size:19px}.appearance-sample>p{font-size:12px;line-height:1.6;color:var(--muted)}.appearance-sample-pill{justify-self:start;border:1px solid var(--line);border-radius:16px;padding:7px 12px;font-size:11px}.appearance-motion-note{margin-top:12px;line-height:1.5}.appearance-control-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.appearance-control-footer .button{flex:none}
body[data-glass-preset] #liquid-scene,body[data-glass-preset] .sg-pane{filter:hue-rotate(var(--appearance-hue,0deg)) saturate(var(--appearance-saturation,1)) brightness(var(--appearance-brightness,1))}
body[data-glass-preset] .sg-pane{opacity:var(--appearance-opacity,1)}
body[data-glass-mode=dark] .order-items-preview{background:rgba(17,29,48,.94)}
body[data-glass-mode=dark] .print-preview .sg-pane{filter:none;opacity:1}
@media(max-width:1100px){.appearance-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.appearance-control-grid>section:last-child{grid-column:1/-1}}
@media(max-width:760px){.appearance-control-grid{grid-template-columns:minmax(0,1fr);gap:26px}.appearance-control-grid>section+section{border-top:1px solid var(--line);padding-top:22px}.appearance-control-footer{align-items:stretch;flex-direction:column;gap:12px}.appearance-control-grid .appearance-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.appearance-range input[type=range]{height:32px}.appearance-sample{margin-top:18px}}

.catalog-advanced{margin:14px 0;padding:0 18px;border:1px solid var(--line);border-radius:20px}.catalog-advanced>summary{display:flex;align-items:center;gap:10px;padding:16px 0;cursor:pointer;font-weight:600;list-style:none}.catalog-advanced>summary::-webkit-details-marker{display:none}.catalog-filter-chevron{margin-left:auto;transition:transform .15s}.catalog-advanced[open] .catalog-filter-chevron{transform:rotate(180deg)}.catalog-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.catalog-filter-field{display:flex;flex-direction:column;gap:8px;font-size:12px;min-width:0}.catalog-filter-field input,.catalog-filter-field select{width:100%;min-width:0;min-height:42px}.catalog-filter-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:4px 0 18px}.catalog-filter-actions .subline{flex:1;min-width:180px}.catalog-brand-hint{margin:12px 0;line-height:1.5}.purchase-create-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.purchase-create-toolbar .subline{font-size:12px}@media(max-width:760px){.catalog-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-filter-field:first-child{grid-column:1/-1}.catalog-filter-actions .subline{flex-basis:100%}}@media(max-width:420px){.catalog-filter-grid{grid-template-columns:minmax(0,1fr)}}
.catalog-filter-field input,.catalog-filter-field select{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:rgba(255,255,255,.16);color:var(--text,#172b4d);font:inherit;outline-offset:3px}.catalog-filter-field input:focus,.catalog-filter-field select:focus{outline:2px solid var(--blue,#075aff)}

/* Location settings and compact page toolbars, 2026-10-22 */
.warehouse-heading-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.page-heading:has(.warehouse-heading-actions){align-items:flex-start}.heading-actions:has(.warehouse-heading-actions){margin-left:auto}
.team-access-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.team-access-heading h3{margin:0}.team-access-heading [data-team-action="apps-access"]{margin-left:auto;flex-shrink:0}
.transactions-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0}.transactions-controls .transactions-tabs{display:contents;margin:0}.transactions-controls [data-transaction-action="accounts"]{order:3}.transactions-controls .transactions-toolbar{flex:1 1 420px;margin:0;padding:12px}.transactions-controls .transactions-account-hints{order:2;margin:0 0 0 auto;justify-content:flex-end;max-width:380px}.transactions-controls .transactions-account-hints span{white-space:normal}
.page-heading:has(+ .catalog-controls){padding-bottom:8px}.catalog-controls{margin-top:0}
.settings-grid:empty,.catalog-toolbar:empty,.toolbar:empty,.commercial-actions:empty{display:none!important}.settings-grid + .block{margin-top:18px}.location-settings .field-shell{max-width:220px}#location-shift-end{font-variant-numeric:tabular-nums;width:100%;padding:12px}
@media(max-width:760px){.transactions-controls .transactions-account-hints{max-width:100%;width:100%}.warehouse-heading-actions{justify-content:flex-start}.page-heading:has(.warehouse-heading-actions){flex-wrap:wrap}}

/* Compact inventory spacing, 2026-10-22 */
.layout:has(> .main > .stock-filters){margin-top:8px}
.main:has(> .stock-filters){padding-top:0}
.main:has(> .stock-filters) > .page-heading{padding:0 0 6px}
.main:has(> .stock-filters) > .page-heading .eyebrow{display:none}
.main:has(> .stock-filters) > .page-heading h1{margin:0 0 4px}
.main > .stock-filters{margin:0 0 8px!important}
.main:has(> .stock-filters) > .stock-toolbar{margin:0 0 10px!important}

/* Write-off and Team controls in page headings, 2026-10-22 */
.main:has(> .writeoff-toolbar){display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:12px;row-gap:12px}
.main:has(> .writeoff-toolbar) > .page-heading{display:contents}
.main:has(> .writeoff-toolbar) > .page-heading > div:first-child{grid-column:1;grid-row:1;min-width:0}
.main:has(> .writeoff-toolbar) > .page-heading > .heading-actions{grid-column:3;grid-row:1;align-self:center;margin:0}
.main:has(> .writeoff-toolbar) > .writeoff-toolbar{grid-column:2;grid-row:1;justify-self:end;align-self:center;margin:0}
.main:has(> .writeoff-toolbar) > .panel{grid-column:1/-1}
.order-team-page{display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:12px;row-gap:16px}
.order-team-page > .team-head{display:contents}
.order-team-page > .team-head > div:first-child{grid-column:1;grid-row:1;min-width:0}
.order-team-page > .team-head > .team-refresh{grid-column:3;grid-row:1;align-self:center}
.order-team-page > .team-tabs{grid-column:2;grid-row:1;align-self:center;justify-content:flex-end;margin:0}
.order-team-page > .team-content{grid-column:1/-1}
@media(max-width:900px){
.main:has(> .writeoff-toolbar){grid-template-columns:minmax(0,1fr) auto}
.main:has(> .writeoff-toolbar) > .page-heading > div:first-child{grid-column:1/-1}
.main:has(> .writeoff-toolbar) > .page-heading > .heading-actions{grid-column:2;grid-row:2}
.main:has(> .writeoff-toolbar) > .writeoff-toolbar{grid-column:1;grid-row:2}
.order-team-page > .team-head > div:first-child{grid-column:1/-1}
.order-team-page > .team-head > .team-refresh{grid-column:3;grid-row:2}
.order-team-page > .team-tabs{grid-column:1/3;grid-row:2;flex-wrap:wrap}
}
@media(max-width:520px){
.main:has(> .writeoff-toolbar){grid-template-columns:minmax(0,1fr)}
.main:has(> .writeoff-toolbar) > .page-heading > .heading-actions{grid-column:1;grid-row:3;justify-self:end}
.main:has(> .writeoff-toolbar) > .writeoff-toolbar{grid-column:1;grid-row:2}
.order-team-page{grid-template-columns:minmax(0,1fr) auto}
.order-team-page > .team-head > .team-refresh{grid-column:2;grid-row:2}
.order-team-page > .team-tabs{grid-column:1;grid-row:2;justify-content:flex-start}
}

/* Keep related location controls together and avoid half-empty settings rows. */
.settings-grid>.location-settings{padding:20px;box-sizing:border-box;min-width:0;align-self:start}
.location-settings>h3,.location-status-inline>h3{margin:0 0 8px;font-size:15px}
.location-settings>p,.location-status-inline>p{margin:8px 0 12px}
.location-status-inline{margin-top:16px;padding-top:16px;border-top:1px solid var(--line,rgba(70,120,170,.18))}
.settings-grid>.age-policy-card{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:16px;row-gap:6px;align-items:center}
.settings-grid>.age-policy-card>.section-top{display:contents}
.age-policy-card>.section-top>h2{grid-column:1;grid-row:1}
.age-policy-card>.section-top>.age-policy-switch{grid-column:2;grid-row:1}
.settings-grid>.age-policy-card>.age-policy-controls{grid-column:3;grid-row:1;min-height:0;align-items:center;gap:16px}
.settings-grid>.age-policy-card>.age-policy-note{grid-column:1/-1;grid-row:2;margin:0}
.age-policy-card>.inline-error{grid-column:1/-1}
@media(max-width:700px){.settings-grid>.age-policy-card{grid-template-columns:minmax(0,1fr) auto}.settings-grid>.age-policy-card>.age-policy-controls{grid-column:1/-1;grid-row:2;justify-content:flex-end}.settings-grid>.age-policy-card>.age-policy-note{grid-row:3}.settings-grid>.location-settings{padding:18px}}


/* Place the two location editors side by side within the shared card. */
.settings-grid>.location-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;align-items:start}
.location-settings>h3,.location-settings>p,.location-settings>button{grid-column:1}
.location-settings>button{justify-self:start}
.location-settings>.location-status-inline{grid-column:2;grid-row:1/5;margin:0;padding:0 0 0 20px;border-top:0;border-left:1px solid var(--line,rgba(70,120,170,.18))}
@media(max-width:700px){.settings-grid>.location-settings{grid-template-columns:minmax(0,1fr)}.location-settings>.location-status-inline{grid-column:1;grid-row:auto;margin-top:16px;padding:16px 0 0;border-left:0;border-top:1px solid var(--line,rgba(70,120,170,.18))}}

#select-menu .location-currency-search{box-sizing:border-box;width:100%;min-height:42px;margin:0 0 8px;padding:10px 12px;border:1px solid var(--line,rgba(70,120,170,.25));border-radius:12px;background:rgba(245,250,255,.8);color:var(--text,#172442);font:inherit}
#select-menu:has(.location-currency-search) .select-scroll{max-height:min(300px,calc(100vh - 160px))}
#select-menu .select-option[hidden],#select-menu .location-currency-empty[hidden]{display:none!important}
#select-menu .location-currency-empty{margin:10px 6px;font-size:12px}


.location-full-form{display:grid;gap:10px}.location-group{border:1px solid var(--line);border-radius:16px;padding:0 16px}.location-group>summary{cursor:pointer;padding:15px 0;font-weight:650;list-style:none;display:flex;justify-content:space-between;align-items:center}.location-group>summary::after{content:'⌄';margin-left:16px}.location-group[open]>summary::after{transform:rotate(180deg)}.location-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-bottom:16px}.location-field-wrap{min-width:0}.location-field,.location-field-wrap>div.location-field{display:grid;gap:7px;min-width:0}.location-field .input{width:100%;box-sizing:border-box;min-height:42px}.location-field .field-label{margin:0}.location-field>[data-act=location-field-pick]{justify-content:space-between;min-width:0;max-width:100%;text-align:left;width:100%}.location-field>[data-act=location-field-pick]>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-field>[data-act=location-field-pick]>.icon{flex-shrink:0;margin-left:auto}.location-check{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;box-sizing:border-box}.location-check input{width:18px;height:18px;accent-color:var(--blue);flex-shrink:0}.location-span{grid-column:1/-1}.location-nested{min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px;margin:0}.location-nested>legend{padding:0 6px;font-weight:600}.location-nested .location-form-grid{padding-bottom:0}.location-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.location-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;margin-top:8px}.location-list-row>div{min-width:0}.location-list-row>.button{min-height:38px;padding:0 10px}.location-list-row .location-nested{background:transparent}.location-full-form .subline{line-height:1.5}.dialog:has(.location-full-form) .modal-footer{position:sticky;bottom:-24px;padding-top:14px;padding-bottom:8px;background:var(--surface,#deecfa);z-index:2}.location-currency-search{width:100%;box-sizing:border-box;margin:0 0 8px}.select-menu:has(.location-currency-search) .select-scroll{max-height:min(300px,calc(100dvh - 160px))}.select-menu:has(.location-currency-search) [hidden]{display:none!important}@media(max-width:650px){.location-form-grid{grid-template-columns:minmax(0,1fr)}.location-group{padding:0 10px}.location-nested{padding:10px}.location-list-row{grid-template-columns:minmax(0,1fr)}.location-list-row>.button{justify-self:end}.location-span{grid-column:auto}}
.dialog:has(.location-full-form){width:min(1000px,calc(100vw - 32px));max-width:1000px}.location-full-form .location-field .input{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:rgba(235,245,255,.3);color:var(--ink);font:inherit;box-sizing:border-box}.location-full-form .location-nested{box-sizing:border-box}

/* Mobile Orders: keep the primary action readable and all header controls reachable. */
@media (max-width:760px){
  .app-frame .app-header{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:6px;padding:8px;min-width:0}
  .app-frame .app-header>.mobile-menu{grid-column:1;grid-row:1;width:44px;min-width:44px;height:44px}
  .app-frame .app-header>.brand{grid-column:2;grid-row:1;min-width:0;max-width:100%;width:auto}
  .app-frame .app-header .suite-brand-mark{width:32px;height:32px}
  .app-frame .app-header .suite-brand-copy{min-width:0;overflow:hidden}
  .app-frame .app-header .suite-current-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .app-frame .app-header>.header-actions{grid-column:3;grid-row:1;margin:0;gap:4px;min-width:0}
  .app-frame .app-header .avatar{width:44px;min-width:44px;height:44px;flex-basis:44px}
  .app-frame .app-header>.header-location{grid-column:1/-1;grid-row:2;min-width:0;max-width:100%}
  .app-frame .app-header>.header-location>.button{width:100%;max-width:100%;justify-content:flex-start}
  .app-frame .app-header>.header-location>.button span{min-width:0;white-space:nowrap}
  /* Orders already has the location selector beside its filters. */
  .app-frame:has(#order-list) .app-header>.header-location{display:none!important}
  #page-content:has(#order-list)>.page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center}
  #page-content:has(#order-list)>.page-heading>div:first-child{grid-column:1;grid-row:1;min-width:0}
  #page-content:has(#order-list)>.page-heading>.heading-actions{display:contents}
  #page-content:has(#order-list)>.page-heading .orders-live-status{grid-column:1/-1;grid-row:2;min-width:0;max-width:100%;flex-basis:auto;overflow-wrap:normal}
  #page-content:has(#order-list)>.page-heading [data-act="new-order"]{grid-column:2;grid-row:1;width:max-content;min-height:44px;white-space:nowrap}
  #page-content:has(#order-list)>.page-heading [data-act="new-order"] span{white-space:nowrap;overflow-wrap:normal;word-break:normal}
}
@media (max-width:370px){
  .app-frame .app-header .sabsus-suite-trigger>.suite-brand-copy>small{display:none!important}
}

.shift-journal-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 16px}.shift-journal-toolbar>.tabs{margin:0;flex:none}.shift-journal-filters{display:flex;flex-wrap:wrap;align-items:end;justify-content:flex-end;gap:8px;flex:1;min-width:0}.shift-journal-filters label{display:grid;gap:5px;min-width:115px;flex:1;color:var(--muted,#526c91);font-size:12px}.shift-journal-filters select,.shift-journal-filters input{box-sizing:border-box;min-width:0;width:100%;height:42px;padding:8px 10px;border:1px solid rgba(80,130,190,.22);border-radius:12px;background:rgba(255,255,255,.25);color:var(--text,#172b49);font:inherit;font-size:13px}.shift-journal-filters select[data-shift-filter=employee]{max-width:240px}.shift-journal-filters .button{height:42px;white-space:nowrap}.shift-filter-summary{flex-basis:100%;text-align:right;margin:0!important}.shift-filter-empty{padding:24px;text-align:center;color:var(--muted,#526c91)}@media(max-width:700px){.shift-journal-filters{flex-basis:100%;justify-content:start}.shift-journal-filters label{flex:1 1 135px}.shift-journal-filters select[data-shift-filter=employee]{max-width:none}.shift-filter-summary{text-align:left}}
.stock-journal-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:14px;margin-bottom:16px;border-radius:18px}.stock-journal-filters label{display:grid;gap:6px;font-size:12px;min-width:135px;flex:1}.stock-journal-filters label:has(select){flex:2;min-width:180px}.stock-journal-filters input,.stock-journal-filters select{box-sizing:border-box;width:100%;min-width:0;height:44px;border:1px solid rgba(80,130,190,.22);border-radius:12px;padding:8px 10px;background:rgba(255,255,255,.2);color:inherit;font:inherit}.stock-journal-filters button{height:44px;white-space:nowrap}.supply-row-actions{white-space:nowrap}.supply-row-actions>div{display:inline-flex!important;gap:6px;flex-wrap:nowrap!important;margin:0 0 0 6px!important}.supply-row-actions>button{display:inline-flex;margin:0}.detail-heading{flex-wrap:wrap!important}.detail-heading>div:first-child{flex:1 1 100%;min-width:0}.detail-heading .detail-title{width:100%;display:flex;gap:12px;align-items:center;flex-wrap:nowrap}.detail-heading .detail-title h1{flex:1;min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal}.detail-heading .detail-title>.status-badge,.detail-heading .detail-title>.status-pill,.detail-heading .detail-title>.badge{margin-left:auto;flex:none}.detail-heading>.heading-actions{margin-left:auto;flex-wrap:wrap;max-width:100%}@media(max-width:550px){.detail-heading .detail-title h1{font-size:24px}.stock-journal-filters label{flex-basis:135px}.stock-journal-filters label:has(select){flex-basis:100%}.supply-row-actions{white-space:normal}.supply-row-actions>div{flex-wrap:wrap!important}}
.journal-advanced-filters{position:relative;min-width:130px}.journal-advanced-filters>summary{box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;padding:10px 14px;border:1px solid rgba(80,130,190,.22);border-radius:12px;list-style:none;white-space:nowrap;background:rgba(255,255,255,.2)}.journal-advanced-filters>summary::after{content:'⌄';margin-left:auto}.journal-advanced-filters[open]>summary::after{content:'⌃'}.journal-advanced-content{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:12px}.journal-advanced-filters[open]{flex-basis:100%}.journal-advanced-content label{flex:1 1 145px;min-width:0}.shift-journal-filters>label{max-width:200px}.compact-request-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px!important}.compact-request-filters>#purchase-list-search{width:auto!important;min-width:200px;flex:1}.compact-request-filters>.journal-advanced-filters[open]{flex:1 1 100%}.compact-request-filters .journal-advanced-content{display:block}.stock-journal-filters>.journal-advanced-filters[open]{order:4}.stock-journal-filters .stock-date-filters{min-width:190px}.detail-heading .detail-title>:last-child:not(h1){margin-left:auto;flex-shrink:0}.stock-journal-filters>label{max-width:420px}@media(max-width:600px){.compact-request-filters>#purchase-list-search{flex-basis:100%}.journal-advanced-content label{flex-basis:130px}}

/* Compact order heading: metadata alongside title. */
.page-heading.detail-heading{display:flex;gap:8px;padding:0 0 12px}
.detail-heading>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,auto) auto;align-items:center;gap:12px}
.detail-heading .detail-title{display:contents}
.detail-heading .detail-title>.icon-btn{grid-column:1;grid-row:1}
.detail-heading .detail-title h1{grid-column:2;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis}
.detail-heading .detail-title>.state-pill{grid-column:4;grid-row:1;margin:0}
.detail-heading .detail-meta{grid-column:3;grid-row:1;justify-content:flex-end;align-items:center;flex-wrap:nowrap;margin:0;min-width:0;gap:12px}
.detail-heading .detail-meta>span{white-space:nowrap;min-width:0}
.detail-heading .detail-meta>span:last-child{max-width:24ch;overflow:hidden;text-overflow:ellipsis;display:block}
.detail-heading .detail-meta>span:last-child>.icon{display:inline-block;vertical-align:-2px;margin-right:5px}
.detail-heading>.heading-actions{margin:0 0 0 auto;gap:8px;justify-content:flex-end}
.detail-heading+.timeline-steps{margin-bottom:8px}
@media(max-width:800px){
  .detail-heading>div:first-child{grid-template-columns:auto minmax(0,1fr) auto;gap:8px 10px}
  .detail-heading .detail-title>.state-pill{grid-column:3}
  .detail-heading .detail-meta{grid-column:1/-1;grid-row:2;justify-content:flex-end;gap:10px}
  .detail-heading>.heading-actions{width:100%;justify-content:flex-start}
  .detail-heading>.heading-actions .button{flex:0 1 auto;white-space:nowrap;overflow-wrap:normal;word-break:normal}
}

.order-courier-control{display:flex;align-items:center;gap:6px;min-width:0}.order-courier-control>.order-delivery-cell-button,.order-courier-control>.delivery-select{flex:1;min-width:0;width:auto}.order-courier-control>[data-act="order-courier-clear"]{flex:none;width:32px;height:32px;min-width:32px;min-height:32px;padding:6px}.order-courier-control>[data-act="order-courier-clear"] svg{width:17px;height:17px}

.ov-payment-lines[data-payment-breakdown]{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--line,rgba(90,140,210,.2))}.ov-payment-method>span{min-width:0;overflow-wrap:anywhere}.ov-payment-method small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.5}.ov-payment-lines>div>strong{white-space:nowrap;font-variant-numeric:tabular-nums}

/* Keep order controls reachable even when the saved columns exceed the viewport. */
@media(min-width:761px){
 #page-content .order-columns-ready .order-head,
 #page-content .order-columns-ready .order-row{isolation:isolate}
 #page-content .order-columns-ready [data-order-column=actions],
 #page-content .order-columns-ready [data-order-column=age]:not(.order-column-hidden),
 #page-content .order-columns-ready [data-order-column=status]:not(.order-column-hidden){position:sticky;z-index:2;align-self:stretch;display:flex;align-items:center;background:transparent;box-shadow:none}
 /* Clip only the text sliding behind pinned controls; keep the panel background intact. */
 #page-content .order-controls-overlap [data-order-column]:not([data-order-column=actions]):not([data-order-column=age]):not([data-order-column=status]){clip-path:inset(0 clamp(0px,calc(var(--order-column-end) - var(--order-controls-boundary)),100%) 0 0)}
 #page-content .order-columns-ready [data-order-column=actions]{right:0;width:104px;flex-wrap:wrap;justify-content:flex-end;align-content:center;gap:4px}
 #page-content .order-columns-ready [data-order-column=actions] .icon-btn{width:44px;height:44px;min-width:44px;flex:none}
 #page-content .order-columns-ready [data-order-column=age]:not(.order-column-hidden){right:116px}
 #page-content .order-columns-ready [data-order-column=status]:not(.order-column-hidden){right:var(--order-status-right,116px)}
 #page-content .order-columns-ready .order-head>[data-order-column]{min-height:24px}
}

/* Shared page rhythm; keep controls readable when the workspace narrows. */
#page-content{min-width:0}
#page-content .page-heading:not(.detail-heading){min-height:0;padding:0 0 14px;gap:12px;align-items:center}
#page-content :is(.page-heading,.transactions-head,.team-head) .eyebrow{display:none}
#page-content :is(.page-heading,.transactions-head,.team-head) h1{margin:0;font-size:clamp(26px,2.4vw,32px);line-height:1.16}
#page-content :is(.page-heading,.transactions-head,.team-head) p{margin:6px 0 0;line-height:1.5}
#page-content .page-heading>.heading-actions{min-width:0;max-width:100%;flex-wrap:wrap;gap:8px}
#page-content :is(.toolbar,.section-top,.heading-actions,.transactions-actions)>.button{word-break:normal;overflow-wrap:normal}
#page-content :is(.settings-grid,.settings-grid>.panel,.settings-grid .vstack){min-width:0}
#page-content .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
#page-content .settings-grid>section{min-width:0;margin:0}
#page-content .settings-grid>.email-verification-card{grid-column:1/-1}
#page-content .settings-grid>.panel:has(.appearance-control-panel){grid-column:1/-1}
#page-content .settings-grid>.panel>.section-top{margin-bottom:12px}
#page-content .settings-grid>.panel>.vstack{gap:10px}
#page-content .settings-grid>.panel>.vstack>.field-label{margin:0}
#page-content .settings-grid .modal-footer{margin-top:12px;padding-top:12px}
/* Age controls now have two switches: the former three-column layout left holes. */
#page-content .settings-grid>.age-policy-card{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
#page-content .age-policy-card>.section-top{display:flex;flex-basis:100%;margin:0}
#page-content .age-policy-card>div:nth-child(2){display:flex!important;flex:1 1 400px;flex-wrap:wrap;gap:16px!important}
#page-content .age-policy-card>.age-policy-note{order:4;flex-basis:100%;margin:0}
#page-content .age-policy-card>.button{margin-left:auto}
#page-content .age-policy-card>.inline-error:empty{display:none}
#page-content .age-policy-card .age-policy-switch{min-width:0;text-align:left}
#page-content .age-policy-card .age-policy-switch>span:last-child{white-space:normal}
/* A filter panel inserted after the heading must span the journal grid. */
#page-content:has(>.writeoff-toolbar)>.stock-journal-filters{grid-column:1/-1;margin:0}
#page-content:has(>.writeoff-toolbar){row-gap:12px;align-content:start}
#page-content:has(>.writeoff-toolbar)>.page-heading>.heading-actions{padding:0}
#page-content .stock-journal-filters{gap:8px;padding:12px}
#page-content .stock-journal-filters>label{min-width:0;flex:1 1 150px}
#page-content .stock-journal-filters>.journal-advanced-filters{min-width:0;flex:1 1 145px}
#page-content .stock-journal-filters>.journal-advanced-filters[open]{flex-basis:100%}
#page-content .stock-journal-filters .stock-date-filters{min-width:0}
#page-content .stock-filters>.field-label,#page-content .stock-filters .field-label,#page-content .stock-toolbar .field-label{margin:0 0 6px}
#page-content>.stock-filters{gap:10px!important}
#page-content>.stock-toolbar{gap:10px}
#page-content>.panel>.empty{min-height:160px;padding:24px 16px;gap:8px}
#page-content>.panel>.empty :is(h3,p){margin:0}
/* Keep Finance tabs together, including when its filters wrap. */
#page-content .order-transactions-page{gap:14px}
#page-content .transactions-controls{margin:0;gap:10px}
#page-content .transactions-controls .transactions-tabs{display:flex;flex:none;gap:8px;margin:0}
#page-content .transactions-controls .transactions-tabs>button{order:initial}
#page-content .transactions-toolbar>label{flex:1 1 145px;min-width:0}
#page-content .transactions-account-grid{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
@media(max-width:1100px){
  #page-content .settings-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px){
  #page-content .page-heading:not(.detail-heading){flex-wrap:wrap}
  #page-content .page-heading>.heading-actions{margin-top:10px}
  #page-content:has(>.writeoff-toolbar)>.page-heading>.heading-actions{margin-top:0}
}
@media(max-width:760px){
  #page-content .page-heading:not(.detail-heading){padding-bottom:12px}
  #page-content .page-heading>.heading-actions{justify-content:flex-start}
  #page-content .settings-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  #page-content .settings-grid>.age-policy-card{grid-column:1/-1}
  #page-content>.stock-filters>div{flex-basis:130px!important}
  #page-content .shift-journal-filters{align-items:end;gap:8px}
  #page-content .shift-journal-filters>label{flex:1 1 125px;max-width:none;min-width:0}
  #page-content .shift-journal-filters>.journal-advanced-filters{flex:1 1 160px;min-width:0}
  #page-content .shift-journal-filters>.journal-advanced-filters[open]{flex-basis:100%}
  #page-content .transactions-controls .transactions-tabs{flex-basis:100%}
  #page-content .transactions-controls .transactions-toolbar{flex-basis:100%}
  #page-content .transactions-head{gap:12px}
  #page-content .settings-grid .button{max-width:100%}
}
@media(max-width:520px){
  #page-content:has(>.writeoff-toolbar){grid-template-columns:44px minmax(0,1fr);column-gap:8px}
  #page-content:has(>.writeoff-toolbar)>.page-heading>div:first-child{grid-column:1/-1}
  #page-content:has(>.writeoff-toolbar)>.page-heading>.heading-actions{grid-column:2;grid-row:2;justify-self:end}
  #page-content:has(>.writeoff-toolbar)>.writeoff-toolbar{grid-column:1;grid-row:2;justify-self:start}
  #page-content .stock-journal-filters>label:has(select){flex-basis:145px}
  #page-content .stock-journal-filters>button{flex:1 1 auto}
  #page-content .transactions-toolbar>label{flex-basis:130px}
  #page-content .transactions-toolbar>button{margin-left:auto}
}

/* ORDERS_DELIVERY_DEFAULT_20261114 */
/* The glass painter must not erase the selected option's contrasting surface. */
.select-option.selected,.select-option.selected.glass-painted,.glass-off .select-option.selected{background:#0754d6!important;color:#fff!important;isolation:isolate}
.select-option.selected>span,.select-option.selected>.icon{position:relative;z-index:1;color:inherit;opacity:1}
.select-option.selected canvas{opacity:0!important}
.select-option.selected::before,.select-option.selected::after{opacity:0!important}

.courier-qr-location {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block-end: 16px;
}
.courier-qr-location > select {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 600px) {
  .courier-qr-location {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .courier-qr-location > select {
    width: 100%;
  }
}

