@import url('https://fonts.googleapis.com/css?family=Fira+Sans+Extra+Condensed');
:root{--bg:var(--tpl-3,#f3f6f9);--panel:var(--tpl-4,#fff);--ink:var(--tpl-5,#182230);--muted:#667085;--line:#dfe5ec;--primary:var(--tpl-2,#1267b1);--primary2:var(--tpl-1,#0a4d87);--pos-her-bg:#d9f3fb;--pos-ath-bg:#fff3c4;--her:var(--pos-her-bg);--ath:var(--pos-ath-bg);--danger:#b42318;--ok:var(--success,#067647);--warn:var(--alert,#b54708);--shadow:0 10px 28px rgba(16,24,40,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit}.topbar{min-height:50px;background:var(--tpl-1,#102a43);color:#fff;display:flex;align-items:center;padding:0 20px;gap:22px;position:sticky;top:0;z-index:20;box-shadow:0 2px 14px #0002}.brand{display:flex;align-items:center;gap:0;min-width:auto;flex:0 0 auto}.brand .mark,.loginbrand .mark{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#fff;color:#102a43;font-size:22px;font-weight:900}.brand strong{display:block;font-size:17px;letter-spacing:.3px}.brand small{display:block;color:#b8c9d8;font-size:12px}.mainnav{display:flex;align-self:stretch;overflow:auto}.mainnav a{color:#d6e1ea;display:flex;align-items:center;padding:0 13px;border-bottom:3px solid transparent;white-space:nowrap}.mainnav a:hover,.mainnav a.active{color:#fff;background:#ffffff0c;border-bottom-color:#63b3ff}.userbox{margin-left:auto;text-align:right;display:grid;grid-template-columns:auto auto;column-gap:12px;align-items:center}.userbox span,.userbox small{grid-column:1}.userbox small{color:#abc0d2}.userbox a{grid-column:2;grid-row:1/3;color:#fff;border:1px solid #ffffff44;padding:7px 10px;border-radius:8px}.shell{max-width:1500px;margin:0 auto;padding:24px}.pagehead{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:18px}.pagehead h1{margin:0;font-size:29px}.pagehead p{margin:5px 0 0;color:var(--muted)}.back{display:inline-block;margin-bottom:4px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.cards.mini{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));padding:16px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:16px;box-shadow:var(--shadow);color:var(--ink)}.stat span{display:block;color:var(--muted);font-size:14px}.stat strong{display:block;font-size:28px;margin-top:4px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);margin-bottom:18px;overflow:hidden}.panelhead{padding:15px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.panelhead h2{font-size:16px;margin:0}.panelhead button{border:0;background:#eef5fb;color:var(--primary);padding:7px 10px;border-radius:8px;cursor:pointer}.panelpad{padding:16px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ordercols{grid-template-columns:minmax(0,2fr) minmax(300px,1fr)}.stockcards{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.stockcard{border:1px solid var(--line);border-radius:12px;padding:16px}.stockcard b{font-size:18px}.stockcard span{display:block;color:var(--muted)}.stockcard strong{display:block;font-size:30px;margin-top:12px}.stockcard small{color:var(--muted)}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:10px 12px;border-bottom:1px solid #edf0f4;text-align:left;white-space:nowrap}th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#657184;background:#f8fafc;position:sticky;top:0}tbody tr:hover{background:#f9fbfd}.num{text-align:right}.sub{display:block;color:var(--muted);font-size:12px;margin-top:2px}.stocknum{font-size:16px;font-weight:800}.stocknum.low{color:var(--danger)}.loc-her{box-shadow:inset 4px 0 0 #62b77a}.loc-ath{box-shadow:inset 4px 0 0 #6b9fe5}.pill{display:inline-block;border-radius:999px;background:#edf2f7;padding:3px 8px;font-weight:800;font-size:12px}.pill.her{background:var(--her);color:#176634}.pill.ath{background:var(--ath);color:#245eaa}.badge{display:inline-block;padding:4px 8px;border-radius:7px;font-size:12px;font-weight:800;background:#eef2f6;color:#475467}.badge.big{font-size:14px;padding:7px 12px}.badge.ok{background:#dcfae6;color:var(--ok)}.badge.danger{background:#fee4e2;color:var(--danger)}.badge.warn{background:#fef0c7;color:var(--warn)}.badge.info{background:#e0f2fe;color:#075985}.badge.muted{background:#eef2f6;color:#475467}.tabs{display:flex;gap:6px;margin-top:10px}.tabs a{padding:6px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#475467}.tabs a.active{background:var(--tpl-1,#102a43);color:#fff;border-color:#102a43}.search{display:flex;gap:8px;flex-wrap:wrap}.search input{min-width:270px}.search input,.search select,input,select,textarea{border:1px solid #cfd7e2;border-radius:8px;padding:9px 10px;background:#fff}.search button,button.primary{border:0;border-radius:8px;padding:9px 14px;background:var(--primary);color:#fff;font-weight:800;cursor:pointer}.search button:hover,button.primary:hover{background:var(--primary2)}.actions{display:flex;gap:8px}.drawer{background:#f8fafc;border-bottom:1px solid var(--line);padding:16px}.hidden{display:none!important}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px}.formgrid .span2{grid-column:1/-1}.formgrid label{display:block;font-weight:700;font-size:14px;margin-bottom:4px}.formgrid input,.formgrid select,.formgrid textarea{width:100%}.filters{margin-bottom:12px}.notice{border:1px solid #b2ddff;background:#eff8ff;color:#175cd3;border-radius:10px;padding:12px 14px;margin-bottom:16px}.notice.small{margin:12px}.hintline{color:var(--muted);padding:0 15px 15px;margin:0}.statusform{display:flex;gap:8px;padding:15px}.statusform select{flex:1}.timeline{list-style:none;margin:0;padding:8px 16px 16px}.timeline li{padding:10px 0;border-bottom:1px solid #edf0f4}.timeline span{display:block;color:var(--muted);font-size:12px}.checklist{padding:8px 20px 0;list-style:"✓  "}.checklist li{margin:8px 0}.confirmimport{padding:16px;display:flex;gap:12px;align-items:center}.dangerbtn{background:#b42318!important}.flash{padding:11px 14px;border-radius:9px;margin-bottom:14px}.flash.success{background:#dcfae6;color:var(--success,#067647)}.flash.error{background:#fee4e2;color:#b42318}.flash.warning{background:#fef0c7;color:var(--alert,#b54708)}.footer{padding:20px 0 5px;color:#98a2b3;text-align:center;font-size:12px}.orderlink{font-weight:900}.loginbody{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 10%,#d9ebfb,#f2f5f8 44%,#e7edf3)}.loginbox{width:min(92vw,390px);background:#fff;border:1px solid #dfe5ec;border-radius:18px;padding:28px;box-shadow:0 28px 70px #0f294226}.loginbrand{text-align:center;margin-bottom:22px}.loginbrand .mark{background:var(--tpl-1,#102a43);color:#fff;margin-bottom:10px}.loginbrand h1{margin:0}.loginbrand p{color:var(--muted);margin:4px 0}.loginbox label{display:block;font-weight:800;font-size:14px;margin:12px 0 5px}.loginbox input{width:100%}.widebtn{width:100%;margin-top:18px;padding:11px!important}.version{display:block;text-align:center;color:#98a2b3;margin-top:18px}
@media(max-width:950px){.topbar{height:auto;min-height:64px;flex-wrap:wrap;padding:10px 14px}.mainnav{order:3;width:100%;height:44px}.userbox{margin-left:auto}.shell{padding:14px}.cards{grid-template-columns:1fr 1fr}.twocol,.ordercols{grid-template-columns:1fr}.pagehead{align-items:flex-start;flex-direction:column}.search{width:100%}.search input{min-width:0;flex:1}.formgrid{grid-template-columns:1fr}.formgrid .span2{grid-column:auto}}
@media(max-width:560px){.cards{grid-template-columns:1fr}.stockcards{grid-template-columns:1fr}.brand{min-width:auto}.userbox span,.userbox small{display:none}.pagehead h1{font-size:24px}.shell{padding:10px}th,td{padding:8px}.mainnav a{padding:0 10px}}
/* 0.6.0 Pre-Orders Checkpoint */
.shell{max-width:none}.pagehead.compact{margin-bottom:10px}.split-page{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}.split-page.has-right{grid-template-columns:minmax(420px,1fr) 7px minmax(320px,var(--ams-right-width,40vw));gap:8px}.main-pane{min-width:0}.right-resizer{display:none;width:7px;cursor:col-resize;align-self:stretch;border-radius:7px;background:linear-gradient(90deg,transparent 0 2px,#8ec7e3 2px 5px,transparent 5px);min-height:calc(100vh - 120px);touch-action:none}.split-page.has-right>.right-resizer{display:block}.split-page.is-resizing{user-select:none;cursor:col-resize}.right-pane{background:#fff;border:1px solid #9fd1ea;border-radius:10px;box-shadow:0 12px 36px #102a4318;position:sticky;top:82px;max-height:calc(100vh - 100px);overflow:hidden;min-width:0}.right-title{padding:10px 12px;border-bottom:1px solid #9fd1ea;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;background:#f8fdff}.right-title strong{color:#0b4e77}.right-title small{font-weight:500;color:#667085}.close-panel{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#3b9fc4;color:#fff;font-weight:900}.subtabs{display:flex;gap:3px;padding:7px 8px 0;border-bottom:1px solid #8ec7e3;background:#eef9fd;overflow:auto}.subtabs a{white-space:nowrap;padding:7px 9px;border:1px solid #70b5d8;border-bottom:0;border-radius:5px 5px 0 0;color:#0f628e;background:#f8fdff;font-size:14px}.subtabs a.active{background:#fff;color:#053b5b;font-weight:800}.right-scroll{overflow:auto;max-height:calc(100vh - 185px);padding:9px}.filterbar,.catalog-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 10px}.filtergroup{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.chip,.toolchip,.roundchip,.mini{border:1px solid #9dc9df;background:#fff;padding:5px 9px;border-radius:6px;color:#0c628e;font-weight:700;font-size:14px}.chip.active,.toolchip.active,.roundchip.active,.mini.active{background:var(--primary);color:#fff;border-color:var(--primary)}.chip.green{color:#07853f}.chip.orange{color:#c56b00}.chip.gray{color:#687481}.chip.green.active{background:var(--active,#07853f);color:#fff}.chip.orange.active{background:#d17a00;color:#fff}.chip.gray.active{background:var(--inactive,#687481);color:#fff}.roundchip{border-radius:50%;min-width:31px;height:31px;display:grid;place-items:center;padding:0}.roundchip.green{color:#0a9b46}.roundchip.gray{color:#8a949e}.roundchip.blue{color:#2c8db8}.toolbar-label{font-weight:800;color:#405b6c}.tabletools,.pager{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#f7fbfd;border-bottom:1px solid #e2eef4}.pager{border-top:1px solid #e2eef4;border-bottom:0}.pager a{font-size:20px;padding:0 8px}.customer-table td,.customer-table th{padding:7px 8px}.rowlink{font-weight:800}.selected-row{background:#eaf7fc!important}.statusdot{display:inline-block;width:11px;height:11px;border-radius:50%;background:var(--active,#2aa85b)}.statusdot.prospect{background:var(--alert,#e58a18)}.statusdot.inactive{background:var(--inactive,#9da7b0)}.sortlink{color:inherit}.icon{border:0;background:transparent;cursor:pointer;padding:3px 5px}.icon.danger{color:#c02222}.icon.ok{color:#0a8a41}.icon.muted{color:#9da7b0}.row-actions{display:flex;gap:2px;align-items:center}.row-actions form{margin:0}.section-title{margin:5px 0 8px;padding-bottom:6px;border-bottom:1px solid #a8d2e6;color:#364b59}.accordion{border:1px solid #8fc7e2;border-radius:5px;margin:8px 0;background:#fff}.accordion summary{cursor:pointer;padding:9px 11px;background:#eff9fd;color:#1781aa;font-weight:800}.accordion[open] summary{background:#369cc0;color:#fff}.formgrid.small{padding:12px;gap:8px}.formgrid.small label{font-size:12px}.formgrid.small textarea{min-height:58px}.checkline{display:flex!important;align-items:center;gap:7px}.checkline input{width:auto!important}.readonly-line{border-bottom:1px dotted #99b9c9;padding:7px 3px;font-weight:500}.linkbtn{border:0;background:transparent;color:#0a75a5;font:inherit;font-weight:800;cursor:pointer;padding:0}.rules{padding:10px 14px;display:grid;gap:7px}.rules label{display:grid;grid-template-columns:1fr 80px auto;align-items:center;gap:7px}.rules input[type=number]{width:80px}.sticky-actions{position:sticky;bottom:0;padding:10px;background:#ffffffee;border-top:1px solid #dbe9f0;text-align:right}.ledger-head,.order-history-head,.section-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.ledger-head h3,.order-history-head h3,.section-row h3{margin:5px 0}.ledger-actions{display:flex;gap:4px}.iconbtn,.circle-add{border:1px solid #49a6ce;background:#fff;color:#0a75a5;border-radius:5px;padding:5px 7px;cursor:pointer}.circle-add{border-radius:50%;width:32px;height:32px;font-size:20px;padding:0}.ledger-table td{padding:6px 7px}.strong{font-weight:900}.ledger-total{display:flex;justify-content:flex-end;gap:20px;padding:12px;flex-wrap:wrap}.ledger-total b{font-size:17px}.product-history{padding:9px}.sold-row{display:grid;grid-template-columns:48px 60px 90px 1fr 55px;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #edf2f5}.sold-row img,.mini-img{width:42px;height:42px;object-fit:contain}.sold-row .noimg,.noimg{display:grid;place-items:center;background:#eee;color:#999;font-size:10px;min-height:42px}.empty{text-align:center;color:#82909b;padding:15px}.order-acc summary{display:flex;justify-content:space-between}.money{font-size:28px!important;text-align:center}dialog{border:1px solid #62afd0;border-radius:9px;box-shadow:0 25px 70px #0005;padding:0;max-width:min(92vw,620px);width:520px}dialog::backdrop{background:#102a4360}.dialogform{padding:14px;display:grid;gap:10px}.dialogform header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #b7d7e6;padding-bottom:8px}.dialogform header button{border:0;border-radius:50%;background:#3d9fc2;color:#fff;width:28px;height:28px}.dialogform label{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:8px;font-size:14px}.dialogform input,.dialogform select,.dialogform textarea{width:100%}.menuaction{padding:12px;border:1px solid #a7ccde;background:#eff9fd;text-align:left;border-radius:6px;cursor:pointer}.category-dialog{width:min(90vw,760px)}.category-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:60vh;overflow:auto}.catgroup{border-left:1px solid #333;padding:0 10px 8px}.catgroup h4{margin:5px 0;color:#1688b1;border-bottom:1px solid #a7d3e7}.catgroup label{display:block;padding:3px 0}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:5px}.product-card{background:#fff;border:1px solid #83c1df;min-height:235px;display:grid;grid-template-rows:auto 1fr auto}.product-card.selected{outline:3px solid #2499c8}.product-card-head,.product-card-foot{display:flex;justify-content:space-between;align-items:center;padding:5px 7px;background:#f7fcfe}.product-card-head b{font-size:16px}.product-card-head span{font-size:12px}.product-image{min-height:180px;display:grid;place-items:center;padding:7px}.product-image img{max-width:100%;max-height:175px;object-fit:contain}.product-image span{color:#999;font-size:24px;font-weight:900}.card-flags{display:flex;gap:3px}.flag{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:3px;font-style:normal;background:#d6dce1;color:#fff}.flag.on{background:var(--active,#0aaf45)}.flag.web.on{background:#8aa8b7}.fabric-flags{font-size:15px}.product-hero{display:grid;grid-template-columns:minmax(220px,1fr) minmax(230px,1fr);gap:18px;padding:10px;border:1px solid #79bfdf;border-radius:7px;margin-bottom:7px;background:#f4fbfe}.hero-img{display:grid;place-items:center;min-height:205px;background:#f0f0f0}.hero-img img{max-width:100%;max-height:230px;object-fit:contain}.hero-meta{text-align:center;padding-top:20px}.hero-meta h2{font-size:20px}.hero-meta h3{font-size:18px}.category-badges{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.category-badges span{border:1px solid #aaa;border-radius:50%;padding:7px;color:#777;font-size:13px}.product-nav{display:flex;gap:20px;color:#075f8d;font-weight:800;margin-top:3px}.swatch{display:inline-block;width:24px;height:18px;border:1px solid #bbb;vertical-align:middle;margin-right:5px}.rack{display:inline-block;background:#e9f8ff;color:#1690bc;padding:2px 6px;border:1px solid #6fbad8}.rack.ath{color:#e33;background:#fff0f0;border-color:#ef9999}.dialog-preview{max-width:180px;max-height:180px;object-fit:contain;justify-self:center}.image-grid{display:flex;gap:16px;flex-wrap:wrap;padding:10px}.image-grid>div{position:relative;min-width:110px;text-align:center}.image-grid img{width:110px;height:140px;object-fit:contain;background:#eee}.image-grid small{display:block}.floating-edit{position:absolute;right:-2px;top:-2px;border:1px solid #58a9cd;background:#fff;border-radius:5px;color:#0b7da9}.import-card{border:1px solid #75bada;margin:8px 0;background:#fff}.import-top{display:grid;grid-template-columns:70px 90px 1fr;align-items:center;gap:8px;padding:8px}.variant-size{font-size:28px;font-weight:900;text-align:center}.import-top img{width:70px;height:70px;object-fit:contain}.import-top small{display:block}.stock-pair{display:grid;grid-template-columns:1fr 1fr;width:60%;min-width:300px;margin:8px auto}.stock-pair>div{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #54b0d4;text-align:center}.stock-pair>div b{grid-column:1/-1;color:#0a8bb7}.stock-pair .ath b{color:#e33}.stock-pair span,.stock-pair strong{border-top:1px solid #54b0d4;padding:3px}.master-tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:10px}.master-tabs a{padding:7px 10px;border:1px solid #a3c9dc;background:#fff;border-radius:6px}.master-tabs a.active{background:#0d779f;color:#fff}.master-panel{padding:12px}.master-select{margin-bottom:12px}.master-select select{min-width:280px}.master-grid{display:grid;gap:6px}.master-row{display:grid;grid-template-columns:140px 1fr 90px 90px 110px;gap:6px;align-items:center}.master-row.wide{grid-template-columns:120px minmax(180px,1fr) minmax(120px,1fr) 90px 90px 110px}.master-row.category-row{grid-template-columns:160px 90px 1fr 1fr 70px 80px 110px}.master-row input,.master-row select{width:100%}.master-row button{border:0;background:#1379a5;color:#fff;padding:8px;border-radius:6px}.master-row label{white-space:nowrap}.master-panel h3{margin:18px 0 8px;color:#0c6f98}
@media(max-width:1200px){.split-page.has-right{grid-template-columns:minmax(380px,1fr) 7px minmax(320px,var(--ams-right-width,44vw))}.product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.product-card{min-height:210px}.product-image{min-height:150px}.master-row,.master-row.wide,.master-row.category-row{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.split-page.has-right{grid-template-columns:1fr}.right-resizer{display:none!important}.right-pane{position:relative;top:auto;max-height:none}.right-scroll{max-height:none}.product-hero{grid-template-columns:1fr}.category-columns{grid-template-columns:1fr}.master-row,.master-row.wide,.master-row.category-row{grid-template-columns:1fr}.dialogform label{grid-template-columns:1fr}.sold-row{grid-template-columns:42px 1fr 1fr}.sold-row>*:nth-child(4){grid-column:2/4}}

.global-raw{max-width:460px;white-space:normal;word-break:break-word}.master-row.wide input[name="image_suffix"]{max-width:120px}

.right-pane.ajax-loading{opacity:.55;pointer-events:none}.right-pane.ajax-loading:after{content:"Φόρτωση…";position:absolute;inset:55px 12px auto;z-index:10;text-align:center;padding:8px;background:#ffffffdd;color:var(--primary);font-weight:800}.split-page:not(.has-right)>.right-pane{display:none}.product-card[data-entity-id].selected{outline:3px solid var(--primary)}

/* 0.7.0 Orders checkpoint */
.order-split{--ams-right-width:42%;}
.order-main-pane{min-width:0;}
.order-headbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px;flex-wrap:wrap}
.order-title{display:flex;align-items:center;gap:10px;min-width:260px}.order-title h1{margin:0;font-size:24px}
.order-toolbar{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.order-toolbar .order-invoice-direct-form{display:contents}.order-toolbar .order-voucher-pdf{border-color:#7db7cf;background:#f3fbff;font-weight:700}.order-toolbar .order-voucher-pdf:hover{background:#e7f7fe}.order-toolbar .order-voucher-pdf span{display:inline!important}.toolbtn{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid #cbd5db;border-radius:5px;background:#fff;color:#27343a;text-decoration:none;cursor:pointer;font:inherit}.toolbtn:hover{background:#f2f7f9}.toolbtn.on{background:var(--active);color:#fff;border-color:var(--active)}.toolbtn.muted{opacity:.55}.toolbtn.add{background:var(--tpl-1);color:#fff;border-color:var(--tpl-1)}.toolbtn.status.ok{background:var(--active);color:#fff}.toolbtn.status.muted{background:#e6e9eb}.toolbtn.status.warn{background:var(--alert)}
.status-menu{position:relative}.status-menu>summary{list-style:none}.status-menu>summary::-webkit-details-marker{display:none}.status-pop{position:absolute;right:0;top:calc(100% + 4px);z-index:30;min-width:170px;padding:5px;background:#fff;border:1px solid #cbd5db;box-shadow:0 5px 18px rgba(0,0,0,.14);border-radius:5px}.status-pop form{margin:0}.status-pop button{width:100%;text-align:left;border:0;background:#fff;padding:7px 9px;cursor:pointer}.status-pop button:hover{background:#eef5f7}.status-pop button:disabled{opacity:.45}
.order-meta-toggle{width:100%;display:flex;justify-content:center;align-items:center;gap:6px;margin:8px 0 4px;padding:3px 8px;border:0;border-top:3px dotted var(--tpl-2);background:transparent;color:var(--tpl-1);cursor:pointer;font:inherit;font-weight:700}.order-meta-toggle:hover{background:#f5fbfd}.order-meta-arrow{display:inline-block;min-width:18px;font-size:18px;line-height:1}.order-meta-row{display:grid;grid-template-columns:1fr;gap:4px;margin:4px 0 8px}.order-customer-extra{display:none}.order-meta-item{display:grid;grid-template-columns:170px 1fr 28px;gap:8px;align-items:center;padding:7px 9px;border:1px solid #d7e0e4;background:#fff}.order-meta-item a{text-decoration:none;text-align:center}.order-meta-item b{white-space:normal}
.order-header-actions{display:flex;align-items:center;gap:7px;padding:7px 0 4px;flex-wrap:wrap}.circle-edit{width:27px;height:27px;border-radius:50%;border:1px solid #ccd7dc;background:#fff;cursor:pointer}.order-header-link{border:0;background:transparent;padding:2px 3px;color:var(--tpl-1);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.order-header-link.customer{text-decoration:none;border-bottom:1px dotted currentColor}.order-header-link:hover{color:var(--tpl-2)}
.order-grid-wrap{overflow:auto;border:1px solid #cfd9dd;background:#fff}.order-grid{border-collapse:collapse;width:max-content;min-width:100%;font-size:14px}.order-grid th,.order-grid td{border-bottom:1px solid #e1e7ea;border-right:1px solid #eef2f4;padding:5px 6px;vertical-align:middle;white-space:nowrap}.order-grid th{position:sticky;top:0;background:#e8f4f8;z-index:2}.order-grid .order-thumb{width:45px;height:45px;object-fit:contain}.order-grid input{width:70px;padding:4px}.order-grid input.qty{width:48px}.order-grid input.discount{width:55px}.line-total span,.line-total b{display:block}.line-total span{text-decoration:line-through;color:#7c858a;font-size:12px}.line-total b{color:#111}.order-grid td small{display:block;color:#78858b}.charge-row{background:#fff9e9}.charge-row td:nth-child(5){font-weight:700}
.order-summary-inline{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:8px;margin-top:8px;align-items:stretch}.order-summary-inline .summary-cell{background:#fff;border:1px solid #d5dfe3;padding:10px 12px;display:flex;align-items:center;justify-content:flex-end;min-height:48px}.order-summary-inline .summary-cell strong{display:block;text-align:right;font-size:24px;line-height:1.1}.order-summary-inline .pieces{grid-column:10}.order-summary-inline .gross-net{grid-column:12}.order-summary-inline .discounts{grid-column:13}.order-summary-inline.final-row{margin-top:6px}.order-summary-inline.final-row .order-grand-total{grid-column:12 / 16;background:#eaf6f0;border-color:#acd6be}.order-summary-inline.final-row .order-grand-total strong{font-size:32px}
.order-right{overflow:auto}.order-search-box{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:9px;border-bottom:1px solid #d9e2e5}.order-search-form label{font-size:14px;color:#59666c}.order-search-form input{width:100%;padding:6px;margin-top:2px}.right-section,.order-product-found,.tag-results{padding:10px}.found-product-head{display:flex;gap:10px;align-items:center;margin-bottom:10px}.found-product-head img{width:105px;height:105px;object-fit:contain}.found-product-head strong,.found-product-head span,.found-product-head small{display:block}.found-product-head strong{font-size:24px}.variant-pick{font-size:14px}.variant-pick img{width:44px;height:44px;object-fit:contain}.variant-pick input{width:62px;padding:4px}.variant-pick .pick-qty{width:48px}.variant-pick td small{display:block;color:#6b7880}.tag-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:7px}.tag-product-grid a{border:1px solid #d4dee2;background:#fff;padding:6px;text-align:center;text-decoration:none;color:inherit}.tag-product-grid img{width:74px;height:74px;object-fit:contain}.tag-product-grid b,.tag-product-grid small{display:block}
.order-new-dialog{width:min(520px,92vw)}.order-new-meta{display:flex;justify-content:space-between;border:1px solid #dbe4e7;padding:7px;background:#f8fbfc}.ledger-balance{display:flex;justify-content:space-between;padding:8px;background:#eef7fa;border:1px solid #cfe0e6}.ledger-balance b{font-size:18px}
.icon.warn{background:var(--alert);color:#fff}.order-grid form{margin:0}
@media(max-width:1100px){.order-toolbar .toolbtn span{display:none}.order-search-box{grid-template-columns:1fr}.order-meta-item{grid-template-columns:135px 1fr 28px}}

/* 0.7.5 Orders calendar shell */
.orders-calendar-pagehead{align-items:center}
.orders-calendar-location-tabs{margin-top:7px}
.orders-calendar-split{--ams-right-width:38%;grid-template-columns:minmax(520px,1fr) 7px minmax(340px,var(--ams-right-width,38%));min-height:calc(100vh - 165px)}
.orders-calendar-main{min-width:0}
.orders-calendar-panel{margin:0;min-height:calc(100vh - 165px)}
.orders-calendar-toolbar{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line);background:#fff}
.orders-calendar-toolbar h2{margin:0;text-align:center;font-size:24px;line-height:1.2}
.calendar-nav-button{display:grid;place-items:center;height:34px;border:1px solid #9dc9df;border-radius:7px;background:#f8fdff;color:var(--primary);font-size:28px;font-weight:800;line-height:1}
.calendar-nav-button:hover{background:#eaf7fc}
.orders-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#c6e1ed;gap:1px;border-top:1px solid #c6e1ed}
.orders-calendar-weekday{background:var(--primary);color:#fff;text-align:center;font-weight:800;font-size:14px;padding:7px 4px}
.orders-calendar-day{position:relative;min-height:118px;background:#fff;color:var(--ink);display:flex;flex-direction:column;padding:8px;text-decoration:none;overflow:hidden}
a.orders-calendar-day:hover{background:#f2fbff;box-shadow:inset 0 0 0 2px #8dcce7}
.orders-calendar-day.is-outside{background:#f2f5f7;min-height:118px}
.orders-calendar-day-number{align-self:flex-start;display:grid;place-items:center;min-width:34px;height:28px;padding:0 8px;border-radius:5px;background:#eaf6fb;color:#0c6f98;font-weight:900;font-size:18px}
.orders-calendar-day-space{flex:1;min-height:64px}
.orders-calendar-day.is-today .orders-calendar-day-number{box-shadow:inset 0 0 0 2px var(--alert,#f39c12)}
.orders-calendar-day.is-selected{background:#f3fbff;box-shadow:inset 0 0 0 3px var(--primary)}
.orders-calendar-day.is-selected .orders-calendar-day-number{background:var(--primary);color:#fff}
.orders-calendar-right{top:82px;max-height:none;height:calc(100vh - 106px);min-height:620px}
.orders-calendar-right-title{min-height:54px;align-items:center}
.orders-calendar-right-title>div{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.orders-calendar-right-title strong{font-size:16px}
.orders-calendar-right-title small{font-size:14px;color:#41505a}
.orders-calendar-right-empty{height:calc(100% - 54px);max-height:none;min-height:560px;padding:0;background:#fff}
@media(max-width:1200px){.orders-calendar-split{grid-template-columns:minmax(460px,1fr) 7px minmax(330px,var(--ams-right-width,42%))}.orders-calendar-day{min-height:100px}.orders-calendar-day.is-outside{min-height:100px}}
@media(max-width:900px){.orders-calendar-split{grid-template-columns:1fr}.orders-calendar-right{height:auto;min-height:360px;position:relative;top:auto}.orders-calendar-right-empty{min-height:300px}.orders-calendar-day{min-height:82px;padding:5px}.orders-calendar-day.is-outside{min-height:82px}.orders-calendar-weekday{font-size:13px}.orders-calendar-toolbar h2{font-size:20px}}
@media(max-width:620px){.orders-calendar-day{min-height:62px}.orders-calendar-day.is-outside{min-height:62px}.orders-calendar-day-number{min-width:28px;height:24px;font-size:14px}.orders-calendar-weekday{font-size:0}.orders-calendar-weekday::first-letter{font-size:12px}}


/* 0.7.6 Order calendar day cards */
.orders-calendar-grid{align-items:stretch}
.orders-calendar-day{padding:0;min-height:128px;overflow:visible}
.orders-calendar-day.is-outside{padding:0}
.orders-calendar-day-head{position:relative;display:grid;grid-template-columns:30px 1fr 30px;align-items:center;min-height:34px;padding:3px 5px;border-bottom:1px solid #b9deec;background:#f5fcff}
.orders-calendar-day-head .calendar-day-toggle,.orders-calendar-day-head .calendar-day-money{display:grid;place-items:center;width:26px;height:26px;border:0;background:transparent;color:var(--primary);font-weight:900;cursor:pointer;text-decoration:none;border-radius:4px}
.orders-calendar-day-head .calendar-day-toggle:hover,.orders-calendar-day-head .calendar-day-money:hover{background:#dff3fb}
.calendar-day-date{justify-self:center;display:grid;place-items:center;min-width:32px;height:27px;padding:0 7px;border-radius:4px;background:var(--primary);color:#fff!important;text-decoration:none;font-size:18px;font-weight:900;line-height:1}
.orders-calendar-day.is-today .calendar-day-date{box-shadow:0 0 0 2px var(--alert,#f39c12)}
.orders-calendar-day.is-selected .orders-calendar-day-head{box-shadow:inset 0 0 0 2px var(--primary)}
.calendar-open-badge{position:absolute;right:29px;top:-7px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e02020;color:#fff;font-size:12px;font-weight:900;display:grid;place-items:center;box-shadow:0 1px 2px #0003}
.calendar-day-orders{display:flex;flex-direction:column;gap:2px;padding:3px;background:#fff;min-height:88px}
.calendar-day-orders.is-collapsed{display:none}
.calendar-order-card{position:relative;display:grid;grid-template-rows:auto auto;gap:2px;padding:3px 5px 3px 7px;border:1px solid #c9e1e9;border-radius:2px;color:#0f3343;font-size:13px;line-height:1.08;min-height:38px;overflow:hidden}
.calendar-order-card.loc-her{background:var(--pos-her-bg)}
.calendar-order-card.loc-ath{background:var(--pos-ath-bg)}
.calendar-order-card.status-sent{box-shadow:inset 4px 0 0 #7dbb95}
.calendar-order-card.status-new{box-shadow:inset 4px 0 0 #cf8f8a}
.calendar-order-card.status-cancelled{box-shadow:inset 4px 0 0 #c9a56d}
.calendar-order-top,.calendar-order-bottom{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0}
.calendar-order-identity{display:flex;align-items:baseline;gap:3px;min-width:0;flex:1 1 auto}
.calendar-order-actions{display:flex;align-items:center;justify-content:flex-end;gap:1px;flex:0 0 auto}
.calendar-order-invoice,.calendar-order-note,.calendar-order-pay{display:grid;place-items:center;width:18px;height:18px;flex:0 0 18px;border:0;background:transparent;padding:0;border-radius:3px}
.calendar-order-invoice{color:var(--primary)}
.calendar-order-no{font-size:15px;font-weight:900;color:#075d80;text-decoration:none;white-space:nowrap}
.calendar-order-no:hover{text-decoration:underline}
.calendar-order-pos{font-size:10px;font-weight:700;color:#7a858b;white-space:nowrap}
.calendar-order-note,.calendar-order-pay{cursor:pointer}
.calendar-order-note{color:var(--inactive,#9ca3af)}
.calendar-order-note.has-note{color:var(--alert,#f39c12)}
.calendar-order-pay{color:var(--primary)}
.calendar-order-note:hover,.calendar-order-pay:hover{background:#fff8}
.calendar-order-invoice .ams-svg,.calendar-order-note .ams-svg,.calendar-order-pay .ams-svg{width:15px;height:15px}
.calendar-order-customer{min-width:0;flex:1 1 auto;overflow:hidden}
.calendar-order-customer a,.calendar-order-customer span{display:block;min-width:0;max-width:100%;color:#103b4c;text-decoration:none;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-order-customer a:hover{text-decoration:underline}
.calendar-order-amount{flex:0 0 auto;white-space:nowrap;font-size:13px;font-weight:800;color:#173b49;text-align:right}
.calendar-note-bubble{display:inline-grid;place-items:center;width:14px;height:14px;line-height:1;flex:0 0 auto;cursor:help}
.calendar-note-bubble .ams-svg{width:12px;height:12px}
.calendar-note-bubble.customer-note{color:#e21c23}
.calendar-day-empty{min-height:86px;background:#fff}
.calendar-right-mode{font-weight:700;color:var(--primary)}
.calendar-note-dialog,.calendar-receipt-dialog{width:min(470px,94vw)}
.calendar-note-field{align-items:start!important}.calendar-note-field textarea{min-height:120px;resize:vertical}
@media(max-width:1200px){.calendar-order-card{font-size:13px}.calendar-order-no{font-size:14px}.calendar-day-date{font-size:16px}}


/* 0.7.7 Header + category submenu */
.topbar{min-height:50px;padding:0 16px;gap:16px}
.brand{min-width:auto;padding:5px 2px}
.mainnav a{min-height:50px;padding:0 14px}
.subnav{position:sticky;top:50px;z-index:19;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 2px 8px rgba(16,24,40,.05)}
.subnav-inner{max-width:1500px;margin:0 auto;min-height:40px;padding:0 24px;display:flex;align-items:stretch;gap:2px;overflow:auto}
.subnav a{display:flex;align-items:center;min-height:40px;padding:0 13px;color:#475467;border-bottom:3px solid transparent;white-space:nowrap;font-weight:700;font-size:14px}
.subnav a:hover{color:var(--primary);background:#f8fbfd}
.subnav a.active{color:var(--primary);border-bottom-color:var(--primary);background:#f8fbfd}
.right-pane{top:100px;max-height:calc(100vh - 118px)}
.right-scroll{max-height:calc(100vh - 203px)}
.orders-calendar-split{min-height:calc(100vh - 205px)}
.orders-calendar-panel{min-height:calc(100vh - 205px)}
.orders-calendar-right{top:100px;height:calc(100vh - 124px)}
@media(max-width:900px){.subnav{top:50px}.subnav-inner{padding:0 12px}.mainnav a{padding:0 9px}.userbox span,.userbox small{display:none}.right-pane,.orders-calendar-right{top:auto;max-height:none}}

/* 0.7.8 Customer creation + Cloud link */
.pagehead-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.pagehead-actions .search{margin:0}.btn-primary{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;padding:9px 14px;background:var(--primary);color:#fff;font-weight:800;white-space:nowrap}.btn-primary:hover{background:var(--primary2);color:#fff}.customer-create-form .notice{margin:14px 16px 0}.customer-code-tags{display:flex;gap:6px;align-items:center;margin-left:auto;margin-right:8px}.customer-code-tags>span,.cloud-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:#eef2f6;color:#475467;font-size:12px;font-weight:800}.customer-code-tags .cloud-ok,.cloud-status{background:#dcfae6;color:var(--success,#067647)}.cloud-create-btn{border:1px solid #84adff;border-radius:8px;padding:9px 14px;background:#eff4ff;color:#175cd3;font-weight:800;cursor:pointer}.cloud-create-btn:hover{background:#dbe8ff}.sticky-actions{gap:10px;align-items:center;flex-wrap:wrap}
@media(max-width:900px){.pagehead-actions{width:100%;flex-wrap:wrap}.pagehead-actions .search{flex:1}.btn-primary{width:100%}.customer-code-tags{margin-left:0;flex-wrap:wrap}}

/* 0.7.19 — catalog pager above + below: count / page / per-page */
.customer-catalog-panel{overflow:hidden}
.catalog-pager{display:grid;grid-template-columns:minmax(140px,1fr) auto minmax(220px,1fr);align-items:center;gap:14px;padding:9px 14px;background:#f7fbfd;border-bottom:1px solid #dbe9f0}
.customer-catalog-panel>.catalog-pager:last-child{border-top:1px solid #dbe9f0;border-bottom:0}
.catalog-pager .pager-count{font-weight:800;color:#243746;white-space:nowrap}
.catalog-pager .pager-nav,.catalog-pager .pager-per{display:flex;align-items:center;gap:8px}
.catalog-pager .pager-nav{justify-content:center}
.catalog-pager .pager-nav strong{white-space:nowrap;font-size:14px}
.catalog-pager .pager-arrow{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #9dc9df;border-radius:7px;background:#fff;color:#0c628e;line-height:1;font-weight:800}
.catalog-pager .pager-arrow .ams-icon{width:12px;height:18px}
.catalog-pager .pager-arrow.disabled{opacity:.30;cursor:default}
.catalog-pager .pager-per{justify-content:flex-end;white-space:nowrap}
.catalog-pager .pager-per .mini{min-width:48px;text-align:center;font-size:16px;padding:6px 10px}
.catalog-pager .pager-per>span{font-weight:700;color:#475467}
.printtype-head,.printtype-row{display:grid;grid-template-columns:140px minmax(260px,1fr) 90px 110px;gap:7px;align-items:center}
.printtype-head{padding:0 4px 3px;color:#475467;font-size:12px;font-weight:800;text-transform:uppercase}
.printtype-row input{width:100%}
.printtype-row button{border:0;background:#1379a5;color:#fff;padding:8px;border-radius:6px}
@media (max-width:760px){.catalog-pager{grid-template-columns:1fr auto}.catalog-pager .pager-count{grid-column:1}.catalog-pager .pager-nav{grid-column:2}.catalog-pager .pager-per{grid-column:1/-1;justify-content:flex-end}.printtype-head{display:none}.printtype-row{grid-template-columns:105px 1fr 70px}.printtype-row button{grid-column:1/-1}}

/* 0.7.21 · Product PRINTTYPES + cleaner product forms */
.product-card-left{display:flex;align-items:center;gap:7px;min-height:36px}.product-printtype-icon{width:38px!important;height:34px!important}.product-printtype-icon svg{max-width:100%;max-height:100%}.product-general-grid{align-items:start}.product-general-grid>label:not(.checkline){display:grid;gap:5px}.product-general-grid .option-card{min-height:38px;margin-top:18px;padding:7px 10px;border:1px solid #d6e6ee;border-radius:7px;background:#f8fcfe}.printtype-control{display:flex;align-items:center;gap:8px}.printtype-control select{min-width:0;flex:1}.printtype-preview{width:38px!important;height:34px!important;padding:2px;border:1px solid #c7dce7;border-radius:5px;background:#fff}.product-flags-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;padding:10px 12px;border:1px solid #d6e6ee;border-radius:8px;background:#f8fcfe}.product-flags-box .checkline{margin:0;font-weight:600}.form-note{margin:0;color:#667085;font-size:12px;border-left:3px solid #8ec7e3;padding:7px 10px;background:#f8fdff}.product-create-pane .right-title small{display:block;margin-top:3px;color:#667085}.product-create-form input[required]{border-color:#86bcd5}
@media(max-width:700px){.product-flags-box{grid-template-columns:1fr}.product-general-grid .option-card{margin-top:0}.printtype-control{align-items:stretch}}

/* 0.7.25 · New product flow: colors / legacy sizes / SKU refresh / mikro uploads */
.color-help,.sku-rule-note{margin:6px 0 10px;padding:8px 10px;border-left:3px solid #80bfd9;background:#f7fcfe;color:#526875;font-size:14px}.alternation-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;background:#fff0d7;color:#9a5b00;font-weight:800;font-size:12px}.product-color-form{width:min(92vw,620px)}.product-color-form .alternation-upload{padding:10px;border:1px dashed #e3b45c;border-radius:8px;background:#fffaf0}.product-color-form .alternation-upload label{margin-bottom:5px}.color-hex-control{display:grid;grid-template-columns:1fr 44px;gap:8px;align-items:center}.color-hex-control input[type=color]{height:34px;padding:2px}.sku-refresh-row form{margin:0}.sku-refresh-row .btn-primary{padding:7px 13px}.mikro-grid{align-items:flex-start}.mikro-card{border:1px solid #d8e8ef;border-radius:8px;padding:7px;background:#fff;min-width:130px!important}.mikro-card.base-mikro{border-color:#72b7d4;background:#f8fdff}.mikro-card .noimg{width:110px;height:140px}.mikro-card small{max-width:180px;overflow-wrap:anywhere;margin-top:5px}.product-size-form select[name=legacy_size_code]{font-weight:700}

/* 0.7.26 · Product form cleanup / size mapping / color PRINTTYPES */
.product-color-form,.product-size-form{width:min(94vw,720px)}
.color-form-grid,.size-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 14px;padding:4px 0}
.color-form-grid>label,.size-form-grid>label{display:grid;gap:5px;margin:0}
.color-form-grid .span2,.size-form-grid .span2{grid-column:1/-1}
.form-check-card{display:flex!important;align-items:center;gap:8px;min-height:42px;padding:9px 11px;border:1px solid #d8e8ef;border-radius:8px;background:#f8fcfe;font-weight:700}
.form-check-card input{margin:0}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #e3edf2}
.size-list-code{font-size:15px;font-weight:800;min-width:34px;text-align:left}
.product-color-form .alternation-upload{grid-column:1/-1}
@media(max-width:680px){.color-form-grid,.size-form-grid{grid-template-columns:1fr}.color-form-grid .span2,.size-form-grid .span2{grid-column:auto}}

/* 0.7.27 · PRINTTYPE native SVG rendering */
.printtype-native-svg,.product-printtype-icon,.printtype-preview{display:block;object-fit:contain;object-position:center}
.product-printtype-icon{width:38px!important;height:34px!important;background:transparent}
.printtype-preview{width:42px!important;height:38px!important;padding:2px;border:1px solid #c7dce7;border-radius:5px;background:#fff;flex:0 0 auto}
.printtype-preview[hidden]{display:none!important}
.color-form-grid .printtype-control{display:flex;align-items:center;gap:8px}
.color-form-grid .printtype-control select{min-width:0;flex:1}

/* 0.7.28 · Catalog PRINTTYPE icons follow active product colors */
.catalog-printtypes{display:inline-flex;align-items:center;gap:3px;min-height:32px}.catalog-printtypes:empty{display:none}.catalog-printtypes .product-printtype-icon{flex:0 0 auto}


/* 0.7.30 · ενεργή προσθήκη ειδών στην παραγγελία */
.order-add-items-form [data-add-items-button]:disabled{background:#a9c1cc!important;color:#eef5f8;cursor:not-allowed;opacity:.8}
.order-add-items-form [data-add-items-button]:not(:disabled){box-shadow:0 2px 8px #0b73952b}
.order-add-result{margin:8px 0 10px;padding:8px 10px;font-size:14px}

/* 0.7.32 Order status icons + integer discount */
.status-menu>summary{display:inline-flex;align-items:center;gap:5px}
.status-menu>summary .ams-svg{flex:0 0 auto}
.status-pop button{display:flex;align-items:center;gap:7px;width:100%}
.status-pop button .ams-svg{flex:0 0 auto}

/* 0.7.38 · Global typography scale — 8px→10px, 9/10px→13px; previous 11px→12px, 12/13px→14px retained */
.marketing-page{width:min(100%,1480px);margin:0 auto}
.marketing-page .pagehead{margin:4px 0 8px;align-items:center;gap:12px}
.marketing-page .pagehead>div{width:auto!important;min-width:0}
.marketing-page .pagehead>div:first-child{flex:1 1 auto}
.marketing-page .pagehead>.actions{flex:0 0 auto;margin-left:auto;align-self:center}
.marketing-page .pagehead h1{font-size:24px;line-height:1.15;margin:0;width:100%}
.marketing-page .pagehead p{margin:3px 0 0;font-size:14px}
.marketing-page>.tabs{margin:0 0 9px;gap:5px;flex-wrap:wrap}
.marketing-page>.tabs a{padding:5px 10px}

.marketing-page .panel{margin-bottom:10px;border-radius:10px}
.marketing-page .panelhead{padding:9px 12px;min-height:40px;gap:10px}
.marketing-page .panelhead h2{font-size:15px}
.marketing-page .panelhead form{margin:0}
.marketing-page .panelpad{padding:11px 13px}

.marketing-page .statgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 10px}
.marketing-page .statgrid .stat{min-height:92px;padding:10px 12px;border-radius:10px;box-shadow:none}
.marketing-page .statgrid .stat span{font-size:14px}
.marketing-page .statgrid .stat strong{font-size:24px;line-height:1.1;margin-top:3px}
.marketing-page .statgrid .stat .sub{margin-top:4px}

.marketing-page .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;padding:11px 13px;align-items:start}
.marketing-page .formgrid>label:not(.checkline){display:grid;grid-template-columns:135px minmax(0,1fr);align-items:start;gap:8px;margin:0;min-width:0;font-size:14px;font-weight:300;line-height:30px}
.marketing-page .formgrid>label.span2{grid-column:1/-1;grid-template-columns:135px minmax(0,1fr)}
.marketing-page .formgrid>label:not(.checkline)>input,
.marketing-page .formgrid>label:not(.checkline)>select,
.marketing-page .formgrid>label:not(.checkline)>textarea{float:none!important;width:100%!important;min-width:0;line-height:1.35}
.marketing-page .formgrid>label:not(.span2):not(.checkline)>input,
.marketing-page .formgrid>label:not(.span2):not(.checkline)>select,
.marketing-page .formgrid>label:not(.span2):not(.checkline)>textarea{max-width:360px;justify-self:start}
.marketing-page .formgrid>label.span2>input{max-width:780px}
.marketing-page .formgrid>label .sub{grid-column:2;margin:2px 0 0;line-height:1.35}
.marketing-page .formgrid>.span2{grid-column:1/-1}
.marketing-page .formgrid>.span2>.actions{margin-top:5px!important}
.marketing-page .formgrid .checkline{float:none!important;margin:0;min-height:30px;font-weight:300;font-size:14px;line-height:1.25}
.marketing-page .formgrid .checkline input{float:none!important;margin:0}
.marketing-page .formgrid textarea{resize:vertical;min-height:72px}
.marketing-page .formgrid textarea[rows="12"]{min-height:180px}
.marketing-page .formgrid textarea[rows="5"]{min-height:92px}
.marketing-page .formgrid textarea[rows="4"]{min-height:78px}
.marketing-page .formgrid input[type="file"]{max-width:520px}

.marketing-page .twocol{gap:10px}
.marketing-page .twocol .formgrid{grid-template-columns:1fr}
.marketing-page .twocol .formgrid>label.span2,
.marketing-page .twocol .formgrid>.span2{grid-column:auto}
.marketing-page .twocol .formgrid>label:not(.checkline){grid-template-columns:115px minmax(0,1fr)}
.marketing-page .twocol .formgrid>label .sub{grid-column:2}

.marketing-page .sticky-actions{position:static;display:flex;justify-content:flex-end;gap:7px;padding:8px 11px;background:#fff;border-top:1px solid var(--line);text-align:right}
.marketing-page a.secondary,
.marketing-page button.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border:1px solid #b9d6e4;border-radius:6px;background:#fff;color:var(--primary);font:inherit;font-weight:300;text-decoration:none;cursor:pointer;white-space:nowrap}
.marketing-page a.secondary:hover,
.marketing-page button.secondary:hover{background:#f3fafc}
.marketing-page button.primary{min-height:30px;padding:5px 10px}

.marketing-page .search{gap:5px;align-items:center}
.marketing-page .search input{min-width:220px}
.marketing-page .search input,
.marketing-page .search select{float:none!important;width:auto}
.marketing-page .search button{padding:5px 10px}
.marketing-page .tablewrap{max-width:100%}
.marketing-page .badge{padding:3px 7px;font-size:14px}
.marketing-page th{font-size:14px}
.marketing-page .sub{font-size:14px}
.marketing-page code{white-space:normal;overflow-wrap:anywhere}

@media(max-width:1100px){
  .marketing-page .statgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .marketing-page .formgrid{grid-template-columns:1fr}
  .marketing-page .formgrid>label.span2,.marketing-page .formgrid>.span2{grid-column:auto}
}
@media(max-width:700px){
  .marketing-page{width:100%}
  .marketing-page .pagehead{align-items:flex-start}
  .marketing-page .pagehead>.actions{margin-left:0}
  .marketing-page .statgrid{grid-template-columns:1fr 1fr}
  .marketing-page .formgrid>label:not(.checkline),
  .marketing-page .formgrid>label.span2,
  .marketing-page .twocol .formgrid>label:not(.checkline){grid-template-columns:1fr;gap:3px;line-height:1.25}
  .marketing-page .formgrid>label .sub,.marketing-page .twocol .formgrid>label .sub{grid-column:1}
  .marketing-page .formgrid>label:not(.span2):not(.checkline)>input,
  .marketing-page .formgrid>label:not(.span2):not(.checkline)>select,
  .marketing-page .formgrid>label:not(.span2):not(.checkline)>textarea{max-width:none}
}
@media(max-width:480px){.marketing-page .statgrid{grid-template-columns:1fr}}


/* 0.7.38 transition: installations upgraded from the protected Manos custom.css
   may still carry the old 12px form labels / 13px table heads. Keep the
   requested scale effective immediately; custom.css becomes updater-managed
   from the next update policy onward. */
.formgrid label{font-size:14px!important}
th{font-size:14px!important}

/* 0.7.40 Calendar softer palette + single order-note state */
.orders-calendar-weekday{background:#5f9db5}
.orders-calendar-grid{background:#d7e7ed;border-top-color:#d7e7ed}
.orders-calendar-day-head{border-bottom-color:#d7e7ed;background:#f8fbfc}
.orders-calendar-day-head .calendar-day-toggle,.orders-calendar-day-head .calendar-day-money{color:#5f95aa}
.orders-calendar-day-head .calendar-day-toggle:hover,.orders-calendar-day-head .calendar-day-money:hover{background:#edf6f9}
.calendar-day-date{background:#5f9db5}
.orders-calendar-day.is-today .calendar-day-date{box-shadow:0 0 0 2px #e6bd79}
.orders-calendar-day.is-selected .orders-calendar-day-head{box-shadow:inset 0 0 0 2px #86b8ca}
.calendar-open-badge{background:#d8867f}
.calendar-day-orders{background:#fbfdfe}
.calendar-order-card{border-color:#d5e5eb;color:#294957}
.calendar-order-card.loc-her{background:#edf8fb;box-shadow:inset 4px 0 0 #9bcfb0}
.calendar-order-card.loc-ath{background:#fff9e6;box-shadow:inset 4px 0 0 #dfc985}
.calendar-order-invoice{color:#6e9fb4}
.calendar-order-no{color:#356f88}
.calendar-order-pos{color:#89979e}
.calendar-order-note{color:#b6c0c5}
.calendar-order-note.has-note{color:#d4867d}
.calendar-order-pay{color:#70a8ba}
.calendar-order-note:hover,.calendar-order-pay:hover{background:#ffffffb8}
.calendar-order-customer a{color:#31505d}
.calendar-note-bubble{display:none!important}

/* 0.7.48 Responsive RIGHT height + compact two-row calendar cards */
@media(min-width:901px){
  .split-page.has-right>.right-pane{height:calc(100dvh - 96px);max-height:calc(100dvh - 96px);display:flex;flex-direction:column}
  .split-page.has-right>.right-pane>.right-title,.split-page.has-right>.right-pane>.subtabs{flex:0 0 auto}
  .split-page.has-right>.right-pane>.right-scroll{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
}
.calendar-order-card.loc-her{background:#edf8fb;box-shadow:none}
.calendar-order-card.loc-ath{background:#fff9e6;box-shadow:none}
.calendar-order-card.status-sent{box-shadow:inset 4px 0 0 #7dbb95}
.calendar-order-card.status-new{box-shadow:inset 4px 0 0 #cf8f8a}
.calendar-order-card.status-cancelled{box-shadow:inset 4px 0 0 #c9a56d}
.calendar-order-invoice{color:#6e9fb4}
.calendar-order-no{color:#356f88}
.calendar-order-pos{color:#536a74}
.calendar-order-note{color:#b6c0c5}
.calendar-order-note.has-note{color:#d4867d}
.calendar-order-pay{color:#70a8ba}
.calendar-order-customer a,.calendar-order-customer span{color:#1c3a46}
.calendar-order-amount{color:#173b49}

/* 0.7.49 Open calendar order in the existing RIGHT panel */
.orders-calendar-order-panel .orders-calendar-order-panel-title>div{min-width:0;display:grid;gap:2px}
.orders-calendar-order-panel .orders-calendar-order-panel-title small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#536a74}
.orders-calendar-order-panel .orders-calendar-order-scroll{padding:8px}
.orders-calendar-order-panel .order-headbar{margin-bottom:6px}
.orders-calendar-order-panel .order-title{display:none}
.orders-calendar-order-panel .order-toolbar{gap:3px;margin-bottom:6px}
.orders-calendar-order-panel .order-toolbar .toolbtn{padding:6px 7px}
.orders-calendar-order-panel .order-toolbar .toolbtn span{display:none}
.orders-calendar-order-panel .order-header-actions{gap:5px;flex-wrap:wrap}
.orders-calendar-order-panel .order-grid-wrap{max-width:100%;overflow:auto}
.orders-calendar-order-panel .order-summary-inline{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.orders-calendar-order-panel .order-summary-inline .summary-cell{min-height:42px;padding:8px 10px}.orders-calendar-order-panel .order-summary-inline .summary-cell strong{font-size:20px}.orders-calendar-order-panel .order-summary-inline .pieces{grid-column:1}.orders-calendar-order-panel .order-summary-inline .gross-net{grid-column:2}.orders-calendar-order-panel .order-summary-inline .discounts{grid-column:3}.orders-calendar-order-panel .order-summary-inline.final-row .order-grand-total{grid-column:4}.orders-calendar-order-panel .order-summary-inline.final-row .order-grand-total strong{font-size:24px}
@media(max-width:900px){.orders-calendar-order-panel .order-toolbar .toolbtn span{display:inline}}


/* 0.7.50 · Order workspace: compact calendar IDs, floating day drawer, central order + product side */
.calendar-order-no{font-size:18px;font-weight:900;line-height:1}
@media(max-width:1200px){.calendar-order-no{font-size:17px}}

.order-workspace{grid-template-columns:minmax(620px,1fr) 7px minmax(420px,var(--ams-right-width,40vw))}
.order-workspace>.right-pane{height:calc(100dvh - 96px);max-height:calc(100dvh - 96px);display:flex;flex-direction:column}
.order-workspace>.right-pane>.right-title{flex:0 0 auto}
.order-workspace>.right-pane>.right-scroll{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
.order-workspace .order-title h1{font-size:24px}

.order-day-drawer-toggle{
  position:fixed;left:8px;top:108px;z-index:47;width:42px;height:42px;border:1px solid #77bad8;
  border-radius:50%;display:grid;place-items:center;background:#fff;color:#0a6f97;box-shadow:0 8px 24px #102a4328;
  cursor:pointer
}
.order-day-drawer-toggle .ams-svg{width:21px;height:21px}
.order-day-drawer-toggle .order-day-count{
  position:absolute;right:-5px;top:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;
  display:grid;place-items:center;background:#2d95b9;color:#fff;font-size:12px;font-weight:800
}
.order-day-drawer{
  position:fixed;left:0;top:50px;bottom:0;width:min(340px,90vw);z-index:46;background:#f7fbfd;
  border-right:1px solid #86bfd9;box-shadow:18px 0 42px #102a4333;transform:translateX(-105%);
  transition:transform .2s ease;display:flex;flex-direction:column
}
.order-day-drawer.is-open{transform:translateX(0)}
.order-day-drawer-backdrop{
  position:fixed;inset:50px 0 0;z-index:45;background:#102a432c;opacity:0;pointer-events:none;transition:opacity .2s ease
}
.order-day-drawer-backdrop.is-open{opacity:1;pointer-events:auto}
.order-day-drawer-head{
  display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 12px;
  background:#fff;border-bottom:1px solid #a9d2e5
}
.order-day-drawer-head>div{display:grid;gap:2px}
.order-day-drawer-head strong{font-size:16px;color:#0b4e77}
.order-day-drawer-head small{font-size:13px;color:#526875}
.order-day-drawer-head button{
  border:0;border-radius:50%;width:30px;height:30px;background:#399abd;color:#fff;font-weight:900;cursor:pointer
}
.order-day-drawer-list{padding:7px;overflow:auto;min-height:0}
.order-day-row{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:center;
  padding:7px 8px;margin-bottom:4px;background:#fff;border:1px solid #d4e6ee;border-left:4px solid #c7d3d8;
  border-radius:5px;color:#102f3b
}
.order-day-row.status-sent{border-left-color:#7dbb95}
.order-day-row.status-new{border-left-color:#d79a96}
.order-day-row.status-cancelled{border-left-color:#d8b36f}
.order-day-row.active{outline:2px solid #59a9ca;background:#eef9fd}
.order-day-row-main{display:flex;align-items:baseline;gap:4px;white-space:nowrap}
.order-day-row-main strong{font-size:16px;color:#075d80}
.order-day-row-main small{font-size:12px;color:#5b6d76;font-weight:700}
.order-day-row-company{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.order-day-row-tools{display:grid;place-items:center;color:#4c94b0}
.order-day-row-tools .ams-svg{width:16px;height:16px}

@media(max-width:1100px){
  .order-workspace{grid-template-columns:minmax(0,1fr)}
  .order-workspace>.right-resizer{display:none!important}
  .order-workspace>.right-pane{position:relative;top:auto;height:auto;max-height:none}
  .order-day-drawer-toggle{top:92px}
}


/* 0.7.51 · Order workspace interaction polish */
.order-day-drawer-toggle{transition:transform .2s ease,background .2s ease,border-color .2s ease}
.order-day-drawer-toggle.is-open{opacity:0;visibility:hidden;pointer-events:none;transform:scale(.88)}
.order-day-drawer-toggle .asset-orders{width:22px;height:22px;color:#0b7198}
.order-day-row-tail{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}
.order-day-row-amount{font-size:14px;color:#173b49;font-weight:800;font-variant-numeric:tabular-nums}
.order-day-row-tail .ams-svg{width:16px;height:16px;color:#4c94b0}
.pick-edit-cell{min-width:72px}
.pick-inline-value{border:0;background:transparent;color:#173b49;padding:3px 4px;font:inherit;font-weight:700;cursor:text;min-width:48px;text-align:right}
.pick-inline-value:hover{background:#eef8fc;border-radius:4px}
.pick-inline-value:focus{outline:1px dashed #58a6c7;outline-offset:2px;border-radius:4px}
.pick-inline-input{width:70px!important;min-width:70px;padding:4px 6px!important;text-align:right}
.variant-pick .pick-qty:focus,.variant-pick [data-add-items-button]:focus{outline:2px solid #4ba3c5;outline-offset:1px}

/* 0.7.52 · Drawer icon placement/badge fix + legacy order editing */
.order-day-drawer-toggle{
  top:54px;left:8px;width:44px;height:44px;
  transition:opacity .16s ease,visibility .16s ease,transform .16s ease,background .16s ease,border-color .16s ease
}
.order-day-drawer-toggle .asset-orders{width:24px;height:24px;color:#0b7198}
.order-day-drawer-toggle .order-day-count{
  position:absolute;right:-5px;top:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;
  display:grid;place-items:center;background:#2d95b9;color:#fff;font-size:12px;font-weight:800;line-height:1;
  box-shadow:0 0 0 2px #fff
}
.order-day-drawer-toggle.is-open{opacity:0;visibility:hidden;pointer-events:none;transform:scale(.88)}
@media(max-width:1100px){.order-day-drawer-toggle{top:54px}}



/* 0.7.53 · Branch-coloured day drawer + compact document/cart launcher */
.order-day-row.loc-her{background:#edf8fb}
.order-day-row.loc-ath{background:#fff9e6}
.order-day-row.active{outline:2px solid #59a9ca}
.order-day-drawer-toggle{
  top:52px;left:8px;width:36px;height:36px
}
.order-day-drawer-toggle .asset-order_invoice{width:20px;height:20px;color:#0b7198}
.order-day-drawer-toggle .order-day-count{
  right:-5px;top:-5px;min-width:18px;height:18px;padding:0 4px;font-size:12px
}
@media(max-width:1100px){.order-day-drawer-toggle{top:52px;width:36px;height:36px}}


/* 0.7.54 · Order product search typography / stock rack tooltip */
.order-search-form label{font-size:14px}

/* 0.7.55 · Product-search autofocus + single thicker day status marker */
.order-day-row.loc-her,.order-day-row.loc-ath{box-shadow:none}
.order-day-row{border-left-width:6px}
.order-day-row.active{outline:none;border-top-color:#59a9ca;border-right-color:#59a9ca;border-bottom-color:#59a9ca}



/* 0.7.57 · Keyboard-first order entry + compact discount/actions */
.order-grid input.discount{width:42px!important;min-width:42px!important;padding:3px 2px!important}
.order-discount-inline{display:flex;align-items:center;gap:5px;white-space:nowrap}
.order-discount-amount{display:inline-block;color:#5f6f77;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.order-row-action-cell{padding-left:3px!important;padding-right:3px!important;text-align:center}
.order-row-action{display:inline-grid;place-items:center;width:28px;height:28px;padding:0!important;border-radius:5px}
.order-row-action .ams-svg{width:16px;height:16px}
.order-row-action.icon.danger{background:#fff1f0;color:#bd2f2f}
.order-row-action.icon.warn{background:#fff4de;color:#c77700}
.order-row-action.icon.danger:hover{background:#ffe2df}
.order-row-action.icon.warn:hover{background:#ffe7b8}

/* 0.7.59 · Order-line discount text editor / sent-only invoicing & voucher */
.toolbtn:disabled{opacity:.42;cursor:not-allowed;pointer-events:none;background:#f4f6f7;color:#7e8a90;border-color:#d7dde0}
.order-discount-value{display:inline-block;min-width:31px;padding:0;border:0;background:transparent;color:#182230;font:inherit;font-weight:700;text-align:right;cursor:pointer}
.order-discount-value:hover{text-decoration:underline;text-underline-offset:2px}
.order-discount-value.static{cursor:default;text-decoration:none}
.order-grid input.discount{width:42px!important;min-width:42px!important;padding:3px 2px!important;text-align:center}
.order-grid td[title^="Ράφι HER"],.order-grid td[title^="Ράφι ATH"]{cursor:help}

/* 0.7.61 · Order invoicing pre-send preview */
.order-invoice-preview-dialog{width:min(94vw,860px);max-width:min(94vw,860px)}
.order-invoice-preview-dialog .dialogform{max-height:86vh;overflow:auto}
.order-invoice-preview-dialog .dialogform>label{grid-template-columns:1fr;align-items:start}
.order-invoice-preview-table td,.order-invoice-preview-table th{white-space:nowrap}
.order-invoice-preview-table td:nth-child(2){white-space:normal;min-width:220px}

/* 0.7.65 · Admin user management */
a.buttonlike{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;padding:9px 14px;background:var(--primary);color:#fff;font-weight:800}.user-editor-panel{max-width:1180px}.user-editor-form>div>label{display:block;font-weight:700;font-size:14px;margin-bottom:4px}.user-active-field{display:flex;align-items:end;padding-bottom:8px}.user-active-field label{display:flex!important;align-items:center;gap:8px;margin:0!important;min-height:36px}.user-active-field input{width:auto}.user-location-access>strong{display:block;margin-bottom:8px}.user-location-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.user-location-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;border:1px solid #d9e5ec;border-radius:9px;padding:9px 11px;background:#f8fcfe}.user-location-card div{min-width:0}.user-location-card b{display:block}.user-location-card span{display:block;color:var(--muted);font-size:14px;white-space:normal}.user-location-card label{display:flex!important;align-items:center;gap:5px;margin:0!important;font-weight:500!important;font-size:14px!important}.user-location-card input{width:auto}.users-table td{vertical-align:middle}.user-inactive-row{opacity:.65}.user-row-actions form{margin:0}.user-row-actions .mini{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer}.user-row-actions button.mini{font-family:inherit}.user-row-actions .dangerbtn{color:#fff;border-color:#b42318}@media(max-width:760px){.user-location-card{grid-template-columns:1fr}.user-row-actions{flex-wrap:wrap}}

/* 0.7.66 · Order print chooser */
.order-print-dialog{width:min(92vw,500px)}
.order-print-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.order-print-choice a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:7px;padding:9px 12px;text-decoration:none;font-weight:800}
.order-print-choice a.primary{background:var(--primary);color:#fff;border:1px solid var(--primary)}
.order-print-choice a.secondary{background:#fff;color:var(--primary);border:1px solid #9dc9df}
.order-print-choice a:hover{filter:brightness(.98)}
.order-print-ecs-note{padding:0;margin:0;font-size:12px}
@media(max-width:560px){.order-print-choice{grid-template-columns:1fr}}

/* 0.7.68 · Receipt preview inside print chooser */
.order-print-dialog{width:min(94vw,500px);max-width:min(94vw,500px)}
.order-print-dialog .dialogform{max-height:92vh;overflow:auto}
.order-print-choice{position:sticky;top:0;z-index:2;background:#fff;padding-bottom:8px}
.order-print-preview-wrap{border:1px solid #d7e3ea;border-radius:8px;background:#f5f7f8;overflow:hidden}
.order-print-preview-title{padding:7px 10px;border-bottom:1px solid #d7e3ea;background:#fff;font-size:13px;font-weight:500;color:#475467}
.order-print-preview{display:block;width:100%;height:240px;min-height:210px;max-height:68vh;border:0;background:#fff}
@media(max-width:560px){.order-print-dialog{width:96vw;max-width:96vw}.order-print-preview{height:230px;max-height:66vh}}

/* 0.7.72 · General settings / POS printer mapping */
.general-settings-panel{max-width:980px}.general-settings-form{display:grid;gap:14px}.general-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.general-settings-grid label{display:grid;gap:5px;font-weight:600}.general-settings-grid label span{font-size:14px}.general-settings-grid input{width:100%}@media(max-width:720px){.general-settings-grid{grid-template-columns:1fr}}
.order-pos-print-status{min-height:18px;margin:2px 0 0;font-size:13px;color:var(--muted)}
/* 0.7.74 · QZ Tray settings */
.qz-status-row{display:grid;gap:10px}.qz-status-row .js-qz-test{justify-self:start}.qz-signing-form{border-top:1px solid var(--line)}

/* 0.7.84 · compact parcel label popup / charge mapping */
.order-shipping-label-dialog{width:min(820px,96vw);max-width:820px;max-height:94vh;border:0;border-radius:12px;padding:0;overflow:hidden}.order-shipping-label-dialog::backdrop{background:rgba(20,31,38,.46)}.shipping-label-dialogform{gap:8px;padding-bottom:8px}.shipping-label-header-actions{display:flex;align-items:center;gap:8px}.shipping-label-header-actions .js-print-shipping-label{display:inline-flex;align-items:center;gap:6px}.shipping-label-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px;align-items:start}.shipping-label-editor{width:190px;display:grid;grid-template-columns:1fr;gap:9px;align-content:start}.shipping-label-editor label{display:grid;grid-template-columns:1fr;gap:4px;font-weight:600;font-size:12px;white-space:normal}.shipping-label-editor input{box-sizing:border-box;width:100%;min-width:0;padding:7px 8px}.shipping-label-preview{box-sizing:border-box;width:14cm;min-height:9cm;height:9cm;margin:0;border:2px solid #25343b;background:#fff;color:#111;padding:12px 16px;font-family:"Fira Sans Extra Condensed",Arial,sans-serif;overflow:hidden}.shipping-label-top{display:grid;grid-template-columns:minmax(0,1fr) 5.1cm;gap:12px;align-items:start}.shipping-label-sender>strong{display:block;font-size:27px;line-height:1}.shipping-label-sender>small{display:block;margin-top:4px;font-size:17px;line-height:1.05}.shipping-label-flags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.shipping-label-flags>div{min-height:1.75cm;border:3px double #222;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:3px 4px}.shipping-label-flags>div:only-child{grid-column:1/-1}.shipping-label-flags span{font-size:13px;line-height:1}.shipping-label-flags strong{font-size:27px;line-height:1}.shipping-label-to{display:inline-block;margin-top:.42cm;border-bottom:3px solid #111;font-size:23px;font-weight:700;line-height:1}.shipping-label-company{text-align:center;margin-top:7px;font-size:34px;line-height:1;font-weight:700;text-transform:uppercase}.shipping-label-address{text-align:center;margin-top:6px;font-size:23px;line-height:1.02;font-weight:600;text-transform:uppercase}.shipping-label-city{text-align:center;margin-top:4px;font-size:22px;font-weight:600;text-transform:uppercase;line-height:1.02}.shipping-label-phone{margin-top:9px;padding-top:7px;border-top:3px solid #111;font-size:23px;font-weight:600;line-height:1}.order-shipping-label-dialog .hintline{margin:0;font-size:12px;line-height:1.15}.order-shipping-label-dialog.is-printing{border:0}.order-shipping-label-dialog.is-printing::backdrop{display:none}@media(max-width:800px){.order-shipping-label-dialog{width:min(96vw,620px)}.shipping-label-workspace{grid-template-columns:1fr}.shipping-label-editor{width:100%;grid-template-columns:1fr 1fr}.shipping-label-preview{width:100%;max-width:14cm;height:auto;min-height:9cm;margin:0 auto}}@media(max-width:700px){.shipping-label-top{grid-template-columns:1fr}.shipping-label-flags{grid-template-columns:1fr 1fr}.shipping-label-to{margin-top:14px}.shipping-label-company{font-size:29px}.shipping-label-address,.shipping-label-city,.shipping-label-phone{font-size:20px}}
.shipping-label-print-frame{position:fixed;left:-10000px;top:-10000px;width:1px;height:1px;border:0;visibility:hidden}

/* 0.7.89 · Warehouse rack plans */
.warehouse-location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.warehouse-location-card .panelhead{display:flex;align-items:center;justify-content:space-between;gap:15px}.warehouse-location-card .panelhead h2{margin:0}.warehouse-location-card .panelhead small{display:block;margin-top:3px;color:var(--muted)}.warehouse-location-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px}.warehouse-location-stats>div{padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}.warehouse-location-stats span{display:block;color:var(--muted);font-size:13px}.warehouse-location-stats strong{display:block;margin-top:4px;font-size:24px}.warehouse-plan-dialog{width:min(1180px,97vw);max-width:1180px;border:0;border-radius:12px;padding:0}.warehouse-plan-dialog::backdrop{background:rgba(20,31,38,.48)}.warehouse-plan-dialogform{max-height:92vh;overflow:auto}.warehouse-plan-view{overflow:auto;padding:4px 2px 14px}.warehouse-plan-view>.rack-border{border:0!important}.warehouse-plan-view .pagetitle{text-align:center;font-size:25px;font-weight:700;color:#d22;margin:6px 0 8px;border-bottom:2px solid #319ab8}.warehouse-map-table{border-collapse:separate;border-spacing:3px;margin:0 auto!important;background:#eef8fc;min-width:min-content}.warehouse-map-table td{padding:0;min-width:42px;height:34px;text-align:center;border:0!important;position:relative}.warehouse-map-table td.rack-border{border:1px solid #319ab8!important;background:#fff}.warehouse-rack{position:relative;width:100%;height:100%;min-height:34px;border:0;background:#fff;color:#194b60;font:600 17px/1 "Fira Sans Condensed",sans-serif;cursor:pointer}.warehouse-rack:hover{background:#dff4fb}.warehouse-map-symbol{color:#bbb;font-size:20px}.warehouse-rack-shortage{position:absolute;z-index:2;top:-9px;left:-8px;min-width:30px;height:22px;padding:0 5px;border-radius:12px;background:#e21b23;color:#fff;font-size:10px;line-height:22px;font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.15)}.warehouse-rack-shortage:nth-of-type(2){top:14px}.warehouse-rack-shortage:nth-of-type(3){top:37px}.warehouse-rack-head{display:flex;align-items:center;gap:14px;padding:4px 0 10px;border-bottom:1px solid var(--line)}.warehouse-rack-head>div{display:grid}.warehouse-rack-head strong{font-size:25px}.warehouse-rack-head small{color:var(--muted)}.warehouse-shelf-tabs{display:flex;gap:7px;padding:12px 0;flex-wrap:wrap}.warehouse-shelf-tabs button{width:46px;height:44px;border:1px solid var(--line);background:var(--surface-2);border-radius:7px;font-size:20px;font-weight:700}.warehouse-shelf-tabs button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.warehouse-rack-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;min-height:130px}.warehouse-rack-item{position:relative;display:grid;grid-template-columns:72px 1fr;gap:9px;border:1px solid var(--line);border-radius:8px;padding:8px;background:#fff}.warehouse-rack-item.shortage{border-color:#e21b23}.warehouse-rack-item img{width:72px;height:72px;object-fit:contain;background:#fafafa}.warehouse-rack-item .no-image{width:72px;height:72px;display:grid;place-items:center;background:#f4f4f4;color:#aaa;font-size:25px}.warehouse-rack-item strong{display:block;font-size:15px}.warehouse-rack-item small{display:block;color:var(--muted);line-height:1.2}.warehouse-rack-item .qty{margin-top:6px;font-size:18px;font-weight:700}.warehouse-rack-item .shortage-tag{display:inline-block;margin-top:4px;padding:2px 6px;border-radius:10px;background:#e21b23;color:#fff;font-size:12px;font-weight:700}.warehouse-rack-item .remove-position{position:absolute;right:5px;bottom:5px;border:0;background:transparent;color:#b33;cursor:pointer}.warehouse-rack-empty{grid-column:1/-1;padding:34px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:8px}.warehouse-position-form{display:grid;grid-template-columns:minmax(220px,1fr) 90px auto;align-items:end;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.warehouse-position-form label{display:grid;gap:4px}.warehouse-position-form input,.warehouse-position-form select{width:100%}@media(max-width:800px){.warehouse-location-grid{grid-template-columns:1fr}.warehouse-position-form{grid-template-columns:1fr}.warehouse-plan-dialog{width:98vw}.warehouse-map-table{transform-origin:top left}.warehouse-rack-items{grid-template-columns:1fr}}
.warehouse-shelf-tabs button small{display:block;font-size:10px;line-height:1;margin-top:1px;font-weight:500}

/* 0.7.90 · Order shipping modal */
.order-shipping-dialog{width:min(980px,97vw);max-width:980px;max-height:94vh;border:0;border-radius:12px;padding:0;overflow:hidden}.order-shipping-dialog::backdrop{background:rgba(20,31,38,.48)}.order-shipping-dialog .order-shipping-form{max-height:94vh;overflow:auto;gap:13px}.order-shipping-cloud-ready{display:flex;align-items:center;gap:9px 18px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);font-size:13px}.order-shipping-cloud-ready>span{display:inline-flex;align-items:center;gap:5px}.order-shipping-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}.order-shipping-section-title>strong{font-size:15px}.order-shipping-section-title>small{color:var(--muted);font-size:12px}.order-shipping-recipient{padding:11px;border:1px solid var(--line);border-radius:9px}.order-shipping-recipient-grid,.order-shipping-provider-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 10px}.order-shipping-recipient-grid label,.order-shipping-provider-grid label{display:grid;gap:4px;min-width:0;font-size:12px;font-weight:600}.order-shipping-recipient-grid label.span2,.order-shipping-provider-grid label.span2{grid-column:span 2}.order-shipping-recipient-grid input,.order-shipping-provider-grid input,.order-shipping-provider-grid select,.order-shipping-provider-grid textarea{box-sizing:border-box;width:100%;min-width:0}.order-shipping-provider-grid label>small{font-weight:400;color:var(--muted)}.order-shipping-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);padding-top:2px}.order-shipping-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:7px 13px;border:1px solid var(--line);border-bottom:0;border-radius:8px 8px 0 0;background:var(--surface-2);color:inherit;font-weight:700;cursor:pointer}.order-shipping-tabs button small{font-size:10px;font-weight:500;color:var(--muted)}.order-shipping-tabs button.active{background:#fff;border-color:var(--accent);color:var(--accent);box-shadow:inset 0 2px 0 var(--accent)}.order-shipping-tabs button.active small{color:inherit}.order-shipping-panel{padding:12px;border:1px solid var(--line);border-radius:0 8px 8px 8px;background:#fff}.order-shipping-panel[hidden]{display:none!important}.order-shipping-panel>.notice:first-child{margin-top:0}.order-shipping-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;align-self:end;min-height:38px}.order-shipping-check input{width:auto!important}.order-shipping-replace{display:grid;gap:4px;margin:10px 0 0}.order-shipping-replace label{display:flex;align-items:center;gap:7px}.order-shipping-submit-row{position:sticky;bottom:-1px;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:9px 0;background:#fff;border-top:1px solid var(--line)}.order-shipping-submit-help{margin-right:auto;color:var(--muted);font-size:12px}.order-shipping-submit-help.error{color:#a4262c;font-weight:700}.order-shipping-submit-row button{min-width:190px}.order-shipping-history{padding-top:3px}.order-shipping-history .tablewrap{max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:8px}.order-shipping-history table{margin:0}.order-shipping-history th,.order-shipping-history td{padding:7px 9px;font-size:12px}.order-shipping-pdf{display:inline-block;margin-left:6px;font-weight:700}.order-shipping-dialog .notice.small{font-size:12px;margin:0 0 10px}.order-shipping-dialog .notice.danger{font-size:12px}.order-shipping-form button[disabled]{opacity:.55;cursor:not-allowed}@media(max-width:820px){.order-shipping-recipient-grid,.order-shipping-provider-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-shipping-tabs{overflow:auto}.order-shipping-tabs button{white-space:nowrap}.order-shipping-section-title{display:grid;gap:2px}}@media(max-width:520px){.order-shipping-dialog{width:98vw}.order-shipping-recipient-grid,.order-shipping-provider-grid{grid-template-columns:1fr}.order-shipping-recipient-grid label.span2,.order-shipping-provider-grid label.span2{grid-column:auto}.order-shipping-cloud-ready{display:grid;gap:5px}.order-shipping-submit-row{display:grid}.order-shipping-submit-row button{width:100%}.order-shipping-history{overflow:hidden}}

/* 0.7.91 · structured courier archive */
.order-shipping-provider-grid [data-general-other-wrap][hidden]{display:none!important}


/* 0.7.95 · Warehouse direct rack page + right plan drawer */
.warehouse-pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.warehouse-page-actions{display:flex;align-items:center;gap:8px}.warehouse-page-actions>a,.warehouse-page-actions>button{min-width:72px;justify-content:center}.warehouse-page-actions>a.active{background:var(--accent);border-color:var(--accent);color:#fff}.warehouse-current-rack-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.warehouse-current-rack-head h2{margin:0}.warehouse-current-rack-head small{display:block;margin-top:3px;color:var(--muted)}.warehouse-current-rack-head>div:last-child{display:flex;gap:16px;align-items:center;color:var(--muted);font-size:13px}.warehouse-rack-page .warehouse-rack-view{display:block!important}.warehouse-rack-page .warehouse-shelf-tabs{padding-top:0}.warehouse-plan-backdrop{position:fixed;inset:0;z-index:1040;background:rgba(20,31,38,.42);opacity:0;pointer-events:none;transition:opacity .2s ease}.warehouse-plan-backdrop.is-open{opacity:1;pointer-events:auto}.warehouse-plan-drawer{position:fixed;z-index:1050;top:0;right:0;width:min(620px,94vw);height:100vh;background:var(--surface,#fff);box-shadow:-8px 0 28px rgba(0,0,0,.2);transform:translateX(102%);transition:transform .24s ease;display:flex;flex-direction:column}.warehouse-plan-drawer.is-open{transform:translateX(0)}.warehouse-plan-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);background:#fff}.warehouse-plan-drawer>header>div{display:grid}.warehouse-plan-drawer>header strong{font-size:20px}.warehouse-plan-drawer>header small{color:var(--muted)}.warehouse-plan-drawer>header button{border:0;background:transparent;font-size:23px;cursor:pointer}.warehouse-plan-drawer .warehouse-plan-view{flex:1;overflow:auto;padding:12px 14px 24px}.warehouse-plan-drawer .warehouse-rack{display:flex;align-items:center;justify-content:center;text-decoration:none}.warehouse-plan-drawer .warehouse-rack-link{color:#194b60}.warehouse-plan-drawer .warehouse-rack-link:hover{background:#dff4fb}@media(max-width:760px){.warehouse-pagehead{align-items:stretch;flex-direction:column}.warehouse-page-actions{justify-content:flex-end}.warehouse-current-rack-head{align-items:flex-start;flex-direction:column}.warehouse-current-rack-head>div:last-child{flex-wrap:wrap}}

/* 0.7.96 · Warehouse vertical shelves A–G */
.warehouse-shelves-list{display:grid;gap:8px}.warehouse-shelf-row{display:grid;grid-template-columns:58px minmax(0,1fr);min-height:94px;border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.warehouse-shelf-row.has-shortage{border-color:#e21b23}.warehouse-shelf-letter{display:grid;place-items:center;border:0;border-right:1px solid var(--line);border-radius:0;background:var(--surface-2);color:var(--text);font:700 30px/1 "Fira Sans Condensed",sans-serif;cursor:pointer}.warehouse-shelf-letter:hover{background:#dff4fb;color:var(--accent)}.warehouse-shelf-row.has-shortage .warehouse-shelf-letter{border-right-color:#e21b23}.warehouse-shelf-content{min-width:0;padding:8px}.warehouse-shelf-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}.warehouse-shelf-empty{display:flex;align-items:center;min-height:76px;padding:0 14px;color:var(--muted);font-style:italic}.warehouse-shelf-row .warehouse-rack-item{min-height:76px}.warehouse-shelf-row .warehouse-rack-item img,.warehouse-shelf-row .warehouse-rack-item .no-image{width:64px;height:64px}.warehouse-shelf-row .warehouse-rack-item{grid-template-columns:64px 1fr}.warehouse-rack-page .warehouse-position-form{margin-top:16px}@media(max-width:700px){.warehouse-shelf-row{grid-template-columns:46px minmax(0,1fr)}.warehouse-shelf-letter{font-size:24px}.warehouse-shelf-items{grid-template-columns:1fr}}

/* 0.7.97 · warehouse minimum stock per SKU */
.warehouse-rack-item-main{min-width:0}.warehouse-stock-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:5px}.warehouse-stock-line .qty{margin:0}.warehouse-min-stock-form{display:flex;align-items:center;gap:6px;margin-top:7px}.warehouse-min-stock-form label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}.warehouse-min-stock-form input[type=number]{width:72px;height:30px;padding:4px 6px}.warehouse-min-stock-form button{min-width:34px;height:30px;padding:3px 8px}.warehouse-rack-item.shortage .warehouse-min-stock-form input{border-color:#d33}

/* 0.7.98 · warehouse legacy-style cards, inline move, add/search dialog */
.warehouse-shelf-row{grid-template-columns:52px minmax(0,1fr) 42px;align-items:stretch}.warehouse-shelf-letter{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--panel-soft);font-size:28px;font-weight:700;color:var(--accent)}.warehouse-shelf-add{align-self:start;width:36px;height:36px;margin:8px 3px 0 0;padding:5px;border:1px solid var(--line);background:#fff;border-radius:5px;cursor:pointer}.warehouse-shelf-add img{width:24px;height:24px;display:block}.warehouse-rack-item{position:relative}.warehouse-rack-item-main>strong{font-size:14px}.warehouse-rack-item-main>small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-stock-line{gap:7px}.warehouse-stock-line .qty{margin-left:auto;font-size:18px}.warehouse-move-toggle{width:30px;height:30px;padding:3px;border:0;background:transparent;cursor:pointer}.warehouse-move-toggle img{width:24px;height:24px;display:block}.warehouse-position-badge{font-weight:700;color:var(--accent);font-size:14px}.warehouse-move-form{display:flex;gap:5px;margin-top:6px;align-items:center}.warehouse-move-form[hidden]{display:none}.warehouse-move-form input{width:78px;height:30px;text-transform:uppercase;font-weight:700}.warehouse-move-form button{height:30px;padding:3px 9px}.warehouse-add-dialog{width:min(920px,94vw);max-height:88vh;border:0;border-radius:10px;padding:0}.warehouse-add-dialog::backdrop{background:rgba(20,31,38,.48)}.warehouse-add-dialogform{gap:10px}.warehouse-add-dialog header>div{display:grid;gap:2px}.warehouse-add-dialog header small{font-size:12px;color:var(--muted)}.warehouse-add-search{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;border:1px solid var(--line);border-radius:7px;background:#fff;padding:3px 8px}.warehouse-add-search img{width:22px;height:22px}.warehouse-add-search input{border:0!important;box-shadow:none!important;font-size:18px;min-height:40px}.warehouse-add-results{display:grid;gap:8px;max-height:62vh;overflow:auto;padding:2px}.warehouse-add-empty{padding:26px;text-align:center;color:var(--muted)}.warehouse-search-result{display:grid;grid-template-columns:86px minmax(0,1fr) 48px;gap:10px;align-items:center;border:1px solid var(--line);border-radius:7px;padding:8px;background:#fff}.warehouse-search-result>img,.warehouse-search-result>.no-image{width:82px;height:82px;object-fit:contain;background:#f3f4f5}.warehouse-search-result-main{min-width:0;display:grid;gap:2px}.warehouse-search-result-main>strong{font-size:18px}.warehouse-search-result-main>b{font-size:13px}.warehouse-search-result-main>small{color:var(--muted)}.warehouse-search-stock{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px}.warehouse-search-stock span{padding:3px 7px;border-radius:4px;background:var(--panel-soft);font-size:12px}.warehouse-search-add{width:42px;height:42px;border:2px solid var(--accent);border-radius:6px;background:#fff;color:var(--accent);font-size:30px;line-height:1;cursor:pointer}@media(max-width:700px){.warehouse-shelf-row{grid-template-columns:44px minmax(0,1fr) 38px}.warehouse-search-result{grid-template-columns:64px minmax(0,1fr) 44px}.warehouse-search-result>img,.warehouse-search-result>.no-image{width:60px;height:60px}}


/* 0.7.99 · compact legacy warehouse cards + expandable shortage details */
.warehouse-shelf-items{grid-template-columns:repeat(auto-fill,150px);align-items:start;justify-content:start}.warehouse-product-card{display:block!important;width:150px;min-height:0!important;padding:0 7px 7px;border-radius:0;background:#fff;overflow:visible}.warehouse-card-title{position:relative;z-index:1;display:inline-block;max-width:132px;margin:-1px 0 3px -1px;padding:1px 4px;background:#fff;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-card-image{display:block;width:100%;height:104px;padding:0;border:0;cursor:pointer}.warehouse-card-image>img,.warehouse-card-image>.no-image{width:100%!important;height:104px!important;object-fit:contain}.warehouse-card-footer{position:relative;display:flex;align-items:center;gap:3px;height:32px}.warehouse-card-footer .warehouse-move-toggle{width:26px;height:26px;padding:1px}.warehouse-card-footer .warehouse-move-toggle img{width:23px;height:23px}.warehouse-card-footer .warehouse-position-badge{font-size:12px;max-width:44px;overflow:hidden;text-overflow:ellipsis}.warehouse-card-footer .qty{margin-left:auto!important;min-width:34px;text-align:right;font-size:20px!important;line-height:1;border-bottom:2px solid var(--accent);padding-bottom:2px}.warehouse-shortage-dot{position:absolute;left:55px;top:3px;width:23px;height:23px;padding:0;border:2px solid #fff;border-radius:50%;background:#e21b23;color:#fff;font-size:13px;font-weight:800;line-height:19px;box-shadow:0 1px 3px rgba(0,0,0,.25);cursor:pointer}.warehouse-product-card.shortage{border-color:var(--line)}.warehouse-product-card.is-expanded{grid-column:span 2;width:310px;border:1px solid #e21b23;border-radius:8px;padding:7px}.warehouse-product-card.is-expanded>.warehouse-card-title,.warehouse-product-card.is-expanded>.warehouse-card-image,.warehouse-product-card.is-expanded>.warehouse-card-footer{display:none}.warehouse-card-details{position:relative;display:grid;grid-template-columns:94px minmax(0,1fr);gap:8px;min-height:132px}.warehouse-card-details[hidden]{display:none!important}.warehouse-detail-image>img,.warehouse-detail-image>.no-image{width:94px!important;height:94px!important;object-fit:contain;background:#f4f4f4}.warehouse-detail-main{min-width:0;padding-right:18px}.warehouse-detail-main>strong{font-size:15px}.warehouse-detail-main>small{font-size:12px;white-space:normal!important}.warehouse-detail-stock{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 4px}.warehouse-detail-stock .warehouse-position-badge{padding:3px 7px;border:1px solid var(--line);border-radius:4px;background:#fff;font-size:14px}.warehouse-detail-stock>b{font-size:18px}.warehouse-card-details .shortage-tag{display:inline-block;margin:3px 0 4px;padding:3px 9px;border-radius:11px;background:#e21b23;color:#fff;font-size:12px;font-weight:700}.warehouse-card-details .warehouse-min-stock-form{margin-top:5px}.warehouse-card-details .warehouse-min-stock-form label{font-size:12px}.warehouse-card-details .warehouse-min-stock-form input[type=number]{width:66px}.warehouse-card-close{position:absolute;right:-3px;top:-4px;z-index:2;width:24px;height:24px;padding:0;border:0;background:transparent;color:#b22;font-size:18px;cursor:pointer}.warehouse-card-details .remove-position{right:-3px;bottom:-4px}.warehouse-card-details .warehouse-move-form{grid-column:2;margin-top:4px}@media(max-width:700px){.warehouse-shelf-items{grid-template-columns:repeat(auto-fill,140px)}.warehouse-product-card{width:140px}.warehouse-product-card.is-expanded{grid-column:1/-1;width:100%;max-width:310px}}

/* 0.7.100 · legacy-proportioned compact warehouse card */
.warehouse-shelf-items{grid-template-columns:repeat(auto-fill,146px);gap:10px 12px}
.warehouse-product-card{box-sizing:border-box;width:146px!important;padding:0 8px 6px!important;border:1px solid var(--accent)!important;background:#fff!important;box-shadow:none!important}
.warehouse-card-title{display:block!important;width:max-content;max-width:132px;margin:-11px 0 5px -7px!important;padding:0 5px!important;background:#fff!important;color:#111;font-size:13px!important;line-height:20px!important;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.warehouse-card-image{width:112px!important;height:112px!important;margin:0 auto 4px!important;padding:0!important;border:0!important}
.warehouse-card-image>img,.warehouse-card-image>.no-image{display:block;width:112px!important;height:112px!important;object-fit:contain!important}
.warehouse-card-footer{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;height:30px!important;margin-top:1px;gap:4px}
.warehouse-card-actions{position:relative;display:flex;align-items:center;gap:1px;min-width:30px;height:28px}
.warehouse-card-footer .warehouse-move-toggle{display:grid;place-items:center;width:28px!important;height:28px!important;padding:1px!important;margin:0!important;border:0!important;background:transparent!important}
.warehouse-card-footer .warehouse-move-toggle img{width:18px!important;height:18px!important;object-fit:contain}
.warehouse-card-footer .qty{margin-left:auto!important;min-width:36px!important;padding:0 0 3px!important;border-bottom:2px solid var(--accent)!important;color:#111;font-size:21px!important;line-height:1!important;text-align:right!important;font-weight:500}
.warehouse-shortage-dot{left:21px!important;top:-5px!important;width:20px!important;height:20px!important;border:2px solid #fff!important;font-size:0!important;line-height:16px!important}
.warehouse-shortage-dot::after{content:"!";font-size:12px;font-weight:800;color:#fff}
.warehouse-product-card.is-expanded{width:310px!important;padding:7px!important;border-color:#e21b23!important}
@media(max-width:700px){.warehouse-shelf-items{grid-template-columns:repeat(auto-fill,138px)}.warehouse-product-card{width:138px!important}.warehouse-card-image,.warehouse-card-image>img,.warehouse-card-image>.no-image{width:106px!important;height:106px!important}.warehouse-product-card.is-expanded{width:100%!important;max-width:310px}}

/* 0.7.101 · legacy warehouse card refinements */
.warehouse-product-card{border:1px solid var(--tpl-2)!important}
.warehouse-card-title{font-size:16px!important}
.warehouse-card-image{display:block;text-decoration:none}
.warehouse-card-image>img{background:transparent!important}
.warehouse-product-card>.warehouse-move-form{margin:4px 0 0!important}
.warehouse-product-card>.warehouse-move-form input.js-warehouse-move-input{width:78px;height:30px;text-transform:uppercase;font-weight:700}

/* 0.7.118 inline stock edit + SVG tab alignment */
.subtabs .ams-icon,.right-title .ams-icon,.section-row h3 .ams-icon,.section-title .ams-icon,details summary .ams-icon{vertical-align:-0.18em;margin-right:5px}
.icon .ams-icon{margin:0}
.product-stock-value{border:0;background:transparent;padding:0 3px;font:inherit;font-weight:700;cursor:pointer;border-bottom:1px dotted currentColor}
.product-stock-value:hover{opacity:.72}
.product-stock-form{display:inline-flex;align-items:center;gap:4px;margin-left:4px}
.product-stock-form[hidden]{display:none!important}
.product-stock-form input[type=number]{width:68px;min-width:68px;padding:4px 6px}
.product-stock-form button.small{min-width:28px;padding:3px 7px;line-height:1.2}
.audit-details{max-width:720px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}

/* 0.7.119 warehouse rack stock editing */
.warehouse-stock-value{border:0;background:transparent;cursor:pointer}
.warehouse-stock-value:hover{opacity:.72}
.warehouse-stock-form{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:5px}
.warehouse-stock-form[hidden]{display:none!important}
.warehouse-stock-form input[type=number]{width:70px;min-width:70px;padding:4px 6px;text-align:right}
.warehouse-stock-form button.small{min-width:28px;padding:3px 7px;line-height:1.2}

/* 0.7.120 one product-image rule: SKU color controls filename suffix + background */
.product-visual-bg{background-clip:padding-box}
.product-visual-bg img{object-fit:contain}
.warehouse-search-result .product-visual-bg{display:grid;place-items:center;width:64px;height:64px;border-radius:8px;overflow:hidden;flex:0 0 64px}
.warehouse-search-result .product-visual-bg img{max-width:100%;max-height:100%}


/* 0.7.121 integrated user custom.css overrides */
/*
 * NEO AMS custom overrides.
 * Κοινά οπτικά overrides του NEO AMS. Από 0.7.38 το αρχείο μπορεί να
 * ενημερώνεται από application updates όταν απαιτείται για κοινές αλλαγές UI.
 */

html, body {
	font-family: 'Fira Sans Extra Condensed', sans-serif;
	font-size: 17px;
  
}
.subnav a {
  font-weight:400;
  font-size: 18px;
}
.btn-primary, 
.search button, 
.button.primary,
.catalog-pager .pager-per .mini,
.chip, 
.toolchip, 
.roundchip, 
.mini,
button.primary,
.tabs a
{
  font-weight: 400;
  font-size: 14px;
 padding: 6px 10px;
  min-width: auto;
}
.product-printtype-icon {
  width: 70px !important;
  height: 20px !important;
}
.shell {
  padding: 4px 24px;
}
dialog {
  max-width: min(92vw,520px);
  width: 800px;
}
.product-color-form, .product-size-form {
  width: min(94vw,520px);
}
.dialogform label {

  grid-template-columns: 60px 1fr;

}

.pagehead div {
  width:80vw;

}
.pagehead h1 {
  width:100%;
border-bottom: 1px solid  var(--tpl-2);
}
.right-scroll {
  max-height: none;
}
.calendar-order-customer a {
  font-weight: 400;

}
.orders-calendar-weekday {
  font-weight: 400;
  font-size: 16px;
}
.formgrid.small {
	padding: 5px;
	gap: 8px
}
.formgrid.small label {
	font-size: 14px
}
.formgrid.small textarea {
	min-height: 58px
}
.search input, .search select, input, select, textarea {

	border-bottom: 1px solid var(--tpl-2);
	border-radius: 5px;
	padding: 5px 10px;
	background: #fff
}
.search {
  flex-wrap: unset;
}
.master-row.wide {
  display:flex;
  grid-template-columns: 120px minmax(180px,1fr) minmax(120px,1fr) 90px 90px 110px;
}
.master-row input, .master-row select {
  width: 100%;
}
.master-row input[name="code"],
.master-row input[name="image_suffix"] {
  width: 50px;
  text-align:center;
}
.master-row input[type="color"]{
  width: 150px;
  height:50px;
}
.master-row input[type="number"] {
  width: 80px;

}
.order-meta-toggle {
  border-top: 1px dashed var(--tpl-2);
}
.order-grid input.money, .order-grid input.qty, .order-grid input.discount {
  width: 65px;
}
.money, .qty, .discount{
  font-size: 20px !important;
  text-align: center;
}

.formgrid label {
	display: block;
	font-weight: 400;
	font-size: 14px;
	margin-bottom: 0;
}
.formgrid input, .formgrid select, .formgrid textarea {
	width: auto; float:right;
}

.tabletools, .pager {
  justify-content: left;
  gap: 5px;
  padding: 3px 8px;

}
.customer-table td, .customer-table th {
  padding: 1px 8px;
}
th, td {
  padding: 1px 8px;
  border-bottom: 1px solid var(--tpl-3);
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 14px;
  color: #fff;
  	font-weight: 400;
  background: var(--tpl-1);
}
.order-grid th {
  background: var(--tpl-2);
}

.footer {  
  width: 100%;
  padding: 7px;
  color: var(--tpl-3);
  position: fixed;
  bottom: 0;  
  left: 0;
  background: var(--tpl-1);
}



@media screen and (max-width: 900px) {

.master-row {
  display:table;
}  
  
.master-row input, .master-row select {
  width:50%;
}
.master-row input[name="name"]{
  width: 120px;
  text-align:center;
}

  .master-row input[name="code"],
.master-row input[name="image_suffix"] {
  width: 80px;
  text-align:center;
}  
.master-row input[type="color"]{
  width: 150px;
  height:50px;
}
.master-row input[type="number"] {
  width: 60px;

}
.master-row label {float:left;
 width: 60px!important;
}
}

/* Courier / Vouchers module */
.actions a.primary,.actions a.secondary,.actions button.secondary,td a.primary{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border-radius:8px;font-weight:800;text-decoration:none;white-space:nowrap}
.actions a.primary,td a.primary{background:var(--primary);color:#fff;border:1px solid var(--primary)}
.actions a.secondary,.actions button.secondary{background:#fff;color:var(--primary);border:1px solid #cfd7e2;cursor:pointer}
.actions a.secondary:hover,.actions button.secondary:hover{background:#f8fafc}
.pill.created{background:#e0f2fe;color:#075985}.pill.in_transit{background:#fff7d6;color:#854d0e}.pill.delivered{background:#dcfae6;color:#067647}.pill.returned{background:#fee4e2;color:#b42318}.pill.cancelled,.pill.error{background:#fee4e2;color:#b42318}
.notice.danger{background:#fff1f0;border-color:#f7b4ad;color:#8f251b}.notice.danger p{margin:8px 0 0}.panel code{background:#f2f4f7;border-radius:6px;padding:2px 5px}
@media(max-width:900px){.twocol{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.formgrid .span2{grid-column:auto}.actions{flex-wrap:wrap}}


/*.calendar-order-ship:before {
  content: "\2B28";
  color: #0b9f32;
}*/

.calendar-order-status .asset-fastdelivery,
.js-order-ajax-form .asset-fastdelivery
{
  color: var(--success);
}
.status-menu .asset-fastdelivery
{
  color: #fff;
}
.calendar-order-status .asset-new, 
.js-order-ajax-form .asset-new,
.status-menu .asset-new{
  color: var(--error);
}
.calendar-order-status .asset-del2, 
.js-order-ajax-form .asset-del2, 
.status-menu .asset-del2{
  color: var(--alert);
}
.js-order-ajax-form  .asset-del2 {
   width: 14px;
}
.shipping-label-editor label {
  grid-template-columns: 1fr;
  font-weight: 300;
  font-size: 13px;
}
.shipping-label-to {
  margin-top: .92cm;
  margin-left: 20px;
}
.shipping-label-top {
  font-family: "Fira Sans Extra Condensed",Arial,sans-serif;
  grid-template-columns: minmax(0,1fr) 6.1cm;
  gap: 2px;
}
.warehouse-card-image > img, .warehouse-card-image > .no-image {
  padding: 10px;
}

.warehouse-shelf-row {
   border: 4px double var(--tpl-2);
  padding: 10px;
}
.warehouse-shelf-letter {
  background: var(--tpl-2);
  font-size: 46px;
  font-weight: 700;
  color: var(--tpl-3);
  border-radius: 7px 0px 0px 7px;
}

.warehouse-current-rack-head {
  background: var(--tpl-2);
  color: var(--tpl-3)!important;
}
.warehouse-current-rack-head h2{
font-size:40px;
  line-height:30px;
}
.warehouse-current-rack-head span,
.warehouse-current-rack-head small{
  color: var(--tpl-3); line-height:10px;
}

.warehouse-shortage-dot {
  left: 105px !important;
  top: -20px !important;
  line-height: 5px !important;
  padding: 6px;
}
.warehouse-search-result {
  grid-template-columns: 150px minmax(0,1fr) 48px;
  gap: 10px;
}
.warehouse-search-result .product-visual-bg {
  width: 120px;
  height: 120px;
  border-radius: 6px;
 
}
.warehouse-search-stock span {
  padding: 7px 17px;
  border-radius: 4px;
  background: var(--tpl-3);
  font-size: 16px;
}
.warehouse-search-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tpl-1);
  color: var(--tpl-3);
  font-size: 60px;
}



/* 0.7.40 Calendar softer status colors */
.calendar-order-status .asset-fastdelivery { color:#5f9f7b; }
.calendar-order-status .asset-new { color:#c7837f; }
.calendar-order-status .asset-del2 { color:#cda15f; }
/* 0.7.43 Darker text COLORS (not only font-weight) */
html, body { color:#101c22; font-weight:400; }
.subnav a { color:#1b2930; font-weight:400; }
.formgrid label { color:#14242b; font-weight:400; }
th { font-weight:400; }
.orders-calendar-weekday { font-weight:500; }
.orders-calendar-toolbar h2 { color:#12262f; font-weight:600; }
.calendar-order-card { color:#081f29; font-weight:500; }
.calendar-order-no { color:#004b69; font-weight:900; }
.calendar-order-pos { color:#33474f; font-weight:600; }
.calendar-order-customer a, .calendar-order-customer span { color:#081f29; font-weight:500; }
.calendar-order-amount { color:#081f29; font-weight:700; }
.orders-calendar-right-title strong { color:#0c2530; font-weight:600; }
.orders-calendar-right-title small { color:#223941; font-weight:500; }
.calendar-note-dialog .dialogform label, .calendar-receipt-dialog .dialogform label { color:#102830; font-weight:500; }

/* 0.7.58 · New-order keyboard flow / bilingual customer lookup */
.flash.auto-dismiss{transition:opacity .2s ease,transform .2s ease,max-height .2s ease,margin .2s ease,padding .2s ease;overflow:hidden}
.flash.auto-dismiss.is-hiding{opacity:0;transform:translateY(-5px);max-height:0;margin:0;padding-top:0;padding-bottom:0;border-width:0}
.new-order-customer-label{position:relative}
.new-order-customer-matches{
  position:absolute;z-index:50;left:0;right:0;top:100%;margin-top:3px;
  max-height:260px;overflow:auto;background:#fff;border:1px solid #9ecbdb;border-radius:7px;
  box-shadow:0 10px 28px #0f2f3d26;padding:4px
}
.new-order-customer-match{
  width:100%;border:0;background:#fff;color:#102830;padding:7px 9px;border-radius:5px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer
}
.new-order-customer-match:hover,.new-order-customer-match.active{background:#eaf6fa}
.new-order-customer-match strong{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.new-order-customer-match small{font-size:14px;color:#4e6873;font-weight:700;white-space:nowrap}

/* 0.7.121 warehouse navigation button group */
.warehouse-page-actions{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.warehouse-page-actions>a.secondary,
.warehouse-page-actions>button.primary{
  display:inline-flex;align-items:center;justify-content:center;
  height:34px;min-height:34px;padding:6px 13px;margin:0;
  border-radius:7px;border:1px solid var(--tpl-2);
  font:400 14px/1 'Fira Sans Extra Condensed',sans-serif;
  text-decoration:none;cursor:pointer;box-sizing:border-box
}
.warehouse-page-actions>a.secondary{background:#fff;color:var(--tpl-2)}
.warehouse-page-actions>a.secondary.active,
.warehouse-page-actions>button.primary{background:var(--tpl-2);color:#fff}
.warehouse-shelf-row{scroll-margin-top:82px}
.warehouse-rack-link{font-weight:700;text-decoration:none}

/* 0.7.122 · Active warehouse shelf anchor */
.warehouse-rack-page[data-warehouse-location="HER"] .warehouse-shelf-row-active{background:var(--pos-her-bg)}
.warehouse-rack-page[data-warehouse-location="ATH"] .warehouse-shelf-row-active{background:var(--pos-ath-bg)}
.warehouse-shelf-letter-active{background:var(--tpl-1)!important}

/* 0.7.123 · Monthly orders calendar */
.orders-calendar-page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.orders-calendar-page-actions .orders-calendar-location-tabs{display:flex;align-items:center;gap:4px;margin:0}
.orders-calendar-values-toggle{width:34px;height:34px;display:grid;place-items:center}
.orders-calendar-values-toggle .ams-svg{width:18px;height:18px}
.orders-calendar-page{width:100%}
.orders-calendar-main{width:100%;min-width:0}
.orders-calendar-total{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:10px 14px;border-top:2px solid var(--tpl-2);font-size:16px}
.orders-calendar-total strong{font-size:20px}
.orders-calendar-page.is-values-hidden [data-calendar-value]{visibility:hidden}
.calendar-day-date{border:0;cursor:pointer}
.calendar-day-money{cursor:pointer}
.calendar-day-drawer-backdrop{position:fixed;inset:50px 0 0;z-index:54;background:#102a432c;opacity:0;pointer-events:none;transition:opacity .18s ease}
.calendar-day-drawer-backdrop.is-open{opacity:1;pointer-events:auto}
.calendar-day-drawer{position:fixed;right:0;top:50px;bottom:0;width:min(420px,92vw);z-index:55;background:#fff;border-left:1px solid var(--tpl-2);box-shadow:-18px 0 42px #102a4333;transform:translateX(105%);transition:transform .2s ease;display:flex;flex-direction:column}
.calendar-day-drawer.is-open{transform:translateX(0)}
.calendar-day-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid var(--tpl-2);background:#fff}
.calendar-day-drawer-head>div{display:grid;gap:2px}
.calendar-day-drawer-head strong{font-size:18px}
.calendar-day-drawer-head small{font-size:14px;color:#536a74}
.calendar-day-drawer-head button{width:32px;height:32px;border:0;border-radius:50%;background:var(--tpl-1);color:#fff;cursor:pointer}
.calendar-day-drawer-body{padding:12px;overflow:auto;min-height:0;flex:1}

/* 0.7.124 · Mobile navigation + Monthly Orders mobile layout */
.mobile-nav-toggle,.mobile-nav-backdrop,.mobile-nav-drawer{display:none}
@media(max-width:700px){
  .topbar{min-height:56px!important;height:56px!important;flex-wrap:nowrap!important;padding:6px 10px!important;gap:8px!important}
  .brand{min-width:auto!important}.brand .logo-ams{max-height:42px}
  .mainnav,.subnav,.userbox{display:none!important}
  .mobile-nav-toggle{margin-left:auto;display:grid;width:40px;height:40px;place-items:center;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer}
  .mobile-nav-toggle .ams-svg{width:25px;height:25px}
  .mobile-nav-backdrop{display:block;position:fixed;inset:56px 0 0;z-index:69;background:#102a4352;opacity:0;pointer-events:none;transition:opacity .18s ease}
  .mobile-nav-backdrop.is-open{opacity:1;pointer-events:auto}
  .mobile-nav-drawer{display:flex;position:fixed;top:56px;right:0;bottom:0;z-index:70;width:min(330px,88vw);flex-direction:column;background:#fff;box-shadow:-16px 0 38px #102a4338;transform:translateX(105%);transition:transform .2s ease}
  .mobile-nav-drawer.is-open{transform:translateX(0)}body.mobile-nav-open{overflow:hidden}
  .mobile-nav-head{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-bottom:1px solid var(--line);background:var(--tpl-1);color:#fff}
  .mobile-nav-head strong{font-size:19px}.mobile-nav-head button{width:32px;height:32px;border:0;border-radius:50%;background:#ffffff1e;color:#fff;cursor:pointer}
  .mobile-nav-sections{padding:8px 0;overflow:auto;flex:1}.mobile-nav-section{border-bottom:1px solid var(--line)}
  .mobile-nav-section-title{display:flex;align-items:center;gap:9px;padding:11px 14px;color:var(--ink);font-size:17px;font-weight:600}
  .mobile-nav-section.active>.mobile-nav-section-title{color:var(--primary);background:#f3fafc}.mobile-nav-section-title .ams-svg{width:20px;height:20px}
  .mobile-nav-submenu{display:grid;padding:0 0 8px 43px}.mobile-nav-submenu a{padding:7px 12px;color:#40545e;border-left:3px solid transparent}
  .mobile-nav-submenu a.active{color:var(--primary);font-weight:700;border-left-color:var(--primary);background:#f5fafc}
  .mobile-nav-footer{padding:12px 14px;border-top:1px solid var(--line)}.mobile-nav-footer a{display:block;text-align:center;padding:8px;border-radius:7px;background:var(--tpl-1);color:#fff}
  .shell{padding:8px!important}
  .orders-calendar-pagehead{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:8px!important;margin-bottom:8px!important}
  .orders-calendar-pagehead>div:first-child{width:auto!important;flex:0 0 auto}.orders-calendar-pagehead h1{font-size:22px!important;margin:0!important;border:0!important;width:auto!important}
  .orders-calendar-page-actions{margin-left:auto;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;flex-wrap:nowrap!important;width:auto!important}
  .orders-calendar-add{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:7px!important}
  .orders-calendar-add span{display:none!important}.orders-calendar-add .ams-svg{width:19px!important;height:19px!important}
  .orders-calendar-location-tabs{gap:2px!important}.orders-calendar-location-tabs a{min-height:34px!important;padding:5px 8px!important;font-size:13px!important;border-radius:6px!important}
  .orders-calendar-values-toggle{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important}
  .orders-calendar-panel{overflow-x:auto!important;-webkit-overflow-scrolling:touch;padding:0!important}.orders-calendar-toolbar{padding:8px!important}.orders-calendar-toolbar h2{font-size:19px!important}
  .orders-calendar-grid{min-width:760px!important}.orders-calendar-weekday{font-size:13px!important}.orders-calendar-day{min-height:96px!important}.calendar-order-card{min-width:0}
  .calendar-day-drawer{top:56px!important;width:min(360px,94vw)!important}.calendar-day-drawer-backdrop{inset:56px 0 0!important}
}

/* 0.7.125 · Mobile pageheads + RIGHT drawer */
.mobile-right-backdrop{display:none}
.mobile-add-action{gap:6px}
.mobile-add-action .ams-svg{color:currentColor}
.orders-calendar-add .ams-svg{color:#fff!important;width:22px!important;height:22px!important}

@media(max-width:700px){
  .mobile-inline-pagehead{
    display:flex!important;flex-direction:row!important;align-items:center!important;
    justify-content:space-between!important;gap:7px!important;flex-wrap:nowrap!important;
    margin-bottom:8px!important
  }
  .mobile-inline-pagehead>div:first-child{width:auto!important;min-width:0!important;flex:0 0 auto!important}
  .mobile-inline-pagehead h1{width:auto!important;border-bottom:0!important;margin:0!important;font-size:22px!important;line-height:1.05!important}
  .mobile-inline-pagehead>div:first-child p{margin:3px 0 0!important;font-size:13px!important;white-space:nowrap}
  .mobile-inline-pagehead .pagehead-actions{
    width:auto!important;min-width:0!important;flex:1 1 auto!important;margin-left:auto!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;
    gap:4px!important;flex-wrap:nowrap!important
  }
  .mobile-inline-pagehead .pagehead-actions .mobile-add-action{
    width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;
    display:grid!important;place-items:center!important;border-radius:7px!important;flex:0 0 34px!important
  }
  .mobile-inline-pagehead .pagehead-actions .mobile-add-action>span{display:none!important}
  .mobile-inline-pagehead .pagehead-actions .mobile-add-action .ams-svg{width:21px!important;height:21px!important;color:#fff!important}
  .mobile-inline-pagehead .pagehead-actions .search{display:flex!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;flex-wrap:nowrap!important;gap:4px!important}
  .mobile-inline-pagehead .pagehead-actions .search input{min-width:0!important;width:100%!important;padding:6px 7px!important}
  .mobile-inline-pagehead .pagehead-actions .search button{padding:6px 8px!important;white-space:nowrap!important}

  .orders-calendar-pagehead{flex-direction:row!important;align-items:center!important}
  .orders-calendar-page-actions{width:auto!important;flex:0 1 auto!important}
  .orders-calendar-add{background:var(--tpl-2)!important;color:#fff!important}
  .orders-calendar-add .ams-svg{display:inline-grid!important;visibility:visible!important;opacity:1!important;color:#fff!important}

  .customers-pagehead,.products-pagehead{align-items:center!important}
  .customers-pagehead>div:first-child p,.products-pagehead>div:first-child p{display:none!important}
  .customers-pagehead .pagehead-actions,.products-pagehead .pagehead-actions{max-width:270px!important}

  .warehouse-pagehead{flex-direction:row!important;align-items:center!important;justify-content:space-between!important}
  .warehouse-pagehead>div:first-child{width:auto!important;min-width:0!important;flex:1 1 auto!important}
  .warehouse-pagehead>div:first-child p{white-space:normal!important;line-height:1.15!important;max-width:155px}
  .warehouse-page-actions{margin-left:auto!important;display:flex!important;flex-wrap:nowrap!important;gap:4px!important;justify-content:flex-end!important}
  .warehouse-page-actions>a.secondary,.warehouse-page-actions>button.primary{min-width:47px!important;padding:6px 8px!important;height:34px!important}

  .warehouse-shelf-items{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;width:100%!important}
  .warehouse-product-card{width:100%!important;min-width:0!important;padding:0 4px 5px!important}
  .warehouse-card-image,.warehouse-card-image>img,.warehouse-card-image>.no-image{width:94px!important;height:94px!important;max-width:100%!important}
  .warehouse-card-title{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

  .mobile-right-backdrop{
    display:block;position:fixed;inset:56px 0 0;z-index:79;background:#102a4352;
    opacity:0;pointer-events:none;transition:opacity .18s ease
  }
  .mobile-right-backdrop.is-open{opacity:1;pointer-events:auto}
  body.mobile-right-open{overflow:hidden}
  .split-page.mobile-right-open{display:block!important}
  .split-page.mobile-right-open>.right-resizer{display:none!important}
  .split-page.mobile-right-open>.right-pane{
    display:flex!important;flex-direction:column!important;position:fixed!important;top:56px!important;right:0!important;bottom:0!important;left:auto!important;
    z-index:80!important;width:min(370px,94vw)!important;height:auto!important;max-height:none!important;min-width:0!important;
    margin:0!important;border-radius:12px 0 0 0!important;border-right:0!important;
    box-shadow:-18px 0 42px #102a4338!important;transform:none!important;overflow:hidden!important;background:#fff!important
  }
  .split-page.mobile-right-open>.right-pane>.right-title,.split-page.mobile-right-open>.right-pane>.subtabs{flex:0 0 auto!important}
  .split-page.mobile-right-open>.right-pane>.right-scroll{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important}
  .mobile-right-standalone-host{position:fixed!important;inset:0!important;z-index:78!important;pointer-events:none!important}
  .mobile-right-standalone-host>.right-pane{pointer-events:auto!important}
}

/* 0.7.126 · Product/customer mobile panels */
.sold-main{display:grid;gap:2px;min-width:0}.sold-main small{color:#425a66}.sold-sku{overflow:hidden;text-overflow:ellipsis}.sold-qty{text-align:right}.sold-thumb{width:54px;height:54px;display:grid;place-items:center;overflow:hidden}.sold-thumb img{width:50px;height:50px;object-fit:contain}.sold-thumb .noimg{width:50px;height:50px;min-height:50px}.hero-info{width:100%}
@media(max-width:700px){
.product-detail-tabs,.customer-detail-tabs{justify-content:space-between;gap:4px;padding:6px 7px 0;overflow:visible}
.product-detail-tabs a,.customer-detail-tabs a{flex:1 1 0;min-width:0;display:grid;place-items:center;padding:8px 5px}
.product-detail-tabs a span,.customer-detail-tabs a span{display:none!important}
.product-detail-tabs .ams-svg,.customer-detail-tabs .ams-svg{width:20px;height:20px}
.product-hero{grid-template-columns:112px minmax(0,1fr)!important;gap:10px!important;align-items:center;padding:8px!important}
.product-hero .hero-img{width:112px;min-height:112px!important;height:112px}
.product-hero .hero-img img{max-height:108px!important;max-width:108px!important}
.product-hero .hero-meta{padding-top:0!important;text-align:left!important;align-items:flex-start!important;gap:6px}
.product-hero .hero-flags{display:flex;gap:4px}.product-hero .hero-info h2,.product-hero .hero-info h3{margin:3px 0!important;font-size:16px!important;text-align:left!important}.product-hero .category-badges{justify-content:flex-start!important}
.ledger-head{align-items:flex-start}.ledger-actions{gap:5px}.ledger-actions .iconbtn{width:36px;height:36px;padding:5px;display:grid;place-items:center}.ledger-actions .iconbtn .ams-svg{width:20px;height:20px}
.sold-row{grid-template-columns:58px minmax(0,1fr) auto!important;grid-template-areas:"img main qty" "img sku qty";gap:3px 9px!important;padding:8px 0!important}
.sold-row .sold-thumb{grid-area:img}.sold-row .sold-main{grid-area:main}.sold-row .sold-sku{grid-area:sku;font-size:13px}.sold-row .sold-qty{grid-area:qty;align-self:center;font-size:17px}.sold-row>*:nth-child(4){grid-column:auto!important}
}

/* 0.7.127 hotfix */
@media(max-width:900px){
.product-detail-tabs a span,.customer-detail-tabs a span{display:none!important}
.product-detail-tabs a,.customer-detail-tabs a{flex:1 1 0;min-width:0;display:grid!important;place-items:center!important;padding:8px 5px!important}
.product-detail-tabs .ams-svg,.customer-detail-tabs .ams-svg{display:inline-block!important;width:20px!important;height:20px!important}
.product-hero{grid-template-columns:112px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:8px!important}
.product-hero .hero-img{width:112px!important;min-height:112px!important;height:112px!important}
.product-hero .hero-img img{max-height:108px!important;max-width:108px!important}
.import-card .tablewrap:empty{display:none!important}
}

/* 0.7.128 · Production department */
.production-pagehead,.production-edit-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.production-list-panel{overflow:auto}.production-list-table{min-width:700px}
.production-header-form{display:grid;grid-template-columns:1.1fr 1fr .8fr 1fr .65fr auto;gap:9px;align-items:end}
.production-header-form label{display:grid;gap:4px;font-weight:700}.production-header-form input{width:100%}
.production-items-panel .panelhead{display:flex;align-items:center;justify-content:space-between}
.production-items{display:grid;gap:7px}
.production-item{display:grid;grid-template-columns:70px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:7px;border:1px solid var(--line);background:#fff}
.production-item-image{width:70px;height:70px;display:grid;place-items:center;overflow:hidden}.production-item-image img{width:66px;height:66px;object-fit:contain}
.production-item-info{display:grid;gap:2px}.production-item-info>strong{font-size:16px}.production-item-info small{color:#526872}
.production-qty-form{display:flex;gap:4px;align-items:center}.production-qty-form input{width:72px;text-align:right}
.production-stock-note{margin:10px 0 0;padding:8px 10px;background:#f2f7f9;border-left:3px solid var(--primary);font-size:13px}
.production-search-label{display:grid;gap:5px;font-weight:700}.production-search-results{display:grid;gap:7px;margin-top:9px}
.production-search-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid var(--line);padding:6px;background:#fff}
.production-search-image{width:64px;height:64px;display:grid;place-items:center;overflow:hidden}.production-search-image img{max-width:62px;max-height:62px;object-fit:contain}
.production-search-info{display:grid;gap:2px}.production-search-info small{color:#526872}
.production-search-card form{display:grid;grid-template-columns:58px 36px;gap:4px}.production-search-card input[type=number]{width:58px;text-align:right}
@media(max-width:900px){
 .production-header-form{grid-template-columns:1fr 1fr}
 .production-header-form button{grid-column:1/-1}
 .production-workspace .right-pane{position:fixed!important;top:56px!important;right:0!important;bottom:0!important;width:min(390px,94vw)!important;z-index:68!important;transform:translateX(105%);transition:transform .2s ease;background:#fff;max-height:none!important}
 .production-workspace .right-pane.mobile-right-open{transform:translateX(0)}
}
@media(max-width:620px){
 .production-header-form{grid-template-columns:1fr}
 .production-header-form button{grid-column:auto}
 .production-item{grid-template-columns:58px minmax(0,1fr) auto;grid-template-areas:"img info del" "img qty qty"}
 .production-item-image{grid-area:img;width:58px;height:58px}.production-item-image img{width:54px;height:54px}
 .production-item-info{grid-area:info}.production-qty-form{grid-area:qty;justify-self:end}.production-item>form:last-child{grid-area:del}
}

.production-items-head-actions{display:flex;align-items:center;gap:8px}.production-right-toggle{display:none}.production-right-backdrop{display:none}
@media(max-width:900px){
 .production-right-toggle{display:inline-flex}
 .production-right-backdrop{display:block;position:fixed;inset:56px 0 0;z-index:67;background:#102a4352;opacity:0;pointer-events:none;transition:opacity .18s ease}
 .production-right-backdrop.is-open{opacity:1;pointer-events:auto}
}

/* 0.7.129 · Production quantities + stock distribution */
.production-stock-post{grid-column:1/-1;border-top:1px dashed var(--line);padding-top:7px;display:grid;gap:6px}
.production-stock-current{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.production-stock-current span{display:flex;justify-content:space-between;gap:8px;padding:5px 7px;background:#f5f8fa;border:1px solid var(--line)}
.production-stock-form{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;align-items:end}
.production-stock-form label{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:5px;font-weight:700}
.production-stock-form input{min-width:0;width:100%;text-align:right}
.production-stock-sum-note{color:#526872}
.production-stock-posted{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:7px 9px;background:#edf8f0;border:1px solid #bfdcc5}
.production-search-card input[name="quantity"],.production-qty-form input[name="quantity"]{text-align:right}
@media(max-width:620px){
 .production-stock-form{grid-template-columns:1fr 1fr}
 .production-stock-form button{grid-column:1/-1}
 .production-stock-current{grid-template-columns:1fr}
 .production-item .production-stock-post{grid-area:stock}
 .production-item{grid-template-areas:"img info del" "img qty qty" "stock stock stock"}
}

/* 0.7.130 · Production item compact stock row + production delete */
.production-edit-head .actions{display:flex;align-items:center;gap:7px}
.production-edit-head .inline-form{display:inline-flex;margin:0}
.production-edit-head .iconbtn.danger{width:38px;height:38px;display:grid;place-items:center}

.production-stock-post{grid-column:1/-1;border-top:1px dashed var(--line);padding-top:7px;display:grid;gap:5px}
.production-stock-form.compact{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  gap:7px;
  align-items:stretch
}
.production-stock-side{
  display:grid!important;
  grid-template-columns:auto auto minmax(72px,100px)!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:5px 8px;
  border:1px solid var(--line);
  font-weight:700
}
.production-stock-side.stock-her{background:var(--pos-her-bg)}
.production-stock-side.stock-ath{background:var(--pos-ath-bg)}
.production-stock-label{white-space:nowrap}
.production-stock-balance{margin-left:auto}
.production-stock-side input{
  width:100%!important;
  min-width:0!important;
  text-align:right;
  background:#fff
}
.production-stock-submit{white-space:nowrap;align-self:stretch}
.production-stock-current{display:none!important}
.production-stock-posted .stock-her{background:var(--pos-her-bg);padding:4px 8px}
.production-stock-posted .stock-ath{background:var(--pos-ath-bg);padding:4px 8px}

@media(max-width:760px){
 .production-stock-form.compact{grid-template-columns:1fr}
 .production-stock-side{grid-template-columns:auto 1fr minmax(72px,100px)!important}
 .production-stock-submit{width:100%}
}

/* 0.7.131 · montaz_sizes */
.montaz-sizes-head,.montaz-size-row{display:grid;grid-template-columns:1fr 2fr .7fr .7fr .7fr auto;gap:7px;align-items:center}
.montaz-sizes-head{padding:0 2px 4px;color:var(--muted)}
.montaz-size-row input{min-width:0;width:100%}
.production-header-form{grid-template-columns:1.05fr .95fr .7fr 1fr .9fr .65fr auto}
.production-header-form select{width:100%}
@media(max-width:900px){.montaz-sizes-head,.montaz-size-row{grid-template-columns:1fr 1.4fr .7fr .7fr}}

/* 0.7.132 · production bulk SKU selection */
.production-bulk-add{display:grid;gap:8px}
.production-bulk-submit{width:100%}
.production-bulk-submit:disabled{opacity:.45;cursor:not-allowed}
.production-search-card.production-select-card{grid-template-columns:28px 64px minmax(0,1fr) 62px}
.production-select-check{display:grid;place-items:center;margin:0}
.production-select-check input{width:18px;height:18px;margin:0}
.production-search-qty{width:62px!important;min-width:0;text-align:right}
.production-select-card:has([data-production-select]:checked){outline:2px solid var(--primary);outline-offset:-2px}

/* 0.7.133 · montage stable number + production sheet summary */
.montaz-sizes-head,.montaz-size-row{grid-template-columns:.75fr 1fr 2fr .7fr .7fr .7fr auto}
.montaz-size-num{font-weight:700;background:#f3f6f9}
.production-stock-done{justify-content:center;padding:10px 12px;background:#edf8f0;border:1px solid #bfdcc5}
.production-list-table th:last-child,.production-list-table td:last-child{text-align:right}


/* 0.7.135 · click submenu + global page command strip + daily order totals */
@media(min-width:901px){
  .subnav{display:none;position:fixed;top:50px;left:0;right:0;z-index:21;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 7px 18px #102a4318}
  .subnav.is-open{display:block}
  .subnav-inner{max-width:none;min-height:40px;padding:0 50px;overflow:auto}
  .shell{padding-top:0}
  .pagehead{
    width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
    min-height:42px;margin-top:0;margin-bottom:12px;padding:4px 50px;
    background:#fff;border-bottom:1px solid var(--line);align-items:center;box-shadow:0 2px 8px rgba(16,24,40,.04)
  }
  .pagehead h1{font-size:25px}
  .pagehead p{display:none}
}
.calendar-day-money-wrap{position:relative;display:grid;place-items:center;width:26px;height:26px;justify-self:end}
.calendar-receipt-badge{position:absolute;right:-7px;top:-7px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#d8867f;color:#fff;font-size:12px;font-weight:900;line-height:18px;text-align:center;box-shadow:0 0 0 2px #fff;z-index:2}
.calendar-day-total{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:2px;padding:4px 5px;border-top:1px solid #b9dfe9;background:#f4fafc;color:#173b49;font-size:12px;font-weight:700}
.calendar-day-total strong{font-size:13px;font-variant-numeric:tabular-nums}
.orders-calendar-page.is-values-hidden .calendar-day-total{display:none}
@media(max-width:900px){
  .pagehead{padding-left:12px!important;padding-right:12px!important}
}

/* 0.7.136 · submenu fix + daily total emphasis */
.calendar-day-total{justify-content:flex-end}
.calendar-day-total strong{font-size:15px;font-weight:900}

/* 0.7.137 · only the active desktop submenu group is visible */
@media(min-width:901px){
  .subnav [data-subnav-group][hidden]{display:none!important}
  .subnav [data-subnav-group]:not([hidden]){display:flex}
}

/* 0.7.138 · dropdown submenu anchored below clicked main menu */
@media(min-width:901px){
  .subnav{
    display:none;
    position:fixed;
    top:50px;
    left:var(--subnav-left,50px);
    right:auto;
    width:auto;
    min-width:170px;
    max-width:min(320px,calc(100vw - var(--subnav-left,50px) - 12px));
    z-index:21;
    background:#fff;
    border:1px solid var(--line);
    border-top:0;
    box-shadow:0 8px 20px #102a4326;
  }
  .subnav.is-open{display:block}
  .subnav-inner{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    min-width:170px;
    min-height:0;
    padding:5px 0;
    margin:0;
    overflow:visible;
  }
  .subnav [data-subnav-group][hidden]{display:none!important}
  .subnav [data-subnav-group]:not([hidden]){display:flex}
  .subnav a{
    display:block;
    min-height:0;
    padding:8px 14px;
    border-bottom:0;
    white-space:nowrap;
  }
  .subnav a.active{
    border-bottom:0;
    box-shadow:inset 3px 0 0 var(--primary);
  }
}

/* 0.7.139 · order title on global white command strip */
@media(min-width:901px){
  .order-page-commandbar{
    min-height:44px;
    padding-left:50px!important;
    padding-right:50px!important;
    margin-bottom:8px!important;
  }
  .order-page-commandbar-title{display:flex;align-items:center;gap:9px;min-width:0}
  .order-page-commandbar-title .back{margin:0;font-size:22px;line-height:1}
  .order-page-commandbar-title h1{margin:0!important;white-space:nowrap}
  .order-page-commandbar-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
  .order-main-content .order-headbar{justify-content:flex-start}
}

/* 0.7.140 · compact order product title + right square day launcher */
@media(min-width:901px){
  .order-right>.right-title{
    padding:5px 9px;
    min-height:34px;
    align-items:center;
  }
  .order-right>.right-title strong{line-height:1.1}
  .order-right>.right-title .close-panel{
    width:26px;
    height:26px;
    border-radius:50%;
  }

  .order-day-drawer-toggle{
    left:auto!important;
    right:8px!important;
    top:54px!important;
    width:36px!important;
    height:36px!important;
    border-radius:5px!important;
    box-shadow:0 4px 12px #102a4322;
  }
  .order-day-drawer-toggle .asset-order_invoice{
    width:20px;
    height:20px;
  }
}

/* 0.7.141 · order day drawer opens from the right */
.order-day-drawer{
  left:auto!important;
  right:0!important;
  border-right:0!important;
  border-left:1px solid #86bfd9!important;
  box-shadow:-18px 0 42px #102a4333!important;
  transform:translateX(105%)!important;
}
.order-day-drawer.is-open{transform:translateX(0)!important}


/* 0.7.142 · order command bar metadata controls */
@media(min-width:901px){
  .order-page-commandbar{
    min-height:44px;
    padding-left:12px!important;
    padding-right:50px!important;
    margin-bottom:8px!important;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
  }
  .order-page-commandbar-title{display:flex;align-items:center;gap:9px;min-width:0}
  .order-page-commandbar-title .back{margin:0;font-size:22px;line-height:1}
  .order-page-commandbar-title h1{margin:0!important;white-space:nowrap}
  .order-page-commandbar-actions{margin-left:auto;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
  .order-command-field{display:flex;flex-direction:column;gap:3px;min-width:0}
  .order-command-label{font-size:11px;line-height:1;text-transform:uppercase;letter-spacing:.04em;color:#6b7a85;font-weight:700}
  .order-command-control{display:flex;align-items:center;gap:6px;min-width:0}
  .order-command-value{display:inline-flex;align-items:center;min-height:28px;padding:0 2px;color:var(--tpl-1);font-weight:700;white-space:nowrap}
  .order-command-customer{text-decoration:none;border-bottom:1px dotted currentColor}
  .order-command-customer:hover{color:var(--tpl-2)}
  .order-command-edit{display:grid;place-items:center;width:24px;height:24px;border:1px solid #cbd5db;border-radius:6px;background:#fff;color:var(--tpl-1);padding:0;cursor:pointer}
  .order-command-edit:hover{background:#f2f7f9;color:var(--tpl-2)}
  .order-command-edit svg{display:block}
  .order-command-field-customer{max-width:340px}
  .order-command-field-customer .order-command-value{overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:900px){
  .order-page-commandbar{align-items:flex-start}
  .order-page-commandbar-actions{width:100%;display:grid;grid-template-columns:1fr;gap:8px}
  .order-command-field{display:grid;grid-template-columns:110px 1fr;gap:8px;align-items:center}
  .order-command-label{font-size:12px;font-weight:700;color:#6b7a85}
  .order-command-control{display:flex;align-items:center;gap:6px;min-width:0}
  .order-command-value{font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .order-command-customer{text-decoration:none;border-bottom:1px dotted currentColor}
  .order-command-edit{display:grid;place-items:center;width:26px;height:26px;border:1px solid #cbd5db;border-radius:6px;background:#fff;color:var(--tpl-1);padding:0;cursor:pointer}
}

/* 0.7.143 · order command bar without metadata labels */
@media(min-width:901px){
  .order-page-commandbar{min-height:44px;flex-wrap:nowrap}
  .order-page-commandbar-actions{flex-wrap:nowrap;gap:14px}
  .order-command-field{display:flex;flex-direction:row;align-items:center;gap:0}
  .order-command-label{display:none!important}
  .order-command-control{min-height:30px}
}
@media(max-width:900px){
  .order-page-commandbar-actions{display:flex;flex-wrap:wrap;gap:8px 12px}
  .order-command-field{display:flex;align-items:center;gap:0}
  .order-command-label{display:none!important}
}

/* 0.7.144 · compact order title + inline metadata */
@media(min-width:901px){
  .order-page-commandbar{
    justify-content:flex-start!important;
    align-items:center!important;
    gap:18px!important;
    flex-wrap:nowrap!important;
  }
  .order-page-commandbar>div{
    width:auto!important;
  }
  .order-page-commandbar-title{
    flex:0 0 auto;
    width:auto!important;
  }
  .order-page-commandbar-title h1{
    width:auto!important;
    border-bottom:0!important;
  }
  .order-page-commandbar-actions{
    margin-left:0!important;
    width:auto!important;
    flex:0 1 auto;
    display:flex;
    align-items:center;
    gap:0!important;
    flex-wrap:nowrap!important;
  }
  .order-command-field{
    position:relative;
    padding-left:14px;
    margin-left:14px;
  }
  .order-command-field:first-child{
    padding-left:0;
    margin-left:0;
  }
  .order-command-field:not(:first-child)::before{
    content:"";
    position:absolute;
    left:0;
    top:5px;
    bottom:5px;
    width:1px;
    background:rgba(102,112,133,.28);
  }
}

/* 0.7.145 · natural-width order metadata */
@media(min-width:901px){
  .order-page-commandbar-actions{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0;
  }
  .order-command-field,
  .order-command-field-customer{
    flex:0 0 auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
  }
  .order-command-control{
    width:auto!important;
    min-width:0!important;
  }
  .order-command-value,
  .order-command-customer{
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
    font-size:15px!important;
    font-weight:700!important;
    line-height:1.25!important;
  }
}


/* 0.7.146 · customer shipping details modal */
.order-customer-meta-dialog .dialogform{
  width:min(680px,calc(100vw - 32px));
}
.order-customer-meta-dialog header strong{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.order-customer-meta-list{
  display:grid;
  gap:10px;
}
.order-customer-meta-list .order-meta-item{
  display:grid;
  grid-template-columns:minmax(170px,220px) 1fr;
  align-items:center;
  gap:12px;
  border:1px solid #d5e2ea;
  border-radius:10px;
  background:#f8fbfd;
  padding:12px 14px;
}
.order-customer-meta-list .order-meta-item span{
  color:#243b53;
  font-weight:700;
}
.order-customer-meta-list .order-meta-item b{
  color:#102a43;
  font-weight:700;
}
@media(max-width:900px){
  .order-customer-meta-list .order-meta-item{
    grid-template-columns:1fr;
    gap:6px;
  }
}

/* 0.7.147 · responsive customer shipping modal */
.order-customer-meta-dialog{
  width:min(680px,calc(100vw - 24px));
  max-width:680px;
  max-height:calc(100vh - 24px);
  padding:0;
  overflow:hidden;
  box-sizing:border-box;
}
.order-customer-meta-dialog .dialogform{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  max-height:calc(100vh - 24px);
  overflow:auto;
  box-sizing:border-box;
  margin:0;
}
.order-customer-meta-dialog header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.order-customer-meta-dialog header strong{
  min-width:0;
  flex:1 1 auto;
  white-space:normal;
}
.order-customer-meta-dialog header [data-close]{flex:0 0 auto}
.order-customer-meta-list{
  min-width:0;
  width:100%;
  overflow:hidden;
}
.order-customer-meta-list .order-meta-item{
  width:100%;
  min-width:0;
  box-sizing:border-box;
}
.order-customer-meta-list .order-meta-item span,
.order-customer-meta-list .order-meta-item b{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media(max-width:600px){
  .order-customer-meta-dialog{
    width:calc(100vw - 12px);
    max-width:calc(100vw - 12px);
    max-height:calc(100vh - 12px);
  }
  .order-customer-meta-dialog .dialogform{
    max-height:calc(100vh - 12px);
    padding:10px;
  }
  .order-customer-meta-list .order-meta-item{
    grid-template-columns:1fr!important;
    gap:5px;
    padding:10px;
  }
}

@media (max-width:900px){.order-summary-inline{grid-template-columns:repeat(3,minmax(0,1fr))}.order-summary-inline .summary-cell strong{font-size:20px}.order-summary-inline .pieces{grid-column:1}.order-summary-inline .gross-net{grid-column:2}.order-summary-inline .discounts{grid-column:3}.order-summary-inline.final-row .order-grand-total{grid-column:2 / 4}.order-summary-inline.final-row .order-grand-total strong{font-size:26px}}
@media (max-width:640px){.order-summary-inline{grid-template-columns:1fr}.order-summary-inline .pieces,.order-summary-inline .gross-net,.order-summary-inline .discounts,.order-summary-inline.final-row .order-grand-total{grid-column:1}.order-summary-inline .summary-cell{justify-content:flex-start}.order-summary-inline .summary-cell strong{text-align:left;font-size:18px}.order-summary-inline.final-row .order-grand-total strong{font-size:24px}}

/* 0.7.150 · totals aligned to real order-table columns */
.order-grid tfoot.order-grid-summary td{
  border-top:1px solid #d5dfe3;
  background:#fff;
  padding:9px 8px;
  vertical-align:middle;
}
.order-grid tfoot.order-grid-summary .order-grid-summary-row td:empty{
  background:transparent;
  border-top-color:transparent;
}
.order-grid tfoot.order-grid-summary .summary-pieces,
.order-grid tfoot.order-grid-summary .summary-gross-net,
.order-grid tfoot.order-grid-summary .summary-discounts{
  text-align:right;
  white-space:nowrap;
}
.order-grid tfoot.order-grid-summary .summary-pieces strong,
.order-grid tfoot.order-grid-summary .summary-gross-net strong,
.order-grid tfoot.order-grid-summary .summary-discounts strong{
  display:block;
  font-size:16px;
  line-height:1.2;
  font-weight:800;
}
.order-grid tfoot.order-grid-summary .order-grid-grand-row td{
  border-top:0;
  padding-top:6px;
}
.order-grid tfoot.order-grid-summary .order-grid-grand-row td:empty{
  background:transparent;
  border:0;
}
.order-grid tfoot.order-grid-summary .order-grid-grand-total{
  background:#eaf6f0;
  border:1px solid #acd6be;
  text-align:right;
  white-space:nowrap;
}
.order-grid tfoot.order-grid-summary .order-grid-grand-total strong{
  display:block;
  font-size:28px;
  line-height:1.1;
  font-weight:900;
}


/* 0.7.152 · responsive order workspace + SVG back button */
.order-page-commandbar-title .back{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:28px;
  height:28px;
  padding:0;
  border:0;
  border-radius:6px;
  text-decoration:none;
  color:var(--tpl-1);
}
.order-page-commandbar-title .back:hover{
  background:#eef7fa;
  color:var(--tpl-2);
}
.order-page-commandbar-title .back .ams-svg,
.order-page-commandbar-title .back svg{
  width:18px;
  height:18px;
  display:block;
}

@media(min-width:1101px) and (max-width:1500px){
  .order-workspace{
    grid-template-columns:minmax(0,1fr) 6px clamp(300px,25vw,360px)!important;
    max-width:100%;
    overflow:hidden;
  }
  .order-workspace>.center-pane,
  .order-main-content{
    min-width:0;
    max-width:100%;
  }
  .order-workspace>.right-pane{
    min-width:0;
    width:auto;
  }
  .order-grid-wrap{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }
  .order-grid{
    width:100%;
    min-width:0;
    table-layout:fixed;
    font-size:12px;
  }
  .order-grid th,
  .order-grid td{
    padding:4px 4px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .order-grid th{font-size:11px}
  .order-grid th:nth-child(1),.order-grid td:nth-child(1){width:3%}
  .order-grid th:nth-child(2),.order-grid td:nth-child(2){width:4%}
  .order-grid th:nth-child(3),.order-grid td:nth-child(3){width:5%}
  .order-grid th:nth-child(4),.order-grid td:nth-child(4){width:8%}
  .order-grid th:nth-child(5),.order-grid td:nth-child(5){width:12%}
  .order-grid th:nth-child(6),.order-grid td:nth-child(6){width:6%}
  .order-grid th:nth-child(7),.order-grid td:nth-child(7){width:8%}
  .order-grid th:nth-child(8),.order-grid td:nth-child(8){width:7%}
  .order-grid th:nth-child(9),.order-grid td:nth-child(9){width:7%}
  .order-grid th:nth-child(10),.order-grid td:nth-child(10){width:7%}
  .order-grid th:nth-child(11),.order-grid td:nth-child(11){width:8%}
  .order-grid th:nth-child(12),.order-grid td:nth-child(12){width:9%}
  .order-grid th:nth-child(13),.order-grid td:nth-child(13){width:9%}
  .order-grid th:nth-child(14),.order-grid td:nth-child(14){width:2%}
  .order-grid th:nth-child(15),.order-grid td:nth-child(15){width:5%}

  .order-grid td:nth-child(5),
  .order-grid td:nth-child(7){
    white-space:normal;
    line-height:1.15;
  }
  .order-grid .order-thumb{
    width:38px;
    height:38px;
  }
  .order-grid input,
  .order-grid input.qty,
  .order-grid input.money{
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
    padding:4px 3px;
  }
  .order-grid .order-discount-inline{
    gap:3px;
  }
  .order-grid .order-discount-amount{
    white-space:nowrap;
  }
  .order-toolbar{
    flex-wrap:wrap;
  }
}

@media(min-width:1101px) and (max-width:1280px){
  .order-workspace{
    grid-template-columns:minmax(0,1fr) 6px 290px!important;
  }
  .order-grid th:nth-child(2),
  .order-grid td:nth-child(2){
    display:none;
  }
  .order-grid{font-size:11px}
  .order-grid th{font-size:10px}
  .order-grid .order-thumb{width:34px;height:34px}
}

@media(max-width:1100px){
  .order-workspace{
    max-width:100%;
    overflow:hidden;
  }
  .order-main-content{
    min-width:0;
    max-width:100%;
  }
  .order-grid-wrap{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .order-grid{
    min-width:900px;
  }
  .order-page-commandbar-title .back{
    width:26px;
    height:26px;
  }
}


/* 0.7.153 · robust responsive order table with product RIGHT panel */
@media(min-width:901px){
  .order-workspace.has-right{
    grid-template-columns:minmax(0,1fr) 6px clamp(280px,23vw,340px)!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .order-workspace.has-right>.main-pane,
  .order-workspace.has-right .order-main-content{
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .order-workspace.has-right>.right-pane{
    min-width:0!important;
    width:auto!important;
    max-width:340px!important;
  }
  .order-workspace.has-right .order-grid-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }
  .order-workspace.has-right .order-grid{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    font-size:12px!important;
  }
  .order-workspace.has-right .order-grid th,
  .order-workspace.has-right .order-grid td{
    min-width:0!important;
    padding:4px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .order-workspace.has-right .order-grid th{font-size:11px!important}
  .order-workspace.has-right .order-grid th:nth-child(1),
  .order-workspace.has-right .order-grid td:nth-child(1){width:3%!important}
  .order-workspace.has-right .order-grid th:nth-child(2),
  .order-workspace.has-right .order-grid td:nth-child(2){width:4%!important}
  .order-workspace.has-right .order-grid th:nth-child(3),
  .order-workspace.has-right .order-grid td:nth-child(3){width:5%!important}
  .order-workspace.has-right .order-grid th:nth-child(4),
  .order-workspace.has-right .order-grid td:nth-child(4){width:8%!important}
  .order-workspace.has-right .order-grid th:nth-child(5),
  .order-workspace.has-right .order-grid td:nth-child(5){width:12%!important}
  .order-workspace.has-right .order-grid th:nth-child(6),
  .order-workspace.has-right .order-grid td:nth-child(6){width:6%!important}
  .order-workspace.has-right .order-grid th:nth-child(7),
  .order-workspace.has-right .order-grid td:nth-child(7){width:8%!important}
  .order-workspace.has-right .order-grid th:nth-child(8),
  .order-workspace.has-right .order-grid td:nth-child(8){width:7%!important}
  .order-workspace.has-right .order-grid th:nth-child(9),
  .order-workspace.has-right .order-grid td:nth-child(9){width:7%!important}
  .order-workspace.has-right .order-grid th:nth-child(10),
  .order-workspace.has-right .order-grid td:nth-child(10){width:8%!important}
  .order-workspace.has-right .order-grid th:nth-child(11),
  .order-workspace.has-right .order-grid td:nth-child(11){width:8%!important}
  .order-workspace.has-right .order-grid th:nth-child(12),
  .order-workspace.has-right .order-grid td:nth-child(12){width:10%!important}
  .order-workspace.has-right .order-grid th:nth-child(13),
  .order-workspace.has-right .order-grid td:nth-child(13){width:9%!important}
  .order-workspace.has-right .order-grid th:nth-child(14),
  .order-workspace.has-right .order-grid td:nth-child(14){width:2%!important}
  .order-workspace.has-right .order-grid th:nth-child(15),
  .order-workspace.has-right .order-grid td:nth-child(15){width:3%!important}

  .order-workspace.has-right .order-grid td:nth-child(5),
  .order-workspace.has-right .order-grid td:nth-child(7){
    white-space:normal!important;
    line-height:1.15!important;
  }
  .order-workspace.has-right .order-grid input,
  .order-workspace.has-right .order-grid input.qty,
  .order-workspace.has-right .order-grid input.money{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    padding:4px 3px!important;
  }
  .order-workspace.has-right .order-grid .order-thumb{
    width:min(38px,100%)!important;
    height:38px!important;
  }
  .order-workspace.has-right .order-grid .line-total,
  .order-workspace.has-right .order-grid .order-discount-cell{
    white-space:nowrap!important;
  }
}

@media(min-width:901px) and (max-width:1250px){
  .order-workspace.has-right{
    grid-template-columns:minmax(0,1fr) 6px 280px!important;
  }
  .order-workspace.has-right .order-grid th:nth-child(2),
  .order-workspace.has-right .order-grid td:nth-child(2){
    display:none!important;
  }
  .order-workspace.has-right .order-grid{font-size:11px!important}
  .order-workspace.has-right .order-grid th{font-size:10px!important}
  .order-workspace.has-right .order-grid .order-thumb{
    width:32px!important;
    height:32px!important;
  }
}

@media(max-width:900px){
  .order-workspace.has-right .order-grid-wrap{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
}


/* 0.7.154 · restore freely resizable order split */
@media(min-width:901px){
  .order-workspace.has-right{
    grid-template-columns:minmax(360px,1fr) 7px minmax(320px,var(--ams-right-width,40vw))!important;
    overflow:visible!important;
  }
  .order-workspace.has-right>.right-pane{
    width:auto!important;
    max-width:none!important;
  }
  .order-workspace.has-right>.right-resizer{
    display:block!important;
    width:7px!important;
    cursor:col-resize!important;
    touch-action:none;
  }
  .order-workspace.has-right .order-main-content{
    min-width:0!important;
    overflow:visible!important;
  }
  .order-workspace.has-right .order-grid-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  .order-workspace.has-right .order-grid{
    width:100%!important;
    min-width:760px!important;
    table-layout:fixed!important;
  }
}
@media(min-width:1400px){
  .order-workspace.has-right .order-grid{
    min-width:0!important;
  }
}


/* 0.7.155 · day-orders navigation and location filters */
.order-day-drawer-controls{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 34px;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  border-bottom:1px solid #d8e6ed;
  background:#f8fbfd;
}
.order-day-nav{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #bdd7e4;
  border-radius:7px;
  background:#fff;
  color:var(--tpl-1);
  text-decoration:none;
}
.order-day-nav:hover{background:#edf7fb;color:var(--tpl-2)}
.order-day-date-form{min-width:0;display:flex;align-items:center;gap:6px}
.order-day-calendar-icon{flex:0 0 auto;display:grid;place-items:center;color:var(--tpl-1)}
.order-day-date-input{
  width:100%;
  min-width:0;
  height:34px;
  box-sizing:border-box;
  border:1px solid #bdd7e4;
  border-radius:7px;
  background:#fff;
  padding:4px 7px;
  color:#17384c;
  font:inherit;
}
.order-day-location-filters{
  display:flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-bottom:1px solid #d8e6ed;
  background:#fff;
}
.order-day-location-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  height:27px;
  padding:0 9px;
  border:1px solid #cbd9df;
  border-radius:999px;
  background:#fff;
  color:#3b5360;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
.order-day-location-badge.active{
  border-color:var(--tpl-1);
  box-shadow:inset 0 0 0 1px var(--tpl-1);
}
.order-day-location-badge.her.active{background:#e8f8ef;color:#18754a}
.order-day-location-badge.ath.active{background:#eaf3fb;color:#276c98}
.order-day-location-badge.all.active{background:#eef6f9;color:#0b7198}
@media(max-width:520px){
  .order-day-drawer-controls{grid-template-columns:32px minmax(0,1fr) 32px;gap:5px;padding:7px}
  .order-day-nav{width:32px;height:32px}
  .order-day-location-filters{padding:6px 8px}
}


/* 0.7.156 · day-orders weekday + corrected navigation arrows */
.order-day-drawer-head .order-day-weekday{
  font-weight:800;
  color:#5b7180;
  white-space:nowrap;
}
.order-day-nav .ams-svg,
.order-day-nav svg{
  display:block;
  width:18px!important;
  height:18px!important;
  max-width:18px;
  max-height:18px;
}
.order-day-nav{
  line-height:0;
}


/* 0.7.157 · monthly-plan day click opens Day Orders drawer */
a.calendar-day-date{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:inherit;
}
.calendar-order-day-controls{
  flex:0 0 auto;
}
.order-calendar-day-orders{
  padding:10px;
}
.order-calendar-day-orders .order-day-drawer-list{
  padding:0;
}


/* 0.7.158 · orders pagehead: euro beside title / location center / new order right */
.orders-calendar-pagehead{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr)!important;
  align-items:center!important;
  gap:14px!important;
}
.orders-calendar-pagehead>div{
  width:auto!important;
}
.orders-calendar-title-group{
  display:flex;
  align-items:center;
  justify-self:start;
  gap:8px;
  min-width:0;
}
.orders-calendar-title-group h1{
  margin:0!important;
  width:auto!important;
  border:0!important;
}
.orders-calendar-title-group .orders-calendar-values-toggle{
  flex:0 0 auto;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #c4d7e0;
  border-radius:7px;
  background:#fff;
  color:var(--tpl-1);
}
.orders-calendar-title-group .orders-calendar-values-toggle:hover{
  background:#eef7fa;
  color:var(--tpl-2);
}
.orders-calendar-location-tabs-centered{
  justify-self:center;
  margin:0!important;
}
.orders-calendar-page-actions{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0!important;
}
.orders-calendar-page-actions .orders-calendar-add{
  margin:0!important;
}

@media(max-width:900px){
  .orders-calendar-pagehead{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:7px!important;
  }
  .orders-calendar-title-group{gap:5px}
  .orders-calendar-title-group h1{font-size:21px!important}
  .orders-calendar-title-group .orders-calendar-values-toggle{
    width:29px;
    height:29px;
  }
  .orders-calendar-location-tabs-centered{
    justify-self:center;
    gap:3px;
  }
  .orders-calendar-location-tabs-centered a{
    padding:5px 7px!important;
    font-size:12px!important;
  }
  .orders-calendar-page-actions{
    width:auto!important;
    justify-self:end;
  }
  .orders-calendar-page-actions .mobile-add-action{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    padding:0!important;
  }
  .orders-calendar-page-actions .mobile-add-action>span{display:none!important}
}

@media(max-width:620px){
  .orders-calendar-pagehead{
    grid-template-columns:1fr auto!important;
    grid-template-areas:
      "title add"
      "locations locations";
    row-gap:7px!important;
  }
  .orders-calendar-title-group{grid-area:title}
  .orders-calendar-page-actions{grid-area:add}
  .orders-calendar-location-tabs-centered{
    grid-area:locations;
    justify-self:center;
  }
}


/* 0.7.159 · final Orders command bar + compact month strip */
.orders-calendar-pagehead{
  position:relative!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  min-height:42px!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
  gap:10px!important;
}
.orders-calendar-pagehead div{
  width:auto!important;
}
.orders-calendar-title-group{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
}
.orders-calendar-pagehead h1,
.orders-calendar-title-group h1{
  width:auto!important;
  margin:0!important;
  border:0!important;
  border-bottom:0!important;
  box-shadow:none!important;
  line-height:1!important;
}
.orders-calendar-title-group .orders-calendar-values-toggle{
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
  width:20px!important;
  min-width:20px!important;
  height:22px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:4px!important;
  background:transparent!important;
  color:var(--tpl-1)!important;
  box-shadow:none!important;
}
.orders-calendar-title-group .orders-calendar-values-toggle .ams-svg,
.orders-calendar-title-group .orders-calendar-values-toggle svg{
  width:10px!important;
  height:14px!important;
  max-width:10px!important;
  max-height:14px!important;
  display:block!important;
}
.orders-calendar-title-group .orders-calendar-values-toggle:hover{
  background:#edf7fa!important;
  color:var(--tpl-2)!important;
}
.orders-calendar-location-tabs-centered{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  margin:0!important;
  width:auto!important;
}
.orders-calendar-page-actions{
  margin-left:auto!important;
  flex:0 0 auto!important;
  width:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
}
.orders-calendar-page-actions .orders-calendar-add{
  margin:0!important;
}

/* compact month selector strip */
.orders-calendar-toolbar{
  min-height:40px!important;
  grid-template-columns:34px 1fr 34px!important;
  gap:6px!important;
  padding:3px 10px!important;
}
.orders-calendar-toolbar h2{
  margin:0!important;
  font-size:20px!important;
  line-height:1.05!important;
}
.orders-calendar-toolbar .calendar-nav-button{
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  font-size:23px!important;
  border-radius:6px!important;
}
.orders-calendar-panel{
  margin-top:0!important;
}

@media(max-width:900px){
  .orders-calendar-pagehead{
    min-height:40px!important;
    gap:6px!important;
  }
  .orders-calendar-pagehead h1{
    font-size:21px!important;
  }
  .orders-calendar-location-tabs-centered{
    gap:2px!important;
  }
  .orders-calendar-location-tabs-centered a{
    min-height:30px!important;
    padding:4px 7px!important;
    font-size:12px!important;
  }
  .orders-calendar-page-actions .orders-calendar-add{
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    padding:0!important;
  }
  .orders-calendar-toolbar{
    min-height:36px!important;
    grid-template-columns:30px 1fr 30px!important;
    padding:2px 7px!important;
  }
  .orders-calendar-toolbar h2{
    font-size:18px!important;
  }
  .orders-calendar-toolbar .calendar-nav-button{
    width:28px!important;
    min-width:28px!important;
    height:28px!important;
    font-size:21px!important;
  }
}

@media(max-width:620px){
  .orders-calendar-pagehead{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "title add"
      "locations locations"!important;
    row-gap:5px!important;
  }
  .orders-calendar-title-group{grid-area:title!important}
  .orders-calendar-page-actions{grid-area:add!important}
  .orders-calendar-location-tabs-centered{
    grid-area:locations!important;
    position:static!important;
    transform:none!important;
    justify-self:center!important;
  }
}


/* 0.7.160 · Orders command bar vertical spacing */
.orders-calendar-pagehead{
  min-height:50px!important;
  padding-top:7px!important;
  padding-bottom:7px!important;
}
.orders-calendar-title-group,
.orders-calendar-location-tabs-centered,
.orders-calendar-page-actions{
  align-self:center!important;
}
.orders-calendar-location-tabs-centered a,
.orders-calendar-page-actions .orders-calendar-add{
  margin-top:0!important;
  margin-bottom:0!important;
}
@media(max-width:900px){
  .orders-calendar-pagehead{
    min-height:46px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
  }
}


/* 0.7.161 · customer-facing 4-digit order number */
.order-public-number{
  display:inline-block;
  margin-left:4px;
  font-size:.72em;
  font-weight:800;
  color:#5c7785;
  white-space:nowrap;
}
.calendar-order-public{
  display:inline-block;
  margin-left:3px;
  font-size:10px;
  font-weight:800;
  color:#597583;
  vertical-align:baseline;
  white-space:nowrap;
}
.order-day-public{
  margin-left:3px;
  font-style:normal;
  font-size:10px;
  font-weight:800;
  color:#587482;
}


/* 0.7.162 · internal/public order numbers */
.order-public-number{
  margin-left:0!important;
  font-size:1em!important;
  font-weight:inherit!important;
  color:#3d91ad!important;
  vertical-align:baseline!important;
}
.calendar-order-public,
.order-day-public{
  margin-left:0!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  color:#3d91ad!important;
  vertical-align:baseline!important;
}
.order-day-public{font-style:normal!important}


/* 0.7.163 · restore readable Order table sizes without losing panel resize */
@media(min-width:901px){
  .order-workspace.has-right .order-grid-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch;
  }

  .order-workspace.has-right .order-grid{
    width:max-content!important;
    min-width:100%!important;
    table-layout:auto!important;
    font-size:14px!important;
  }

  .order-workspace.has-right .order-grid th,
  .order-workspace.has-right .order-grid td{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding:5px 6px!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }

  .order-workspace.has-right .order-grid th{
    font-size:14px!important;
  }

  .order-workspace.has-right .order-grid th:nth-child(2),
  .order-workspace.has-right .order-grid td:nth-child(2){
    display:table-cell!important;
  }

  .order-workspace.has-right .order-grid td:nth-child(5),
  .order-workspace.has-right .order-grid td:nth-child(7){
    white-space:nowrap!important;
    line-height:normal!important;
  }

  .order-workspace.has-right .order-grid .order-thumb{
    width:45px!important;
    height:45px!important;
    min-width:45px!important;
    object-fit:contain!important;
  }

  .order-workspace.has-right .order-grid input{
    width:70px!important;
    min-width:70px!important;
    max-width:70px!important;
    padding:4px!important;
    box-sizing:border-box!important;
    font-size:14px!important;
  }

  .order-workspace.has-right .order-grid input.qty{
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
  }

  .order-workspace.has-right .order-grid input.discount{
    width:55px!important;
    min-width:55px!important;
    max-width:55px!important;
  }

  .order-workspace.has-right .order-grid .line-total,
  .order-workspace.has-right .order-grid .order-discount-cell{
    white-space:nowrap!important;
  }
}

/* On phones/tablets keep the same readable content and scroll only the table. */
@media(max-width:900px){
  .order-grid-wrap{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  .order-grid{
    font-size:14px!important;
  }
  .order-grid .order-thumb{
    width:45px!important;
    height:45px!important;
  }
}


/* 0.7.164 · public order number dark gray + full-link underline */
.order-public-number,
.calendar-order-public,
.order-day-public{
  color:#4f5960!important;
}

.calendar-order-public{
  display:inline!important;
}

.calendar-order-no:hover,
.calendar-order-no:focus-visible{
  text-decoration-line:underline!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:2px!important;
}

.calendar-order-no:hover .calendar-order-public,
.calendar-order-no:focus-visible .calendar-order-public{
  text-decoration-line:underline!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:2px!important;
}

/* Inside the Order page keep internal number in the title color,
   public number same size but dark gray. */
.order-page-commandbar-title h1{
  color:inherit;
}
.order-page-commandbar-title h1 .order-public-number{
  color:#4f5960!important;
}


/* 0.7.167 · real Daily Receipts drawer */
a.calendar-day-money{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:inherit;
}
.receipt-day-drawer-body{padding:10px!important}
.receipt-day-list{display:grid;gap:7px}
.receipt-day-row{
  border:1px solid #d5e3e9;
  border-left:5px solid #79b996;
  border-radius:6px;
  padding:8px 9px;
  background:#f8fcfd;
}
.receipt-day-row.loc-ath{border-left-color:#d9b55f;background:#fffaf0}
.receipt-day-row-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.receipt-day-order{display:flex;align-items:baseline;gap:5px;min-width:0}
.receipt-day-order a,.receipt-day-order span{font-weight:900;color:#075d80;text-decoration:none}
.receipt-day-order a:hover{text-decoration:underline}
.receipt-day-order small{font-size:11px;font-weight:800;color:#60747e}
.receipt-day-amount{white-space:nowrap;font-size:15px;color:#173b49}
.receipt-day-customer{
  margin-top:3px;
  font-size:13px;
  font-weight:700;
  color:#183b49;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.receipt-day-meta{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:11px;color:#60747e}
.receipt-day-meta span+span:before{content:"·";margin-right:8px}
.receipt-day-summary{
  margin-top:10px;
  padding:10px 8px;
  border-top:1px solid #bfd7e1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
}
.receipt-day-summary strong{font-size:18px;color:#075d80}


/* 0.7.168 · receipt drawer order code + single side marker */
.receipt-day-row.loc-her,.receipt-day-row.loc-ath{
  box-shadow:none!important;
}
.receipt-day-order a{
  display:inline-flex;
  align-items:baseline;
  gap:0;
}
.receipt-order-internal,
.receipt-order-public{
  font-size:1em;
  font-weight:900;
  line-height:1;
}
.receipt-order-internal{
  color:#075d80;
}
.receipt-order-public{
  color:#4f5960;
}


/* 0.7.169 · Daily Receipts location filters */
.receipt-day-location-filters{
  flex:0 0 auto;
  padding-top:7px!important;
  padding-bottom:7px!important;
}
.receipt-day-location-filters .order-day-location-badge{
  min-width:46px;
}


/* 0.7.170 · compact Order row actions in one cell */
.order-row-actions-cell{
  width:68px!important;
  min-width:68px!important;
  max-width:68px!important;
  padding-left:4px!important;
  padding-right:4px!important;
}
.order-row-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  white-space:nowrap;
}
.order-row-actions form{
  margin:0;
  padding:0;
  display:inline-flex;
}


/* 0.7.171 · TEM input without native up/down spinner */
.variant-pick .pick-qty[type="number"]{
  -moz-appearance:textfield;
  appearance:textfield;
}
.variant-pick .pick-qty[type="number"]::-webkit-inner-spin-button,
.variant-pick .pick-qty[type="number"]::-webkit-outer-spin-button{
  -webkit-appearance:none;
  margin:0;
}


/* 0.7.172 · Orders calendar status bullets */
.orders-calendar-status-legend{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  margin-left:2px!important;
}
.orders-calendar-status-bullet{
  width:15px;
  height:15px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  border:1px solid #cdd9e1;
  background:#fff;
  box-shadow:0 0 0 1px transparent;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.orders-calendar-status-bullet span{
  width:7px;
  height:7px;
  display:block;
  border-radius:999px;
}
.orders-calendar-status-bullet.status-new span{background:#cf8f8a}
.orders-calendar-status-bullet.status-sent span{background:#7dbb95}
.orders-calendar-status-bullet.status-cancelled span{background:#c9a56d}
.orders-calendar-status-bullet:hover{
  transform:scale(1.08);
  border-color:#8fb7c7;
}
.orders-calendar-status-bullet.active{
  border-color:#34586a;
  box-shadow:0 0 0 2px rgba(52,88,106,.16);
}
@media(max-width:900px){
  .orders-calendar-status-legend{gap:3px!important}
  .orders-calendar-status-bullet{width:14px;height:14px}
  .orders-calendar-status-bullet span{width:6px;height:6px}
}


/* 0.7.173 · same status bullets in Day Orders drawer */
.order-day-filter-row{
  justify-content:space-between;
  gap:12px;
}
.order-day-location-badges{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.order-day-status-legend{
  margin-left:auto!important;
  flex:0 0 auto;
}
@media(max-width:520px){
  .order-day-filter-row{gap:8px}
  .order-day-location-badges{gap:4px}
}


/* 0.7.175 · status bullets inside Order workspace Day Orders drawer */
.order-day-drawer .order-day-filter-row{
  justify-content:space-between;
  gap:12px;
}
.order-day-drawer .order-day-location-badges{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.order-day-drawer .order-day-status-legend{
  margin-left:auto!important;
  flex:0 0 auto;
}


/* 0.7.178 · Courier settings tabs */
.courier-settings-tabs{
  flex-wrap:wrap;
  margin-top:10px;
}
@media(max-width:700px){
  .courier-settings-tabs a{flex:1 1 calc(50% - 6px);text-align:center}
}


/* 0.7.182 ACS request/response diagnostics */
.order-courier-data-dialog{width:min(1040px,94vw);max-height:92vh}
.order-courier-data-dialog .order-courier-data-form{width:100%;max-height:88vh;overflow:auto}
.order-courier-data-dialog .order-courier-data-json{width:100%;min-height:210px;font-family:Consolas,"Courier New",monospace;font-size:12px;line-height:1.45;white-space:pre;tab-size:2}
.order-courier-data-dialog label{display:block;margin-top:12px}
.order-courier-data-dialog label>span{display:block;font-weight:700;margin-bottom:5px}
.order-courier-data-actions{display:flex;justify-content:flex-end;margin-top:12px}
.order-toolbar .order-acs-data span{white-space:nowrap}

/* Courier shipments 0.7.189: current-only list, compact toolbar and per-order voucher history. */
.courier-shipments-pagehead{align-items:center!important;margin-bottom:12px!important}
.courier-shipments-pagehead>div{width:auto!important}
.courier-shipments-pagehead>div:first-child{flex:1 1 auto;min-width:0}
.courier-shipments-pagehead h1{width:auto!important;border:0!important;border-bottom:0!important;box-shadow:none!important;margin:0!important}
.courier-shipments-pagehead .actions{flex:0 0 auto;margin-left:auto}
.courier-shipments-filter-panel .panelpad{padding:12px 14px}
.courier-shipments-filters{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(125px,.65fr) minmax(150px,.75fr) minmax(190px,.9fr) auto;gap:10px;align-items:end;margin:0}
.courier-shipments-filters label{display:grid;gap:4px;min-width:0;font-weight:700;font-size:13px;color:#475467}
.courier-shipments-filters input,.courier-shipments-filters select{width:100%;min-width:0}
.courier-filter-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;white-space:nowrap}
.courier-filter-actions .primary,.courier-filter-actions .secondary{min-height:38px;display:inline-flex;align-items:center;justify-content:center}
.courier-shipment-row-actions{justify-content:flex-end;white-space:nowrap}
.courier-history-dialog{width:min(94vw,900px);max-width:900px}
.courier-history-dialog .dialogform{padding:0}
.courier-history-dialog .dialogform header{padding:12px 14px}
.courier-history-dialog .tablewrap{max-height:65vh;overflow:auto}
@media(max-width:1050px){.courier-shipments-filters{grid-template-columns:minmax(220px,1fr) repeat(3,minmax(140px,.7fr));}.courier-filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:720px){.courier-shipments-pagehead{flex-direction:row!important;align-items:center!important}.courier-shipments-pagehead .actions{width:auto!important;margin-left:auto}.courier-shipments-filters{grid-template-columns:1fr 1fr}.courier-filter-search{grid-column:1/-1}.courier-filter-actions{grid-column:1/-1;justify-content:stretch}.courier-filter-actions>*{flex:1}.courier-shipment-row-actions{justify-content:flex-start}}
@media(max-width:500px){.courier-shipments-filters{grid-template-columns:1fr}.courier-filter-search,.courier-filter-actions{grid-column:auto}.courier-shipments-pagehead h1{font-size:22px!important}}
/* 0.7.190 · ACS operations suite */
.acs-preflight-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:10px;padding:8px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}.acs-preflight-bar .muted{margin-left:auto;font-size:12px}.acs-live-results{margin:0 0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px;max-height:260px;overflow:auto}.acs-result-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 4px;border-bottom:1px solid var(--line)}.acs-result-row:last-child{border-bottom:0}.acs-result-main{display:grid;gap:2px;min-width:0}.acs-result-main small{color:var(--muted)}.acs-remote-badge{display:inline-flex;width:max-content;padding:2px 6px;border-radius:999px;background:#fff3cd;color:#7a5700;font-size:11px;font-weight:700}.acs-price-summary{display:grid;gap:2px}.acs-price-summary strong{font-size:16px}.acs-price-summary span,.acs-price-summary small{color:var(--muted)}.acs-price-actions{display:flex;justify-content:flex-end;margin-top:8px}.acs-point-finder{margin-top:10px;padding:9px;border:1px dashed var(--line);border-radius:8px;background:var(--surface-2)}.acs-point-finder[hidden]{display:none!important}.acs-point-search{display:flex;gap:7px;margin-bottom:7px}.acs-point-search input{flex:1;min-width:180px}.acs-tracking-dialog{width:min(760px,94vw);max-width:760px;border:0;border-radius:12px;padding:0}.acs-tracking-dialog::backdrop{background:rgba(20,31,38,.48)}.acs-tracking-content{display:grid;gap:10px}.acs-tracking-summary{display:grid;gap:3px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}.acs-tracking-summary small{color:var(--muted)}.acs-tracking-timeline{display:grid;gap:0;max-height:55vh;overflow:auto}.acs-tracking-item{display:grid;grid-template-columns:145px minmax(0,1fr);gap:2px 10px;padding:9px 4px;border-bottom:1px solid var(--line)}.acs-tracking-item time{grid-row:1/3;color:var(--muted);font-size:12px}.acs-tracking-item strong{font-size:13px}.acs-tracking-item span{font-size:12px;color:var(--muted)}@media(max-width:620px){.acs-preflight-bar .muted{width:100%;margin-left:0}.acs-point-search{display:grid}.acs-tracking-item{grid-template-columns:1fr}.acs-tracking-item time{grid-row:auto}}

/* 0.7.197 — AMS order toolbar: elegant stroke-only Lucide icons (offline). */
.ams-svg.ams-lucide svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* 0.7.198 — Icon-only square order actions. Tooltips via title, names via aria-label.
   Confined to order toolbar and calendar Add; does not affect modals/other screens. */
.order-toolbar {
  gap: 6px;
}
.order-toolbar .toolbtn,
.order-toolbar .status-menu > summary.toolbtn {
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 46px;
  border-radius: 7px;
  line-height: 1;
  text-align: center;
  position: relative;
}
/* Override legacy mobile rules that hid every span, including the SVG wrapper. */
.order-toolbar .toolbtn > .ams-svg {
  display: inline-grid !important;
  width: 27px !important;
  height: 27px !important;
  flex: 0 0 27px;
  color: inherit;
}
.order-toolbar .toolbtn > span:not(.ams-svg) { display: none !important; }
.order-toolbar .status-menu > summary.toolbtn { cursor: pointer; }
.order-toolbar .status-menu > summary.toolbtn::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .8;
}
.order-toolbar .status-pop {
  min-width: 0;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  top: calc(100% + 5px);
  right: 0;
}
.order-toolbar .status-pop form { display: contents; }
.order-toolbar .status-pop button.status-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border: 1px solid #cbd5db;
  border-radius: 7px;
  background: #fff;
  color: #27343a;
  cursor: pointer;
}
.order-toolbar .status-pop button.status-choice:hover:not(:disabled) { background: #eef5f7; }
.order-toolbar .status-pop button.status-choice:disabled { background: #e8f1eb; opacity: .62; cursor: default; }
.order-toolbar .status-pop button.status-choice .ams-svg {
  display: inline-grid !important;
  width: 27px !important;
  height: 27px !important;
}
.order-toolbar .toolbtn:focus-visible,
.order-toolbar .status-pop button.status-choice:focus-visible {
  outline: 2px solid #238cbd;
  outline-offset: 2px;
}
.orders-calendar-page-actions .orders-calendar-add {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 7px !important;
  line-height: 1;
}
.orders-calendar-page-actions .orders-calendar-add > .ams-svg {
  display: inline-grid !important;
  width: 27px !important;
  height: 27px !important;
}
@media(max-width:700px){
  .orders-calendar-page-actions .orders-calendar-add {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  .order-toolbar .toolbtn,
  .order-toolbar .status-menu > summary.toolbtn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }
}


/* 0.7.199 — All square actions aligned to the right, including workspace/drawer. */
.order-main-content .order-headbar {
  width: 100%;
  justify-content: flex-end;
}
.order-main-content .order-toolbar {
  width: 100%;
  margin-left: auto;
  justify-content: flex-end;
}


/* 0.7.200 — Order toolbar cleanup and colored status actions. */
.order-toolbar .order-voucher-pdf {
  border-color: #cf8f8a;
  background: #fff5f4;
  color: #b86f69;
  font-weight: 700;
}
.order-toolbar .order-voucher-pdf:hover {
  background: #fdeceb;
  border-color: #c7837f;
  color: #a9645f;
}
.order-toolbar .status-menu > summary.toolbtn.status.status-new,
.order-toolbar .status-pop button.status-choice.status-choice-new {
  background: #fff4f3;
  border-color: #cf8f8a;
  color: #b86f69;
}
.order-toolbar .status-menu > summary.toolbtn.status.status-new:hover,
.order-toolbar .status-pop button.status-choice.status-choice-new:hover:not(:disabled) {
  background: #fdeceb;
  border-color: #c7837f;
  color: #a9645f;
}
.order-toolbar .status-menu > summary.toolbtn.status.status-sent,
.order-toolbar .status-pop button.status-choice.status-choice-sent {
  background: #f1fbf4;
  border-color: #7dbb95;
  color: #2f7d4d;
}
.order-toolbar .status-menu > summary.toolbtn.status.status-sent:hover,
.order-toolbar .status-pop button.status-choice.status-choice-sent:hover:not(:disabled) {
  background: #e2f6e9;
  border-color: #63ab7f;
  color: #246a3f;
}
.order-toolbar .status-menu > summary.toolbtn.status.status-cancelled,
.order-toolbar .status-pop button.status-choice.status-choice-cancelled {
  background: #fff8ef;
  border-color: #c9a56d;
  color: #9f7b34;
}
.order-toolbar .status-menu > summary.toolbtn.status.status-cancelled:hover,
.order-toolbar .status-pop button.status-choice.status-choice-cancelled:hover:not(:disabled) {
  background: #fdf0dc;
  border-color: #b79258;
  color: #8c6a29;
}
.order-toolbar .status-pop button.status-choice:disabled {
  opacity: 1;
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}


/* 0.7.202 — Voucher only: smaller original SVG, visually centered.
   The existing file.svg has unused vertical viewBox space beneath the drawing. */
.order-toolbar .toolbtn.order-voucher-pdf > .ams-svg {
  display: inline-grid !important;
  place-items: center;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  margin: 0;
}
.order-toolbar .toolbtn.order-voucher-pdf > .ams-svg > svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateY(2.4px);
}


/* 0.7.204 — Products > Stock visual cards; catalog Products stays unchanged. */
.inventory-stock-page{min-width:0}
.inventory-stock-head{align-items:center;gap:16px;flex-wrap:wrap}
.inventory-stock-head .tabs{margin-top:8px}
.inventory-stock-description{margin:0 0 12px;color:#667085;font-size:13px}
.inventory-stock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:7px;align-items:stretch}
.inventory-stock-card{min-width:0;display:flex;flex-direction:column;border:1px solid #91c7e1;background:#fff}
.inventory-stock-card-head{display:flex;align-items:center;padding:5px 7px;height:32px;background:#f5fbfe}
.inventory-stock-card-head a{display:flex;gap:4px;align-items:baseline;min-width:0}
.inventory-stock-card-head b{font-size:15px;color:#1689be}
.inventory-stock-card-head small{font-size:11px;color:#337eaa}
.inventory-stock-image{display:grid;place-items:center;height:172px;padding:7px;background:#f2f3f4;overflow:hidden}
.inventory-stock-image img{max-width:100%;max-height:100%;object-fit:contain}
.inventory-stock-image>span{font-size:11px;color:#98a2b3}
.inventory-stock-list{flex:1;min-width:0;background:#fff}
.inventory-stock-list-head,.inventory-stock-sku{display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;align-items:center;gap:3px}
.inventory-stock-list-head{padding:5px 6px 4px;background:#edf6fb;border-bottom:1px solid #cee5f0;font-size:10px;font-weight:800;color:#4a6575}
.inventory-stock-list-head span:nth-child(n+2){text-align:center}
.inventory-stock-sku{min-height:35px;padding:4px 6px;border-bottom:1px solid #e7edf2}
.inventory-stock-sku:last-child{border-bottom:0}
.inventory-stock-sku.inactive{background:#fafafa;color:#89939e}
.inventory-stock-sku-id{min-width:0;display:grid;gap:1px}
.inventory-stock-sku-id strong{font-size:11px;line-height:1.15;word-break:break-all}
.inventory-stock-sku-id small{font-size:10px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7a8792}
.inventory-stock-qty{display:block;text-align:center;border-radius:3px;padding:4px 1px;font-size:12px;line-height:1.15;min-width:0}
.inventory-stock-qty.her{background:#e8f6fd;color:#0b719d}
.inventory-stock-qty.ath{background:#fff0ec;color:#ae6048}
.inventory-stock-qty.negative{background:#fee4e2;color:#b42318}
.inventory-stock-none{padding:12px 8px;color:#98a2b3;font-size:12px;text-align:center}
@media(max-width:750px){.inventory-stock-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.inventory-stock-image{height:145px}.inventory-stock-head .search{width:100%}.inventory-stock-head .search input{min-width:0;flex:1}}


/* 0.7.206 — Stock cards: bold size/color above, SKU below, one more column, smaller photos. */
.inventory-stock-grid{grid-template-columns:repeat(auto-fill,minmax(174px,1fr));gap:6px}
.inventory-stock-image{height:154px;padding:6px}
.inventory-stock-card-head{padding:4px 7px;height:30px}
.inventory-stock-card-head b{font-size:14px}
.inventory-stock-card-head small{font-size:10px}
.inventory-stock-list-head,.inventory-stock-sku{grid-template-columns:minmax(0,1fr) 34px 34px}
.inventory-stock-list-head{padding:4px 6px 3px;font-size:9px}
.inventory-stock-sku{min-height:38px;padding:4px 6px}
.inventory-stock-sku-id{gap:2px}
.inventory-stock-sku-id strong{font-size:11px;line-height:1.1;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#243746}
.inventory-stock-sku-id small{font-size:10px;line-height:1.1;color:#667085;word-break:break-all}
.inventory-stock-qty{padding:4px 1px;font-size:11px}
@media(max-width:980px){.inventory-stock-grid{grid-template-columns:repeat(auto-fill,minmax(166px,1fr))}.inventory-stock-image{height:146px}}
@media(max-width:750px){.inventory-stock-grid{grid-template-columns:repeat(auto-fill,minmax(156px,1fr))}.inventory-stock-image{height:136px}}


/* 0.7.207 — Stock image fit: always display the complete thumbnail, never crop. */
.inventory-stock-image {
  display: block;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.inventory-stock-image > img {
  display: block;
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}
.inventory-stock-image > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* 0.7.208 — Stock cards compact rows: show only size/color, keep SKU in tooltip. */
.inventory-stock-list-head{padding:3px 5px 2px;font-size:8px}
.inventory-stock-list-head,.inventory-stock-sku{grid-template-columns:minmax(0,1fr) 32px 32px;gap:2px}
.inventory-stock-sku{min-height:26px;padding:2px 5px}
.inventory-stock-sku-id{gap:0}
.inventory-stock-sku-id strong{display:block;font-size:10px;line-height:1.05;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inventory-stock-sku-id small{display:none}
.inventory-stock-qty{padding:3px 1px;font-size:10px;line-height:1.05;border-radius:2px}


/* 0.7.209 — Stock cards: larger text with tighter spacing. */
.inventory-stock-list-head{padding:2px 4px 1px;font-size:9px}
.inventory-stock-list-head,.inventory-stock-sku{grid-template-columns:minmax(0,1fr) 34px 34px;gap:1px}
.inventory-stock-sku{min-height:24px;padding:1px 4px}
.inventory-stock-sku-id strong{font-size:11px;line-height:1.0}
.inventory-stock-qty{padding:2px 1px;font-size:11px;line-height:1.0;border-radius:2px}


/* 0.7.210 — Larger, readable HER / ATH stock labels with minimal row spacing. */
.inventory-stock-list-head{
  padding:1px 3px;
  font-size:10px;
  line-height:1.1;
}
.inventory-stock-list-head,.inventory-stock-sku{
  grid-template-columns:minmax(0,1fr) 36px 36px;
  gap:1px;
}
.inventory-stock-sku{
  min-height:21px;
  padding:0 3px;
}
.inventory-stock-sku-id strong{
  font-size:13px;
  line-height:1.08;
  letter-spacing:-.2px;
  white-space:normal;
  overflow-wrap:anywhere;
  overflow:visible;
  text-overflow:clip;
}
.inventory-stock-qty{
  font-size:13px;
  line-height:1.08;
  padding:2px 0;
  border-radius:2px;
  font-variant-numeric:tabular-nums;
}


/* 0.7.211 — Independent catalog-range / in-out filters in Products > Stock. */
.inventory-stock-head{margin-bottom:7px}
.inventory-stock-filter-form{
  display:flex;align-items:end;gap:7px;flex-wrap:wrap;
  padding:7px 8px;margin:0 0 8px;
  border:1px solid #d3e4ed;border-radius:6px;background:#f7fbfd;
}
.inventory-stock-filter-form label{display:grid;gap:2px;font-size:11px;font-weight:700;color:#3f6173}
.inventory-stock-code-filter{flex:0 0 92px}
.inventory-stock-code-filter input{width:100%;min-width:0;height:33px;padding:5px 6px;font-size:13px}
.inventory-stock-catalog-choices{
  display:flex;align-items:center;gap:10px;align-self:end;
  min-height:33px;padding:3px 8px;border:1px solid #d2e3ec;border-radius:5px;background:#fff;
}
.inventory-stock-catalog-choices label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;color:#345268;cursor:pointer}
.inventory-stock-catalog-choices input[type=checkbox]{margin:0;width:15px;height:15px;flex:0 0 15px;accent-color:#187db1}
.inventory-stock-search-filter{flex:1 1 180px;min-width:155px}
.inventory-stock-search-filter input{width:100%;min-width:0;height:33px;padding:5px 8px;font-size:13px}
.inventory-stock-filter-submit,.inventory-stock-filter-clear{
  height:33px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;padding:0 11px;border-radius:5px;font-weight:700;font-size:12px;text-decoration:none;
}
.inventory-stock-filter-submit{border:1px solid #177eb0;background:#188dbf;color:#fff;cursor:pointer}
.inventory-stock-filter-submit:hover{background:#0a749e}
.inventory-stock-filter-clear{border:1px solid #a9c7d8;background:#fff;color:#236b91}
.inventory-stock-filter-clear:hover{background:#edf7fc}
.inventory-stock-filter-warning{font-size:12px;color:#b42318;margin:0 0 7px}
@media(max-width:750px){
  .inventory-stock-code-filter{flex:1 1 90px;min-width:86px}
  .inventory-stock-catalog-choices{flex:1 1 100%;justify-content:flex-start}
  .inventory-stock-search-filter{flex:1 1 100%}
}


/* 0.7.212 — Stock unified working filter controls and safe footer clearance. */
.inventory-stock-page{
  box-sizing:border-box;
  padding-bottom:calc(90px + env(safe-area-inset-bottom, 0px));
}
.inventory-stock-head{margin-bottom:5px;}
.inventory-stock-head h1{margin-bottom:0;}
.inventory-stock-filters-bar{
  display:flex;
  align-items:end;
  gap:7px;
  flex-wrap:wrap;
  width:100%;
  padding:7px 8px;
  margin:0 0 9px;
  border:1px solid #d3e4ed;
  border-radius:6px;
  background:#f7fbfd;
}
.inventory-stock-branch-form{
  display:flex;
  align-items:center;
  gap:4px;
  flex:0 0 auto;
  padding:0 9px 0 0;
  margin:0;
  border-right:1px solid #cedce7;
}
.inventory-stock-branch-btn{
  box-sizing:border-box;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  height:33px;
  min-width:38px;
  padding:0 9px;
  border:1px solid #a9c7d8;
  border-radius:5px;
  background:#fff;
  color:#236b91;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.inventory-stock-branch-btn.active,
.inventory-stock-branch-btn[aria-pressed="true"]{
  background:#188dbf;
  border-color:#188dbf;
  color:#fff;
}
.inventory-stock-branch-btn:hover:not(.active){background:#eaf7fd;}
.inventory-stock-filter-form{
  display:flex;
  align-items:end;
  flex:1 1 640px;
  gap:7px;
  flex-wrap:wrap;
  min-width:0;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.inventory-stock-clear-form{display:flex;align-items:end;margin:0;padding:0;flex:0 0 auto;}
.inventory-stock-filter-clear{cursor:pointer;font-family:inherit;}
@media(max-width:900px){
  .inventory-stock-branch-form{border-right:0;padding-right:0;}
  .inventory-stock-filter-form{flex:1 1 100%;}
}


/* 0.7.214 — Customer balances overview; consistent with customer catalog. */
.customer-balance-filter{border-color:#e1b789;color:#80531b;font-weight:800}
.customer-balance-filter.active{background:#91652d;border-color:#91652d;color:#fff}
.customer-balances-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 10px;padding:12px 14px;border:1px solid #d2e5ef;border-radius:8px;background:#f8fcfe}
.customer-balances-summary>div:first-child{display:grid;gap:3px}
.customer-balances-summary strong{font-size:15px}
.customer-balances-summary small{color:#697e8c;font-size:12px}
.customer-balances-total{display:flex;align-items:center;gap:12px}
.customer-balances-total span{font-size:12px;color:#566a78;font-weight:700}
.customer-balances-total strong{font-size:20px;color:#a15b2d;font-variant-numeric:tabular-nums}
.customer-sortlink{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.customer-sort-arrow{font-size:11px;opacity:.7}
.customer-balances-table th.num{text-align:right}
.customer-balances-table th.num .customer-sortlink{justify-content:flex-end;width:100%}
.customer-balances-table .customer-balance-amount{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;color:#a15b2d}
.customer-balances-table .customer-balance-amount a{color:inherit}
.customer-balances-table .customer-balance-amount a:hover{text-decoration:underline}
.customer-balances-table td{padding-top:8px;padding-bottom:8px}
@media(max-width:700px){.customer-balances-summary{align-items:flex-start}.customer-balances-total{width:100%;justify-content:space-between}}


/* 0.7.215 — Customers: responsive clean header, searchable actions at right,
   status dropdown before ALL/HER/ATH. Scoped to customers only. */
.customers-pagehead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  min-width:0;
}
.customers-pagehead > .customers-title{
  width:auto!important;
  min-width:0!important;
  flex:0 0 auto!important;
}
.customers-pagehead .customers-title h1{
  width:auto!important;
  border-bottom:0!important;
  font-size:clamp(21px,2.2vw,27px);
  line-height:1.15;
  margin:0;
  white-space:nowrap;
}
.customers-pagehead .pagehead-actions{
  display:flex!important;
  flex:0 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:8px;
  margin-left:auto!important;
}
.customers-pagehead .pagehead-actions .customers-search-form{
  display:flex!important;
  flex:1 1 auto;
  width:auto;
  min-width:0;
  gap:6px;
  margin:0;
  flex-wrap:nowrap;
}
.customers-pagehead .customers-search-form input[name="q"]{
  width:clamp(190px,23vw,340px);
  min-width:0;
  flex:1 1 190px;
}
.customers-pagehead .customers-search-form button{flex:0 0 auto;white-space:nowrap}
.customers-pagehead .customers-add-action{
  flex:0 0 auto;
  width:auto;
  white-space:nowrap;
}
.customers-filterbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:7px;
}
.customer-status-select-form{display:flex;align-items:center;flex:0 0 auto;margin:0;max-width:100%}
.customer-status-dropdown{
  display:block;
  height:35px;
  min-width:155px;
  max-width:100%;
  margin:0;
  padding:5px 31px 5px 10px;
  border:1px solid #9dc9df;
  border-radius:7px;
  background:#fff;
  color:#0c628e;
  font-weight:700;
  cursor:pointer;
}
.customer-status-dropdown.has-balances{border-color:#e1b789;color:#80531b}
.customers-filterbar .customer-location-filters{display:flex;align-items:center;gap:5px}
@media(max-width:800px){
  .customers-pagehead{flex-wrap:wrap!important;gap:7px!important}
  .customers-pagehead .pagehead-actions{
    max-width:none!important;
    flex:1 1 100%!important;
    width:100%!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
  }
  .customers-pagehead .customers-search-form input[name="q"]{
    width:100%!important;
    min-width:0!important;
    flex:1 1 100px;
  }
  .customers-pagehead .customers-add-action{width:auto!important}
}
@media(max-width:700px){
  .customers-pagehead .customers-add-action{
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
    padding:0!important;
  }
  .customers-filterbar{gap:5px}
  .customer-status-dropdown{min-width:145px;height:34px;font-size:13px}
}


/* 0.7.216 — Keep Balances as a separate action on far right of the customer filters. */
.customers-filterbar > .customer-balance-filter{
  margin-left:auto;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:35px;
  white-space:nowrap;
  text-decoration:none;
}
@media(max-width:520px){
  .customers-filterbar > .customer-balance-filter{margin-left:auto}
}


/* 0.7.217 — Override legacy full-viewport pagehead width inside a split pane. */
.split-page[data-right-section="customers"] .customers-pagehead {
  box-sizing:border-box;
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:12px!important;
  padding-right:12px!important;
}

/* 0.7.217 — Keep Customers actions inside the left pane when the right pane opens.
   The title gets its own row; search and Add share the next row and shrink to fit.
   Scoped to Customers, preserving the established layout elsewhere. */
@media (min-width:901px) {
  .split-page[data-right-section="customers"].has-right .customers-pagehead {
    flex-direction:column!important;
    align-items:stretch!important;
    gap:7px!important;
  }
  .split-page[data-right-section="customers"].has-right .customers-pagehead .pagehead-actions {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    flex:0 1 auto!important;
    justify-content:flex-end!important;
  }
  .split-page[data-right-section="customers"].has-right .customers-pagehead .customers-search-form {
    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
  }
  .split-page[data-right-section="customers"].has-right .customers-pagehead .customers-search-form input[name="q"] {
    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
  }
}


/* 0.7.218 — Customers: ONE header row with title, shorter search and Add.
   Container queries react to the available main-pane width (not viewport width),
   so the right drawer never forces the toolbar below the heading. */
.split-page[data-right-section="customers"] > .main-pane {
  container-type:inline-size;
}
.split-page[data-right-section="customers"] .customers-pagehead,
.split-page[data-right-section="customers"].has-right .customers-pagehead {
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:7px!important;
  min-width:0!important;
}
.split-page[data-right-section="customers"] .customers-pagehead > .customers-title {
  flex:0 0 auto!important;
  min-width:0!important;
}
.split-page[data-right-section="customers"] .customers-pagehead .pagehead-actions,
.split-page[data-right-section="customers"].has-right .customers-pagehead .pagehead-actions {
  display:flex!important;
  flex:1 1 auto!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  gap:5px!important;
  margin-left:auto!important;
}
.split-page[data-right-section="customers"] .customers-pagehead .customers-search-form,
.split-page[data-right-section="customers"].has-right .customers-pagehead .customers-search-form {
  display:flex!important;
  flex:0 1 300px!important;
  align-items:center!important;
  min-width:0!important;
  width:auto!important;
  gap:4px!important;
}
.split-page[data-right-section="customers"] .customers-pagehead .customers-search-form input[name="q"],
.split-page[data-right-section="customers"].has-right .customers-pagehead .customers-search-form input[name="q"] {
  flex:1 1 0!important;
  min-width:0!important;
  width:100%!important;
  max-width:215px!important;
}
.split-page[data-right-section="customers"] .customers-pagehead .customers-add-action {
  flex:0 0 auto!important;
  padding-inline:9px!important;
  font-size:13px!important;
  min-width:0!important;
}
@container (max-width:600px) {
  .customers-pagehead .customers-title h1 {font-size:20px!important}
  .customers-pagehead .customers-add-action {
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    padding:0!important;
    flex:0 0 36px!important;
    display:inline-flex!important;
    justify-content:center!important;
    align-items:center!important;
  }
  .customers-pagehead .customers-add-action > span:not(.ams-svg) {display:none!important}
  .customers-pagehead .customers-add-action .ams-svg {display:inline-grid!important}
  .customers-pagehead .customers-search-form input[name="q"] {max-width:none!important}
}


/* 0.7.219 Cloud customer reconciliation — admin-only, manual confirmation. */
.cloud-match-page{padding:0 4px 90px}
.cloud-match-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cloud-match-head p{margin:0;font-size:13px}
.cloud-match-controls{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px;background:#f5fafc;border:1px solid #d5e5ed;border-radius:8px;margin-bottom:14px}
.cloud-match-controls form{margin:0}.cloud-match-controls small{color:#667085}
.cloud-match-layout{display:grid;grid-template-columns:minmax(255px,32%) minmax(0,1fr);gap:12px;min-width:0}
.cloud-match-layout>section{min-width:0;border:1px solid #cce0e9;border-radius:8px;background:#fff;overflow:hidden}
.cloud-match-search{display:flex;gap:5px;padding:10px;border-bottom:1px solid #e2edf2}
.cloud-match-search input{width:100%;min-width:0;flex:1}
.cloud-match-search button{background:#2895bf;color:#fff;border:0;border-radius:6px;padding:7px 10px;cursor:pointer}
.cloud-match-section-title{padding:8px 11px;background:#eef7fb;font-weight:800;color:#176b91;font-size:13px}
.cloud-match-ams-list{max-height:68vh;overflow:auto}
.cloud-match-ams-row{display:grid;gap:3px;padding:9px 11px;border-bottom:1px solid #e7eef3;color:#25394a}
.cloud-match-ams-row:hover,.cloud-match-ams-row.selected{background:#e9f6fc}
.cloud-match-ams-row.selected{box-shadow:inset 3px 0 0 #1689be}
.cloud-match-ams-row small,.cloud-match-option small{font-size:12px;color:#667085}
.cloud-match-identity{padding:12px;background:#f0f9fd;border-bottom:1px solid #d6e6ef}
.cloud-match-identity>div,.cloud-match-option-info{display:grid;gap:2px}
.cloud-match-identity strong{font-size:18px}
.cloud-match-identity small{color:#667085}
.cloud-match-help{margin:8px 11px;font-size:12px;color:#617081}
.cloud-match-options{max-height:65vh;overflow:auto;padding:0 10px 12px}
.cloud-match-option{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:9px 7px;border-bottom:1px solid #e6eef4;margin:0}
.cloud-match-option-info{min-width:0;overflow:hidden}
.cloud-match-option-info b{overflow-wrap:anywhere}
.cloud-match-reasons{color:#16824a!important;font-weight:750}
.cloud-match-confirm{flex:0 0 auto;border:1px solid #4d9dba;border-radius:6px;background:#e8f8fd;color:#12618d;padding:7px 10px;font-weight:750;cursor:pointer}
.cloud-match-confirm:hover{background:#d8f0fb}
@media(max-width:810px){.cloud-match-layout{grid-template-columns:1fr}.cloud-match-ams-list{max-height:230px}.cloud-match-options{max-height:none}}

/* 0.7.220 — independent ACS / ELTA voucher entry */
.manual-voucher-tabs{margin-bottom:10px}
.manual-voucher-location{display:flex;align-items:end;flex-wrap:wrap;gap:16px}
.manual-voucher-location label{display:grid;gap:4px;min-width:210px}
.manual-voucher-location .muted{margin-bottom:10px}
.manual-voucher-layout{display:grid;grid-template-columns:minmax(360px,1fr) minmax(450px,1.15fr);gap:12px;align-items:start}
.manual-voucher-search{display:flex;gap:8px;align-items:center}
.manual-voucher-search input{min-width:150px;flex:1}
.manual-voucher-actions{gap:5px;flex-wrap:wrap;white-space:nowrap}
.manual-voucher-actions form{display:inline-flex;margin:0}
.manual-voucher-warning{margin-top:12px}
.manual-voucher-confirm{display:flex;gap:8px;align-items:center;margin:12px 0}
@media(max-width:1200px){.manual-voucher-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.manual-voucher-location label{width:100%}.manual-voucher-search{flex-wrap:wrap}.manual-voucher-search input{min-width:100%}}

/* 0.7.221 — per-product color backgrounds */
.product-visual-bg{background-color:#eeeeee}
.product-color-hex-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.product-color-hex-row>label{display:grid;gap:5px;min-width:0;margin:0}
.product-color-hex-row .color-hex-control{min-width:0}
.product-color-hex-row .color-hex-control input:not([type=color]){width:100%;min-width:0}
@media(max-width:560px){.product-color-hex-row{grid-template-columns:1fr}}

/* 0.7.222 — centrally managed product background palette */
.background-palette-settings{width:min(100%,520px);table-layout:fixed}
.background-palette-settings th:first-child,.background-palette-settings td:first-child{width:44px;text-align:center}
.background-palette-settings th:last-child,.background-palette-settings td:last-child{width:130px;text-align:center}
.background-palette-settings input[type=text]{width:100%;max-width:240px;font-family:monospace;text-transform:lowercase}
.background-palette-settings input[type=color]{width:64px;height:34px;padding:2px;cursor:pointer}
.product-color-hex-row>.product-background-field{display:grid;gap:6px;min-width:0;align-content:start}
.product-background-field>label{display:grid;gap:5px;min-width:0;margin:0}
.product-background-palette{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0}
.product-background-palette button{display:flex;gap:4px;align-items:center;flex-direction:column;min-width:50px;padding:4px 5px;border:1px solid #bdd0dc;border-radius:6px;background:#fff;color:#526875;cursor:pointer}
.product-background-palette button[aria-pressed=true]{outline:2px solid #0b84bb;outline-offset:1px;border-color:#0b84bb}
.product-background-palette button:hover{border-color:#1689ba;background:#f1f9fd}
.product-background-palette .palette-swatch{display:block;height:23px;width:36px;background:var(--palette-swatch);border:1px solid #aebbc5;border-radius:4px}
.product-background-palette small{font-size:10px;font-family:monospace}
.product-color-hex-row>label,.product-background-field>label{grid-template-columns:minmax(0,1fr)}

/* AMS 0.7.241 — Products: compact flags and stable main/right placement. */
.product-split .product-status-flags{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:3px;padding:8px 6px}
.product-split .product-status-flags .checkline{white-space:nowrap;min-width:0;gap:3px;font-size:11px}
@media(min-width:901px){
  .product-split.has-right>.main-pane{grid-column:1;grid-row:1}
  .product-split.has-right>.right-resizer{grid-column:2;grid-row:1}
  .product-split.has-right>.right-pane{grid-column:3;grid-row:1}
}
/* On tablet widths, the product detail stays in a drawer, never beneath the list. */
@media(min-width:701px) and (max-width:900px){
  .product-split.has-right>.right-pane{position:fixed;top:74px;right:8px;bottom:8px;width:min(480px,70vw);height:auto;max-height:none;z-index:65;display:flex;flex-direction:column}
  .product-split.has-right>.right-pane>.right-title,.product-split.has-right>.right-pane>.subtabs{flex:0 0 auto}
  .product-split.has-right>.right-pane>.right-scroll{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
}

/* AMS 0.7.241 — single fabric dropdown in Products > General. */
.product-split .product-fabric-select{display:grid;gap:5px;min-width:0;font-weight:600}
.product-split .product-fabric-select select{width:100%;min-width:0;font-weight:400}

/* AMS 0.7.241 — single horizontal row for the four primary Product General fields. */
.product-split .product-general-top-fields{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.05fr) minmax(0,1.05fr) minmax(0,1.65fr);gap:7px;align-items:start;min-width:0}
.product-split .product-general-top-fields>label{display:grid;gap:5px;min-width:0;margin:0;font-size:11px!important;white-space:normal}
.product-split .product-general-top-fields input,.product-split .product-general-top-fields select{float:none;width:100%;min-width:0;font-size:13px;padding:7px 5px}
.product-split .product-general-top-fields .printtype-control{display:flex;gap:4px;min-width:0}
.product-split .product-general-top-fields .printtype-preview{width:28px!important;height:32px!important;flex:none;padding:1px}
@media(max-width:700px){.product-split .product-general-top-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* AMS 0.7.241 — four secondary General fields, on one horizontal row. */
.product-split .product-general-secondary-fields{
  display:grid;grid-template-columns:minmax(0,.60fr) minmax(0,.95fr) minmax(0,1.18fr) minmax(0,1.35fr);
  gap:7px;align-items:start;min-width:0
}
.product-split .product-general-secondary-fields>label{
  display:grid;grid-template-columns:minmax(0,1fr);gap:5px;
  min-width:0;margin:0;font-size:11px!important;white-space:normal
}
.product-split .product-general-secondary-fields input:not([type=checkbox]),
.product-split .product-general-secondary-fields select{
  float:none;width:100%;min-width:0;font-size:13px;padding:7px 5px
}
.product-split .product-general-secondary-fields .product-alternation-check{
  display:flex;gap:5px;align-items:center;min-height:34px;
  padding:5px 7px;border:1px solid #d6e6ee;border-radius:6px;
  background:#f8fcfe;font-weight:500;cursor:pointer
}
.product-split .product-general-secondary-fields .product-alternation-check input{
  float:none;width:auto;min-width:0;margin:0
}
@media(max-width:700px){
  .product-split .product-general-secondary-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* AMS 0.7.243 — Products: recognizable primary print icon and separate color overrides. */
.product-split .catalog-printtypes{display:inline-flex;align-items:center;gap:4px;min-height:38px;flex-wrap:wrap}
.product-split .catalog-printtypes img.product-printtype-icon{display:block;width:38px!important;height:38px!important;object-fit:contain;object-position:center;flex:none}
.product-split .catalog-printtypes img.product-printtype-main{width:38px!important;height:38px!important}
.product-split .catalog-printtypes img.product-printtype-color{width:28px!important;height:28px!important;padding:2px;border:1px dashed #a6bfce;border-radius:4px;background:#fff}
.product-split .catalog-printtypes .printtype-code-fallback{display:inline-flex;align-items:center;padding:2px 5px;border:1px solid #b5cbd5;border-radius:4px;font:600 11px/1.2 system-ui,sans-serif;background:#f5fbfd;color:#1c5874}
.product-split .product-card-left{min-height:40px}

/* AMS 0.7.243 — Categories: wider, grouped, consistent checkbox/label alignment. */
dialog.category-picker-dialog{box-sizing:border-box;width:min(840px,94vw);max-width:94vw;max-height:min(86vh,780px);padding:0;overflow:hidden;border:1px solid #b7d6e5;border-radius:12px;box-shadow:0 24px 80px #0e2b4040}
.category-picker-dialog::backdrop{background:rgba(13,32,45,.38)}
.category-picker-dialog .category-dialog{box-sizing:border-box;width:100%;max-width:none;max-height:min(86vh,780px);display:flex;flex-direction:column;gap:0;padding:0;min-height:0}
.category-picker-dialog .category-dialog>header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;margin:0;border-bottom:1px solid #cfe1e9}
.category-picker-dialog .category-dialog-description{flex:none;margin:0;padding:10px 18px;font-size:13px;color:#56717e;background:#f8fcfe}
.category-picker-dialog .category-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:15px 18px;max-height:none;min-height:0;overflow:auto;align-content:start}
.category-picker-dialog .catgroup{box-sizing:border-box;min-width:0;margin:0;padding:0;border:1px solid #cbdfe8;border-radius:8px;background:#fff;overflow:hidden}
.category-picker-dialog .catgroup h4{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:8px 11px;border:0;border-bottom:1px solid #dceaf1;background:#eef8fc;color:#126b94;font-size:15px}
.category-picker-dialog .catgroup h4 small{font-size:11px;font-weight:600;color:#587886}
.category-picker-dialog .catgroup-options{padding:6px 9px 9px}
.category-picker-dialog .catgroup label.category-option{display:flex!important;grid-template-columns:none!important;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:30px;margin:0;padding:5px 4px;color:#203746;font-size:14px;line-height:1.3;cursor:pointer}
.category-picker-dialog .catgroup label.category-option:hover{background:#f2f9fc;border-radius:5px}
.category-picker-dialog .catgroup label.category-option input[type=checkbox]{box-sizing:border-box;display:block;flex:0 0 17px;width:17px!important;height:17px;margin:0;padding:0;accent-color:#2399c1}
.category-picker-dialog .catgroup label.category-option span{min-width:0;overflow-wrap:anywhere}
.category-picker-dialog .category-dialog-footer{flex:none;display:flex;justify-content:flex-end;gap:8px;padding:11px 18px;border-top:1px solid #d2e4ed;background:#f9fcfe}
.category-picker-dialog .category-dialog-footer .primary{min-width:205px}
@media(max-width:640px){.category-picker-dialog .category-columns{grid-template-columns:minmax(0,1fr);padding:10px}.category-picker-dialog .category-dialog-description{padding:9px 12px}.category-picker-dialog .category-dialog>header{padding:10px 12px}}

/* AMS 0.7.245 · Master Data: create form outside the columnized item lists.
   Deliberately no changes to assets/custom.css (local overrides). */
.master-panel .master-add-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #87c4dc;
  border-left: 4px solid #1985af;
  border-radius: 9px;
  background: #eff9fd;
  break-inside: avoid;
}
.master-panel .master-add-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #075e83;
}
.master-panel .master-existing-block { min-width: 0; }
.master-panel .master-existing-title {
  margin: 5px 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #bfd7e3;
  font-weight: 800;
  color: #3b5b6d;
}
.master-panel .master-existing-title small { font-weight: 500; color: #708390; }
.master-panel .master-add-box form { margin: 0; }
.master-panel .master-existing-block .master-grid { min-width: 0; }

/* Root categories stay visually separate from their child entries.
   The list container remains .master-grid so local custom.css columns survive. */
.master-panel .master-category-groups { gap: 12px; }
.master-panel .master-category-family {
  display: block;
  padding: 12px;
  border: 1px solid #a0cee4;
  border-left: 4px solid #1687b4;
  border-radius: 9px;
  background: #eef7fc;
  break-inside: avoid;
  margin-bottom: 12px;
}
.master-panel .master-category-family-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #115d82;
}
.master-panel .master-category-family-title strong { font-size: 16px; }
.master-panel .master-category-family-title span {
  font-size: 12px;
  font-weight: 700;
  color: #376a81;
  background: #d5edf8;
  border-radius: 5px;
  padding: 3px 7px;
}
.master-panel .master-category-children {
  margin: 12px 0 0 14px;
  padding-left: 13px;
  border-left: 3px solid #afd0df;
}
.master-panel .master-category-children-title {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #547487;
}
.master-panel .master-category-child {
  padding: 9px;
  margin-bottom: 7px;
  border: 1px solid #d8e7ee;
  border-radius: 6px;
  background: #fff;
}
.master-panel .master-category-child:last-child { margin-bottom: 0; }
.master-panel .master-category-child:hover { border-color: #a5ccdd; }
.master-panel .master-category-family .master-row { min-width: 0; }
@media(max-width:900px){
  .master-panel .master-category-family { padding: 9px; }
  .master-panel .master-category-children { margin-left: 7px; padding-left: 8px; }
}
/* Category editor: four fields on the first line, remaining controls below.
   This avoids horizontal overflow when a local columns:2 rule is applied. */
.master-panel .master-category-family .master-row.category-row {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(60px,.65fr) minmax(0,1.1fr) minmax(0,1fr);
  gap: 6px;
}
.master-panel .master-category-family .category-row select[name="parent_id"] { grid-column: 1; min-width: 0; }
.master-panel .master-category-family .category-row input[name="code"] { grid-column: 2; min-width: 0; width: 100%; }
.master-panel .master-category-family .category-row input[name="name"] { grid-column: 3; min-width: 0; }
.master-panel .master-category-family .category-row input[name="description"] { grid-column: 4; min-width: 0; }
.master-panel .master-category-family .category-row input[name="sort_order"] { grid-column: 1; max-width: 90px; }
.master-panel .master-category-family .category-row label { grid-column: 2 / 4; }
.master-panel .master-category-family .category-row button { grid-column: 4; }
@media(max-width:620px){
  .master-panel .master-category-family .master-row.category-row { grid-template-columns: minmax(0,1fr) minmax(60px,.55fr); }
  .master-panel .master-category-family .category-row select[name="parent_id"],
  .master-panel .master-category-family .category-row input[name="name"],
  .master-panel .master-category-family .category-row input[name="description"] { grid-column: 1/-1; }
  .master-panel .master-category-family .category-row input[name="code"] { grid-column: 1; }
  .master-panel .master-category-family .category-row input[name="sort_order"] { grid-column: 2; }
  .master-panel .master-category-family .category-row label { grid-column: 1; }
  .master-panel .master-category-family .category-row button { grid-column: 2; }
}

/* 0.7.270 — Customers: opt-in City / Phone / Email columns, both catalog modes. */
.split-page[data-right-section="customers"] .customer-column-controls {
  display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end;
  gap:5px; margin:6px 0; padding:0 4px;
}
.split-page[data-right-section="customers"] .customer-column-controls-label {
  font-size:12px; color:#527083; margin-right:3px;
}
.split-page[data-right-section="customers"] .customer-column-toggle {
  padding:4px 9px; font-size:12px; font-weight:700; line-height:1.35;
  border:1px solid #9fc6d9; border-radius:5px;
  background:#f7fbfd; color:#146c90; cursor:pointer;
}
.split-page[data-right-section="customers"] .customer-column-toggle[aria-pressed="true"] {
  background:#1283aa; color:white; border-color:#1283aa;
}
.split-page[data-right-section="customers"] .customer-column-toggle:focus-visible {
  outline:2px solid #195e8c; outline-offset:2px;
}
.split-page[data-right-section="customers"] .customer-table [data-customer-column][hidden] {display:none!important;}
.split-page[data-right-section="customers"] .customer-table .customer-compact-heading {width:25px;max-width:28px;}
@media(max-width:700px) {
  .split-page[data-right-section="customers"] .customer-column-controls {justify-content:flex-start;}
  .split-page[data-right-section="customers"] .customer-column-controls-label {width:100%;}
}

/* 0.7.271 — live regular price from the 5,000-piece pricelist cell. */
.size-form-grid .pricelist-5000-price{display:flex;align-items:center;min-height:38px;padding:6px 11px;border:1px solid var(--line,#d2e2ee);border-radius:6px;background:var(--panel,#f4f9fc);font-weight:700;font-variant-numeric:tabular-nums}
.size-form-grid select.js-pricelist-5000{width:100%;min-width:0}

/* 0.7.272 — click the complete size / pricelist code / dimension label. */
.size-list-link{display:inline-flex;align-items:baseline;gap:7px;flex-wrap:wrap;max-width:100%;width:auto;min-width:0;text-align:left;white-space:normal;padding:3px 5px}
.size-list-link .size-list-abbr{font-weight:800;color:#1681ae;font-size:1.13em}
.size-list-link .size-list-pricelist{font-weight:700;color:#147a9e}
.size-list-link .size-list-dimension{color:var(--text,#344455);font-weight:500}
.size-list-link:hover .size-list-pricelist,.size-list-link:hover .size-list-dimension{text-decoration:underline}
.size-form-grid input.pricelist-5000-price{display:block;width:100%;min-width:0;min-height:38px;background:#eef7fc;font-weight:800;color:#126b8b;cursor:default;font-variant-numeric:tabular-nums}
.size-form-grid input.pricelist-5000-price.price-not-found{color:#9b4545}

/* 0.7.273 — Users create/edit dialog. Isolated from shared formgrid and user overrides. */
dialog.user-editor-dialog { box-sizing:border-box; width:min(880px,96vw); max-width:96vw; max-height:min(90vh,900px); padding:0; border:1px solid #a9cedf; border-radius:12px; overflow:hidden; box-shadow:0 24px 90px #092b4455; }
dialog.user-editor-dialog::backdrop { background:rgba(12,35,51,.53); }
.user-editor-dialog .user-editor-form { display:flex; flex-direction:column; max-height:min(90vh,900px); margin:0; padding:0; background:#fff; }
.user-editor-dialog .user-editor-head { padding:14px 18px; border-bottom:1px solid #cce0e9; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-shrink:0; }
.user-editor-dialog .user-editor-head h2 { margin:0; font-size:20px; color:#0a779d; }
.user-editor-dialog .user-editor-close { width:34px; height:34px; border:0; border-radius:50%; color:#fff; background:#369fc2; cursor:pointer; font-size:18px; flex-shrink:0; }
.user-editor-dialog .user-editor-content { overflow-y:auto; min-height:0; padding:18px; }
.user-editor-dialog .user-editor-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; align-items:end; }
.user-editor-dialog .user-field { display:flex; flex-direction:column; gap:5px; min-width:0; margin:0; color:#203e51; font-size:13px; font-weight:700; }
.user-editor-dialog .user-field input,.user-editor-dialog .user-field select { width:100%; min-width:0; height:39px; font-size:14px; padding:7px 10px; }
.user-editor-dialog .user-editor-active { display:flex; align-items:center; gap:9px; padding:0 3px 6px; margin:0; font-size:14px; font-weight:700; }
.user-editor-dialog .user-editor-active input { width:auto; margin:0; }
.user-editor-dialog .user-editor-access { margin-top:18px; padding:14px; background:#f7fbfd; border:1px solid #d4e7ee; border-radius:9px; }
.user-editor-dialog .user-editor-access h3 { font-size:15px; margin:0 0 10px; color:#126f96; }
.user-editor-dialog .user-location-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.user-editor-dialog .user-location-card { min-width:0; }
.user-editor-dialog .user-location-card label { display:flex!important; align-items:center; gap:5px; margin:0!important; white-space:nowrap; }
.user-editor-dialog .user-editor-access .sub { margin:10px 0 0; line-height:1.45; }
.user-editor-dialog .user-editor-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:12px 18px; border-top:1px solid #cce0e9; background:#fff; flex-shrink:0; }
.user-editor-dialog .user-editor-actions button { cursor:pointer; }
@media(max-width:650px) { dialog.user-editor-dialog {width:96vw;max-height:94vh;} .user-editor-dialog .user-editor-form{max-height:94vh;} .user-editor-dialog .user-editor-fields,.user-editor-dialog .user-location-grid{grid-template-columns:1fr;} .user-editor-dialog .user-location-card{grid-template-columns:minmax(0,1fr) auto auto;} }
@media(max-width:430px) { .user-editor-dialog .user-location-card{grid-template-columns:1fr 1fr;} .user-editor-dialog .user-location-card>div{grid-column:1/-1;} }

/* AMS 0.7.275 — The Products split-page inside Stock, Warehouse and link hosts. */
.split-page.cross-product-split {
  min-width:0;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
}
.split-page.cross-product-split.has-right {
  grid-template-columns:minmax(0,1fr) 7px minmax(320px,var(--ams-right-width,40vw));
}
.cross-product-split > .cross-product-main { min-width:0; }
.cross-product-split > .right-pane {
  position:sticky;top:82px;min-width:0;
  max-height:calc(100vh - 100px);
  grid-column:3;grid-row:1;align-self:start;
}
.cross-product-split > .right-resizer {
  grid-column:2;grid-row:1;
}
.cross-product-split .cross-product-main .inventory-stock-page,
.cross-product-split .cross-product-main .warehouse-rack-page {min-width:0;max-width:100%;}
.cross-product-split .right-pane .right-scroll {overflow:auto;}
@media(max-width:1100px) and (min-width:701px) {
  .split-page.cross-product-split.has-right {
    grid-template-columns:minmax(0,1fr) 7px minmax(320px,var(--ams-right-width,42vw));
  }
}
@media(max-width:900px) {
  .split-page.cross-product-split.has-right {grid-template-columns:minmax(0,1fr);}
  .cross-product-split > .right-resizer {display:none!important;}
  .cross-product-split > .right-pane {
    grid-column:1;grid-row:auto;
    position:relative;top:auto;max-height:none;
  }
}
