:root{--ink:#111;--muted:#737373;--line:#e5e5e5;--surface:#f7f7f5;--sidebar:238px;--display:'Barlow Condensed','Arial Narrow',sans-serif;--body:'DM Sans',Arial,sans-serif;--ease:cubic-bezier(.2,.75,.3,1)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:#fafaf9;font-family:var(--body);font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a,input,select,summary{touch-action:manipulation}
button,summary{cursor:pointer}
button{border:0;background:transparent}
svg{width:19px;height:19px;flex-shrink:0}
button:disabled{cursor:not-allowed;opacity:.45}
h1,h2,h3,h4,p{margin:0}
h1{font-family:var(--display);font-size:43px;line-height:1.05;letter-spacing:-.45px;font-weight:700}
h2{font-size:18px;font-weight:650;line-height:1.25}
h3{font-weight:600}
p{line-height:1.65}
strong{font-weight:600}
input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;min-height:44px;background:white;border:1px solid #ddd;border-radius:4px;padding:11px 12px;color:#111;outline:none;transition:border-color .2s,box-shadow .2s}
input:focus,select:focus,textarea:focus{border-color:#333!important;box-shadow:0 0 0 3px #1111110d}
input[type=checkbox]{accent-color:#111;width:17px;height:17px;cursor:pointer}
input[type=file]{max-width:100%;font-size:13px}
textarea{min-height:88px;resize:vertical}
label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:500}
label input,label select,label textarea{font-weight:400}
input[readonly]{background:#f5f5f5!important;color:#737373!important}
:focus-visible{outline:2px solid #b87c38;outline-offset:4px}
.muted,.table-sub{color:var(--muted)}
.mono,.tabular{font-variant-numeric:tabular-nums}
.mono{font-size:11px;letter-spacing:.2px}
.eyebrow,.mini-label{font-size:10px;letter-spacing:1.5px;font-weight:600}
.eyebrow{color:#737373;display:block;margin-bottom:10px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:12px 18px;border-radius:4px;font-size:11px;font-weight:600;letter-spacing:.3px;line-height:1.3;white-space:nowrap;transition:background .2s,transform .2s,box-shadow .2s}
.button svg{width:16px;height:16px}
.button:hover{transform:translateY(-1px)}
.button:active{transform:translateY(1px)}
.primary{background:#111;color:white;border:1px solid #111}
.primary:hover{background:#333;box-shadow:0 3px 10px #0001}
.secondary{background:white;border:1px solid #ddd;color:#222}
.secondary:hover{background:#f4f4f4;border-color:#b7b7b7}
.small{min-height:36px;padding:8px 12px;font-size:11px}
.full-width{width:100%}
.icon-button{width:40px;min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;color:#555;transition:background .2s,color .2s}
.icon-button:hover{background:#efefec;color:#111}
.text-link{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:500;min-height:40px}
.text-link svg{width:15px;height:15px;transition:transform .2s}
.text-link:hover svg{transform:translate(2px,-2px)}
.text-danger{color:#a63c33}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}
.skip-link{position:fixed;top:-100px;left:20px;padding:12px;background:#fff;z-index:1000}
.skip-link:focus{top:10px}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#111;color:#aaa;display:flex;flex-direction:column;z-index:50;transition:transform .25s var(--ease)}
.brand{height:125px;display:flex;flex-direction:column;align-items:flex-start;padding:17px 27px 14px;border-bottom:1px solid #ffffff12}
.brand img{width:165px;height:66px;object-fit:cover;filter:invert(1)}
.brand>span{font-size:8px;letter-spacing:2.3px;color:#888;margin-left:6px}
.live-dot{width:5px;height:5px;border-radius:100%;background:#749579;display:inline-block;flex-shrink:0}
.tiny-label{padding:1px 5px;border:1px solid #454545;border-radius:3px;font-size:8px;margin-left:auto;color:#999}
.nav-label{font-size:8px;font-weight:600;letter-spacing:1.4px;color:#686868;padding:10px 26px 13px}
.sidebar nav{padding:0 13px}
.nav-item{display:flex;align-items:center;gap:13px;min-height:47px;padding:12px 14px;font-size:12px;border-radius:4px;width:100%;text-align:left;margin-bottom:6px;transition:background .2s,color .2s}
.nav-item svg{width:18px;height:18px;color:#777}
.nav-item:hover{background:#ffffff0b;color:white}
.nav-item.active{background:#fff;color:#111}
.nav-item.active svg{color:#111}
.nav-item b{font-size:10px;background:#e9e9e9;padding:2px 6px;border-radius:3px;margin-left:auto}
.sidebar-bottom{margin-top:auto;padding:24px 13px 20px}
.studio-note{border:1px solid #ffffff14;border-radius:3px;margin:12px 8px 25px;padding:19px 16px;position:relative;overflow:hidden}
.studio-note:after{content:'↗';font-size:60px;position:absolute;right:7px;bottom:9px;color:#ffffff0d}
.studio-note .mini-label{font-size:7px;letter-spacing:1.1px;color:#777}
.studio-note p{font-family:var(--display);font-size:28px;color:#ddd;line-height:1.03;margin:15px 0;letter-spacing:.2px}
.studio-note>span:last-child{font-size:7px;letter-spacing:1.1px;color:#616161}
.sidebar-bottom .nav-item{font-size:10px;min-height:36px;padding:8px 13px}
.sidebar-credit{border-top:1px solid #ffffff12;margin:16px 11px 0;padding-top:20px;font-size:6.5px;letter-spacing:1.1px;color:#5e5e5e;line-height:2.2}
.sidebar-credit span{letter-spacing:.6px}
.app-shell{margin-left:var(--sidebar);transition:margin-left .25s var(--ease)}
.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:20px}
.breadcrumb{display:flex;align-items:center;gap:14px;font-size:11px;color:#999}
.breadcrumb svg{width:13px;height:13px;color:#aaa}
.breadcrumb strong{color:#333;font-weight:500}
.header-right{display:flex;gap:16px;align-items:center}
.global-search{position:relative;display:flex;align-items:center;width:234px}
.global-search svg{position:absolute;left:12px;width:15px;color:#8a8a8a}
.global-search input{min-height:35px!important;border:0!important;background:#f6f6f6!important;padding:9px 35px!important;font-size:10px!important;border-radius:4px!important}
.global-search kbd{position:absolute;right:10px;padding:0px 5px;border:1px solid #ddd;border-radius:2px;color:#888;font-size:9px}
.header-divider{width:1px;height:26px;background:#e7e7e7}
.notification-button{position:relative}
.notification-button>span{position:absolute;top:9px;right:10px;width:5px;height:5px;background:#b77845;border:1px solid #fff;border-radius:50%}
.profile-menu{position:relative}
.profile-menu summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px}
.profile-menu summary::-webkit-details-marker{display:none}
.profile-menu summary>svg{width:13px;color:#999}
.avatar{width:33px;height:33px;background:#e9e8e3;border:1px solid #d9d7cf;border-radius:100%;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:500}
.profile-name{font-size:10px;font-weight:600}
.profile-name small{display:block;font-size:9px;color:#8a8a8a;font-weight:400}
.dropdown{position:absolute;right:0;top:48px;min-width:185px;background:white;border:1px solid var(--line);padding:6px;box-shadow:0 10px 25px #0001;z-index:60;border-radius:5px;animation:fade-in .18s}
.dropdown a,.dropdown button{display:flex;gap:10px;align-items:center;padding:12px;width:100%;font-size:12px;text-align:left}
.dropdown a:hover,.dropdown button:hover{background:#f5f5f5}
.dropdown svg{width:16px}
.main-content{max-width:1580px;margin:auto;padding:23px 34px 0}
.page-kicker{display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:1.2px;color:#868686;margin-bottom:29px}
.page-kicker>span:first-child{display:flex;align-items:center;gap:7px}
.timezone{font-size:7px;border:1px solid #ddd;padding:2px 4px;margin-left:7px;border-radius:2px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 27px}
.page-heading .eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:9px}
.page-heading p{font-size:12px;color:#818181;margin-top:10px}
.page-heading>.button{margin-top:12px}
.heading-actions{display:flex;gap:10px}
.panel{background:white;border:1px solid var(--line);border-radius:5px;overflow:hidden}
.panel-heading{padding:21px 23px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.panel-heading h2{font-size:14px;display:flex;align-items:center;gap:8px}
.panel-heading p{font-size:10px;color:#999;margin-top:5px}
.panel-heading>svg{color:#999;width:17px}
.small-count,.attention-count{display:inline-flex;align-items:center;justify-content:center;font-family:var(--body);font-size:9px;background:#f0f0ed;border:1px solid #e7e7e4;border-radius:4px;min-width:21px;height:19px;color:#73736a}
.attention-count{background:#f7efe5;color:#997043;border-color:#f0e6d8}
.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);gap:21px;margin-bottom:30px;align-items:start}
.table-scroll{overflow:auto;width:100%}
.data-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:11px}
.data-table th{padding:11px 19px;background:#fafaf9;color:#969696;border-top:1px solid #efefef;border-bottom:1px solid #efefef;font-size:8px;letter-spacing:.7px;font-weight:500;position:sticky;top:0;z-index:1}
.data-table td{padding:15px 19px;border-bottom:1px solid #efefef}
.data-table tr:last-child td{border-bottom:0}
.data-table tbody tr{transition:background .15s}
.data-table tbody tr:hover{background:#fafaf9}
.data-table td:last-child{padding-right:18px}
.table-sub{font-size:9px;margin-top:4px;display:block;color:#8c8c8c}
.order-link{font-size:10px;font-weight:600;display:inline-flex;align-items:center;gap:7px;padding:5px 0}
.order-link:hover{text-decoration:underline}
.table-product{display:flex;align-items:center;gap:10px}
.table-product img{width:42px;height:42px;background:#f1f1ee;border-radius:3px;object-fit:contain}
.table-product strong{font-size:9px;font-weight:500;display:block}
.table-product span{font-size:8px;color:#999;display:block;margin-top:4px}
.product-placeholder{width:40px;height:40px;border-radius:3px;background:#f5f3ee;display:flex!important;align-items:center;justify-content:center}
.product-placeholder svg{width:19px}
.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid #e5e5e3;border-radius:4px;font-size:8px;line-height:1.1;white-space:nowrap;color:#72726b;background:#f7f7f5}
.badge>span{height:4px;width:4px;border-radius:50%;background:currentColor}
.badge.ready_to_pack,.badge.approved,.badge.completed,.badge.paid,.badge.valid{background:#f0f5ee;border-color:#e1eadc;color:#63845a}
.badge.in_production,.badge.in_progress,.badge.quality_check{background:#f7f1e8;border-color:#ede3d3;color:#a27b42}
.badge.needs-review,.badge.pending-inspection,.badge.review,.badge.on_hold,.badge.conflict{background:#fcf2e8;border-color:#f1e4d2;color:#a5763e}
.badge.cancelled,.badge.damaged,.badge.rejected{background:#fcf0ed;border-color:#f0dcd5;color:#a85a49}
.warning-dot{height:5px;width:5px;background:#b78b43;border-radius:50%}
.attention-item{display:flex;align-items:center;gap:11px;padding:17px 21px;border-top:1px solid #f0f0ee;transition:background .2s}
.attention-item:hover{background:#fafaf7}
.attention-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid #ebe5da;background:#f7f3ed;color:#a08255;border-radius:5px;flex-shrink:0}
.attention-icon.neutral{background:#f2f2ef;border-color:#e7e7e4;color:#818178}
.attention-icon svg{width:15px;height:15px}
.attention-item strong{font-size:10px;font-weight:500}
.attention-item p{font-size:8px;color:#aaa;margin-top:4px}
.attention-item>svg{width:12px;color:#b7b7b7;margin-left:auto}
.attention-foot{margin:0 21px;padding:17px 0;color:#aaa;font-size:8px;display:flex;align-items:center;gap:6px;border-top:1px dashed #e5e5e0}
.attention-foot svg{width:12px;height:12px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:25px 0 17px}
.section-heading .eyebrow{font-size:7px;letter-spacing:1.1px;margin-bottom:5px}
.section-heading h2{font-family:var(--display);font-size:26px;letter-spacing:.2px}
.page-footer{margin-top:35px;min-height:65px;border-top:1px solid #e3e3e1;display:flex;justify-content:space-between;align-items:center;gap:15px;color:#92928d;font-size:7px;letter-spacing:.7px}
.footer-slash{margin:0 10px;color:#b7b7b1}
.page-footer>span:last-child{font-size:8px;letter-spacing:0}
.demo-dot{display:inline-block;width:4px;height:4px;background:#ad976e;border-radius:50%;margin-right:5px}
.tabs{display:flex;align-items:center;gap:23px;padding:0 23px;overflow:auto;border-bottom:1px solid var(--line);white-space:nowrap;min-height:59px}
.tabs a{padding:20px 0 17px;font-size:11px;color:#898989;border-bottom:2px solid transparent;display:flex;align-items:center;gap:7px;transition:color .2s}
.tabs a:hover{color:#111}
.tabs a.selected{color:#111;border-bottom-color:#111;font-weight:600}
.tabs a>span{font-size:9px;padding:1px 5px;background:#efefed;border-radius:3px;color:#777}
.table-toolbar{display:flex;align-items:center;gap:10px;padding:18px 22px;border-bottom:1px solid #efefef;flex-wrap:wrap}
.search-field{position:relative;display:flex;align-items:center;flex:1;min-width:180px}
.search-field svg{position:absolute;left:12px;color:#999;width:16px}
.search-field input{padding-left:36px!important;font-size:11px!important}
.table-toolbar>input[type=date]{width:145px;font-size:11px}
.table-toolbar>select{width:auto;max-width:155px;font-size:11px}
.toolbar-note{font-size:10px;color:#888;margin-left:auto}
.table-footer{display:flex;justify-content:space-between;gap:12px;padding:17px 23px;border-top:1px solid #eee;font-size:10px;color:#999}
.checkbox-cell{width:35px;padding-right:0!important}
.bulk-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 23px;background:#eceee7;font-size:12px}
.bulk-bar[hidden]{display:none}
.drawer{border:0;padding:0;position:fixed;margin:0 0 0 auto;inset:0 0 0 auto;width:650px;max-width:100%;height:100dvh;max-height:100dvh;background:#fff;box-shadow:-10px 0 40px #0001;animation:drawer-in .25s var(--ease);outline:none}
.drawer::backdrop,.modal::backdrop{background:#1117;backdrop-filter:blur(2px);animation:fade-in .2s}
.drawer-heading{display:flex;justify-content:space-between;align-items:center;padding:26px 29px;border-bottom:1px solid #e5e5e5;position:sticky;top:0;background:#fff;z-index:2}
.drawer-heading h2{font-family:var(--display);font-size:31px}
.drawer-heading .eyebrow{font-size:8px;margin-bottom:6px}
.drawer-body{padding:25px 29px}
.detail-section{padding:23px 0;border-bottom:1px solid #ececec}
.detail-section h3{font-size:10px;letter-spacing:1px;color:#888;margin-bottom:16px}
.detail-section h4{font-size:14px}
.detail-section p{font-size:12px;color:#888;margin:6px 0}
.detail-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px;color:#777;font-size:10px}
.detail-meta>span{display:flex;align-items:center;gap:10px}
.detail-product{display:flex;align-items:center;gap:16px;margin-bottom:15px}
.detail-product img{background:#f2f2f0;border-radius:3px;width:72px;height:72px;object-fit:contain}
.detail-product h4{font-size:12px}
.detail-product p{font-size:10px;margin:5px 0}
.detail-product>strong{margin-left:auto;font-size:12px}
.allocation-table{width:100%;font-size:11px;text-align:left;border-collapse:collapse}
.allocation-table th{font-size:9px;text-transform:uppercase;color:#999;background:#f8f8f6;padding:12px 8px;white-space:nowrap}
.allocation-table td{padding:14px 8px;border-bottom:1px solid #eee}
.allocation-table td:first-child{font-size:10px}
.shortage{color:#aa7a40;font-weight:600}
.helper{font-size:11px!important;line-height:1.7;color:#888!important;margin:14px 0!important}
.drawer-body>.full-width,.drawer-body>form{margin-top:22px}
.order-note{padding:12px;background:#f7f7f4;border-radius:4px;margin-bottom:10px}
.order-note p{color:#444}
.order-note small{font-size:9px;color:#999}
.detail-section form textarea{margin-bottom:10px}
.drawer-actions{display:flex;justify-content:space-between;gap:12px;padding-top:22px}
.drawer-loading{padding:80px 30px;display:flex;align-items:center;justify-content:center;gap:12px;color:#777}
.loading-spinner{border:2px solid #ddd;border-top-color:#111;border-radius:50%;width:18px;height:18px;animation:spin .7s linear infinite}
.dialog-open{overflow:hidden}
.modal{border:1px solid #ddd;border-radius:7px;padding:29px;width:510px;max-width:calc(100% - 28px);max-height:90dvh;box-shadow:0 20px 80px #0002;animation:modal-in .22s var(--ease)}
.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.modal-heading h2{font-family:var(--display);font-size:28px}
.form-stack{display:flex;flex-direction:column;gap:18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.checklist-item{display:flex;flex-direction:row;gap:12px;align-items:center;border:1px solid #e5e5e5;padding:14px;font-size:12px;margin-bottom:14px}
.checklist-item input{flex-shrink:0}
.checklist-item small{display:block;font-size:10px;color:#888;margin-top:5px}
.inventory-stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:#fff;margin-bottom:26px;border-radius:4px}
.inventory-stats>div{padding:23px;border-right:1px solid var(--line)}
.inventory-stats>div:last-child{border:0}
.inventory-stats .eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:12px}
.inventory-stats strong{display:block;font-size:31px;line-height:1;margin-bottom:8px;font-variant-numeric:tabular-nums;font-weight:500}
.inventory-stats small{font-size:10px;color:#999}
.size-tag{display:inline-block;padding:3px 8px;border:1px solid #e7e7e7;border-radius:3px;font-size:10px;background:#fafafa}
.stock-number{font-size:14px}
.low-stock{color:#ab7c42}
.production-qty{font-size:17px}
.batch-progress{height:4px;background:#efefec;margin:23px 0 10px;overflow:hidden;border-radius:5px}
.batch-progress>span{display:block;height:100%;background:#777e68}
.import-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:35px;align-items:start}
.import-panel{padding:27px}
.import-stepper{display:flex;align-items:center;justify-content:space-between;margin:0 4px 30px;gap:14px;color:#aaa;font-size:11px}
.import-stepper>span{display:flex;gap:8px;align-items:center;white-space:nowrap}
.import-stepper b{font-size:9px;font-weight:400;width:25px;height:25px;border-radius:50%;background:#efefec;display:flex;align-items:center;justify-content:center}
.import-stepper .active{color:#111}
.import-stepper .active b{background:#111;color:white}
.import-stepper>div{height:1px;background:#e9e9e4;flex:1}
.upload-zone{min-height:280px;border:1px dashed #c9c9c0;border-radius:5px;background:#fafaf7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;padding:30px 16px;text-align:center;transition:border .2s,background .2s}
.upload-zone>svg{width:28px;height:28px;color:#777;margin-bottom:7px}
.upload-zone h2{font-family:var(--display);font-size:25px}
.upload-zone p{font-size:11px;color:#999}
.file-label{position:relative;overflow:hidden;flex-direction:row}
.file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.file-label:focus-within{outline:2px solid #9b7746;outline-offset:3px}
.file-name{font-size:9px;color:#999;overflow-wrap:anywhere}
.upload-zone.dragging,.upload-zone.has-file{border-color:#657958;background:#f2f5ed}
.mapping-details{margin:23px 0 10px}
.mapping-details summary{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#777;padding:12px 0}
.mapping-details summary svg{width:14px}
.mapping-details .form-grid{padding:13px 0}
.import-submit{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:16px}
.import-submit>span{display:flex;gap:6px;align-items:center;color:#999;font-size:8px}
.import-submit>span svg{width:13px}
.import-guide{padding:24px 10px}
.import-guide .eyebrow{font-size:8px}
.import-guide h2{font-family:var(--display);font-size:37px;line-height:1.04;margin:19px 0}
.import-guide>p{font-size:12px;color:#888;max-width:290px}
.import-guide ol{padding-left:25px;margin:28px 0;font-size:11px;color:#aaa}
.import-guide li{margin:20px 0;padding-left:9px}
.import-guide li strong{display:block;color:#444;font-size:11px;font-weight:500}
.import-guide li span{display:block;font-size:10px;margin-top:5px;color:#999}
.guide-note{display:flex;align-items:flex-start;gap:13px;padding:17px;background:#f1f1eb;border:1px solid #e3e3da;border-radius:4px}
.guide-note>svg{width:17px;color:#999;flex-shrink:0}
.guide-note p{font-size:10px;color:#8b8b7b;line-height:1.75}
.import-review{margin-top:27px}
.review-summary{display:flex;padding:20px 23px;gap:35px;border-top:1px solid #eee;border-bottom:1px solid #eee}
.review-summary>span{font-size:10px;color:#999}
.review-summary b{font-size:24px;display:block;font-weight:500;color:#111;margin-bottom:3px}
.error-summary{padding:20px 24px;background:#fcf7f0;font-size:11px;color:#936b3e}
.error-summary summary{font-weight:600}
.error-summary ul{padding-left:20px;max-height:250px;overflow:auto;line-height:2}
.inline-error{background:#fcf1eb;color:#a15b42;border:1px solid #eedcd2;border-radius:4px;padding:13px 15px;font-size:12px;margin:15px 0}
.inline-form{display:flex;gap:10px;align-items:end}
.inline-form label{flex:1}
.empty-state{padding:45px 23px;text-align:center;white-space:normal;color:#aaa;display:flex;flex-direction:column;align-items:center;gap:12px}
.empty-state>svg{width:29px;height:29px;color:#b4b4a8}
.empty-state h3{font-size:16px;color:#555;font-weight:500}
.empty-state p{font-size:12px}
.toast{display:flex;align-items:center;gap:12px;padding:13px 17px;border:1px solid #dce4d4;background:#f0f4ec;color:#5f7550;border-radius:4px;margin-bottom:22px;animation:modal-in .2s;font-size:12px}
.toast>svg{width:17px}
.toast .icon-button{margin-left:auto;height:26px;width:26px;min-width:26px}
.toast-error{background:#fcf4ed;color:#9e6543;border-color:#efded0}
.client-toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:15px 24px;background:#111;color:white;border-radius:4px;z-index:1000;font-size:12px;box-shadow:0 4px 24px #0003;max-width:90%}
.client-toast[hidden]{display:none}
.settings-content{padding:30px}
.settings-intro{margin-bottom:23px}
.settings-intro h2{font-size:23px;margin-bottom:7px}
.settings-intro p{font-size:12px}
.constrained{max-width:640px}
.constrained>.button{align-self:flex-start}
.form-title{font-size:16px;margin:30px 0 20px}
.settings-content .table-scroll{margin-top:27px}
.catalog-mini-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:15px}
.catalog-mini-grid a{display:flex;flex-direction:column;gap:7px;font-size:10px}
.catalog-mini-grid img{width:100%;aspect-ratio:1;background:#f1f1ed;object-fit:contain;border-radius:3px;transition:transform .2s}
.catalog-mini-grid a:hover img{transform:translateY(-4px)}
.catalog-mini-grid strong{font-size:9px}
.catalog-mini-grid span{font-size:9px;color:#999}
.location-list{margin:24px 0;display:flex;flex-wrap:wrap;gap:15px}
.location-list>div{display:flex;align-items:center;gap:12px;background:#f6f6f2;border:1px solid #e6e6df;padding:20px;border-radius:4px}
.location-list svg{color:#888}
.configuration-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:26px}
.configuration-grid article{border:1px solid #e5e5e1;background:#fafaf7;padding:23px}
.configuration-grid h3{margin-bottom:14px;font-size:14px}
.configuration-grid p{font-size:12px;color:#555}
.configuration-grid small{display:block;font-size:10px;color:#999;margin-top:14px;line-height:1.7}
.integration-note{margin-top:30px;max-width:650px}
.integration-note strong{font-size:12px}
.integration-note p{margin-top:7px}
.settings-content>.muted{margin:15px 0 23px}
.report-layout{display:grid;grid-template-columns:2fr 1fr;gap:40px;padding:26px}
.report-chart{height:300px;min-width:0;padding-bottom:35px}
.report-chart h2{margin-bottom:15px}
.report-statuses{border-left:1px solid #eee;padding-left:30px}
.report-statuses h2{margin-bottom:20px}
.report-statuses>div{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;padding:13px 0}
.report-statuses strong{font-size:17px}
.report-downloads{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:25px 0}
.report-download{padding:25px;transition:transform .2s,border .2s}
.report-download:hover{transform:translateY(-3px);border-color:#999}
.report-download>svg{margin-bottom:25px;color:#777}
.report-download h3{font-size:15px}
.report-download p{font-size:11px;color:#999;margin:10px 0 25px}
.report-download>span{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:.6px}
.padded{padding:25px}
.padded h2{margin-bottom:15px}
.padded .data-table{margin-top:20px}
.login-body{background:#fff}
.login-layout{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr}
.login-editorial{min-height:100dvh;background:#e9e9e1;padding:36px 54px;position:relative;overflow:hidden}
.login-wordmark{font-family:Georgia,serif;font-size:31px;letter-spacing:-1.8px}
.login-wordmark sup{font-family:Arial;font-size:9px;letter-spacing:0;vertical-align:top;display:inline-block;margin-top:9px}
.login-story{position:relative;z-index:2;margin-top:90px}
.login-story .mini-label{font-size:9px;color:#797b6c}
.login-story h1{font-size:95px;font-weight:700;line-height:.9;letter-spacing:-1.5px;margin-top:26px}
.login-story p{font-size:12px;color:#797b6c;margin-top:25px}
.login-product{position:absolute;width:460px;max-width:75%;right:-105px;bottom:120px;transform:rotate(-13deg);filter:drop-shadow(0 25px 20px #0002);z-index:1;animation:product-in .6s var(--ease)}
.login-bottom{position:absolute;bottom:32px;font-size:8px;letter-spacing:1.6px;color:#8e9082}
.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px}
.login-form{width:100%;max-width:365px;animation:rise-in .4s var(--ease)}
.login-form>.eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:24px}
.login-form h2{font-family:var(--display);font-size:43px;font-weight:700;margin-bottom:10px}
.login-form>.muted{font-size:12px;color:#999}
.login-form form{display:flex;flex-direction:column;gap:22px;margin-top:36px}
.login-form form>.button{margin-top:6px;justify-content:space-between}
.login-form label{font-size:11px}
.login-form input{font-size:12px!important;padding:14px!important;min-height:49px!important}
.login-help{font-size:10px;color:#aaa;line-height:1.9;margin-top:27px}
.login-help code{font-size:9px;color:#888}
.login-secure{font-size:7px;letter-spacing:1.4px;color:#bbb;border-top:1px solid #eee;margin-top:38px;padding-top:23px}
.login-secure span{margin:0 12px}
.menu-toggle{display:none}
.nav-scrim{display:none}
.nav-collapsed{--sidebar:76px}
.nav-collapsed .brand{height:86px;padding:20px 10px;align-items:center}
.nav-collapsed .brand img{width:54px;height:40px}
.nav-collapsed .brand>span,.nav-collapsed .nav-label,.nav-collapsed .nav-item>span,.nav-collapsed .nav-item>b,.nav-collapsed .studio-note,.nav-collapsed .sidebar-credit{display:none}
.nav-collapsed .sidebar nav{margin-top:20px;padding:0 11px}
.nav-collapsed .nav-item{padding:14px;justify-content:center}
.nav-collapsed .sidebar-bottom{padding:10px}
.nav-collapsed .sidebar-bottom .nav-item{padding:12px}
.nav-collapsed .collapse-nav svg{transform:rotate(180deg)}
.is-loading{opacity:.6;pointer-events:none}
.is-loading:after{content:'';width:12px;height:12px;border:1px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .6s linear infinite}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes rise-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes drawer-in{from{opacity:.6;transform:translateX(45px)}to{opacity:1;transform:translateX(0)}}
@keyframes modal-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes product-in{from{opacity:0;transform:translateY(20px) rotate(-13deg)}to{opacity:1;transform:translateY(0) rotate(-13deg)}}
@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1600px){
.main-content{padding:30px 48px 0}
.topbar{padding:0 48px}
.panel-heading h2{font-size:16px}
.data-table{font-size:12px}
.data-table th{font-size:9px}
.data-table td{padding:18px 22px}
.table-product strong,.order-link{font-size:11px}
.table-sub,.table-product span{font-size:10px}
.badge{font-size:9px}
.attention-item{padding:21px}
.attention-item strong{font-size:12px}
.attention-item p{font-size:10px}
}
@media(max-width:1200px){
:root{--sidebar:210px}
.topbar{padding:0 25px}
.main-content{padding:22px 25px 0}
.brand{padding-left:23px}
.brand img{width:151px}
.dashboard-columns{grid-template-columns:minmax(0,1fr)}
.attention-list{display:grid;grid-template-columns:1fr 1fr}
.attention-item{border:1px solid #f1f1ee}
.attention-foot{padding:12px 0}
.global-search{width:190px}
.page-heading h1{font-size:36px}
.heading-actions{flex-wrap:wrap;justify-content:end}
.catalog-mini-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1000px){
:root{--sidebar:0px}
.sidebar{width:238px;transform:translateX(-100%)}
.nav-open .sidebar{transform:translateX(0)}
.nav-open .nav-scrim{display:block;position:fixed;inset:0;background:#0006;z-index:40;animation:fade-in .2s}
.menu-toggle{display:inline-flex}
.breadcrumb .menu-toggle svg{width:20px;height:20px;color:#444}
.nav-collapsed{--sidebar:0px}
.nav-collapsed .sidebar{width:76px}
.collapse-nav{display:none!important}
.login-story h1{font-size:78px}
.login-editorial{padding:34px}
.login-form-wrap{padding:35px}
.login-product{width:350px;bottom:150px;right:-85px}
.page-heading h1{font-size:39px}
}
@media(max-width:700px){
body{font-size:14px}
.topbar{height:66px;padding:0 15px;gap:10px}
.breadcrumb{gap:6px}
.breadcrumb>span,.breadcrumb>svg{display:none}
.global-search{display:none}
.profile-name{display:none}
.header-right{gap:6px}
.header-divider{margin:0 4px}
.profile-menu summary{gap:6px}
.main-content{padding:21px 17px 0}
.page-kicker{font-size:7px;letter-spacing:.5px;margin-bottom:25px}
.page-heading{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:23px}
.page-heading h1{font-size:37px;letter-spacing:-.2px}
.page-heading p{font-size:12px;line-height:1.65}
.page-heading>.button{margin-top:0}
.page-heading .eyebrow{font-size:8px}
.button{min-height:44px}
.dashboard-columns{gap:20px}
.attention-list{grid-template-columns:1fr}
.panel-heading{padding:19px 17px}
.panel-heading h2{font-size:14px}
.panel-heading p{font-size:10px}
.attention-item{padding:17px}
.attention-item strong{font-size:12px}
.attention-item p{font-size:10px}
.attention-foot{font-size:9px}
.data-table th{padding:12px 15px;font-size:9px}
.data-table td{padding:14px 15px;font-size:12px}
.table-product strong,.order-link{font-size:11px}
.table-product span,.table-sub{font-size:10px}
.badge{font-size:9px}
.section-heading h2{font-size:24px}
.section-heading .eyebrow{font-size:6px}
.section-heading .text-link{font-size:9px}
.page-footer{flex-direction:column;align-items:start;justify-content:center;gap:8px;padding:20px 0;font-size:6px}
.table-toolbar{padding:15px;gap:9px}
.table-toolbar>input[type=date]{width:calc(50% - 5px)}
.table-toolbar>select{max-width:none;flex:1}
.search-field{min-width:100%}
.tabs{padding:0 16px;gap:21px}
.tabs a{font-size:12px}
.table-footer{font-size:9px;padding:15px;flex-wrap:wrap}
.inventory-stats{grid-template-columns:1fr 1fr}
.inventory-stats>div{padding:19px;border-bottom:1px solid var(--line)}
.inventory-stats>div:nth-child(2){border-right:0}
.inventory-stats>div:nth-child(3){border-bottom:0}
.inventory-stats .eyebrow{font-size:7px}
.inventory-stats small{font-size:9px}
.inventory-stats strong{font-size:29px}
.drawer-heading{padding:19px}
.drawer-body{padding:20px}
.detail-product{gap:10px}
.detail-product img{width:53px;height:53px}
.detail-product>strong{font-size:11px}
.allocation-table{font-size:10px}
.allocation-table th{font-size:7px;padding:10px 4px}
.allocation-table td{padding:12px 4px;font-size:10px}
.detail-meta{align-items:start;flex-direction:column}
.modal{padding:22px;max-width:calc(100% - 24px)}
.form-grid{grid-template-columns:1fr;gap:16px}
input:not([type=checkbox]):not([type=file]),textarea,select{font-size:16px!important}
.form-stack label{font-size:12px}
.import-layout{grid-template-columns:1fr;gap:15px}
.import-panel{padding:20px 16px}
.import-stepper{font-size:10px;gap:8px}
.upload-zone h2{font-size:23px}
.upload-zone p{font-size:10px}
.import-submit{flex-direction:column;gap:15px}
.import-submit>.button{width:100%}
.import-guide{padding:20px 8px}
.import-guide h2{font-size:34px}
.review-summary{gap:18px;padding:20px 16px}
.review-summary>span{font-size:9px}
.import-review .panel-heading{flex-direction:column;align-items:start}
.settings-content{padding:20px}
.settings-content h2{font-size:21px}
.catalog-mini-grid{grid-template-columns:repeat(2,1fr)}
.configuration-grid,.report-layout{grid-template-columns:1fr}
.report-statuses{border-left:0;border-top:1px solid #eee;padding:23px 0 0}
.report-downloads{grid-template-columns:1fr}
.report-layout{padding:20px;gap:25px}
.report-chart{height:260px}
.login-layout{grid-template-columns:1fr}
.login-editorial{display:none}
.login-form-wrap{min-height:100dvh;padding:35px 26px}
.login-form h2{font-size:44px}
.login-form input{font-size:16px!important}
.heading-actions{justify-content:start}
.inline-form{align-items:stretch;flex-direction:column}
.toolbar-note{font-size:10px;margin-left:0}
.toast{font-size:12px}
.icon-button{min-width:44px;width:44px;height:44px}
}
@media(prefers-reduced-motion:reduce){
*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.button:hover{transform:none!important}
}
/* ── Flow & motion ───────────────────────────────────────────── */
:root{--ease-out:cubic-bezier(.16,1,.3,1);--spring:cubic-bezier(.34,1.45,.64,1);--shelf:#6f917d;--rts:#b28461;--made:#8f9478;--make:#d3a35f;--amber:#e0b36a}
.main-content>*{animation:rise-in .35s var(--ease-out) backwards}
.main-content>*:nth-child(2){animation-delay:.02s}
.main-content>*:nth-child(3){animation-delay:.04s}
.main-content>*:nth-child(4){animation-delay:.06s}
.main-content>*:nth-child(5){animation-delay:.08s}
.main-content>*:nth-child(6){animation-delay:.1s}
.main-content>*:nth-child(n+7){animation-delay:.12s}
.stagger>*{animation:rise-in .4s var(--ease-out) backwards;animation-delay:calc(min(var(--i,0),8) * 28ms + .04s)}
@keyframes rise-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes grow{from{transform:scaleX(0)}}
@keyframes pop{0%{transform:scale(.55)}100%{transform:scale(1)}}
@keyframes pulse{0%{box-shadow:0 0 0 0 #11111133}70%{box-shadow:0 0 0 9px #11111100}100%{box-shadow:0 0 0 0 #11111100}}
@keyframes pulse-amber{0%{box-shadow:0 0 0 0 #e0b36a99}70%{box-shadow:0 0 0 7px #e0b36a00}100%{box-shadow:0 0 0 0 #e0b36a00}}
@keyframes glow{50%{box-shadow:0 0 0 4px #b2846126}}
@keyframes glow-red{50%{box-shadow:0 0 0 4px #a85a4922}}
@keyframes flow-dash{to{background-position:10px 0}}
@keyframes stripes{to{background-position:11.3px 0}}
@keyframes nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(3px)}}
@keyframes drawer-in{from{opacity:.3;transform:translateX(70px)}to{opacity:1;transform:none}}
@keyframes drawer-out{to{opacity:0;transform:translateX(60px)}}
@keyframes modal-out{to{opacity:0;transform:translateY(8px) scale(.97)}}
@keyframes fade-out{to{opacity:0}}
@keyframes toast-in{from{opacity:0;transform:translateY(-14px) scale(.98)}}
@keyframes toast-timer{to{transform:scaleX(0)}}
@keyframes toast-out{to{opacity:0;transform:translateY(-10px)}}
@keyframes bar-in{from{opacity:0;transform:translateY(24px) scale(.95)}}
@keyframes flash-target{0%,35%{box-shadow:0 0 0 3px var(--amber),0 14px 30px -12px #e0b36aaa;transform:translateY(-3px)}100%{box-shadow:0 0 0 0 transparent;transform:none}}
.flash-target{animation:flash-target 2s var(--ease-out)}

/* Buttons, tabs, toasts */
.button svg{transition:transform .25s var(--ease-out)}
.button.primary:hover svg:last-child{transform:translateX(3px)}
.button.ghost{background:transparent;color:inherit;border:1px solid #ffffff38}
.button.ghost:hover{background:#ffffff14}
.tabs a{position:relative}
.tabs a.selected{border-bottom-color:transparent}
.tabs a::after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:2px;background:#d6d6ce;transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease-out)}
.tabs a:hover::after{transform:scaleX(1)}
.tabs a.selected::after{background:#111;transform:scaleX(1);animation:grow .45s var(--ease-out)}
.tabs a>span.hot{background:#111;color:#fff}
.tabs a svg{width:13px;height:13px}
.toast{position:relative;overflow:hidden;animation:toast-in .55s var(--spring)}
.toast[data-autohide]::after{content:'';position:absolute;left:0;bottom:0;height:2px;width:100%;background:currentColor;opacity:.3;transform-origin:left;animation:toast-timer 6s linear forwards}
.toast:hover::after{animation-play-state:paused}
.toast.leaving{animation:toast-out .35s var(--ease-out) forwards}
.notification-button>span{top:3px;right:3px;width:auto;height:16px;min-width:16px;padding:0 4px;border-radius:99px;font-size:9px;font-weight:600;color:#fff;display:flex;align-items:center;justify-content:center;animation:pop .5s var(--spring) .3s backwards}

/* Workspace switch + production theme */
.workspace-switch{position:relative;display:grid;grid-template-columns:1fr 1fr;margin:22px 16px 10px;padding:4px;border-radius:10px;background:#ffffff0b;border:1px solid #ffffff14}
.workspace-switch a{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 6px;font-size:11px;font-weight:600;color:#9a9a9a;border-radius:7px;transition:color .3s}
.workspace-switch a svg{width:15px;height:15px}
.workspace-switch a.on{color:#111}
.workspace-switch a:not(.on):hover{color:#fff}
.switch-thumb{position:absolute;z-index:0;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:7px;background:#fff;box-shadow:0 2px 8px #0004}
.ws-production .switch-thumb{left:50%;background:var(--amber)}
.switch-dot{position:absolute;top:6px;right:8px;width:6px;height:6px;border-radius:50%;background:var(--amber);animation:pulse-amber 2s infinite}
.nav-label{padding-top:16px}
.nav-item{position:relative}
.nav-item svg{transition:transform .3s var(--spring)}
.nav-item:hover svg{transform:scale(1.12)}
.nav-item b{background:#ffffff1c;color:#fff;border-radius:99px;min-width:20px;text-align:center;font-weight:600}
.nav-item.active b{background:#111;color:#fff}
.ws-production{background:#f6f4ee}
.ws-production .sidebar{background:#1a1813}
.ws-production .nav-item.active{background:var(--amber);color:#1a1813}
.ws-production .nav-item.active svg{color:#1a1813}
.ws-production .nav-item.active b{background:#1a1813;color:var(--amber)}
.ws-production .live-dot{background:var(--amber);animation:pulse-amber 2s infinite}
.ws-production .brand>span{color:var(--amber)}
.ws-production .topbar{background:#fffdf8}
.ws-production .panel,.ws-production .inventory-stats{background:#fffefb}
.nav-collapsed .workspace-switch{grid-template-columns:1fr;margin:14px 10px}
.nav-collapsed .workspace-switch span:not(.switch-thumb){display:none}
.nav-collapsed .switch-thumb{width:calc(100% - 8px);bottom:auto;height:calc(50% - 4px)}
.nav-collapsed.ws-production .switch-thumb{left:4px;top:50%}

/* Home: pipeline, stock route, next steps */
.pipeline{display:flex;align-items:stretch;margin-bottom:14px}
.stage{flex:1;min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px 16px 14px;display:flex;flex-direction:column;gap:2px;transition:transform .3s var(--ease-out),box-shadow .3s,border-color .2s}
.stage:hover{transform:translateY(-4px);box-shadow:0 14px 28px -16px #0004;border-color:#cfcfc6}
.stage-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.stage-icon{width:32px;height:32px;border-radius:9px;background:#f3f2ed;display:inline-flex;align-items:center;justify-content:center;color:#6b6b63;transition:transform .35s var(--spring),background .2s,color .2s;flex-shrink:0}
.stage-icon svg{width:16px;height:16px}
.stage:hover .stage-icon{transform:scale(1.1) rotate(-6deg)}
.stage-step{font-size:8px;letter-spacing:1.3px;color:#a3a39a;font-weight:600}
.stage>strong{font-size:36px;line-height:1;font-weight:500;letter-spacing:-1.6px;font-variant-numeric:tabular-nums}
.stage-name{font-size:12px;font-weight:600;margin-top:8px}
.stage small{font-size:10px;color:#999}
.stage.has-work .stage-icon{background:#111;color:#fff}
.flow-link{flex:0 0 30px;display:flex;align-items:center;justify-content:center;position:relative;color:#c7c7be}
.flow-link::before{content:'';position:absolute;left:3px;right:3px;top:50%;height:2px;margin-top:-1px;background:repeating-linear-gradient(90deg,#d8d8cf 0 5px,transparent 5px 10px);background-size:10px 2px}
.flow-link svg{position:relative;width:16px;height:16px;padding:2px;background:#fafaf9;border-radius:50%}
.flow-link.live{color:#111}
.flow-link.live::before{background-image:repeating-linear-gradient(90deg,#111 0 5px,transparent 5px 10px);animation:flow-dash .7s linear infinite}
.stock-route{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 20px;border:1px dashed #d9d8cf;border-radius:8px;background:#f5f4ef;margin-bottom:24px}
.stock-route .eyebrow{margin-bottom:4px}
.stock-route p{font-size:11px;color:#888}
.stock-route ol{display:flex;align-items:center;gap:14px;list-style:none;margin:0;padding:0}
.stock-route li{display:flex;align-items:center;gap:10px}
.stock-route b{display:block;font-size:11px;font-weight:600}
.stock-route small{font-size:10px;color:#8a8a82}
.route-icon{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;transition:transform .35s var(--spring)}
.route-icon svg{width:16px;height:16px}
.stock-route li:hover .route-icon{transform:scale(1.12)}
.route-icon.shelf{background:var(--shelf)}
.route-icon.rts{background:var(--rts)}
.route-icon.make{background:var(--make)}
.route-arrow{color:#bdbdb3}
.route-arrow svg{width:15px;animation:nudge 1.6s var(--ease-out) infinite}
.attention-item{position:relative}
.attention-item strong{font-size:12px}
.attention-item p{font-size:10px;color:#999}
.attention-cta{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:600;padding:6px 11px;border-radius:99px;background:#f3f2ee;color:#444;white-space:nowrap;transition:background .2s,color .2s,gap .25s var(--ease-out)}
.attention-cta svg{width:12px;height:12px}
.attention-item:hover .attention-cta{background:#111;color:#fff;gap:9px}
.attention-icon.primary{background:#111;border-color:#111;color:#fff}
.attention-icon.success{background:#eef4ec;border-color:#dce8d7;color:#5d7f53}
.attention-icon.match{background:#f4ece4;border-color:#e9dccd;color:#9c6a43;animation:glow 2.4s ease-in-out infinite}
.attention-icon.danger{background:#fbeeea;border-color:#f1d9d2;color:#a85a49}
.match-row,.low-row{display:flex;align-items:center;gap:12px;padding:13px 21px;border-top:1px solid #f0f0ee;transition:background .2s}
.match-row:hover,.low-row:hover{background:#fafaf7}
.match-row img,.low-row img{width:44px;height:44px;border-radius:6px;background:#f1f1ee;object-fit:contain;flex-shrink:0}
.low-row img{width:36px;height:36px}
.match-row>div,.low-row>div{flex:1;min-width:0}
.match-row strong,.low-row strong{font-size:12px;display:block;font-weight:500}
.match-row>div>span,.low-row>div>span{display:block;font-size:10px;color:#999;margin-top:2px}
.match-row .match-orders{display:flex;align-items:center;gap:4px;color:#9c6a43;font-weight:500}
.match-orders svg{width:12px;height:12px}
.low-row>b{font-size:10px;padding:3px 9px;border-radius:99px;background:#f7efe5;color:#9c6a3e;font-weight:600;white-space:nowrap}
.low-row>b.out{background:#fbeeea;color:#a85a49}
.empty-state.small{padding:28px 20px;gap:8px}
.empty-state.small p{font-size:11px}
.dashboard-columns+.dashboard-columns{margin-top:-8px}

/* Orders: stock check, stock bars, bulk bar */
.check-summary{display:flex;align-items:center;gap:18px;padding:16px 23px;background:linear-gradient(90deg,#f6f5f0,#fcfcfa);border-bottom:1px solid #efefef;flex-wrap:wrap}
.check-copy{margin-right:auto}
.check-copy .eyebrow{margin-bottom:3px}
.check-copy p{font-size:11px;color:#888}
.check-chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:99px;font-size:11px;border:1px solid;background:#fff}
.chip svg{width:14px;height:14px}
.chip b{font-weight:700;font-variant-numeric:tabular-nums}
.chip.shelf{color:#4f7059;border-color:#d8e5da;background:#f1f6f1}
.chip.rts{color:#94613b;border-color:#ecdccb;background:#f8f1ea}
.chip.make{color:#93672c;border-color:#efdfc4;background:#faf3e7}
.stock-bar{display:flex;gap:2px;height:6px;width:130px;border-radius:99px;overflow:hidden;background:#efefec;margin-bottom:6px}
.stock-bar.large{width:100%;height:10px;margin:12px 0 8px}
.seg{display:block;min-width:4px;transform-origin:left;animation:grow .6s var(--ease-out) .05s backwards}
.seg.shelf{background:var(--shelf)}
.seg.rts{background:var(--rts)}
.seg.made{background:var(--made)}
.seg.make{background:repeating-linear-gradient(-45deg,var(--make) 0 4px,#e9c896 4px 8px);background-size:11.3px 11.3px;animation:grow .6s var(--ease-out) .05s backwards,stripes 1.2s linear infinite}
.fill-note{display:flex;align-items:center;gap:5px;font-size:10px;color:#777;white-space:nowrap}
.fill-note svg{width:13px;height:13px}
.fill-note.ok{color:#5d7f53}
.fill-note.make{color:#9a6e33}
.fill-note.warn{color:#a5763e}
.fill-chip{display:inline-flex;align-items:center;gap:4px;margin-top:6px;padding:3px 9px;border-radius:99px;background:#f8f1ea;color:#94613b;font-size:10px;font-weight:600;border:1px solid #ecdccb;animation:glow 2.4s ease-in-out infinite}
.fill-chip svg{width:12px;height:12px}
.progress-line{height:6px;width:130px;background:#efefec;border-radius:99px;overflow:hidden;margin-bottom:6px}
.progress-line>span{display:block;height:100%;min-width:3px;background:var(--make);border-radius:99px;transform-origin:left;animation:grow .6s var(--ease-out) .05s backwards}
.legend{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.legend .seg,.seg-legend .seg{display:inline-block;width:10px;height:8px;border-radius:2px;animation:none;margin-left:7px}
.bulk-bar{position:fixed;left:calc(50% + var(--sidebar) / 2);translate:-50% 0;bottom:22px;z-index:45;display:flex;align-items:center;gap:10px;padding:8px 8px 8px 20px;background:#111;color:#fff;border-radius:99px;box-shadow:0 18px 40px -14px #0008;font-size:12px;animation:bar-in .45s var(--spring)}
.bulk-bar b{font-size:15px;font-variant-numeric:tabular-nums}
.bulk-bar>span{margin-right:6px}
.bulk-bar .button{border-radius:99px}
.bulk-bar .button.primary{background:#fff;color:#111;border-color:#fff}
.stage>strong,.inventory-stats strong,.chip b{font-variant-numeric:tabular-nums}

/* Order drawer: journey, next step, items */
.drawer{animation:drawer-in .35s var(--ease-out)}
.drawer.closing{animation:drawer-out .26s ease forwards}
.drawer.closing::backdrop,.modal.closing::backdrop{animation:fade-out .26s ease forwards}
.modal.closing{animation:modal-out .2s ease forwards}
.drawer-heading-right{display:flex;align-items:center;gap:10px}
#drawer-content .drawer-body>*{animation:rise-in .35s var(--ease-out) backwards}
#drawer-content .drawer-body>*:nth-child(2){animation-delay:.03s}
#drawer-content .drawer-body>*:nth-child(3){animation-delay:.06s}
#drawer-content .drawer-body>*:nth-child(4){animation-delay:.09s}
#drawer-content .drawer-body>*:nth-child(n+5){animation-delay:.12s}
.journey{list-style:none;margin:2px 0 22px;padding:0;display:grid;grid-template-columns:repeat(5,1fr);position:relative}
.journey::before,.journey::after{content:'';position:absolute;top:15px;left:10%;height:2px;border-radius:2px}
.journey::before{right:10%;background:#ecebe6}
.journey::after{width:calc(80% * var(--progress,0));background:#111;animation:journey-fill .7s var(--ease-out) .05s backwards}
@keyframes journey-fill{from{width:0}}
.journey li{display:flex;flex-direction:column;align-items:center;gap:8px;position:relative;z-index:1;text-align:center}
.journey-dot{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:2px solid #e3e2dc;color:#b0b0a6}
.journey-dot svg{width:14px;height:14px}
.journey li.done .journey-dot{background:#111;border-color:#111;color:#fff;animation:pop .5s var(--spring) backwards}
.journey li:nth-child(2) .journey-dot{animation-delay:.06s}
.journey li:nth-child(3) .journey-dot{animation-delay:.12s}
.journey li:nth-child(4) .journey-dot{animation-delay:.18s}
.journey li:nth-child(5) .journey-dot{animation-delay:.24s}
.journey li.current .journey-dot{border-color:#111;color:#111;animation:pulse 2s infinite .8s}
.journey li.skipped .journey-dot{border-style:dashed;color:#c5c5bc;background:#fafaf8}
.journey-label{font-size:10px;color:#a3a39a;font-weight:500;line-height:1.3}
.journey li.done .journey-label,.journey li.current .journey-label{color:#111}
.journey li.current .journey-label{font-weight:700}
.journey-label small{display:block;font-size:9px;color:#b0b0a6;font-weight:400}
.next-step{border-radius:10px;padding:18px 20px;margin-bottom:4px;border:1px solid #e6e5df;background:#fafaf7}
.next-step h3{display:flex;align-items:center;gap:8px;font-size:15px;margin-bottom:6px}
.next-step h3 svg{width:18px;height:18px}
.next-step>p{font-size:12px;color:#666;line-height:1.75}
.next-step p b{color:#111}
.next-step form{margin-top:16px}
.next-step .form-stack{gap:14px}
.next-step.tone-go{background:#f4f7f2;border-color:#dfe8db}
.next-step.tone-make{background:#faf5ec;border-color:#efe2cb}
.next-step.tone-warn{background:#fcf4ec;border-color:#f0e0cf}
.next-step.tone-muted{background:#f5f5f3}
.next-step .stock-bar.large{background:#fff}
.good-news{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px 14px;border-radius:8px;background:#fff;border:1px solid #ead9c5;animation:rise-in .5s var(--ease-out) .35s backwards,glow 2.4s ease-in-out 1.2s infinite}
.good-news>svg{color:#b28461;flex-shrink:0}
.good-news>div{flex:1;min-width:0}
.good-news strong{display:block;font-size:12px}
.good-news span{font-size:11px;color:#888}
.good-news form{margin:0!important}
.pack-form .checklist-item{background:#fff;border-radius:8px;margin-bottom:10px;cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.checklist-item:has(input:checked){border-color:#b9cdb2;background:#f3f7f1}
.checklist-item:active{transform:scale(.99)}
.checklist-item b{font-weight:700}
.item-card{padding:4px 0 16px;border-bottom:1px dashed #e9e9e3;margin-bottom:16px}
.item-card:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.item-card .detail-product{margin-bottom:4px}
.seg-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:11px;color:#777}
.seg-legend>span{display:inline-flex;align-items:center;gap:5px}
.seg-legend .seg{margin-left:0}
.seg-legend b{color:#111}
.ref-chip{padding:2px 8px;border-radius:99px;background:#f8f1ea;color:#94613b;font-size:10px}
.ref-chip svg{width:11px;height:11px}
.rts-hint{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:8px;background:#f8f1ea;color:#7d5536;font-size:11px;line-height:1.6}
.rts-hint svg{width:15px;flex-shrink:0;margin-top:2px}
.rts-hint a{text-decoration:underline;font-weight:600}
.bulk-list{margin:18px 0}
.bulk-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #f0f0ec}
.bulk-row strong{display:block;font-size:12px}
.bulk-row>div:first-child span{font-size:10px;color:#999}
.bulk-row.excluded{opacity:.6}
.bulk-fill{display:flex;flex-direction:column;align-items:flex-end}

/* Returns, flow steps, inspection */
.flow-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}
.flow-steps.compact{grid-template-columns:repeat(5,1fr)}
.flow-step{display:flex;align-items:center;gap:10px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:8px;position:relative;transition:transform .3s var(--ease-out),box-shadow .3s}
.flow-step:hover{transform:translateY(-2px);box-shadow:0 10px 22px -16px #0004}
.flow-step>svg{width:18px;height:18px;color:#777;flex-shrink:0}
.flow-step b{display:block;font-size:11px}
.flow-step small{display:block;font-size:10px;color:#999}
.flow-num{position:absolute;top:-8px;left:-8px;width:20px;height:20px;border-radius:50%;background:#111;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;font-weight:600}
.ws-production .flow-num{background:var(--amber);color:#1a1813}
.flow-step:not(:last-child)::after{content:'';position:absolute;right:-11px;top:50%;width:10px;height:2px;background:#d5d5cc}
.inventory-stats>a{padding:23px;display:block;transition:background .2s}
.stat-link:hover{background:#faf8f4}
.stat-link small{display:inline-flex;align-items:center;gap:4px}
.stat-link svg{width:12px;height:12px;transition:transform .25s var(--ease-out)}
.stat-link:hover svg{transform:translateX(3px)}
.inventory-stats .is-late strong{color:#a85a49}
.match-section{margin-bottom:26px}
.match-section .panel-heading h2 svg{width:16px;height:16px}
.match-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;padding:0 21px 21px}
.match-card{border:1px solid #ebe3d8;border-radius:10px;padding:16px;background:linear-gradient(180deg,#fbf7f2,#fff 60%);display:flex;flex-direction:column;gap:12px;transition:transform .3s var(--ease-out),box-shadow .3s}
.match-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px -18px #0005}
.match-card.approved{border-color:#dde8d9;background:linear-gradient(180deg,#f4f8f2,#fff 60%)}
.match-item{display:flex;gap:12px;align-items:center}
.match-item img{width:56px;height:56px;border-radius:8px;background:#f1f1ee;object-fit:contain}
.match-item>div{flex:1;min-width:0}
.match-item strong{display:block;font-size:13px}
.match-item>div>span{display:block;font-size:10px;color:#888;margin-top:2px}
.match-orders-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.match-orders-list li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;background:#fff;border:1px solid #f0efea;border-radius:8px;font-size:11px}
.match-orders-list li>span:not(.match-state){color:#888;flex:1}
.match-orders-list .order-link{padding:0}
.match-state{font-size:10px;color:#9c6a43;font-weight:600;display:inline-flex;align-items:center;gap:4px;margin-left:auto}
.match-state.auto{color:#5d7f53}
.match-state svg{width:12px;height:12px}
.match-orders-list form{margin-left:auto}
.inspect-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px;margin-bottom:26px}
.inspect-card{display:flex;gap:14px;padding:14px;align-items:center;transition:transform .3s var(--ease-out),box-shadow .3s}
.inspect-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px -18px #0005}
.inspect-card img{width:72px;height:72px;border-radius:8px;background:#f1f1ee;object-fit:contain}
.inspect-card>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.inspect-card strong{font-size:13px}
.inspect-card span{font-size:11px;color:#777}
.inspect-card small{font-size:10px;color:#aaa}
.match-pill{display:inline-flex!important;align-items:center;gap:4px;margin-top:4px;width:fit-content;padding:2px 8px;border-radius:99px;background:#f8f1ea;color:#94613b!important;font-size:10px!important;font-weight:600;animation:glow 2.4s ease-in-out infinite}
.match-pill svg{width:11px;height:11px}
.choice-group{border:0;padding:0;margin:0;display:grid;gap:8px}
.choice-group legend{font-size:12px;font-weight:500;margin-bottom:8px;padding:0}
.choice{flex-direction:row;position:relative}
.choice input{position:absolute;opacity:0;pointer-events:none}
.choice>span{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;width:100%;padding:12px 14px;border:1px solid #e3e3dd;border-radius:10px;cursor:pointer;transition:border-color .2s,background .2s,transform .25s var(--spring)}
.choice>span svg{grid-row:span 2;width:20px;height:20px;color:#a5a59c;transition:color .2s}
.choice b{font-size:12px}
.choice small{font-size:10px;color:#999;font-weight:400}
.choice:hover>span{border-color:#bbb}
.choice input:checked+span{border-color:#111;background:#fafaf7;transform:scale(1.015)}
.choice.good input:checked+span{border-color:#7fa274;background:#f2f7f0}
.choice.good input:checked+span svg{color:#5d7f53}
.choice.bad input:checked+span{border-color:#d09a8c;background:#fcf3f0}
.choice.bad input:checked+span svg{color:#a85a49}
.choice input:focus-visible+span{outline:2px solid #b87c38;outline-offset:2px}
[data-modal-label]:empty{display:none}
[data-modal-label]{font-weight:500;color:#444!important}

/* Production board */
.board{display:grid;grid-template-columns:repeat(5,minmax(200px,1fr));gap:14px;overflow-x:auto;padding:2px 2px 14px;margin-bottom:8px;scroll-snap-type:x proximity}
.board-col{background:#efede6;border:1px solid #e4e1d7;border-radius:12px;padding:12px;display:flex;flex-direction:column;min-height:340px;scroll-snap-align:start}
.board-col header{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 4px}
.col-title{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600}
.col-title svg{width:15px;height:15px;color:#8a7f6a}
.col-count{font-size:10px;font-weight:600;min-width:22px;height:20px;padding:0 7px;border-radius:99px;background:#fff;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e3e0d6}
.col-in_progress .col-count.has,.col-quality_check .col-count.has{background:var(--amber);border-color:var(--amber)}
.col-hint{font-size:10px;color:#9a968a;padding:0 4px 10px;line-height:1.5}
.col-cards{display:flex;flex-direction:column;gap:10px;flex:1}
.board-card{background:#fff;border:1px solid #e7e4dc;border-radius:10px;padding:12px;box-shadow:0 1px 0 #0000000a;transition:transform .3s var(--ease-out),box-shadow .3s,border-color .2s}
.board-card:hover{transform:translateY(-3px);box-shadow:0 12px 24px -16px #0005;border-color:#d6d2c6}
.todo-card{display:flex;align-items:center;gap:10px}
.todo-card img{width:44px;height:44px;border-radius:8px;background:#f3f2ee;object-fit:contain}
.todo-card>div{flex:1;min-width:0}
.todo-card strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.todo-card span{display:block;font-size:10px;color:#888}
.todo-card small{font-size:9px;color:#aaa}
.qty-pill{font-size:12px;padding:3px 9px;border-radius:99px;background:#faf3e7;color:#93672c;white-space:nowrap}
.batch-card{padding:14px}
.batch-ref{font-size:12px;letter-spacing:.3px}
.batch-card .batch-progress{margin:12px 0 6px;height:6px}
.batch-card .batch-progress>span{background:linear-gradient(90deg,var(--made),var(--shelf));transform-origin:left;animation:grow .7s var(--ease-out) .1s backwards}
.batch-meta{font-size:10px}
.batch-lines{list-style:none;padding:0;margin:12px 0;display:flex;flex-direction:column;gap:8px}
.batch-lines li{display:flex;align-items:center;gap:8px;font-size:11px}
.batch-lines img{width:28px;height:28px;border-radius:6px;background:#f3f2ee;object-fit:contain}
.batch-lines li>span{flex:1;min-width:0}
.batch-lines small{display:block;font-size:10px;color:#999}
.batch-lines li>svg{width:15px;color:#5d7f53;animation:pop .5s var(--spring) backwards}
.batch-card form{margin-top:4px}
.due-chip,.late-chip{font-size:10px;padding:2px 8px;border-radius:99px;background:#f3f2ee;color:#777;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.late-chip{background:#fbeeea;color:#a85a49;animation:glow-red 2s infinite}
.late-chip svg{width:11px;height:11px}
.batch-card.late{border-color:#efd3cb}
.col-quality_check .batch-card{border-color:#e6d6bb}
.col-completed .board-card{opacity:.8}
.col-completed .board-card:hover{opacity:1}
.col-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#aaa698;font-size:11px;border:1px dashed #d8d4c8;border-radius:10px;min-height:110px}
.col-empty svg{width:18px}
.batch-preview{list-style:none;padding:0;margin:0;max-height:180px;overflow:auto;border:1px solid #eee;border-radius:8px}
.batch-preview li{display:flex;justify-content:space-between;gap:10px;padding:8px 12px;font-size:11px;border-bottom:1px solid #f3f3f0}
.batch-preview li:last-child{border:0}
.waiting-panel{margin-top:22px}
.warn-text{color:#a5763e!important}

/* Shipping steps */
.step-tabs{display:flex;align-items:stretch;margin-bottom:20px}
.step-tab{flex:1;display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:10px;transition:transform .3s var(--ease-out),box-shadow .3s,border-color .2s}
.step-tab:hover{transform:translateY(-3px);box-shadow:0 12px 24px -16px #0004}
.step-tab>span:nth-child(2){flex:1;min-width:0}
.step-tab b{display:block;font-size:12px}
.step-tab small{font-size:10px;color:#999}
.step-tab>strong{font-size:28px;font-weight:500;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.step-tab.selected{border-color:#111;box-shadow:0 0 0 1px #111}
.step-tab.selected .stage-icon{background:#111;color:#fff}
.toolbar-note{display:inline-flex;align-items:center;gap:6px}
.toolbar-note svg{width:14px;height:14px}

/* Badges & misc */
.badge.new{background:#111;border-color:#111;color:#fff}
.badge.packed{background:#eef2f6;border-color:#dce4ec;color:#4f6b85}
.badge.unscheduled{background:#faf3e7;border-color:#efdfc4;color:#93672c}
.badge.needs-review>span{animation:pulse-amber 2s infinite}
.delta-up{color:#5d7f53}
.delta-down{color:#a85a49}
.out-stock{color:#a85a49}
.data-table tbody tr{transition:background .15s}
.order-link{transition:color .2s}

.stagger>*:nth-child(1){--i:0}
.stagger>*:nth-child(2){--i:1}
.stagger>*:nth-child(3){--i:2}
.stagger>*:nth-child(4){--i:3}
.stagger>*:nth-child(5){--i:4}
.stagger>*:nth-child(6){--i:5}
.stagger>*:nth-child(7){--i:6}
.stagger>*:nth-child(8){--i:7}
.stagger>*:nth-child(9){--i:8}
.stagger>*:nth-child(10){--i:9}
.stagger>*:nth-child(11){--i:10}
.stagger>*:nth-child(12){--i:11}
.stagger>*:nth-child(n+13){--i:12}
.drawer-skeleton{padding:30px 29px;display:flex;flex-direction:column;gap:14px}
.drawer-skeleton span{display:block;height:14px;border-radius:6px;background:linear-gradient(90deg,#f0efea 25%,#f9f8f4 50%,#f0efea 75%);background-size:200% 100%;animation:shimmer 1.1s linear infinite}
.drawer-skeleton span:nth-child(1){width:35%;height:30px}
.drawer-skeleton span:nth-child(2){height:44px;margin-top:6px}
.drawer-skeleton span:nth-child(3){height:110px;border-radius:10px}
.drawer-skeleton span:nth-child(4){width:70%}
.drawer-skeleton span:nth-child(5){height:72px}
@keyframes shimmer{to{background-position:-200% 0}}
@media(max-width:1200px){
.pipeline{flex-wrap:wrap;gap:10px}
.pipeline .flow-link{display:none}
.stage{flex:1 1 calc(33.3% - 10px)}
.stock-route{flex-direction:column;align-items:flex-start;gap:14px}
.flow-steps.compact{grid-template-columns:repeat(3,1fr)}
.flow-step::after{display:none}
}
@media(max-width:700px){
.stage{flex:1 1 calc(50% - 10px);padding:14px}
.stage>strong{font-size:30px}
.stock-route ol{flex-direction:column;align-items:flex-start;gap:10px}
.route-arrow{display:none!important}
.flow-steps,.flow-steps.compact{grid-template-columns:1fr 1fr}
.board{grid-template-columns:repeat(5,82vw)}
.step-tabs{flex-direction:column;gap:8px}
.step-tabs .flow-link{display:none}
.check-summary{padding:15px}
.journey-label{font-size:9px}
.journey-dot{width:28px;height:28px}
.journey::before,.journey::after{top:13px}
.bulk-bar{left:12px;right:12px;translate:none;border-radius:14px;justify-content:space-between}
.match-grid{padding:0 14px 14px;grid-template-columns:1fr}
.good-news{flex-wrap:wrap}
.stock-bar,.progress-line{width:100px}
.workspace-switch{margin:16px 12px 6px}
}
@media(prefers-reduced-motion:reduce){
.stage:hover,.board-card:hover,.match-card:hover,.inspect-card:hover,.step-tab:hover,.flow-step:hover{transform:none!important}
}

/* ── Shopify, getting started & guide ───────────────────────── */
.nav-status{width:7px;height:7px;border-radius:50%;margin-left:auto;background:#666;flex-shrink:0}
.nav-status.ok{background:#7fb08a;box-shadow:0 0 0 3px #7fb08a26}
.nav-status.bad{background:#e08a5c;animation:pulse-amber 2s infinite}
.tabs .nav-status{margin-left:2px}
.sync-pill{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:99px;border:1px solid #e3e6df;background:#f4f7f2;color:#4f7059;font-size:10px;white-space:nowrap;transition:background .2s,border-color .2s}
.sync-pill b{font-weight:600}
.sync-pill svg{width:14px;height:14px}
.sync-pill:hover{border-color:#bfd0c2}
.sync-dot{width:7px;height:7px;border-radius:50%;background:#6f917d;flex-shrink:0;animation:pulse-green 2.4s infinite}
.sync-pill.syncing .sync-dot{background:transparent;border:2px solid #6f917d;border-right-color:transparent;width:10px;height:10px;animation:spin .7s linear infinite}
.sync-pill.bad{background:#fcf3ec;border-color:#f0dccb;color:#a5643e}
.sync-pill.bad .sync-dot{background:#d0844f;animation:pulse-amber 2s infinite}
.sync-pill.off{background:#111;border-color:#111;color:#fff}
@keyframes pulse-green{0%{box-shadow:0 0 0 0 #6f917d66}70%{box-shadow:0 0 0 6px #6f917d00}100%{box-shadow:0 0 0 0 #6f917d00}}
.help-link{display:inline-flex;align-items:center;gap:4px;margin-left:6px;color:#8a6a3f;font-weight:500;white-space:nowrap}
.help-link svg{width:13px;height:13px}
.help-link:hover{text-decoration:underline}
kbd{font-family:var(--body);font-size:10px;padding:1px 6px;border:1px solid #ddd;border-bottom-width:2px;border-radius:4px;background:#fff}
.client-toast a{color:var(--amber);font-weight:600;margin-left:6px;text-decoration:underline}
.client-toast:not([hidden]){animation:toast-in .5s var(--spring)}
.leaving{animation:toast-out .3s var(--ease-out) forwards}

/* Multi-select and notification center */
.data-table tr[data-selectable-row]{transition:background-color .18s ease,box-shadow .18s ease}
.data-table tr.is-selected{background:#f4f5ef;box-shadow:inset 3px 0 #8a995d}
.data-table input[type=checkbox]{width:17px;height:17px;accent-color:#697548;cursor:pointer}
.bulk-actions{display:flex;align-items:center;gap:7px}
.button.danger{color:#a14d3c;border-color:#d9b3aa;background:#fff8f6}
.button.danger:hover{background:#a14d3c;color:#fff;border-color:#a14d3c}
.notification-menu{position:relative}
.notification-menu>summary{list-style:none;cursor:pointer}
.notification-menu>summary::-webkit-details-marker{display:none}
.notification-popover{position:absolute;right:-12px;top:calc(100% + 13px);width:min(390px,calc(100vw - 24px));padding:8px;background:#fff;border:1px solid #deded8;border-radius:10px;box-shadow:0 22px 55px #20201826;z-index:120;animation:toast-in .22s var(--ease-out)}
.notification-popover:before{content:'';position:absolute;right:24px;top:-6px;width:11px;height:11px;background:#fff;border-left:1px solid #deded8;border-top:1px solid #deded8;transform:rotate(45deg)}
.notification-popover header{display:flex;justify-content:space-between;align-items:center;padding:10px 11px 12px;border-bottom:1px solid #ecece7}
.notification-popover header strong{font-size:13px}.notification-popover header span{font-size:10px;color:#777}
.notification-popover>a{display:flex;gap:11px;align-items:flex-start;padding:11px;border-radius:6px;color:inherit;text-decoration:none}
.notification-popover>a:hover,.notification-popover>a:focus-visible{background:#f5f5f1;outline:none}
.notification-popover>a>span:last-child{min-width:0}.notification-popover b,.notification-popover small{display:block}.notification-popover b{font-size:11px;line-height:1.35}.notification-popover small{margin-top:3px;color:#777;font-size:10px;line-height:1.4}
.notification-popover .attention-icon{flex:0 0 30px;width:30px;height:30px}.notification-popover .notification-all{justify-content:center;align-items:center;border-top:1px solid #ecece7;color:#657047;font-weight:650}.notification-all svg{width:14px}
.notification-empty{display:flex;align-items:center;justify-content:center;gap:8px;padding:25px;color:#657047;font-size:12px}.notification-empty svg{width:18px}
.client-toast{display:flex;align-items:center;gap:12px}.client-toast .icon-button{color:#fff;width:30px;height:30px;min-width:30px;margin-right:-12px}
.alert-modal{width:min(460px,calc(100vw - 24px))}.alert-modal [data-alert-message]{margin:0;color:#555;line-height:1.65;white-space:pre-line}.alert-modal-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:5px}.alert-modal-actions .button{min-width:100px}.alert-modal-actions [hidden]{display:none}
.page-loader{position:fixed;inset:0;z-index:2000;pointer-events:none;background:#f7f7f300;transition:background-color .22s ease}
.page-loader>span{position:absolute;left:0;top:0;width:36%;height:3px;background:linear-gradient(90deg,#8c9864,#d6b276,#8c9864);box-shadow:0 1px 8px #8c986466;transform:translateX(-110%);animation:page-progress 1.15s cubic-bezier(.22,.72,.25,1) infinite}
.page-is-loading .page-loader{background:#f7f7f30f}.page-is-loading .main-content{opacity:.94;transition:opacity .2s ease}
@keyframes page-progress{0%{transform:translateX(-110%) scaleX(.55)}55%{transform:translateX(145%) scaleX(1)}100%{transform:translateX(310%) scaleX(.65)}}
.button:not(:disabled):active,.icon-button:not(:disabled):active,.nav-item:active{transform:scale(.97)}
.button.is-loading{position:relative;cursor:wait;filter:saturate(.75)}.button.is-loading svg{display:none}
.modal[open],.drawer[open]{will-change:transform,opacity}.data-table tbody tr.is-selected td{transition:background-color .18s ease}
.scanner-modal{width:min(560px,calc(100vw - 24px))}.scanner-viewport{position:relative;min-height:260px;border-radius:10px;overflow:hidden;background:#111;margin:16px 0}.scanner-viewport video{display:block;width:100%;height:300px;object-fit:cover}.scanner-frame{position:absolute;inset:50% auto auto 50%;width:min(72%,340px);height:130px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:10px;box-shadow:0 0 0 999px #0006}.scanner-frame:before,.scanner-frame:after,.scanner-frame span:before,.scanner-frame span:after{content:'';position:absolute;width:25px;height:25px;border-color:var(--amber)}.scanner-frame:before{left:-3px;top:-3px;border-left:4px solid var(--amber);border-top:4px solid var(--amber)}.scanner-frame:after{right:-3px;top:-3px;border-right:4px solid var(--amber);border-top:4px solid var(--amber)}.scanner-frame span:before{left:-3px;bottom:-3px;border-left:4px solid var(--amber);border-bottom:4px solid var(--amber)}.scanner-frame span:after{right:-3px;bottom:-3px;border-right:4px solid var(--amber);border-bottom:4px solid var(--amber)}.scanner-camera-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center;background:#111;color:#fff;font-size:12px}.scanner-camera-message[hidden]{display:none}.scanner-manual{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.scanner-result{margin-top:13px;padding:11px 13px;border-radius:7px;background:#f4f4f0;color:#666;font-size:12px}.scanner-result.good{background:#edf4ea;color:#527048}.scanner-result.bad{background:#fbefeb;color:#9f4f40}.checklist-item [data-scan-progress]{display:inline;font-style:normal;color:#80633b;font-size:10px}.checklist-item.scan-hit{animation:scan-hit .42s var(--ease-out)}.checklist-item.scan-complete{border-color:#8ea879!important;background:#f1f6ee!important}@keyframes scan-hit{50%{transform:scale(1.015);box-shadow:0 0 0 3px #8ea87944}}
@media(max-width:760px){.universal-bulk-bar{overflow-x:auto;justify-content:flex-start;padding-left:14px}.bulk-actions{flex:none}.notification-popover{position:fixed;top:64px;right:12px}}

/* Orders: compact, responsive filters with immediate select/date updates. */
.orders-filter-bar{display:grid;grid-template-columns:minmax(190px,1fr) 138px 132px 142px auto auto;align-items:center;gap:8px;padding:10px 14px;background:#faf9f6}
.orders-filter-bar .search-field{min-width:0}
.orders-filter-bar input[type=date]{width:138px;min-height:40px;padding:0 10px;font-size:11px}
.orders-filter-bar .custom-select{width:auto;min-width:0;margin:0}
.orders-filter-bar .custom-select-button{min-height:40px;padding:0 30px 0 11px;font-size:11px;white-space:nowrap}
.orders-filter-bar>.button{min-height:40px;padding:0 14px;white-space:nowrap}
.orders-clear-filter{padding:10px 4px;color:var(--muted);font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.orders-filter-bar.is-filtering{pointer-events:none;opacity:.65;transition:opacity .16s ease}
@media(max-width:980px){.orders-filter-bar{grid-template-columns:minmax(180px,1fr) 138px 1fr 1fr}.orders-filter-bar>.button,.orders-clear-filter{justify-self:start}}
@media(max-width:680px){.orders-filter-bar{grid-template-columns:1fr 1fr;padding:10px}.orders-filter-bar .search-field{grid-column:1/-1}.orders-filter-bar input[type=date]{width:100%}.orders-filter-bar .custom-select{width:100%}.orders-filter-bar>.button{width:100%}.orders-clear-filter{align-self:center;justify-self:center}}
@media(max-width:560px){.scanner-manual{grid-template-columns:1fr}.scanner-viewport video{height:240px}}
@media(prefers-reduced-motion:reduce){.page-loader>span{animation:none;left:0;width:100%;transform:none}.page-is-loading .main-content{opacity:1}.button:not(:disabled):active,.icon-button:not(:disabled):active,.nav-item:active{transform:none}}
.pos-heading{align-items:end}.branch-picker{min-width:220px}.branch-picker label{margin:0}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}.pos-catalog{padding:18px;min-height:650px}.pos-search{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:16px}.pos-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:650px;overflow:auto}.pos-product{position:relative;display:grid;grid-template-columns:54px 1fr;gap:10px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff;transition:transform .2s var(--ease-out),border-color .2s,box-shadow .2s}.pos-product:hover:not(:disabled){border-color:#aaa;box-shadow:0 8px 20px #0000000c;transform:translateY(-2px)}.pos-product.added{animation:scan-hit .3s var(--ease-out)}.pos-product:disabled{opacity:.48;cursor:not-allowed}.pos-product img{width:54px;height:54px;object-fit:cover;border-radius:6px;background:#f3f3ef}.pos-product span{min-width:0}.pos-product strong,.pos-product small,.pos-product em{display:block}.pos-product strong{font-size:11px}.pos-product small,.pos-product em{font-size:9px;color:#777;margin-top:3px}.pos-product em{font-style:normal;font-family:monospace}.pos-product>b{grid-column:2;font-size:12px}.pos-product>i{position:absolute;right:9px;bottom:10px;font-size:9px;font-style:normal;color:#72805a}.pos-cart{position:sticky;top:18px;padding:18px}.pos-cart>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:13px}.pos-cart h2{font-size:25px}.pos-cart h2 span{font-size:12px;color:#777}.pos-cart-lines{min-height:170px;max-height:310px;overflow:auto}.pos-cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #eee}.pos-cart-line small{display:block;color:#777;font-size:9px;margin-top:3px}.pos-qty{display:flex;align-items:center;border:1px solid #ddd;border-radius:6px}.pos-qty button{width:30px;height:30px}.pos-qty b{min-width:24px;text-align:center;font-size:11px}.pos-total{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-top:2px solid #111;margin-top:8px}.pos-total strong{font-size:25px}.payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.payment-methods legend{margin-bottom:7px}.payment-methods label{margin:0}.payment-methods input{position:absolute;opacity:0}.payment-methods span{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #ddd;border-radius:6px;font-size:10px;cursor:pointer}.payment-methods input:checked+span{background:#111;color:#fff;border-color:#111}.pos-receipt{display:flex;align-items:center;gap:22px;padding:17px 20px;margin-bottom:18px;border-color:#a9b997;background:#f2f6ef}.pos-receipt>strong{margin-left:auto;font-size:24px}.pos-recent{margin-top:18px}.pos-recent .panel-heading{padding:18px 20px}.pos-recent table{margin:0}@media(max-width:1100px){.pos-layout{grid-template-columns:1fr}.pos-cart{position:static}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.pos-products{grid-template-columns:1fr}.pos-search{grid-template-columns:1fr}.pos-receipt{align-items:flex-start;flex-wrap:wrap}.pos-receipt>strong{margin-left:0}}

.shopify-setup{display:flex;flex-direction:column;gap:18px;max-width:980px}
.connect-hero{display:flex;align-items:center;gap:20px;padding:24px;border-radius:12px;background:linear-gradient(120deg,#151410,#2a261d);color:#ddd;position:relative;overflow:hidden}
.connect-hero::after{content:'';position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:radial-gradient(#e0b36a33,transparent 70%);animation:hero-glow 6s ease-in-out infinite}
@keyframes hero-glow{50%{transform:translate(-30px,20px) scale(1.15)}}
.connect-hero.is-on{background:linear-gradient(120deg,#eef4ec,#f8faf6);color:#333;border:1px solid #dce8d7}
.connect-hero.is-on::after{background:radial-gradient(#6f917d26,transparent 70%)}
.connect-hero.has-error{background:linear-gradient(120deg,#fcf2ea,#fdf8f4);border-color:#f0dccb}
.hero-plug{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:var(--amber);color:#1a1813;flex-shrink:0;position:relative;z-index:1;animation:pop .6s var(--spring) .2s backwards}
.hero-plug svg{width:24px;height:24px}
.is-on .hero-plug{background:#6f917d;color:#fff}
.has-error .hero-plug{background:#d0844f}
.hero-copy{flex:1;min-width:0;position:relative;z-index:1}
.hero-copy .eyebrow{color:inherit;opacity:.65;margin-bottom:6px}
.hero-copy h2{font-family:var(--display);font-size:30px;line-height:1.05;letter-spacing:.2px;color:inherit}
.connect-hero:not(.is-on) .hero-copy h2{color:#fff}
.hero-copy p{font-size:12px;margin-top:6px;opacity:.85}
.hero-points{list-style:none;padding:0;margin:14px 0 0;display:flex;flex-wrap:wrap;gap:8px 18px;font-size:11px}
.hero-points li{display:flex;align-items:center;gap:6px}
.hero-points svg{width:14px;height:14px;color:var(--amber)}
.connect-hero form{position:relative;z-index:1}
.sync-error{display:flex;gap:12px;align-items:flex-start;margin:0}
.sync-error a{font-weight:600;text-decoration:underline}
.shopify-quick-connect{overflow:hidden;border:1px solid #d8d1c4;border-radius:14px;background:#fff;box-shadow:0 18px 45px -38px #000}.shopify-quick-connect>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #e8e4dc;background:linear-gradient(120deg,#fffdf8,#f6f1e7)}.shopify-quick-connect>header h2{margin-top:4px;font-family:var(--display);font-size:25px}.shopify-quick-connect>header p{max-width:680px;margin-top:7px;color:#666;font-size:11px;line-height:1.6}.quick-time{display:inline-flex;align-items:center;gap:6px;flex:none;padding:7px 10px;border-radius:999px;background:#111;color:#fff;font-size:8px;font-weight:800;letter-spacing:.05em;white-space:nowrap}.quick-time svg{width:13px}.quick-connect-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(310px,.75fr);gap:0}.quick-shopify-prep{padding:22px 24px}.quick-step{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:0 0 18px}.quick-step:last-child{padding-bottom:0}.quick-step>b{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#111;color:#fff;font-size:9px}.quick-step strong,.quick-step span{display:block}.quick-step strong{font-size:12px}.quick-step span{margin-top:4px;color:#777;font-size:10px;line-height:1.5}.quick-step .button{width:max-content;margin-top:9px}.quick-step .copy-box{margin:9px 0 0}.quick-connect-form{padding:22px 24px;border-left:1px solid #e6e2d9;background:#faf9f5}.quick-form-title{display:flex;align-items:center;gap:10px;padding-bottom:4px}.quick-form-title>span{display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:#b88949;color:#fff}.quick-form-title svg{width:17px}.quick-form-title strong,.quick-form-title small{display:block}.quick-form-title strong{font-size:13px}.quick-form-title small{margin-top:2px;color:#999;font-size:8px}.quick-connect-form input{background:#fff}.quick-connect-form .button{min-height:48px;line-height:1.25}.quick-secure{display:flex;align-items:center;justify-content:center;gap:5px;margin:0;color:#777;font-size:8px}.quick-secure svg{width:13px}.quick-help{border-top:1px solid #e8e4dc;background:#fff}.quick-help summary{display:flex;align-items:center;gap:7px;padding:12px 24px;color:#6d675d;font-size:9px;font-weight:700;cursor:pointer}.quick-help summary svg{width:14px}.quick-help p{padding:0 24px 14px;color:#777;font-size:9px}.shopify-ready-strip{display:grid;grid-template-columns:1fr 1fr 1fr auto;align-items:center;gap:0;overflow:hidden;border:1px solid #d9e5d5;border-radius:11px;background:#f6faf4}.shopify-ready-strip>div{display:flex;align-items:center;gap:10px;padding:15px 17px;border-right:1px solid #e0e9dd}.shopify-ready-strip>div>svg{width:19px;color:#608058}.shopify-ready-strip span,.shopify-ready-strip b,.shopify-ready-strip small{display:block}.shopify-ready-strip b{font-size:10px}.shopify-ready-strip small{margin-top:2px;color:#7b8377;font-size:8px}.shopify-ready-strip>a{display:flex;align-items:center;gap:5px;padding:15px;color:#4d6849;font-size:9px;font-weight:700;white-space:nowrap}.shopify-ready-strip>a svg{width:12px}
.setup-steps{display:flex;flex-direction:column;gap:12px}
.setup-step{border:1px solid var(--line);border-radius:12px;background:#fff;transition:border-color .2s,box-shadow .3s;scroll-margin-top:16px}
.setup-step[open]{box-shadow:0 14px 30px -24px #0006}
.setup-step.current{border-color:#111}
.setup-step summary{list-style:none;display:flex;align-items:center;gap:14px;padding:16px 18px;cursor:pointer}
.setup-step summary::-webkit-details-marker{display:none}
.setup-step summary>svg{width:16px;color:#999;transition:transform .3s var(--ease-out)}
.setup-step[open] summary>svg{transform:rotate(180deg)}
.step-num{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;background:#f1f0eb;color:#777;flex-shrink:0}
.step-num svg{width:15px;height:15px}
.setup-step.current .step-num{background:#111;color:#fff;animation:pulse 2s infinite}
.setup-step.done .step-num{background:#6f917d;color:#fff}
.step-title{flex:1;min-width:0}
.step-title b{display:block;font-size:14px}
.step-title small{font-size:11px;color:#999}
.step-state{font-size:10px;font-weight:600;padding:3px 9px;border-radius:99px;background:#f3f2ee;color:#777;white-space:nowrap}
.setup-step.current .step-state{background:#111;color:#fff}
.setup-step.done .step-state{background:#eef4ec;color:#5d7f53}
.step-body{padding:2px 18px 20px 62px;animation:rise-in .4s var(--ease-out)}
.step-lead{font-size:12px;color:#666;margin-bottom:14px!important}
.path-cards{display:flex;flex-direction:column;gap:10px}
.path-card{border:1px solid #ebe7de;border-radius:10px;padding:16px 18px;background:#fcfbf8}
.path-card.recommended{border-color:#e6d6bb;background:#fffdf8}
.path-tag{display:inline-block;font-size:9px;letter-spacing:1.1px;font-weight:700;color:#93672c;margin-bottom:6px}
.path-card.older summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
.path-card.older summary::-webkit-details-marker{display:none}
.path-card.older summary .path-tag{color:#888;margin:0}
.path-card.older summary svg{width:15px;color:#999}
.path-card.older p{font-size:12px;color:#666;margin-top:10px;line-height:1.75}
.howto{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:12px;font-size:12px;color:#444;line-height:1.7}
.howto li::marker{font-weight:700;color:#93672c}
.howto a,.guide-body a:not(.button){color:#8a5a2b;text-decoration:underline;text-underline-offset:2px}
.howto a svg{width:12px;height:12px;vertical-align:-1px}
code{font-family:ui-monospace,Consolas,monospace;font-size:11px;background:#f3f1ec;border:1px solid #e9e6de;border-radius:4px;padding:1px 5px;color:#5b4630;word-break:break-all}
.copy-box{display:flex;align-items:center;gap:10px;margin:8px 0 10px;padding:8px 8px 8px 12px;border:1px dashed #d9cfbe;border-radius:8px;background:#fff}
.copy-box code{flex:1;background:none;border:0;padding:0;font-size:11px}
.copy-box .button{flex-shrink:0}
.copy-box .button.copied{background:#eef4ec;border-color:#b9cdb2;color:#4f7059}
.field-hint{font-size:10px;color:#999;font-weight:400;line-height:1.5}
.mode-switch{border:0;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mode-switch legend{font-size:12px;font-weight:500;margin-bottom:8px;padding:0}
.mode-switch label{flex-direction:row;position:relative}
.mode-switch input{position:absolute;opacity:0}
.mode-switch span{display:block;width:100%;padding:11px 14px;border:1px solid #e3e3dd;border-radius:10px;font-size:12px;font-weight:600;cursor:pointer;transition:border-color .2s,background .2s}
.mode-switch small{display:block;font-weight:400;font-size:10px;color:#999}
.mode-switch input:checked+span{border-color:#111;background:#fafaf7;box-shadow:0 0 0 1px #111}
.mode-switch input:focus-visible+span{outline:2px solid #b87c38;outline-offset:2px}
.key-form .mode-token{display:none}
.key-form:has(input[value=token]:checked) .mode-token{display:block;animation:rise-in .3s var(--ease-out)}
.key-form:has(input[value=token]:checked) .mode-client{display:none}
@media(max-width:800px){.shopify-quick-connect>header{flex-direction:column}.quick-connect-layout{grid-template-columns:1fr}.quick-connect-form{border-top:1px solid #e6e2d9;border-left:0}.shopify-ready-strip{grid-template-columns:1fr 1fr}.shopify-ready-strip>a{grid-column:1/-1;justify-content:center;border-top:1px solid #d9e5d5}.shopify-ready-strip>div:nth-child(2){border-right:0}.shopify-ready-strip>div:nth-child(3){border-top:1px solid #d9e5d5}}
@media(max-width:520px){.shopify-quick-connect>header,.quick-shopify-prep,.quick-connect-form{padding:18px}.quick-time{white-space:normal}.quick-step{grid-template-columns:28px minmax(0,1fr)}.quick-step .copy-box{align-items:stretch;flex-direction:column}.quick-step .copy-box .button{width:100%}.shopify-ready-strip{grid-template-columns:1fr}.shopify-ready-strip>div{border-right:0;border-top:1px solid #d9e5d5}.shopify-ready-strip>div:first-child{border-top:0}}
.toggle{flex-direction:row;align-items:flex-start;gap:12px;cursor:pointer;position:relative}
.toggle input{position:absolute;opacity:0}
.toggle-ui{width:38px;height:22px;border-radius:99px;background:#ddd;position:relative;flex-shrink:0;margin-top:1px;transition:background .25s}
.toggle-ui::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .35s var(--spring)}
.toggle input:checked+.toggle-ui{background:#111}
.toggle input:checked+.toggle-ui::after{transform:translateX(16px)}
.toggle input:focus-visible+.toggle-ui{outline:2px solid #b87c38;outline-offset:2px}
.toggle b{display:block;font-size:12px}
.toggle small{display:block;font-size:10px;color:#999;font-weight:400}
.toggle.sub{margin-left:50px;transition:opacity .2s}
.form-stack:has(input[name=fulfill]:not(:checked)) .toggle.sub{opacity:.45}
.first-sync{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.first-sync article{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fcfcfa}
.first-sync article>div{flex:1;min-width:0}
.first-sync b{display:block;font-size:12px}
.first-sync small{font-size:10px;color:#999}
.first-num{width:28px;height:28px;border-radius:8px;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;flex-shrink:0}
.always-on{display:flex;align-items:center;gap:20px;padding:18px 20px;border:1px dashed #d9d8cf;border-radius:12px;background:#f5f4ef}
.always-on h3{font-size:14px;margin:2px 0 6px}
.always-on p{font-size:11px;color:#777;line-height:1.7}
.always-on>svg{width:34px;height:34px;color:#b7a98f;flex-shrink:0}
.sync-notes{border:1px solid var(--line);border-radius:10px;padding:12px 16px;background:#fff}
.sync-notes summary{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;cursor:pointer}
.sync-notes summary svg{width:15px}
.sync-notes ul{margin:10px 0 0;padding-left:20px;font-size:11px;color:#777;line-height:1.9;max-height:220px;overflow:auto}
.disconnect{align-self:flex-start}
.import-banner{margin:-8px 0 22px}
.import-banner a{text-decoration:underline;font-weight:600}

.getting-started{border:1px solid #e6d6bb;border-radius:12px;background:linear-gradient(120deg,#fffaf1,#fff);padding:20px 22px;margin-bottom:18px}
.gs-head{display:flex;align-items:center;gap:18px}
.gs-head>div:first-child{flex:1}
.gs-head h2{font-family:var(--display);font-size:26px;line-height:1.05}
.gs-head p{font-size:11px;color:#888;margin-top:4px}
.gs-head a{text-decoration:underline;font-weight:600;color:#8a5a2b}
.gs-ring{--done:0;width:54px;height:54px;border-radius:50%;background:conic-gradient(var(--amber) calc(var(--done) * 360deg),#efe9dd 0);display:flex;align-items:center;justify-content:center;flex-shrink:0;animation:pop .6s var(--spring) .2s backwards}
.gs-ring span{width:42px;height:42px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.gs-head .icon-button{align-self:flex-start;margin:-6px -8px 0 0}
.gs-list{list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.gs-list a{display:flex;align-items:flex-start;gap:10px;height:100%;padding:12px;border:1px solid #eee7da;border-radius:10px;background:#fff;transition:transform .3s var(--ease-out),box-shadow .3s,border-color .2s}
.gs-list a:hover{transform:translateY(-3px);box-shadow:0 12px 24px -16px #0005;border-color:#d8c7a8}
.gs-list a>span:nth-child(2){flex:1;min-width:0}
.gs-list b{display:block;font-size:11px}
.gs-list small{font-size:10px;color:#999;line-height:1.5}
.gs-list a>svg{width:13px;color:#b9a27c;margin-top:3px}
.gs-check{width:26px;height:26px;border-radius:8px;background:#f6efe3;color:#93672c;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.gs-check svg{width:14px;height:14px}
.gs-list li.done a{background:#f6f9f4;border-color:#e0eadb}
.gs-list li.done .gs-check{background:#6f917d;color:#fff}
.gs-list li.done b{text-decoration:line-through;text-decoration-color:#9bb59f;color:#6b7f6e}

.guide-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:28px;align-items:start}
.guide-toc{position:sticky;top:18px;display:flex;flex-direction:column;gap:12px}
.guide-search{position:relative;display:block}
.guide-search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;color:#999}
.guide-search input{padding-left:34px!important;font-size:12px!important;min-height:40px!important;border-radius:10px!important}
.guide-toc nav{display:flex;flex-direction:column;gap:2px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff}
.guide-toc nav a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font-size:12px;color:#666;transition:background .2s,color .2s,opacity .2s}
.guide-toc nav a svg{width:15px;height:15px;color:#aaa;transition:color .2s}
.guide-toc nav a:hover{background:#f6f5f1;color:#111}
.guide-toc nav a.active{background:#111;color:#fff}
.guide-toc nav a.active svg{color:var(--amber)}
.guide-toc nav a.dim{opacity:.35}
.guide-signed{font-size:10px;color:#999;padding:0 6px}
.guide-body{display:flex;flex-direction:column;gap:18px;min-width:0}
.guide-section{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px 28px;scroll-margin-top:16px}
.guide-section>.eyebrow{color:#93672c}
.guide-section h2{font-family:var(--display);font-size:32px;line-height:1.05;margin-bottom:12px}
.guide-section h3{font-size:14px;margin:22px 0 8px}
.guide-section p{font-size:13px;color:#555;line-height:1.75}
.guide-section b{color:#111}
.guide-flow{list-style:none;padding:0;margin:18px 0 6px;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.guide-flow li{position:relative;padding:14px 12px;border:1px solid var(--line);border-radius:10px;background:#fcfcfa;display:flex;flex-direction:column;gap:3px}
.guide-flow li:not(:last-child)::after{content:'';position:absolute;right:-11px;top:50%;width:12px;height:2px;background:repeating-linear-gradient(90deg,#111 0 3px,transparent 3px 6px);background-size:6px 2px;animation:flow-dash .6s linear infinite}
.guide-flow span{width:30px;height:30px;border-radius:9px;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.guide-flow span svg{width:15px;height:15px}
.guide-flow b{font-size:12px}
.guide-flow small{font-size:10px;color:#999}
.guide-route{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}
.guide-route>div{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--line);border-radius:10px}
.guide-route .route-icon{margin-bottom:6px}
.guide-route b{font-size:12px}
.guide-route small{font-size:10px;color:#999}
.guide-tip{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:10px;background:#fbf6ec;border:1px solid #efe2cb;margin-top:14px}
.guide-tip>svg{width:18px;color:#c08a3e;flex-shrink:0;margin-top:2px}
.guide-tip p{font-size:12px!important;margin:0}
.guide-list{margin:8px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:13px;color:#555;line-height:1.7}
.guide-list svg{width:14px;height:14px;vertical-align:-2px}
.guide-steps{counter-reset:step;list-style:none;padding:0;margin:12px 0;display:flex;flex-direction:column;gap:10px}
.guide-steps li{counter-increment:step;position:relative;padding:12px 14px 12px 50px;border:1px solid var(--line);border-radius:10px;font-size:13px;color:#555;line-height:1.7}
.guide-steps li::before{content:counter(step);position:absolute;left:14px;top:12px;width:24px;height:24px;border-radius:50%;background:#111;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.guide-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:6px}
.guide-table th{text-align:left;font-size:9px;letter-spacing:.8px;color:#999;font-weight:600;padding:10px 12px;background:#fafaf8;border-bottom:1px solid #eee}
.guide-table td{padding:12px;border-bottom:1px solid #f1f1ee;vertical-align:top;color:#555;line-height:1.6}
.guide-table tr:last-child td{border-bottom:0}
.guide-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px!important}
.guide-legend span{display:inline-flex;align-items:center;gap:6px}
.guide-legend .seg{display:inline-block;width:16px;height:10px;border-radius:3px;animation:none}
.role-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-top:14px}
.role-card{border:1px solid var(--line);border-radius:12px;padding:16px 18px;background:#fcfcfa;scroll-margin-top:16px;transition:transform .3s var(--ease-out),box-shadow .3s}
.role-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px -20px #0005}
.role-card h3{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:14px}
.role-card h3 svg{width:17px;color:#93672c}
.role-card ol{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:7px;font-size:12px;color:#555;line-height:1.65}
.guide-columns{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0}
.guide-columns div{padding:12px;border-radius:10px;background:#efede6;display:flex;flex-direction:column;gap:3px}
.guide-columns b{font-size:12px}
.guide-columns small{font-size:10px;color:#8a8576}
.guide-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:2px 9px;border-radius:99px;background:#f3f2ee;color:#777}
.guide-status svg{width:13px;height:13px}
.guide-status.ok{background:#eef4ec;color:#5d7f53}
.faq{border-bottom:1px solid #f0efea;padding:12px 0}
.faq summary{cursor:pointer;font-size:13px;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';font-size:18px;line-height:1;color:#999;transition:transform .3s var(--ease-out)}
.faq[open] summary::after{transform:rotate(45deg)}
.faq p{margin-top:8px!important;animation:rise-in .3s var(--ease-out)}
.glossary{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin:12px 0 0}
.glossary div{padding:12px 14px;border:1px solid var(--line);border-radius:10px}
.glossary dt{font-weight:700;font-size:12px}
.glossary dd{margin:4px 0 0;font-size:12px;color:#666;line-height:1.6}
.guide-end{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#999;padding:10px}
.guide-end svg{width:15px;color:#c08a3e}
.guide-empty{padding:30px;text-align:center;color:#999;border:1px dashed #ddd;border-radius:12px}

@media(max-width:1200px){
.gs-list{grid-template-columns:repeat(3,1fr)}
.guide-layout{grid-template-columns:1fr}
.guide-toc{position:static}
.guide-toc nav{flex-direction:row;flex-wrap:wrap}
.guide-flow,.guide-columns{grid-template-columns:repeat(3,1fr)}
.guide-flow li::after{display:none}
.sync-pill:not(.off)>span:last-child{display:none}
.sync-pill:not(.off){width:32px;padding:0;justify-content:center}
}
@media(max-width:700px){
.connect-hero{flex-direction:column;align-items:flex-start;padding:20px}
.step-body{padding:2px 16px 18px}
.setup-step summary{padding:14px}
.step-state{display:none}
.mode-switch,.first-sync{grid-template-columns:1fr}
.toggle.sub{margin-left:0}
.gs-list{grid-template-columns:1fr}
.gs-head{flex-wrap:wrap}
.guide-section{padding:20px 18px}
.guide-section h2{font-size:27px}
.guide-flow,.guide-columns,.guide-route{grid-template-columns:1fr 1fr}
.always-on>svg{display:none}
.sync-pill.off{display:none}
}
@media(prefers-reduced-motion:reduce){
.role-card:hover,.gs-list a:hover{transform:none!important}
}
/* Tailwind preflight makes svg block-level and strips list markers; restore them where icons sit inside text and lists are numbered. */
.howto,.role-card ol{list-style:decimal}
.guide-list,.sync-notes ul{list-style:disc}
.guide-list li::marker,.role-card ol li::marker{color:#b9a27c}
.howto svg,.guide-list svg,.helper svg,.guide-section p svg,.path-card p svg{display:inline-block;vertical-align:-2px}
.helper svg{width:14px;height:14px;margin-right:4px}
.shopify-setup .form-title{margin:10px 0 0}
.shopify-setup .table-scroll{margin-top:0;border:1px solid var(--line);border-radius:10px}

/* POS variant picker: one catalog card per product, with options in a modal. */
.pos-product-group>.pos-variants{display:none!important}.pos-product-head small:after{content:'Select size & color'}.pos-product-head:after{content:'→';margin-left:auto;font-size:18px;color:#888;transition:transform .2s}.pos-product-head:hover:after{transform:translateX(3px)}.pos-variant-modal{width:480px}.pos-variant-modal .modal-heading{align-items:flex-start;margin-bottom:18px}.pos-variant-modal .modal-heading .eyebrow{display:block;margin-bottom:3px}.variant-product{display:flex;align-items:center;gap:13px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafaf7;margin-bottom:18px}.variant-product img{width:62px;height:62px;object-fit:cover;border-radius:8px;background:#eee}.variant-product strong,.variant-product small{display:block}.variant-product strong{font-size:12px}.variant-product small{font-size:10px;color:#888;margin-top:4px}.variant-options{border:0;padding:0;margin:0 0 16px}.variant-options legend{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}.variant-choice-grid{display:flex;flex-wrap:wrap;gap:8px}.variant-choice{min-width:54px;padding:9px 13px;border:1px solid #d9d8d2;border-radius:8px;background:#fff;font-size:11px;font-weight:600;transition:border-color .18s,background .18s,color .18s,transform .18s}.variant-choice:hover:not(:disabled){border-color:#777;transform:translateY(-1px)}.variant-choice.selected{background:#111;color:#fff;border-color:#111}.variant-choice:disabled{opacity:.35;text-decoration:line-through;cursor:not-allowed}.variant-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;margin-top:4px;border-top:1px solid var(--line);font-size:11px;color:#666}.variant-summary strong{font-size:16px;color:#111}.pos-variant-modal>.button{margin-top:4px}
@media(max-width:520px){.pos-variant-modal{padding:18px}.variant-product img{width:52px;height:52px}}

/* POS products are grouped first; variants stay one tap underneath. */
.pos-product-group>.pos-variants{display:none!important}.pos-product-group .pos-product-head small:after{content:'Select size & color'}.pos-product-group .pos-product-head:after{content:'>';transform:none}.pos-product-group .pos-product-head:hover:after{transform:translateX(3px)}

/* Inventory product summaries and focused size/color selection. */
.inventory-product-table,.inventory-variants-table{width:100%;border-collapse:collapse}.inventory-product-table th,.inventory-variants-table th{text-align:left;font-size:9px;letter-spacing:.08em;color:#888;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}.inventory-product-table td,.inventory-variants-table td{padding:12px;border-bottom:1px solid #f0efeb;vertical-align:middle;font-size:11px}.inventory-product-table tbody tr,.inventory-variants-table tbody tr{transition:background .18s}.inventory-product-table tbody tr:hover,.inventory-variants-table tbody tr:hover{background:#fafaf7}.inventory-product-table .table-product span{display:block;font-size:9px;color:#888;margin-top:3px}.inventory-variants-modal{width:min(760px,calc(100% - 28px))}.inventory-variant-help{font-size:11px;color:#777;margin:-2px 0 16px}.inventory-variants-modal .table-scroll{max-height:52dvh;margin-bottom:16px}.inventory-variants-table input[type=checkbox]{width:17px;height:17px;accent-color:#111}.inventory-variants-table .variant-size{font-weight:700}.inventory-variants-table .variant-identity{min-width:150px}.inventory-variants-table .stock-number{display:table-cell}.inventory-variants-modal [data-adjust-selected] span{margin-left:4px}
@media(max-width:700px){.inventory-product-table th:nth-child(2),.inventory-product-table td:nth-child(2),.inventory-product-table th:nth-child(4),.inventory-product-table td:nth-child(4){display:none}.inventory-variants-modal{padding:18px}.inventory-variants-table th:nth-child(4),.inventory-variants-table td:nth-child(4),.inventory-variants-table th:nth-child(5),.inventory-variants-table td:nth-child(5){display:none}}

/* Visual inventory adjustment picker, matching the POS size/color flow. */
.stock-picker-modal{width:560px}.stock-picker-modal [data-stock-single]>label:first-child{display:block;margin-bottom:12px}.stock-product-preview{display:flex;align-items:center;gap:14px;padding:12px;margin-bottom:16px;border:1px solid var(--line);border-radius:10px;background:#fafaf7}.stock-product-preview img{width:72px;height:72px;object-fit:cover;border-radius:8px;background:#eee}.stock-product-preview strong,.stock-product-preview span,.stock-product-preview small,.stock-product-preview em{display:block}.stock-product-preview strong{font-size:13px}.stock-product-preview span{font-size:11px;font-weight:600;margin-top:3px}.stock-product-preview small{font-size:9px;color:#888;margin-top:2px}.stock-product-preview em{font-style:normal;font-size:10px;color:#5f725f;margin-top:7px}.stock-bulk-summary{padding:16px;border:1px solid #e5d3b5;border-radius:10px;background:#fff9ef;margin-bottom:4px}.stock-bulk-summary strong,.stock-bulk-summary span{display:block}.stock-bulk-summary strong{font-size:13px}.stock-bulk-summary span{font-size:10px;line-height:1.6;color:#777;margin-top:4px}.stock-picker-modal .variant-choice{min-height:42px}
.stock-picker-modal [data-stock-colors] .variant-choice{display:inline-flex;align-items:center;gap:7px}.variant-color-swatch{width:15px;height:15px;border-radius:50%;border:1px solid #0002;box-shadow:inset 0 0 0 1px #fff6;flex:0 0 auto}.variant-choice.selected .variant-color-swatch{border-color:#fff8}
@media(max-width:520px){.stock-picker-modal{padding:18px}.stock-product-preview img{width:58px;height:58px}.stock-picker-modal .form-grid{grid-template-columns:1fr}}

/* Branch-first inventory workspace. */
.inventory-heading .heading-actions{display:flex;gap:8px;flex-wrap:wrap}.inventory-branch-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 12px;margin-bottom:8px;scrollbar-width:thin}.inventory-branch-tabs a{min-width:145px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;transition:border-color .2s,background .2s,transform .2s;flex:0 0 auto}.inventory-branch-tabs a:hover{border-color:#aaa;transform:translateY(-1px)}.inventory-branch-tabs a.active{background:#111;color:#fff;border-color:#111}.inventory-branch-tabs strong,.inventory-branch-tabs span{display:block}.inventory-branch-tabs strong{font-size:12px}.inventory-branch-tabs span{font-size:9px;color:#999;margin-top:3px}.inventory-branch-tabs a.active span{color:#bbb}.inventory-toolbar{display:flex;align-items:center;gap:12px;padding:16px 0}.inventory-toolbar form{display:flex;align-items:center;gap:8px;flex:1}.inventory-toolbar .search-field{max-width:420px;flex:1}.inventory-toolbar .toolbar-note{margin-left:auto;white-space:nowrap}.view-switch{display:flex;border:1px solid var(--line);border-radius:9px;padding:3px;background:#f6f5f1}.view-switch button{width:36px;height:34px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#888;transition:background .18s,color .18s}.view-switch button svg{width:15px;height:15px}.view-switch button.active{background:#fff;color:#111;box-shadow:0 1px 4px #0001}.inventory-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:14px;padding-bottom:4px}.inventory-product-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;transition:transform .25s var(--ease-out),box-shadow .25s}.inventory-product-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px -24px #0008}.inventory-product-card>img{width:100%;height:168px;object-fit:cover;background:#f3f2ed}.inventory-card-body{padding:15px;display:flex;flex-direction:column;gap:14px}.inventory-card-body h3{font-size:15px;margin-top:3px}.inventory-card-stock{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.inventory-card-stock span{padding:9px;border-radius:8px;background:#f7f6f2}.inventory-card-stock small,.inventory-card-stock strong{display:block}.inventory-card-stock small{font-size:8px;color:#888}.inventory-card-stock strong{font-size:16px;margin-top:2px;font-variant-numeric:tabular-nums}.inventory-product-card .button{min-height:42px}.inventory-products-list{animation:fade-in .2s ease}.inventory-empty{margin-top:12px}.new-product-stock{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fafaf7}.new-product-stock>.eyebrow{display:block;margin-bottom:10px}.new-product-modal{width:560px}
@media(max-width:760px){.inventory-heading{align-items:flex-start}.inventory-heading .heading-actions{width:100%}.inventory-heading .heading-actions .button{flex:1}.inventory-toolbar{flex-wrap:wrap}.inventory-toolbar form{width:100%;flex-basis:100%}.inventory-toolbar .toolbar-note{margin-left:0}.inventory-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-product-card>img{height:140px}}
@media(max-width:480px){.inventory-products-grid{grid-template-columns:1fr}.inventory-toolbar form .button{padding-inline:12px}.inventory-toolbar .toolbar-note{font-size:9px}.inventory-product-card>img{height:180px}}

/* Explicit zero-stock treatment: dark, labeled, and still actionable for restocking. */
.inventory-card-image{position:relative}.inventory-card-image>img{display:block;width:100%;height:168px;object-fit:cover;background:#f3f2ed}.out-of-stock-badge{position:absolute;left:12px;top:12px;padding:6px 9px;border-radius:6px;background:#111;color:#fff;font-size:8px;font-weight:800;letter-spacing:.1em;box-shadow:0 4px 14px #0004}.inventory-product-card.is-out-of-stock{background:#171717;border-color:#171717;color:#fff}.inventory-product-card.is-out-of-stock .inventory-card-image img{filter:grayscale(1) brightness(.48);opacity:.8}.inventory-product-card.is-out-of-stock .eyebrow{color:#aaa}.inventory-product-card.is-out-of-stock .inventory-card-stock span{background:#252525}.inventory-product-card.is-out-of-stock .inventory-card-stock small{color:#aaa}.inventory-product-card.is-out-of-stock .inventory-card-stock strong{color:#fff}.inventory-product-card.is-out-of-stock .button{background:#fff;color:#111;border-color:#fff}.inventory-product-card.is-out-of-stock:hover{box-shadow:0 18px 36px -20px #000}.inventory-product-table tr.is-out-of-stock{background:#1b1b1b;color:#fff}.inventory-product-table tr.is-out-of-stock:hover{background:#242424}.inventory-product-table tr.is-out-of-stock .muted,.inventory-product-table tr.is-out-of-stock .table-product span{color:#aaa}.inventory-product-table tr.is-out-of-stock .size-tag{background:#333;color:#ddd}.inventory-product-table tr.is-out-of-stock .stock-number{color:#fff}.inventory-product-table tr.is-out-of-stock .button{background:#fff;color:#111;border-color:#fff}.out-of-stock-inline{display:inline-block!important;width:max-content;margin-top:5px;padding:3px 6px;border:1px solid #ffffff4d;border-radius:4px;color:#fff;font-size:7px;letter-spacing:.1em}
.inventory-stock-filter{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#f6f5f1;white-space:nowrap}.inventory-stock-filter a{display:flex;align-items:center;min-height:34px;padding:0 11px;border-radius:6px;color:#777;font-size:10px;font-weight:700;transition:background .18s,color .18s,box-shadow .18s}.inventory-stock-filter a.active{background:#111;color:#fff;box-shadow:0 1px 4px #0002}.inventory-product-table td{padding-block:9px}.inventory-product-table .table-product img{width:40px;height:40px;border-radius:6px;object-fit:cover}.inventory-product-table .button.small{min-height:34px;padding:7px 10px}
.inventory-products-grid[hidden],.inventory-products-list[hidden]{display:none!important}
@media(max-width:1080px){.inventory-toolbar{flex-wrap:wrap}.inventory-stock-filter{order:1}.inventory-toolbar form{order:3;flex-basis:100%}.inventory-toolbar .toolbar-note{order:2}.inventory-toolbar .view-switch{order:2}}
@media(max-width:600px){.inventory-stock-filter{width:100%;overflow-x:auto}.inventory-stock-filter a{flex:1;justify-content:center}.inventory-toolbar .toolbar-note{margin-right:auto}}
@media(max-width:760px){.inventory-card-image>img{height:140px}}@media(max-width:480px){.inventory-card-image>img{height:180px}}

/* Unified themed dropdowns across filters, forms, modals, POS, and inventory. */
select{appearance:none;-webkit-appearance:none;min-height:44px;padding:10px 42px 10px 13px!important;border:1px solid #d8d6cf!important;border-radius:9px!important;background-color:#fff!important;background-image:linear-gradient(45deg,transparent 50%,#706c62 50%),linear-gradient(135deg,#706c62 50%,transparent 50%),linear-gradient(to right,#ebe9e2,#ebe9e2)!important;background-position:calc(100% - 18px) calc(50% - 2px),calc(100% - 13px) calc(50% - 2px),calc(100% - 38px) 50%!important;background-size:5px 5px,5px 5px,1px 22px!important;background-repeat:no-repeat!important;color:#171717!important;font-size:12px!important;font-weight:500!important;line-height:1.3;cursor:pointer;box-shadow:0 1px 2px #00000008;transition:border-color .18s,box-shadow .18s,background-color .18s}.form-stack select,.form-grid select{margin-top:6px}select:hover:not(:disabled){border-color:#aaa69a!important;background-color:#fdfdfb!important}select:focus-visible{border-color:#282722!important;box-shadow:0 0 0 3px #b98b4926,0 1px 2px #0000000d!important}select:disabled{cursor:not-allowed;opacity:.55;background-color:#f1f0eb!important;color:#8b887f!important}select option,select optgroup{background:#fff;color:#171717;font-size:13px}select optgroup{font-weight:700}.branch-picker select{min-width:220px;background-color:#faf9f5!important;border-color:#cbc8be!important}.branch-picker select:hover{background-color:#fff!important}.table-toolbar>select{border-radius:9px!important}.modal select{background-color:#fbfbf8!important}select[multiple]{appearance:auto;-webkit-appearance:auto;padding-right:13px!important;background-image:none!important;min-height:110px}
@media(max-width:700px){select{min-height:48px;font-size:16px!important;padding-top:11px!important;padding-bottom:11px!important}.branch-picker,.branch-picker select{width:100%;min-width:0}}
@media(forced-colors:active){select{appearance:auto;background-image:none!important;padding-right:13px!important;border:1px solid ButtonText!important}}

/* Theme-controlled open dropdown list; native select stays synced for forms. */
.custom-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}.custom-select{position:relative;width:100%;margin-top:6px}.custom-select-button{position:relative;width:100%;min-height:44px;padding:10px 42px 10px 13px;border:1px solid #d8d6cf;border-radius:9px;background:#fff;text-align:left;color:#171717;font-size:12px;font-weight:500;box-shadow:0 1px 2px #00000008;transition:border-color .18s,box-shadow .18s,background .18s}.custom-select-button:after{content:'';position:absolute;right:16px;top:50%;width:7px;height:7px;border-right:1.5px solid #706c62;border-bottom:1.5px solid #706c62;transform:translateY(-65%) rotate(45deg);transition:transform .2s}.custom-select-button:before{content:'';position:absolute;right:37px;top:10px;bottom:10px;width:1px;background:#ebe9e2}.custom-select-button:hover:not(:disabled){border-color:#aaa69a;background:#fdfdfb}.custom-select-button:focus-visible,.custom-select.open .custom-select-button{outline:0;border-color:#282722;box-shadow:0 0 0 3px #b98b4926}.custom-select.open .custom-select-button:after{transform:translateY(-25%) rotate(225deg)}.custom-select-button:disabled{cursor:not-allowed;opacity:.55;background:#f1f0eb}.custom-select-list{position:absolute;z-index:120;top:calc(100% + 6px);left:0;right:0;max-height:260px;overflow:auto;padding:6px;border:1px solid #d8d6cf;border-radius:10px;background:#fff;box-shadow:0 18px 44px -16px #0006;animation:custom-select-in .18s var(--ease-out)}.custom-select-option{position:relative;width:100%;min-height:40px;padding:9px 34px 9px 10px;border-radius:7px;text-align:left;color:#333;font-size:12px;line-height:1.35;transition:background .12s,color .12s}.custom-select-option:hover:not(:disabled),.custom-select-option:focus-visible{outline:0;background:#f1efe8;color:#111}.custom-select-option.selected{background:#171717;color:#fff;font-weight:650}.custom-select-option.selected:after{content:'';position:absolute;right:13px;top:50%;width:8px;height:4px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-70%) rotate(-45deg)}.custom-select-option:disabled{opacity:.38;cursor:not-allowed}.custom-select-group{padding:9px 10px 5px;color:#918d83;font-size:8px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.modal .custom-select-button{background:#fbfbf8}.branch-picker .custom-select{margin-top:0;min-width:220px}.branch-picker .custom-select-button{background:#faf9f5}.custom-select-list::-webkit-scrollbar{width:8px}.custom-select-list::-webkit-scrollbar-thumb{background:#cbc7bd;border:2px solid #fff;border-radius:99px}@keyframes custom-select-in{from{opacity:0;transform:translateY(-5px) scale(.99)}to{opacity:1;transform:none}}
@media(max-width:700px){.custom-select-button{min-height:48px;font-size:16px}.custom-select-option{min-height:46px;font-size:14px}.branch-picker .custom-select{width:100%;min-width:0}}
@media(prefers-reduced-motion:reduce){.custom-select-list{animation:none}.custom-select-button:after{transition:none}}

.inventory-product-table tbody tr.is-selected td{background:#f1eee5}.inventory-product-table tbody tr.is-out-of-stock.is-selected td{background:#302d27}.generic-selection-bar [data-copy-selected]{min-width:108px}.generic-selection-bar [data-download-selected]{min-width:118px}

/* Out-of-stock list rows stay compact and readable without becoming a dark block. */
.inventory-product-table tr.is-out-of-stock{background:#f7f6f2;color:var(--ink)}
.inventory-product-table tr.is-out-of-stock:hover{background:#f1efe8}
.inventory-product-table tr.is-out-of-stock td{border-bottom-color:#e7e4dc}
.inventory-product-table tr.is-out-of-stock .table-product img{filter:grayscale(1);opacity:.58}
.inventory-product-table tr.is-out-of-stock .table-product>div{display:grid;grid-template-columns:auto 1fr;align-items:center;justify-items:start;column-gap:6px}
.inventory-product-table tr.is-out-of-stock .table-product strong{grid-column:1/-1;color:#454545}
.inventory-product-table tr.is-out-of-stock .table-product span{color:#777;margin-top:2px}
.inventory-product-table tr.is-out-of-stock .size-tag{background:#ebe9e2;color:#666}
.inventory-product-table tr.is-out-of-stock .muted{color:#777}
.inventory-product-table tr.is-out-of-stock .stock-number{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:26px;border-radius:6px;background:#e9e6de;color:#555}
.inventory-product-table tr.is-out-of-stock .button{background:#fff;color:#222;border-color:#c9c6bd;min-height:36px}
.inventory-product-table tr.is-out-of-stock .button:hover{background:#111;color:#fff;border-color:#111}
.inventory-product-table tr.is-out-of-stock.is-selected td{background:#e9e5da}
.inventory-product-table tr.is-out-of-stock .out-of-stock-inline{display:inline-flex!important;align-items:center;width:auto;margin:2px 0 0;padding:3px 6px;border:1px solid #cbc7bc;border-radius:99px;background:#fff;color:#595959;font-size:7px;line-height:1;letter-spacing:.08em}

/* Catalog-first inventory layout and cross-product bulk stock editor. */
.inventory-workspace{padding-inline:18px;padding-bottom:18px}.inventory-workspace>.tabs{margin-inline:-18px;padding-inline:18px}.inventory-toolbar{margin:0 0 16px;padding:14px;border:1px solid #e5e3dc;border-radius:12px;background:#faf9f5}.inventory-products-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.inventory-product-card{display:flex;min-height:390px;flex-direction:column}.inventory-card-image>img{height:190px}.inventory-card-body{flex:1}.inventory-card-body>div:first-child{min-height:47px}.inventory-card-body h3{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.25}.inventory-product-card .button{margin-top:auto}.inventory-bulk-picker-modal{width:min(1080px,calc(100% - 28px));padding:24px}.inventory-bulk-filters{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);gap:12px;margin-bottom:12px}.inventory-bulk-filters label{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.inventory-bulk-filters input{margin-top:6px}.inventory-bulk-selection{display:flex;align-items:center;gap:12px;min-height:42px;padding:8px 12px;border:1px solid #dedbd2;border-radius:9px 9px 0 0;background:#f6f4ee;font-size:10px}.inventory-bulk-selection strong{font-size:11px}.inventory-bulk-selection span:nth-child(2){color:#777}.inventory-bulk-selection button{margin-left:auto;color:#72513a;font-size:9px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.inventory-bulk-table-wrap{max-height:52dvh;margin-bottom:9px;border:1px solid #dedbd2;border-top:0;border-radius:0 0 9px 9px}.inventory-bulk-table-wrap thead{position:sticky;z-index:2;top:0;background:#fff}.inventory-bulk-table-wrap tbody strong{display:block;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-bulk-table-wrap input[type=checkbox]{width:17px;height:17px;accent-color:#111}.inventory-bulk-table-wrap .mono{font-size:9px}.inventory-bulk-empty{padding:34px!important;text-align:center;color:#888}.inventory-bulk-picker-modal>[data-bulk-limit-note]{min-height:16px;margin:6px 0 10px}.inventory-bulk-picker-modal>[data-bulk-continue]{min-height:48px}
@media(max-width:800px){.inventory-workspace{padding-inline:12px}.inventory-workspace>.tabs{margin-inline:-12px;padding-inline:12px}.inventory-toolbar{padding:10px}.inventory-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inventory-product-card{min-height:350px}.inventory-card-image>img{height:150px}.inventory-bulk-picker-modal{padding:18px}.inventory-bulk-filters{grid-template-columns:1fr}.inventory-bulk-table-wrap th:nth-child(4),.inventory-bulk-table-wrap td:nth-child(4),.inventory-bulk-table-wrap th:nth-child(6),.inventory-bulk-table-wrap td:nth-child(6){display:none}}
@media(max-width:520px){.inventory-products-grid{grid-template-columns:1fr}.inventory-product-card{min-height:0}.inventory-card-image>img{height:210px}.inventory-bulk-selection{flex-wrap:wrap}.inventory-bulk-selection button{margin-left:0}.inventory-bulk-table-wrap th:nth-child(5),.inventory-bulk-table-wrap td:nth-child(5){display:none}}

/* One-step stock editing from each product card. */
.inventory-quick-stock-modal{width:min(920px,calc(100% - 28px));padding:24px}.inventory-quick-stock-modal>form{display:block}.inventory-quick-controls{display:grid;grid-template-columns:minmax(240px,360px);gap:12px;margin-bottom:12px}.inventory-quick-controls label,.inventory-quick-reason{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.inventory-quick-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid #dedbd2;border-radius:9px 9px 0 0;background:#f6f4ee;font-size:10px}.inventory-quick-summary>span{color:#68645d}.inventory-quick-summary strong{white-space:nowrap}.inventory-quick-summary b{font-size:13px}.inventory-quick-table-wrap{max-height:48dvh;border:1px solid #dedbd2;border-top:0;border-radius:0 0 9px 9px}.inventory-quick-table-wrap thead{position:sticky;z-index:2;top:0;background:#fff}.inventory-quick-table-wrap td:first-child strong,.inventory-quick-table-wrap td:first-child small{display:block}.inventory-quick-table-wrap td:first-child small{margin-top:3px;color:#777;font-size:9px}.inventory-quick-table-wrap .stock-number{display:table-cell}.quick-stock-stepper{display:grid;grid-template-columns:34px 70px 34px;align-items:center;width:max-content;border:1px solid #d8d5cc;border-radius:8px;overflow:hidden;background:#fff}.quick-stock-stepper button{height:36px;background:#f2f0e9;font-size:17px;font-weight:600}.quick-stock-stepper button:hover{background:#dedbd1}.quick-stock-stepper input{width:70px;height:36px;min-height:0;margin:0;padding:5px;border:0;border-inline:1px solid #d8d5cc;border-radius:0;text-align:center;font-size:12px;font-weight:700;-moz-appearance:textfield}.quick-stock-stepper input::-webkit-inner-spin-button{appearance:none}.inventory-quick-reason{display:block;margin-top:13px}.inventory-quick-reason input{margin-top:6px}.inventory-quick-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px}.inventory-quick-footer .helper{margin:0}.inventory-quick-footer .button{min-width:220px}.inventory-product-card .button[data-inventory-product]{font-weight:750}
@media(max-width:700px){.inventory-quick-stock-modal{padding:17px}.inventory-quick-controls{grid-template-columns:1fr}.inventory-quick-table-wrap th:nth-child(2),.inventory-quick-table-wrap td:nth-child(2),.inventory-quick-table-wrap th:nth-child(4),.inventory-quick-table-wrap td:nth-child(4){display:none}.inventory-quick-footer{align-items:stretch;flex-direction:column}.inventory-quick-footer .button{width:100%}.quick-stock-stepper{grid-template-columns:36px 62px 36px}.quick-stock-stepper input{width:62px}}

/* Inventory stock sheet: exact counts across the whole catalog. */
.inventory-stock-sheet-modal{width:min(1240px,calc(100% - 24px));height:min(900px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:22px;overflow:hidden}
.inventory-stock-sheet-modal>form{display:flex;height:100%;min-height:0;flex-direction:column}
.inventory-sheet-controls{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(220px,1fr) minmax(260px,1.3fr);gap:10px;margin-bottom:10px}
.inventory-sheet-controls label,.inventory-sheet-footer label{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.inventory-sheet-controls input,.inventory-sheet-controls select,.inventory-sheet-footer input{margin-top:5px;background:#fff;text-transform:none;letter-spacing:0;font-weight:400}
.inventory-sheet-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 12px;border:1px solid #dcd9d0;border-radius:9px 9px 0 0;background:#f5f3ed;font-size:10px}
.inventory-sheet-summary b{font-size:13px}.inventory-sheet-summary strong.has-error,.inventory-sheet-summary strong:has(.has-error){color:#b91c1c}
.inventory-sheet-table-wrap{flex:1;min-height:220px;border:1px solid #dcd9d0;border-top:0;border-radius:0 0 9px 9px}
.inventory-stock-sheet{min-width:940px}.inventory-stock-sheet thead{position:sticky;z-index:3;top:0;background:#f9f8f4}
.inventory-stock-sheet th:first-child,.inventory-stock-sheet td:first-child{position:sticky;left:0;z-index:1;min-width:210px;background:#fff;box-shadow:1px 0 #e5e3dc}
.inventory-stock-sheet th:first-child{z-index:4;background:#f9f8f4}.inventory-stock-sheet td:first-child strong{display:block;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-stock-sheet td:nth-child(2) strong,.inventory-stock-sheet td:nth-child(2) small{display:block}.inventory-stock-sheet td:nth-child(2) small{margin-top:3px;color:#777;font-size:9px}
.inventory-sheet-cell{width:110px;border:1px solid #d5d2c8;border-radius:6px;background:#fff;transition:border-color .15s,box-shadow .15s,background .15s}
.inventory-sheet-cell:focus-within{border-color:#111;box-shadow:0 0 0 2px #1112}.inventory-sheet-cell.is-edited{border-color:#b77845;background:#fff8ef;box-shadow:inset 0 0 0 1px #b77845}
.inventory-sheet-cell input{width:108px;height:38px;min-height:0;margin:0;padding:6px;border:0!important;border-radius:5px!important;background:transparent!important;box-shadow:none!important;text-align:center;font-size:13px;font-weight:750;-moz-appearance:textfield}
.inventory-sheet-cell input::-webkit-inner-spin-button{appearance:none}.inventory-sheet-cell input::placeholder{color:#aaa;font-weight:600}.inventory-sheet-cell.is-edited input{color:#955a2c}
.inventory-sheet-footer{display:grid;grid-template-columns:minmax(300px,1fr) minmax(260px,.8fr) auto;align-items:end;gap:12px;padding-top:12px}.inventory-sheet-footer .helper{margin:0 0 9px}.inventory-sheet-footer .button{min-height:43px;white-space:nowrap}
.inventory-sheet-preview{display:flex;align-items:center;gap:12px;padding:10px 12px;margin-top:9px;border:1px solid #e3d6c5;border-radius:8px;background:#fffaf2;font-size:10px}.inventory-sheet-preview strong{font-size:11px;white-space:nowrap}.inventory-sheet-preview span{color:#777;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-sheet-level{width:78px}.inventory-sheet-level input{width:76px}
.inventory-undo-banner{display:flex;align-items:center;gap:12px;margin:-10px 0 18px;padding:12px 14px;border:1px solid #cdddc8;border-radius:10px;background:#f1f7ef;color:#416047}.inventory-undo-banner>svg{width:20px}.inventory-undo-banner>div{display:flex;flex:1;min-width:0;flex-direction:column}.inventory-undo-banner strong{font-size:11px}.inventory-undo-banner span{margin-top:2px;font-size:9px;color:#687966}.inventory-undo-banner form{margin:0}.inventory-saved-views{display:flex;flex-basis:100%;align-items:center;gap:6px;min-height:0}.inventory-saved-views:empty{display:none}.inventory-saved-view{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #d9d6cd;border-radius:999px;background:#fff;color:#555;font-size:9px;font-weight:650}.inventory-saved-view:hover{border-color:#999;color:#111}.inventory-saved-view button{color:#aaa;font-size:13px;line-height:1}.inventory-saved-view button:hover{color:#b91c1c}
.inventory-history-link{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:8px;color:#777;font-size:9px;font-weight:650}.inventory-history-link svg{width:12px}.inventory-history-link:hover{color:#111}.inventory-row-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}.inventory-history-toolbar{display:flex;align-items:center;gap:10px;padding:14px 0}.inventory-history-toolbar form{display:flex;align-items:center;gap:8px;flex:1;max-width:620px}.inventory-history-toolbar .search-field{flex:1}.inventory-history-toolbar>span{margin-left:auto;color:#888;font-size:9px}
@media(max-width:800px){.inventory-stock-sheet-modal{padding:16px}.inventory-sheet-controls{grid-template-columns:1fr 1fr}.inventory-sheet-controls label:last-child{grid-column:1/-1}.inventory-sheet-footer{grid-template-columns:1fr}.inventory-sheet-footer .button{width:100%}.inventory-sheet-footer .helper{margin:0}.inventory-stock-sheet th:nth-child(3),.inventory-stock-sheet td:nth-child(3){display:none}}
@media(max-width:650px){.inventory-undo-banner{align-items:flex-start;flex-wrap:wrap}.inventory-undo-banner form{width:100%}.inventory-undo-banner .button{width:100%}.inventory-sheet-preview{align-items:flex-start;flex-direction:column}.inventory-sheet-preview span{white-space:normal}}

/* Shared responsive modal sizing: every form stays inside the visible screen. */
.modal:not(.inventory-stock-sheet-modal){width:min(var(--modal-width,510px),calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.modal>form,.modal>div,.modal fieldset,.modal label{min-width:0;max-width:100%}
.modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.modal input,.modal textarea,.modal select,.modal .custom-select{max-width:100%}
.modal textarea{resize:vertical}
.modal .table-scroll{max-width:100%;overscroll-behavior-inline:contain}
.modal-heading{min-width:0}.modal-heading>div{min-width:0}.modal-heading h2{overflow-wrap:anywhere;line-height:1.05}
.stock-picker-modal,.new-product-modal{--modal-width:560px}.pos-variant-modal{--modal-width:480px}.scanner-modal{--modal-width:560px}.alert-modal{--modal-width:460px}.inventory-bulk-picker-modal{--modal-width:1080px}.inventory-quick-stock-modal{--modal-width:920px}
.inventory-stock-sheet-modal{inset:0;width:min(1240px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto}
@media(max-width:640px){
  .modal:not(.inventory-stock-sheet-modal){inset:0;width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:auto;padding:16px;border-radius:12px}
  .modal-heading{position:sticky;z-index:8;top:-16px;margin:-16px -16px 12px;padding:16px 16px 10px;background:#fff;border-bottom:1px solid #efeee9}
  .modal-heading h2{font-size:clamp(21px,7vw,27px)}
  .modal .form-grid,.modal .inventory-quick-controls,.modal .inventory-bulk-filters{grid-template-columns:1fr}
  .modal .form-stack{gap:14px}
  .modal input,.modal textarea,.modal .custom-select-button{font-size:16px}
  .modal .button.full-width{min-height:46px}
  .scanner-manual{grid-template-columns:1fr}.scanner-manual .button{width:100%}
  .alert-modal-actions{position:sticky;bottom:-16px;margin:0 -16px -16px;padding:12px 16px 16px;background:#fff;border-top:1px solid #efeee9}.alert-modal-actions .button{flex:1}
  .inventory-stock-sheet-modal{width:calc(100vw - 8px);height:calc(100dvh - 8px);max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px);padding:14px;border-radius:10px}
  .inventory-stock-sheet-modal .modal-heading{position:static;flex:none;margin:0 0 8px;padding:0 0 10px}
}

/* POS payment workflow and itemized receipt. */
.pos-summary{padding-top:10px;border-top:1px solid var(--line)}.pos-summary>span,.pos-summary>label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0;font-size:11px}.pos-summary>label>span{display:flex;align-items:center;width:116px;border:1px solid #d9d7d0;border-radius:7px;background:#fff;padding-left:9px}.pos-summary>label input{width:100%;min-height:34px;border:0;padding:6px 8px;text-align:right}.pos-summary .pos-total{margin-top:5px;padding:13px 0}.pos-line-copy button{margin-top:4px;color:#8a4c45;font-size:8px;text-decoration:underline;text-underline-offset:2px}.pos-qty button:disabled{opacity:.3;cursor:not-allowed}.pos-payment-panel{padding:12px;border:1px solid var(--line);border-radius:9px;background:#faf9f5}.pos-payment-panel>label{margin:0}.cash-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px}.cash-shortcuts button{min-height:34px;border:1px solid #d9d7d0;border-radius:6px;background:#fff;font-size:9px;font-weight:700}.cash-shortcuts button:hover{border-color:#888;background:#f3f1eb}.payment-result{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid #e2e0d9;font-size:10px}.payment-result strong{font-size:16px}.payment-result.is-due strong{color:#a64235}.receipt-paper{width:min(390px,100%);padding:22px;background:#fff;border:1px dashed #b9b6ad;color:#111}.receipt-paper header{text-align:center;padding-bottom:13px;border-bottom:1px dashed #bbb}.receipt-paper header h2{font-size:24px;margin:3px 0}.receipt-paper header p,.receipt-paper footer{font-size:9px;color:#666}.receipt-meta{display:grid;gap:3px;padding:11px 0;border-bottom:1px dashed #bbb;font-size:9px}.receipt-lines>div{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px dotted #ddd;font-size:10px}.receipt-lines span,.receipt-lines b,.receipt-lines small{display:block}.receipt-lines small{margin-top:2px;color:#666;font-size:8px}.receipt-totals{display:grid;gap:6px;padding:12px 0}.receipt-totals span{display:flex;justify-content:space-between;gap:12px;font-size:10px}.receipt-totals .receipt-grand{padding:8px 0;border-block:1px solid #111;font-size:14px}.receipt-paper footer{text-align:center;padding-top:10px;border-top:1px dashed #bbb}.receipt-actions{display:grid;align-content:center;gap:9px;min-width:170px}.receipt-actions>strong{font-size:28px}.pos-receipt{align-items:stretch;justify-content:center}.pos-receipt .receipt-actions{margin-left:0}
@media(max-width:600px){.cash-shortcuts{grid-template-columns:repeat(2,1fr)}.pos-receipt{display:block}.receipt-paper{margin:auto}.receipt-actions{margin-top:14px}.receipt-actions>strong{text-align:center}}
@media print{body *{visibility:hidden!important}.pos-receipt,.pos-receipt .receipt-paper,.pos-receipt .receipt-paper *{visibility:visible!important}.pos-receipt{display:block!important;position:absolute!important;inset:0!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important}.pos-receipt .receipt-paper{width:80mm!important;margin:0 auto!important;padding:5mm!important;border:0!important}.pos-receipt .receipt-actions{display:none!important}}

/* Compact cashier panel: dense enough for a counter without crowding controls. */
.pos-cart{padding:16px}.pos-cart>header{padding-bottom:10px}.pos-cart h2{font-size:22px}.pos-cart-lines{min-height:108px;max-height:260px}.pos-cart-lines:has([data-cart-empty]:not([hidden])){display:grid;place-items:center}.pos-cart-lines .empty-state.small{padding:18px 8px}.pos-cart .form-stack{gap:12px}.pos-cart .form-stack>label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px;margin:0;font-size:10px}.pos-cart .form-stack>label>input{grid-column:1/-1;margin-top:5px;min-height:42px}.pos-summary{padding-top:8px}.pos-summary>span,.pos-summary>label{min-height:38px;padding:4px 0}.pos-summary>label{display:grid;grid-template-columns:1fr 116px;text-align:left}.pos-summary>label>span{width:116px;justify-self:end}.pos-summary>label input{margin:0!important;min-height:34px!important}.pos-summary .pos-total{min-height:58px;margin-top:3px;padding:10px 0}.pos-total strong{font-size:23px}.payment-methods{gap:6px}.payment-methods legend{margin-bottom:6px}.payment-methods span{min-height:42px}.pos-payment-panel{padding:10px}.pos-payment-panel input{min-height:42px}.cash-shortcuts{margin-top:6px}.cash-shortcuts button{min-height:36px}.payment-result{margin-top:8px;padding-top:8px}.pos-cart [data-checkout-button]{min-height:46px;margin-top:1px}.receipt-logo{display:block;width:132px;height:50px;margin:0 auto 8px;object-fit:contain;filter:grayscale(1)}
.pos-payment-panel>[hidden],.cash-shortcuts[hidden]{display:none!important}
.pos-cart [data-cart-empty][hidden]{display:none!important}
@media(max-width:600px){.pos-cart{padding:14px}.pos-cart-lines{min-height:96px}.pos-summary>label{grid-template-columns:1fr 108px}.pos-summary>label>span{width:108px}}
@media print{@page{size:80mm 297mm;margin:0}html,body{width:80mm!important;margin:0!important;padding:0!important;background:#fff!important}body>.app-shell{display:block!important;margin:0!important}.pos-receipt{width:80mm!important}.receipt-logo{width:42mm!important;height:16mm!important;filter:grayscale(1)!important}}

/* Production workbook connection. */
.google-sheet-strip{display:flex;align-items:center;gap:12px;margin:-8px 0 20px;padding:12px 15px;border:1px solid #dcd9cf;border-radius:10px;background:#f8f7f3}.google-sheet-strip>svg{width:22px;height:22px;flex:0 0 auto}.google-sheet-strip>div{display:flex;min-width:0;flex:1;flex-direction:column}.google-sheet-strip strong{font-size:11px}.google-sheet-strip>div span{margin-top:2px;color:#777;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.google-sheet-strip-actions{display:flex;align-items:center;gap:13px}.google-sheet-strip-actions>a{display:flex;align-items:center;gap:5px;color:#444;font-size:9px;font-weight:700;white-space:nowrap}.google-sheet-strip-actions>a svg{width:12px;height:12px}.google-sheet-strip.is-connected{border-color:#cbdcc7;background:#f0f6ee;color:#466441}.google-sheet-strip.has-error{border-color:#e2c4bb;background:#fff4f1;color:#984d3d}.google-sheet-strip.needs-setup{border-style:dashed;color:#76624f}.page-heading .heading-actions form{display:inline-flex}
@media(max-width:700px){.google-sheet-strip{align-items:flex-start;flex-wrap:wrap}.google-sheet-strip>div{flex-basis:calc(100% - 40px)}.google-sheet-strip>div span{white-space:normal}.google-sheet-strip-actions{margin-left:34px;flex-wrap:wrap}}

/* One-piece peso input: stable prefix, divider, and aligned amount. */
.pos-summary>label>span{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:stretch;width:116px;min-height:38px;padding:0;overflow:hidden;border:1px solid #cbc8bf;border-radius:8px;background:#fff;box-shadow:0 1px 2px #00000008}
.pos-summary>label>span>b{display:grid;place-items:center;margin:0;background:#f4f2ec;border-right:1px solid #ddd9cf;font-size:11px;font-weight:700;color:#333}
.pos-summary>label>span>input{min-width:0;width:100%;height:36px;min-height:36px!important;margin:0!important;padding:6px 10px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;text-align:right;font-variant-numeric:tabular-nums}
.pos-summary>label>span:focus-within{border-color:#282722;box-shadow:0 0 0 3px #b98b4926}
@media(max-width:600px){.pos-summary>label>span{width:108px;grid-template-columns:30px minmax(0,1fr)}}

/* Compact but detailed Orders table. */
.orders-table .checkbox-cell{width:42px}.orders-table td{padding-top:11px;padding-bottom:11px}.order-identity{min-width:130px}.order-identity .order-link{font-size:12px}.order-source-tag{display:inline-block;margin-top:5px;padding:2px 5px;border-radius:4px;background:#eee9df;color:#806a44;font-size:7px;font-weight:750;letter-spacing:.08em}.order-item-summary{display:grid;grid-template-columns:48px minmax(155px,1fr);align-items:center;gap:10px;min-width:245px}.order-item-summary>img,.order-item-summary>.product-placeholder{width:48px;height:48px;border-radius:8px;object-fit:cover;background:#f2f1ec}.order-item-summary>.product-placeholder{display:flex;align-items:center;justify-content:center}.order-item-summary>.product-placeholder svg{width:20px}.order-item-summary strong,.order-item-summary small{display:block}.order-item-summary strong{font-size:11px;line-height:1.3}.order-item-summary small{margin-top:5px;color:#858178;font-size:8px;line-height:1.4}.order-item-summary small em{font-style:normal;color:#5f5b52}.order-variant-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.order-variant-chips b{padding:3px 6px;border-radius:5px;background:#efede7;color:#555047;font-size:7px;letter-spacing:.05em}.order-quantity{text-align:center}.order-quantity strong,.order-quantity small{display:block}.order-quantity strong{font-size:15px}.order-quantity small{margin-top:2px;color:#999;font-size:7px;white-space:nowrap}.order-date{white-space:nowrap}.order-date strong,.order-date span{display:block}.order-date strong{font-size:10px}.order-date span{font-size:8px;color:#999;margin-top:3px}.orders-table .fulfillment{min-width:145px}.orders-table .badge{white-space:nowrap}
@media(max-width:900px){.order-item-summary{min-width:210px}.orders-table .order-date,.orders-table .order-date-head{display:none}}
.pos-product-group{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;align-self:start}.pos-product-head{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:12px;background:#fff;min-height:82px}.pos-product-head:hover{background:#fafaf7}.pos-product-head img{width:58px;height:58px;object-fit:cover;border-radius:7px;background:#f3f3ef}.pos-product-head span{min-width:0}.pos-product-head strong,.pos-product-head small{display:block}.pos-product-head strong{font-size:12px}.pos-product-head small{font-size:9px;color:#777;margin-top:4px}.pos-product-head small:after{content:'Choose size & color'}.pos-product-head:after{content:'+';margin-left:auto;font-size:18px;color:#888;transition:transform .2s}.pos-product-head[aria-expanded=true]:after{transform:rotate(45deg)}.pos-variants{display:grid;gap:6px;padding:8px;border-top:1px solid #eee;background:#fafaf7;animation:rise-in .2s var(--ease-out)}.pos-product-group:not(:has(.pos-product:not([hidden]))){display:none}.pos-catalog:has([data-pos-search]:not(:placeholder-shown)) .pos-variants[hidden]{display:grid}.pos-variants .pos-product{display:grid;grid-template-columns:1fr auto auto;align-items:center;padding:9px 10px;min-height:48px;border-radius:7px;background:#fff}.pos-variants .pos-product span{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.pos-variants .pos-product span strong{display:none}.pos-variants .pos-product small{font-size:10px;color:#333;margin:0}.pos-variants .pos-product em{font-size:8px;margin:0}.pos-variants .pos-product>b{grid-column:auto;font-size:10px}.pos-variants .pos-product>i{position:static;font-size:8px;white-space:nowrap}.pos-variants .pos-product:hover:not(:disabled){transform:none;box-shadow:none;border-color:#999}
/* POS payment choices: keep the hidden radios inside their label so the page never scrolls sideways on phones. */
.payment-methods label{position:relative}
.payment-methods input{inset:0;width:100%;height:100%;margin:0}
.payment-methods input:focus-visible+span{outline:2px solid #b87c38;outline-offset:2px}

/* ── Branches & toasts ─────────────────────────────────────────── */
:root{--branch:#6f86ad}
.seg.branch{background:var(--branch)}
.route-icon.branch{background:var(--branch)}
.fill-note.branch{color:#4f6790}
.fill-note+.fill-note{margin-top:4px}
.branch-note{display:flex;gap:8px;align-items:flex-start;margin:10px 0 0!important;padding:10px 12px;border-radius:8px;background:#eef2f8;color:#3f5577!important;font-size:12px!important;line-height:1.6}
.branch-note svg{width:15px;height:15px;flex-shrink:0;margin-top:2px}
.branch-box{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px 14px;border-radius:10px;background:#fff;border:1px solid #d6dfec;box-shadow:0 0 0 0 #6f86ad44;animation:rise-in .4s var(--ease-out) .1s backwards,branch-glow 2.4s ease-in-out 1s infinite}
.branch-box>svg{width:20px;height:20px;color:var(--branch);flex-shrink:0}
.branch-box>div{flex:1;min-width:0}
.branch-box strong{display:block;font-size:12px}
.branch-box span{font-size:11px;color:#7a8597;line-height:1.5}
.branch-box form{margin:0!important}
@keyframes branch-glow{50%{box-shadow:0 0 0 4px #6f86ad22}}
.attention-icon.match svg{color:inherit}
.step-tab.needs-attention .stage-icon{background:var(--branch);color:#fff;animation:branch-glow 2.4s ease-in-out infinite}
.transfer-panel{margin-bottom:10px}
.transfer-form{padding:0 21px 21px}
.transfer-group{border:1px solid #dfe5ee;border-radius:12px;overflow:hidden;margin-bottom:14px}
.transfer-group header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#f4f6fa;border-bottom:1px solid #e3e8f0}
.transfer-group header>div{flex:1}
.transfer-group header b{display:block;font-size:13px}
.transfer-group header small{font-size:11px;color:#7a8597}
.location-icon{width:32px;height:32px;border-radius:9px;background:var(--branch);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.location-icon svg{width:16px;height:16px}
.check-all{flex-direction:row;align-items:center;gap:8px;font-size:11px;font-weight:600;color:#4f6790;cursor:pointer}
.transfer-actions{position:sticky;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 30px -18px #0005}
.transfer-actions p{display:flex;align-items:center;gap:6px;font-size:11px}
.transfer-actions p svg{width:14px;height:14px}
.location-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin:6px 0 26px}
.location-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:12px}
.location-card.is-main{border-color:#cfe0cb;background:linear-gradient(180deg,#f5f9f3,#fff 70%)}
.location-card.is-main .location-icon{background:#6f917d}
.location-head{display:flex;align-items:center;gap:12px}
.location-head>div{flex:1;min-width:0}
.location-head strong{display:block;font-size:14px}
.location-head small{font-size:11px;color:#999}
.location-card p.muted{font-size:11px;line-height:1.6}
.location-card form{margin:0}
.toggle-button{display:flex;align-items:flex-start;gap:12px;text-align:left;width:100%;padding:0}
.toggle-button b{display:block;font-size:12px}
.toggle-button small{display:block;font-size:10px;color:#999}
.toggle-ui.on{background:#111}
.toggle-ui.on::after{transform:translateX(16px)}
.toggle-button:focus-visible .toggle-ui{outline:2px solid #b87c38;outline-offset:2px}
.location-card .text-link{padding:0;min-height:30px;color:#555}
.location-card .text-link svg{width:14px;height:14px}

.toast-stack{position:fixed;top:auto;right:20px;left:auto;bottom:20px;z-index:2000;width:min(380px,calc(100vw - 32px));margin:0;padding:0;border:0;background:transparent;overflow:visible;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.toast-stack:empty{display:none}
.app-toast{pointer-events:auto;position:relative;overflow:hidden;display:flex;align-items:flex-start;gap:10px;padding:13px 12px 13px 14px;border-radius:12px;background:#fff;border:1px solid #dce8d7;box-shadow:0 18px 40px -18px #0006;color:#3f5a46;animation:toast-in .5s var(--spring)}
.app-toast>svg{width:20px;height:20px;flex-shrink:0;color:#5d7f53;margin-top:1px}
.app-toast p{flex:1;font-size:12px;line-height:1.55;color:#333}
.app-toast p a{font-weight:700;color:#8a5a2b;text-decoration:underline;margin-left:2px}
.app-toast .icon-button{width:28px;height:28px;min-width:28px;margin:-4px -4px 0 0}
.app-toast .icon-button svg{width:15px;height:15px}
.app-toast::after{content:'';position:absolute;left:0;bottom:0;height:3px;width:100%;background:#8fb08a;transform-origin:left;animation:toast-timer 6s linear forwards}
.app-toast:hover::after{animation-play-state:paused}
.app-toast.leaving{animation:toast-out .3s var(--ease-out) forwards}
@media(max-width:700px){
.toast-stack{top:auto;bottom:16px;right:16px;left:16px;width:auto}
.transfer-form{padding:0 14px 14px}
.transfer-group header{flex-wrap:wrap}
.branch-box{flex-wrap:wrap}
}
.guide-route{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.guide-section em{font-style:normal;color:#4f6790;font-weight:600}
@media(min-width:981px){.orders-filter-bar{grid-template-columns:minmax(170px,1fr) 132px repeat(3,auto) auto auto}}
a.chip{text-decoration:none;transition:border-color .15s,box-shadow .15s}
a.chip:hover,a.chip.selected{border-color:currentColor}
a.chip.selected{box-shadow:inset 0 0 0 1px currentColor}
.chip.branch{color:#4f6790;border-color:#d9e1ee;background:#f0f4fa}
.chip.match{color:#a5763e;border-color:#efdfc9;background:#fbf4ea}
.sort-head{display:inline-flex;align-items:center;gap:4px;color:inherit;text-decoration:none}
.sort-head svg{width:11px;height:11px;opacity:.4}
.sort-head:hover,.sort-head.active{color:#111}
.sort-head.active svg{opacity:1}
.orders-table td .badge{font-size:11px;font-weight:600;padding:6px 11px;border-radius:99px;gap:7px}
.orders-table td .badge>span{width:7px;height:7px}
.orders-table td .badge.new{background:#2563eb;border-color:#2563eb;color:#fff}
.orders-table td .badge.needs-review{background:#f59e0b;border-color:#f59e0b;color:#fff}
.orders-table td .badge.in_production{background:#ffedd5;border-color:#fdba74;color:#c2410c}
.orders-table td .badge.ready_to_pack{background:#d1fae5;border-color:#6ee7b7;color:#047857}
.orders-table td .badge.packed{background:#e0f2fe;border-color:#7dd3fc;color:#0369a1}
.orders-table td .badge.completed{background:#059669;border-color:#059669;color:#fff}
.orders-table td .badge.on_hold{background:#fef3c7;border-color:#fcd34d;color:#92400e}
.orders-table td .badge.cancelled{background:#fee2e2;border-color:#fca5a5;color:#b91c1c}
.ship-form-head{display:grid;grid-template-columns:190px 160px 1fr;gap:12px;align-items:end;padding:12px 16px;background:#faf9f6;border-top:1px solid #efefef}
.ship-form-head label{font-size:10px;margin:0}
.ship-form-head .toolbar-note{margin:0 0 10px;justify-self:end}
.ship-table td{vertical-align:middle}
.ship-table .custom-select{min-width:150px}
.ship-table [data-ship-tracking]{width:100%;min-width:200px;min-height:40px;font-family:ui-monospace,Consolas,monospace;letter-spacing:.3px}
.ship-table tr.is-selected td{background:#f5f9f3}
.ship-form-foot{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fff;border-top:1px solid #e5e5e5;box-shadow:0 -10px 24px -18px #0004;font-size:12px}
.ship-form-foot b{font-size:15px;font-variant-numeric:tabular-nums}
@media(max-width:760px){.ship-form-head{grid-template-columns:1fr 1fr}.ship-form-head .toolbar-note{grid-column:1/-1;justify-self:start}}
.return-mode{display:grid;grid-template-columns:1fr 1fr;gap:6px;border:0;padding:0;margin:0}
.return-mode label{margin:0}
.return-mode input{position:absolute;opacity:0}
.return-mode span{display:flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #ddd;border-radius:6px;font-size:11px;cursor:pointer}
.return-mode input:checked+span{background:#111;color:#fff;border-color:#111}
.return-mode input:focus-visible+span{outline:2px solid #111;outline-offset:2px}
.variant-results{display:grid;gap:4px;max-height:260px;overflow:auto}
.variant-results:empty{display:none}
.variant-option,.variant-picked{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center;padding:7px 9px;border:1px solid #e5e5e3;border-radius:7px;background:#fff;text-align:left;font:inherit;cursor:pointer}
.variant-option:hover,.variant-option:focus-visible{border-color:#111;outline:none}
.variant-option img,.variant-picked img{width:40px;height:40px;object-fit:cover;border-radius:5px;background:#f7f7f5}
.variant-option strong,.variant-picked strong{display:block;font-size:12px}
.variant-option small,.variant-picked small{display:block;color:#777;font-size:10px}
.variant-picked{cursor:default;border-color:#111;background:#fafaf9}
.variant-results .muted{font-size:11px;padding:6px 2px}
/* POS: the Charge button stays in view; on wide screens the cart scrolls inside the window. */
@media(min-width:1101px){.pos-cart{max-height:calc(100dvh - 36px);overflow:auto;overscroll-behavior:contain}}
@media(max-width:1100px){.pos-cart{overflow:visible}}
.pos-cart [data-checkout-button]{position:sticky;bottom:10px;z-index:3;min-height:52px;font-size:13px;box-shadow:0 -14px 16px 4px #fff,0 12px 24px -14px #0007}
/* Production holds: No garment / No print. */
.batch-card.on-hold{border-color:#f3b3a6;box-shadow:inset 3px 0 0 #dc2626}
.hold-chip{display:inline-flex;align-items:center;gap:5px;margin:2px 0 8px;padding:4px 9px;border-radius:99px;background:#dc2626;color:#fff;font-size:10px;font-weight:600}
.hold-chip svg{width:11px;height:11px}
.hold-actions{display:flex;gap:6px;margin:10px 0 8px}
.hold-toggle{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:0 8px;border:1px solid #e5e5e3;border-radius:6px;background:#fff;color:#6b6b63;font:inherit;font-size:10px;cursor:pointer}
.hold-toggle svg{width:11px;height:11px}
.hold-toggle:hover{border-color:#dc2626;color:#b91c1c}
.hold-toggle.on{background:#fee2e2;border-color:#fca5a5;color:#b91c1c;font-weight:600}
.fill-note.hold{color:#b91c1c;font-weight:600}
.hold-text{color:#b91c1c}
.panel:has([data-ship-form]){overflow:visible}
.ship-form-head .custom-select{margin:6px 0 0}
.ship-form-head input[type=date]{margin-top:6px}
.pos-cart [data-checkout-button]{box-shadow:0 -14px 0 6px #fff,0 10px 0 6px #fff}
.pos-cart [data-checkout-button]:disabled{opacity:1;background:#cfcfca;border-color:#cfcfca;color:#fff}
@media(min-width:1101px){.pos-cart{padding-bottom:0}.pos-cart [data-checkout-button]{bottom:0;margin-bottom:16px;box-shadow:0 -14px 0 6px #fff,0 16px 0 6px #fff}}
[data-return-panel][hidden],.variant-picked[hidden],#return-modal label[hidden]{display:none}
.hold-toggle{white-space:nowrap}
/* Waybill info: the courier form's fields, ready to copy. */
.waybill-pop{width:min(560px,94vw);max-height:88vh;overflow:auto;padding:20px 22px;border:1px solid #e5e5e5;border-radius:12px;background:#fff;color:#111;box-shadow:0 30px 70px -20px #0006}
.waybill-pop::backdrop{background:#0003}
.waybill-pop header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.waybill-pop h3{font-family:var(--display);font-size:22px;text-transform:uppercase;margin:2px 0 0}
.waybill-pop>p.muted{font-size:11px;margin:4px 0 10px}
.waybill-pop h4{font-size:9px;letter-spacing:1.3px;text-transform:uppercase;color:#969696;font-weight:500;margin:14px 0 6px}
.waybill-fields{margin:0;border-top:1px solid #efefef}
.waybill-fields>div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:8px 0;border-bottom:1px solid #efefef;align-items:center}
.waybill-fields dt{font-size:11px;font-weight:600}
.waybill-fields dt small{display:block;font-weight:400;color:#888;font-size:9.5px;line-height:1.35;margin-top:2px}
.waybill-fields dd{margin:0;display:flex;align-items:center;gap:10px;min-width:0}
.waybill-fields dd span{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}
.waybill-fields dd .button{flex:none;min-width:78px}
.waybill-fields>div.done dt{color:#047857}
.waybill-fields>div.done dt::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#10b981;margin-right:6px;vertical-align:middle}
.waybill-pop{white-space:normal;text-align:left;font-weight:400}
/* Point of sale beside the notifications */
.pos-button{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px;border-radius:99px;background:#111;color:#fff;font-size:11px;font-weight:600;letter-spacing:.3px;white-space:nowrap;transition:background .2s,transform .2s}
.pos-button svg{width:15px;height:15px}
.pos-button:hover{background:#333}
.pos-button:active{transform:scale(.97)}
.pos-button.active{background:#b77845}
@media(max-width:700px){.pos-button{width:40px;height:40px;padding:0;justify-content:center;border-radius:6px}.pos-button span{display:none}}
/* Order status tabs: big coloured pills, same colours as the status badges */
.status-tabs{--tab:#111;gap:6px;padding:14px 18px;min-height:0;flex-wrap:wrap}
.status-tabs .tab-new{--tab:#2563eb}.status-tabs .tab-production{--tab:#ea580c}.status-tabs .tab-ready{--tab:#059669}.status-tabs .tab-packed{--tab:#0284c7}.status-tabs .tab-shipped{--tab:#047857}.status-tabs .tab-hold{--tab:#d97706}.status-tabs .tab-cancelled{--tab:#dc2626}
.status-tabs a{gap:8px;padding:10px 14px;font-size:13px;font-weight:600;color:#3a3a3a;background:#fff;border:1.5px solid #e2e2dc;border-radius:99px;transition:border-color .2s,background .2s,color .2s}
.status-tabs a::after{display:none}
.status-tabs a>i{width:9px;height:9px;border-radius:50%;background:var(--tab);flex:none}
.status-tabs a:hover{border-color:var(--tab);color:#111}
.status-tabs a.selected{background:var(--tab);border-color:var(--tab);color:#fff;font-weight:700;box-shadow:0 4px 12px -6px var(--tab)}
.status-tabs a.selected>i{background:#fff}
.status-tabs a>span,.status-tabs a>span.hot{font-size:12px;font-weight:700;min-width:24px;padding:2px 8px;border-radius:99px;text-align:center;background:color-mix(in srgb,var(--tab) 14%,#fff);color:var(--tab)}
.status-tabs a.tab-new>span.hot{background:var(--tab);color:#fff}
.status-tabs a.selected>span,.status-tabs a.selected>span.hot{background:#fff;color:var(--tab)}
@media(max-width:700px){.status-tabs{padding:12px 16px;gap:6px;flex-wrap:nowrap}.status-tabs a{font-size:12px;padding:9px 13px}}
/* Blanks: stock on the board, the blanks page grid and its form */
.blank-chip{display:flex;align-items:center;gap:4px;width:max-content;margin-top:5px;padding:2px 8px;border-radius:99px;font-size:10px;font-style:normal;font-weight:600;line-height:1.5;white-space:nowrap}
.blank-chip svg{width:12px;height:12px;flex:none}
.blank-chip.ok{background:#e7f6ec;color:#15803d}
.blank-chip.short{background:#fee2e2;color:#b91c1c}
.blank-warn{display:flex;align-items:flex-start;gap:6px;margin:10px 0 0;padding:8px 10px;border-radius:6px;background:#fef2f2;color:#b91c1c;font-size:11px;font-weight:600;line-height:1.45}
.blank-warn svg{width:14px;height:14px;flex:none;margin-top:1px}
.blank-grid th.num,.blank-grid td.num{text-align:center}
.blank-grid td.num b{display:block;font-size:17px;font-weight:700;color:#111}
.blank-grid td.zero b{color:#c4c4bd}
.blank-grid td.num small{display:block;margin-top:2px;font-size:10px;font-weight:600;white-space:nowrap}
.blank-grid small.short{color:#b91c1c}
.blank-grid small.ok{color:#15803d}
.blank-grid .row-action{text-align:right;white-space:nowrap}
.data-table td.num{text-align:center}.data-table b.plus{color:#15803d}.data-table b.minus{color:#b91c1c}
.blank-sizes{border:0;padding:0;margin:0;min-width:0}
.blank-sizes legend{padding:0;margin-bottom:10px;font-size:12px;font-weight:500}
.blank-sizes>div{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.blank-sizes label{gap:5px;font-size:11px}
@media(max-width:700px){.blank-sizes>div{grid-template-columns:repeat(3,1fr)}}
.blank-moves{margin-top:22px}
.blank-sheet-panel .panel-heading{align-items:center}
.blank-sheet-status{padding:7px 10px;border-radius:999px;background:#f2f1ec;color:#777;font-size:9px;font-weight:700;letter-spacing:.04em;white-space:nowrap}
.blank-sheet-toolbar{display:grid;grid-template-columns:minmax(220px,280px) minmax(280px,1fr) auto;gap:12px;align-items:end;padding:16px 18px;border-top:1px solid var(--line);background:#fafaf7}
.blank-sheet-toolbar label{gap:6px;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.blank-sheet-toolbar input,.blank-sheet-toolbar select{height:40px;background:#fff;text-transform:none;letter-spacing:0;font-weight:400}
.blank-sheet-toolbar .button{height:40px;white-space:nowrap}
.blank-sheet-help{margin:0;padding:10px 18px;border-top:1px solid #eeeDE8;background:#fff;color:#777;font-size:10px}
.blank-sheet-scroll{border-top:1px solid var(--line)}
.blank-stock-sheet{min-width:990px}
.blank-stock-sheet th{position:sticky;top:0;z-index:2;background:#f8f8f5}
.blank-stock-sheet th:first-child,.blank-stock-sheet td:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 #e8e7e1;min-width:160px}
.blank-stock-sheet th:first-child{z-index:3;background:#f8f8f5}
.blank-stock-sheet td.num{min-width:96px;padding:6px}
.blank-stock-sheet .blank-sheet-label{vertical-align:middle}
.blank-sheet-cell{position:relative;display:grid;min-height:52px;align-items:center;border:1px solid #dfded7;border-radius:5px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s,background .15s}
.blank-sheet-cell:focus-within{z-index:1;border-color:#111;box-shadow:0 0 0 2px #1112}
.blank-sheet-cell.is-edited{border-color:#b77845;background:#fffaf4;box-shadow:inset 0 0 0 1px #b77845}
.blank-sheet-cell .blank-current{position:absolute;top:4px;left:6px;color:#999;font-size:8px;font-weight:700;line-height:1;pointer-events:none}
.blank-sheet-cell input{width:100%;height:50px;padding:13px 5px 3px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center;font-size:16px;font-weight:650;color:#111}
.blank-sheet-cell input::placeholder{color:#cbc9c0;font-weight:500}
.blank-sheet-cell.is-edited input{color:#9a5d2c}
.blank-sheet-cell small{position:absolute;right:5px;top:4px;margin:0!important;font-size:7px!important;pointer-events:none}
.blank-row-total small{display:block;color:#aaa!important;font-size:7px!important;text-transform:uppercase;letter-spacing:.05em}
.blank-row-total b.is-preview{color:#b77845}
@media(max-width:800px){.blank-sheet-toolbar{grid-template-columns:1fr 1fr}.blank-sheet-toolbar .button{grid-column:1/-1}.blank-sheet-status{display:none}}
@media(max-width:560px){.blank-sheet-toolbar{grid-template-columns:1fr}.blank-sheet-toolbar .button{grid-column:auto}.blank-sheet-reason{grid-column:auto}}

/* Home analytics */
.dashboard-analytics{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.9fr) minmax(250px,.72fr);gap:18px;margin:0 0 24px;align-items:stretch}
.dashboard-chart-card,.dashboard-details{min-width:0}
.dashboard-chart{height:245px;padding:2px 20px 18px}
.dashboard-status-chart{height:245px;padding:4px 14px 18px;position:relative}
.status-chart-total{position:absolute;left:29%;top:48%;translate:-50% -50%;display:flex;flex-direction:column;align-items:center;pointer-events:none}
.status-chart-total strong{font-size:26px;font-weight:600;line-height:1}
.status-chart-total span{font-size:8px;color:#8b8b84;margin-top:5px;text-transform:uppercase;letter-spacing:.08em}
.dashboard-detail-grid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #efefec}
.dashboard-detail-grid a{display:flex;min-height:121px;flex-direction:column;justify-content:center;padding:18px;border-right:1px solid #efefec;border-bottom:1px solid #efefec;transition:background .2s}
.dashboard-detail-grid a:nth-child(even){border-right:0}.dashboard-detail-grid a:hover{background:#fafaf7}
.dashboard-detail-grid span{font-size:9px;color:#87877f;text-transform:uppercase;letter-spacing:.08em}
.dashboard-detail-grid strong{font-size:23px;font-weight:600;margin:7px 0 3px;letter-spacing:-.03em}
.dashboard-detail-grid small{font-size:9px;color:#aaa}
.recent-order-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:10px;padding:0 18px 18px}.recent-order-card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:11px;align-items:center;min-width:0;padding:11px;border:1px solid #e7e5de;border-radius:10px;background:#fff;text-align:left;transition:border-color .18s,box-shadow .18s,transform .18s}.recent-order-card:hover{border-color:#bbb7ab;box-shadow:0 8px 24px -18px #0007;transform:translateY(-1px)}.recent-order-image{display:grid;width:58px;height:58px;place-items:center;overflow:hidden;border-radius:8px;background:#f2f1ec;color:#999}.recent-order-image img{width:100%;height:100%;object-fit:cover}.recent-order-image svg{width:22px}.recent-order-main,.recent-order-top,.recent-order-foot{display:flex;min-width:0}.recent-order-main{flex-direction:column}.recent-order-top{align-items:center;justify-content:space-between;gap:8px}.recent-order-top strong{font-size:11px}.recent-order-top time{color:#999;font-size:7px;white-space:nowrap}.recent-order-main>b{margin-top:4px;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.recent-order-main>small{margin-top:3px;overflow:hidden;color:#888;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.recent-order-foot{align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.recent-order-foot .badge{padding:3px 7px;font-size:8px}.recent-order-foot .badge>span{width:5px;height:5px}.recent-order-foot em{color:#666;font-size:8px;font-style:normal;font-weight:700;white-space:nowrap}

/* Operations calendar */
.calendar-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.calendar-summary article{display:flex;align-items:center;gap:13px;padding:17px 18px;background:#fff;border:1px solid var(--line);border-radius:7px}
.calendar-summary-icon{width:38px;height:38px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none;background:#f2f1ec;color:#686860}
.calendar-summary-icon svg{width:18px;height:18px}.calendar-summary-icon.production{background:#faf1e5;color:#a06b32}.calendar-summary-icon.shipped{background:#edf4eb;color:#5e7e54}.calendar-summary-icon.open{background:#edf1f3;color:#536f7b}
.calendar-summary article>div{display:flex;flex-direction:column}.calendar-summary strong{font-size:24px;line-height:1;font-weight:600}.calendar-summary span:not(.calendar-summary-icon){font-size:10px;font-weight:600;margin-top:5px}.calendar-summary small{font-size:8px;color:#999;margin-top:2px}
.calendar-panel{margin-bottom:20px}.calendar-legend{display:flex;align-items:center;gap:18px;padding:14px 18px;border-bottom:1px solid var(--line);font-size:9px;color:#666}.calendar-legend span{display:flex;align-items:center;gap:6px}.calendar-legend i{width:8px;height:8px;border-radius:2px}.calendar-legend i.order{background:#202020}.calendar-legend i.production{background:#b77845}.calendar-legend i.shipment{background:#6b8b61}.calendar-legend small{margin-left:auto;color:#999}
.calendar-scroll{overflow:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));min-width:1015px}.calendar-weekdays>div{padding:10px 12px;background:#fafaf8;border-right:1px solid #efefec;font-size:8px;font-weight:700;letter-spacing:.1em;color:#888;text-transform:uppercase}.calendar-weekdays>div:last-child{border-right:0}
.calendar-day{min-height:158px;padding:10px;border-top:1px solid #ecece8;border-right:1px solid #ecece8;background:#fff}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:#fafaf8;color:#aaa}.calendar-day.today{box-shadow:inset 0 0 0 2px #1c1c1c}.calendar-day>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.calendar-day time{display:flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;font-size:11px;font-weight:600}.calendar-day.today time{background:#111;color:#fff}.calendar-day>header span{font-size:7px;color:#aaa;text-transform:uppercase;letter-spacing:.06em}.calendar-order-total,.calendar-no-orders{font-size:8px;font-weight:700;line-height:1;padding:5px 7px;border-radius:999px;white-space:nowrap}.calendar-order-total{color:#fff;background:#202020}.calendar-order-total:hover{background:#b77845;color:#fff}.calendar-no-orders{color:#999;background:#f1f1ed}
.calendar-events{display:flex;flex-direction:column;gap:5px}.calendar-event{display:block;width:100%;padding:6px 7px;border:0;border-left:3px solid;text-align:left;border-radius:3px;background:#f5f5f2;overflow:hidden}.calendar-event:hover{filter:brightness(.97)}.calendar-event b,.calendar-event span,.calendar-event small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event b{font-size:9px}.calendar-event span{font-size:8px;color:#666;margin-top:2px}.calendar-event small{font-size:7px;color:#999;margin-top:2px}.calendar-event.order{border-color:#202020}.calendar-event.production{border-color:#b77845;background:#faf4eb}.calendar-event.shipment{border-color:#6b8b61;background:#f0f5ee}.calendar-more{display:flex;width:100%;align-items:center;justify-content:center;padding:6px;border:1px dashed #c9c7be;border-radius:3px;background:#f5f4ef;color:#393939;font-size:8px;font-weight:700;cursor:pointer}.calendar-more:hover,.calendar-more:focus-visible{border-color:#8f8b7d;background:#eceae2;color:#111}[data-calendar-hidden][hidden]{display:none!important}
.calendar-detail{margin-bottom:28px}.calendar-detail-columns{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}.calendar-detail-columns>div{padding:20px 22px}.calendar-detail-columns>div+div{border-left:1px solid var(--line)}.calendar-detail-columns h3{font-size:11px;margin-bottom:12px}.calendar-detail-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #efefec}.calendar-detail-row time{font-size:9px;color:#888}.calendar-detail-row span{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-detail-row a,.calendar-detail-row button{display:flex;align-items:center;gap:4px;font-size:9px;font-weight:600}.calendar-detail-row svg{width:11px;height:11px}
.production-calendar-summary article.is-late{border-color:#efc4bb;background:#fff8f6}.production-calendar-summary .calendar-summary-icon.late{background:#fee2e2;color:#b91c1c}.production-calendar-summary article.is-late strong{color:#b91c1c}.production-day-total{padding:5px 7px;border-radius:999px;background:#f3e6d5;color:#8a5a28;font-size:7px!important;font-weight:750;white-space:nowrap}.production-calendar-panel .calendar-event.production.completed{border-color:#6b8b61;background:#eef5ec}.production-calendar-panel .calendar-event.production.completed small{color:#4f7650}.calendar-legend i.production.done{background:#6b8b61}.production-month-work{margin-bottom:28px}.production-month-work>.panel-heading>strong{font-size:13px}.production-month-list>a{display:grid;grid-template-columns:62px minmax(0,1fr) 42px 16px;align-items:center;gap:12px;padding:13px 18px;border-top:1px solid #efefec}.production-month-list>a:hover{background:#faf9f5}.production-month-list time{color:#777;font-size:9px;font-weight:650}.production-month-list div>strong,.production-month-list div>span{display:block}.production-month-list div>strong{font-size:11px}.production-month-list div>span{margin-top:3px;color:#888;font-size:8px}.production-month-list div>i{display:block;height:4px;margin-top:7px;overflow:hidden;border-radius:99px;background:#ece9e1}.production-month-list div>i>b{display:block;height:100%;border-radius:inherit;background:#b77845}.production-month-list em{font-size:9px;font-style:normal;font-weight:700;text-align:right}.production-month-list>a>svg{width:14px}

/* Production orders: one actionable card per customer order. */
.production-order-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:18px}.production-order-flow article{display:flex;min-width:0;align-items:flex-start;gap:10px;padding:13px 12px;border:1px solid #e4e1d8;border-radius:9px;background:#fff}.production-order-flow article>b{display:grid;width:25px;height:25px;flex:none;place-items:center;border-radius:50%;background:#171717;color:#fff;font-size:9px}.production-order-flow article>div{min-width:0}.production-order-flow strong,.production-order-flow span{display:block}.production-order-flow strong{font-size:9px}.production-order-flow span{margin-top:3px;color:#888;font-size:7px;line-height:1.4}.production-order-flow article:not(:last-child){position:relative}.production-order-flow article:not(:last-child)::after{position:absolute;z-index:2;right:-7px;top:22px;width:12px;height:12px;border-top:1px solid #aaa;border-right:1px solid #aaa;background:#fff;content:'';transform:rotate(45deg)}
.production-order-workspace{margin-bottom:28px;padding:16px}.production-order-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px}.production-order-filters{display:flex;flex:1;gap:6px;overflow-x:auto;scrollbar-width:thin}.production-order-filters a{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 10px;border:1px solid #dedbd2;border-radius:999px;background:#fff;color:#666;font-size:9px;font-weight:700;white-space:nowrap}.production-order-filters a b{display:grid;min-width:20px;height:20px;place-items:center;padding:0 5px;border-radius:999px;background:#efede7;color:#555}.production-order-filters a.active{border-color:#111;background:#111;color:#fff}.production-order-filters a.active b{background:#fff;color:#111}.production-order-toolbar>form{display:flex;align-items:center;gap:7px;min-width:300px}.production-order-toolbar .search-field{flex:1}.production-order-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:14px}.production-order-card{min-width:0;overflow:hidden;border:1px solid #e2dfd6;border-radius:12px;background:#fff}.production-order-card.state-hold{border-color:#eab5aa}.production-order-card.state-unscheduled{border-color:#e8cda2}.production-order-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #efede8}.production-order-card>header>div{min-width:0}.production-order-card>header .order-link{display:block;padding:0;font-size:14px}.production-order-card>header>div>span{display:block;margin-top:4px;color:#888;font-size:9px}.production-order-state{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;font-size:8px;font-weight:750;white-space:nowrap}.production-order-state svg{width:12px}.production-order-state.tone-warning{background:#fff3dd;color:#96651f}.production-order-state.tone-neutral{background:#efefeb;color:#666}.production-order-state.tone-primary{background:#f8ead7;color:#8e5c25}.production-order-state.tone-match{background:#e9f2e6;color:#52734d}.production-order-state.tone-danger{background:#fee2e2;color:#b91c1c}.production-order-state.tone-success{background:#dcfce7;color:#15803d}.production-order-progress{padding:13px 16px}.production-order-progress>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px}.production-order-progress>div strong{font-size:10px}.production-order-progress>div span{color:#888}.production-order-progress>i{display:block;height:6px;margin-top:8px;overflow:hidden;border-radius:999px;background:#eeeae2}.production-order-progress>i>b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b77845,#d4a26d)}.production-order-lines{max-height:230px;overflow:auto;margin:0;padding:0 16px;list-style:none}.production-order-lines li{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #f0efeb}.production-order-lines img{width:38px;height:38px;border-radius:7px;background:#f3f2ee;object-fit:contain}.production-order-lines div{min-width:0}.production-order-lines div strong,.production-order-lines div span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production-order-lines div strong{font-size:10px}.production-order-lines div span{margin-top:3px;color:#888;font-size:8px}.production-order-lines>li>b{font-size:10px}.production-order-lines>li>small{grid-column:2/-1;margin-top:-6px;color:#a06d35;font-size:7px}.production-order-next{padding:14px 16px 16px;background:#faf9f5;border-top:1px solid #ebe8df}.production-order-next>.eyebrow{display:block;margin-bottom:8px}.production-order-batch{display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px solid #e8e5dd}.production-order-batch>div{flex:1;min-width:0}.production-order-batch strong,.production-order-batch span{display:block}.production-order-batch strong{font-size:10px}.production-order-batch span{margin-top:3px;color:#888;font-size:8px}.production-order-batch form{margin:0}.production-order-batch>svg{width:15px;color:#15803d}.production-order-next>.helper{margin:9px 0 0;font-size:8px}.production-order-schedule{display:grid;grid-template-columns:minmax(140px,190px) auto;align-items:end;gap:8px;margin-bottom:9px}.production-order-schedule label{gap:4px;font-size:8px}.production-order-schedule input{min-height:36px;padding:6px 8px}.production-orders-empty{grid-column:1/-1}.prod-order-stats{margin-bottom:18px}
body:has(.receive-batch-modal[open]){overflow:hidden}.receive-batch-modal{width:min(560px,calc(100vw - 24px))}.receive-batch-label{margin:-5px 0 2px;padding:9px 11px;border-radius:6px;background:#f4f2ec;font-size:10px;font-weight:700}.receive-batch-explain{display:grid;gap:7px}.receive-batch-explain>div{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid #e8e5dc;border-radius:7px}.receive-batch-explain>div>b{display:grid;width:22px;height:22px;flex:none;place-items:center;border-radius:50%;background:#1d1d1d;color:#fff;font-size:8px}.receive-batch-explain span,.receive-batch-explain strong,.receive-batch-explain small{display:block}.receive-batch-explain strong{font-size:9px}.receive-batch-explain small{margin-top:2px;color:#888;font-size:8px}.receive-batch-confirm{padding:12px!important;border-color:#c7b394!important;background:#fffaf2!important}.receive-batch-modal .helper{margin:0;font-size:8px;line-height:1.45}
@media(max-width:1100px){.production-order-flow{grid-template-columns:repeat(3,1fr)}.production-order-flow article::after{display:none}}
@media(max-width:900px){.production-order-toolbar{align-items:stretch;flex-direction:column}.production-order-toolbar>form{width:100%;min-width:0}.production-order-grid{grid-template-columns:1fr}}
@media(max-width:700px){.production-order-flow{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.production-order-workspace{padding:10px}.production-order-card>header{align-items:flex-start;flex-direction:column}.production-order-state{align-self:flex-start}.production-order-schedule{grid-template-columns:1fr}.production-order-schedule .button{width:100%}.production-order-batch{align-items:stretch;flex-direction:column}.production-order-batch .button{width:100%}}
@media(max-width:440px){.production-order-flow{grid-template-columns:1fr}}

/* Full product image on hover/focus */
.table-product img,.inventory-card-image img,.match-row img,.low-row img,.catalog-mini-grid img,.pos-product img,.board-card img,.batch-lines img,.match-card img,.inspect-card>img,.detail-product img,.order-item-summary img{cursor:zoom-in;transition:filter .18s,outline-color .18s}
img.is-previewing{outline:2px solid #b77845;outline-offset:2px}
.product-image-preview{position:fixed;z-index:120;padding:10px;background:#fff;border:1px solid #d8d7d0;border-radius:10px;box-shadow:0 24px 60px #0004;pointer-events:none;animation:fade-in .16s ease}
.product-image-preview[hidden]{display:none}.product-image-preview img{display:block;width:100%;height:330px;object-fit:contain;background:linear-gradient(135deg,#f5f4f0,#fff);border-radius:6px}.product-image-preview span{display:block;margin-top:10px;font-size:12px;font-weight:600}.product-image-preview small{display:block;margin-top:3px;font-size:8px;color:#999;text-transform:uppercase;letter-spacing:.09em}

@media(max-width:1250px){.dashboard-analytics{grid-template-columns:1fr 1fr}.dashboard-details{grid-column:1/-1}.dashboard-detail-grid{grid-template-columns:repeat(4,1fr)}.dashboard-detail-grid a{border-bottom:0}.calendar-summary{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.dashboard-analytics{grid-template-columns:1fr}.dashboard-details{grid-column:auto}.dashboard-detail-grid{grid-template-columns:1fr 1fr}.dashboard-detail-grid a{border-bottom:1px solid #efefec}.calendar-heading .heading-actions{width:100%;overflow:auto}.calendar-heading .heading-actions .button{flex:none}.calendar-summary{grid-template-columns:1fr 1fr}.calendar-detail-columns{grid-template-columns:1fr}.calendar-detail-columns>div+div{border-left:0;border-top:1px solid var(--line)}.product-image-preview{display:none!important}}
@media(max-width:480px){.calendar-summary{grid-template-columns:1fr}.dashboard-detail-grid{grid-template-columns:1fr 1fr}.status-chart-total{left:31%}}
