.scln-auth-pending #sidebar,.scln-auth-pending main{visibility:hidden!important}
:root{--ink:#17201c;--muted:#6f7873;--bg:#f3f5f2;--card:#fff;--line:#e0e5e1;--green:#174b3b;--green2:#287158;--red:#b74640;--gold:#b78943}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,system-ui,"Segoe UI",sans-serif}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#17201c;color:#fff;padding:24px 16px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 28px}.brand-mark{width:38px;height:38px;border:1px solid #c5a15d;border-radius:50%;display:grid;place-items:center;color:#d6ba7e;font:22px Georgia}.brand strong,.brand small{display:block}.brand strong{letter-spacing:3px;font-size:18px}.brand small{letter-spacing:2px;font-size:9px;color:#99a49e}nav{display:grid;gap:6px}.nav{border:0;background:transparent;color:#acb7b1;padding:11px 12px;border-radius:8px;text-align:left;display:flex;gap:12px;cursor:pointer;font:inherit}.nav:hover,.nav.active{background:#26342e;color:white}.nav em{margin-left:auto;font-style:normal}.sidebar-foot{margin-top:auto;border-top:1px solid #303c37;padding-top:18px;display:flex;gap:10px}.sidebar-foot small{display:block;color:#87928c}.avatar{width:34px;height:34px;border-radius:50%;background:#c5a15d;color:#17201c;display:grid;place-items:center;font-weight:bold}main{margin-left:240px}.topbar{height:88px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:15px 30px;position:sticky;top:0;z-index:20}.topbar h1{font-size:21px;margin:0}.topbar p{font-size:12px;color:var(--muted);margin:3px 0}.top-actions{display:flex;gap:10px}.global-search{border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:0 12px;display:flex;align-items:center}.global-search input{border:0;outline:0;background:transparent;width:220px;height:38px}.primary,.secondary,.text-btn,.icon-btn{font:inherit;cursor:pointer}.primary{border:0;background:var(--green);color:white;padding:10px 16px;border-radius:7px;font-weight:650}.secondary{border:1px solid var(--line);background:white;padding:9px 14px;border-radius:7px}.text-btn,.icon-btn{border:0;background:none;color:var(--green2)}.icon-btn{font-size:23px}.menu-btn{display:none}.view{display:none;padding:26px 30px}.view.active{display:block}.alert-strip{display:none;background:#fff2de;border:1px solid #efd09b;padding:11px 14px;border-radius:8px;margin-bottom:17px;justify-content:space-between}.alert-strip.show{display:flex}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.stat,.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:18px}.stat-top,.panel-head{display:flex;justify-content:space-between}.stat-icon{width:34px;height:34px;background:#eaf3ee;color:var(--green);border-radius:8px;display:grid;place-items:center}.stat b{display:block;font-size:26px}.stat small,.panel p{color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.panel h2{font-size:16px;margin:0}.panel p{font-size:12px;margin:4px 0}.pipeline{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:18px}.stage-box{background:#f6f7f5;border:1px solid var(--line);padding:11px;border-radius:8px;cursor:pointer}.stage-box b{font-size:21px;display:block}.stage-box span{font-size:10px;color:var(--muted)}.attention-item{display:flex;gap:10px;padding:11px 0;border-top:1px solid var(--line);cursor:pointer}.attention-dot{width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--red)}.attention-item b,.attention-item small{display:block;font-size:11px}.attention-item small{color:var(--muted)}.table-wrap{overflow:auto;margin-top:10px}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;text-transform:uppercase;color:#88918c;padding:10px;border-bottom:1px solid var(--line)}td{padding:12px 10px;border-bottom:1px solid #edf0ed;white-space:nowrap;font-size:12px}tbody tr{cursor:pointer}tbody tr:hover{background:#fafbf9}.job-id{color:var(--green2);font-weight:750}.sub{display:block;color:var(--muted);font-size:10px}.badge{display:inline-block;background:#e8f1ed;color:#2d5c49;border-radius:15px;padding:4px 9px;font-size:10px;font-weight:650}.badge.red{background:#f9e7e5;color:#9b3731}.badge.amber{background:#fff0d7;color:#95600d}.badge.green{background:#e2f2ea;color:#236147}.badge.blue{background:#e7f0f5;color:#32617c}.load-row{margin:14px 0}.load-label{display:flex;justify-content:space-between;font-size:11px}.progress{height:6px;background:#edf0ed;border-radius:4px}.progress i{height:100%;display:block;background:var(--green2);border-radius:4px}.toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.tabs{display:flex;background:#e8ebe8;padding:3px;border-radius:8px}.tabs button{border:0;background:transparent;padding:7px 11px;border-radius:6px;white-space:nowrap}.tabs button.active{background:white}.toolbar-actions{display:flex;gap:8px}.toolbar select{border:1px solid var(--line);border-radius:7px;background:white}.order-register{padding:0}.empty{text-align:center;padding:45px;color:var(--muted);display:none}.manufacturer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.maker-card{cursor:pointer}.maker-head{display:flex;gap:12px}.maker-logo{width:46px;height:46px;border-radius:9px;background:#e5efe9;display:grid;place-items:center;font-weight:bold}.maker-meta,.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.maker-meta div,.info{background:#f6f7f5;padding:9px;border-radius:7px}.maker-meta b,.maker-meta small,.info b,.info small{display:block}.maker-meta small,.info small{text-transform:uppercase;color:var(--muted);font-size:9px}.specialty{display:flex;gap:5px}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.report-grid .span-2{grid-column:1/-1}.report-bars{height:150px;display:grid;grid-template-columns:repeat(9,1fr);align-items:end;gap:8px}.report-bar{text-align:center;font-size:10px}.report-bar i{display:block;background:var(--green2);width:50%;margin:auto}.drawer-backdrop{position:fixed;inset:0;background:#1118;opacity:0;pointer-events:none;z-index:39}.drawer-backdrop.open{opacity:1;pointer-events:auto}.detail-drawer{position:fixed;right:0;top:0;bottom:0;width:min(620px,100%);background:white;z-index:40;transform:translateX(100%);transition:.25s;overflow:auto}.detail-drawer.open{transform:none}.detail-top,.detail-body{padding:22px 25px}.detail-top{border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.detail-title h2{margin:2px 0}.detail-title p{margin:0;color:var(--muted)}.detail-actions{display:flex;gap:8px}.detail-section{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.stage-stepper{display:flex;overflow:auto}.step{min-width:65px;text-align:center;font-size:9px;color:#999;position:relative}.step:before{content:"";display:block;width:16px;height:16px;border:2px solid #ccd2ce;border-radius:50%;margin:auto}.step:after{content:"";position:absolute;top:8px;left:50%;width:100%;height:2px;background:#ddd;z-index:-1}.step:last-child:after{display:none}.step.done:before,.step.current:before{background:var(--green2);border-color:var(--green2)}.stage-control{display:flex;gap:8px;margin-top:16px}.stage-control select{flex:1}.history{padding:0;list-style:none}.history li{border-left:1px solid #ddd;padding:0 0 14px 15px}.history b,.history small{display:block;font-size:11px}.history small{color:var(--muted)}.modal-backdrop{position:fixed;inset:0;background:#1119;z-index:50;display:none;justify-content:center;align-items:flex-start;padding:30px 15px;overflow:auto}.modal-backdrop.open{display:flex}.modal{background:white;width:min(860px,100%);border-radius:12px}.modal-head{display:flex;justify-content:space-between;padding:20px 25px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0}.eyebrow{font-size:9px;color:var(--gold);font-weight:bold}.form-section{padding:18px 25px;border-bottom:1px solid var(--line)}.form-section h3{font-size:11px;color:var(--green);text-transform:uppercase}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.form-grid label{font-size:11px;font-weight:650}.form-grid input,.form-grid select,.form-grid textarea{display:block;width:100%;margin-top:5px;padding:9px;border:1px solid #dbe1dd;border-radius:7px;font:inherit}.form-grid textarea{min-height:60px}.form-grid .wide{grid-column:span 3}.modal-actions{padding:17px 25px;display:flex;justify-content:flex-end;gap:8px}.toast{position:fixed;right:22px;bottom:22px;background:#17201c;color:white;padding:12px 16px;border-radius:8px;z-index:80;opacity:0;transform:translateY(50px);transition:.2s}.toast.show{opacity:1;transform:none}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.manufacturer-grid{grid-template-columns:1fr 1fr}}@media(max-width:740px){.sidebar{transform:translateX(-100%)}.sidebar.open{transform:none}.menu-btn{display:block}main{margin:0}.topbar{padding:12px;height:75px}.topbar>div:first-of-type{flex:1}.global-search{display:none}.view{padding:15px}.dashboard-grid,.report-grid{grid-template-columns:1fr}.stats{gap:9px}.pipeline{grid-template-columns:repeat(3,1fr)}.toolbar{flex-direction:column;overflow:auto}.manufacturer-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr 1fr}.form-grid .wide{grid-column:span 2}.info-grid{grid-template-columns:1fr 1fr}.report-grid .span-2{grid-column:auto}}@media print{.sidebar,.topbar,.view,.drawer-backdrop,.detail-actions,.stage-control{display:none!important}.detail-drawer{position:static;transform:none!important;width:100%}}

.modal-head-actions,.builder-head{display:flex;align-items:center;gap:9px}.builder-head{justify-content:space-between;margin-bottom:10px}.builder-head small{display:block;color:var(--muted);font-weight:400}.gemstone-builder{border:1px solid var(--line);background:#f8faf8;border-radius:9px;padding:13px}.gemstone-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr .65fr .65fr auto;gap:7px;margin-top:8px;align-items:end}.gemstone-row label{font-size:9px}.gemstone-row button{height:38px;color:var(--red)}.gemstone-empty{padding:14px;text-align:center;color:var(--muted);border:1px dashed #cdd5cf;border-radius:7px}.settings-modal{max-width:760px}.settings-note{padding:12px 25px;background:#eef5f1;color:#3b5b4e;font-size:12px}.settings-tabs{display:flex;gap:4px;padding:14px 25px 0;border-bottom:1px solid var(--line)}.settings-tabs button{border:0;background:none;padding:9px 13px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent}.settings-tabs button.active{color:var(--green);border-color:var(--green);font-weight:700}#settingsContent{padding:18px 25px;max-height:55vh;overflow:auto}.settings-row{display:grid;grid-template-columns:170px 1fr auto;gap:10px;align-items:center;margin-bottom:9px}.settings-row input,.settings-row select{width:100%;border:1px solid var(--line);border-radius:7px;padding:9px}.settings-row .remove-choice{color:var(--red)}.settings-group{border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:17px}.settings-group h3{font-size:13px;margin:0 0 4px}.settings-group>p{font-size:11px;color:var(--muted);margin:0 0 10px}.settings-add{margin-left:180px}.link-list{display:grid;gap:6px}.attachment-link{color:var(--green2);word-break:break-all}@media(max-width:740px){.modal-head-actions .secondary{font-size:0}.modal-head-actions .secondary:after{content:'⚙ Fields';font-size:12px}.gemstone-row{grid-template-columns:1fr 1fr}.gemstone-row button{grid-column:span 2}.settings-row{grid-template-columns:1fr auto}.settings-row>span{grid-column:1/-1}.settings-add{margin-left:0}}

#settingsBackdrop{padding:16px}
#settingsBackdrop .settings-modal{width:min(1120px,96vw);max-width:1120px;height:min(880px,94vh);max-height:94vh;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(10,37,29,.25)}
.settings-head{padding:20px 24px 17px}.settings-head h2{font-size:23px;margin:3px 0}.settings-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.settings-note{display:flex;align-items:center;gap:8px;padding:10px 24px;background:#edf6f1;border-top:1px solid #dcebe3;border-bottom:1px solid #dcebe3;color:#315b4c;font-size:11px}.settings-note b{color:#0c5943}.settings-live-dot{width:8px;height:8px;border-radius:50%;background:#23a46f;box-shadow:0 0 0 4px rgba(35,164,111,.12)}
.settings-tabs{padding:8px 18px 0;gap:5px;overflow-x:auto;background:#fff}.settings-tabs button{white-space:nowrap;padding:10px 12px;border-radius:8px 8px 0 0;font-size:12px}.settings-tabs button:hover{background:#f2f7f4}.settings-tabs button.active{background:#edf6f1;color:#075a43;border-color:#0d7254}
#settingsContent{padding:20px 24px;max-height:none;min-height:0;overflow:auto;background:#f7f9f8}.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;background:#fff;border-top:1px solid var(--line)}.settings-actions-left,.settings-actions-right{display:flex;align-items:center;gap:8px}.settings-actions button{min-height:38px}
.settings-page-intro,.settings-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.settings-page-intro{display:block;margin:0 0 15px}.settings-page-intro h3,.settings-section-title h3{font-size:17px;margin:3px 0 2px;color:#16231e}.settings-page-intro p,.settings-section-title p{font-size:11px;color:var(--muted);margin:0;line-height:1.55}.settings-section-title .eyebrow,.settings-page-intro .eyebrow{font-size:9px;color:#ad6b13}.settings-count{padding:6px 9px;border-radius:999px;background:#e9f3ee;color:#126149;font-size:10px;font-weight:700;white-space:nowrap}.settings-refresh{font-size:11px}
.settings-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:13px}.settings-summary-card{display:flex;gap:11px;align-items:center;min-height:96px;padding:14px;border:1px solid #dce6e0;border-radius:12px;background:#fff}.settings-summary-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#e7f3ed;color:#056047;font-weight:800}.settings-summary-card small{display:block;color:#65766f;font-size:9px;text-transform:uppercase;letter-spacing:.04em}.settings-summary-card strong{display:block;margin:2px 0;font-size:21px;color:#101c18}.settings-summary-card p{margin:0;color:#75817c;font-size:10px}.settings-manage-title{margin-top:22px}.settings-manage-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:11px}.settings-manage-grid>button{text-align:left;min-height:144px;padding:15px;border:1px solid #d7e2dc;border-radius:12px;background:#fff;color:#17251f;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.settings-manage-grid>button:hover{border-color:#73aa96;box-shadow:0 8px 22px rgba(20,75,57,.08);transform:translateY(-1px)}.settings-manage-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:12px;border-radius:9px;background:#e9f4ef;color:#075c45;font-weight:800}.settings-manage-grid b,.settings-manage-grid small,.settings-manage-grid i{display:block}.settings-manage-grid b{font-size:13px}.settings-manage-grid small{min-height:45px;margin-top:5px;color:#66736e;font-size:10px;line-height:1.45}.settings-manage-grid i{margin-top:9px;color:#086247;font-style:normal;font-size:10px;font-weight:700}
#settingsContent .settings-group{padding:16px;margin:0 0 14px;border:1px solid #dce6e0;border-radius:13px;background:#fff}.settings-column-head{display:grid;grid-template-columns:190px minmax(220px,1fr) 86px;gap:12px;padding:12px 10px 6px;color:#79857f;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.settings-row{margin:0}.settings-field-row{grid-template-columns:190px minmax(220px,1fr) 86px;padding:9px 10px;border-top:1px solid #edf1ef}.settings-field-row>span b,.settings-field-row>span small{display:block}.settings-field-row>span b{font-size:11px;color:#213029}.settings-field-row>span small{font-size:9px;color:#84918b;margin-top:2px}.settings-row input,.settings-row select{min-height:38px;border-color:#d4dfd9;background:#fff}.settings-row input:focus{border-color:#1b7a5c;box-shadow:0 0 0 3px rgba(27,122,92,.09);outline:0}.settings-toggle{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:10px}.settings-toggle input{position:absolute;opacity:0;pointer-events:none}.settings-toggle span{width:30px;height:18px;border-radius:999px;background:#ccd7d2;position:relative;transition:.15s}.settings-toggle span:after{content:'';position:absolute;width:12px;height:12px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.15s}.settings-toggle input:checked+span{background:#137255}.settings-toggle input:checked+span:after{transform:translateX(12px)}.settings-toggle b{color:#4f5e58;font-size:10px}
.settings-choice-group{padding-bottom:14px}.settings-choice-list,.settings-stage-list{display:grid;gap:7px;margin-top:12px}.settings-choice-row{grid-template-columns:28px 1fr 38px;padding:7px;border:1px solid #e1e8e4;border-radius:9px;background:#fafcfb}.settings-stage-row{grid-template-columns:34px 28px 1fr 38px;padding:8px;border:1px solid #dce5e0;border-radius:10px;background:#fbfcfb}.settings-choice-row.dragging,.settings-stage-row.dragging{opacity:.45;border-style:dashed}.settings-drag{display:grid;place-items:center;color:#538271;cursor:grab;font-size:18px;line-height:1}.settings-stage-number{display:grid;place-items:center;width:28px;height:28px;align-self:center;border-radius:50%;background:#e8f3ee;color:#096047;font-size:10px;font-weight:800}.settings-row .remove-choice{width:36px;height:36px;align-self:center}.settings-add{margin:12px 0 0;font-size:11px}.settings-impact{display:flex;gap:7px;margin-top:16px;padding:11px 13px;border-radius:9px;background:#eef6f2;color:#3d5e52;font-size:10px}.settings-impact b{color:#0d5f48}.settings-impact span{line-height:1.45}
.settings-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.settings-health-grid article{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #dce5e0;border-radius:11px;background:#fff}.settings-health-grid b,.settings-health-grid small{display:block}.settings-health-grid b{font-size:11px}.settings-health-grid small{font-size:9px;color:#718079;margin-top:3px}.settings-health-ok{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#e5f3ec;color:#08714f;font-weight:900}.settings-system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.settings-system-grid section{padding:16px;border:1px solid #dce5e0;border-radius:12px;background:#fff}.settings-system-grid h4{font-size:13px;margin:10px 0 4px}.settings-system-grid p{min-height:35px;margin:0 0 13px;color:#65746e;font-size:10px;line-height:1.5}.settings-system-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e7f3ed;color:#075e45;font-weight:800}.settings-system-grid button{font-size:11px}.settings-data-note{display:flex;gap:8px;margin-top:12px;padding:12px 14px;border:1px solid #e5d7b9;border-radius:10px;background:#fff9ed;color:#695f49;font-size:10px;line-height:1.45}.settings-data-note b{color:#704d14;white-space:nowrap}
@media(max-width:900px){.settings-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-manage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#settingsBackdrop{padding:0}#settingsBackdrop .settings-modal{width:100vw;height:100vh;max-height:100vh;border-radius:0}.settings-head,.settings-actions{padding-left:15px;padding-right:15px}.settings-head p{max-width:280px}.settings-note{padding:9px 15px}.settings-note span:last-child{display:none}.settings-tabs{padding-left:8px;padding-right:8px}#settingsContent{padding:14px}.settings-summary-grid,.settings-manage-grid,.settings-health-grid,.settings-system-grid{grid-template-columns:1fr}.settings-manage-grid>button{min-height:118px}.settings-field-row{grid-template-columns:1fr 76px}.settings-field-row>span{grid-column:1/-1}.settings-column-head{display:none}.settings-actions{align-items:stretch;flex-direction:column}.settings-actions-left,.settings-actions-right{display:grid;grid-template-columns:1fr 1fr}.settings-actions button{font-size:10px}.settings-system-grid p{min-height:0}}
.settings-page-directory{margin-top:23px}.settings-page-directory>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:11px}.settings-page-directory article{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:11px 12px;border:1px solid #dce6e0;border-radius:9px;background:#fff}.settings-page-directory article b{font-size:11px}.settings-page-directory article small{grid-column:1;color:#6b7973;font-size:9px;line-height:1.4}.settings-page-directory article span{grid-column:2;grid-row:1/3;align-self:center;padding:4px 7px;border-radius:999px;background:#e5f3ec;color:#08714f;font-size:8px}@media(max-width:620px){.settings-page-directory>div:last-child{grid-template-columns:1fr}}
.software-release-panel{margin:14px 0;padding:16px;border:1px solid #d8e3dd;border-radius:11px;background:#fff}.software-release-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.software-release-panel>header span{color:#ad6b13;font-size:9px;font-weight:700}.software-release-panel h2{margin:3px 0;font-size:18px}.software-release-panel header p{margin:0;color:#6b7973;font-size:10px}.software-release-panel>header>b{padding:6px 9px;border-radius:999px;background:#e9f3ee;color:#126149;font-size:9px;white-space:nowrap}.software-release-panel>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.software-release-panel article{display:flex;gap:9px;padding:10px;border:1px solid #e1e8e4;border-radius:8px;background:#fafcfb}.software-release-panel article i{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:7px;background:#e5f3ec;color:#08714f;font-style:normal}.software-release-panel article b{font-size:11px}.software-release-panel article p{margin:3px 0 0;color:#68766f;font-size:9px;line-height:1.45}@media(max-width:720px){.software-release-panel>div{grid-template-columns:1fr}}

.attachment-workspace{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;border:1px solid var(--line);border-radius:9px;padding:13px;background:#f8faf8}.attachment-inputs{display:grid;gap:12px}.attachment-inputs label{display:block}.image-preview-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px;min-height:185px}.preview-title{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}.preview-title small{color:var(--muted);font-size:9px}.attachment-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.preview-card{position:relative;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#f1f3f1;aspect-ratio:1}.preview-card img{width:100%;height:100%;object-fit:cover;display:block}.preview-card span{position:absolute;left:0;right:0;bottom:0;background:#111a;color:#fff;padding:4px 6px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview-card.broken{display:grid;place-items:center;padding:8px;text-align:center;color:var(--muted);font-size:10px}.preview-empty{grid-column:1/-1;display:grid;place-items:center;min-height:130px;color:var(--muted);border:1px dashed #cbd3cd;border-radius:7px}.select-manage-hint{display:block;color:var(--green2)!important;font-size:9px!important;margin-top:3px!important}.workorder-images{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.workorder-images a{display:block;border:1px solid var(--line);border-radius:7px;overflow:hidden}.workorder-images img{display:block;width:100%;height:115px;object-fit:cover}@media(max-width:740px){.attachment-workspace{grid-template-columns:1fr}.workorder-images{grid-template-columns:repeat(2,1fr)}}

#orderForm .product-image-fixed-section{padding:18px 25px;border-bottom:1px solid var(--line);background:#fff}
#orderForm .product-image-fixed-section .attachment-workspace{margin:0;background:#f8faf8;border-color:var(--line);box-shadow:none}
#orderForm .image-preview-panel{min-width:0}.product-main-preview{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:220px;padding:10px;border:1px dashed #bfd0c7;border-radius:9px;background:#fff;overflow:hidden;cursor:zoom-in}.product-main-preview img,.cad-main-preview img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.media-main-badge{position:absolute;left:12px;top:12px;padding:4px 8px;border-radius:999px;background:#0f5a46e8;color:#fff;font-size:8px;line-height:1;pointer-events:none}.product-thumbnail-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:7px;margin-top:9px}.product-thumb{position:relative;height:64px;padding:4px;border:1px solid #ccd9d2;border-radius:8px;background:#fff;cursor:grab;overflow:visible}.product-thumb.is-main{border-color:#167153;box-shadow:0 0 0 2px #dceee6}.product-thumb.dragging{opacity:.45}.product-thumb.drag-over{border-color:var(--green);box-shadow:0 0 0 2px #d9ebe2}.product-thumb img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;cursor:zoom-in}.product-thumb span{position:absolute;left:4px;bottom:3px;display:grid;place-items:center;min-width:17px;height:17px;border-radius:5px;background:#164f3dcc;color:#fff;font-size:8px}.product-image-remove,.cad-image-remove{position:absolute;z-index:2;right:-5px;top:-5px;display:grid;place-items:center;width:21px;height:21px;padding:0;border:1px solid #b7ccc1;border-radius:50%;background:#fff;color:#285c49;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 2px 7px #17392a20}.product-image-remove:hover,.cad-image-remove:hover{background:#e6f1eb}.product-main-preview.broken,.product-thumb.broken{background:#eef2ef}
#orderForm .cad-image-section{padding-bottom:20px}.cad-image-workspace{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:13px;border:1px solid #bad3c6;border-radius:10px;background:#f6faf7}.cad-image-inputs{display:grid;align-content:start;gap:13px}.cad-image-inputs label{display:block}.cad-image-preview-panel{padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}.cad-image-preview{min-height:190px}.cad-main-preview{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:190px;padding:10px;border:1px dashed #bfd0c7;border-radius:8px;background:#fff;overflow:visible;cursor:zoom-in}.cad-main-preview img{max-width:100%;max-height:100%}
.new-order-media-lightbox{position:fixed;z-index:500;inset:0;display:none;align-items:center;justify-content:center;padding:32px;background:#0c1712d9}.new-order-media-lightbox.open{display:flex}.new-order-media-lightbox img{display:block;max-width:min(94vw,1200px);max-height:90vh;object-fit:contain;border-radius:10px;background:#fff;box-shadow:0 24px 70px #0008}.new-order-media-lightbox button{position:fixed;right:24px;top:20px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#174b3b;font-size:25px;cursor:pointer}
#orderForm .attachment-workspace{grid-template-areas:"files preview";align-items:start}#orderForm .attachment-inputs{grid-area:files}#orderForm .image-preview-panel{grid-area:preview}#orderForm .product-link-field{margin-top:13px;padding-top:13px;border-top:1px solid #dbe5df}#orderForm .attachment-preview{display:block}
.product-link-field{display:block}.product-link-add-row{display:grid;grid-template-columns:34px minmax(0,1fr) 42px;align-items:center;margin-top:6px;border:1px solid #cad8d1;border-radius:8px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}.product-link-add-row:focus-within{border-color:#1c7658;box-shadow:0 0 0 3px #dfeee7}.product-link-symbol{display:grid;place-items:center;height:40px;background:#edf5f1;color:#155b43;font-size:15px}.product-link-add-row input{width:100%;height:40px!important;padding:0 10px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;outline:0}.product-link-add-row button{display:grid;place-items:center;width:42px;height:40px;padding:0;border:0;background:var(--green);color:#fff;font-size:20px;font-weight:700;cursor:pointer}.product-link-add-row button:hover{background:#0b4938}.product-link-field>small{display:block;margin-top:6px;color:var(--muted)}
.product-image-link-list{margin-top:11px;border-top:1px solid #e0e8e3;padding-top:9px}.product-link-list-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.product-link-list-title b{font-size:10px;color:#214c3d}.product-link-list-title span{color:var(--muted);font-size:8px}.product-link-list-row{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:7px;margin-top:5px;padding:6px 8px;border:1px solid #dbe5df;border-radius:7px;background:#f7faf8}.product-link-list-row>span{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#dfeee7;color:#155a43;font-size:9px;font-weight:800}.product-link-list-row a{min-width:0;overflow:hidden;color:#285d49;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.product-link-list-empty{padding:9px;border:1px dashed #cad7d0;border-radius:7px;color:var(--muted);font-size:9px;text-align:center}
@media(max-width:740px){#orderForm .product-image-fixed-section{padding:14px}#orderForm .attachment-workspace{grid-template-areas:"files" "preview";grid-template-columns:1fr}.cad-image-workspace{grid-template-columns:1fr}.product-main-preview{height:190px}.product-thumbnail-strip{grid-template-columns:repeat(4,1fr)}}

.attachment-preview .preview-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.attachment-preview .preview-card.broken a {
  color: var(--green2);
  font-weight: 700;
  text-decoration: none;
}

.ed-native{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}.ed-dropdown{position:relative;width:100%;margin-top:5px;font-weight:400}.ed-trigger{width:100%;min-height:40px;border:1px solid #dbe1dd;background:#fff;border-radius:7px;padding:9px 36px 9px 10px;text-align:left;position:relative;color:var(--ink);font:inherit;cursor:pointer}.ed-trigger:after{content:'⌄';position:absolute;right:12px;font-size:18px;top:6px}.ed-dropdown.open .ed-trigger{border-color:var(--green2);box-shadow:0 0 0 2px rgba(40,113,88,.12)}.ed-menu{display:none;position:absolute;z-index:100;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #bfc9c2;border-radius:8px;box-shadow:0 12px 30px rgba(18,32,24,.18);max-height:320px;overflow:auto;padding:6px}.ed-dropdown.open .ed-menu{display:block}.ed-option{display:grid;grid-template-columns:minmax(0,1fr) 32px 32px;gap:3px;align-items:center;border-radius:6px;min-height:38px;margin:1px 0}.ed-option.selected{background:#e6f1eb;color:var(--green);font-weight:700}.ed-option-name{border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:6px;overflow:hidden;text-overflow:ellipsis;color:inherit;font:inherit;cursor:pointer}.ed-option-name:hover{background:#f0f5f2}.ed-action{border:0;background:transparent;width:30px;height:30px;border-radius:6px;color:#617069;cursor:pointer;font-size:14px}.ed-action:hover{background:#e9eeeb}.ed-action.remove:hover{background:#f9e8e6;color:#a83e38}.ed-editor{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 34px 34px;gap:5px;padding:4px}.ed-editor input,.ed-add-row input{border:1px solid var(--green2);border-radius:6px;padding:8px;width:100%;font:inherit;outline:0}.ed-confirm{grid-column:1/-1;background:#fff3e8;border:1px solid #efd2b8;border-radius:6px;padding:8px;display:flex;align-items:center;gap:7px;font-size:11px}.ed-confirm span{flex:1}.ed-confirm button{border:0;border-radius:5px;padding:6px 8px;cursor:pointer}.ed-confirm .yes{background:#aa403b;color:#fff}.ed-add{width:100%;border:1px dashed #9db7aa;background:#f6faf8;color:var(--green2);border-radius:6px;padding:9px;margin-top:5px;text-align:left;font-weight:700;cursor:pointer}.ed-add-row{display:grid;grid-template-columns:minmax(0,1fr) 34px 34px;gap:5px;margin-top:5px}.ed-error{color:#ad3e38;font-size:10px;padding:3px 5px}.backup-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}@media(max-width:740px){.ed-menu{position:fixed;left:12px;right:12px;top:auto;bottom:12px;max-height:62vh;border-radius:12px;padding:9px;z-index:120}.ed-option{min-height:44px}.ed-option-name{padding:12px 10px}.ed-action{width:38px;height:38px}.ed-option{grid-template-columns:minmax(0,1fr) 40px 40px}}

.sd-native{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}.sd-dropdown{position:relative;width:100%;margin-top:5px;font-weight:400;min-width:0}.sd-trigger{width:100%;min-height:40px;border:1px solid #dbe1dd;background:#fff;border-radius:7px;padding:9px 36px 9px 10px;text-align:left;position:relative;color:var(--ink);font:inherit;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sd-trigger:after{content:'⌄';position:absolute;right:12px;font-size:18px;top:6px}.sd-dropdown.open .sd-trigger{border-color:var(--green2);box-shadow:0 0 0 2px rgba(40,113,88,.12)}.sd-menu{display:none;position:fixed;z-index:160;background:#fff;border:1px solid #bfc9c2;border-radius:9px;box-shadow:0 14px 34px rgba(18,32,24,.2);padding:7px;overflow:hidden}.sd-dropdown.open .sd-menu{display:flex;flex-direction:column}.sd-search-wrap{position:relative;flex:0 0 auto;margin-bottom:5px}.sd-search{width:100%;height:38px;border:1px solid #cfd8d2;border-radius:7px;padding:8px 30px 8px 10px;font:inherit;outline:0}.sd-search:focus{border-color:var(--green2);box-shadow:0 0 0 2px rgba(40,113,88,.1)}.sd-search-icon{position:absolute;right:10px;top:9px;color:#7d8982}.sd-options{overflow-y:auto;overflow-x:hidden;min-height:0;scrollbar-width:thin;scrollbar-color:#aebcb4 #f1f3f2}.sd-options::-webkit-scrollbar{width:7px}.sd-options::-webkit-scrollbar-thumb{background:#aebcb4;border-radius:5px}.sd-option{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:8px;align-items:center;border-radius:7px;min-height:42px;margin:2px 0}.sd-option.selected{background:#e3f0e9;color:var(--green);font-weight:700}.sd-option.active{outline:2px solid #86aa99;outline-offset:-2px}.sd-option-name{border:0;background:transparent;text-align:left;padding:10px 12px;border-radius:6px;white-space:normal;overflow-wrap:anywhere;color:inherit;font:inherit;cursor:pointer;min-width:0}.sd-option-name:hover{background:#f0f5f2}.sd-rename{border:0;background:transparent;width:34px;height:34px;border-radius:6px;color:#52675d;cursor:pointer;font-size:15px}.sd-rename:hover{background:#e7eeea;color:var(--green)}.sd-editor{display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;gap:5px;padding:5px}.sd-editor input,.sd-add-editor input{border:1px solid var(--green2);border-radius:6px;padding:8px;width:100%;font:inherit;outline:0}.sd-icon{border:0;background:#edf3ef;border-radius:6px;cursor:pointer;font-size:15px}.sd-icon.save{background:var(--green);color:#fff}.sd-footer{flex:0 0 auto;border-top:1px solid var(--line);padding-top:6px;margin-top:5px}.sd-add{width:100%;border:1px dashed #91ad9f;background:#f5faf7;color:var(--green);border-radius:7px;padding:9px 11px;text-align:left;font-weight:700;cursor:pointer}.sd-add:hover{background:#eaf4ee}.sd-add-editor{display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;gap:5px}.sd-error,.sd-empty{padding:9px;color:#a63e38;font-size:11px}.sd-empty{text-align:center;color:var(--muted)}.sd-confirmation{background:#e5f2ea;color:#246248;border-radius:6px;padding:7px 9px;font-size:10px;margin-bottom:5px}.gemstone-row .sd-dropdown{margin-top:5px}.gemstone-row .sd-trigger{font-size:11px;padding-left:7px}.layout-item .sd-dropdown,.add-field-inline .sd-dropdown{margin-top:0}.layout-item .sd-trigger,.add-field-inline .sd-trigger{font-size:10px}@media(max-width:740px){.sd-menu{border-radius:11px}.sd-option{min-height:46px}.sd-option-name{padding:13px 11px}.sd-rename{width:40px;height:40px}.sd-search{height:42px}}

/* Shared dropdown value actions: compact on desktop, touch-friendly on mobile. */
.sd-option{grid-template-columns:minmax(0,1fr) 38px 54px!important;gap:6px}
.sd-rename,.sd-remove{border:0;background:transparent;height:34px;border-radius:6px;cursor:pointer;font-size:11px;font-weight:700}
.sd-rename{width:34px;font-size:0;color:#52675d}.sd-rename:after{content:'✎';font-size:15px}
.sd-remove{width:54px;color:#8b4039}.sd-rename:hover{background:#e7eeea;color:var(--green)}.sd-remove:hover{background:#fae9e7;color:#9f332b}
.sd-editor,.sd-add-editor{grid-template-columns:minmax(0,1fr) 52px 60px!important}
.sd-icon{font-size:11px!important;font-weight:700}.sd-remove-confirm{display:grid;gap:8px;padding:11px;background:#fff5ed;border:1px solid #efcfb5;border-radius:7px;font-size:11px}.sd-remove-confirm span{color:#68756e}.sd-remove-confirm div{display:flex;gap:6px}.sd-remove-confirm button{border:0;border-radius:5px;padding:7px 10px;cursor:pointer;font:inherit;font-weight:700}.sd-remove-yes{background:#a53c34;color:#fff}.sd-remove-no{background:#edf2ee;color:var(--ink)}
@media(max-width:740px){.sd-option{min-height:46px;grid-template-columns:minmax(0,1fr) 42px 64px!important}.sd-rename{width:42px;height:40px}.sd-remove{width:64px;height:40px}}

/* Dropdowns are portal-like overlays: they must never sit below a form, table, drawer, or modal. */
.sd-dropdown.open,.ed-dropdown.open{position:relative!important;z-index:2147483000!important;isolation:auto!important}
.sd-dropdown.open .sd-menu,.ed-dropdown.open .ed-menu{position:fixed!important;z-index:2147483001!important;pointer-events:auto!important;overflow:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
.form-section:has(.sd-dropdown.open),.form-section:has(.ed-dropdown.open){position:relative;z-index:2147482999!important;overflow:visible!important}
.modal:has(.sd-dropdown.open),.modal:has(.ed-dropdown.open),.order-modal:has(.sd-dropdown.open),.order-modal:has(.ed-dropdown.open){overflow:visible!important}

/* Keep management actions compact: a pencil and a remove symbol, never long labels. */
.sd-option .sd-remove{width:34px!important;min-width:34px!important;font-size:0!important;color:#a13b34!important}
.sd-option .sd-remove::after{content:'×';font-size:20px;line-height:1;font-weight:500}
.sd-option{grid-template-columns:minmax(0,1fr) 38px 34px!important}
.sd-option .sd-rename{font-size:0!important}.sd-option .sd-rename::after{content:'✎';font-size:16px}
@media(max-width:740px){.sd-dropdown.open .sd-menu,.ed-dropdown.open .ed-menu{max-height:min(68vh,430px)!important}.sd-option{grid-template-columns:minmax(0,1fr) 42px 42px!important}.sd-option .sd-remove{width:42px!important;min-width:42px!important;height:40px!important}}

.section-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-title-row h3{margin:0!important}.field-arrange-btn{border:1px solid #b7c9bf;background:#f5faf7;color:var(--green);border-radius:6px;padding:6px 9px;font-size:10px;font-weight:700;cursor:pointer}.field-layout-panel{display:none;background:#f4f7f5;border:1px solid #ccd7d0;border-radius:9px;padding:12px;margin:0 0 15px}.field-layout-panel.open{display:block}.layout-help{font-size:10px;color:var(--muted);margin:0 0 10px}.layout-list{display:grid;gap:6px}.layout-item{display:grid;grid-template-columns:24px minmax(130px,1fr) 105px auto auto;gap:6px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:7px;padding:6px}.layout-item.hidden-field{opacity:.58;background:#f4f4f4}.layout-drag{color:#99a39d;text-align:center;cursor:grab}.layout-name{border:1px solid transparent;border-radius:5px;padding:6px;font:inherit;font-size:11px;min-width:0}.layout-name:focus{border-color:var(--green2);outline:0}.layout-width{border:1px solid var(--line);border-radius:5px;padding:6px;background:#fff;font-size:10px}.layout-move{display:flex;gap:2px}.layout-icon{border:0;background:#edf2ef;border-radius:5px;width:28px;height:28px;cursor:pointer;color:#40564c}.layout-icon:hover{background:#dce9e2}.layout-remove{border:0;background:#f8e9e7;color:#9b3d37;border-radius:5px;padding:6px 8px;font-size:10px;cursor:pointer}.layout-remove.restore{background:#e4f1ea;color:#256047}.add-field-inline{display:grid;grid-template-columns:1.2fr .8fr .7fr auto;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.add-field-inline input,.add-field-inline select{border:1px solid var(--line);border-radius:6px;padding:8px;background:#fff;font:inherit;font-size:11px}.add-field-inline button{border:0;background:var(--green);color:#fff;border-radius:6px;padding:8px 11px;font-size:11px;font-weight:700;cursor:pointer}.field-span-1{grid-column:span 1}.field-span-2{grid-column:span 2}.field-span-3{grid-column:1/-1}.custom-field-note{display:block;color:var(--muted);font-size:9px!important;font-weight:400}.additional-spec-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.additional-spec-grid .info.full{grid-column:1/-1}@media(max-width:740px){.layout-item{grid-template-columns:22px 1fr auto}.layout-width{grid-column:2}.layout-move{grid-column:3;grid-row:1}.layout-remove{grid-column:3;grid-row:2}.add-field-inline{grid-template-columns:1fr 1fr}.add-field-inline input{grid-column:1/-1}.field-span-1,.field-span-2{grid-column:span 1}.field-span-3{grid-column:1/-1}}

.layout-item{grid-template-columns:30px minmax(130px,1fr) 105px auto!important;transition:.15s}.layout-item.dragging{opacity:.42;border:1px dashed var(--green2)}.layout-item.drag-over{border-color:var(--green2);box-shadow:0 0 0 2px rgba(40,113,88,.12)}.layout-drag{color:#71827a!important;cursor:grab!important;font-size:18px;touch-action:none;user-select:none}.layout-drag:active{cursor:grabbing!important}.layout-remove{padding:7px 9px!important}.layout-savebar{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:12px;padding-top:11px;border-top:1px solid var(--line)}.layout-savebar small{margin-right:auto;color:var(--muted)}.layout-savebar button{border-radius:6px;padding:8px 13px;font-size:11px;font-weight:700;cursor:pointer}.layout-cancel{border:1px solid var(--line);background:#fff}.layout-save{border:0;background:var(--green);color:#fff}@media(max-width:740px){.layout-item{grid-template-columns:28px 1fr auto!important}.layout-width{grid-column:2}.layout-remove{grid-column:3;grid-row:1/3}.layout-savebar{position:sticky;bottom:0;background:#f4f7f5;padding-bottom:3px}}
.administrator-layout .layout-item{grid-template-columns:28px minmax(120px,1fr) 82px 100px auto!important}.layout-required{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;margin:0;padding:4px 7px;border:1px solid #c9d9d0;border-radius:6px;background:#f4faf6;color:#174e3c;font-size:9px;font-weight:750;white-space:nowrap}.layout-required input{width:14px;height:14px;margin:0;accent-color:var(--green)}#orderForm [data-required-field="true"]>label:first-child,#orderForm label[data-required-field="true"]{border-color:#b8d1c4}@media(max-width:740px){.administrator-layout .layout-item{grid-template-columns:26px minmax(0,1fr) 82px!important}.administrator-layout .layout-required{grid-column:3;grid-row:1}.administrator-layout .layout-width{grid-column:2}.administrator-layout .layout-remove{grid-column:3;grid-row:2}}

.layout-item.locked-field{grid-template-columns:30px minmax(160px,1fr) 155px!important;background:#eef5f1;border-color:#aac2b5}.locked-field .layout-drag{cursor:not-allowed!important;font-size:14px}.locked-width{font-size:10px;color:var(--green);font-weight:700;text-align:center;padding:7px;background:#deece4;border-radius:5px}@media(max-width:740px){.layout-item.locked-field{grid-template-columns:28px 1fr!important}.locked-width{grid-column:2}}

.builder-actions{display:flex;gap:7px;flex-wrap:wrap}.gem-column-btn{border:1px solid #afc4b8;background:#fff;color:var(--green);border-radius:6px;padding:7px 9px;font-size:10px;font-weight:700;cursor:pointer}.gem-column-panel{display:none;background:#eef4f0;border:1px solid #c8d6ce;border-radius:8px;padding:10px;margin:0 0 11px}.gem-column-panel.open{display:block}.gem-column-list{display:grid;gap:5px}.gem-column-item{display:grid;grid-template-columns:28px minmax(110px,1fr) 110px auto;gap:6px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:6px;padding:6px}.gem-column-item.dragging{opacity:.4}.gem-column-item.drag-over{border-color:var(--green2)}.gem-col-drag{cursor:grab;touch-action:none;text-align:center;color:#708078;font-size:17px}.gem-col-name{border:1px solid var(--line);border-radius:5px;padding:7px;font:inherit;font-size:10px}.gem-col-type{border:1px solid var(--line);border-radius:5px;padding:7px;background:#fff;font-size:10px}.gem-col-remove{border:0;background:#f7e7e5;color:#9d3e38;border-radius:5px;padding:7px;font-size:10px;cursor:pointer}.gem-col-add{display:grid;grid-template-columns:1fr 120px auto;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}.gem-col-add input,.gem-col-add select{border:1px solid var(--line);border-radius:6px;padding:8px;background:#fff;font:inherit;font-size:10px}.gem-col-add button{border:0;background:var(--green);color:#fff;border-radius:6px;padding:8px 10px;font-weight:700}.gem-column-savebar{display:flex;justify-content:flex-end;gap:7px;margin-top:9px}.gem-column-savebar button{border-radius:6px;padding:7px 11px;font-weight:700;font-size:10px}.gem-column-cancel{border:1px solid var(--line);background:#fff}.gem-column-save{border:0;background:var(--green);color:#fff}.gemstone-row.dynamic-gems{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}.gemstone-row.dynamic-gems .gem-remove-row{align-self:end}@media(max-width:740px){.builder-head{align-items:flex-start;flex-direction:column}.gem-column-item{grid-template-columns:25px 1fr auto}.gem-col-type{grid-column:2}.gem-col-remove{grid-column:3;grid-row:1/3}.gem-col-add{grid-template-columns:1fr 1fr}.gem-col-add input{grid-column:1/-1}}

.register-tools{display:flex;gap:7px;align-items:center}.register-manage-btn{border:1px solid #adc2b6;background:#fff;color:var(--green);border-radius:7px;padding:9px 12px;font-weight:700;cursor:pointer}.register-view-chips{display:flex;gap:5px;overflow-x:auto;margin-bottom:11px;padding-bottom:2px}.view-chip{border:1px solid var(--line);background:#fff;border-radius:16px;padding:6px 10px;white-space:nowrap;font-size:10px;cursor:pointer}.view-chip.active{background:var(--green);color:#fff;border-color:var(--green)}.register-table{table-layout:fixed;min-width:max-content}.register-table th,.register-table td{position:relative;overflow:hidden;text-overflow:ellipsis}.register-table th{background:#fff;cursor:pointer;user-select:none}.register-table .sticky-col{position:sticky;z-index:5;background:#fff;box-shadow:1px 0 #dfe4e0}.register-table thead .sticky-col{z-index:8}.sort-mark{margin-left:5px;color:var(--green)}.col-resizer{position:absolute;right:0;top:0;bottom:0;width:7px;cursor:col-resize;z-index:4}.col-resizer:hover{background:rgba(40,113,88,.18)}.column-filters th{padding:6px;background:#f5f7f5}.column-filter{width:100%;border:1px solid #dce2de;border-radius:5px;padding:6px;font-size:9px;outline:0}.column-filter:focus{border-color:var(--green2)}.order-thumb{width:60px;height:60px;object-fit:cover;border-radius:6px;border:1px solid var(--line);cursor:zoom-in;display:block}.thumb-wrap{position:relative;width:60px}.thumb-count{position:absolute;right:-5px;top:-5px;background:var(--green);color:#fff;border-radius:11px;padding:2px 5px;font-size:8px}.thumb-wrap:hover .thumb-zoom{display:block}.thumb-zoom{display:none;position:fixed;z-index:130;width:220px;height:220px;object-fit:cover;border:4px solid #fff;border-radius:9px;box-shadow:0 12px 35px #0004;pointer-events:none}.no-image{width:60px;height:60px;border:1px dashed #cbd3ce;border-radius:6px;display:grid;place-items:center;color:#99a29d;font-size:9px;text-align:center}.register-panel-backdrop{display:none;position:fixed;inset:0;background:#11201880;z-index:170}.register-panel-backdrop.open{display:block}.register-panel{position:absolute;right:0;top:0;bottom:0;width:min(640px,100%);background:#fff;overflow:auto;box-shadow:-12px 0 35px #0002}.register-panel-head{position:sticky;top:0;background:#fff;z-index:3;padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.register-panel-head h2{margin:0;font-size:18px}.register-panel-body{padding:16px 20px}.preset-row{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0 16px}.preset-btn{border:1px solid var(--line);background:#f7f9f7;border-radius:6px;padding:7px 9px;font-size:10px;cursor:pointer}.preset-btn:hover{border-color:var(--green2)}.freeze-row{display:flex;gap:8px;align-items:center;padding:10px;background:#f5f7f5;border-radius:7px;margin-bottom:12px}.freeze-row label{font-size:11px;font-weight:700}.freeze-row select,.saved-view-row input{border:1px solid var(--line);border-radius:6px;padding:8px;background:#fff}.column-manager-list{display:grid;gap:5px}.manager-column{display:grid;grid-template-columns:25px 25px minmax(130px,1fr) 78px 36px;gap:6px;align-items:center;border:1px solid var(--line);border-radius:7px;padding:7px;background:#fff}.manager-column.off{opacity:.55;background:#f5f5f5}.manager-column.drag-over{border-color:var(--green2)}.manager-drag{cursor:grab;touch-action:none;color:#718078;font-size:17px}.manager-column input[type=number]{width:75px;border:1px solid var(--line);border-radius:5px;padding:6px}.manager-pin{border:0;background:transparent;cursor:pointer;font-size:15px;filter:grayscale(1)}.manager-pin.on{filter:none}.saved-view-row{display:grid;grid-template-columns:1fr auto;gap:7px;margin:15px 0}.manager-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:13px 20px;display:flex;gap:8px;justify-content:flex-end}.image-lightbox{display:none;position:fixed;inset:0;background:#0b120fdd;z-index:220;align-items:center;justify-content:center;padding:20px}.image-lightbox.open{display:flex}.image-lightbox img{max-width:92vw;max-height:88vh;object-fit:contain;border-radius:8px}.image-lightbox button{position:absolute;right:20px;top:15px;color:#fff;font-size:28px}.register-print-controls{display:flex;gap:7px;margin-left:auto}@media(max-width:740px){.register-tools{overflow-x:auto}.register-panel{width:100%}.manager-column{grid-template-columns:24px 24px 1fr 34px}.manager-column input[type=number]{grid-column:3}.register-view-chips{margin-top:8px}.order-thumb,.no-image{width:48px;height:48px}.thumb-wrap{width:48px}}@media print{body{background:#fff}.sidebar,.topbar,.toolbar,.register-view-chips,.register-panel-backdrop,.toast{display:none!important}main{margin:0}.view{padding:0!important}.order-register{border:0}.register-table{font-size:9px;min-width:100%;width:100%}.register-table th,.register-table td{padding:5px!important;white-space:normal}.column-filters,.action-col{display:none!important}.order-thumb,.no-image{width:42px;height:42px}.register-table .sticky-col{position:static;box-shadow:none}}

.toolbar{align-items:flex-start}.tabs{padding:2px}.tabs button{padding:6px 9px;font-size:10px}.toolbar-actions{align-items:center;flex-wrap:nowrap}.toolbar-actions>.register-tools,.toolbar-actions>#importBtn,.toolbar-actions>#exportBtn{display:none!important}.compact-actions{display:flex;gap:5px;align-items:center;white-space:nowrap}.compact-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid #d6ddd8;background:#fff;border-radius:7px;cursor:pointer;font-size:16px;color:var(--ink)}.compact-icon:hover{border-color:#8eaa9b;background:#f1f7f3}.compact-icon.pdf,.compact-icon.xls{font-size:9px;font-weight:800}.print-orientation{height:36px;border:1px solid #d6ddd8;border-radius:7px;background:#fff;padding:0 6px;font-size:9px}.filter-count-badge{position:absolute;right:-4px;top:-5px;background:#b74640;color:#fff;border-radius:9px;min-width:16px;height:16px;display:grid;place-items:center;font-size:8px}.filter-icon-wrap{position:relative}.active-filter-bar{display:none;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px}.active-filter-bar.show{display:flex}.filter-summary{font-size:10px;color:var(--muted);font-weight:700}.filter-chip{border:1px solid #b9cec2;background:#edf5f1;color:#295b47;border-radius:15px;padding:5px 8px;font-size:9px;cursor:pointer}.clear-filter-btn{border:0;background:none;color:#a4423c;font-size:9px;cursor:pointer}.filter-backdrop{display:none;position:fixed;inset:0;background:#10201880;z-index:180}.filter-backdrop.open{display:block}.filter-panel{position:absolute;right:0;top:0;bottom:0;width:min(520px,100%);background:#fff;overflow:auto;box-shadow:-12px 0 35px #0002}.filter-head{position:sticky;top:0;background:#fff;z-index:3;padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.filter-head h2{margin:0}.filter-body{padding:17px 20px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.filter-body label{font-size:10px;font-weight:700}.filter-body input,.filter-body select{display:block;width:100%;border:1px solid var(--line);border-radius:7px;padding:9px;margin-top:4px;background:#fff}.filter-body .full{grid-column:1/-1}.filter-checks{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f5f7f5;padding:11px;border-radius:7px}.filter-checks label{display:flex;gap:7px;align-items:center}.filter-checks input{width:auto;margin:0}.filter-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:13px 20px;display:flex;justify-content:flex-end;gap:8px}.register-print-sheet{display:none}.register-table th{white-space:normal;line-height:1.2;overflow:visible;text-overflow:clip}.register-table td{height:70px}.order-register .table-wrap{overflow-x:auto}.toolbar-actions>.sd-dropdown{min-width:135px;max-width:170px;margin:0}@media(max-width:900px){.toolbar{flex-direction:column}.toolbar-actions{width:100%;overflow-x:auto;padding-bottom:3px}.compact-icon{flex:0 0 34px;width:34px;height:34px}.filter-body{grid-template-columns:1fr}.filter-body .full,.filter-checks{grid-column:1}.filter-checks{grid-template-columns:1fr 1fr}}@media print{body>*:not(.register-print-sheet){display:none!important}.register-print-sheet{display:block!important;position:static!important;color:#000;background:#fff}.register-print-sheet h1{font-size:16px;margin:0 0 3px}.register-print-sheet p{font-size:9px;margin:0 0 10px}.register-print-sheet table{width:100%;border-collapse:collapse;table-layout:fixed}.register-print-sheet thead{display:table-header-group}.register-print-sheet tr{page-break-inside:avoid}.register-print-sheet th,.register-print-sheet td{border:1px solid #777;padding:4px;font-size:7px;white-space:normal;overflow-wrap:anywhere}.register-print-sheet img{width:40px;height:40px;object-fit:cover}.register-print-sheet .sub{display:block;font-size:6px}}

.order-thumb{width:80px!important;height:80px!important;object-fit:contain!important;background:#f7f7f4;padding:3px}.thumb-wrap{width:80px!important}.thumb-zoom{object-fit:contain!important;background:#fff}.detail-main-image{width:100%;height:260px;object-fit:contain;background:#f6f7f5;border:1px solid var(--line);border-radius:9px;cursor:zoom-in}.quick-image-empty,.full-image-empty{height:220px;display:grid;place-items:center;background:#f5f6f4;border:1px dashed #c8d0cb;border-radius:9px;color:var(--muted)}.quick-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.full-work-order-page{display:none;padding:22px 30px 45px}.full-work-order-page.open{display:block}.full-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.full-detail-head h1{margin:2px 0;font-size:23px}.full-detail-head p{margin:0;color:var(--muted)}.full-detail-actions{display:flex;gap:7px;flex-wrap:wrap}.full-order-grid{display:grid;grid-template-columns:minmax(280px,.85fr) 1.5fr;gap:18px}.full-image-card,.full-info-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}.full-main-image{width:100%;height:390px;object-fit:contain;background:#f7f7f4;border-radius:8px;cursor:zoom-in}.image-meta{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:10px}.image-meta a{color:var(--green2)}.additional-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.additional-thumbs img{width:100%;height:75px;object-fit:contain;background:#f5f5f2;border:1px solid var(--line);border-radius:6px;cursor:pointer}.full-section{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.full-section:first-child{border-top:0;margin-top:0;padding-top:0}.full-section h2{font-size:14px;margin:0 0 11px;color:var(--green)}.full-data-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.full-data{background:#f6f7f5;border-radius:7px;padding:9px;min-height:54px}.full-data small,.full-data b{display:block}.full-data small{font-size:8px;text-transform:uppercase;color:var(--muted)}.full-data b{overflow-wrap:anywhere}.detail-loading,.detail-error{padding:60px 25px;text-align:center;color:var(--muted)}.detail-error{color:#9f3d37}.image-viewer-v2{display:none;position:fixed;inset:0;background:#09100ddd;z-index:260;align-items:center;justify-content:center;overflow:hidden}.image-viewer-v2.open{display:flex}.image-viewer-v2 img{max-width:90vw;max-height:82vh;object-fit:contain;transform:scale(var(--zoom,1));transition:transform .15s}.viewer-controls{position:absolute;top:16px;right:18px;display:flex;gap:7px}.viewer-controls button{width:38px;height:38px;border:1px solid #ffffff55;background:#17201ccc;color:#fff;border-radius:7px;font-size:19px;cursor:pointer}.order-detail-print{display:none}.print-image-unavailable{display:grid;place-items:center;border:1px dashed #777;height:70mm}.upload-image-label{cursor:pointer}.upload-image-label input{display:none}@media(max-width:900px){.full-work-order-page{padding:15px}.full-order-grid{grid-template-columns:1fr}.full-data-grid{grid-template-columns:1fr 1fr}.full-main-image{height:300px}}@media(max-width:560px){.full-detail-head{flex-direction:column}.full-data-grid{grid-template-columns:1fr}.additional-thumbs{grid-template-columns:repeat(3,1fr)}}@media print{body>*:not(.order-detail-print){display:none!important}.order-detail-print{display:block!important;color:#000;background:#fff}.order-detail-print h1{font-size:18px;margin:0}.order-detail-print .print-meta{font-size:9px;margin:3px 0 10px}.order-detail-print .print-order-image{width:80mm;height:65mm;object-fit:contain;background:#fff;border:1px solid #777;display:block;margin-bottom:8px}.order-detail-print table{width:100%;border-collapse:collapse;margin-bottom:8px}.order-detail-print th,.order-detail-print td{border:1px solid #777;padding:5px;font-size:9px;text-align:left;vertical-align:top}.order-detail-print h2{font-size:12px;margin:10px 0 4px}.order-detail-print .barcode{font:24px monospace;letter-spacing:2px;text-align:center;border:1px solid #555;padding:7px;margin-top:10px}}
.quick-image-nav-shell{position:relative}.quick-image-nav-shell .detail-main-image{display:block}.quick-image-nav{position:absolute;top:50%;z-index:3;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #cddbd4;border-radius:50%;background:#fffffff2;color:#14533f;font-size:22px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 3px 10px #10291e2b;opacity:0;pointer-events:none;transform:translateY(-50%);transition:opacity .16s,background .16s,color .16s}.quick-image-prev{left:10px}.quick-image-next{right:10px}.quick-image-nav-shell:hover .quick-image-nav,.quick-image-nav-shell:focus-within .quick-image-nav{opacity:1;pointer-events:auto}.quick-image-nav:hover,.quick-image-nav:focus-visible{background:#145b45;color:#fff;outline:2px solid #fff;outline-offset:1px}
.quick-columns-backdrop{position:fixed;inset:0;z-index:10040;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(8,28,23,.6);backdrop-filter:blur(2px)}.quick-columns-backdrop.open{display:flex}.quick-columns-panel{width:min(560px,100%);max-height:min(760px,92vh);display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.28);overflow:hidden}.quick-columns-head{display:flex;justify-content:space-between;gap:16px;padding:22px 24px 16px;border-bottom:1px solid #dce5e1}.quick-columns-head h2{margin:4px 0 5px}.quick-columns-head p{margin:0;color:#687b74}.quick-columns-list{padding:12px 18px;overflow:auto}.quick-column-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-bottom:1px solid #edf1ef}.quick-column-row label{display:flex;align-items:center;gap:10px;font-weight:650}.quick-column-row input{width:17px;height:17px;accent-color:#0c5a44}.quick-column-row>div{display:flex;gap:6px}.quick-column-row .icon-btn{width:32px;height:30px}.quick-columns-actions{display:flex;justify-content:flex-end;gap:8px;padding:15px 18px;border-top:1px solid #dce5e1;background:#fafcfb}.quick-columns-actions #quickColumnsReset{margin-right:auto}.quick-fields-empty{grid-column:1/-1;padding:18px;border:1px dashed #bdcec7;border-radius:9px;color:#667a72;text-align:center}@media(max-width:560px){.quick-columns-actions{flex-wrap:wrap}.quick-columns-actions #quickColumnsReset{width:100%;margin-right:0}}
.order-cad-image-card{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.order-cad-image-card h3{margin:0 0 10px;color:var(--green);font-size:14px}.order-cad-image-button{display:grid;place-items:center;width:100%;height:220px;padding:10px;border:1px solid #d4dfd9;border-radius:10px;background:#f7faf8;cursor:zoom-in;overflow:hidden}.order-cad-image-button img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}.full-cad-image-card{margin:0 0 18px;padding:0 0 18px;border-top:0;border-bottom:1px solid var(--line)}.full-cad-image-card .order-cad-image-button{height:260px}.quick-cad-image-card{grid-column:1/-1}.quick-cad-image-card .order-cad-image-button{height:210px}

/* Compact site-matched arrange-columns control in Quick Details */
.quick-actions .quick-columns-launch{display:inline-grid!important;place-items:center;width:40px!important;height:40px!important;min-width:40px;padding:0!important;border:1px solid #a9c9ba!important;border-radius:10px!important;background:#eff7f3!important;color:#0d6045!important;font-size:19px!important;line-height:1!important;overflow:hidden;text-indent:-9999px}
.quick-actions .quick-columns-launch::after{content:'☷';text-indent:0}

/* Universal script supplies the icon; keep a single stable symbol */
.quick-actions .quick-columns-launch{text-indent:0!important}
.quick-actions .quick-columns-launch::after{content:none!important}
/* Universal controls for the existing Full Work Order detail boxes. */
.full-section-title{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.full-section-title h2{margin:0}.full-section-title .section-universal-columns{position:static!important;inset:auto!important;flex:none;transform:none!important;margin:0!important}.full-section-title .section-universal-columns:hover,.full-section-title .section-universal-columns:focus,.full-section-title .section-universal-columns:active{transform:none!important}
.full-gemstone-heading{margin-bottom:10px}.full-gemstone-heading h2{margin:0 0 3px}.full-gemstone-heading p{margin:0;color:var(--muted);font-size:9px}.full-gemstone-table{width:100%;overflow-x:auto}.full-gemstone-table table{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed}.full-gemstone-table th,.full-gemstone-table td{padding:11px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;overflow-wrap:anywhere}.full-gemstone-table th{color:var(--muted);font-size:8px;font-weight:800;text-transform:uppercase}.full-gemstone-table td{font-size:11px}.full-gemstone-table td b{color:var(--green)}.full-gemstone-empty{text-align:center!important;color:var(--muted)!important}

.full-detail-mode .view{display:none!important}.full-detail-mode #fullWorkOrderPage.open{display:block!important}

/* Selection and preview shell only. Bag Card layout intentionally removed for clean rebuild. */
.selection-col{width:44px;min-width:44px;max-width:44px;text-align:center;position:sticky;left:0;z-index:12;background:#fff}
.selection-checkbox,.selection-master{width:16px;height:16px;accent-color:var(--green);cursor:pointer}
.selection-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#eef4f0}
.selection-count{margin-right:5px;color:var(--green);font-size:11px;font-weight:800}
.selection-tool-btn{padding:6px 8px;border:1px solid #cbd6d0;border-radius:6px;background:#fff;font-size:9px;cursor:pointer}
.selection-tool-btn.primary{border-color:var(--green);background:var(--green);color:#fff}
.selection-tool-btn:disabled{opacity:.4;cursor:not-allowed}
.top-selected-count{padding:0 4px;color:var(--green);font-size:9px;font-weight:700;white-space:nowrap}
.print-type-backdrop,.print-preview-backdrop{display:none;position:fixed;inset:0;z-index:280;background:#0e1b1588}
.print-type-backdrop.open,.print-preview-backdrop.open{display:flex;align-items:center;justify-content:center;padding:15px}
.print-type-modal{width:min(480px,100%);padding:20px;border-radius:11px;background:#fff;box-shadow:0 18px 45px #0003}
.print-type-modal h2{margin:0 0 5px}
.print-type-options{display:grid;gap:8px;margin:16px 0}
.print-type-option{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.print-type-option:has(input:checked){border-color:var(--green2);background:#eef6f2}
.print-type-actions{display:flex;justify-content:flex-end;gap:8px}
.print-preview-backdrop{align-items:stretch;padding:12px}
.print-preview-modal{display:flex;width:min(1180px,100%);flex-direction:column;overflow:hidden;border-radius:11px;background:#edf0ed}
.preview-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line);background:#fff}
.preview-toolbar b{margin-right:auto}.preview-meta{color:var(--muted);font-size:9px}
.preview-document-wrap{flex:1;overflow:auto;padding:20px}
.preview-document{width:min(920px,100%);min-height:700px;margin:auto;padding:22px;background:#fff;box-shadow:0 5px 24px #0002}
.preview-register{width:100%;border-collapse:collapse;table-layout:fixed}
.preview-register th,.preview-register td{padding:5px;border:1px solid #717a75;font-size:8px;vertical-align:top;overflow-wrap:anywhere}
.preview-register img{width:25mm;height:25mm;object-fit:contain;background:#f7f7f4}
.print-loading{padding:70px;text-align:center;color:var(--muted)}
#print-container{display:block;visibility:visible;position:fixed;top:0;left:-99999px;z-index:-1;width:100%;background:#fff}
.image-fallback{display:grid;place-items:center;color:#777;font-size:9px;text-align:center}
@media(max-width:720px){.selection-toolbar,.preview-toolbar{overflow-x:auto;flex-wrap:nowrap}.selection-tool-btn{white-space:nowrap}.top-selected-count{display:none}.preview-document-wrap{padding:8px}.preview-document{padding:12px}}
@media print{body>*{display:none!important;visibility:hidden!important}#print-container{display:block!important;visibility:visible!important;position:absolute!important;top:0!important;left:0!important;z-index:9999!important;width:100%!important}#print-container *{visibility:visible!important}.preview-register thead{display:table-header-group}.preview-register tr{break-inside:avoid}}

.print-preview-backdrop.open{overflow:auto!important;align-items:flex-start!important}.print-preview-modal{height:calc(100vh - 24px)!important;min-height:0!important;overflow:hidden!important}.preview-document-wrap{min-height:0!important;overflow-y:scroll!important;overflow-x:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.preview-document{margin-bottom:30px!important}@media print{#print-container{position:static!important;left:auto!important;top:auto!important;height:auto!important;min-height:0!important;overflow:visible!important}#print-container .preview-document{position:static!important;height:auto!important;overflow:visible!important}.individual-print-order,.bag-card,.preview-register{position:relative!important}}
.preview-document-wrap.bag-preview-mode{overflow-x:hidden!important;padding:14px!important}.bag-preview-mode .preview-document{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-height:0!important;padding:14px!important;overflow:hidden!important}.bag-preview-mode .bag-print-document{transform-origin:top center!important}

#compactPrint,#compactPdf,#compactPrintSelected{display:none!important}#selectCurrent,#selectFiltered,#printSelected{display:none!important}.compact-actions{gap:6px}.compact-actions .top-selected-count{display:inline-block;min-width:auto;margin-right:4px;color:var(--green);font-weight:800}.selection-toolbar{padding:7px 10px;gap:7px}.selection-toolbar .selection-count{margin-right:auto}.selection-toolbar:has(.selection-count:only-child){display:none}.toolbar-actions{gap:9px}.compact-icon{width:35px;height:35px;flex:0 0 35px}.print-orientation{min-width:112px}.toolbar-actions>.sd-dropdown{min-width:130px}@media(max-width:900px){.toolbar-actions{flex-wrap:wrap!important;overflow:visible!important}.compact-actions{flex-wrap:wrap}.selection-toolbar{flex-wrap:wrap}.selection-toolbar .selection-count{width:100%;margin-bottom:2px}}

.selection-toolbar{display:none!important}.selection-toolbar.has-selection{display:flex!important}

.order-thumb{width:70px!important;height:70px!important;object-fit:contain!important;object-position:center!important;background:#fff!important;padding:4px!important;border:1px solid #d8ded9!important;border-radius:7px!important}.thumb-wrap{width:70px!important;height:70px!important;background:#f7f8f6;border-radius:7px;position:relative;overflow:hidden}.thumb-wrap.loading:before{content:'Loading...';position:absolute;inset:0;display:grid;place-items:center;background:#f4f6f4;color:#89938d;font-size:9px;z-index:2}.thumb-wrap .thumb-zoom{display:none!important}.thumb-wrap:after{content:'\2315';position:absolute;right:4px;bottom:4px;width:18px;height:18px;display:grid;place-items:center;background:#173f32dd;color:#fff;border-radius:5px;font-size:11px;opacity:0;transition:.15s;pointer-events:none}.thumb-wrap:hover:after{opacity:1}.thumb-count{z-index:3}.no-image{width:70px!important;height:70px!important;background:#fafbf9}.serial-cell{font-weight:800;text-align:center;color:#44534c}.manager-label{border:1px solid var(--line);border-radius:5px;padding:6px;min-width:0;font:inherit;font-size:10px}.manager-label:focus{border-color:var(--green2);outline:0}.manager-column{grid-template-columns:25px 25px minmax(130px,1fr) 78px 36px!important}@media(max-width:740px){.order-thumb,.thumb-wrap,.no-image{width:62px!important;height:62px!important}.manager-column{grid-template-columns:24px 24px 1fr 34px!important}.manager-label{grid-column:3}}
.thumb-wrap:has(.thumb-nav):after{display:none!important}.thumb-nav{position:absolute;z-index:4;top:50%;display:grid;place-items:center;width:20px;height:25px;margin:0;padding:0;border:1px solid #d2ddd7;border-radius:6px;background:#fffffff0;color:#14533f;font-size:18px;font-weight:800;line-height:1;cursor:pointer;transform:translateY(-50%);box-shadow:0 2px 7px #10291e24}.thumb-nav:hover{background:#145b45;color:#fff;border-color:#145b45}.thumb-prev{left:3px}.thumb-next{right:3px}.thumb-wrap .thumb-count{top:3px!important;right:3px!important;padding:1px 4px!important;background:#145b45e8!important}.thumb-wrap:not(:hover) .thumb-nav{opacity:.82}@media(max-width:740px){.thumb-nav{width:18px;height:23px;font-size:16px}}

.mini-excel-view{padding-bottom:18px!important}.mini-excel-top{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:10px}.mini-excel-top h2{margin:0;font-size:20px}.mini-excel-top p{margin:3px 0 0;color:var(--muted);font-size:10px}.mini-layout-select{display:flex;align-items:flex-end;gap:8px}.mini-layout-select label{font-size:8px;font-weight:800;text-transform:uppercase;color:var(--muted)}.mini-layout-select select,.mini-default-rows select{display:block;border:1px solid var(--line);border-radius:6px;background:#fff;padding:6px 8px;font:inherit;color:var(--text)}#miniDefaultBadge{background:#e2f1e9;color:var(--green);border-radius:12px;padding:4px 7px;font-size:8px;font-weight:800}.mini-excel-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;background:#f2f5f3;border:1px solid var(--line);border-radius:8px;padding:7px;margin-bottom:8px}.mini-excel-toolbar button{border:1px solid #cbd4ce;background:#fff;color:var(--text);border-radius:5px;padding:6px 8px;font-size:9px;font-weight:700;cursor:pointer;white-space:nowrap}.mini-excel-toolbar button:hover{border-color:var(--green2)}.mini-excel-toolbar button.primary{background:var(--green);color:#fff;border-color:var(--green)}.mini-default-rows{display:flex;align-items:center;gap:5px;margin-left:auto;font-size:8px;font-weight:800;color:var(--muted)}.mini-default-rows select{display:inline-block;padding:5px}.mini-excel-toolbar #miniRowSummary{font-size:8px;color:var(--muted);white-space:nowrap}.mini-sheet-scroller{height:calc(100vh - 225px);min-height:430px;border:1px solid #aeb9b2;border-radius:7px;overflow:auto;background:#fff;position:relative;overscroll-behavior:contain;scrollbar-gutter:stable}.mini-grid{position:relative;min-height:100%;background:#fff}.mini-header-row{height:48px;display:grid;position:sticky;top:0;z-index:20;background:#e9eeeb;border-bottom:1px solid #9da8a1}.mini-corner{position:sticky;left:0;z-index:30;display:grid;place-items:center;background:#dfe6e2;border-right:1px solid #9da8a1;font-size:10px;font-weight:800}.mini-column-head{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) 23px 23px;align-items:center;gap:1px;background:#eef2ef;border-right:1px solid #aab4ae;padding:3px 2px 3px 7px;font-size:8px;font-weight:850;line-height:1.15;white-space:normal;overflow:visible}.mini-column-head>span{overflow-wrap:anywhere;max-height:38px;overflow:hidden}.mini-column-head button{border:0;background:transparent;width:22px;height:28px;padding:0;color:#496158;cursor:pointer;border-radius:4px}.mini-column-head button:hover{background:#dce7e1;color:var(--green)}.mini-col-resizer{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:31}.mini-col-resizer:hover{background:#28715844}.mini-rows-layer{position:relative}.mini-data-row{position:absolute;left:0;height:32px;display:grid}.mini-row-number{position:sticky;left:0;z-index:12;border:0;border-right:1px solid #aab4ae;border-bottom:1px solid #d7ddd9;background:#eef2ef;font-size:9px;color:#617069;cursor:pointer}.mini-data-row.row-selected .mini-row-number{background:#cfe3d8;color:var(--green);font-weight:800}.mini-cell{box-sizing:border-box;height:32px;border-right:1px solid #d7ddd9;border-bottom:1px solid #d7ddd9;padding:7px 6px;background:#fff;font-size:9px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:0}.mini-cell:focus,.mini-cell.selected{box-shadow:inset 0 0 0 2px #287158;z-index:14!important;white-space:normal;overflow:visible;background:#fff}.mini-cell.locked{background:#f3f5f3;color:#65716b;text-align:center;font-weight:800}.mini-context-menu{display:none;position:fixed;width:215px;background:#fff;border:1px solid #bbc6bf;border-radius:7px;box-shadow:0 10px 28px #0003;padding:5px;z-index:420}.mini-context-menu.open{display:grid}.mini-context-menu button{border:0;background:#fff;text-align:left;padding:8px 9px;border-radius:4px;font-size:10px;cursor:pointer}.mini-context-menu button:hover{background:#edf4f0}.mini-context-menu button:disabled{opacity:.35;cursor:not-allowed}.mini-context-menu button.danger{color:#b13e37}.mini-context-menu small{padding:6px 9px 3px;color:var(--muted);border-top:1px solid var(--line);margin-top:3px}.mini-modal-backdrop,.mini-panel-backdrop{display:none;position:fixed;inset:0;background:#10201888;z-index:430;align-items:center;justify-content:center;padding:15px}.mini-modal-backdrop.open,.mini-panel-backdrop.open{display:flex}.mini-modal{width:min(470px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:10px;box-shadow:0 18px 50px #0003;padding:19px}.mini-modal h3{margin:0 0 12px}.mini-modal>p{font-size:10px;color:var(--muted)}.mini-modal label{display:block;font-size:9px;font-weight:750;margin:10px 0}.mini-modal input[type=text],.mini-modal input:not([type]),.mini-modal select{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:6px;padding:9px;background:#fff;font:inherit;margin-top:5px}.mini-choice{display:grid;gap:7px;background:#f3f6f4;border-radius:7px;padding:9px}.mini-choice label{margin:0}.mini-choice input{accent-color:var(--green)}.mini-error{min-height:18px;color:#b13e37;font-size:9px;margin-top:5px}.mini-modal-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}.mini-modal-actions button,.mini-panel-backdrop footer button{border:1px solid var(--line);border-radius:6px;background:#fff;padding:8px 12px;font-weight:700;cursor:pointer}.mini-modal-actions .primary,.mini-panel-backdrop footer .primary{background:var(--green);color:#fff;border-color:var(--green)}.mini-mapping-modal{width:min(760px,100%)}.mini-mapping-wrap{max-height:55vh;overflow:auto;border:1px solid var(--line);border-radius:7px}.mini-mapping-wrap table{width:100%;border-collapse:collapse}.mini-mapping-wrap th,.mini-mapping-wrap td{border-bottom:1px solid var(--line);padding:8px;text-align:left;font-size:9px}.mini-mapping-wrap th{position:sticky;top:0;background:#edf2ef}.mini-mapping-wrap select{margin:0;padding:6px}.mini-import-count{font-size:10px;font-weight:800;color:var(--green);margin-top:9px}.mini-panel-backdrop{justify-content:flex-end;padding:0}.mini-panel-backdrop aside{height:100%;width:min(600px,100%);background:#fff;display:flex;flex-direction:column;box-shadow:-12px 0 35px #0002}.mini-panel-backdrop header{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid var(--line)}.mini-panel-backdrop header h3{margin:2px 0}.mini-panel-backdrop header small{color:var(--green);font-weight:800}.mini-panel-backdrop header button{border:0;background:transparent;font-size:24px;cursor:pointer}.mini-panel-backdrop aside>p{padding:0 18px;font-size:9px;color:var(--muted)}#miniArrangeList{display:grid;gap:5px;padding:4px 18px 18px;overflow:auto;flex:1}.mini-arrange-row{display:grid;grid-template-columns:24px 25px minmax(0,1fr) 78px;gap:6px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:7px;background:#fff}.mini-arrange-row>span{cursor:grab;font-size:16px;color:#6d7a73}.mini-arrange-row b{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-arrange-row input[type=number]{width:75px;border:1px solid var(--line);border-radius:5px;padding:6px}.mini-arrange-row.over{border-color:var(--green2);background:#eff7f3}.mini-panel-backdrop footer{display:flex;justify-content:flex-end;gap:7px;padding:12px 18px;border-top:1px solid var(--line)}@media(max-width:800px){.mini-excel-top{align-items:flex-start;flex-direction:column}.mini-layout-select{width:100%;justify-content:space-between}.mini-excel-toolbar{flex-wrap:nowrap;overflow-x:auto}.mini-default-rows{margin-left:0}.mini-sheet-scroller{height:calc(100vh - 260px);min-height:360px}.mini-header-row{height:56px}.mini-data-row,.mini-cell{height:34px}.mini-cell{padding-top:8px}}

@media(max-width:800px){.mini-data-row,.mini-cell{height:32px!important}}

/* The grid owns its viewport: browser/page scrolling must never hide its last row or column. */
.mini-excel-view.active{
  height:calc(100vh - 76px);
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.mini-excel-view.active .mini-excel-top,
.mini-excel-view.active .mini-excel-toolbar,
.mini-excel-view.active .mini-batch-notice{flex:0 0 auto}
.mini-excel-view.active .mini-sheet-scroller{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  max-height:none;
  width:100%;
  overflow:scroll!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable both-edges;
  -webkit-overflow-scrolling:touch;
}
.mini-excel-view.active .mini-grid{min-width:max-content;min-height:100%;padding-bottom:2px}
.mini-excel-view.active .mini-header-row{position:sticky;top:0;z-index:30}
.mini-excel-view.active .mini-corner{cursor:pointer;border:0;border-right:1px solid #9da8a1}

/* Keep row numbers and the corner above focused cells while scrolling. */
.mini-excel-view.active .mini-row-number{z-index:42!important;isolation:isolate}
.mini-excel-view.active .mini-corner{z-index:52!important;isolation:isolate}
.mini-excel-view.active .mini-cell:focus,
.mini-excel-view.active .mini-cell.selected{z-index:14!important}
.mini-excel-view.active .mini-column-head{min-width:0;overflow:hidden}

@media(max-width:800px){
  .mini-excel-view.active{height:calc(100vh - 64px)}
  .mini-excel-view.active .mini-sheet-scroller{touch-action:pan-x pan-y}
}

.mini-cell.multiline{white-space:pre-wrap!important;word-break:break-word!important;overflow:hidden;text-overflow:clip;line-height:16px}.mini-cell.multiline.selected,.mini-cell.multiline:focus{white-space:pre-wrap!important;overflow:auto!important}.mini-row-number{position:sticky}.mini-row-resizer{position:absolute;left:0;right:0;bottom:-3px;height:7px;cursor:row-resize;z-index:16}.mini-available-fields{display:grid;grid-template-columns:1fr 1fr;gap:5px;max-height:250px;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:8px;margin-top:6px}.mini-available-fields label{margin:0!important;padding:5px;border-radius:4px;background:#f5f7f5}.mini-field-title{display:block;margin-top:11px;font-size:9px}.mini-paste-menu{display:none;position:fixed;width:235px;background:#fff;border:1px solid #b8c4bd;border-radius:7px;box-shadow:0 10px 28px #0003;padding:8px;z-index:470}.mini-paste-menu.open{display:grid;gap:5px}.mini-paste-menu b{font-size:10px}.mini-paste-menu label{font-size:9px;padding:4px;border-radius:4px}.mini-paste-menu label:hover{background:#eef4f0}.mini-paste-menu input{accent-color:var(--green)}.mini-paste-menu button{border:1px solid #c7d2cb;background:#fff;border-radius:5px;padding:6px;font-size:9px;cursor:pointer}.mini-multiline-modal{width:min(690px,100%)}#miniMultilineText{box-sizing:border-box;width:100%;min-height:300px;border:1px solid var(--line);border-radius:7px;padding:11px;font:13px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;resize:vertical}.mini-review-view{padding-bottom:80px!important}.mini-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.mini-review-head h2{margin:2px 0}.mini-review-head p{margin:0;color:var(--muted);font-size:10px}.mini-review-head button,.mini-review-actions button,.mini-review-footer button,.mini-review-table button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:7px 9px;font-size:9px;cursor:pointer}.mini-review-summary{display:flex;gap:7px;align-items:center;flex-wrap:wrap;background:#eff4f1;border:1px solid #cbd8d0;border-radius:8px;padding:9px;margin-bottom:8px}.mini-review-summary span,.mini-review-summary b{font-size:9px;background:#fff;border-radius:12px;padding:5px 8px}.mini-review-summary .warning{color:#945e00;background:#fff2cf}.mini-review-summary .error{color:#aa342f;background:#fde7e5}.mini-review-actions{display:flex;gap:6px;margin-bottom:8px}.mini-review-table-wrap{border:1px solid var(--line);border-radius:8px;overflow:auto;max-height:calc(100vh - 290px)}.mini-review-table{border-collapse:separate;border-spacing:0;min-width:1500px;width:100%;background:#fff}.mini-review-table th,.mini-review-table td{border-right:1px solid #d8ded9;border-bottom:1px solid #d8ded9;padding:7px;font-size:9px;vertical-align:top}.mini-review-table thead th{position:sticky;top:0;background:#edf2ef;z-index:5;text-align:left}.mini-review-table img{width:55px;height:55px;object-fit:contain;background:#f5f6f4;border:1px solid #d2d8d4}.review-no-image{display:grid;width:55px;height:55px;place-items:center;border:1px dashed #c5cdc8;color:#8a958f;text-align:center;font-size:8px}.review-address{white-space:pre-wrap;min-width:190px}.review-main-row.excluded{opacity:.45;background:#f4f4f4}.review-status{display:inline-block;border-radius:12px;padding:4px 7px;font-weight:800;white-space:nowrap}.review-status.ready{color:#17633f;background:#dff2e7}.review-status.will-update{color:#175c87;background:#e0eff8}.review-status.warning{color:#8a5900;background:#fff0ca}.review-status.error{color:#a9342e;background:#fde4e2}.review-issue{display:block;max-width:210px;margin-top:4px;color:#9a3c36;line-height:1.25}.review-detail-row{display:none}.review-detail-row.open{display:table-row}.review-detail-row>td{background:#f6f8f6;padding:12px}.review-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:7px}.review-detail-grid label{display:grid;grid-template-columns:120px minmax(0,1fr);gap:6px;align-items:start;font-size:9px;font-weight:750;background:#fff;border:1px solid var(--line);border-radius:6px;padding:7px}.review-detail-grid label span small{display:block;color:var(--muted);font-size:7px;margin-top:2px}.review-detail-grid textarea{box-sizing:border-box;width:100%;border:1px solid #cbd3ce;border-radius:5px;padding:6px;font:9px/1.35 inherit;resize:vertical;white-space:pre-wrap}.mini-review-footer{position:fixed;left:var(--sidebar);right:0;bottom:0;z-index:80;display:flex;justify-content:flex-end;gap:7px;background:#fff;border-top:1px solid var(--line);padding:10px 28px}.mini-review-footer .primary{background:var(--green);color:#fff;border-color:var(--green)}.mini-review-footer button:disabled{opacity:.4;cursor:not-allowed}@media(max-width:900px){.mini-available-fields{grid-template-columns:1fr}.review-detail-grid{grid-template-columns:1fr}.mini-review-footer{left:0;overflow-x:auto;padding:9px}.mini-review-footer button{white-space:nowrap}}

.mini-review-summary .duplicate-warning {
  color: #8f231c !important;
  background: #fff0ed !important;
  border: 2px solid #df5b50 !important;
  border-radius: 8px !important;
  padding: 7px 11px !important;
  box-shadow: 0 2px 8px rgba(143, 35, 28, .14);
  font-size: 10px !important;
}

.mini-review-main-row:has(.review-status.error) td,
.review-main-row:has(.review-status.error) td {
  background: #fff7f5;
}

.review-status.error {
  border: 1px solid #df5b50;
  box-shadow: 0 0 0 2px rgba(223, 91, 80, .1);
}

.product-category-bar{display:flex;align-items:flex-start;gap:10px}.product-category-bar .product-category-tabs{flex:1;min-width:0}.category-manage-button{flex:none;height:34px;border:1px solid #cfdad4;border-radius:18px;background:#fff;color:var(--green);padding:0 12px;font:inherit;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer}.category-manage-button:hover{background:#f1f6f3;border-color:#98b1a4}.category-manager-backdrop{position:fixed;inset:0;z-index:260;display:none;align-items:center;justify-content:center;padding:18px;background:#13251c80}.category-manager-backdrop.open{display:flex}.category-manager-panel{width:min(480px,100%);max-height:min(720px,calc(100vh - 36px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dfe5e1;border-radius:14px;box-shadow:0 26px 80px #0f211a52}.category-manager-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:18px;border-bottom:1px solid #e5e9e6}.category-manager-head h2{margin:3px 0 4px;font-size:20px}.category-manager-head p{margin:0;color:var(--muted);font-size:10px}.category-manager-list{overflow:auto;padding:10px 14px 14px}.category-manager-row{display:grid;grid-template-columns:30px minmax(0,1fr) 34px;align-items:center;gap:8px;min-height:48px;margin-bottom:7px;padding:5px 7px;border:1px solid #e1e6e3;border-radius:9px;background:#fff}.category-manager-row.dragging{opacity:.55}.category-manager-row.drag-over{border-color:#2f7760;background:#eef6f2}.category-manager-row.fixed{background:#f5f7f5;color:#5f6b65}.category-manager-row.fixed small{text-align:right;font-size:8px;color:#7c8781}.category-drag{display:grid;place-items:center;height:34px;color:#7b8d84;cursor:grab;touch-action:none;user-select:none}.category-drag:active{cursor:grabbing}.category-drag.locked{font-size:7px;cursor:default;color:#a1aba6}.category-name{min-width:0;font-size:12px;font-weight:700;overflow-wrap:anywhere}.category-action{display:grid;place-items:center;width:31px;height:31px;padding:0;border:1px solid #d8e0db;border-radius:7px;background:#fff;color:#285e4d;cursor:pointer;font-weight:800}.category-action:hover{background:#edf5f1}.category-manager-row.editing{grid-template-columns:30px minmax(0,1fr) 31px 31px}.category-rename-input,.category-add-editor input{width:100%;height:34px;border:1px solid #9bb7aa;border-radius:7px;padding:0 9px;font:inherit;font-size:11px;outline:0}.category-rename-input:focus,.category-add-editor input:focus{border-color:#276f58;box-shadow:0 0 0 3px #dcece5}.category-inline-error{grid-column:2/-1;color:#b13a2e;font-size:9px}.category-add-block{padding-top:5px}.category-add-button{width:100%;height:40px;border:1px dashed #91aa9e;border-radius:9px;background:#f5faf7;color:#1d614b;font:inherit;font-weight:700;cursor:pointer}.category-add-editor{display:grid;grid-template-columns:minmax(0,1fr) 31px 31px;gap:8px;align-items:center}.category-add-error{display:block;margin:5px 0 0;color:#b13a2e;font-size:9px}.category-manager-actions{display:flex;justify-content:flex-end;padding:12px 18px;border-top:1px solid #e5e9e6;background:#fafbfa}
.product-library-view{min-height:calc(100vh - 88px);background:#f6f7f5}.product-library-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:18px}.product-library-head h2{font-size:28px;line-height:1.1;margin:4px 0}.product-library-head p{margin:0;color:var(--muted);max-width:620px}.product-library-tools{display:flex;gap:9px;align-items:center}.product-search{width:min(520px,42vw);display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid #d9e0dc;background:#fff;border-radius:10px;box-shadow:0 1px 2px #17201c0a}.product-search:focus-within{border-color:#6d9988;box-shadow:0 0 0 3px #dcebe5}.product-search input{height:44px;width:100%;border:0;outline:0;background:transparent;font:inherit}.product-library-tools .secondary{height:44px;white-space:nowrap}.product-library-tools .secondary span{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:5px;border-radius:10px;background:#e5eee9;font-size:10px}.product-category-tabs{display:flex;gap:7px;overflow:auto;padding:2px 1px 12px;scrollbar-width:thin}.product-category-tabs button{border:1px solid #dce2de;background:#fff;border-radius:20px;padding:8px 14px;white-space:nowrap;color:#405049;cursor:pointer}.product-category-tabs button:hover{border-color:#96ad9f}.product-category-tabs button.active{background:var(--green);border-color:var(--green);color:#fff}.product-filter-panel{display:none;background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px;margin-bottom:13px;box-shadow:0 10px 30px #1b30251a}.product-filter-panel.open{display:block}.product-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:10px}.product-filter-grid label{font-size:10px;font-weight:700;color:#48554f}.product-filter-grid select,.product-filter-grid input{display:block;width:100%;height:38px;margin-top:5px;padding:0 9px;border:1px solid #dce2de;border-radius:7px;background:#fff;font:inherit;font-size:11px}.product-filter-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.product-results-head{display:flex;align-items:center;justify-content:space-between;margin:1px 0 12px}.product-results-head>div{display:flex;align-items:center;gap:9px}.product-results-head b{font-size:13px}.product-results-head span{font-size:10px;color:var(--muted)}.product-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.product-card{min-width:0;background:#fff;border:1px solid #e0e5e1;border-radius:14px;overflow:hidden;box-shadow:0 3px 13px #152b210a;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s}.product-card:hover{transform:translateY(-3px);border-color:#b9c9c0;box-shadow:0 13px 30px #152b2119}.product-card:focus-visible{outline:3px solid #83ad9a;outline-offset:2px}.product-card-image{height:240px;background:linear-gradient(145deg,#fafbf9,#f1f3f0);position:relative;display:grid;place-items:center;border-bottom:1px solid #edf0ed}.product-card-image img{width:100%;height:100%;object-fit:contain;padding:12px}.product-card-image .no-image{display:grid;place-items:center;width:100%;height:100%;color:#9aa39e;font-size:12px}.product-card-image .image-count{position:absolute;right:10px;bottom:10px;background:#17201cdd;color:#fff;padding:4px 7px;border-radius:12px;font-size:9px}.product-card-body{padding:14px}.product-card-top{display:flex;justify-content:space-between;gap:9px;align-items:flex-start}.product-card-sku{display:block;color:var(--green);font-size:17px;line-height:1.15;letter-spacing:.2px;overflow-wrap:anywhere}.sku-badge{flex:none;border-radius:14px;padding:5px 8px;font-size:8px;font-weight:800;background:#e5f2eb;color:#1c6644;white-space:nowrap}.sku-badge.duplicate{background:#fff0d5;color:#9a5b00}.product-card h3{font-size:14px;margin:8px 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-card-type{color:var(--muted);font-size:10px}.product-card-specs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.product-card-specs div{min-width:0;background:#f6f8f6;border-radius:7px;padding:7px}.product-card-specs small,.product-card-specs b{display:block}.product-card-specs small{text-transform:uppercase;color:#7a857f;font-size:7px}.product-card-specs b{font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-card-foot{display:flex;align-items:flex-end;justify-content:space-between;padding-top:11px;border-top:1px solid #edf0ed}.product-card-foot b,.product-card-foot small{display:block}.product-card-foot b{font-size:18px}.product-card-foot small{font-size:8px;text-transform:uppercase;color:#7b8580}.product-card-date{text-align:right}.product-load-sentinel{display:none;text-align:center;padding:25px;color:var(--muted);font-size:10px}.product-load-sentinel.show{display:block}.product-empty{display:none;place-items:center;text-align:center;min-height:320px;color:var(--muted);background:#fff;border:1px dashed #ccd4cf;border-radius:14px}.product-empty.show{display:grid}.product-empty b,.product-empty span{display:block}.product-empty b{color:var(--ink);font-size:17px}
.product-detail-page{padding:0!important;background:#f5f6f4;min-height:calc(100vh - 88px)}.product-detail-shell{max-width:1480px;margin:auto;padding:24px 30px 70px}.product-detail-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.product-detail-nav button{display:flex;align-items:center;gap:6px}.product-detail-hero{display:grid;grid-template-columns:minmax(360px,44%) 1fr;gap:20px}.product-gallery-card,.product-hero-info,.product-detail-section{background:#fff;border:1px solid var(--line);border-radius:14px}.product-gallery-card{padding:14px}.product-main-image{height:min(560px,56vw);min-height:390px;background:#f7f8f6;border-radius:10px;display:grid;place-items:center;overflow:hidden;position:relative}.product-main-image img{width:100%;height:100%;object-fit:contain;cursor:zoom-in}.product-main-image .no-image{color:#939e98}.product-image-kind{position:absolute;top:10px;left:10px;background:#fffddd;border:1px solid #e3dfcf;border-radius:13px;padding:5px 8px;font-size:8px;font-weight:800;text-transform:uppercase}.product-gallery-thumbs{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:10px}.product-gallery-thumb{border:1px solid #dfe5e1;border-radius:7px;background:#f7f8f6;padding:0;overflow:hidden;height:70px;cursor:pointer;position:relative}.product-gallery-thumb.active{border:2px solid var(--green)}.product-gallery-thumb img{width:100%;height:100%;object-fit:contain}.product-gallery-thumb span{position:absolute;inset:auto 3px 3px;background:#fffddd;padding:2px 4px;border-radius:6px;font-size:6px}.product-hero-info{padding:25px}.product-hero-kicker{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.product-hero-info h1{font-size:32px;line-height:1.1;margin:9px 0 5px}.product-hero-info .design-name{font-size:16px;color:#536159;margin:0 0 18px}.product-hero-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.product-hero-meta div{background:#f5f7f5;padding:11px;border-radius:8px}.product-hero-meta small,.product-hero-meta b{display:block}.product-hero-meta small{text-transform:uppercase;color:#7e8883;font-size:8px}.product-hero-meta b{font-size:12px;margin-top:3px}.product-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.product-detail-actions button{min-height:39px}.product-quick-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.product-quick-stats div{border-top:1px solid var(--line);padding-top:11px}.product-quick-stats b,.product-quick-stats small{display:block}.product-quick-stats b{font-size:22px}.product-quick-stats small{font-size:8px;text-transform:uppercase;color:var(--muted)}.product-detail-section{padding:20px;margin-top:18px}.product-section-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:13px}.product-section-head h2{font-size:17px;margin:0}.product-section-head p{margin:3px 0 0;color:var(--muted);font-size:10px}.product-data-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e3e7e4;border-radius:9px;overflow:hidden}.product-data-item{padding:11px;border-right:1px solid #e3e7e4;border-bottom:1px solid #e3e7e4;min-height:63px}.product-data-item small,.product-data-item b{display:block}.product-data-item small{text-transform:uppercase;color:#7f8984;font-size:8px}.product-data-item b{font-size:11px;margin-top:5px;white-space:pre-wrap;word-break:break-word}.product-data-item.full{grid-column:1/-1}.product-stone-table,.product-orders-table{overflow:auto}.product-stone-table table,.product-orders-table table{min-width:920px}.product-stone-table td,.product-orders-table td{white-space:normal}.stone-role{font-weight:800;color:var(--green)}.product-size-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.product-size-grid .product-data-item{border:1px solid #e3e7e4;border-radius:8px}.product-production-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px}.stage-completion-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.stage-completion-grid div{background:#f5f7f5;border-radius:8px;padding:10px;text-align:center}.stage-completion-grid b,.stage-completion-grid small{display:block}.stage-completion-grid b{font-size:19px}.stage-completion-grid small{font-size:7px;text-transform:uppercase;color:var(--muted)}.product-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.product-stat{padding:12px;background:#f5f7f5;border-radius:8px;min-width:0}.product-stat small,.product-stat b{display:block}.product-stat small{font-size:7px;color:#76817b;text-transform:uppercase}.product-stat b{font-size:14px;margin-top:5px;overflow-wrap:anywhere}.product-timeline{position:relative;padding-left:20px}.product-timeline:before{content:"";position:absolute;left:5px;top:5px;bottom:5px;width:1px;background:#ced7d1}.product-timeline-item{position:relative;padding:0 0 18px 10px}.product-timeline-item:before{content:"";position:absolute;left:-19px;top:4px;width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #e5eee9}.product-timeline-item b,.product-timeline-item small{display:block}.product-timeline-item small{color:var(--muted);font-size:9px;margin-top:2px}.product-variants{display:flex;gap:8px;flex-wrap:wrap}.product-variant{background:#eef4f0;border:1px solid #d3dfd8;border-radius:18px;padding:8px 12px;font-size:10px}.product-orders-table th{position:sticky;top:0;background:#fff;z-index:2}.product-orders-table .job-link{border:0;background:none;padding:0;color:var(--green2);font-weight:800;cursor:pointer}.product-order-empty{padding:35px;text-align:center;color:var(--muted)}
.product-modal-backdrop{position:fixed;inset:0;background:#101813b5;z-index:110;display:none;align-items:flex-start;justify-content:center;padding:25px 12px;overflow:auto}.product-modal-backdrop.open{display:flex}.product-edit-modal{width:min(980px,100%);background:#fff;border-radius:14px;box-shadow:0 25px 80px #0005}.product-edit-head{display:flex;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}.product-edit-head h2{margin:0}.product-edit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;padding:20px}.product-edit-grid label{font-size:10px;font-weight:750}.product-edit-grid input,.product-edit-grid textarea,.product-edit-grid select{display:block;width:100%;margin-top:5px;padding:9px;border:1px solid #d9e0dc;border-radius:7px;font:inherit}.product-edit-grid textarea{min-height:75px;resize:vertical}.product-edit-grid .span-2{grid-column:span 2}.product-edit-grid .span-3{grid-column:1/-1}.product-edit-actions{display:flex;justify-content:flex-end;gap:8px;padding:15px 22px;border-top:1px solid var(--line)}.product-edit-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.product-edit-gallery label{border:1px dashed #becbc3;padding:10px;border-radius:8px;text-align:center;cursor:pointer}.product-edit-gallery input[type=file]{border:0;padding:0;font-size:9px}.product-zoom{position:fixed;inset:0;background:#07100be8;z-index:140;display:none;align-items:center;justify-content:center;padding:55px}.product-zoom.open{display:flex}.product-zoom img{max-width:100%;max-height:100%;object-fit:contain;transform:scale(var(--zoom,1));transition:transform .15s}.product-zoom-controls{position:absolute;top:15px;right:15px;display:flex;gap:7px}.product-zoom-controls button{width:42px;height:42px;border:1px solid #fff5;border-radius:8px;background:#fff;color:#17201c;font-size:18px}.product-print-sheet{display:none}
@media(max-width:1250px){.product-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-filter-grid{grid-template-columns:repeat(4,1fr)}.product-data-grid{grid-template-columns:repeat(3,1fr)}.product-stat-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1000px){.product-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-library-head{align-items:flex-start;flex-direction:column}.product-library-tools,.product-search{width:100%}.product-filter-grid{grid-template-columns:repeat(3,1fr)}.product-detail-hero{grid-template-columns:1fr}.product-main-image{height:520px}.product-data-grid{grid-template-columns:repeat(2,1fr)}.product-production-grid{grid-template-columns:1fr}.product-stat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:740px){.product-library-view{padding:14px!important}.product-library-head h2{font-size:23px}.product-library-tools{align-items:stretch}.product-search{width:100%}.product-card-grid{grid-template-columns:1fr}.product-card-image{height:300px}.product-filter-grid{grid-template-columns:1fr 1fr}.product-detail-shell{padding:14px 14px 65px}.product-detail-nav{align-items:flex-start;gap:8px}.product-detail-nav>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.product-main-image{height:88vw;min-height:300px}.product-gallery-thumbs{grid-template-columns:repeat(4,1fr)}.product-hero-info{padding:18px}.product-hero-info h1{font-size:26px}.product-hero-meta,.product-quick-stats{grid-template-columns:1fr 1fr}.product-data-grid,.product-size-grid{grid-template-columns:1fr 1fr}.product-stat-grid{grid-template-columns:1fr 1fr}.stage-completion-grid{grid-template-columns:repeat(3,1fr)}.product-edit-grid{grid-template-columns:1fr 1fr}.product-edit-grid .span-3{grid-column:1/-1}.product-edit-gallery{grid-template-columns:1fr}.product-zoom{padding:55px 12px}}
@media(max-width:480px){.product-library-tools{flex-direction:column}.product-filter-grid,.product-data-grid,.product-size-grid,.product-edit-grid{grid-template-columns:1fr}.product-edit-grid .span-2,.product-edit-grid .span-3{grid-column:auto}.product-stat-grid{grid-template-columns:1fr 1fr}}
.product-gallery-thumb:not(:first-child) span{display:none}.product-production-image-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px}.product-production-image-grid button{height:180px;padding:6px;border:1px solid #d9e3de;border-radius:9px;background:#f7f9f7;cursor:zoom-in}.product-production-image-grid img{width:100%;height:100%;object-fit:contain}@media(max-width:900px){.product-production-image-grid{grid-template-columns:repeat(3,minmax(100px,1fr))}}@media(max-width:520px){.product-production-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-production-image-grid button{height:140px}}
.product-card-image-nav{position:absolute;top:50%;z-index:4;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #cddbd4;border-radius:50%;background:#fffffff2;color:#14533f;font-size:22px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 3px 10px #10291e2b;opacity:0;pointer-events:none;transform:translateY(-50%);transition:opacity .16s,background .16s,color .16s}.product-card-image-prev{left:10px}.product-card-image-next{right:10px}.product-card-image:hover .product-card-image-nav,.product-card-image:focus-within .product-card-image-nav{opacity:1;pointer-events:auto}.product-card-image-nav:hover,.product-card-image-nav:focus-visible{background:#145b45;color:#fff;outline:2px solid #fff;outline-offset:1px}
@media print{body.product-sheet-printing *{visibility:hidden!important}body.product-sheet-printing .product-print-sheet,body.product-sheet-printing .product-print-sheet *{visibility:visible!important}body.product-sheet-printing .product-print-sheet{display:block!important;position:absolute;inset:0;width:100%;padding:12mm;background:#fff}.product-print-sheet h1{font-size:22pt;margin:0}.product-print-sheet .print-product-head{display:grid;grid-template-columns:75mm 1fr;gap:8mm}.product-print-sheet .print-product-image{width:75mm;height:75mm;object-fit:contain;background:#f5f5f3;border:1px solid #bbb}.product-print-sheet table{font-size:9pt}.product-print-sheet th,.product-print-sheet td{border:1px solid #777;padding:2.5mm;white-space:normal}.product-print-sheet section{break-inside:avoid;margin-top:5mm}}
.product-image-manager{border:1px solid #cddbd4;border-radius:11px;background:#f8fbf9;padding:14px}.product-image-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.product-image-manager-head h3{margin:0 0 3px;font-size:14px}.product-image-manager-head p{margin:0;color:var(--muted);font-size:10px}.product-image-manager-head>b{flex:none;color:var(--green);font-size:11px}.product-image-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:end}.product-image-add-row>input{margin:0!important}.product-image-upload-button{display:flex!important;align-items:center;justify-content:center;min-height:38px;margin:0!important;padding:8px 12px;border:1px solid #b9ccc2;border-radius:7px;background:#fff;color:var(--green);font-size:11px!important;font-weight:750!important;cursor:pointer}.product-image-upload-button input{display:none!important}.product-edit-image-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.product-edit-image-card{min-width:0;padding:9px;border:1px solid #d9e2dd;border-radius:9px;background:#fff}.product-edit-image-preview{height:125px;display:grid;place-items:center;overflow:hidden;border-radius:7px;background:#f2f5f3}.product-edit-image-preview img{width:100%;height:100%;object-fit:contain}.product-edit-image-preview span{color:var(--muted);font-size:9px}.product-edit-image-card label{display:block;margin-top:7px}.product-edit-image-card select,.product-edit-image-card input{width:100%;margin-top:4px!important;font-size:9px!important}.product-uploaded-label{margin-top:7px;padding:9px;border-radius:6px;background:#edf3f0;color:#64746c;font-size:9px}.product-edit-image-remove{width:100%;margin-top:8px;padding:7px;border:1px solid #e1bab6;border-radius:6px;background:#fff7f6;color:#a43d36;font:inherit;font-size:9px;cursor:pointer}.product-edit-images-empty{grid-column:1/-1;padding:24px;border:1px dashed #c9d5cf;border-radius:8px;text-align:center;color:var(--muted)}@media(max-width:740px){.product-image-add-row{grid-template-columns:1fr}.product-edit-image-list{grid-template-columns:1fr 1fr}}@media(max-width:480px){.product-edit-image-list{grid-template-columns:1fr}}
.product-edit-head{align-items:center;gap:12px}.product-edit-head>div:first-child{margin-right:auto}.product-layout-open{padding:9px 13px;border:1px solid #a9c6b7;border-radius:8px;background:#f3faf6;color:var(--green);font:inherit;font-size:11px;font-weight:750;cursor:pointer}.product-layout-open:hover{background:#e5f4ec;border-color:#6ea58a}.product-edit-layout-panel{margin:14px 20px 0;padding:15px;border:1px solid #bad2c5;border-radius:11px;background:#f7fbf9;box-shadow:0 8px 25px #173c2920}.product-edit-layout-panel[hidden]{display:none}.product-edit-layout-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.product-edit-layout-intro b{font-size:13px}.product-edit-layout-intro p{margin:3px 0 0;color:var(--muted);font-size:10px}.product-edit-layout-list{display:grid;gap:7px;max-height:360px;overflow:auto;padding-right:3px}.product-edit-layout-row{display:grid;grid-template-columns:22px 62px minmax(150px,1fr) 112px 32px 32px 58px;gap:7px;align-items:center;padding:7px;border:1px solid #d5e2db;border-radius:8px;background:#fff}.product-edit-layout-row.dragging{opacity:.55;border-color:var(--green)}.product-layout-drag{font-size:18px;color:#71837a;cursor:grab;text-align:center}.product-layout-show{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:700}.product-layout-show input{margin:0}.product-edit-layout-row>input,.product-edit-layout-row>select,.product-edit-layout-add>input,.product-edit-layout-add>select{min-width:0;height:34px;padding:6px 8px;border:1px solid #cfdad4;border-radius:7px;background:#fff;font:inherit;font-size:10px}.product-layout-arrow,.product-layout-remove{height:32px;border:1px solid #d4ddd8;border-radius:7px;background:#fff;cursor:pointer}.product-layout-arrow:hover{border-color:#83ab96;background:#eff7f2}.product-layout-remove{color:#a5453e;border-color:#ecc9c5;font-size:9px}.product-layout-remove:hover{background:#fff3f2}.product-edit-layout-add{display:grid;grid-template-columns:minmax(160px,1fr) 130px 112px auto;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #d8e3dd}.product-edit-layout-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.product-edit-grid>[hidden]{display:none!important}.product-edit-grid>label:hover{padding:7px;margin:-7px;border-radius:8px;background:#f5faf7;box-shadow:0 0 0 1px #deebe4}.product-edit-field-label{display:block}@media(max-width:820px){.product-edit-layout-row{grid-template-columns:22px 58px minmax(120px,1fr) 105px 32px 32px}.product-edit-layout-row .product-layout-remove{grid-column:3/-1}.product-edit-layout-add{grid-template-columns:1fr 1fr}.product-layout-open{font-size:0}.product-layout-open::after{content:'＋ Columns';font-size:11px}}@media(max-width:560px){.product-edit-layout-row{grid-template-columns:22px 1fr 32px 32px}.product-edit-layout-row .product-layout-show{grid-column:2}.product-edit-layout-row>input[data-layout-label],.product-edit-layout-row>select{grid-column:2/-1}.product-edit-layout-row .product-layout-remove{grid-column:2/-1}.product-edit-layout-add{grid-template-columns:1fr}.product-edit-head{flex-wrap:wrap}.product-layout-open{order:3;width:100%}}

/* Product Edit: fixed top product media, New Work Order-style gemstones, and compact CAD/finished galleries. */
.product-primary-media{order:-100;border-color:#8eb9a3;background:#f5faf7;box-shadow:0 0 0 3px #edf6f1}
.product-gemstone-builder{padding:14px;border:1px solid #8eb9a3;border-radius:12px;background:#f5faf7;box-shadow:0 0 0 3px #edf6f1}
.product-gemstone-builder>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:11px;border-bottom:1px solid #d5e5dc}
.product-gemstone-builder>header>div{display:flex;align-items:center;gap:9px}.product-gemstone-builder>header i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#deeee6;color:var(--green);font-style:normal;font-size:16px}.product-gemstone-builder>header b{display:block;font-size:13px}.product-gemstone-builder>header small{display:block;margin-top:2px;color:var(--muted);font-size:9px;font-weight:500}.product-gemstone-builder>header button{min-height:34px;padding:7px 10px;border:1px solid #8db5a0;border-radius:8px;background:#fff;color:var(--green);font:inherit;font-size:10px;font-weight:750;cursor:pointer}.product-gemstone-builder>header button:first-child{background:#edf8f2}
.product-gem-rows{display:grid;gap:9px;margin-top:11px}.product-gem-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr)) 34px;gap:8px;align-items:end;padding:10px;border:1px solid #cddfd5;border-radius:9px;background:#fff}.product-gem-row label{min-width:0;font-size:9px}.product-gem-row input,.product-gem-row select{height:36px;margin-top:4px!important}.product-gem-remove{height:36px;border:1px solid #dfc1bd;border-radius:7px;background:#fff8f7;color:#9e433d;font-size:16px;cursor:pointer}.gemstone-empty{padding:22px;border:1px dashed #bad0c4;border-radius:9px;background:#fff;text-align:center;color:var(--muted);font-size:10px}
.gem-column-panel{display:none;margin-top:11px;padding:11px;border:1px solid #b8d1c4;border-radius:9px;background:#eef7f2}.gem-column-panel.open{display:block}.gem-column-panel .layout-help{margin:0 0 8px;color:var(--muted);font-size:9px}.gem-column-list{display:grid;gap:7px}.gem-column-item{display:grid;grid-template-columns:25px minmax(130px,1fr) 105px 60px;gap:7px;align-items:center;padding:7px;border:1px solid #d2e1d9;border-radius:8px;background:#fff}.gem-col-drag{cursor:grab;text-align:center;color:#70847a}.gem-column-item input,.gem-column-item select,.gem-col-add input,.gem-col-add select{height:34px;margin:0!important}.gem-col-remove{height:32px;border:1px solid #e4c5c1;border-radius:7px;background:#fff8f7;color:#99443e;font-size:9px}.gem-col-add{display:grid;grid-template-columns:minmax(140px,1fr) 110px auto;gap:7px;margin-top:9px}.gem-col-add button,.gem-column-savebar button{border:1px solid #aac8b8;border-radius:7px;background:#fff;padding:7px 10px;color:var(--green);font:inherit;font-size:10px;font-weight:750}.gem-column-savebar{display:flex;justify-content:flex-end;gap:7px;margin-top:9px}.gem-column-savebar .gem-column-save{background:var(--green);color:#fff}
.product-special-media{background:#f8faf9}.product-special-preview{display:grid;width:100%;aspect-ratio:1;place-items:center;overflow:hidden;padding:6px;border:1px solid #d4dfd9;border-radius:8px;background:#f4f7f5;cursor:zoom-in}.product-special-preview img{display:block;width:100%;height:100%;object-fit:contain}.product-special-link{display:block;margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--green);font-size:9px}.product-special-media .product-edit-image-list{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:740px){.product-gemstone-builder>header{align-items:flex-start;flex-direction:column}.product-special-media .product-edit-image-list{grid-template-columns:repeat(2,minmax(0,1fr))}.gem-column-item{grid-template-columns:22px 1fr}.gem-column-item select,.gem-column-item button{grid-column:2}.gem-col-add{grid-template-columns:1fr}}

/* Compact Product Images manager: square contain previews, fixed first image, and drag ordering. */
.product-primary-media .product-edit-image-list{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.product-primary-media .product-compact-image-card{position:relative;padding:6px;cursor:grab}.product-primary-media .product-compact-image-card.dragging{opacity:.5;border-color:var(--green)}
.product-primary-media .product-edit-image-preview{display:grid;width:100%;height:auto;aspect-ratio:1;place-items:center;overflow:hidden;padding:5px;border:1px solid #d4dfd9;border-radius:8px;background:#f4f7f5;cursor:zoom-in}
.product-primary-media .product-edit-image-preview img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.product-main-image-badge{position:absolute;left:11px;top:11px;padding:3px 6px;border-radius:999px;background:#0d5947e8;color:#fff;font-size:8px;line-height:1.2;pointer-events:none}
.product-image-drag{position:absolute;left:9px;bottom:29px;display:grid;width:24px;height:24px;place-items:center;border:1px solid #cad9d1;border-radius:7px;background:#fffffff0;color:#5f786c;font-size:14px;line-height:1;pointer-events:none}
.product-image-x{position:absolute;right:2px;top:2px;display:grid;width:25px;height:25px;place-items:center;border:1px solid #bad0c4;border-radius:50%;background:#fff;color:#0d5947;font-size:15px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 2px 6px #102d1f24}
.product-image-x:hover{border-color:#bd5e55;background:#fff5f4;color:#a63d35}.product-compact-image-link{display:block;margin:6px 2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--green);font-size:8px;text-align:center;text-decoration:none}
@media(max-width:900px){.product-primary-media .product-edit-image-list{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.product-primary-media .product-edit-image-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Edit Product: compact image workspace matching the work-order media flow. */
.product-layout-open.product-layout-symbol{display:inline-grid;width:38px;height:38px;padding:0;place-items:center;font-size:18px;line-height:1}
.product-layout-open.product-layout-symbol::after{content:none!important}
.product-add-symbol{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:1px solid #b9d1c5;border-radius:9px;background:#fff;color:var(--green);font-size:22px;font-weight:700;line-height:1;cursor:pointer}.product-add-symbol:focus-visible{outline:3px solid #c7dfd3;outline-offset:2px}
.product-primary-media .product-edit-media-workspace{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:14px;align-items:start}
.product-primary-media .product-edit-media-controls{min-width:0}
.product-edit-file-field{display:grid!important;gap:6px;margin:0!important}.product-edit-file-field>b,.product-edit-link-field>b{font-size:10px}.product-edit-file-field input{width:100%;min-height:39px;padding:7px;border:1px solid #ccd9d2;border-radius:8px;background:#fff}.product-edit-link-field{margin-top:13px;padding-top:13px;border-top:1px solid #dbe5df}.product-edit-link-field>small{display:block;margin-top:7px;color:var(--muted);font-size:8px}.product-edit-link-field .product-link-add-row{margin-top:7px}
.product-edit-preview-panel{min-width:0;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}
.product-primary-media .product-edit-image-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));justify-content:start;gap:7px;margin-top:9px}
.product-primary-media .product-compact-image-card{box-sizing:border-box;width:auto;min-width:0;padding:4px}
.product-primary-media .product-edit-image-preview{box-sizing:border-box;width:100%;height:auto;aspect-ratio:1;padding:3px;background:#fff}
.product-primary-media .product-edit-image-preview img{max-width:100%;max-height:100%;object-fit:contain!important;object-position:center}
.product-primary-media .product-main-image-badge{font-size:7px;padding:2px 4px}.product-primary-media .product-image-drag{left:5px;bottom:5px;width:20px;height:20px;font-size:13px}.product-primary-media .product-image-x{right:-4px;top:-4px;width:21px;height:21px}
.product-edit-main-preview{position:relative;display:grid;width:100%;height:220px;place-items:center;overflow:hidden;padding:12px;border:1px dashed #b9cec3;border-radius:10px;background:#fff;color:var(--muted);cursor:zoom-in}
.product-edit-main-preview:disabled{cursor:default}
.product-edit-main-preview img{display:block;width:100%;height:100%;object-fit:contain!important;object-position:center}
.product-edit-main-preview b{position:absolute;left:9px;top:9px;padding:4px 7px;border-radius:999px;background:var(--green);color:#fff;font-size:9px}
.product-edit-main-preview small{position:absolute;right:9px;bottom:8px;padding:3px 6px;border-radius:999px;background:#ffffffdf;color:var(--muted);font-size:8px}
@media(max-width:980px){.product-primary-media .product-edit-media-workspace{grid-template-columns:1fr}.product-edit-preview-panel{max-width:520px;width:100%;justify-self:center}.product-edit-main-preview{height:auto;aspect-ratio:1}.product-layout-open.product-layout-symbol{order:initial;width:38px}}
.product-permanent-delete{width:100%;margin-top:10px;padding:8px 10px;border:1px solid #d05a52;border-radius:7px;background:#fff7f6;color:#a82f29;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.product-permanent-delete:hover{background:#b93630;border-color:#b93630;color:#fff}.product-permanent-delete:focus-visible{outline:3px solid #edaaa5;outline-offset:2px}.product-permanent-delete:disabled{border-color:#dfe4e1;background:#f5f7f6;color:#89928d;cursor:not-allowed}

/* Fresh product image geometry: replaces the legacy fixed-height preview rules. */
.product-detail-hero{grid-template-columns:minmax(0,44%) minmax(0,1fr)}
.product-gallery-card,.product-hero-info{min-width:0}
.product-main-image{box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1!important;padding:0!important;background:#fff!important;position:relative!important;overflow:hidden!important}
.product-main-image>img{position:absolute!important;inset:16px!important;display:block!important;width:calc(100% - 32px)!important;height:calc(100% - 32px)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.product-edit-main-preview{box-sizing:border-box!important;position:relative!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1!important;padding:0!important;overflow:hidden!important}
.product-edit-main-preview>img{position:absolute!important;inset:12px!important;display:block!important;width:calc(100% - 24px)!important;height:calc(100% - 24px)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important;transform:none!important}

/* Product Sheet print is intentionally removed pending a clean rebuild. */
[data-product-print],.product-print-sheet{display:none!important}
body.product-sheet-printing{display:block!important}

/* Gallery image labels always sit above the image, including the selected Main Image. */
.product-main-image>.product-image-kind{z-index:4!important;display:inline-flex!important;align-items:center!important;max-width:calc(100% - 20px);pointer-events:none!important}
.product-gallery-thumb>span{z-index:3!important;display:block!important;max-width:calc(100% - 6px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none!important}

/* Final Jewelry Types interaction repair: no lift, reveal, blur, fade or shadow. */
.product-card,.product-card:hover,.product-card:focus-within{transform:none!important;transition:border-color .12s linear!important;box-shadow:0 3px 13px #152b210a!important}
.product-card-image .product-card-image-nav{opacity:1!important;pointer-events:auto!important;transform:translateY(-50%)!important;background:#fff!important;color:#14533f!important;border-color:#cddbd4!important;box-shadow:none!important;filter:none!important;animation:none!important;transition:none!important}
.product-card-image .product-card-image-nav:hover,.product-card-image .product-card-image-nav:focus,.product-card-image .product-card-image-nav:focus-visible,.product-card-image .product-card-image-nav:active{opacity:1!important;transform:translateY(-50%)!important;background:#174b3b!important;color:#fff!important;border-color:#174b3b!important;box-shadow:none!important;filter:none!important;animation:none!important;transition:none!important;outline:none!important}

/* Fixed CAD media box with contain rendering; universal fields remain alongside it. */
.product-cad-detail-grid{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:14px;align-items:start}.product-cad-fixed-preview{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;padding:10px;overflow:hidden;border:1px solid #cadbd2;border-radius:10px;background:#f7faf8;color:#6f7d76;cursor:zoom-in}.product-cad-fixed-preview:disabled{cursor:default}.product-cad-fixed-preview img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.product-cad-fixed-preview span{position:absolute;left:9px;bottom:9px;padding:4px 7px;border-radius:999px;background:#174b3be8;color:#fff;font-size:8px;font-weight:800}.product-cad-fixed-preview:disabled span{position:static;background:transparent;color:#728078;font-size:11px}.product-cad-detail-grid>.product-data-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}@media(max-width:760px){.product-cad-detail-grid{grid-template-columns:1fr}.product-cad-fixed-preview{width:min(100%,320px);justify-self:center}}

/* Linked-order image columns render the saved order/master media as fixed thumbnails. */
.product-order-image{position:relative;width:52px;height:52px;padding:0;border:1px solid #c8d8d1;border-radius:8px;overflow:hidden;background:#f7faf8;vertical-align:middle;cursor:pointer}.product-order-image img{display:block;width:100%;height:100%;object-fit:cover}.product-order-image span{position:absolute;right:2px;bottom:2px;min-width:16px;padding:1px 4px;border-radius:999px;background:#0d5b49;color:#fff;font-size:9px;line-height:14px;text-align:center}.product-order-image:hover,.product-order-image:focus,.product-order-image:active{background:#0d5b49;border-color:#0d5b49;transform:none!important;box-shadow:none!important;filter:none!important;outline:none!important}.product-order-image-empty{display:inline-block;min-width:52px;text-align:center}
.product-orders-table .job-link{border-bottom:1px solid currentColor!important;padding-bottom:2px!important;line-height:1.15!important}

/* Variants stay in one compact, swipeable row without a second visible scrollbar. */
.product-detail-section .product-variants{display:flex!important;gap:8px;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden;padding:0;scrollbar-width:none;overscroll-behavior-inline:contain}
.product-detail-section .product-variants::-webkit-scrollbar{display:none;width:0;height:0}
.product-detail-section .product-variants>.product-variant{flex:0 0 auto;white-space:nowrap}

/* Product Details has its own section scrollers; hide the register-only floating duplicate. */
body:has(#productDetailView.active) #registerStableScroll{display:none!important}
.product-detail-open #registerStableScroll,.product-detail-open #registerTopScroll{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* Jewelry Types card carousel: keep both arrows on fixed rails while images change. */
.product-card-image{position:relative!important;isolation:isolate;overflow:hidden!important}
.product-card-image>.product-card-image-nav{position:absolute!important;top:50%!important;bottom:auto!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;translate:none!important;transform:translate3d(0,-50%,0)!important;animation:none!important;transition:background-color .12s linear,color .12s linear,border-color .12s linear!important;z-index:8!important}
.product-card-image>.product-card-image-prev{left:12px!important;right:auto!important}
.product-card-image>.product-card-image-next{left:auto!important;right:12px!important}
.product-card-image>.product-card-image-nav:hover,.product-card-image>.product-card-image-nav:focus,.product-card-image>.product-card-image-nav:focus-visible,.product-card-image>.product-card-image-nav:active{top:50%!important;bottom:auto!important;margin:0!important;translate:none!important;transform:translate3d(0,-50%,0)!important}

.product-card-image{
  box-sizing:border-box!important;
  width:100%!important;
  height:300px!important;
  min-height:300px!important;
  max-height:300px!important;
  flex:0 0 300px!important;
  overflow:hidden!important;
  isolation:isolate;
  contain:layout paint;
}
.product-card-image[data-product-image]{cursor:zoom-in}
.product-card-image img{
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:12px!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  transform:none!important;
  position:relative;
  z-index:1;
}
.product-card-image.is-loading img{opacity:0}
.product-card-image .image-loading{
  position:absolute;
  inset:0;
  z-index:0;
  display:grid;
  place-items:center;
  color:#8d9892;
  font-size:11px;
  background:linear-gradient(145deg,#fafbf9,#f1f3f0);
}
.product-card-image:not(.is-loading) .image-loading{display:none}
.product-card-image .no-image{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  background:linear-gradient(145deg,#fafbf9,#f1f3f0);
}
.product-card-image .image-count{z-index:2}

@media(max-width:1000px){
  .product-card-image{
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
    flex-basis:250px!important;
  }
}
@media(max-width:600px){
  .product-card-image{
    height:220px!important;
    min-height:220px!important;
    max-height:220px!important;
    flex-basis:220px!important;
  }
}

.work-order-selection-actions{display:none!important;align-items:center!important;gap:7px!important;padding:7px 10px!important}.work-order-selection-actions.has-selection{display:flex!important}.work-order-selection-actions .selection-count{margin-right:auto!important}.work-order-selection-actions .selection-tool-btn{min-width:76px;height:31px;padding:0 10px;font-weight:750}.work-order-selection-actions .selection-tool-btn.danger{color:#ad372f;border-color:#e4c5c1}.work-order-selection-actions .selection-tool-btn.cancel{color:#a45118;border-color:#e9cfb7}
.work-order-edit-view,.removed-orders-view{background:#f5f7f5;min-height:calc(100vh - 88px);padding:22px 26px 40px!important}.wo-edit-shell{max-width:1320px;margin:0 auto}.wo-edit-head,.removed-orders-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:15px}.wo-edit-head h1,.removed-orders-head h2{margin:3px 0;font-size:24px}.wo-edit-head p,.removed-orders-head p{margin:0;color:var(--muted);font-size:10px}.wo-edit-section{margin-bottom:13px;padding:17px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 10px #16302508}.wo-edit-section h2{margin:0 0 13px;color:var(--green);font-size:12px;text-transform:uppercase;letter-spacing:.2px}.wo-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.wo-edit-field{display:block;min-width:0;font-size:9px;font-weight:750;color:#34463e}.wo-edit-field.wide,.wo-edit-grid>.wide{grid-column:1/-1}.wo-edit-field>span,.wo-stone-row label>span,.wo-action-modal label{display:block;margin-bottom:5px}.wo-edit-field input,.wo-edit-field textarea,.wo-edit-field select,.wo-stone-row input,.wo-stone-row select,.bulk-edit-field input:not([type=checkbox]),.bulk-edit-field textarea,.bulk-edit-field select,.wo-action-modal textarea{display:block;width:100%;min-width:0;border:1px solid #d4ddd7;border-radius:7px;background:#fff;padding:9px 10px;font:inherit;color:var(--text);outline:0}.wo-edit-field input,.wo-edit-field select,.wo-stone-row input,.wo-stone-row select,.bulk-edit-field input:not([type=checkbox]),.bulk-edit-field select{height:39px}.wo-edit-field textarea,.bulk-edit-field textarea,.wo-action-modal textarea{min-height:78px;resize:vertical;white-space:pre-wrap}.wo-edit-field input:focus,.wo-edit-field textarea:focus,.wo-edit-field select:focus,.wo-stone-row input:focus,.wo-stone-row select:focus,.bulk-edit-field input:focus,.bulk-edit-field textarea:focus,.bulk-edit-field select:focus,.wo-action-modal textarea:focus{border-color:#6c9a87;box-shadow:0 0 0 3px #dfeee7}.wo-edit-field input[readonly]{background:#f1f4f2;color:#59665f}.wo-edit-footer{position:sticky;z-index:40;bottom:0;display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding:12px 15px;border:1px solid #ccd8d1;border-radius:10px;background:#ffffffed;box-shadow:0 -8px 24px #15291f14;backdrop-filter:blur(8px)}
.wo-image-panel{display:grid;grid-template-columns:230px minmax(0,1fr);gap:13px;align-items:start}.wo-current-image{display:grid;place-items:center;width:230px;height:230px;border:1px dashed #c5d0ca;border-radius:9px;background:#f7f8f6;color:var(--muted);font-size:10px;text-align:center;overflow:hidden}.wo-current-image img{width:100%;height:100%;padding:8px;object-fit:contain}.wo-image-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.wo-image-panel>.wo-edit-field{grid-column:2}.wo-file-button{display:inline-flex;align-items:center;cursor:pointer}.wo-file-button input{display:none}.wo-danger-outline{height:35px;border:1px solid #dfbbb7;border-radius:7px;background:#fff;color:#ad372f;padding:0 11px;font:inherit;font-weight:700;cursor:pointer}.wo-danger-outline:disabled{opacity:.4;cursor:not-allowed}
.wo-stone-editor{min-width:0}.wo-stone-row{display:grid;grid-template-columns:120px repeat(4,minmax(105px,1fr)) 90px 90px minmax(110px,1fr) 34px;gap:7px;align-items:end;margin-bottom:8px;padding:9px;border:1px solid #dde4df;border-radius:8px;background:#f8faf8}.wo-stone-row label{min-width:0;font-size:8px;font-weight:750}.wo-stone-remove{width:34px;height:39px;border:1px solid #e3c3bf;border-radius:7px;background:#fff;color:#b13b33;font-size:16px;cursor:pointer}.wo-add-stone{margin-top:3px}
.wo-edit-gem-section{padding:0;border:0;background:transparent;box-shadow:none}.wo-edit-gemstone-builder{padding:16px;border:1px solid #bad3c6;border-radius:13px;background:linear-gradient(145deg,#fbfefc,#f2f9f5);box-shadow:0 6px 20px rgba(20,76,56,.06)}.wo-edit-gemstone-builder .builder-head{align-items:center;margin-bottom:13px;padding-bottom:12px;border-bottom:1px solid #dce9e2}.wo-edit-gemstone-builder .builder-head>div:first-child{position:relative;padding-left:39px}.wo-edit-gemstone-builder .builder-head>div:first-child:before{content:'◇';position:absolute;left:0;top:0;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#dfeee6;color:#176047;font-size:17px;font-weight:800}.wo-edit-gemstone-builder .builder-head b{display:block;color:#183d31;font-size:13px}.wo-edit-gemstone-builder .builder-head small{margin-top:2px;color:#667a70;font-size:9px}.wo-edit-gemstone-builder #editAddStone,.wo-edit-gemstone-builder .gem-column-btn{min-height:36px;padding:8px 12px;border-radius:8px;font-size:10px;font-weight:750}.wo-edit-gemstone-builder #editStoneRows{counter-reset:gemstone-card;display:grid;gap:9px}.wo-edit-gemstone-builder .wo-edit-gem-row{counter-increment:gemstone-card;position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr)) 34px;gap:9px;align-items:end;margin:0;padding:13px 11px 11px 42px;border:1px solid #d7e5dd;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(20,70,52,.04)}.wo-edit-gemstone-builder .wo-edit-gem-row:before{content:counter(gemstone-card);position:absolute;left:10px;top:12px;width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#e1efe7;color:#145c43;font-size:10px;font-weight:800}.wo-edit-gemstone-builder .wo-edit-gem-row label{min-width:0;color:#435b50;font-size:8px;font-weight:800;letter-spacing:.15px;text-transform:uppercase}.wo-edit-gemstone-builder .wo-edit-gem-row input,.wo-edit-gemstone-builder .wo-edit-gem-row select{width:100%;min-height:38px;margin-top:5px;border:1px solid #d1ddd6;border-radius:8px;background:#fbfdfc;padding:8px;color:#17201c;font-size:10px;text-transform:none}.wo-edit-gemstone-builder .wo-stone-remove{align-self:end;width:34px;height:38px;margin:0;border:1px solid #d4ded8;border-radius:8px;background:#f6f9f7;color:#60736a}.wo-edit-gemstone-builder .gemstone-empty{position:relative;padding:21px 16px 21px 49px;border:1px dashed #b8cec2;border-radius:10px;background:#fff;color:#60736a;text-align:left;font-size:10px}.wo-edit-gemstone-builder .gemstone-empty:before{content:'◇';position:absolute;left:16px;top:14px;width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#e7f2ec;color:#286c52;font-weight:800}.wo-edit-gemstone-builder .gem-column-panel{margin-bottom:11px}
.bulk-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bulk-edit-field{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:10px;padding:11px;border:1px solid #dce4df;border-radius:8px;background:#f9faf9;font-size:10px;font-weight:750}.bulk-edit-field>span{display:flex;align-items:center;gap:7px}.bulk-edit-field input[type=checkbox]{width:16px;height:16px;accent-color:var(--green)}.bulk-edit-field :disabled{background:#f0f2f1;color:#9aa39e}.bulk-edit-field textarea{min-height:60px}
.removed-orders-panel{padding:0;overflow:hidden}.removed-orders-panel table{min-width:980px}.removed-orders-panel th,.removed-orders-panel td{vertical-align:top}.removed-reason{max-width:280px;white-space:pre-wrap}.restore-order-btn{border:1px solid #b7cbbf;border-radius:7px;background:#eef6f2;color:var(--green);padding:7px 10px;font:inherit;font-weight:750;white-space:nowrap;cursor:pointer}.restore-order-btn:hover{background:#dfeee7}
.wo-action-backdrop{position:fixed;inset:0;z-index:480;display:none;align-items:center;justify-content:center;padding:16px;background:#12201988}.wo-action-backdrop.open{display:flex}.wo-action-modal{width:min(520px,100%);max-height:90vh;overflow:auto;padding:21px;border-radius:12px;background:#fff;box-shadow:0 20px 65px #0004}.wo-action-modal h2{margin:4px 0 6px;font-size:19px}.wo-action-modal p{margin:0 0 15px;color:var(--muted);font-size:10px}.wo-action-modal label{margin-top:11px;font-size:9px;font-weight:750}.wo-action-error{min-height:17px;padding-top:5px;color:#b03932;font-size:9px}.wo-action-modal-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:9px}.wo-danger-button{border:1px solid #a9342d;border-radius:7px;background:#b63a32;color:#fff;padding:9px 12px;font:inherit;font-weight:750;cursor:pointer}.wo-image-lightbox{position:fixed;inset:0;z-index:490;display:none;align-items:center;justify-content:center;padding:55px;background:#08110ce8}.wo-image-lightbox.open{display:flex}.wo-image-lightbox img{max-width:100%;max-height:100%;object-fit:contain}.wo-image-lightbox button{position:absolute;top:15px;right:15px;background:#fff}
.deleted-orders-modal{width:min(760px,100%)}.deleted-orders-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.deleted-orders-tools{display:flex;align-items:center;justify-content:space-between;margin:13px 0 8px;padding:10px 12px;border:1px solid #d3e0d9;border-radius:8px;background:#eef6f2}.deleted-orders-tools label{display:flex;align-items:center;gap:7px;margin:0}.deleted-orders-tools input,.deleted-order-row input{width:16px;height:16px;accent-color:var(--green)}.deleted-orders-list{display:grid;gap:7px;max-height:52vh;overflow:auto;padding-right:3px}.deleted-order-row{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;align-items:start;margin:0!important;padding:11px;border:1px solid #d9e3dd;border-radius:8px;background:#fff;cursor:pointer}.deleted-order-row:hover{border-color:#98b9aa;background:#f7fbf9}.deleted-order-row>span,.deleted-order-row small,.deleted-order-row em{display:block}.deleted-order-row b{color:#124f3b;font-size:11px}.deleted-order-row small{margin-top:3px;color:#64736c;font-size:9px;font-weight:500}.deleted-order-row em{margin-top:5px;color:#a44a40;font-size:9px}.deleted-order-row.unavailable{background:#faf8f7}.deleted-orders-empty{padding:28px;border:1px dashed #c9d8d0;border-radius:9px;color:var(--muted);text-align:center}.deleted-orders-modal button:disabled{opacity:.45;cursor:not-allowed}
.deleted-orders-modal{width:min(1380px,calc(100vw - 28px));height:min(880px,calc(100vh - 28px));display:flex;flex-direction:column;overflow:hidden}.deleted-orders-list{display:block;flex:1;max-height:none;min-height:0;overflow:auto;padding:0;border:1px solid #d7e1dc;border-radius:9px}.deleted-orders-table-wrap{min-width:100%;width:max-content}.deleted-orders-table{min-width:100%;border-collapse:separate;border-spacing:0;background:#fff}.deleted-orders-table th,.deleted-orders-table td{max-width:240px;padding:9px 10px;border-right:1px solid #d9e2dd;border-bottom:1px solid #d9e2dd;color:#263b33;font-size:9px;line-height:1.35;vertical-align:top;white-space:normal;overflow-wrap:anywhere}.deleted-orders-table th{position:sticky;z-index:3;top:0;background:#eaf3ee;color:#173f31;font-weight:800;text-align:left;white-space:nowrap}.deleted-orders-table .deleted-order-row{display:table-row;margin:0!important;padding:0;border:0;border-radius:0;background:#fff;cursor:default}.deleted-orders-table .deleted-order-row:hover td{background:#f5faf7}.deleted-orders-table .deleted-order-row.unavailable td{background:#fbf8f7}.deleted-orders-table .deleted-select-col{position:sticky;z-index:2;left:0;width:58px;min-width:58px;max-width:58px;text-align:center;background:#f7faf8}.deleted-orders-table th.deleted-select-col{z-index:5;background:#eaf3ee}.deleted-date-group td{position:sticky;z-index:2;left:0;padding:8px 11px;background:#dcece4;color:#114b38;font-size:10px}.deleted-date-group td b{margin-right:10px}.deleted-date-group td span{color:#567067;font-weight:600}.deleted-order-image{display:block;width:48px;height:48px;border-radius:6px;object-fit:contain;background:#f4f6f4}.deleted-meta{min-width:190px}.deleted-meta small,.deleted-meta em{display:block;margin-top:3px}.deleted-meta em{color:#a33e36}.deleted-orders-modal>.wo-action-modal-buttons{flex:0 0 auto;padding-top:10px}.deleted-orders-title,.deleted-orders-tools{flex:0 0 auto}@media(max-width:700px){.deleted-orders-modal{width:calc(100vw - 12px);height:calc(100vh - 12px);padding:13px}.deleted-orders-table th,.deleted-orders-table td{padding:8px;font-size:8px}.deleted-orders-tools{margin-top:8px}}
.deleted-date-group input[data-deleted-group]{width:16px;height:16px;margin:0 9px 0 0;vertical-align:middle;accent-color:var(--green);cursor:pointer}.deleted-orders-top-button{display:grid!important;flex:0 0 36px!important;width:36px!important;height:36px!important;color:#0c674e!important;border-color:#78aa96!important;background:#eef8f3!important;font-size:18px!important;font-weight:800!important}.deleted-orders-top-button:hover{background:#dff1e8!important;border-color:#17664e!important}.deleted-orders-top-button[hidden]{display:none!important}
@media(max-width:1100px){.wo-edit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wo-stone-row{grid-template-columns:repeat(4,minmax(120px,1fr)) 34px}.wo-stone-remove{grid-column:5;grid-row:1}}
@media(max-width:800px){.work-order-edit-view,.removed-orders-view{padding:14px!important}.wo-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wo-image-panel{grid-template-columns:1fr}.wo-current-image{width:100%;height:min(72vw,380px)}.wo-image-panel>.wo-edit-field{grid-column:1}.bulk-edit-grid{grid-template-columns:1fr}.wo-stone-row{grid-template-columns:repeat(2,minmax(0,1fr)) 34px}.wo-stone-remove{grid-column:3;grid-row:1}.wo-edit-footer{flex-wrap:wrap}.work-order-selection-actions{flex-wrap:nowrap!important;overflow:auto}.work-order-selection-actions .selection-count{min-width:75px}.work-order-selection-actions .selection-tool-btn{white-space:nowrap}}
@media(max-width:500px){.wo-edit-grid{grid-template-columns:1fr}.wo-edit-field.wide,.wo-edit-grid>.wide{grid-column:1}.wo-stone-row{grid-template-columns:1fr 1fr}.wo-stone-remove{grid-column:2;grid-row:1}.bulk-edit-field{grid-template-columns:1fr}.wo-edit-footer button{flex:1;min-width:130px}.wo-action-modal-buttons{flex-direction:column-reverse}.wo-action-modal-buttons button{width:100%}}
.cancelled-production-note{margin:14px 0 0;padding:10px 12px;border:1px solid #efc7c3;border-radius:7px;background:#fcebea;color:#a43731;font-size:11px;font-weight:700}
.wo-current-image,.wo-cad-image-preview{position:relative}.wo-image-remove-x{position:absolute;top:8px;right:8px;z-index:3;display:grid;place-items:center;width:28px;height:28px;border:1px solid #cbd8d1;border-radius:50%;background:#fff;color:var(--green);font-size:18px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 3px 10px #10291e22}.wo-image-remove-x:hover{background:var(--green);color:#fff;border-color:var(--green)}.wo-cad-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:16px;align-items:start}.wo-cad-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.wo-cad-fields .wo-edit-field.wide{grid-column:1/-1}.wo-cad-image-panel{padding:13px;border:1px solid #d5e0da;border-radius:10px;background:#f7faf8}.wo-cad-image-title b,.wo-cad-image-title small{display:block}.wo-cad-image-title b{color:var(--green);font-size:12px}.wo-cad-image-title small{margin-top:3px;color:var(--muted);font-size:9px}.wo-cad-image-preview{display:grid;place-items:center;width:100%;height:235px;margin:11px 0;border:1px dashed #bdcdc4;border-radius:8px;background:#fff;color:var(--muted);font-size:10px;overflow:hidden}.wo-cad-image-preview img{width:100%;height:100%;padding:8px;object-fit:contain}.wo-cad-image-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.wo-cad-image-panel>.wo-edit-field{font-size:9px}.wo-cad-image-panel>.wo-edit-field input{height:39px}@media(max-width:900px){.wo-cad-grid{grid-template-columns:1fr}.wo-cad-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.wo-cad-fields{grid-template-columns:1fr}.wo-cad-image-preview{height:210px}}
.wo-image-panel{grid-template-columns:190px minmax(0,1fr)!important;gap:16px!important;align-items:start!important}.wo-current-image{width:190px!important;height:190px!important;min-width:190px!important;min-height:190px!important;max-width:190px!important;max-height:190px!important;padding:8px!important;background:#fff!important;box-sizing:border-box!important}.wo-current-image img,.wo-cad-image-preview img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;padding:0!important;object-fit:scale-down!important;object-position:center!important;cursor:zoom-in!important}.wo-product-image-editor{display:grid;align-content:start;gap:13px;padding:13px;border:1px solid #d5e0da;border-radius:10px;background:#f7faf8;min-height:190px}.wo-product-image-title b,.wo-product-image-title small{display:block}.wo-product-image-title b{color:var(--green);font-size:12px}.wo-product-image-title small{margin-top:4px;color:var(--muted);font-size:9px}.wo-product-image-editor>.wo-edit-field{font-size:9px}.wo-product-image-editor>.wo-edit-field input{height:39px}.wo-cad-image-preview{height:180px!important;margin:9px 0!important}.wo-cad-image-panel{padding:12px!important}.wo-cad-grid{grid-template-columns:minmax(0,1.6fr) minmax(300px,.4fr)!important}.wo-cad-fields .wo-edit-field textarea{min-height:62px!important}@media(max-width:800px){.wo-image-panel{grid-template-columns:160px minmax(0,1fr)!important}.wo-current-image{width:160px!important;height:160px!important;min-width:160px!important;min-height:160px!important;max-width:160px!important;max-height:160px!important}.wo-product-image-editor{min-height:160px}}@media(max-width:560px){.wo-image-panel{grid-template-columns:1fr!important}.wo-current-image{width:100%!important;height:220px!important;max-width:none!important;min-width:0!important;min-height:220px!important;max-height:220px!important}.wo-product-image-editor{min-height:0}}
.wo-cad-image-preview{display:flex!important;align-items:center!important;justify-content:center!important;padding:10px!important;box-sizing:border-box!important;background:#fff!important}.wo-cad-image-preview img{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:calc(100% - 4px)!important;max-height:calc(100% - 4px)!important;object-fit:contain!important;object-position:center!important;flex:0 1 auto!important;display:block!important}
.wo-image-count{margin-left:auto;padding:6px 9px;border-radius:999px;background:#e4f0e9;color:var(--green);font-size:9px;font-weight:800}.wo-image-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;padding-top:2px}.wo-image-thumb{position:relative;height:78px;padding:4px;border:1px solid #d4dfd9;border-radius:8px;background:#fff;cursor:grab}.wo-image-thumb.active{border-color:#167153;box-shadow:0 0 0 2px #dceee6}.wo-image-thumb.dragging{opacity:.45}.wo-thumb-preview{width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.wo-thumb-preview img{display:block;width:100%;height:100%;object-fit:contain}.wo-thumb-remove{position:absolute;top:-6px;right:-6px;width:21px;height:21px;padding:0;border:1px solid #cad8d0;border-radius:50%;background:#fff;color:#174d3b;font-size:14px;font-weight:800;line-height:18px;cursor:pointer;box-shadow:0 2px 7px #10291e22}.wo-thumb-remove:hover{background:var(--green);color:#fff}.wo-image-empty{grid-column:1/-1;padding:18px;border:1px dashed #c4d2ca;border-radius:8px;color:var(--muted);text-align:center}.wo-product-image-editor .wo-edit-field textarea{min-height:66px}
.wo-image-panel{grid-template-columns:minmax(0,1fr) minmax(300px,.72fr)!important;padding:13px;border:1px solid #d5e0da;border-radius:10px;background:#f7faf8}.wo-edit-media-inputs{min-width:0}.wo-edit-upload-label,.wo-edit-link-field{display:block;color:#24483a;font-size:10px}.wo-edit-upload-label b,.wo-edit-upload-label small,.wo-edit-link-field>b,.wo-edit-link-field>small{display:block}.wo-edit-upload-label small,.wo-edit-link-field>small{margin-top:5px;color:var(--muted);font-size:9px}.wo-edit-file-control{display:flex;align-items:center;height:40px;margin-top:8px;padding:0 10px;border:1px solid #cad8d1;border-radius:8px;background:#fff;color:var(--green);font-weight:800;cursor:pointer}.wo-edit-file-control input{width:100%;margin-left:10px}.wo-edit-link-field{margin-top:13px;padding-top:13px;border-top:1px solid #dbe5df}.wo-edit-link-add-row{display:grid;grid-template-columns:34px minmax(0,1fr) 42px;align-items:center;margin-top:6px;border:1px solid #cad8d1;border-radius:8px;background:#fff;overflow:hidden}.wo-edit-link-add-row:focus-within{border-color:#1c7658;box-shadow:0 0 0 3px #dfeee7}.wo-edit-link-add-row>span{display:grid;place-items:center;height:40px;background:#edf5f1}.wo-edit-link-add-row input{width:100%;height:40px;padding:0 10px;border:0;outline:0}.wo-edit-link-add-row button{width:42px;height:40px;border:0;background:var(--green);color:#fff;font-size:20px;font-weight:800;cursor:pointer}.wo-edit-link-list{margin-top:10px;padding-top:9px;border-top:1px solid #e0e8e3}.wo-link-list-title{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px}.wo-link-list-title span{color:var(--muted);font-size:9px}.wo-link-list-row{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:7px;margin-top:5px;padding:7px 8px;border:1px solid #dbe5df;border-radius:7px;background:#fff}.wo-link-list-row>span{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#dfeee7;color:#155a43;font-size:9px;font-weight:800}.wo-link-list-row a{min-width:0;overflow:hidden;color:#285d49;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.wo-link-list-empty{padding:10px;border:1px dashed #cad7d0;border-radius:7px;color:var(--muted);font-size:9px;text-align:center}.wo-edit-media-preview{min-width:0;padding:12px;border:1px solid #d5e0da;border-radius:9px;background:#fff}.wo-edit-media-preview .wo-current-image{width:100%!important;height:235px!important;min-width:0!important;min-height:235px!important;max-width:none!important;max-height:235px!important;margin-top:10px}.wo-edit-media-preview .wo-image-thumbs{margin-top:10px}.wo-image-thumb>span{position:absolute;bottom:4px;left:4px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:6px;background:#195d47;color:#fff;font-size:9px;font-weight:800}@media(max-width:800px){.wo-image-panel{grid-template-columns:1fr!important}.wo-edit-media-preview .wo-current-image{height:220px!important;min-height:220px!important;max-height:220px!important}}
.wo-edit-upload-label>b,.wo-edit-link-field>b,.wo-product-image-title>b{font-size:11px;line-height:1.3}.wo-edit-upload-label small,.wo-edit-link-field>small,.wo-product-image-title small{line-height:1.45}.wo-edit-file-control input{margin-left:0}.wo-edit-media-preview .wo-current-image{width:min(100%,320px)!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:320px!important;max-height:none!important;aspect-ratio:1/1;margin:10px auto 0!important;padding:12px!important}.wo-edit-media-preview .wo-current-image img{display:block!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}.wo-edit-media-preview .wo-current-image>span{padding:18px;line-height:1.5}@media(max-width:800px){.wo-edit-media-preview .wo-current-image{width:min(100%,320px)!important;height:auto!important;min-height:0!important;max-height:none!important}}

.special-orders-view .table-wrap{overflow:auto}
.special-orders-view table{min-width:1120px}
.special-orders-view th,.special-orders-view td{vertical-align:middle}
.special-orders-view tbody tr{cursor:default}
.special-reason{max-width:240px;white-space:normal;line-height:1.35}
.special-status-select{min-width:160px;height:34px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:0 8px;font:inherit;font-size:10px}
.special-row-actions{display:flex;gap:6px;white-space:nowrap}
.special-row-actions button,.special-action,.special-job-link{border:1px solid #cbd7d0;border-radius:6px;background:#fff;color:var(--green);padding:6px 8px;font:inherit;font-size:9px;font-weight:750;cursor:pointer}
.special-job-link{border:0;padding:0;color:var(--green2)}
.linked-history-route{margin:4px 0 12px;color:var(--muted);font-size:10px}
.linked-records-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.linked-records-list button{display:grid;gap:2px;text-align:left;border:1px solid var(--line);border-radius:8px;background:#f6f8f6;padding:10px;cursor:pointer}
.linked-records-list button span,.linked-records-list button small{font-size:8px;color:var(--muted);text-transform:uppercase}
.linked-records-list button b{color:var(--green2)}
@media(max-width:740px){.linked-records-list{grid-template-columns:1fr}.special-orders-view{padding:15px!important}}

.register-context-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line, #d9e1dc);
  border-radius: 14px;
  background: #fff;
}

.register-context-banner.show { display: flex; }
.register-context-banner h2 { margin: 0 0 3px; font-size: 18px; }
.register-context-banner p { margin: 0; color: #68746e; font-size: 13px; }
.register-context-banner .secondary { white-space: nowrap; }

.register-mode-special:not(.register-mode-shipping) #arrangeRegisterBtn,
.register-mode-special:not(.register-mode-shipping) #compactArrange { display: none !important; }

.system-status-column { background: #fbfcfb; }
.register-table th.system-status-column { color: #52615b; }
.order-register .table-wrap{position:relative;max-height:calc(100vh - 215px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.order-register .register-table thead th{position:sticky;top:0;z-index:12;background:#fff;box-shadow:0 1px 0 #cfdad4}
.order-register .register-table thead th.sticky-col{z-index:15}
.order-register .register-table thead .register-selection-fixed{z-index:16;background:#fff!important}

.register-row-actions { position: relative; display: flex; justify-content: flex-end; gap: 4px; }
.register-row-actions > button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d7dfda;
  border-radius: 8px;
  background: #fff;
  color: #174f3e;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
}
.register-row-actions > button:hover { background: #edf6f2; }
.register-row-menu {
  position: fixed;
  z-index: 2600;
  display: none;
  width: 190px;
  padding: 6px;
  border: 1px solid #d5ded9;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(12, 36, 29, .2);
}
.register-row-menu.open { display: grid; }
.register-row-menu button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #18352c;
  text-align: left;
  cursor: pointer;
}
.register-row-menu button:hover { background: #edf6f2; }
.register-row-menu button.danger { color: #a23832; }
.register-sku-link{border:0;background:transparent;padding:0;color:var(--green2,#075b46);font:inherit;font-weight:750;text-align:left;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer}
.late-shipped-row>td{background:#fff3f2!important}
.late-shipped-badge{display:block;width:max-content;margin-top:4px;padding:2px 6px;border-radius:5px;background:#c63f38;color:#fff;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.25px}

.special-status-form { display: grid; gap: 12px; }
.special-status-form label { display: grid; gap: 6px; font-weight: 700; }
.special-status-form textarea,
.special-status-form input,
.special-status-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid #ccd8d2;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}
.special-status-field[hidden] { display: none; }

@media (max-width: 720px) {
  .register-context-banner { align-items: flex-start; flex-direction: column; }
  .register-context-banner .secondary { width: 100%; }
  .order-register .table-wrap{max-height:calc(100vh - 190px)}
}

.mini-excel-top.compact{min-height:38px;margin:0 0 7px;align-items:center}.mini-excel-top.compact>p{margin:0;color:var(--muted);font-size:10px}.mini-excel-toolbar.streamlined{gap:6px;min-height:39px;margin-bottom:7px}.mini-excel-toolbar.streamlined button{white-space:nowrap}.mini-excel-toolbar.streamlined #miniRowSummary{margin-left:auto}.mini-excel-view .mini-sheet-scroller{height:calc(100vh - 205px);min-height:430px}.mini-batch-notice{display:flex;align-items:center;gap:12px;margin-bottom:7px;padding:9px 12px;border:1px solid #a9ceb9;border-radius:8px;background:#eaf7ef;color:#185c3e}.mini-batch-notice[hidden]{display:none}.mini-batch-notice b{font-size:11px}.mini-batch-notice span{font-size:10px}.mini-data-row.validation-error{background:#fff3f2;box-shadow:inset 3px 0 #c9453d}.mini-data-row.validation-error .mini-row-number{color:#a82f29;background:#fee8e6}.mini-row-number em{display:inline-grid;place-items:center;width:13px;height:13px;margin-left:3px;border-radius:50%;background:#c13c35;color:#fff;font-size:8px;font-style:normal}.review-status.duplicate{color:#875000;background:#ffe9bd}.review-decision{display:block;margin-top:6px;color:#35463d;font-size:8px;font-weight:800}.review-decision select{display:block;width:210px;max-width:100%;height:28px;margin-top:3px;border:1px solid #b8c8bf;border-radius:5px;background:#fff;padding:0 5px;font:inherit;font-size:8px}.mini-header-row{position:sticky;top:0;z-index:24}.product-history-grid{display:grid;gap:14px}.product-history-grid article{min-width:0;padding:13px;border:1px solid #e3e8e5;border-radius:9px;background:#fafbfa}.product-history-grid h3{margin:0 0 9px;font-size:13px}.product-history-grid .product-orders-table{max-height:320px}.product-history-grid .product-orders-table table{min-width:720px}.product-history-grid .product-variants{padding:2px 0}@media(max-width:900px){.mini-excel-top.compact{align-items:flex-start;flex-direction:column}.mini-layout-select{width:100%;overflow-x:auto}.mini-excel-toolbar.streamlined{flex-wrap:wrap}.mini-excel-toolbar.streamlined #miniRowSummary{margin-left:0;width:100%}.mini-excel-view .mini-sheet-scroller{height:calc(100vh - 285px);min-height:360px}}

.mini-cell.range-selected{background:#dcefe5!important;box-shadow:inset 0 0 0 1px #79a58f}.mini-cell-editor{box-sizing:border-box;width:100%;height:100%;min-height:28px;border:2px solid var(--green);border-radius:0;background:#fff;padding:3px 6px;font:inherit;outline:0}.mini-column-head[draggable=true]{cursor:grab}.mini-column-head.dragging{opacity:.5}.mini-column-head:active{cursor:grabbing}
.mini-cell.selected{outline:2px solid #176149!important;outline-offset:-2px}

.mini-sheet-scroller {
  overflow-x: scroll !important;
  overflow-y: auto !important;
  touch-action: pan-x pan-y;
  scrollbar-width: none !important;
  scrollbar-gutter: auto !important;
  -ms-overflow-style: none;
}

.mini-sheet-scroller::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.mini-excel-view.active{background:#f4f7f5;padding:12px 14px 14px!important}
.mini-excel-view .mini-excel-top{margin-bottom:8px;padding:0 2px}
.mini-excel-toolbar.streamlined{gap:7px;padding:9px 10px;margin-bottom:9px;background:linear-gradient(180deg,#fbfdfc,#eef4f1);border:1px solid #c9d9d0;border-radius:11px;box-shadow:0 3px 12px rgba(20,65,45,.06)}
.mini-excel-toolbar.streamlined button{min-height:32px;padding:7px 11px;border:1px solid #c5d4cc;border-radius:8px;background:#fff;color:#173f31;font-size:9px;font-weight:800;box-shadow:0 1px 2px rgba(18,59,42,.04);transition:border-color .16s,background .16s,transform .16s,box-shadow .16s}
.mini-excel-toolbar.streamlined button:hover:not(:disabled){transform:translateY(-1px);border-color:#6fa98d;background:#f3faf6;box-shadow:0 4px 10px rgba(20,75,51,.09)}
.mini-excel-toolbar.streamlined button.primary{background:#155a43;border-color:#155a43;color:#fff;box-shadow:0 4px 10px rgba(21,90,67,.16)}
.mini-excel-toolbar.streamlined button.primary:hover{background:#104a37;border-color:#104a37}
.mini-excel-view .mini-sheet-scroller{border-color:#b9ccc1;border-radius:11px;box-shadow:0 5px 18px rgba(20,65,45,.06);background:#fff}
.mini-excel-view .mini-header-row{background:#e9f1ed;border-bottom-color:#a9c0b4}
.mini-excel-view .mini-column-head{background:#edf4f0;border-right-color:#bdccc4;color:#183c30;font-size:8.5px}
.mini-excel-view .mini-cell{font-size:9.5px;transition:background .12s}
.mini-excel-view .mini-cell:hover{background:#f7fbf9}
.mini-excel-view .mini-cell:focus,.mini-excel-view .mini-cell.selected{box-shadow:inset 0 0 0 2px #267657;background:#fff}

.mini-review-view{box-sizing:border-box;background:#f4f7f5;padding:16px 18px 22px!important}
.mini-review-head{align-items:center;margin-bottom:12px;padding:2px}
.mini-review-head h2{font-size:20px;color:#132f25}
.mini-review-head p{font-size:10px}
.mini-review-head>button,.mini-review-actions button,.mini-review-table button{min-height:32px;padding:7px 11px;border:1px solid #c4d3cb;border-radius:8px;background:#fff;color:#194633;font-size:9px;font-weight:800;box-shadow:0 1px 2px rgba(18,59,42,.04);transition:background .16s,border-color .16s,transform .16s,box-shadow .16s}
.mini-review-head>button:hover,.mini-review-actions button:hover,.mini-review-table button:hover{transform:translateY(-1px);background:#f1f8f4;border-color:#70a88e;box-shadow:0 4px 10px rgba(20,75,51,.08)}
.mini-review-summary{min-height:42px;margin-bottom:10px;padding:8px 10px;background:#edf5f1;border-color:#c5dacf;border-radius:11px;box-shadow:0 2px 8px rgba(20,65,45,.04)}
.mini-review-summary span,.mini-review-summary b{font-size:9px;border:1px solid #d8e5de}
.mini-review-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:9px 10px;background:#fff;border:1px solid #cad9d1;border-radius:11px;box-shadow:0 3px 12px rgba(20,65,45,.05)}
.mini-review-action-left,.mini-review-action-right{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mini-review-action-right{justify-content:flex-end;margin-left:auto}
.mini-review-actions .primary{background:#155a43;border-color:#155a43;color:#fff;box-shadow:0 4px 10px rgba(21,90,67,.15)}
.mini-review-actions .primary:hover{background:#104a37;border-color:#104a37}
#miniReviewArrangeColumns{background:#e8f4ee;border-color:#94baa7;color:#11563f}
#miniReviewCancel{color:#6d3d35}
.mini-review-table-wrap{max-height:calc(100vh - 270px);border-color:#bdcec5;border-radius:11px;box-shadow:0 5px 18px rgba(20,65,45,.06);background:#fff}
.mini-review-table{min-width:max(100%,calc(390px + var(--review-column-count,10)*132px));table-layout:auto}
.mini-review-table th,.mini-review-table td{padding:9px 8px;border-color:#d9e2dd;font-size:9px;line-height:1.35}
.mini-review-table thead th{background:#eaf2ee;color:#31594a;font-size:8px;font-weight:900;letter-spacing:.025em;text-transform:uppercase;white-space:nowrap}
.mini-review-table tbody tr.review-main-row:nth-child(4n+1) td{background:#fbfdfc}
.mini-review-table tbody tr.review-main-row:hover td{background:#f2f8f5}
.review-use-column,.review-row-column,.review-open-column{width:46px;text-align:center!important}
.review-validation-column{min-width:260px}.review-validation-cell{min-width:260px}
.review-image-cell{min-width:68px}.review-multiline-cell{min-width:190px;white-space:pre-wrap}
.mini-review-table img,.review-no-image{width:58px;height:58px;border-radius:7px}
.review-status{font-size:8px}.review-issue{max-width:280px;color:#805b22;line-height:1.35}.review-safe-note{color:#557266}
.review-row-button{white-space:nowrap}
.review-detail-row>td{background:#f1f7f4;padding:14px}
.review-detail-grid label{border-radius:8px;box-shadow:0 1px 3px rgba(20,65,45,.04)}

.review-column-panel aside{width:min(520px,100%);background:#f8fbf9}
.review-column-panel header{background:#fff}.review-column-panel aside>p{font-size:10px;line-height:1.5}
#miniReviewColumnList{display:grid;gap:7px;padding:5px 18px 18px;overflow:auto;flex:1}
.review-column-row{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:7px;padding:9px 10px;background:#fff;border:1px solid #cad9d1;border-radius:9px;box-shadow:0 1px 3px rgba(20,65,45,.04);transition:border-color .15s,background .15s,opacity .15s}
.review-column-row.over{border-color:#398060;background:#edf7f2}.review-column-row.dragging{opacity:.5}
.review-column-drag{font-size:17px;color:#668075;cursor:grab}.review-column-row label{display:flex;align-items:center;gap:9px;cursor:pointer}.review-column-row input{accent-color:#176046;width:15px;height:15px}
.review-column-row label span{display:grid;gap:2px}.review-column-row b{font-size:10px;color:#173d30}.review-column-row small{font-size:8px;color:#718078}
.review-column-panel footer{background:#fff}.review-column-panel footer button{border-radius:8px}

@media(max-width:1100px){.mini-review-actions{align-items:flex-start;flex-direction:column}.mini-review-action-right{width:100%;justify-content:flex-start;margin-left:0}.mini-review-table-wrap{max-height:calc(100vh - 330px)}}
@media(max-width:800px){.mini-excel-view.active{padding:8px!important}.mini-review-view{padding:10px!important}.mini-review-head{align-items:flex-start}.mini-review-actions{padding:8px}.mini-review-action-left,.mini-review-action-right{width:100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.mini-review-actions button{white-space:nowrap}.mini-review-table-wrap{max-height:calc(100vh - 340px)}}

.stage-inline-select{max-width:150px;padding:6px 24px 6px 9px;border:0;border-radius:999px;background:#e8f2f6;color:#185274;font:700 12px/1 inherit;cursor:pointer}.stage-inline-select:focus{outline:2px solid #1d7358;outline-offset:2px}.production-timeline{display:grid;gap:0;margin-top:12px}.production-timeline-item{display:grid;grid-template-columns:23px 1fr;gap:10px;min-height:49px}.production-timeline-dot{position:relative;width:19px;height:19px;border:2px solid #aab8b2;border-radius:50%;box-sizing:border-box;margin-top:1px}.production-timeline-item:not(:last-child) .production-timeline-dot:after{content:'';position:absolute;top:17px;left:7px;width:2px;height:35px;background:#d7e0db}.production-timeline-item.done .production-timeline-dot{border-color:#176045;background:#176045}.production-timeline-item.done .production-timeline-dot:before{content:'✓';position:absolute;color:#fff;font-size:11px;left:2px;top:-1px}.production-timeline-item.current .production-timeline-dot{border:6px solid #d99a28}.production-timeline-copy{padding-bottom:11px}.production-timeline-copy b{display:block;font-size:13px}.production-timeline-copy small{display:block;color:#6c7771;font-size:11px;margin-top:2px}.production-controls{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,2fr) auto;gap:8px;margin-top:14px;align-items:end}.production-controls label{display:grid;gap:5px;font-size:11px;font-weight:700;color:#4e5e57}.production-controls select,.production-controls textarea{width:100%;box-sizing:border-box;border:1px solid #ccd8d2;border-radius:8px;padding:8px;font:inherit}.production-controls textarea{min-height:38px;resize:vertical}.shipping-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shipping-summary .full-data{min-height:46px}#ordersView.register-mode-special.register-mode-shipping #arrangeRegisterBtn,#ordersView.register-mode-special.register-mode-shipping #compactArrange{display:inline-flex!important}@media(max-width:700px){.production-controls{grid-template-columns:1fr}.shipping-summary{grid-template-columns:1fr 1fr}}
 .quick-current-stage{margin:7px 0 10px;padding:10px 12px;border-radius:8px;background:#e8f2f6;color:#185274;font-size:16px;font-weight:800}.quick-stage-actions{display:flex;gap:7px;flex-wrap:wrap}.quick-history-title{margin-top:17px!important}.quick-stage-list{display:grid;gap:3px}.quick-stage-step{display:grid;grid-template-columns:21px 1fr auto;align-items:center;gap:6px;width:100%;padding:7px 4px;border:0;border-radius:7px;background:transparent;text-align:left;cursor:pointer;color:#31443c}.quick-stage-step:hover{background:#f0f6f2}.quick-stage-step span{font-weight:900}.quick-stage-step.done span{color:#176045}.quick-stage-step.current{background:#fff7e8;color:#7d5310}.quick-stage-step.pending{color:#7a8780}.quick-stage-step b{font-size:12px}.quick-stage-step small{font-size:10px}.quick-stage-editor{display:grid;gap:7px;margin-top:8px;padding:10px;border:1px solid #d6e1db;border-radius:8px;background:#f7faf8}.quick-stage-editor span{font-size:11px;color:#64716b}.quick-stage-editor textarea{width:100%;min-height:50px;box-sizing:border-box;border:1px solid #ccd8d2;border-radius:7px;padding:7px;font:inherit}.quick-stage-editor>div{display:flex;gap:7px;justify-content:flex-end}.quick-shipped-summary{padding:9px;border-radius:7px;background:#e6f3e9;color:#176045;font-weight:700;font-size:12px}@media(max-width:560px){.quick-stage-actions .primary{width:100%}.quick-stage-step{grid-template-columns:19px 1fr}.quick-stage-step small{grid-column:2}.detail-drawer{width:min(100%,420px)}}
.shipment-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.shipment-modal-head h2{margin-bottom:4px}.shipment-modal-head p{margin-top:0}.shipment-modal-head #shipmentArrangeColumns{flex:0 0 auto}.shipment-universal-fields{display:contents}.shipment-universal-fields[hidden]{display:none}
.shipment-modal-head~.wo-edit-grid>[data-shipment-field][hidden]{display:none!important}

.reports-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}.reports-head h2{margin:2px 0;font-size:22px}.reports-head p{margin:0;color:var(--muted);font-size:12px}.report-filter-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px}.report-filter-card label{display:grid;gap:5px;font-size:10px;font-weight:800;text-transform:uppercase;color:var(--muted)}.report-filter-card input,.report-filter-card select{width:100%;min-height:40px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:8px;color:var(--ink);font:13px inherit}.activity-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.activity-kpis article,.activity-chart-card,.activity-detail-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}.activity-kpis small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}.activity-kpis b{font-size:27px}.activity-chart-card h3,.activity-detail-card h3{margin:0;font-size:15px}.activity-chart-card p,.activity-detail-card p{margin:3px 0 12px;color:var(--muted);font-size:11px}.activity-chart{min-height:215px;display:flex;align-items:end;gap:6px;border-bottom:1px solid #cfd8d2;padding:18px 5px 26px;overflow-x:auto}.activity-bar{min-width:34px;height:185px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;cursor:pointer;color:var(--muted);font-size:10px}.activity-bar i{display:block;width:19px;background:var(--green2);border-radius:5px 5px 0 0}.activity-bar b{color:var(--ink)}.activity-bar.active i{background:var(--gold)}.activity-detail-card{margin-top:14px}.activity-detail-list{display:grid;gap:7px}.activity-detail-list button{display:grid;grid-template-columns:145px 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:7px;background:#fff;padding:10px;text-align:left;cursor:pointer}.activity-detail-list button:hover{border-color:var(--green2);background:#f6faf7}.activity-detail-list span,.activity-detail-list small{font-size:11px}.activity-detail-list small{color:var(--muted)}.report-empty{color:var(--muted);padding:20px}
.reports-activity-mobile-fix{display:none}
@media(max-width:740px){html,body{max-width:100%;overflow-x:hidden}main,.view{max-width:100%;overflow-x:hidden}.view{padding:14px}.reports-head{align-items:stretch;flex-direction:column}.reports-head .primary{width:100%;min-height:44px}.report-filter-card,.activity-kpis{grid-template-columns:1fr}.report-filter-card{gap:10px;padding:13px}.activity-kpis{gap:8px}.activity-kpis article{padding:14px}.activity-chart-card,.activity-detail-card{padding:13px}.activity-chart{min-height:205px;padding-bottom:25px;scroll-snap-type:x proximity}.activity-bar{scroll-snap-align:start;min-width:38px}.activity-detail-list button{grid-template-columns:1fr;gap:3px;min-height:72px}.detail-drawer{width:100%!important;max-width:100vw}.detail-top,.detail-body{padding:17px}.detail-top{position:sticky;top:0;background:#fff;z-index:2}.detail-actions{flex-wrap:wrap}.info-grid{grid-template-columns:1fr!important}.production-controls,.stage-control{flex-direction:column}.production-controls button,.stage-control button{min-height:44px}.modal-backdrop{padding:0;align-items:stretch}.modal{width:100%;min-height:100vh;border-radius:0}.modal-head,.form-section,.modal-actions{padding-left:16px;padding-right:16px}.form-grid{grid-template-columns:1fr!important}.form-grid .wide{grid-column:auto!important}.modal-actions{position:sticky;bottom:0;background:#fff}.table-wrap,.register-table-wrap,.shared-register-table-wrap{max-width:100%;overflow:auto!important;-webkit-overflow-scrolling:touch}.register-table{min-width:760px}.register-tools,.toolbar-actions{max-width:100%;overflow-x:auto}.sidebar{max-width:85vw}.sidebar.open{box-shadow:12px 0 35px #0006}}
@media(min-width:741px) and (max-width:1050px){.report-filter-card{grid-template-columns:repeat(2,1fr)}.activity-kpis{grid-template-columns:repeat(2,1fr)}}
.volume-actions{display:flex;gap:8px;flex-wrap:wrap}.volume-filters{grid-template-columns:repeat(2,minmax(180px,1fr));max-width:620px}.volume-kpis{grid-template-columns:repeat(3,1fr)}.monthly-volume-chart{margin-top:14px}.fy-chart{height:205px;display:grid;grid-template-columns:repeat(12,minmax(38px,1fr));align-items:end;gap:9px;border-bottom:1px solid #cfd8d2;padding:18px 6px 25px;overflow-x:auto}.fy-chart>div{height:170px;display:flex;align-items:center;justify-content:end;flex-direction:column;gap:4px;color:var(--muted);font-size:10px}.fy-chart i{display:block;width:22px;background:var(--green);border-radius:5px 5px 0 0}.fy-chart b{color:var(--ink)}.monthly-history{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;max-width:720px}.monthly-history h3{margin:0 0 8px;font-size:15px}.monthly-history p{display:flex;justify-content:space-between;margin:0;padding:8px 0;border-top:1px solid var(--line);font-size:12px}.monthly-history .monthly-total{font-weight:800;color:var(--green)}
.reports-head.compact{justify-content:flex-end;margin-bottom:8px}
@media(max-width:740px){.volume-actions{display:grid;grid-template-columns:1fr 1fr}.volume-actions button{min-height:44px;padding:9px}.volume-filters,.volume-kpis{grid-template-columns:1fr}.fy-chart{gap:7px;grid-template-columns:repeat(12,44px);overflow-x:auto}.monthly-history{padding:13px}.monthly-history p{font-size:13px}}
.fy-month-bar{height:170px;min-width:38px;border:0;border-radius:0;background:transparent;display:flex;align-items:center;justify-content:end;flex-direction:column;gap:4px;color:var(--muted);font-size:10px;cursor:pointer;padding:0 4px}.fy-month-bar:hover,.fy-month-bar.active{border:0;background:transparent}.fy-month-bar:hover i,.fy-month-bar.active i{background:var(--gold)}
.daily-volume-chart .activity-chart{display:grid;align-items:end;gap:4px;width:100%}.daily-volume-chart .activity-bar{width:100%;min-width:26px;padding-inline:0}
.report-balance-ledgers{margin:14px 0}.report-balance-ledgers th:not(:first-child),.report-balance-ledgers td:not(:first-child){text-align:right}.report-balance-ledgers tfoot th{position:static;background:#f5f8f6;color:var(--ink);font-size:10px}

/* Automatic year/month business reporting. */
.business-summary-card{margin:14px 0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}.business-summary-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:13px}.business-summary-head h3{margin:3px 0 0;font-size:17px;color:var(--ink)}.business-summary-head p{margin:0;color:var(--muted);font-size:10px}.business-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.business-metrics article{display:flex;align-items:center;gap:10px;min-height:82px;border:1px solid #d8e3dd;border-radius:9px;background:#f8fbf9;padding:11px}.business-metrics article>i{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:8px;background:#e5f1eb;color:var(--green);font-style:normal;font-weight:900}.business-metrics article>div{display:grid;gap:2px;min-width:0}.business-metrics small{overflow:hidden;color:var(--muted);font-size:8px;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis}.business-metrics b{font-size:22px;color:var(--ink)}.business-metrics span{color:var(--muted);font-size:8px}.business-history{max-width:none}.business-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px}.business-history table{width:100%;border-collapse:collapse;min-width:720px}.business-history th,.business-history td{padding:9px 11px;border-bottom:1px solid var(--line);text-align:right;font-size:11px}.business-history th:first-child,.business-history td:first-child{text-align:left}.business-history thead th{background:#f1f6f3;color:#526159;font-size:9px;text-transform:uppercase}.business-history tbody tr.active{background:#eaf4ef}.business-history tbody tr:hover{background:#f7faf8}.business-history tfoot th{border-bottom:0;background:#0e503f;color:#fff;font-size:11px}
@media(max-width:1250px){.business-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:740px){.business-summary-head{align-items:flex-start;flex-direction:column;gap:5px}.business-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.business-metrics article{min-height:76px}.business-summary-card{padding:13px}}
@media(max-width:430px){.business-metrics{grid-template-columns:1fr}}
.report-financial-card{margin:14px 0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}.report-financial-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #d8e3dd;border-radius:9px;overflow:hidden}.report-financial-metrics article{display:grid;gap:5px;padding:15px;border-right:1px solid #d8e3dd;background:#fbfdfc}.report-financial-metrics article:last-child{border-right:0}.report-financial-metrics small{color:var(--muted);font-size:9px;text-transform:uppercase}.report-financial-metrics b{font-size:21px;color:var(--ink);overflow-wrap:anywhere}.report-financial-metrics span{color:var(--muted);font-size:9px}@media(max-width:740px){.report-financial-card{padding:13px}.report-financial-metrics{grid-template-columns:1fr 1fr}.report-financial-metrics article:nth-child(2){border-right:0}.report-financial-metrics article{border-bottom:1px solid #d8e3dd}.report-financial-metrics article:nth-last-child(-n+2){border-bottom:0}}
.report-financial-split{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.report-financial-detail{min-width:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}.report-financial-detail>header{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:11px}.report-financial-detail h3{margin:3px 0 0;font-size:16px}.report-financial-detail>header>b{font-size:19px}.report-record-table{max-height:330px;overflow:auto;border:1px solid var(--line);border-radius:8px}.report-record-table table{width:100%;border-collapse:collapse;table-layout:fixed}.report-record-table th,.report-record-table td{padding:9px;border-bottom:1px solid var(--line);text-align:left;font-size:10px;vertical-align:top}.report-record-table th{position:sticky;top:0;background:#eff5f1;color:var(--muted);font-size:8px;text-transform:uppercase}.report-record-table th:last-child,.report-record-table td:last-child{text-align:right}.report-record-table td small{display:block;margin-top:2px;color:var(--muted);font-size:8px}.report-record-table td.income{color:#08654d}.report-record-table td.expense{color:#a33b30}@media(max-width:850px){.report-financial-split{grid-template-columns:1fr}.report-financial-detail{padding:13px}}
.report-seller-finance{margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}.report-seller-finance header{display:flex;justify-content:space-between;margin-bottom:11px}.report-seller-finance h3{margin:3px 0 0}.report-seller-finance p{margin:3px 0 0;color:var(--muted);font-size:10px}.seller-finance-table{max-height:290px}.seller-finance-table th:not(:first-child),.seller-finance-table td:not(:first-child){text-align:right}.report-finance-tools{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:7px;margin-bottom:8px}.report-finance-search{display:flex;align-items:center;gap:7px;height:36px;padding:0 10px;border:1px solid #cbd9d2;border-radius:8px;background:#fff;color:#557067}.report-finance-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:11px}.report-finance-tools select{height:36px;border:1px solid #cbd9d2;border-radius:8px;background:#fff;padding:0 8px;color:var(--ink);font:inherit;font-size:10px}.report-financial-detail>label.report-finance-search{margin-bottom:8px}.report-record-table tr[hidden]{display:none}.report-financial-history{max-width:none;margin-bottom:14px}.report-financial-history .business-summary-head{margin-bottom:10px}.report-financial-history td:not(:first-child),.report-financial-history th:not(:first-child){text-align:right}@media(max-width:740px){.report-seller-finance{padding:13px}.report-finance-tools{grid-template-columns:1fr}.seller-finance-table table,.report-financial-history table{min-width:700px}}
.report-finance-shortcut{display:inline-flex;align-items:center;gap:8px;min-height:36px;border:1px solid #8db7a5;border-radius:8px;background:#eef7f3;color:#075b43;padding:0 11px;font:inherit;font-size:11px;font-weight:850;white-space:nowrap;cursor:pointer}.report-finance-shortcut:hover{border-color:#176149;background:#dfeee7}.report-finance-shortcut span{font-size:15px}.report-order-shortcut,.report-sheet-shortcut{border:0;background:transparent;color:#075d43;padding:0;font:inherit;font-weight:850;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.report-record-table tr[data-open-finance]{cursor:pointer}.report-record-table tr[data-open-finance]:hover{background:#f2f8f5}@media(max-width:740px){.report-finance-shortcut{width:100%;justify-content:space-between}}

/* Shared selectors: always appear above tables/panels and keep native touch scrolling. */
.sd-menu,.ed-menu{z-index:1000!important;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.ed-menu{position:fixed!important}.sd-options{overscroll-behavior:contain;touch-action:pan-y;scroll-behavior:smooth;padding-right:2px}.sd-options,.ed-menu{scrollbar-gutter:stable}.sd-options::-webkit-scrollbar,.ed-menu::-webkit-scrollbar{width:10px}.sd-options::-webkit-scrollbar-thumb,.ed-menu::-webkit-scrollbar-thumb{background:#8da298;border:2px solid #fff;border-radius:10px}.sd-dropdown,.ed-dropdown{isolation:isolate}.sd-trigger,.ed-trigger,select{touch-action:manipulation}
/* The Mini Excel header and rows share one expandable grid and one scroll viewport. */
.mini-sheet-scroller{overflow:scroll!important;overscroll-behavior:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;max-width:100%;contain:paint}.mini-grid{min-width:100%;padding-bottom:2px}.mini-header-row,.mini-rows-layer,.mini-data-row{width:100%;min-width:100%;max-width:none}.mini-header-row{align-self:start}.mini-column-head{min-width:0;overflow:visible}.mini-column-head>span{white-space:normal;overflow-wrap:anywhere;word-break:break-word;max-height:none}.mini-corner,.mini-row-number{left:0}.mini-header-row,.mini-data-row{contain:layout}
/* The shared header search is intentionally reserved for work-order and product searching. */
body[data-view="dashboard"] .global-search,body[data-view="manufacturers"] .global-search,body[data-view="reports"] .global-search,body[data-view="miniExcel"] .global-search,body[data-view="miniReview"] .global-search{display:none}
/* Keep the import sheet focused: no helper message, saved-layout chooser, or row-count chooser. */
.mini-excel-view .mini-excel-top{display:none!important}
/* Custom fields use their own name as the label; no extra technical caption is shown. */
.custom-field-note{display:none!important}
/* One-click grouping for every visible order date in the register. */
.daily-bulk-selector{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;overflow-x:auto;padding:1px 2px;margin:0 0 9px;scrollbar-width:thin}.daily-bulk-label{font-size:10px;font-weight:750;color:var(--muted);white-space:nowrap}.daily-bulk-button{border:1px solid #cbd6d0;background:#fff;color:var(--ink);border-radius:15px;padding:5px 8px;font:700 10px/1 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}.daily-bulk-button:hover{border-color:var(--green2);color:var(--green)}.daily-bulk-button.active{border-color:var(--green);background:var(--green);color:#fff}.daily-bulk-button b{margin-left:3px}
@media(max-width:740px){.sd-menu{max-width:calc(100vw - 16px)!important;left:8px!important;right:8px!important}.ed-menu{max-width:calc(100vw - 16px)}.mini-sheet-scroller{scrollbar-width:auto}.mini-column-head{font-size:9px}.mini-row-number{min-width:48px}}

/* Local role access layer — uses the existing SCLN visual language. */
body.access-locked{overflow:hidden}.access-login{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:18px;background:#17201cf0}.access-login[hidden]{display:none}.access-card{width:min(440px,100%);background:#fff;border-radius:16px;box-shadow:0 24px 70px #0007;padding:28px}.access-brand{display:flex;gap:11px;align-items:center;margin-bottom:22px}.access-brand strong{display:block;letter-spacing:3px}.access-brand small{display:block;letter-spacing:1px;color:var(--muted);font-size:9px}.access-mark{width:39px;height:39px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:var(--gold);font:22px Georgia}.access-card h2{margin:0 0 5px;font-size:24px}.access-card p{margin:0 0 18px;color:var(--muted)}.access-choice{display:grid;gap:10px}.access-choice button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:15px;text-align:left;font:inherit;font-weight:750;cursor:pointer}.access-choice button:hover,.access-choice button.active{border-color:var(--green2);background:#eef7f2}.access-form{display:grid;gap:12px;margin-top:15px}.access-form label{display:grid;gap:5px;font-size:11px;font-weight:750}.access-form input,.access-form select{width:100%;border:1px solid var(--line);border-radius:7px;padding:11px;font:inherit}.access-form button{margin-top:4px}.access-error{min-height:18px;color:var(--red);font-size:11px}.access-back{border:0;background:transparent;color:var(--green2);padding:0;text-align:left;cursor:pointer;font:inherit}.admin-nav{display:grid;gap:5px;margin-top:10px;padding-top:11px;border-top:1px solid #303c37}.admin-nav>small{padding:0 12px;color:#84918a;font-size:9px;font-weight:800;letter-spacing:.8px}.admin-nav .nav{padding:9px 12px}.access-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.access-page-head h2{margin:0}.access-page-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.access-table{overflow:auto;border:1px solid var(--line);background:#fff;border-radius:10px}.access-table table{min-width:620px}.access-table td,.access-table th{padding:12px}.access-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700}.access-status:before{content:'';width:8px;height:8px;border-radius:50%;background:#39a669}.access-status.inactive:before{background:#9aa39e}.access-row-actions{display:flex;gap:6px}.access-row-actions button{font-size:10px;padding:6px 8px}.updates-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:13px}.updates-filters select{border:1px solid var(--line);border-radius:7px;background:#fff;padding:8px}.update-list{display:grid;gap:8px}.update-item{background:#fff;border:1px solid var(--line);border-radius:9px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.update-item b,.update-item small{display:block}.update-item small{color:var(--muted)}.access-modal{position:fixed;inset:0;z-index:2100;background:#0c1713a8;display:grid;place-items:center;padding:18px}.access-modal[hidden]{display:none}.access-modal article{width:min(450px,100%);background:#fff;border-radius:12px;padding:20px}.access-modal h3{margin:0 0 12px}.access-modal footer{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}body.role-user [data-admin-only]{display:none!important}body.role-user #settingsBackdrop{display:none!important}@media(max-width:740px){.access-card{padding:22px}.access-page-head{align-items:stretch;flex-direction:column}.access-page-head .primary{width:100%}.update-item{grid-template-columns:1fr}.sidebar-foot b{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Complete user-wise activity history in the SCLN visual language. */
.updates-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}.updates-toolbar label{display:grid;gap:5px;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.updates-toolbar select{min-width:150px;height:38px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 10px;color:var(--ink)}.updates-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.updates-summary article{display:grid;gap:4px;min-height:78px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:13px}.updates-summary small{color:var(--muted);font-size:9px;text-transform:uppercase}.updates-summary b{font-size:22px;color:var(--ink)}.updates-user-tabs{display:flex;align-items:center;gap:7px;overflow-x:auto;margin-bottom:12px;padding:2px 0}.updates-user-tabs button{display:flex;align-items:center;gap:8px;min-height:34px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:0 11px;color:#536159;font-size:10px;font-weight:750;white-space:nowrap;cursor:pointer}.updates-user-tabs button:hover{border-color:#91b09f;color:var(--green)}.updates-user-tabs button.active{border-color:var(--green);background:var(--green);color:#fff}.updates-user-tabs button b{display:grid;place-items:center;min-width:19px;height:19px;border-radius:999px;background:#edf3f0;color:#627169;font-size:9px}.updates-user-tabs button.active b{background:#ffffff2e;color:#fff}.update-list{display:grid;gap:8px}.update-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:84px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:12px 14px;transition:.16s ease}.update-item:hover{border-color:#9ab9aa;box-shadow:0 5px 15px #163c2c0c}.update-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#e7f2ec;color:var(--green);font-size:12px;font-weight:900}.update-main{display:grid;gap:4px;min-width:0}.update-title{display:flex;align-items:center;gap:8px}.update-title>b{font-size:12px;color:var(--ink)}.update-title>span{border-radius:999px;background:#edf3f0;padding:4px 7px;color:#64736b;font-size:7px;font-weight:800;text-transform:uppercase}.update-main p{margin:0;color:#536159;font-size:10px}.update-main p strong{color:var(--ink)}.update-main p button{border:0;background:transparent;padding:0;color:var(--green);font:inherit;font-weight:850;cursor:pointer}.update-main>small{display:block;overflow:hidden;color:#66736c;font-size:10px;line-height:1.45;text-overflow:ellipsis}.update-item time{display:grid;justify-items:end;gap:3px;min-width:120px}.update-item time b{font-size:10px;color:var(--ink)}.update-item time span{color:var(--muted);font-size:9px}.updates-empty{display:grid;place-items:center;gap:5px;min-height:180px;border:1px dashed #b9c9c1;border-radius:11px;background:#fafcfb;color:var(--muted);text-align:center}.updates-empty b{color:var(--ink);font-size:14px}@media(max-width:900px){.updates-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:740px){.updates-toolbar{align-items:stretch;flex-direction:column}.updates-toolbar .secondary{width:100%}.update-item{grid-template-columns:38px minmax(0,1fr)}.update-item time{grid-column:2;justify-items:start;grid-auto-flow:column;justify-content:start;gap:7px}.updates-summary{grid-template-columns:1fr 1fr}.update-avatar{width:36px;height:36px}}

/* Staff operate order values; master form structure remains administrator-only. */
body.role-user .form-section .field-arrange-btn{display:none!important}
body.role-user .field-layout-panel{display:none!important}

/* Dedicated, opaque sign-in surface. */
.access-login{background:#14201b!important}.access-card{border:1px solid #d8e2dc!important;background:#fff!important;box-shadow:0 24px 70px rgba(0,0,0,.35)!important}.access-choice{grid-template-columns:1fr 1fr}.access-choice button{text-align:center}.access-form label{position:relative}.access-form input{background:#fff;min-height:44px}.access-password-wrap{position:relative}.access-password-wrap input{padding-right:48px}.access-password-toggle{position:absolute;right:7px;top:7px;min-width:34px;height:30px;border:0;border-radius:6px;background:#edf3ef;color:#245c47;cursor:pointer;font-size:15px}.access-password-toggle:hover{background:#dbece2}
@media(max-width:540px){.access-login{padding:14px}.access-card{width:100%;border-radius:13px;padding:22px}.access-choice{grid-template-columns:1fr}.access-choice button{min-height:48px}}

/* New work order defaults remain editable; this file only improves the mobile presentation. */
@media(max-width:740px){
  #modalBackdrop.modal-backdrop{padding:0!important;background:#18211d!important;align-items:stretch!important;overflow-y:auto!important;overscroll-behavior:contain}
  #modalBackdrop .order-modal{width:100%!important;min-height:100vh!important;margin:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;opacity:1!important}
  #modalBackdrop .order-modal,#modalBackdrop .order-modal form,#modalBackdrop .order-modal .form-section{background:#fff!important}
  #modalBackdrop .modal-head{position:sticky;top:0;z-index:5;background:#fff!important;padding:15px 16px!important;align-items:center}
  #modalBackdrop .modal-head h2{font-size:20px!important;line-height:1.2!important}
  #modalBackdrop .modal-head .eyebrow{font-size:8px!important}
  #modalBackdrop .form-section{padding:15px 16px!important}
  #modalBackdrop .form-section h3{font-size:11px!important;margin:0 0 12px!important}
  #modalBackdrop .form-grid{grid-template-columns:1fr!important;gap:11px!important}
  #modalBackdrop .form-grid .wide{grid-column:1!important}
  #modalBackdrop .modal-actions{position:sticky;bottom:0;z-index:5;background:#fff!important;border-top:1px solid var(--line);padding:12px 16px!important}
  .topbar{height:auto!important;min-height:64px!important;padding:10px 14px!important}.topbar h1{font-size:18px!important;line-height:1.2}.topbar p{font-size:10px!important}.top-actions .primary{padding:9px 11px;font-size:12px}
}

/* A mobile work order is a solid full-screen sheet, never a transparent layer. */
@media(max-width:740px){
  #modalBackdrop.modal-backdrop.open{display:block!important;position:fixed!important;inset:0!important;padding:0!important;background:#17201c!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}
  #modalBackdrop .order-modal{display:block!important;width:100%!important;min-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;opacity:1!important;box-shadow:none!important;overflow:visible!important}
  #modalBackdrop .order-modal form,#modalBackdrop .order-modal .form-section{background:#fff!important;opacity:1!important}
  #modalBackdrop .modal-head{position:sticky!important;top:0!important;z-index:80!important;min-height:62px!important;padding:12px 16px!important;background:#fff!important;border-bottom:1px solid #e0e5e1!important;box-shadow:0 2px 8px rgba(19,32,27,.05)!important}
  #modalBackdrop .modal-head h2{font-size:18px!important;line-height:1.15!important;letter-spacing:0!important}
  #modalBackdrop .modal-head .eyebrow{font-size:8px!important;letter-spacing:.04em!important}
  #modalBackdrop .modal-head .icon-btn{font-size:22px!important;min-width:42px!important;min-height:42px!important}
  #modalBackdrop .form-section{padding:14px 16px!important}
  #modalBackdrop .form-section h3{font-size:10px!important;line-height:1.25!important;margin:0 0 10px!important}
  #modalBackdrop .modal-actions{position:sticky!important;bottom:0!important;z-index:80!important;background:#fff!important;padding:11px 16px!important}
}

@media(max-width:740px){
  #menuBtn,#menuBtn:hover,#menuBtn:active,#menuBtn:focus{box-shadow:none!important;-webkit-tap-highlight-color:transparent}
  #menuBtn:focus:not(:focus-visible){outline:none!important}
  #menuBtn:focus-visible{outline:2px solid #287158;outline-offset:3px}
}

.seller-id-page{padding:24px 28px}.seller-page-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.seller-page-head h2{font-size:24px;margin:0 0 4px}.seller-page-head p{margin:0;color:#66736d}.seller-search{width:min(360px,100%);display:flex;align-items:center;gap:9px;border:1px solid #d5ddd8;border-radius:10px;background:#fff;padding:0 13px;height:42px}.seller-search input{border:0;outline:0;width:100%;font:inherit;background:transparent}.seller-overview{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin-bottom:18px}.seller-summary,.seller-card{background:#fff;border:1px solid #dbe2de;border-radius:12px}.seller-summary{padding:14px}.seller-summary span{display:block;color:#718078;font-size:11px;text-transform:uppercase}.seller-summary strong{display:block;font-size:23px;margin-top:5px}.seller-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.seller-card{padding:16px;min-width:0}.seller-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.seller-card-head h3{margin:0;font-size:17px;overflow-wrap:anywhere}.seller-card-head small{white-space:nowrap;color:#748079}.seller-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.seller-metric{border:0;border-radius:8px;background:#f3f6f4;padding:9px 6px;text-align:left;cursor:pointer;color:#17201c}.seller-metric:hover,.seller-metric:focus{outline:2px solid #176149;background:#edf6f1}.seller-metric b{display:block;font-size:18px}.seller-metric span{display:block;font-size:9px;text-transform:uppercase;color:#66736d;margin-top:3px;overflow-wrap:anywhere}.seller-note-label{display:block;font-size:11px;font-weight:700;margin:13px 0 5px}.seller-note{display:block;width:100%;min-height:68px;resize:vertical;border:1px solid #d4ded8;border-radius:8px;padding:9px 10px;font:inherit}.seller-note:focus{outline:2px solid #176149;border-color:transparent}.seller-note-status{height:17px;color:#597168;font-size:10px;margin-top:3px}.seller-open{width:100%;margin-top:8px;border:1px solid #b8ccc1;background:#fff;color:#0d563f;border-radius:8px;padding:9px;font-weight:700;cursor:pointer}.seller-empty{padding:46px 20px;text-align:center;border:1px dashed #c8d4ce;border-radius:12px;color:#66736d;background:#fff}.seller-detail-backdrop{position:fixed;inset:0;z-index:250;background:rgba(13,24,19,.55);display:none}.seller-detail-backdrop.open{display:block}.seller-detail-panel{position:absolute;right:0;top:0;height:100%;width:min(920px,76vw);background:#f5f7f5;box-shadow:-12px 0 35px rgba(0,0,0,.18);display:flex;flex-direction:column}.seller-detail-head{display:flex;justify-content:space-between;gap:16px;padding:20px 22px;background:#fff;border-bottom:1px solid #dce3df}.seller-detail-head h2{margin:0;font-size:22px}.seller-detail-head p{margin:4px 0 0;color:#66736d}.seller-detail-close{width:40px;height:40px;border:1px solid #d4ddd8;border-radius:9px;background:#fff;font-size:22px;cursor:pointer}.seller-detail-tabs{display:flex;gap:7px;overflow-x:auto;padding:13px 18px;background:#fff;border-bottom:1px solid #dce3df}.seller-detail-tabs button{white-space:nowrap;border:1px solid #d6dfda;background:#fff;border-radius:20px;padding:8px 12px;cursor:pointer}.seller-detail-tabs button.active{background:#125842;color:#fff;border-color:#125842}.seller-detail-body{padding:16px 18px;overflow:auto}.seller-order-table-wrap{overflow:auto;background:#fff;border:1px solid #dce3df;border-radius:10px}.seller-order-table{width:100%;border-collapse:collapse;min-width:760px}.seller-order-table th,.seller-order-table td{padding:11px 10px;border-bottom:1px solid #e5eae7;text-align:left}.seller-order-table th{position:sticky;top:0;background:#f3f6f4;color:#627069;font-size:10px;text-transform:uppercase}.seller-order-table td{font-size:13px}.seller-order-link{border:0;background:none;color:#075d43;font-weight:700;cursor:pointer;padding:0}.seller-status-pill{display:inline-block;border-radius:14px;padding:4px 8px;background:#e8f1ed;font-size:10px;font-weight:700}.seller-no-orders{text-align:center;padding:45px;color:#67756e}
@media(max-width:1150px){.seller-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.seller-id-page{padding:16px 12px}.seller-page-head{align-items:stretch;flex-direction:column}.seller-search{width:100%}.seller-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-grid{grid-template-columns:1fr}.seller-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.seller-detail-panel{width:100%;height:100%}.seller-detail-head{padding:15px}.seller-detail-body{padding:10px}.seller-summary:last-child{grid-column:1/-1}}

/* Compact seller cards and on-demand notes */
.seller-tools-row{display:flex;justify-content:flex-end;margin-bottom:10px}
.seller-head-actions{display:flex;align-items:center;gap:8px}.seller-restore-list{height:42px;border:1px solid #bdcbc4;background:#fff;color:#155842;border-radius:9px;padding:0 12px;font-weight:700;cursor:pointer}.seller-card{padding:15px;box-shadow:0 2px 8px rgba(15,56,42,.035);transition:box-shadow .15s,transform .15s}.seller-card:hover{box-shadow:0 8px 24px rgba(15,56,42,.09);transform:translateY(-1px)}.seller-card-title{display:flex;align-items:center;gap:10px;min-width:0}.seller-avatar{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#e4f0ea;color:#0c5c41;font-size:17px;font-weight:800}.seller-card-head h3{font-size:16px}.seller-card-head small{display:block;margin-top:2px}.seller-remove{width:32px;height:32px;border:1px solid #ecd0cc;background:#fff;color:#a9382f;border-radius:8px;cursor:pointer}.seller-remove:hover{background:#fff0ee}.seller-metric{display:flex;align-items:center;gap:5px;padding:8px 6px;min-width:0}.seller-metric-icon{display:grid!important;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:7px;background:#e2ebe6;color:#14583f;font-size:10px!important;margin:0!important}.seller-metric-copy{min-width:0}.seller-metric b{font-size:16px;line-height:1}.seller-metric small{display:block;font-size:8px;text-transform:uppercase;color:#66736d;margin-top:3px;overflow-wrap:anywhere}.seller-metric-shipped .seller-metric-icon{background:#dff2e7}.seller-metric-returned .seller-metric-icon{background:#fff1d7;color:#916000}.seller-metric-cancelled .seller-metric-icon{background:#fee6e3;color:#a7352c}.seller-card-actions{display:flex;gap:7px;margin-top:11px}.seller-note-toggle,.seller-open{height:34px;border:1px solid #b8ccc1;background:#fff;color:#0d563f;border-radius:8px;padding:0 10px;font-weight:700;cursor:pointer}.seller-note-toggle{flex:0 0 auto}.seller-note-toggle.has-note{background:#edf6f1}.seller-open{flex:1;width:auto;margin:0}.seller-note-box{display:none;margin-top:8px;padding:8px;border-radius:9px;background:#f4f7f5;border:1px solid #d9e2dd}.seller-note-box.open{display:block}.seller-note{min-height:48px;max-height:100px;padding:8px 9px}.seller-note-footer{display:flex;justify-content:space-between;align-items:center;margin-top:5px}.seller-note-status{height:auto;margin:0;color:#39705c}.seller-note-close{border:0;background:transparent;color:#0d563f;font-weight:700;cursor:pointer;padding:3px 5px}
@media(max-width:700px){.seller-head-actions{align-items:stretch;flex-direction:column}.seller-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.seller-metric{display:block;text-align:center}.seller-metric-icon{margin:0 auto 4px!important}.seller-card-actions{flex-wrap:wrap}.seller-open{min-width:150px}}

/* Administrator-only active/deleted seller grouping. */
.seller-groups-layout{display:block}.seller-groups-layout.has-removed{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,.8fr);gap:16px;align-items:start}.seller-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}.seller-group-head h2{margin:0;font-size:14px}.seller-group-head p{margin:2px 0 0;color:#718078;font-size:9px}.seller-group-head>span{display:grid;place-items:center;min-width:27px;height:27px;border-radius:14px;background:#f3e7e5;color:#98453e;font-size:10px;font-weight:800}.seller-groups-layout.has-removed .seller-active-group .seller-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-removed-group{min-width:0;padding:13px;border:1px solid #dfd6d3;border-radius:12px;background:#faf7f6}.seller-removed-grid{display:grid;gap:9px;max-height:620px;overflow:auto;padding-right:3px}.seller-card-removed{padding:12px;background:#fff;box-shadow:none}.seller-card-removed:hover{transform:none;box-shadow:0 4px 14px rgba(91,53,47,.07)}.seller-card-removed .seller-card-head{margin-bottom:9px}.seller-card-removed .seller-avatar{background:#f2e9e7;color:#87504a}.seller-card-removed h3{font-size:13px}.seller-deleted-tag{padding:3px 6px;border-radius:10px;background:#fae9e6;color:#9c4139;font-size:7px;font-weight:800;text-transform:uppercase}.seller-removed-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.seller-removed-stats>span{padding:6px;border-radius:7px;background:#f6f7f6}.seller-removed-stats b,.seller-removed-stats small{display:block}.seller-removed-stats b{font-size:12px}.seller-removed-stats small{margin-top:1px;color:#77837d;font-size:7px;text-transform:uppercase}.seller-restore-one{width:100%;height:32px;margin-top:8px;border:1px solid #8db9aa;border-radius:7px;background:#eef7f3;color:#0c6047;font-size:9px;font-weight:800;cursor:pointer}.seller-restore-one:hover{border-color:#0c6047;background:#e1f1ea}.seller-empty.compact{padding:20px 10px;font-size:9px}
@media(max-width:1250px){.seller-groups-layout.has-removed{grid-template-columns:1fr}.seller-groups-layout.has-removed .seller-active-group .seller-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-removed-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:460px}}
.seller-removed-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.seller-removed-actions .seller-restore-one{width:auto}.seller-delete-forever{height:32px;margin-top:8px;border:1px solid #d9a19c;border-radius:7px;background:#fff4f2;color:#a3362e;font-size:9px;font-weight:800;cursor:pointer}.seller-delete-forever:hover{border-color:#a3362e;background:#fce7e4}
@media(max-width:700px){.seller-groups-layout.has-removed .seller-active-group .seller-grid,.seller-removed-grid{grid-template-columns:1fr}.seller-removed-group{padding:10px}}

/* Keep Seller ID order images strictly inside their preview box. */
.seller-order-table .seller-image-cell{width:64px!important;min-width:64px!important;max-width:64px!important;padding:6px 8px!important;overflow:hidden!important}
.seller-order-table .seller-order-image{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;margin:0 auto!important;padding:4px!important;overflow:hidden!important}
.seller-order-table .seller-order-image img{box-sizing:border-box!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;margin:0!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.seller-order-table .seller-order-image span{right:2px!important;top:2px!important;min-width:15px!important;height:15px!important;padding:0 3px!important;border-width:1px!important;font-size:7px!important}
.seller-detail-head-actions{display:flex;align-items:center;gap:8px}.seller-detail-head-actions>button{display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1}.seller-arrange-columns{width:40px;height:40px;padding:0;border:1px solid #abc8ba;border-radius:10px;background:#eff7f3;color:#0d6045;font-size:20px;font-weight:800;cursor:pointer;box-shadow:0 1px 2px rgba(13,86,63,.06);transition:background .15s,border-color .15s,transform .15s}.seller-arrange-columns:hover{background:#e0f0e8;border-color:#6eaa8e;transform:translateY(-1px)}.seller-arrange-columns:focus-visible{outline:3px solid rgba(23,97,73,.18);outline-offset:2px}.seller-order-table-wrap{overflow:auto}.seller-image-cell{padding:6px 10px!important;text-align:center!important}.seller-order-image{position:relative;display:inline-grid;place-items:center;width:48px;height:48px;padding:3px;border:1px solid #cfdbd5;border-radius:8px;background:#f7faf8;cursor:pointer;overflow:visible}.seller-order-image:hover{border-color:#6eaa8e;background:#edf6f1}.seller-order-image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:5px}.seller-order-image span{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:10px;background:#126048;color:#fff;font-size:8px;font-weight:800}.seller-image-empty{color:#8b9891}

/* Stable header controls and quiet Open action */
.seller-detail-head-actions .seller-arrange-columns,.seller-detail-head-actions .seller-detail-close{display:inline-grid!important;place-items:center;width:40px!important;height:40px!important;min-width:40px;padding:0!important;line-height:1!important}
.seller-order-link,.seller-order-link:hover,.seller-order-link:focus,.seller-order-link:active{background:transparent!important;box-shadow:none!important;transform:none!important;filter:none!important;text-decoration:none!important;outline:none!important}

/* Keep seller order status filters stable when the drawer/table is refreshed. */
.seller-detail-tabs{box-sizing:border-box!important;display:flex!important;align-items:center!important;flex:none!important;min-height:64px!important;height:64px!important;gap:8px!important;padding:12px 18px!important;overflow-x:auto!important;overflow-y:hidden!important}
.seller-detail-tabs>button{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:82px!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:0 14px!important;border-radius:999px!important;font:inherit!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important;transform:none!important}
.seller-detail-tabs>button:hover,.seller-detail-tabs>button:focus,.seller-detail-tabs>button:active{height:38px!important;min-height:38px!important;max-height:38px!important;transform:none!important}

.in-stock-view{padding:24px}.in-stock-view,.stock-modal-backdrop{--stock-green:#0e503f;--stock-green-2:#176852;--stock-mint:#e9f4ef;--stock-line:#d4dfd9;--stock-ink:#14211b;--stock-muted:#68756e;--stock-bg:#f4f7f5}.stock-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:20px}.stock-page-head h2{font-size:28px;line-height:1;margin:6px 0 8px;color:var(--stock-ink)}.stock-page-head p{margin:0;color:var(--stock-muted);max-width:680px}.stock-head-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.stock-button{min-height:38px;border:1px solid var(--stock-line);border-radius:9px;padding:0 14px;background:#fff;color:var(--stock-ink);font:700 12px/1 inherit;cursor:pointer;transition:.18s ease;white-space:nowrap}.stock-button:hover:not(:disabled){border-color:#8fb1a2;transform:translateY(-1px);box-shadow:0 5px 14px rgba(14,80,63,.09)}.stock-button.primary{background:var(--stock-green);border-color:var(--stock-green);color:#fff}.stock-button.primary:hover{background:var(--stock-green-2)}.stock-button.secondary.strong{color:var(--stock-green);border-color:#85ab99;background:#f6fbf8}.stock-button.subtle{border-color:transparent;background:transparent;padding:0 9px;color:#4e6057}.stock-button.danger{color:#9b3833;background:#fff7f6;border-color:#e7c1bd}.stock-button:disabled{opacity:.45;cursor:not-allowed}.stock-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.stock-stat{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--stock-line);border-radius:13px;padding:16px;min-height:96px}.stock-stat-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--stock-mint);color:var(--stock-green);font-weight:900;font-size:18px}.stock-stat div{display:grid;gap:2px}.stock-stat small,.stock-stat span{color:var(--stock-muted);font-size:11px}.stock-stat strong{font-size:24px;color:var(--stock-ink)}.stock-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 180px 180px;gap:12px;background:#fff;border:1px solid var(--stock-line);border-radius:12px;padding:12px}.stock-toolbar label{display:grid;gap:5px;font-size:10px;font-weight:800;color:var(--stock-muted);text-transform:uppercase}.stock-toolbar input,.stock-toolbar select{height:42px;border:1px solid var(--stock-line);border-radius:9px;background:#fff;padding:0 12px;color:var(--stock-ink);outline:none}.stock-toolbar input:focus,.stock-toolbar select:focus{border-color:#5d967e;box-shadow:0 0 0 3px rgba(23,104,82,.09)}.stock-search{position:relative}.stock-search>span{position:absolute;left:12px;bottom:11px;color:var(--stock-green);font-size:18px}.stock-search input{padding-left:37px}.stock-result-line{display:flex;align-items:center;gap:10px;padding:16px 2px 10px}.stock-result-line b{color:var(--stock-ink)}.stock-result-line span{color:var(--stock-muted);font-size:12px}.stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stock-card{display:grid;grid-template-columns:180px minmax(0,1fr);overflow:hidden;background:#fff;border:1px solid var(--stock-line);border-radius:14px;min-height:230px;transition:.18s ease}.stock-card:hover{border-color:#9ab8aa;box-shadow:0 8px 22px rgba(27,50,40,.08);transform:translateY(-1px)}.stock-card.is-empty{opacity:.72}.stock-card-image{position:relative;background:#eff3f0;min-height:230px;display:grid;place-items:center;overflow:hidden}.stock-card-image img{width:100%;height:100%;object-fit:cover}.stock-card-image>span{display:grid;place-items:center;gap:6px;color:#829087;font-size:32px}.stock-card-image>span small{font-size:11px}.stock-card-image>b{position:absolute;top:10px;left:10px;border-radius:999px;background:rgba(255,255,255,.9);padding:5px 8px;color:var(--stock-green);font-size:9px;text-transform:uppercase;letter-spacing:.05em}.stock-card-body{display:flex;flex-direction:column;padding:16px;min-width:0}.stock-card-title{display:flex;justify-content:space-between;gap:14px}.stock-card-title small{font-size:9px;color:var(--stock-muted);text-transform:uppercase}.stock-card-title h3{font-size:20px;margin:4px 0 2px;color:var(--stock-ink)}.stock-card-title p{margin:0;color:var(--stock-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-qty{display:grid;place-items:end;align-content:start;padding:8px 10px;border-radius:10px;background:var(--stock-mint);min-width:66px}.stock-qty strong{font-size:24px;color:var(--stock-green)}.stock-qty span{font-size:9px;color:var(--stock-muted);text-transform:uppercase}.stock-qty.low{background:#fff4dc}.stock-qty.low strong{color:#9a6410}.stock-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.stock-facts>span{display:grid;gap:3px;background:var(--stock-bg);border-radius:8px;padding:8px 9px}.stock-facts small{font-size:8px;text-transform:uppercase;color:var(--stock-muted)}.stock-facts b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stock-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid #edf1ee}.stock-card-foot>div{display:flex;gap:2px}.stock-state{font-size:10px;font-weight:800}.stock-state.available{color:var(--stock-green)}.stock-state.empty{color:#78837e}.stock-empty{grid-column:1/-1;display:grid;place-items:center;gap:6px;min-height:220px;border:1px dashed #b8c8c0;border-radius:14px;background:#fafcfb;color:var(--stock-muted);text-align:center}.stock-empty b{font-size:16px;color:var(--stock-ink)}.stock-empty.compact{min-height:140px}.stock-modal-open{overflow:hidden}.stock-modal-backdrop{position:fixed;inset:0;z-index:1600;display:none;place-items:center;padding:22px;background:rgba(13,22,18,.66);backdrop-filter:blur(2px)}.stock-modal-backdrop.open{display:grid}.stock-modal-shell{width:min(920px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 28px 80px rgba(0,0,0,.27)}.stock-modal-head{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid var(--stock-line);background:#fff}.stock-modal-head h2{margin:4px 0 4px;font-size:22px;color:var(--stock-ink)}.stock-modal-head p{margin:0;color:var(--stock-muted);font-size:12px}.stock-close{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;background:#f2f5f3;color:var(--stock-green);font-size:22px;cursor:pointer}.stock-modal-body{padding:20px 22px}.stock-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.stock-form-grid label{display:grid;gap:6px;min-width:0}.stock-form-grid label>span,.stock-image-inputs label>span{font-size:10px;font-weight:800;color:#314139}.stock-form-grid input,.stock-form-grid select,.stock-form-grid textarea,.stock-image-inputs input{width:100%;min-height:40px;border:1px solid var(--stock-line);border-radius:8px;background:#fff;padding:9px 10px;color:var(--stock-ink);outline:none}.stock-form-grid textarea{min-height:72px;resize:vertical}.stock-form-grid input:focus,.stock-form-grid select:focus,.stock-form-grid textarea:focus,.stock-image-inputs input:focus{border-color:#579279;box-shadow:0 0 0 3px rgba(23,104,82,.09)}.stock-form-grid .wide{grid-column:1/-1}.stock-image-box,.stock-shipping-box{margin-top:16px;padding:14px;border:1px solid var(--stock-line);border-radius:11px;background:var(--stock-bg)}.stock-image-box>div:first-child{display:grid;gap:3px;margin-bottom:11px}.stock-image-box span{color:var(--stock-muted);font-size:11px}.stock-image-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stock-image-inputs label{display:grid;gap:5px}.stock-shipping-box h3{margin:0 0 12px;font-size:13px;color:var(--stock-green);text-transform:uppercase;letter-spacing:.03em}.stock-modal-actions{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:14px 22px;border-top:1px solid var(--stock-line);background:#fff}.stock-modal-actions>span{margin-right:auto;color:var(--stock-muted);font-size:11px}.stock-modal-actions .grow{flex:1}.stock-form-error{min-height:18px;margin-top:10px;color:#a43f39;font-size:11px;font-weight:700}.stock-transfer-search{position:relative;display:block;margin-bottom:12px}.stock-transfer-search>span{position:absolute;left:12px;top:9px;font-size:18px;color:var(--stock-green)}.stock-transfer-search input{width:100%;height:40px;border:1px solid var(--stock-line);border-radius:9px;padding:0 12px 0 38px}.stock-transfer-list{display:grid;gap:8px;max-height:430px;overflow:auto}.stock-transfer-row{display:grid;grid-template-columns:22px 48px minmax(0,1fr) 85px 100px;align-items:center;gap:10px;border:1px solid var(--stock-line);border-radius:10px;padding:9px;cursor:pointer}.stock-transfer-row:hover{background:#f8fbf9;border-color:#9bb9ac}.stock-transfer-row>input[type=checkbox]{width:16px;height:16px;accent-color:var(--stock-green)}.stock-transfer-image{display:grid;place-items:center;width:46px;height:46px;border-radius:7px;background:#eef3f0;color:#74837b;overflow:hidden}.stock-transfer-image img{width:100%;height:100%;object-fit:cover}.stock-transfer-row>span:nth-child(3){display:grid;gap:4px;min-width:0}.stock-transfer-row b,.stock-transfer-row small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-transfer-row b{font-size:12px}.stock-transfer-row small{color:var(--stock-muted);font-size:10px}.stock-transfer-row em{justify-self:start;border-radius:999px;background:#e7f3ed;color:var(--stock-green);padding:5px 8px;font-size:9px;font-style:normal;font-weight:800}.stock-transfer-row em.cancelled{background:#fff0ed;color:#a64a42}.stock-transfer-qty{display:flex;align-items:center;gap:5px;color:var(--stock-muted);font-size:10px}.stock-transfer-qty input{width:56px;height:32px;border:1px solid var(--stock-line);border-radius:7px;padding:0 7px}.stock-order-product{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:10px;border:1px solid var(--stock-line);border-radius:11px;background:var(--stock-bg)}.stock-order-thumb{display:grid;place-items:center;width:62px;height:62px;border-radius:9px;background:#fff;overflow:hidden;color:#728079}.stock-order-thumb img{width:100%;height:100%;object-fit:cover}.stock-order-product>div:last-child{display:grid;gap:3px}.stock-order-product small{font-size:9px;color:var(--stock-muted)}.stock-order-product b{font-size:14px}.stock-order-product span{font-size:10px;color:var(--stock-green);font-weight:800}.stock-history{display:grid;gap:9px}.stock-history article{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px;border:1px solid var(--stock-line);border-radius:10px}.stock-history article>span{display:grid;place-items:center;min-height:36px;border-radius:8px;background:var(--stock-mint);color:var(--stock-green);font-weight:900}.stock-history article>div{display:grid;gap:3px}.stock-history b{font-size:12px}.stock-history small,.stock-history time{font-size:10px;color:var(--stock-muted)}
@media(max-width:1100px){.stock-stats{grid-template-columns:repeat(2,1fr)}.stock-grid{grid-template-columns:1fr}}
@media(max-width:720px){.in-stock-view{padding:14px}.stock-page-head{display:grid}.stock-head-actions{justify-content:stretch}.stock-head-actions .stock-button{flex:1}.stock-toolbar{grid-template-columns:1fr}.stock-stats{grid-template-columns:1fr 1fr}.stock-card{grid-template-columns:120px minmax(0,1fr)}.stock-card-image{min-height:250px}.stock-form-grid{grid-template-columns:1fr}.stock-image-inputs{grid-template-columns:1fr}.stock-transfer-row{grid-template-columns:22px 42px minmax(0,1fr);}.stock-transfer-row em,.stock-transfer-qty{grid-column:3}.stock-card-foot{align-items:flex-start;flex-direction:column}.stock-modal-actions{flex-wrap:wrap}.stock-modal-actions .stock-button{flex:1}.stock-modal-actions>span{width:100%}}
@media(max-width:480px){.stock-stats{grid-template-columns:1fr}.stock-card{grid-template-columns:1fr}.stock-card-image{min-height:180px;max-height:220px}.stock-facts{grid-template-columns:1fr 1fr}.stock-modal-backdrop{padding:0}.stock-modal-shell{width:100vw;max-height:100vh;height:100vh;border-radius:0}.stock-modal-head{padding:16px}.stock-modal-body{padding:16px}.stock-modal-actions{padding:12px 16px}}

/* In Stock page refinements: single title, focused search and uncropped square images. */
.stock-page-head p{margin:5px 0 0}
.stock-toolbar{display:block;padding:10px;background:linear-gradient(180deg,#fff,#fbfdfc)}
.stock-toolbar .stock-search{display:block;text-transform:none}
.stock-toolbar .stock-search>span{left:15px;bottom:10px;display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--stock-mint);font-size:16px}
.stock-toolbar .stock-search input{height:46px;padding-left:50px;border-color:#c7d7cf;font-size:12px}
.stock-toolbar .stock-search input:hover{border-color:#91b2a2}
.stock-toolbar .stock-search input:focus{border-color:var(--stock-green);box-shadow:0 0 0 3px rgba(14,80,63,.1)}
.stock-card{grid-template-columns:220px minmax(0,1fr);min-height:220px}
.stock-card-image{width:220px;height:220px;min-height:0;aspect-ratio:1/1;background:#fff;padding:8px}
.stock-card-image img{width:100%;height:100%;object-fit:contain;object-position:center}
.stock-card-image>b{top:10px;left:10px}
@media(max-width:720px){.stock-card{grid-template-columns:160px minmax(0,1fr);min-height:160px}.stock-card-image{width:160px;height:160px;min-height:0;max-height:none}.stock-toolbar{display:block}}
@media(max-width:480px){.stock-card{grid-template-columns:1fr}.stock-card-image{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:1/1}}

/* Administrator stock-field layout and SKU-connected image preview. */
.stock-layout-open{align-self:center;margin-left:auto;min-height:34px;border:1px solid #8fb3a2;border-radius:8px;padding:0 12px;background:#f1f8f4;color:var(--stock-green);font-size:10px;font-weight:800;cursor:pointer}
.stock-layout-open.icon-only{width:36px;min-width:36px;padding:0;font-size:15px}
.stock-layout-open:hover{background:var(--stock-mint);border-color:var(--stock-green)}
.stock-layout-panel{padding:14px 18px;border-bottom:1px solid var(--stock-line);background:#f5faf7}
.stock-layout-panel[hidden]{display:none}
.stock-layout-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:11px}
.stock-layout-head b{font-size:13px;color:var(--stock-ink)}
.stock-layout-head p{margin:3px 0 0;color:var(--stock-muted);font-size:10px}
.stock-layout-head>button{width:28px;height:28px;border:0;border-radius:7px;background:#e7f0eb;color:var(--stock-green);cursor:pointer}
.stock-layout-list{display:grid;gap:6px;max-height:285px;overflow:auto;padding-right:3px}
.stock-layout-row{display:grid;grid-template-columns:24px 64px minmax(150px,1fr) 86px 105px 36px;align-items:center;gap:7px;border:1px solid var(--stock-line);border-radius:9px;padding:8px;background:#fff;transition:.16s ease}
.stock-layout-row:hover{border-color:#9ebbad;background:#fcfefd;box-shadow:0 3px 10px rgba(14,80,63,.05)}
.stock-layout-row.dragging{opacity:.45}
.stock-layout-drag{color:#668076;cursor:grab;font-size:17px}
.stock-layout-row label{display:flex;align-items:center;gap:4px;font-size:9px;font-weight:700}
.stock-layout-row input[type=checkbox]{width:14px;height:14px;accent-color:var(--stock-green)}
.stock-layout-row input[type=text],.stock-layout-row select,.stock-layout-add input,.stock-layout-add select{height:32px;border:1px solid var(--stock-line);border-radius:7px;background:#fff;padding:0 8px;font-size:10px}
.stock-layout-row button,.stock-layout-add button,.stock-layout-actions button{height:32px;border:1px solid var(--stock-line);border-radius:7px;background:#fff;color:var(--stock-ink);font-size:10px;font-weight:700;cursor:pointer}
.stock-layout-row .stock-layout-remove{width:34px;padding:0;color:#9a4943;background:#fff7f6;font-size:15px}
.stock-layout-row button:disabled{opacity:.45;cursor:not-allowed}
.stock-layout-add{display:grid;grid-template-columns:minmax(160px,1fr) 120px 110px 38px;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--stock-line)}
.stock-layout-add button,.stock-layout-actions .primary{background:var(--stock-green);border-color:var(--stock-green);color:#fff}
.stock-layout-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}
.stock-layout-actions button{padding:0 12px}.stock-layout-actions .icon-action,.stock-layout-add .icon-action{width:36px;padding:0;font-size:15px}
.stock-form-grid .stock-span-2{grid-column:span 2}
.stock-image-copy{display:grid;gap:3px;margin-bottom:11px}
.stock-image-box+.stock-form-grid{margin-top:18px}
.stock-image-workspace{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px;align-items:stretch}
.stock-image-workspace .stock-image-inputs{grid-template-columns:1fr;align-content:start}
.stock-image-workspace .stock-image-inputs>small{color:var(--stock-green);font-size:10px;font-weight:700}
.stock-live-preview{display:grid;place-items:center;align-content:center;gap:5px;width:190px;aspect-ratio:1/1;overflow:hidden;border:1px dashed #aebfb6;border-radius:10px;background:#fff;color:#76847d;text-align:center}
.stock-live-preview img{width:100%;height:100%;object-fit:contain;object-position:center;padding:7px}
.stock-live-preview b{display:none}
.stock-live-preview span{font-size:12px;font-weight:800;color:var(--stock-ink)}
.stock-live-preview small{max-width:140px;font-size:9px}
@media(max-width:720px){.stock-layout-row{grid-template-columns:22px 58px minmax(120px,1fr) 36px}.stock-layout-row .stock-layout-remove{grid-row:2}.stock-layout-add{grid-template-columns:1fr 1fr}.stock-image-workspace{grid-template-columns:1fr}.stock-live-preview{width:min(220px,100%);justify-self:center}.stock-form-grid .stock-span-2{grid-column:1/-1}}

/* Search beside stock actions and live jewellery-type inventory categories. */
.stock-page-head{align-items:center}
.stock-head-actions{align-items:center;flex-wrap:nowrap}
.stock-head-search{position:relative;display:block;width:min(310px,26vw)}
.stock-head-search>span{position:absolute;left:11px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:var(--stock-mint);color:var(--stock-green);font-size:15px}
.stock-head-search input{width:100%;height:38px;border:1px solid var(--stock-line);border-radius:9px;background:#fff;padding:0 11px 0 41px;color:var(--stock-ink);font-size:11px;outline:none}
.stock-head-search input:hover{border-color:#95b2a4}
.stock-head-search input:focus{border-color:var(--stock-green);box-shadow:0 0 0 3px rgba(14,80,63,.09)}
.stock-category-panel{display:flex;align-items:center;gap:18px;margin-bottom:4px;padding:13px 14px;border:1px solid var(--stock-line);border-radius:12px;background:#fff}
.stock-category-panel>div{display:grid;gap:3px;min-width:112px;padding-right:16px;border-right:1px solid #e3ebe7}
.stock-category-panel>div .eyebrow{font-size:8px}
.stock-category-panel>div b{font-size:12px;color:var(--stock-ink)}
.stock-categories{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:2px 0}
.stock-category{display:flex;align-items:center;gap:8px;min-height:34px;border:1px solid var(--stock-line);border-radius:999px;background:#fbfdfc;padding:0 11px;color:#526159;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer}
.stock-category b{display:grid;place-items:center;min-width:19px;height:19px;border-radius:999px;background:#edf3f0;color:#607168;font-size:9px}
.stock-category:hover{border-color:#91b09f;color:var(--stock-green)}
.stock-category.active{border-color:var(--stock-green);background:var(--stock-green);color:#fff}
.stock-category.active b{background:rgba(255,255,255,.2);color:#fff}
.stock-layout-note{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:8px 10px;border-radius:8px;background:#e8f3ed}
.stock-layout-note p{margin:0;color:#42574d;font-size:10px;font-weight:600}
.stock-layout-note>button{width:27px;height:27px;border:0;border-radius:7px;background:#fff;color:var(--stock-green);cursor:pointer}
@media(max-width:1050px){.stock-page-head{align-items:flex-start}.stock-head-actions{flex-wrap:wrap}.stock-head-search{order:3;width:100%}}
@media(max-width:720px){.stock-category-panel{align-items:flex-start;flex-direction:column;gap:10px}.stock-category-panel>div{border-right:0;padding-right:0}.stock-head-actions{width:100%}.stock-head-search{width:100%}}

/* Separate, clear history for orders dispatched from stock. */
.stock-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.stock-stat{position:relative}
.stock-stat.is-action{cursor:pointer;border-color:#9bb9aa;background:linear-gradient(135deg,#fff,#edf7f2)}
.stock-stat.is-action:hover,.stock-stat.is-action:focus{border-color:var(--stock-green);box-shadow:0 7px 18px rgba(14,80,63,.1);outline:none}
.stock-stat.is-action>i{position:absolute;right:12px;bottom:10px;color:var(--stock-green);font-size:8px;font-style:normal;font-weight:800;text-transform:uppercase}
.stock-shipped-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.stock-shipped-section{margin:0 0 18px;border:1px solid var(--stock-line);border-radius:14px;background:#fff;padding:14px}
.stock-shipped-section>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;padding-bottom:11px;border-bottom:1px solid #e5ece8}
.stock-shipped-section>header>div:first-child{display:grid;gap:3px}.stock-shipped-section>header span{color:var(--stock-muted);font-size:9px;text-transform:uppercase;letter-spacing:.04em}.stock-shipped-section>header h2{margin:0;color:var(--stock-ink);font-size:15px}.stock-shipped-section>header>div:last-child{display:grid;grid-template-columns:auto auto auto auto;align-items:baseline;gap:4px 8px;border-radius:10px;background:var(--stock-bg);padding:8px 12px}.stock-shipped-section>header>div:last-child b{font-size:15px;color:var(--stock-green)}.stock-shipped-section.source-returned{border-left:4px solid #28765b}.stock-shipped-section.source-cancelled{border-left:4px solid #bd5b54}.stock-shipped-section.source-in-stock{border-left:4px solid #c58c2c}
.stock-shipped-card{display:grid;grid-template-columns:180px minmax(0,1fr);min-height:210px;overflow:hidden;border:1px solid var(--stock-line);border-radius:14px;background:#fff;box-shadow:0 3px 10px rgba(24,45,36,.04)}
.stock-shipped-image{display:grid;place-items:center;width:180px;height:180px;align-self:center;background:#fff;overflow:hidden;padding:8px}
.stock-shipped-image img{width:100%;height:100%;object-fit:contain;object-position:center}
.stock-shipped-image>span{font-size:30px;color:#809087}
.stock-shipped-body{display:flex;flex-direction:column;min-width:0;padding:15px}
.stock-shipped-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.stock-shipped-title small{font-size:9px;color:var(--stock-muted);text-transform:uppercase}
.stock-shipped-title h3{margin:4px 0 2px;font-size:19px;color:var(--stock-ink)}
.stock-shipped-title p{margin:0;color:var(--stock-muted);font-size:11px}
.stock-shipped-title>b{border-radius:999px;background:#e5f3eb;padding:6px 9px;color:var(--stock-green);font-size:9px;text-transform:uppercase}
.stock-shipped-title>b.ready{background:#fff1d8;color:#93600f}
.stock-shipped-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:13px}
.stock-shipped-facts>span{display:grid;gap:3px;border-radius:8px;background:var(--stock-bg);padding:8px}
.stock-shipped-facts small{font-size:8px;color:var(--stock-muted);text-transform:uppercase}
.stock-shipped-facts b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stock-shipped-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px;border-top:1px solid #edf1ee}
.stock-shipped-foot>span{color:var(--stock-green);font-size:9px;font-weight:700}
@media(max-width:1250px){.stock-stats{grid-template-columns:repeat(3,1fr)}.stock-shipped-grid{grid-template-columns:1fr}}
@media(max-width:720px){.stock-stats{grid-template-columns:1fr 1fr}.stock-shipped-card{grid-template-columns:130px minmax(0,1fr)}.stock-shipped-image{width:130px;height:130px}.stock-shipped-facts{grid-template-columns:1fr}}
@media(max-width:480px){.stock-stats{grid-template-columns:1fr}.stock-shipped-card{grid-template-columns:1fr}.stock-shipped-image{width:100%;height:auto;aspect-ratio:1/1}.stock-shipped-foot{align-items:flex-start;flex-direction:column}}

/* Gemstone workspace shared with the New Work Order visual language. */
.stock-gemstone-builder{margin-top:16px;border:1px solid #9fc6b4;border-radius:12px;background:linear-gradient(180deg,#f8fcfa,#f1f8f4);padding:13px}
.stock-gemstone-builder>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:11px;border-bottom:1px solid #d7e6df}
.stock-gemstone-builder>header>div:last-child{display:flex;gap:7px;flex-wrap:wrap}
.stock-gem-title{display:flex;align-items:center;gap:9px}.stock-gem-title i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#deefe7;color:var(--stock-green);font-style:normal;font-weight:900}.stock-gem-title>div{display:grid;gap:2px}.stock-gem-title b{font-size:13px;color:var(--stock-ink)}.stock-gem-title span{font-size:9px;color:var(--stock-muted)}
.stock-gemstone-builder button{min-height:34px;border:1px solid #8cb5a2;border-radius:8px;background:#fff;padding:0 11px;color:var(--stock-green);font-size:9px;font-weight:800;cursor:pointer}.stock-gemstone-builder button:hover{border-color:var(--stock-green);background:#eaf5ef}
.stock-gem-rows{display:grid;gap:8px;margin-top:10px}.stock-gem-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr)) 34px;align-items:end;gap:8px;padding:10px;border:1px solid #bad3c7;border-radius:10px;background:#fff}.stock-gem-row label{display:grid;gap:5px;min-width:0}.stock-gem-row label>span{font-size:8px;font-weight:900;color:#2b4439;text-transform:uppercase}.stock-gem-row input,.stock-gem-row select{width:100%;height:38px;border:1px solid #c8d9d1;border-radius:8px;background:#fff;padding:0 9px;color:var(--stock-ink);font-size:10px;outline:none}.stock-gem-row input:focus,.stock-gem-row select:focus{border-color:var(--stock-green);box-shadow:0 0 0 3px rgba(14,80,63,.08)}.stock-gem-row .stock-gem-remove{width:34px;padding:0;color:#8b514c;border-color:#e3c9c6}.stock-gem-empty{display:flex;align-items:center;justify-content:center;gap:8px;min-height:62px;border:1px dashed #bdd0c7;border-radius:9px;background:rgba(255,255,255,.7);color:#718077;font-size:10px}
.stock-gem-layout{margin-top:10px;padding:10px;border:1px solid #b9d2c6;border-radius:10px;background:#edf7f2}.stock-gem-layout[hidden]{display:none}.stock-gem-layout-help{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:9px;color:#52645b}.stock-gem-layout-help button{width:28px;min-height:28px;padding:0}.stock-gem-layout-list{display:grid;gap:6px;max-height:220px;overflow:auto}.stock-gem-layout-row{display:grid;grid-template-columns:24px minmax(130px,1fr) 115px 62px;gap:7px;align-items:center;padding:7px;border:1px solid #c4d8ce;border-radius:8px;background:#fff}.stock-gem-layout-row>span{cursor:grab;color:#61776c}.stock-gem-layout-row input,.stock-gem-layout-row select,.stock-gem-layout-add input,.stock-gem-layout-add select{height:34px;border:1px solid #c8d9d1;border-radius:7px;background:#fff;padding:0 8px;font-size:9px}.stock-gem-layout-add{display:grid;grid-template-columns:minmax(150px,1fr) 115px 105px;gap:7px;margin-top:9px;padding-top:9px;border-top:1px solid #cadaD2}.stock-gem-layout-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:9px}.stock-gem-layout-actions .primary,.stock-gem-layout-add button{background:var(--stock-green);border-color:var(--stock-green);color:#fff}
@media(max-width:720px){.stock-layout-row{grid-template-columns:22px 58px minmax(120px,1fr) 36px}.stock-layout-row .layout-required,.stock-layout-row select[data-layout-width],.stock-layout-row .stock-layout-remove{grid-row:2}.stock-gemstone-builder>header{align-items:flex-start;flex-direction:column}.stock-gem-row{grid-template-columns:1fr 1fr}.stock-gem-row .stock-gem-remove{grid-column:2;justify-self:end}.stock-gem-layout-row{grid-template-columns:22px 1fr}.stock-gem-layout-add{grid-template-columns:1fr}}

/* New Work Order-style media workspace for manual stock products. */
.stock-media-panel{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:14px;padding:14px;border:1px solid #c8d9d1;border-radius:10px;background:#f7fbf9;margin-bottom:16px}.stock-media-inputs{display:grid;align-content:start;gap:12px;min-width:0}.stock-media-inputs label{display:grid;gap:5px}.stock-media-inputs label>b,.stock-media-inputs>div>b{font-size:12px}.stock-media-inputs label>small,.stock-media-inputs>small{font-size:9px;color:#718078}.stock-media-inputs input[type=file]{width:100%;min-height:38px;padding:7px;border:1px solid #cbd8d2;border-radius:7px;background:#fff}.stock-media-add{display:grid;grid-template-columns:34px minmax(0,1fr) 42px;margin-top:6px;border:1px solid #0c7657;border-radius:8px;overflow:hidden;background:#fff}.stock-media-add>span{display:grid;place-items:center;background:#eef6f2}.stock-media-add input{border:0!important;border-radius:0!important;min-width:0}.stock-media-add button{border:0;background:#0b6249;color:#fff;font-size:19px;font-weight:800}.stock-media-list-title{display:flex;justify-content:space-between;gap:8px;font-size:9px;margin-bottom:6px}.stock-media-link{display:grid;grid-template-columns:26px minmax(0,1fr);gap:7px;align-items:center;padding:7px 8px;border:1px solid #d6e1dc;border-radius:7px;background:#fff;margin-top:5px}.stock-media-link>span{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#dff0e8;color:#07543e;font-weight:800}.stock-media-link a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#075b45;font-size:9px}.stock-media-empty{padding:11px;border:1px dashed #c9d8d1;border-radius:7px;text-align:center;color:#748078;font-size:10px}.stock-media-preview{min-width:0;padding:11px;border:1px solid #d3dfd9;border-radius:9px;background:#fff}.stock-media-preview>div:first-child{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}.stock-media-preview>div:first-child small{font-size:8px;color:#718078}.stock-media-main{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1.45/1;border:1px dashed #b9cec4;border-radius:8px;overflow:hidden;cursor:zoom-in;background:#fafcfb}.stock-media-main img{width:100%;height:100%;object-fit:contain;object-position:center}.stock-media-main b{position:absolute;left:8px;bottom:8px;padding:4px 7px;border-radius:999px;background:#0c5b45;color:#fff;font-size:8px}.stock-media-thumbs{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.stock-media-thumb{position:relative;width:62px;height:62px;padding:3px;border:1px solid #cedbd5;border-radius:7px;background:#fff;cursor:grab}.stock-media-thumb.main{border-color:#087052;box-shadow:0 0 0 1px #087052}.stock-media-thumb img{width:100%;height:100%;object-fit:contain;object-position:center}.stock-media-thumb button{position:absolute;right:-5px;top:-5px;width:20px;height:20px;border:1px solid #c7d8d0;border-radius:50%;background:#fff;color:#a42525;line-height:16px}.stock-media-thumb span{position:absolute;left:3px;bottom:3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border-radius:5px;background:#0b6249;color:#fff;font-size:8px}.stock-media-thumb.dragging{opacity:.45}.stock-media-thumb.drag-over{box-shadow:0 0 0 2px #d2a53a}.stock-media-preview-empty{display:grid!important;place-items:center;min-height:210px;border:1px dashed #c7d6cf;border-radius:8px;color:#77827c}.stock-form-error{white-space:pre-line}@media(max-width:760px){.stock-media-panel{grid-template-columns:1fr}.stock-media-main{aspect-ratio:1.2/1}}

.order-cost-view{padding:16px 14px 30px;background:#f4f7f5;min-height:calc(100vh - 78px)}
.order-cost-shell{width:100%;max-width:none;margin:0 auto;color:#15231d}
.order-cost-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.order-cost-head h2{font-size:24px;line-height:1.15;margin:4px 0 5px}
.order-cost-head p{margin:0;color:#63736c;font-size:13px}
.order-cost-eyebrow{display:block;color:#b7791f;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.order-cost-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.order-cost-controls label{display:grid;gap:6px;color:#5b6b64;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.order-cost-controls select,.order-cost-search input{height:40px;border:1px solid #cbd8d2;border-radius:9px;background:#fff;color:#17241e;padding:0 36px 0 12px;font:inherit;min-width:170px}
.order-cost-native-select{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;appearance:auto!important;-webkit-appearance:auto!important}
.order-cost-seller-control select{min-width:210px}
.order-cost-picker{position:relative;display:grid;gap:6px;min-width:170px;color:#5b6b64;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.order-cost-picker>span{display:block}
.order-cost-picker details{position:relative}
.order-cost-picker summary{height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #cbd8d2;border-radius:9px;background:#fff;color:#17241e;padding:0 12px;cursor:pointer;list-style:none;font-size:12px;font-weight:700;text-transform:none;letter-spacing:0;white-space:nowrap}
.order-cost-picker summary::-webkit-details-marker{display:none}.order-cost-picker summary::after{content:'⌄';color:#0b6a50;font-size:15px}
.order-cost-picker details[open] summary{border-color:#5f9c84;box-shadow:0 0 0 2px #dcefe7}
.order-cost-picker-menu{position:absolute;right:0;top:45px;z-index:30;width:max-content;min-width:100%;max-width:280px;max-height:260px;overflow:auto;padding:6px;border:1px solid #bfd2c9;border-radius:10px;background:#fff;box-shadow:0 14px 34px rgba(18,46,36,.18);text-transform:none;letter-spacing:0}
.order-cost-picker-menu button{display:block;width:100%;border:0;border-radius:7px;background:#fff;color:#26382f;padding:9px 11px;text-align:left;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}
.order-cost-picker-menu button:hover{background:#edf6f2}.order-cost-picker-menu button.active{background:#dfeee8;color:#075f48;font-weight:800}
.order-cost-seller-control{min-width:210px}
.order-cost-search{position:relative;display:flex;align-items:center;text-transform:none!important;letter-spacing:0!important}
.order-cost-search span{position:absolute;left:12px;top:12px;color:#0b6a50;z-index:1}
.order-cost-search input{padding-left:34px;min-width:245px}
.order-cost-search input{transition:border-color .14s ease,box-shadow .14s ease,background-color .14s ease}
.order-cost-search:hover input{border-color:#91b9aa;background:#fbfdfc}
.order-cost-search:focus-within input{border-color:#0b6a50;box-shadow:0 0 0 3px rgba(11,106,80,.10);outline:0}
.order-cost-freeze-control{font-size:20px;font-weight:800}
.order-cost-table .order-cost-frozen{position:sticky!important;left:var(--cost-freeze-left)!important;background:#fff;z-index:4;box-shadow:1px 0 0 #d7e2dd}
.order-cost-table thead .order-cost-frozen{z-index:8;background:#edf4f1}
.order-cost-table tfoot .order-cost-frozen{z-index:7;background:#124b3d;color:#fff}
.order-cost-freeze-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.order-cost-freeze-list label{display:flex;align-items:center;gap:10px;min-height:42px;padding:9px 11px;border:1px solid #d5e1dc;border-radius:9px;background:#fff;cursor:pointer}
.order-cost-freeze-list label:hover{border-color:#8db8a8;background:#f7fbf9}
.order-cost-freeze-list input{width:16px;height:16px;accent-color:#0b6a50}
.order-cost-manage{width:40px;height:40px;border:1px solid #a9c9bc;border-radius:9px;background:#eef7f3;color:#075f48;font-size:20px;font-weight:700;display:grid;place-items:center;cursor:pointer}
.order-cost-manage:hover{background:#deefe8;border-color:#6fa890}
.order-cost-tabs{display:flex;gap:6px;margin:0 0 14px}
.order-cost-tabs button{border:1px solid #d0dcd6;border-radius:999px;background:#fff;color:#394941;padding:8px 16px;font-weight:700;cursor:pointer}
.order-cost-tabs button.active{background:#0f5b47;border-color:#0f5b47;color:#fff}
.order-cost-filter-note{margin-left:auto;align-self:center;color:#66766f;font-size:11px;font-weight:700}
.order-cost-metal-filter{display:flex;align-items:center;gap:7px;overflow:auto;margin:0 0 14px;padding:10px 12px;background:#fff;border:1px solid #d7e1dc;border-radius:11px;scrollbar-width:thin}
.order-cost-metal-filter>span{font-size:9px;font-weight:800;text-transform:uppercase;color:#718078;margin-right:3px}
.order-cost-metal-filter button{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid #d0dcd6;border-radius:999px;background:#f8fbf9;color:#304139;padding:6px 11px;font-size:11px;font-weight:700;cursor:pointer}
.order-cost-metal-filter button b{display:grid;place-items:center;min-width:20px;height:20px;border-radius:10px;background:#e5efea;font-size:9px}
.order-cost-metal-filter button.active{background:#0f5b47;border-color:#0f5b47;color:#fff}.order-cost-metal-filter button.active b{background:rgba(255,255,255,.18)}
.order-cost-id-filter{display:grid;grid-template-columns:auto minmax(190px,240px);align-items:center;gap:3px 10px;margin-left:auto}
.order-cost-id-filter label{font-size:11px;font-weight:800;color:#51625a}
.order-cost-id-filter select{height:35px;border:1px solid #cbd8d2;border-radius:8px;background:#fff;padding:0 30px 0 10px;min-width:190px}
.order-cost-id-filter small{grid-column:2;color:#7a8881;font-size:9px}
.order-cost-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.order-cost-summary article{background:#fff;border:1px solid #d8e2dd;border-radius:12px;padding:15px 16px;min-height:82px}
.order-cost-summary small{display:block;color:#718078;font-size:10px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:7px}
.order-cost-summary b{font-size:23px;line-height:1}
.order-cost-panel{background:#fff;border:1px solid #d7e1dc;border-radius:13px;overflow:hidden;min-height:420px}
.order-cost-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #dce5e1;background:#fbfcfb}
.order-cost-panel-head h3{margin:0;font-size:15px}.order-cost-panel-head p{margin:3px 0 0;color:#728078;font-size:11px}
.order-cost-table-wrap{height:clamp(360px,calc(100vh - 360px),680px);overflow:auto;position:relative;scrollbar-width:auto;scrollbar-gutter:stable both-edges}
.order-cost-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:10px}
.order-cost-table th{position:sticky;top:0;z-index:3;background:#eef4f1;color:#586861;text-align:left;text-transform:uppercase;letter-spacing:.02em;font-size:8px;padding:7px 4px;border-bottom:1px solid #d2ddd7;white-space:normal;overflow-wrap:anywhere}
.order-cost-cost-heading{padding:5px 4px!important;min-width:0}
.order-cost-cost-heading span{display:block;margin-bottom:5px}
.order-cost-cost-heading button{height:23px;border:1px solid #9fc5b6;border-radius:6px;background:#fff;color:#075f48;padding:0 8px;font-size:9px;font-weight:800;text-transform:none;letter-spacing:0;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}
.order-cost-cost-heading button:hover{background:#dff0e9;border-color:#5f9c84}
.order-cost-table td{padding:6px 4px;border-bottom:1px solid #e0e7e3;vertical-align:middle;background:#fff;overflow:hidden;text-overflow:ellipsis}
.order-cost-table tbody tr:hover td{background:#f8fbf9}
.order-cost-table tfoot th{position:sticky;bottom:0;z-index:4;background:#163d32;color:#fff;text-align:right;padding:11px 9px;border-top:2px solid #0d2e26;white-space:nowrap;font-size:10px}
.order-cost-table tfoot th:first-child{text-align:left}
.order-cost-table .cost-serial{width:42px;text-align:center;color:#63746c;font-weight:800}
.order-cost-job{border:0;background:none;padding:0;color:#066048;font-weight:800;cursor:pointer;text-align:left}.order-cost-job:hover{text-decoration:underline}
.order-cost-sub{display:block;color:#7a8881;font-size:10px;margin-top:2px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-cost-money-input{width:100%;min-width:0;height:31px;box-sizing:border-box;border:1px solid #cad7d1;border-radius:6px;background:#fff;padding:0 5px;text-align:right;font-size:10px;font-weight:700;color:#15231d}
.order-cost-money-input.weight{width:100%}.order-cost-metal{display:inline-flex;max-width:100%;padding:4px 5px;border-radius:999px;background:#edf5f1;color:#155b48;font-weight:800;white-space:normal}
.order-cost-money-input:focus{outline:2px solid #aad6c5;outline-offset:1px;border-color:#0b6a50}
.order-cost-total{font-size:13px;color:#0d5b46;white-space:nowrap}
.order-cost-save-state{display:inline-flex;align-items:center;gap:5px;color:#6e7d75;font-size:10px;white-space:nowrap}.order-cost-save-state.saved{color:#0b6a50}.order-cost-save-state.saving{color:#9a6818}
.order-cost-empty{padding:55px 20px;text-align:center;color:#718078}.order-cost-empty b{display:block;color:#23332b;font-size:16px;margin-bottom:6px}
.order-cost-column-panel{position:fixed;inset:0;z-index:1200;background:rgba(17,28,23,.58);display:grid;place-items:center;padding:24px}
.order-cost-column-dialog{width:min(560px,100%);max-height:min(720px,90vh);display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(14,28,21,.28);overflow:hidden}
.order-cost-column-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #dce5e1}.order-cost-column-head h3{margin:3px 0 0;font-size:19px}
.order-cost-column-head button{width:38px;height:38px;border:1px solid #ead0cd;border-radius:9px;background:#fff8f7;color:#bd3d36;font-size:20px;cursor:pointer}
.order-cost-column-body{padding:16px 20px;overflow:auto}.order-cost-column-note{margin:0 0 14px;color:#66756e;font-size:12px}
.order-cost-column-list{display:grid;gap:8px}.order-cost-column-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;border:1px solid #d8e2dd;background:#f8fbf9;border-radius:9px;padding:9px 10px}.order-cost-column-row b{font-size:13px}.order-cost-column-row small{display:block;color:#7a8881;margin-top:2px}
.order-cost-column-row>input{height:36px;border:1px solid #cbd8d2;border-radius:7px;background:#fff;padding:0 10px;color:#17241e;font-weight:700}.order-cost-column-row>input:focus{outline:2px solid #b7ddce;border-color:#0b6a50}
.order-cost-column-row button{width:32px;height:32px;border:1px solid #ead0cd;border-radius:8px;background:#fff8f7;color:#bd3d36;cursor:pointer}
.order-cost-add-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #dce5e1}.order-cost-add-row input{height:40px;border:1px solid #cbd8d2;border-radius:8px;padding:0 11px}.order-cost-add-row button{height:40px;border:0;border-radius:8px;background:#0f5b47;color:#fff;padding:0 18px;font-weight:800;cursor:pointer}
.order-cost-column-foot{display:flex;justify-content:flex-end;padding:13px 20px;border-top:1px solid #dce5e1}.order-cost-column-foot button{height:39px;border:0;border-radius:8px;background:#0f5b47;color:#fff;padding:0 20px;font-weight:800;cursor:pointer}
.order-cost-image{width:46px;height:46px;display:block;object-fit:contain;border:1px solid #d2ddd7;border-radius:7px;background:#f8faf9}
.order-cost-pricing-wrap{overflow:auto;max-height:calc(100vh - 310px)}
.order-cost-pricing td label{background:#fff!important;transition:border-color .15s}.order-cost-pricing td label:hover{border-color:#79998b}.order-cost-pricing td label:focus-within{border-color:#0e604a}.order-cost-pricing td label.has-value{border-color:#279066}.order-cost-pricing input,.order-cost-pricing input:focus{background:#fff!important}
.order-cost-pricing table{width:100%;border-collapse:collapse;min-width:760px}.order-cost-pricing th,.order-cost-pricing td{padding:11px 13px;border-bottom:1px solid #dde6e1;text-align:left}.order-cost-pricing thead th{position:sticky;top:0;z-index:2;background:#edf4f1;color:#4e6058;font-size:10px;text-transform:uppercase}.order-cost-pricing tbody th{background:#fbfcfb;min-width:180px;color:#123c31}.order-cost-pricing td label{display:flex;align-items:center;min-width:140px;border:1px solid #cad8d1;border-radius:8px;background:#fff;overflow:hidden}.order-cost-pricing td span{padding-left:10px;color:#0e604a;font-weight:800}.order-cost-pricing input{width:100%;height:36px;border:0;outline:0;padding:0 10px;text-align:right;font-weight:800;color:#17241e}.order-cost-pricing input:focus{background:#f1faf6}.order-cost-pricing-note{padding:11px 15px;color:#617169;font-size:11px;background:#f9fbfa}.order-cost-pricing-empty{padding:55px 20px;text-align:center}.order-cost-pricing-empty p{color:#718078}
@media(max-width:1000px){.order-cost-view{padding:16px}.order-cost-head{align-items:flex-start;flex-direction:column}.order-cost-controls{width:100%}.order-cost-search{flex:1}.order-cost-search input{width:100%;min-width:170px}.order-cost-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.order-cost-summary{grid-template-columns:1fr 1fr}.order-cost-controls label{flex:1}.order-cost-controls select{width:100%;min-width:0}.order-cost-picker{flex:1;min-width:140px}.order-cost-search{flex-basis:100%}.order-cost-tabs{overflow:auto}.order-cost-id-filter{margin-left:0}.order-cost-table-wrap{height:calc(100vh - 330px)}}
#orderCostView input[type=number]{appearance:textfield;-moz-appearance:textfield}#orderCostView input[type=number]::-webkit-inner-spin-button,#orderCostView input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.order-cost-sticky-scroll{position:sticky;bottom:0;z-index:12;width:100%;height:16px;overflow-x:auto;overflow-y:hidden;background:#f5f8f6;border-top:1px solid #ccd9d3;scrollbar-color:#71847b #e5ece8}.order-cost-sticky-scroll>div{height:1px}.order-cost-table-wrap{scrollbar-width:none}.order-cost-table-wrap::-webkit-scrollbar:horizontal{height:0}
.order-cost-picker-menu .deleted-seller-option{color:#9c3d36!important;background:#fff6f5!important}.order-cost-picker-menu .deleted-seller-option:after{content:'History';margin-left:auto;border-radius:999px;background:#f5dfdc;padding:2px 6px;color:#943b34;font-size:7px;font-weight:800;text-transform:uppercase}

.balance-sheet-view{padding:18px;background:#f3f6f4}.bs-shell{display:grid;gap:14px;color:#17201c}.bs-panel,.bs-summary,.bs-ledger{border:1px solid #d5dfda;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(18,45,35,.03)}
.bs-panel{padding:15px 16px}.bs-topbar{display:flex;align-items:end;justify-content:space-between;gap:14px}.bs-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.bs-field{display:grid;gap:5px;min-width:170px}.bs-field>span,.bs-kicker,.bs-table th,.bs-quick-label{font-size:10px;font-weight:800;letter-spacing:.065em;text-transform:uppercase;color:#54685f}.bs-field select,.bs-field input,.bs-quick input,.bs-quick select{width:100%;height:40px;border:1px solid #cbd8d2;border-radius:8px;background:#fff;padding:0 11px;color:#17201c;font:inherit}.bs-field select:focus,.bs-field input:focus,.bs-quick input:focus,.bs-quick select:focus{outline:2px solid #c3dfd3;border-color:#12664f}.bs-search{min-width:240px}
.bs-print{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;height:40px;padding:0 16px;border:1px solid #0d5945;border-radius:8px;background:#0d5945;color:#fff;font:700 12px/1 inherit;cursor:pointer}.bs-print:hover{background:#084b3a}.bs2-print-root{display:none}
.bs-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden}.bs-stat{position:relative;padding:16px 18px;border-right:1px solid #e1e8e4}.bs-stat:last-child{border-right:0}.bs-stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#8ca198}.bs-stat.income:before{background:#16805f}.bs-stat.expense:before{background:#bd6b52}.bs-stat.net:before{background:#c39a3b}.bs-stat b{display:block;margin-top:5px;font-size:25px;line-height:1.1}.bs-stat small{display:block;margin-top:5px;color:#728078}.bs-stat.net.positive b{color:#08664d}.bs-stat.net.negative b{color:#a5453f}
.bs-quick-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.bs-quick-title h2{margin:0;font-size:16px}.bs-quick-title span{font-size:12px;color:#6d7c75}.bs-quick{display:grid;grid-template-columns:130px 135px minmax(150px,1fr) minmax(150px,1fr) 130px 140px 44px;gap:9px;align-items:end}.bs-quick-cell{display:grid;gap:5px}.bs-save{height:40px;border:0;border-radius:8px;background:#0d5945;color:#fff;font-weight:800;cursor:pointer}.bs-save:hover{background:#084b3a}
.bs-ledger{overflow:hidden}.bs-ledger-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 17px;border-bottom:1px solid #dce4e0}.bs-ledger-head h2{font-size:17px;margin:0}.bs-ledger-head p{margin:3px 0 0;color:#6d7a74;font-size:12px}.bs-ledger-count{padding:6px 10px;border-radius:999px;background:#e9f2ee;color:#125743;font-size:12px;font-weight:800}.bs-table-wrap{overflow:auto;max-height:57vh}.bs-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1080px}.bs-table th{position:sticky;top:0;z-index:2;background:#eaf2ee;text-align:left;padding:10px 12px;border-bottom:1px solid #d5dfda}.bs-table td{padding:10px 12px;border-bottom:1px solid #e3e9e6;vertical-align:middle}.bs-table tbody tr:hover{background:#f7faf8}.bs-date{white-space:nowrap}.bs-type{display:inline-flex;min-width:70px;justify-content:center;padding:5px 9px;border-radius:999px;background:#e1f2ea;color:#075d47;font-size:11px;font-weight:800}.bs-type.expense{background:#f6ebe7;color:#91413c}.bs-money{text-align:right;font-weight:800;white-space:nowrap}.bs-income{color:#08664d}.bs-expense{color:#a04840}.bs-note{max-width:260px;color:#65746d}.bs-row-actions{display:flex;gap:5px;justify-content:flex-end}.bs-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid #d3ddd8;border-radius:7px;background:#fff;color:#185a47;cursor:pointer}.bs-icon:hover{background:#edf5f1}.bs-icon.danger{color:#ad3d36;border-color:#ebcfcb}.bs-icon.danger:hover{background:#fbefed}.bs-total-row td{position:sticky;bottom:0;z-index:1;background:#103f34;color:#fff;border:0;font-weight:800}.bs-empty{padding:44px;text-align:center;color:#66766f}.bs-empty b{display:block;font-size:17px;color:#26332e;margin-bottom:5px}
.bs-date-sort{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:800;text-transform:uppercase;letter-spacing:inherit;cursor:pointer}.bs-date-sort span{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#d8e8e1;color:#0c654e;font-size:11px}.bs-date-sort:hover{color:#075f48}
@media(max-width:1050px){.bs-quick{grid-template-columns:repeat(3,1fr)}.bs-save{width:44px}.bs-summary{grid-template-columns:1fr 1fr}.bs-stat:nth-child(2){border-right:0}}@media(max-width:700px){.balance-sheet-view{padding:10px}.bs-topbar{align-items:stretch;flex-direction:column}.bs-field,.bs-search{min-width:100%}.bs-quick{grid-template-columns:1fr 1fr}.bs-quick-cell.wide{grid-column:1/-1}.bs-summary{grid-template-columns:1fr}.bs-stat{border-right:0;border-bottom:1px solid #e1e8e4}.bs-stat:last-child{border-bottom:0}}

/* Compact accounting entry layout: one combined detail field and separate amounts. */
.bs-quick{grid-template-columns:repeat(16,minmax(0,1fr))}
.bs-quick-cell.date,.bs-quick-cell.seller,.bs-quick-cell.payment,.bs-quick-cell.amount{grid-column:span 2}
.bs-quick-cell.details{grid-column:span 5}
.bs-save{grid-column:span 1}
.bs-form-error{grid-column:1/-1;min-height:15px;color:#91413c;font-size:12px}
.bs-details{min-width:320px;max-width:520px;color:#27362f;white-space:normal}
@media(max-width:1050px){.bs-quick{grid-template-columns:repeat(6,minmax(0,1fr))}.bs-quick-cell.date,.bs-quick-cell.seller,.bs-quick-cell.payment,.bs-quick-cell.amount{grid-column:span 2}.bs-quick-cell.details{grid-column:span 4}.bs-save{grid-column:span 1}}
@media(max-width:700px){.bs-quick{grid-template-columns:1fr 1fr}.bs-quick-cell.date,.bs-quick-cell.seller,.bs-quick-cell.payment,.bs-quick-cell.amount{grid-column:span 1}.bs-quick-cell.details{grid-column:1/-1}.bs-save{grid-column:span 1}.bs-details{min-width:240px}}

/* Separate accounting ledgers with independently frozen table edges. */
.bs-ledger-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
.bs-ledger-grid .bs-ledger{min-width:0;border:1px solid #d5dfda;border-radius:14px;background:#fff}
.bs-ledger-income{border-top:3px solid #16805f!important}
.bs-ledger-expense{border-top:3px solid #a96a48!important}
.bs-ledger-grid .bs-table-wrap{position:relative;max-height:54vh;overflow:auto;overscroll-behavior:contain}
.bs-ledger-grid .bs-table{min-width:760px}
.bs-ledger-grid .bs-table thead th{position:sticky;top:0;z-index:4;background:#eaf2ee;box-shadow:0 1px 0 #d5dfda}
.bs-ledger-grid .bs-table tfoot td{position:sticky;bottom:0;z-index:4;background:#103f34;color:#fff;box-shadow:0 -1px 0 #0b3128}
.bs-ledger-sheet{margin:14px 0 20px;border:1px solid #cad8d2;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(15,78,63,.06)}
.bs-ledger-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid #d7e2dd;background:linear-gradient(180deg,#fff,#f8fbf9)}
.bs-ledger-sheet-head h2{margin:0;color:#17241f;font-size:18px;line-height:1.25}
.bs-ledger-sheet-head p{margin:4px 0 0;color:#64746d;font-size:12px}
.bs-ledger-sheet-head>span{flex:none;padding:7px 11px;border-radius:999px;background:#e8f2ed;color:#0f624f;font-size:12px;font-weight:800}
.bs-ledger-sheet .bs-ledger-grid{gap:0;background:#fff}
.bs-ledger-sheet .bs-ledger{border:0!important;border-radius:0;background:#fff;box-shadow:none}
.bs-ledger-sheet .bs-ledger+.bs-ledger{border-left:1px solid #d7e2dd!important}
.bs-ledger-sheet .bs-ledger-income,.bs-ledger-sheet .bs-ledger-expense{border-top:0!important}
.bs-ledger-sheet-totals{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #0b3d31;background:#103f34;color:#fff}
.bs-ledger-sheet-totals>div{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:13px 18px;border-right:1px solid rgba(255,255,255,.16)}
.bs-ledger-sheet-totals>div:last-child{border-right:0}
.bs-ledger-sheet-totals span{text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:800}
.bs-ledger-sheet-totals strong{font-size:17px;letter-spacing:0;white-space:nowrap}
.bs-closing-card{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(440px,1.2fr);overflow:hidden;margin:-4px 0 20px;border:1px solid #cad8d2;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,78,63,.05)}
.bs-closing-current{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 18px;padding:15px 18px;background:#0b493a;color:#fff}
.bs-closing-current>span{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.bs-closing-current>strong{grid-row:1/3;grid-column:2;font-size:22px;white-space:nowrap}
.bs-closing-current>small{color:#cbe2da;font-size:11px}
.bs-closing-card.negative .bs-closing-current{background:#713d38}
.bs-closing-previous{display:grid;align-content:center;gap:8px;padding:13px 18px}
.bs-closing-previous>span{color:#5b6e65;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.bs-closing-previous>div{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.bs-closing-previous small{display:flex;align-items:center;gap:6px;color:#687871;font-size:11px}
.bs-closing-previous b{color:#17241f;font-size:12px}
@media(max-width:1200px){.bs-ledger-grid{grid-template-columns:1fr}.bs-ledger-sheet .bs-ledger+.bs-ledger{border-left:0!important;border-top:1px solid #d7e2dd!important}}
@media(max-width:760px){.bs-ledger-sheet-totals{grid-template-columns:1fr}.bs-ledger-sheet-totals>div{border-right:0;border-bottom:1px solid rgba(255,255,255,.14)}.bs-ledger-sheet-totals>div:last-child{border-bottom:0}}
@media(max-width:760px){.bs-closing-card{grid-template-columns:1fr;margin-top:-4px}.bs-closing-previous>div{display:grid;grid-template-columns:1fr 1fr;gap:7px 16px}}
/* Disabled old Balance Sheet print rules; clean rebuild will add new rules later. */
@media print and (max-width:0px){
  @page{size:A4 portrait;margin:6mm}
  body.balance-sheet-printing{margin:0!important;background:#fff!important;color:#111!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.balance-sheet-printing>*{display:none!important;visibility:hidden!important}
  body.balance-sheet-printing>.balance-sheet-print-root,body.balance-sheet-printing>.balance-sheet-print-root *{visibility:visible!important}
  body.balance-sheet-printing>.balance-sheet-print-root{box-sizing:border-box!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:4mm!important;width:198mm!important;height:285mm!important;margin:0 auto!important;padding:0!important;overflow:hidden!important;background:#fff!important;color:#111!important;font-family:Arial,sans-serif!important;page-break-after:avoid!important;break-after:avoid-page!important}
  .balance-sheet-print-root .bs-print-document-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8mm!important;min-height:10mm!important;border:0!important}
  .balance-sheet-print-root .bs-print-document-head h1{margin:0!important;font-size:12pt!important;line-height:1.15!important;font-weight:700!important;text-transform:uppercase!important}
  .balance-sheet-print-root .bs-print-document-head span{flex:0 0 auto!important;color:#111!important;font-size:8pt!important;font-weight:400!important;letter-spacing:0!important;text-transform:none!important}
  .balance-sheet-print-root .bs-print-summary{display:grid!important;grid-template-columns:repeat(4,1fr)!important;border:1px solid #555!important}
  .balance-sheet-print-root .bs-print-summary>div{display:grid!important;grid-template-rows:8mm 10mm!important;text-align:center!important;border-right:1px solid #777!important}
  .balance-sheet-print-root .bs-print-summary>div:last-child{border-right:0!important}
  .balance-sheet-print-root .bs-print-summary span,.balance-sheet-print-root .bs-print-summary strong{display:flex!important;align-items:center!important;justify-content:center!important;padding:1mm!important}
  .balance-sheet-print-root .bs-print-summary span{font-size:8pt!important;font-weight:600!important;text-transform:uppercase!important;border-bottom:1px solid #777!important}
  .balance-sheet-print-root .bs-print-summary strong{font-size:12pt!important;font-weight:600!important}
  .balance-sheet-print-root .bs-print-ledgers{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3mm!important;min-height:0!important;overflow:hidden!important}
  .balance-sheet-print-root .bs-print-ledger{display:grid!important;grid-template-rows:9mm minmax(0,1fr)!important;min-width:0!important;min-height:0!important;break-inside:avoid!important}
  .balance-sheet-print-root .bs-print-ledger h2{display:flex!important;align-items:end!important;margin:0!important;padding:0 1mm 2mm!important;font-size:11pt!important;font-weight:600!important;text-transform:uppercase!important}
  .balance-sheet-print-root table{width:100%!important;height:100%!important;border-collapse:collapse!important;table-layout:fixed!important;font-size:7pt!important}
  .balance-sheet-print-root th,.balance-sheet-print-root td{box-sizing:border-box!important;padding:.7mm 1.2mm!important;border:1px solid #999!important;line-height:1.15!important;vertical-align:middle!important;overflow-wrap:anywhere!important}
  .balance-sheet-print-root thead th{height:8mm!important;font-size:7pt!important;font-weight:600!important;text-align:center!important;text-transform:uppercase!important}
  .balance-sheet-print-root tbody tr{height:calc((100% - 17mm)/var(--bs-print-row-count))!important}
  .balance-sheet-print-root tbody td:nth-child(1){width:19mm!important}.balance-sheet-print-root tbody td:nth-child(3){width:19mm!important}.balance-sheet-print-root tbody td:nth-child(4){width:28mm!important;text-align:right!important;font-weight:600!important}
  .balance-sheet-print-root thead th:nth-child(1){width:18mm!important}.balance-sheet-print-root thead th:nth-child(3){width:19mm!important}.balance-sheet-print-root thead th:nth-child(4){width:28mm!important}
  .balance-sheet-print-root tfoot{break-inside:avoid!important}.balance-sheet-print-root tfoot tr{height:9mm!important}
  .balance-sheet-print-root tfoot th{font-size:8pt!important;font-weight:600!important;text-transform:uppercase!important}.balance-sheet-print-root tfoot th:first-child{text-align:left!important}.balance-sheet-print-root tfoot th:last-child{text-align:right!important;font-size:9pt!important}
  .balance-sheet-print-root .bs-print-empty-row td{color:#444!important;font-weight:400!important}
  .balance-sheet-print-root .bs-print-closing{display:grid!important;grid-template-columns:1fr 1fr!important;min-height:20mm!important;border:1px solid #666!important;break-inside:avoid!important}
  .balance-sheet-print-root .bs-print-closing>div{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2mm!important;padding:2mm!important;text-align:center!important;border-right:1px solid #777!important}
  .balance-sheet-print-root .bs-print-closing>div:last-child{border-right:0!important}
  .balance-sheet-print-root .bs-print-closing span{font-size:8pt!important;font-weight:500!important;text-transform:uppercase!important}
  .balance-sheet-print-root .bs-print-closing strong{font-size:12pt!important;font-weight:600!important}
}

/* Multi-page review: keep every A4 sheet full-size and readable. */
.bs2-review .bs2-print-root{display:flex!important;flex-direction:column!important;gap:18px!important;width:auto!important;height:auto!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}
.bs2-review .bs2-print-page{box-sizing:border-box;display:grid;grid-template-rows:10mm 22mm minmax(0,1fr) 22mm;gap:4mm;width:198mm;height:285mm;padding:0;overflow:hidden;background:#fff;color:#111;font-family:Arial,sans-serif;box-shadow:0 8px 28px #17251e30}
.bs2-review .bs2-print-root.landscape .bs2-print-page{width:285mm;height:198mm}

/* Keep the on-screen review identical to the final print table. */
.bs2-review .bs2-ledger table{height:auto!important;align-self:start!important;font-size:6.8pt!important}
.bs2-review .bs2-ledger th,.bs2-review .bs2-ledger td{padding:.55mm 1mm!important}
.bs2-review .bs2-ledger tbody tr{height:8mm!important}
.bs2-review .bs2-ledger td:nth-child(2){white-space:normal!important;word-break:break-word!important;overflow:hidden!important}
.bs2-review .bs2-ledger table{height:auto!important;align-self:start}
.bs2-review .bs2-ledger tbody tr{height:8mm!important}
.bs2-review .bs2-ledger td:nth-child(2){white-space:normal!important;word-break:break-word;overflow:hidden!important}

/* Compact company-ledger manager. */
.bs-ledger-picker{position:relative;display:flex;align-items:end;gap:6px}.bs-ledger-manage{display:grid;place-items:center;width:40px;height:40px;flex:none;padding:0;border:1px solid #b9d2c7;border-radius:8px;background:#f7fbf9;color:#0d5945;font-size:20px;line-height:1;cursor:pointer}.bs-ledger-menu{position:absolute;z-index:30;top:calc(100% + 7px);right:0;width:290px;padding:9px;border:1px solid #c8d7d0;border-radius:10px;background:#fff;box-shadow:0 12px 32px rgba(17,48,37,.16)}.bs-ledger-add{display:grid;grid-template-columns:1fr 36px;gap:6px;padding-bottom:8px;border-bottom:1px solid #e0e8e4}.bs-ledger-add input{min-width:0;height:36px;padding:0 10px;border:1px solid #cbd8d2;border-radius:7px;font:inherit}.bs-ledger-add button,.bs-ledger-list button{display:grid;place-items:center;border:1px solid #cbd8d2;border-radius:7px;background:#fff;color:#0d5945;cursor:pointer}.bs-ledger-list{display:grid;gap:5px;max-height:210px;margin-top:8px;overflow:auto}.bs-ledger-list>div{display:grid;grid-template-columns:minmax(0,1fr) 30px 30px;align-items:center;gap:5px;padding:5px 6px;border-radius:7px;background:#f2f7f4}.bs-ledger-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}.bs-ledger-list button{width:30px;height:30px;padding:0}.bs-ledger-list small{padding:9px;text-align:center;color:#74827b}@media(max-width:700px){.bs-ledger-picker{width:100%}.bs-ledger-picker .bs-field{min-width:0;flex:1}.bs-ledger-menu{left:0;right:auto;width:min(290px,calc(100vw - 32px))}}
.bs2-review .bs2-print-page.bs2-entries-page{grid-template-rows:10mm minmax(0,1fr)}
.bs2-review .bs2-print-page.bs2-final-page{grid-template-rows:10mm 22mm minmax(0,1fr) 22mm}

.bs2-review{position:fixed;inset:0;z-index:10000;display:flex;align-items:flex-start;justify-content:center;padding:18px;background:#0c1712b8;overflow:auto}.bs2-review-dialog{width:min(1180px,100%);min-height:calc(100vh - 36px);overflow:hidden;border-radius:14px;background:#eef1ef;box-shadow:0 28px 90px #0006}.bs2-review-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:end;gap:10px;padding:13px 16px;border-bottom:1px solid #d5ddd8;background:#fff}.bs2-review-toolbar>div{margin-right:auto}.bs2-review-toolbar span{color:#9a681d;font-size:8px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.bs2-review-toolbar h2{margin:2px 0 0;font-size:18px}.bs2-review-toolbar label{display:grid;gap:4px;color:#53645c;font-size:9px;font-weight:800;text-transform:uppercase}.bs2-review-toolbar select{min-width:145px;height:38px;padding:0 10px;border:1px solid #cbd7d1;border-radius:8px;background:#fff;font:inherit;text-transform:none}.bs2-review-toolbar button{height:38px;padding:0 17px;border-radius:8px;cursor:pointer}.bs2-review-stage{display:flex;justify-content:center;min-height:calc(100vh - 110px);padding:22px;overflow:auto}.bs2-review .bs2-print-root{box-sizing:border-box;display:grid;grid-template-rows:10mm 22mm minmax(0,1fr) 22mm;gap:4mm;width:198mm;height:285mm;padding:0;background:#fff;color:#111;font-family:Arial,sans-serif;box-shadow:0 8px 28px #17251e30;overflow:hidden}.bs2-review .bs2-print-root.landscape{width:285mm;height:198mm}.bs2-review .bs2-head{display:flex;align-items:center;justify-content:space-between;gap:8mm;padding:0 5mm}.bs2-review .bs2-head h1{margin:0;font-size:11.5pt}.bs2-review .bs2-head span{font-size:8pt}.bs2-review .bs2-summary{display:grid;grid-template-columns:repeat(4,1fr);margin:0 5mm;border:1px solid #555}.bs2-review .bs2-summary>div{display:grid;grid-template-rows:9mm 12mm;text-align:center;border-right:1px solid #777}.bs2-review .bs2-summary>div:last-child{border-right:0}.bs2-review .bs2-summary span,.bs2-review .bs2-summary strong{display:flex;align-items:center;justify-content:center;padding:1mm}.bs2-review .bs2-summary span{font-size:7.5pt;font-weight:600;text-transform:uppercase;border-bottom:1px solid #777}.bs2-review .bs2-summary strong{font-size:11.5pt}.bs2-review .bs2-ledgers{display:grid;grid-template-columns:1fr 1fr;gap:3mm;min-height:0;margin:0 5mm;overflow:hidden}.bs2-review .bs2-ledger{display:grid;grid-template-rows:10mm minmax(0,1fr);min-width:0;min-height:0;overflow:hidden}.bs2-review .bs2-ledger h2{display:flex;align-items:end;margin:0;padding:0 1mm 2mm;font-size:10.5pt;text-transform:uppercase}.bs2-review .bs2-ledger table{width:100%;height:100%;border-collapse:collapse;table-layout:fixed;font-size:6.8pt}.bs2-review .bs2-ledger th,.bs2-review .bs2-ledger td{padding:.55mm 1mm;border:1px solid #999;line-height:1.1;vertical-align:middle;overflow-wrap:anywhere}.bs2-review .bs2-ledger thead tr{height:8mm}.bs2-review .bs2-ledger thead th{text-align:center;text-transform:uppercase}.bs2-review .bs2-ledger thead th:nth-child(1){width:18mm}.bs2-review .bs2-ledger thead th:nth-child(3){width:15mm}.bs2-review .bs2-ledger thead th:nth-child(4){width:23mm}.bs2-review .bs2-ledger tbody tr{height:calc((100% - 17mm)/var(--bs2-rows))}.bs2-review .bs2-ledger tbody td:nth-child(4),.bs2-review .bs2-ledger tfoot th:last-child{text-align:right}.bs2-review .bs2-ledger tfoot tr{height:9mm}.bs2-review .bs2-ledger tfoot th{text-transform:uppercase}.bs2-review .bs2-footer{display:grid;grid-template-columns:1fr 1fr;margin:0 5mm;border:1px solid #666}.bs2-review .bs2-footer>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2mm;text-align:center;border-right:1px solid #777}.bs2-review .bs2-footer>div:last-child{border-right:0}.bs2-review .bs2-footer span{font-size:8pt;text-transform:uppercase}.bs2-review .bs2-footer strong{font-size:12pt}@media(max-width:760px){.bs2-review{padding:0}.bs2-review-dialog{min-height:100vh;border-radius:0}.bs2-review-toolbar{align-items:stretch;flex-wrap:wrap}.bs2-review-toolbar>div{width:100%}.bs2-review-toolbar label{flex:1}.bs2-review-stage{justify-content:flex-start;padding:10px}}

@media print{
  @page{size:A4 portrait;margin:6mm}
  body.bs2-printing{margin:0!important;background:#fff!important;color:#111!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body.bs2-printing>*{display:none!important}
  body.bs2-printing>.bs2-review{display:block!important;position:static!important;padding:0!important;background:#fff!important;overflow:visible!important}
  body.bs2-printing>.bs2-review .bs2-review-dialog,body.bs2-printing>.bs2-review .bs2-review-stage{display:block!important;width:auto!important;min-height:0!important;padding:0!important;margin:0!important;overflow:visible!important;background:#fff!important;box-shadow:none!important}
  body.bs2-printing>.bs2-review .bs2-review-toolbar{display:none!important}
  body.bs2-printing .bs2-print-root{box-sizing:border-box!important;display:grid!important;grid-template-rows:10mm 22mm minmax(0,1fr) 22mm!important;gap:4mm!important;position:absolute!important;left:0!important;top:0!important;width:198mm!important;height:285mm!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important;color:#111!important;font-family:Arial,sans-serif!important;box-shadow:none!important;page-break-inside:avoid!important;break-inside:avoid-page!important;page-break-after:avoid!important}
  body.bs2-printing .bs2-print-root.landscape{width:285mm!important;height:198mm!important}
  .bs2-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8mm!important;padding:0 5mm!important}.bs2-head h1{margin:0!important;font-size:11.5pt!important;line-height:1.1!important;font-weight:700!important}.bs2-head span{flex:none!important;font-size:8pt!important}
  .bs2-summary{display:grid!important;grid-template-columns:repeat(4,1fr)!important;margin:0 5mm!important;border:1px solid #555!important}.bs2-summary>div{display:grid!important;grid-template-rows:9mm 12mm!important;text-align:center!important;border-right:1px solid #777!important}.bs2-summary>div:last-child{border-right:0!important}.bs2-summary span,.bs2-summary strong{display:flex!important;align-items:center!important;justify-content:center!important;padding:1mm!important}.bs2-summary span{font-size:7.5pt!important;font-weight:600!important;text-transform:uppercase!important;border-bottom:1px solid #777!important}.bs2-summary strong{font-size:11.5pt!important;font-weight:600!important}
  .bs2-ledgers{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3mm!important;min-height:0!important;margin:0 5mm!important;overflow:hidden!important}.bs2-ledger{display:grid!important;grid-template-rows:10mm minmax(0,1fr)!important;min-width:0!important;min-height:0!important;overflow:hidden!important}.bs2-ledger h2{display:flex!important;align-items:end!important;margin:0!important;padding:0 1mm 2mm!important;font-size:10.5pt!important;font-weight:600!important;text-transform:uppercase!important}
  .bs2-ledger table{width:100%!important;height:100%!important;border-collapse:collapse!important;table-layout:fixed!important;font-size:6.8pt!important}.bs2-ledger th,.bs2-ledger td{box-sizing:border-box!important;padding:.55mm 1mm!important;border:1px solid #999!important;line-height:1.1!important;vertical-align:middle!important;overflow-wrap:anywhere!important}.bs2-ledger thead tr{height:8mm!important}.bs2-ledger thead th{font-size:6.8pt!important;font-weight:600!important;text-align:center!important;text-transform:uppercase!important}.bs2-ledger thead th:nth-child(1){width:18mm!important}.bs2-ledger thead th:nth-child(3){width:15mm!important}.bs2-ledger thead th:nth-child(4){width:23mm!important}.bs2-ledger tbody tr{height:calc((100% - 17mm)/var(--bs2-rows))!important}.bs2-ledger tbody td:nth-child(4){text-align:right!important;font-weight:600!important}.bs2-ledger tfoot tr{height:9mm!important}.bs2-ledger tfoot th{font-size:7.5pt!important;font-weight:600!important;text-transform:uppercase!important}.bs2-ledger tfoot th:first-child{text-align:left!important}.bs2-ledger tfoot th:last-child{text-align:right!important;font-size:8.5pt!important}.bs2-empty td{color:#444!important}
  .bs2-ledger table{height:auto!important;align-self:start!important}.bs2-ledger tbody tr{height:8mm!important}
  .bs2-ledger td:nth-child(2){white-space:normal!important;word-break:break-word!important;overflow:hidden!important}
  .bs2-footer{display:grid!important;grid-template-columns:1fr 1fr!important;margin:0 5mm!important;border:1px solid #666!important}.bs2-footer>div{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2mm!important;padding:2mm!important;text-align:center!important;border-right:1px solid #777!important}.bs2-footer>div:last-child{border-right:0!important}.bs2-footer span{font-size:8pt!important;font-weight:500!important;text-transform:uppercase!important}.bs2-footer strong{font-size:12pt!important;font-weight:600!important}
}

/* Final screen override must follow the legacy single-page preview rules. */
.bs2-review .bs2-print-root{display:flex!important;flex-direction:column!important;gap:18px!important;width:auto!important;height:auto!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}
.bs2-review .bs2-print-page{box-sizing:border-box;display:grid;grid-template-rows:10mm 22mm minmax(0,1fr) 22mm;gap:4mm;width:198mm;height:285mm;padding:0;overflow:hidden;background:#fff;color:#111;font-family:Arial,sans-serif;box-shadow:0 8px 28px #17251e30}
.bs2-review .bs2-print-root.landscape .bs2-print-page{width:285mm;height:198mm}
.bs2-review .bs2-ledger table{height:auto!important;align-self:start!important;font-size:6.8pt!important}
.bs2-review .bs2-ledger th,.bs2-review .bs2-ledger td{padding:.55mm 1mm!important}
.bs2-review .bs2-ledger tbody tr{height:8mm!important}
.bs2-review .bs2-ledger td:nth-child(2){white-space:normal!important;word-break:break-word!important;overflow:hidden!important}

.wo-edit-section>h2,.product-section-head{position:relative;padding-right:44px}
.section-universal-columns{position:absolute;right:0;top:50%;display:grid;width:34px;height:34px;padding:0;place-items:center;transform:translateY(-50%);border:1px solid #b9d1c6;border-radius:8px;background:#f6faf8;color:#075f49;font:700 16px/1 inherit;cursor:pointer}
.section-universal-columns:hover{border-color:#075f49;background:#eaf5f0}
.section-universal-columns[hidden]{display:none!important}
.product-hero-info{position:relative;padding-right:70px!important}
.product-hero-info>.section-universal-columns{right:24px;top:24px;transform:none}
.product-edit-main-preview{width:min(100%,360px)!important;justify-self:center}
.product-primary-media .product-edit-image-preview img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.product-primary-media .product-edit-image-preview{aspect-ratio:1/1!important;overflow:hidden!important}

.filter-count-badge[hidden]{display:none!important}
#serverPersistenceGate{position:fixed;inset:0;z-index:2147483647;background:#17201ce8;display:grid;place-items:center;padding:20px;font:15px system-ui;color:#182c25}#serverPersistenceGate[hidden]{display:none!important}#serverPersistenceGate>section{background:#fff;padding:28px;border-radius:14px;max-width:550px;width:100%;box-sizing:border-box}#serverPersistenceGate h2{font-size:22px;margin:0 0 12px}#serverPersistenceGate p{line-height:1.6;white-space:pre-wrap}.server-gate-actions{display:flex;flex-wrap:wrap;gap:10px}.server-gate-actions button{padding:12px 16px;border:1px solid #ccd8d1;border-radius:7px;cursor:pointer}.server-gate-actions form{width:100%;display:grid;gap:12px}.server-gate-actions label{display:grid;gap:6px}.server-gate-actions input,.server-gate-actions select{padding:10px;border:1px solid #ccc;border-radius:6px}

.scln-dialog-backdrop{position:fixed;inset:0;z-index:12000;display:none;place-items:center;padding:18px;background:rgba(13,29,24,.58);backdrop-filter:blur(2px)}
.scln-dialog-backdrop.open{display:grid}
.scln-dialog{width:min(430px,94vw);overflow:hidden;border:1px solid #b9cec5;border-radius:14px;background:#fff;color:#12251f;box-shadow:0 22px 65px rgba(7,34,25,.25);animation:scln-dialog-in .14s ease-out}
@keyframes scln-dialog-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.scln-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 19px 10px}
.scln-dialog .scln-dialog-mark{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:#e8f3ee;color:#07533f;font-size:15px;font-weight:800}
.scln-dialog .scln-dialog-heading{flex:1;min-width:0}.scln-dialog .scln-dialog-eyebrow{display:block;margin-bottom:3px;color:#628076;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.scln-dialog h2{margin:0;font-size:17px;line-height:1.25}
.scln-dialog-close{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:#f1f6f3;color:#315d50;font-size:17px;cursor:pointer}.scln-dialog-close:hover{background:#e4efea}
.scln-dialog-body{padding:5px 19px 17px}.scln-dialog-message{margin:0;white-space:pre-line;color:#53675f;font-size:13px;line-height:1.55}
.scln-dialog-input{width:100%;height:40px;margin-top:14px;padding:0 12px;border:1px solid #a9c3b8;border-radius:8px;background:#fbfdfc;color:#10231d;font:inherit;outline:0}.scln-dialog-input:focus{border-color:#176b55;box-shadow:0 0 0 3px rgba(23,107,85,.09)}
.scln-dialog footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 19px;border-top:1px solid #dce7e2;background:#fbfdfc}.scln-dialog footer button{min-width:84px;min-height:36px;padding:0 14px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer}.scln-dialog-cancel{border:1px solid #c8d6d0;background:#fff;color:#294b41}.scln-dialog-confirm{border:1px solid #0d5b46;background:#0d5b46;color:#fff}.scln-dialog footer button:hover{transform:translateY(-1px);box-shadow:0 3px 9px rgba(17,75,57,.12)}
@media(max-width:520px){.scln-dialog{border-radius:12px}.scln-dialog header{padding:15px 15px 9px}.scln-dialog-body{padding:4px 15px 15px}.scln-dialog footer{padding:11px 15px}}

.selection-col{display:table-cell!important;width:34px!important;min-width:34px!important;max-width:34px!important;padding-left:6px!important;padding-right:6px!important}.selection-checkbox,.selection-master{display:inline-block!important;visibility:visible!important;opacity:1!important}.selection-toolbar:not(.has-selection){display:none!important}.wo-print-launch{font-size:18px}.wo-print-modal{width:min(1460px,calc(100vw - 24px));height:calc(100vh - 24px);background:#fff;border-radius:12px;display:grid;grid-template-columns:minmax(440px,600px) 1fr;grid-template-rows:auto auto 1fr auto;overflow:hidden}.wo-print-modal>header{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid #d9e2dd}.wo-print-modal h2{margin:2px 0}.wo-template-bar{grid-column:1/-1;display:flex;gap:7px;padding:9px 18px;border-bottom:1px solid #d9e2dd}.wo-template-bar select,.wo-template-bar input,.wo-template-bar button,.wo-print-modal select,.wo-print-modal input,.wo-print-modal button{min-height:36px;border:1px solid #cbd7d1;border-radius:7px;background:#fff;padding:7px}.wo-template-bar input{flex:1}.wo-print-modal form{overflow:auto;padding:14px 18px}.wo-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.wo-settings-grid label{font-size:10px;font-weight:700}.wo-settings-grid select,.wo-settings-grid input{display:block;width:100%;margin-top:4px}.wo-column-head{display:flex;align-items:center;gap:7px;margin:15px 0 8px}.wo-column-head h3{margin:0 auto 0 0}.wo-column-row{display:grid;grid-template-columns:26px 22px minmax(130px,1fr) 120px;gap:7px;align-items:center;padding:6px;border:1px solid #dce4df;border-radius:7px;margin-bottom:6px}.wo-drag{cursor:grab;text-align:center}.wo-column-row label{display:flex;align-items:center;gap:4px;font-size:9px}.wo-column-row .wo-width{width:58px}.wo-live-wrap{min-width:0;overflow:auto;background:#edf1ee;padding:12px}.wo-preview-head{display:flex;justify-content:space-between;margin-bottom:8px}.wo-paper{box-sizing:border-box;background:#fff;margin:auto;box-shadow:0 4px 18px #0002;overflow:hidden}.wo-paper h3{font-size:10px;margin:0}.wo-paper>p{font-size:7px;margin:2px 0 6px}.wo-table-scale{display:block}.wo-print-table{border-collapse:collapse;table-layout:fixed;width:auto;min-width:100%;font-size:var(--wo-font,8px)}.wo-print-table thead{display:table-header-group}.wo-print-table th,.wo-print-table td{border:1px solid #68736d;padding:2px 3px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;word-break:normal}.wo-print-table tr{break-inside:avoid;page-break-inside:avoid}.wo-print-table img,.wo-no-image{display:block;width:var(--wo-image-size,22mm);height:var(--wo-image-size,22mm);object-fit:contain;object-position:center;margin:auto}.wo-no-image{display:grid;place-items:center;background:#f5f6f4;font-size:6px}.wo-fit-warning{margin-top:7px;padding:7px;background:#fff0d7;border:1px solid #d69c37;color:#744b00;font-size:8px}.wo-print-modal>footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding:10px 18px;border-top:1px solid #d9e2dd;background:#fff}.wo-print-root h1{font-size:14px;margin:0}.wo-print-root .doc-meta{font-size:8px;margin:2px 0 7px}@media(max-width:850px){.wo-print-modal{grid-template-columns:1fr;grid-template-rows:auto auto minmax(300px,1fr) minmax(300px,1fr) auto;overflow:auto}.wo-print-modal>header,.wo-template-bar,.wo-print-modal>footer{grid-column:1}.wo-template-bar{overflow-x:auto}.wo-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.wo-print-root{display:block!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}.wo-print-root .wo-print-table{width:100%!important;min-width:0!important}.wo-print-root .wo-print-table thead{display:table-header-group!important}.wo-print-root .wo-print-table tr{break-inside:avoid!important;page-break-inside:avoid!important}.wo-print-root .wo-print-table img,.wo-print-root .wo-no-image{width:var(--wo-image-size,22mm)!important;height:var(--wo-image-size,22mm)!important;object-fit:contain!important}.wo-print-root .wo-table-scale{width:100%!important;transform:none!important}.wo-print-root:after{display:none!important}}
.wo-print-modal select{appearance:none;-webkit-appearance:none;min-height:42px;padding:9px 36px 9px 12px;border:1px solid #c5d4cd;border-radius:9px;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#174f40 50%),linear-gradient(135deg,#174f40 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;cursor:pointer;transition:border-color .14s ease,box-shadow .14s ease}.wo-print-modal select:hover{border-color:#7fa99a}.wo-print-modal select:focus{outline:0;border-color:#0d654d;box-shadow:0 0 0 3px rgba(13,101,77,.12)}
.wo-print-primary,#woPrintNow{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:92px!important;color:#fff!important;background:#125b46!important;border-color:#125b46!important;font-weight:800!important;opacity:1!important}.wo-print-modal button{white-space:normal;line-height:1.1}.wo-template-bar button{min-width:72px}.wo-live-wrap{contain:layout paint}.wo-paper{content-visibility:auto}
.wo-template-bar .wo-compact-symbol{min-width:40px!important;width:40px!important;padding:6px!important;font-size:17px!important}.wo-table-scale[data-real-fit="true"]{width:100%!important;transform:none!important}.wo-table-scale[data-real-fit="true"] .wo-print-table{width:100%!important;min-width:0!important}
.wo-column-row{transition:border-color .14s,background .14s,transform .14s}.wo-column-row.dragging{opacity:.52;transform:scale(.99)}.wo-column-row.drag-over{border-color:#12624b;background:#e9f5f0;box-shadow:inset 3px 0 #12624b}.wo-drag:active{cursor:grabbing}
.wo-print-table[data-auto-column-fit="true"]{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}.wo-print-table[data-auto-column-fit="true"] th,.wo-print-table[data-auto-column-fit="true"] td{font-size:var(--wo-font,8px)!important;line-height:1.12!important;overflow:hidden!important;overflow-wrap:anywhere!important}.wo-table-scale[data-real-fit="true"]{width:100%!important;max-width:100%!important;transform:none!important;overflow:hidden!important}

/* Keep print setup focused on the six business-facing controls only. */
#woPrintForm .wo-custom-size,
#woPrintForm .wo-custom-margin,
#woPrintForm .wo-custom-scale{display:none!important}

/* The Image Size setting controls the square box; the artwork always fits inside it. */
.wo-print-table[data-auto-column-fit="true"] img,
.wo-print-table[data-auto-column-fit="true"] .wo-no-image{
  width:min(var(--wo-image-size,22mm),100%)!important;
  max-width:100%!important;
  height:var(--wo-image-size,22mm)!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
@media print{
  .wo-print-root .wo-print-table[data-auto-column-fit="true"] img,
  .wo-print-root .wo-print-table[data-auto-column-fit="true"] .wo-no-image{
    width:min(var(--wo-image-size,22mm),100%)!important;
    max-width:100%!important;
    height:var(--wo-image-size,22mm)!important;
    object-fit:contain!important;
    object-position:center!important;
  }
}

/* Compact, responsive controls for Work Order print settings only. */
#woPrintSettings .wo-print-modal{font-size:12px}
#woPrintSettings .wo-print-modal h2{font-size:20px}
#woPrintSettings .wo-print-modal h3{font-size:16px}
#woPrintSettings .wo-template-bar select,
#woPrintSettings .wo-template-bar input,
#woPrintSettings .wo-template-bar button,
#woPrintSettings #woPrintForm select,
#woPrintSettings #woPrintForm input,
#woPrintSettings #woPrintForm button{font-size:12px;transition:none!important}
#woPrintSettings .wo-print-font-control input{display:inline-block;width:calc(100% - 24px);margin-right:4px}
.wo-print-stamp{font-size:6px;line-height:1;margin:0 0 2px;color:#333;text-align:right;white-space:nowrap}

.register-selection-fixed{display:table-cell!important;visibility:visible!important;opacity:1!important;width:34px!important;min-width:34px!important;max-width:34px!important;padding:6px!important;text-align:center!important}.register-selection-fixed input{display:inline-block!important;visibility:visible!important;opacity:1!important;width:16px!important;height:16px!important;cursor:pointer!important}.wo-print-launch-ready{width:auto!important;min-width:142px!important;padding:0 12px!important;white-space:nowrap!important;color:#075440!important;border-color:#8db2a4!important;background:#fff!important;font-size:11px!important;font-weight:700!important}

#quickStageConsole.production-history-v2{margin-top:18px;padding-top:18px;border-top:1px solid #dce5e0}
#detailContent .detail-body>#quickStageConsole.production-history-v2{margin:0 0 16px;padding:0 0 16px;border-top:0;border-bottom:1px solid #dce5e0}
.production-history-v2 .ph-current{padding:12px 14px;border-radius:10px;background:#e8f3f7;color:#124e6c;margin:8px 0 14px}
.production-history-v2 .ph-current small{display:block;margin-bottom:3px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.production-history-v2 .ph-current strong{font-size:17px}
.production-history-v2 .ph-current span{display:block;margin-top:4px;font-size:11px;color:#587079}
.production-history-v2 .ph-title{margin:0 0 10px;font-size:14px}
.production-history-v2 .ph-list{display:grid;gap:7px}
.production-history-v2 .ph-row{width:100%;box-sizing:border-box;border:1px solid #dce5e0;border-radius:10px;background:#fff;padding:10px 11px;text-align:left;color:#263c33;cursor:pointer}
.production-history-v2 .ph-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:start;gap:0 7px;cursor:default}
.production-history-v2 .ph-stage-button{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:7px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.production-history-v2 .ph-stage-button:hover,.production-history-v2 .ph-stage-button:focus-visible{transform:none!important;box-shadow:none!important;border-color:transparent!important;background:transparent!important}
.production-history-v2 .ph-stage-button:hover .ph-name,.production-history-v2 .ph-stage-button:focus-visible .ph-name{text-decoration:none!important;text-shadow:none!important}
.production-history-v2 .ph-row:hover{border-color:#8daf9f;background:#f7faf8}
.production-history-v2 .ph-row.current{border-color:#e0ad51;background:#fff7e8}
.production-history-v2 .ph-row.done{border-color:#cfe0d7}
.production-history-v2 .ph-main{display:grid;grid-template-columns:22px minmax(0,1fr) auto 30px;align-items:center;gap:7px;min-width:0}
.production-history-v2 .ph-mark{font-weight:900;font-size:15px;color:#87968f}
.production-history-v2 .done .ph-mark{color:#176045}.production-history-v2 .current .ph-mark{color:#c88312}
.production-history-v2 .ph-name{font-size:12px;font-weight:800;white-space:normal;overflow-wrap:normal;word-break:normal;min-width:0}
.production-history-v2 .ph-status{font-size:9px;font-weight:800;text-transform:uppercase;white-space:nowrap;color:#738179}
.production-history-v2 .current .ph-status{color:#9b650e}
.production-history-v2 .ph-note-button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;cursor:pointer;font-size:14px}
.production-history-v2 .ph-note-button:hover{background:#e8f0ec}
.production-history-v2 .ph-meta{grid-column:1/-1;display:block;margin:5px 37px 0 29px;color:#6a7871;font-size:10px;line-height:1.35}
.production-history-v2 .ph-notes{grid-column:1/-1;display:grid;gap:5px;margin:8px 0 0 29px}
.production-history-v2 .ph-note{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:7px 8px;border-left:2px solid #72a98f;background:#f1f7f4;border-radius:0 7px 7px 0}
.production-history-v2 .ph-note b{display:block;font-size:10px;overflow-wrap:anywhere}.production-history-v2 .ph-note small{display:block;margin-top:2px;color:#6e7a74;font-size:9px}
.production-history-v2 .ph-remove-note{border:0;background:transparent;color:#b33b33;cursor:pointer;font-size:16px}
.production-history-v2 .ph-editor{grid-column:1/-1;margin:7px 0 0 29px}.production-history-v2 .ph-editor textarea{width:100%;box-sizing:border-box;min-height:54px;padding:8px;border:1px solid #9eb9ac;border-radius:8px;resize:vertical;font:inherit}
.production-history-v2 .ph-editor small{display:block;margin-top:4px;color:#738179;font-size:9px}
.production-history-v2 .ph-ship{width:100%;margin:12px 0 0}
#quickProductionHistory{display:none!important}
#fullProductionTimeline{margin-top:0;padding:18px 0;border-top:1px solid #dce5e0}
#fullProductionTimeline .ph-list{max-width:100%}
@media(max-width:600px){.production-history-v2 .ph-main{grid-template-columns:20px minmax(0,1fr) auto 30px}.production-history-v2 .ph-row{padding:10px 8px}.production-history-v2 .ph-status{font-size:8px}.production-history-v2 .ph-meta{margin-right:4px}.detail-drawer.open{width:100%!important;max-width:none!important}.detail-body{overflow-x:hidden}}

#stageFilter,#stageFilter+.sd-dropdown,#stageFilter+.ed-dropdown,.register-view-chips,#dailyBulkSelector{display:none!important}
#globalSearch{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.daily-order-group td{padding:0!important;border:0!important}.daily-order-group-bar{display:flex;align-items:center;gap:10px;padding:10px 13px;background:#edf5f1;border-top:1px solid #cfe0d8;border-bottom:1px solid #cfe0d8;color:#164f3c}.daily-order-group-bar input{width:17px;height:17px}.daily-order-group-bar strong{font-size:13px}.daily-order-group-bar span{font-size:11px;color:#62736b}.daily-order-group-bar .daily-group-state{margin-left:auto}
.global-quick-search{display:flex;align-items:center;justify-content:flex-end;position:relative}.global-quick-search button{width:40px;height:40px;border:1px solid #d3ded8;border-radius:9px;background:#fff;cursor:pointer;font-size:17px}.global-quick-search input{width:0;opacity:0;pointer-events:none;padding:10px 0;border:1px solid transparent;border-radius:9px;transition:width .22s ease,opacity .18s ease,padding .22s ease,border-color .22s ease}.global-quick-search.open input{width:min(330px,42vw);opacity:1;pointer-events:auto;padding:10px 12px;border-color:#9db7aa;margin-right:6px}
.print-orientation{min-width:54px!important;max-width:180px}.toolbar-actions>.sd-dropdown:has(#stageFilter),.toolbar-actions>.ed-dropdown:has(#stageFilter){display:none!important}
@media(max-width:620px){.global-quick-search.open{position:absolute;left:10px;right:10px;z-index:40;background:#fff}.global-quick-search.open input{width:100%}.daily-order-group-bar{flex-wrap:wrap}.daily-order-group-bar .daily-group-state{margin-left:27px}}

/* Use only the compact expandable search control. */
.global-search{display:none!important}
/* Bag Print mapping selectors are intentionally locked native lists. */
.bag-value-picker select.sd-native,.bag-value-picker select.ed-native{position:static!important;opacity:1!important;pointer-events:auto!important;width:100%!important;height:40px!important;display:block!important;margin:0!important;padding:8px 32px 8px 9px!important;border:1px solid #cbd7d1!important;border-radius:7px!important;background:#fff!important;color:#17201c!important}

.selection-toolbar .compact-symbol-action{width:40px;min-width:40px;padding:8px 0;font-size:17px;line-height:1;text-align:center}
.selection-toolbar #returnSelectedOrders{color:#0b684f;border-color:#8ebbaa;background:#f5fbf8}
.register-top-scroll{height:20px;overflow-x:scroll;overflow-y:hidden;margin:0;border:1px solid #86948d;border-radius:8px;background:#e4ebe7;position:fixed;bottom:8px;z-index:155;box-shadow:0 3px 14px rgba(15,35,27,.25);scrollbar-color:#53645b #e4ebe7;scrollbar-width:auto}
.register-top-scroll[hidden]{display:none}.register-top-scroll-width{height:1px}.register-top-scroll::-webkit-scrollbar{height:18px}.register-top-scroll::-webkit-scrollbar-track{background:#e4ebe7;border-radius:7px}.register-top-scroll::-webkit-scrollbar-thumb{background:#53645b;border-radius:7px;border:3px solid #e4ebe7;min-width:48px}.register-top-scroll:hover{border-color:#0e5b43;box-shadow:0 3px 18px rgba(15,35,27,.36)}
.order-register .table-wrap{scrollbar-width:none!important;-ms-overflow-style:none}.order-register .table-wrap::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
.saved-action-notice{display:none;align-items:center;gap:12px;margin:0 0 12px;padding:12px 15px;border:1px solid #8ebcaa;border-radius:9px;background:#e9f6ef;color:#164f3d}.saved-action-notice.show{display:flex}.saved-action-notice b{white-space:nowrap}.saved-action-notice span{color:#315f50}
.bulk-return-backdrop{display:none;position:fixed;inset:0;z-index:12000;background:rgba(12,28,23,.56);align-items:center;justify-content:center;padding:18px}.bulk-return-backdrop.open{display:flex}.bulk-return-modal{width:min(560px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:14px;padding:22px;box-shadow:0 24px 70px rgba(0,0,0,.28)}.bulk-return-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.bulk-return-head h2{margin:3px 0 0}.bulk-return-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.bulk-return-grid label{display:grid;gap:6px;font-weight:700}.bulk-return-grid input,.bulk-return-grid select,.bulk-return-grid textarea{width:100%;box-sizing:border-box;border:1px solid #ccd8d2;border-radius:8px;padding:10px;background:#fff;color:#15221d}.bulk-return-grid textarea{min-height:76px;resize:vertical}.bulk-return-grid .wide{grid-column:1/-1}.bulk-return-error{min-height:20px;margin-top:8px;color:#b33b35;font-weight:700}
@media(max-width:700px){.selection-toolbar .compact-symbol-action{width:38px;min-width:38px}.bulk-return-grid{grid-template-columns:1fr}.bulk-return-grid .wide{grid-column:auto}.register-top-scroll{bottom:5px;height:22px}}
@media print{.register-top-scroll{display:none!important}}
.saved-result-backdrop{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(9,32,27,.55);backdrop-filter:blur(2px)}
.saved-result-backdrop.open{display:flex}.saved-result-card{width:min(460px,100%);background:#fff;border-radius:16px;padding:26px;box-shadow:0 24px 70px rgba(0,0,0,.24);display:grid;grid-template-columns:54px 1fr;gap:16px;align-items:start}.saved-result-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#e5f5ed;color:#075c45;font-size:28px;font-weight:800}.saved-result-card h2{margin:4px 0 8px;font-size:23px}.saved-result-card p{margin:0;color:#31443e;font-size:15px}.saved-result-details{grid-column:1/-1;padding:12px 14px;border:1px solid #cfe1d9;border-radius:9px;background:#f5faf8;color:#183c31;overflow-wrap:anywhere}.saved-result-details:empty{display:none}.saved-result-card>button{grid-column:1/-1;justify-self:end;min-width:100px}

/* Shared stable register controls: All, Returned, Cancelled and Shipped */
.register-selection-fixed,.order-register .selection-col{box-sizing:border-box!important;width:38px!important;min-width:38px!important;max-width:38px!important;padding:6px 10px!important;text-align:center!important;vertical-align:middle!important}
.register-selection-fixed input,.order-register .selection-col input{display:block!important;width:17px!important;height:17px!important;margin:0 auto!important;cursor:pointer!important}
.daily-order-group td{padding:0!important}.daily-order-group-bar{box-sizing:border-box!important;min-height:45px!important;padding:9px 10px!important;display:grid!important;grid-template-columns:18px max-content max-content 1fr!important;align-items:center!important;column-gap:10px!important}.daily-order-group-bar input{grid-column:1!important;width:17px!important;height:17px!important;margin:0!important}.daily-order-group-bar strong{grid-column:2!important}.daily-order-group-bar>span:not(.daily-group-state){grid-column:3!important}.daily-order-group-bar .daily-group-state{grid-column:4!important;justify-self:end!important;margin:0!important}
#registerStableScroll{box-sizing:border-box;position:fixed;bottom:8px;height:20px;overflow-x:scroll;overflow-y:hidden;z-index:245;border:1px solid #87968e;border-radius:7px;background:#e8eeeb;box-shadow:0 3px 15px rgba(15,35,27,.25);scrollbar-color:#53645b #e8eeeb;scrollbar-width:auto;overscroll-behavior:contain}
#registerStableScroll[hidden]{display:none!important}#registerStableScroll>div{height:1px}#registerStableScroll::-webkit-scrollbar{height:18px}#registerStableScroll::-webkit-scrollbar-track{background:#e8eeeb;border-radius:7px}#registerStableScroll::-webkit-scrollbar-thumb{background:#53645b;border-radius:7px;border:3px solid #e8eeeb;min-width:48px}
#registerTopScroll{display:none!important}.order-register .table-wrap{scrollbar-width:none!important;-ms-overflow-style:none!important;overscroll-behavior-x:contain}.order-register .table-wrap::-webkit-scrollbar{height:0!important;display:none!important}
.order-register tbody tr[data-order]{transition:box-shadow .12s ease}.order-register tbody tr[data-order]:has(.register-row-checkbox:checked),.order-register tbody tr[data-order]:has(.selection-checkbox:checked){background:inherit!important}.order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td,.order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td{border-top:1px solid #2d735d!important;border-bottom:1px solid #2d735d!important}.order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:first-child,.order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:first-child{box-shadow:inset 3px 0 0 #176045}.order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:last-child,.order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:last-child{box-shadow:inset -1px 0 0 #2d735d}
@media(max-width:700px){#registerStableScroll{bottom:5px;height:22px}.daily-order-group-bar{grid-template-columns:18px max-content 1fr!important}.daily-order-group-bar>span:not(.daily-group-state){display:none}.daily-order-group-bar .daily-group-state{grid-column:3!important}}
@media print{#registerStableScroll{display:none!important}}

/* Compact fixed selection actions: showing it never pushes the register down. */
.selection-toolbar.has-selection{
  position:fixed!important;top:86px!important;
  left:auto!important;right:18px!important;width:max-content!important;
  max-width:min(760px,calc(100vw - max(24px,var(--side,230px) + 36px)))!important;
  z-index:235!important;margin:0!important;box-sizing:border-box!important;
  min-height:44px!important;max-height:58px!important;padding:6px 8px!important;
  overflow-x:auto!important;overflow-y:hidden!important;border-radius:11px!important;
  border:1px solid #c4d8cf!important;
  box-shadow:0 10px 28px rgba(17,46,35,.18)!important;background:rgba(247,252,249,.98)!important;
  backdrop-filter:blur(8px)!important;
  animation:sclnToolbarIn .16s ease-out both!important;
}
.selection-toolbar #clearSelectedOrders{display:inline-grid!important;place-items:center!important;min-width:38px!important;font-size:20px!important;line-height:1!important}
.selection-toolbar .bulk-stage-symbol{display:inline-grid!important;place-items:center!important;width:38px!important;min-width:38px!important;height:34px!important;padding:0!important;border:1px solid #8db2a4!important;border-radius:7px!important;background:#fff!important;color:#075440!important;font-size:20px!important;font-weight:800!important;line-height:1!important}
.selection-toolbar.hidden-for-order-details{display:none!important}
.selection-toolbar .selection-count{white-space:nowrap!important}
@keyframes sclnToolbarIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* Match the neighboring square toolbar symbols. */
.wo-print-launch.print-work-orders-symbol{
  width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;
  display:inline-grid!important;place-items:center!important;border:1px solid #d6ddd8!important;
  border-radius:8px!important;background:#fff!important;color:#0d5b46!important;
  font-size:18px!important;font-weight:800!important;line-height:1!important;
  overflow:hidden!important;white-space:nowrap!important;cursor:pointer!important;
  transition:background-color .14s ease,border-color .14s ease,transform .14s ease!important;
}
.wo-print-launch.print-work-orders-symbol:hover{background:#e8f3ee!important;border-color:#7eaa98!important;transform:translateY(-1px)}

/* Filter tabs: clear hover plus persistent current-section highlight. */
#orderTabs button{cursor:pointer!important;transition:background-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease!important}
#orderTabs button:hover{background:#e2eee8!important;color:#07543f!important;transform:translateY(-1px)}
#orderTabs button.active,#orderTabs button[aria-pressed="true"]{background:#0d5b46!important;color:#fff!important;box-shadow:0 2px 7px rgba(13,65,47,.18)!important;font-weight:800!important}
#orderTabs[hidden]{display:none!important}

/* Fast, calm page entrance. It animates visually without delaying data or clicks. */
.view.scln-view-enter{animation:sclnViewEnter .32s cubic-bezier(.2,.75,.25,1) both!important}
@keyframes sclnViewEnter{from{opacity:.15;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.view.scln-view-enter,.selection-toolbar.has-selection{animation:none!important}#orderTabs button,.wo-print-launch{transition:none!important}}
@media(max-width:900px){.selection-toolbar.has-selection{left:10px!important;right:10px!important;width:auto!important;max-width:none!important;top:76px!important;max-height:88px!important}}
@media print{.selection-toolbar{display:none!important}.view.scln-view-enter{animation:none!important}}

.bulk-stage-backdrop{position:fixed;inset:0;z-index:610;display:none;place-items:center;padding:18px;background:rgba(17,29,24,.62)}
.bulk-stage-backdrop.open{display:grid}.bulk-stage-card{width:min(760px,calc(100vw - 28px));max-height:min(88vh,860px);display:flex;flex-direction:column;border-radius:14px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.26);overflow:hidden}.bulk-stage-card>header{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 14px;border-bottom:1px solid #dce5e0}.bulk-stage-card h2{margin:3px 0;font-size:20px}.bulk-stage-card p{margin:0;color:#68776f;font-size:12px}#bulkStageBody{min-height:0;overflow:auto}.bulk-stage-section{padding:18px 20px 10px}.bulk-stage-section>b{display:block;font-size:12px;color:#15382c}.bulk-stage-section>p{margin:3px 0 12px}.bulk-stage-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bulk-stage-option{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid #cfddd7;border-radius:9px;background:#fff;color:#173c30;text-align:left;font-weight:750;cursor:pointer}.bulk-stage-option i{font-style:normal;font-size:18px;color:#7b9389}.bulk-stage-option:hover{background:#f3f8f5;border-color:#79a793}.bulk-stage-option.selected{background:#e4f1eb;border-color:#0d6a4e;box-shadow:inset 3px 0 #0d6a4e}.bulk-stage-note{margin:0 20px 18px;border-radius:8px;background:#edf6f1;padding:10px;color:#49655a;font-size:10px}.bulk-stage-card>footer{flex:0 0 auto;display:flex;justify-content:flex-end;gap:8px;padding:13px 20px;border-top:1px solid #dce5e0;background:#fff}.bulk-shipment-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 20px 10px;padding:11px 13px;border-radius:9px;background:#edf6f1;color:#153f31}.bulk-shipment-intro>div{display:flex;align-items:center;gap:9px}.bulk-shipment-intro b{font-size:13px}.bulk-shipment-intro span{font-size:11px;color:#587167}.bulk-shipment-intro .icon-btn{width:34px;height:34px;flex:0 0 34px}.bulk-shipment-list{display:grid;gap:10px;padding:0 20px 18px}.bulk-shipment-order{border:1px solid #d4e1db;border-radius:11px;background:#fbfdfc;overflow:hidden}.bulk-shipment-order>header{display:flex;align-items:center;gap:10px;padding:11px 13px;border-bottom:1px solid #e0e9e5;background:#f3f8f5}.bulk-shipment-order>header>span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#dceee6;color:#07543f;font-weight:800}.bulk-shipment-order>header div{display:grid}.bulk-shipment-order>header b{font-size:12px}.bulk-shipment-order>header small{color:#6c7c75;font-size:10px}.bulk-shipment-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px}.bulk-shipment-fields label{display:grid;gap:5px;color:#26483c;font-size:10px;font-weight:750}.bulk-shipment-fields label[hidden]{display:none!important}.bulk-shipment-fields label>span{display:block}.bulk-shipment-fields input,.bulk-shipment-fields textarea{width:100%;box-sizing:border-box;border:1px solid #c9d8d1;border-radius:7px;background:#fff;padding:8px 9px;color:#112b22;font:inherit}.bulk-shipment-fields input{height:36px}.bulk-shipment-fields textarea{min-height:58px;resize:vertical}.bulk-shipment-fields .wide{grid-column:span 3}

.bulk-shipment-apply-all{margin:0 20px 12px;border:1px solid #91b7a7;border-radius:11px;background:#f2f9f5;overflow:hidden}.bulk-shipment-apply-all>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #d7e8e0}.bulk-shipment-apply-all>header div{display:grid;gap:2px}.bulk-shipment-apply-all>header b{font-size:12px;color:#123f30}.bulk-shipment-apply-all>header small{font-size:10px;color:#61756c}.bulk-shipment-apply-all .bulk-shipment-fields{background:#fff}.bulk-shipment-apply-all #applyAllShipmentFields{white-space:nowrap}.bulk-shipment-apply-all.collapsed>header{border-bottom:0}.bulk-shipment-apply-all.collapsed>.bulk-shipment-fields,.bulk-shipment-apply-all.collapsed #applyAllShipmentFields{display:none!important}#toggleCommonShipment{margin-left:auto;white-space:nowrap}

/* Hover belongs to the complete production-stage card, never to its text alone. */
.quick-stage-step{transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease!important}.quick-stage-step:hover{background:#f3f8f5!important;border-color:#79a793!important;box-shadow:0 3px 10px rgba(16,70,50,.10)!important;transform:translateY(-1px)!important}.quick-stage-step:hover *{text-decoration:none!important;text-shadow:none!important}
@media(max-width:680px){.bulk-stage-options{grid-template-columns:repeat(2,minmax(0,1fr))}.bulk-shipment-intro{align-items:flex-start;flex-direction:column}.bulk-shipment-apply-all>header{align-items:stretch;flex-direction:column}.bulk-shipment-fields{grid-template-columns:1fr}.bulk-shipment-fields .wide{grid-column:auto}}

/* One lightweight hover language for every clickable button. */
@media(hover:hover){button:not(:disabled):not(.product-card-image-nav):not(.quick-image-nav){transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease!important}button:not(:disabled):not(.product-card-image-nav):not(.quick-image-nav):hover{transform:translateY(-1px)!important;box-shadow:0 3px 9px rgba(16,55,40,.13)!important;border-color:#8eb3a4!important}}
@media(prefers-reduced-motion:reduce){button:not(:disabled):not(.product-card-image-nav):not(.quick-image-nav){transition:none!important}button:not(:disabled):not(.product-card-image-nav):not(.quick-image-nav):hover{transform:none!important}}
/* The selection column always remains visible while the register scrolls horizontally. */
.order-register .register-table th.register-selection-fixed,.order-register .register-table td.register-selection-fixed{position:sticky!important;left:0!important;z-index:80!important;width:44px!important;min-width:44px!important;max-width:44px!important;background:#fff!important;box-shadow:1px 0 0 #cfdad4!important}.order-register .register-table th.register-selection-fixed{z-index:95!important;background:#f7faf8!important}.order-register .register-table tr:hover td.register-selection-fixed,.order-register .register-table tr.mobile-order-selected td.register-selection-fixed{background:#e6f2ec!important}
body:has(.drawer-backdrop.open) .order-register .register-table .register-selection-fixed,body:has(.detail-drawer.open) .order-register .register-table .register-selection-fixed,body:has(.full-work-order-page.open) .order-register .register-table .register-selection-fixed,body:has(.modal-backdrop.open) .order-register .register-table .register-selection-fixed,body:has(.wo-action-backdrop.open) .order-register .register-table .register-selection-fixed{visibility:hidden!important;background:transparent!important;box-shadow:none!important}
body:has(.modal-backdrop.open) #ordersView .order-register input[type="checkbox"],body:has(.modal-backdrop.open) #ordersView .order-register .selection-col,body:has(.drawer-backdrop.open) #ordersView .order-register input[type="checkbox"],body:has(.drawer-backdrop.open) #ordersView .order-register .selection-col,body:has(.detail-drawer.open) #ordersView .order-register input[type="checkbox"],body:has(.detail-drawer.open) #ordersView .order-register .selection-col,body:has(.wo-action-backdrop.open) #ordersView .order-register input[type="checkbox"],body:has(.wo-action-backdrop.open) #ordersView .order-register .selection-col{visibility:hidden!important;opacity:0!important;pointer-events:none!important}

.wo-print-modal select{
  appearance:none;
  -webkit-appearance:none;
  min-height:42px;
  padding:9px 36px 9px 12px;
  border:1px solid #c5d4cd;
  border-radius:9px;
  background-color:#fff;
  background-image:linear-gradient(45deg,transparent 50%,#174f40 50%),linear-gradient(135deg,#174f40 50%,transparent 50%);
  background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
  cursor:pointer;
  transition:border-color .14s ease,box-shadow .14s ease;
}
.wo-print-modal select:hover{border-color:#7fa99a}
.wo-print-modal select:focus{outline:0;border-color:#0d654d;box-shadow:0 0 0 3px rgba(13,101,77,.12)}
.wo-print-modal #woPrintForm select,
.wo-print-modal #woTemplateSelect{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  color:#17231e!important;
  font-weight:650!important;
  line-height:1.2!important;
  box-shadow:0 1px 2px rgba(18,55,43,.04);
}
.wo-print-modal .wo-settings-grid label{
  display:block;
  color:#233c33;
  font-weight:800;
}
.wo-print-modal .wo-settings-grid select{
  margin-top:7px!important;
}
.wo-print-modal .wo-settings-grid select:active{
  border-color:#0d654d;
}
#orderTabs[hidden]{display:none!important}
.selection-toolbar #clearSelectedOrders{display:inline-grid!important;place-items:center!important;min-width:38px!important;font-size:20px!important;line-height:1!important}

/* Keep the print-settings trigger available to the selection actions without
   showing a duplicate print control beside the register filters. */
.toolbar-actions .wo-print-launch{display:none!important}

/* Compact, consistent feedback for every enabled action-bar control. */
.selection-toolbar button:not(:disabled){
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,
    background-color .16s ease,color .16s ease!important;
}
.selection-toolbar button:not(:disabled):hover{
  transform:translateY(-2px);
  border-color:#6f9c89!important;
  background:#e7f2ed!important;
  color:#0b5a43!important;
  box-shadow:0 5px 12px rgba(16,69,51,.14);
}
.selection-toolbar button.primary:not(:disabled):hover,
.selection-toolbar #printSelectedOrders:not(:disabled):hover{
  border-color:#0b5a43!important;
  background:#0b5a43!important;
  color:#fff!important;
}
.selection-toolbar button:not(:disabled):active{
  transform:translateY(0);
  box-shadow:0 2px 5px rgba(16,69,51,.12);
}

#woPrintSettings .wo-fast-font-control {
  position: relative;
}
#woPrintSettings .wo-fast-font-control small {
  display: block;
  margin-top: 4px;
  color: #344b43;
  font-weight: 700;
}
#woPrintSettings .wo-fast-font-control input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b8cec5;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  font: inherit;
}
#woPrintSettings .wo-fast-fit-button {
  border: 1px solid #77a796 !important;
  background: #edf7f2 !important;
  color: #07573f !important;
  font-weight: 800 !important;
  border-radius: 9px !important;
  min-height: 40px;
  padding: 8px 14px !important;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}
#woPrintSettings .wo-fast-fit-button:hover {
  transform: translateY(-1px);
  background: #dfeee7 !important;
}
#woPrintSettings .wo-fast-fit-button.active {
  background: #07573f !important;
  color: #fff !important;
}
#woPrintSettings .wo-auto-fit-status{display:inline-flex;align-items:center;min-height:34px;border:1px solid #b8d5c8;border-radius:8px;background:#eaf5ef;padding:0 10px;color:#0d5b46;font-size:10px;font-weight:800;white-space:nowrap}

/* Only the requested Work Order Details print controls are removed. */
#detailContent .quick-actions > .quick-print-order {
  display: none !important;
}

#fullWorkOrderPage .full-detail-actions > button:nth-child(2),
#fullWorkOrderPage .full-detail-actions > button:nth-child(3) {
  display: none !important;
}

#dashboardView .dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.42fr)}#dashboardView .panel.span-2{grid-column:1}#dashboardView .attention-panel{grid-column:2;grid-row:1 / span 2}.pipeline.live-stage-pipeline{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px}.live-stage-card{min-height:72px;padding:11px;border:1px solid #dfe5e1;border-radius:9px;background:#f8faf8;cursor:pointer;text-align:left;transition:.15s ease;color:#243d35}.live-stage-card b{display:block;font-size:22px;line-height:1;margin-bottom:8px;color:#071d16}.live-stage-card span{font-size:11px}.live-stage-card:hover,.live-stage-card:focus-visible{border-color:#0f5b45;background:#f2f8f5;outline:none;box-shadow:0 3px 12px rgba(18,61,49,.08)}.pipeline-live-note{display:inline-flex;align-items:center;gap:6px;color:#17805f;font-size:11px;margin-left:5px}.pipeline-live-note:before{content:'';width:6px;height:6px;border-radius:50%;background:#20a878}.stage-popup-backdrop{position:fixed;inset:0;z-index:10020;background:rgba(6,18,14,.55);display:none;align-items:center;justify-content:center;padding:20px}.stage-popup-backdrop.open{display:flex}.stage-popup-card{width:min(920px,100%);max-height:min(760px,90vh);overflow:hidden;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.25);display:flex;flex-direction:column}.stage-popup-card>header{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 22px 16px;border-bottom:1px solid #e5e9e7}.stage-popup-card h2{margin:3px 0;font-size:23px}.stage-popup-card header p{margin:0;color:#6b7772}.stage-popup-head{display:grid;grid-template-columns:48px 1.25fr 1fr 65px;gap:12px;padding:10px 18px;background:#f6f8f7;color:#72807a;font-size:10px;font-weight:700;text-transform:uppercase}.stage-popup-head span:first-child{grid-column:1 / span 2}.stage-popup-row{width:100%;display:grid;grid-template-columns:48px 1.25fr 1fr 65px;gap:12px;align-items:center;padding:12px 18px;border:0;border-bottom:1px solid #e8ecea;background:#fff;text-align:left;cursor:pointer}.stage-popup-row:hover{background:#f4f9f7}.stage-popup-row span{min-width:0}.stage-popup-row strong,.stage-popup-row b,.stage-popup-row small{display:block}.stage-popup-row strong{color:#0f5b45}.stage-popup-row small{color:#6d7974;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-popup-sr{width:27px;height:27px;display:grid!important;place-items:center;border-radius:50%;background:#edf4f1;color:#345e51;font-weight:700}.stage-popup-open{text-align:right;color:#0f5b45;font-weight:700}.stage-popup-card #stagePopupBody{overflow:auto}.stage-popup-empty{padding:70px 24px;text-align:center;color:#71807a}.stage-popup-empty b,.stage-popup-empty span{display:block}.stage-popup-empty span{margin-top:7px;font-size:13px}.stage-popup-card .icon-btn{font-size:22px}
@media(max-width:1150px){.pipeline.live-stage-pipeline{grid-template-columns:repeat(3,minmax(120px,1fr))}}@media(max-width:850px){#dashboardView .dashboard-grid{grid-template-columns:1fr}#dashboardView .panel.span-2,#dashboardView .attention-panel{grid-column:1;grid-row:auto}.pipeline.live-stage-pipeline{grid-template-columns:repeat(2,minmax(110px,1fr))}.stage-popup-head{display:none}.stage-popup-row{grid-template-columns:36px 1fr 1fr}.stage-popup-open{display:none!important}}

#dashboardView .stat.in-stock-stat{cursor:pointer;border-color:#bfd7cb;background:linear-gradient(135deg,#fff 0%,#f1f8f4 100%);transition:.16s ease}#dashboardView .stat.in-stock-stat:hover{border-color:#2d765d;box-shadow:0 7px 20px rgba(23,75,59,.09);transform:translateY(-1px)}#dashboardView .stat.in-stock-stat .stat-icon{background:#dff0e7;color:#0f684d}.stage-popup-card{width:min(1180px,96vw)}.stage-popup-actions{display:flex;align-items:center;gap:8px}.stage-popup-actions .secondary{font-size:11px;color:#174b3b}.stage-popup-table{min-height:0;overflow:auto}.stage-popup-head,.stage-popup-row{width:max-content;min-width:100%;display:grid;grid-template-columns:42px repeat(var(--stage-data-cols),minmax(145px,1fr)) 62px;gap:10px}.stage-popup-head{position:sticky;top:0;z-index:2}.stage-popup-value{min-width:0}.stage-popup-value>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#17201c}.stage-popup-value>small{display:none}.stage-column-panel{display:none;border-bottom:1px solid #dce7e1;background:#f2f8f5;padding:14px 18px}.stage-column-panel.open{display:block}.stage-column-intro{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px}.stage-column-intro b,.stage-column-intro small{display:block}.stage-column-intro small{margin-top:3px;color:#68766f;font-size:10px}.stage-column-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:280px;overflow:auto;padding-right:4px}.stage-column-row{display:grid;grid-template-columns:25px 62px minmax(0,1fr);align-items:center;gap:7px;border:1px solid #d8e5de;border-radius:8px;background:#fff;padding:9px}.stage-column-row.dragging{opacity:.45}.stage-column-drag{color:#5f7e71;cursor:grab;font-size:16px}.stage-column-row label{display:flex;align-items:center;gap:5px;color:#52645c;font-size:9px;font-weight:700}.stage-column-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.stage-column-panel footer{display:flex;justify-content:flex-end;gap:8px;margin-top:11px}.stage-column-panel footer button{font-size:10px;padding:8px 12px}
@media(max-width:850px){.stage-popup-card{width:100%;max-height:94vh}.stage-popup-actions .secondary{font-size:0;padding:9px}.stage-popup-actions .secondary:first-letter{font-size:15px}.stage-popup-head{display:grid}.stage-popup-row{grid-template-columns:42px repeat(var(--stage-data-cols),minmax(135px,1fr)) 62px}.stage-popup-open{display:block!important}.stage-column-list{grid-template-columns:1fr}}

#dashboardView .stat.overdue-stat{cursor:pointer;transition:.16s ease}#dashboardView .stat.overdue-stat:hover,#dashboardView .stat.overdue-stat:focus-visible{border-color:#c98c57;background:#fffaf3;box-shadow:0 7px 20px rgba(139,77,25,.1);transform:translateY(-1px);outline:none}.stage-popup-head,.stage-popup-row{grid-template-columns:42px 72px repeat(var(--stage-data-cols),minmax(145px,1fr)) 62px}.stage-order-image,.stage-order-image-empty{width:58px;height:52px;border-radius:7px}.stage-order-image{display:grid;place-items:center;overflow:hidden;border:1px solid #d5e0da;background:#f4f7f5;padding:3px;cursor:zoom-in}.stage-order-image:hover{border-color:#176852;box-shadow:0 3px 10px rgba(17,75,57,.13)}.stage-order-image img{width:100%;height:100%;display:block;object-fit:contain;background:#fff;border-radius:4px}.stage-order-image-empty{display:grid;place-items:center;border:1px dashed #c7d3cd;color:#89958f;background:#fafcfb;font-size:8px;text-align:center}.stage-popup-open{border:0;background:transparent;cursor:pointer}.stage-image-lightbox{position:fixed;inset:0;z-index:10040;display:none;align-items:center;justify-content:center;padding:52px;background:rgba(6,15,11,.92)}.stage-image-lightbox.open{display:flex}.stage-image-lightbox img{max-width:94vw;max-height:88vh;object-fit:contain;border-radius:10px;background:#fff;box-shadow:0 18px 65px rgba(0,0,0,.4)}.stage-image-lightbox button{position:absolute;right:20px;top:16px;width:40px;height:40px;background:#fff;color:#164b3b}@media(max-width:850px){.stage-popup-head,.stage-popup-row{grid-template-columns:42px 64px repeat(var(--stage-data-cols),minmax(135px,1fr)) 62px}.stage-image-lightbox{padding:45px 14px}.stage-order-image,.stage-order-image-empty{width:52px;height:48px}}
.stage-popup-head span:first-child{grid-column:auto}
.stage-order-image,.stage-order-image-empty{width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;max-width:60px!important;max-height:60px!important;box-sizing:border-box}.stage-order-image{padding:5px!important;background:#f7f9f7!important}.stage-order-image img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;display:block!important;background:#fff!important}
.stage-order-image{overflow:visible!important;border-radius:5px!important}.stage-order-image img{object-fit:scale-down!important;border-radius:0!important;box-sizing:border-box!important}
.stage-order-image{overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:5px!important}.stage-order-image img{width:48px!important;height:48px!important;min-width:0!important;min-height:0!important;max-width:48px!important;max-height:48px!important;object-fit:contain!important;object-position:center!important;flex:0 0 48px!important}

/* Unified column control and readable dynamic stage values */
.stage-popup-actions #stageArrangeColumns{display:inline-grid!important;place-items:center;width:38px!important;height:38px!important;min-width:38px;padding:0!important;border:1px solid #a9c9ba!important;border-radius:10px!important;background:#eff7f3!important;color:#0d6045!important;font-size:19px!important;line-height:1!important;overflow:hidden;text-indent:-9999px}
.stage-popup-actions #stageArrangeColumns::after{content:'☷';text-indent:0}
.stage-popup-row{color:#24483c}
.stage-popup-value>b{font-weight:600!important;color:#24483c!important}

/* One horizontal scroller only; no duplicate bottom track or empty body width */
.stage-popup-table{overflow:auto!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
.stage-popup-card #stagePopupBody{overflow:visible!important;width:max-content;min-width:100%}
.stage-popup-card #stagePopupBody>.stage-popup-row:last-child{border-bottom:0}

/* Universal script supplies the icon; never duplicate it with a pseudo element */
.stage-popup-actions #stageArrangeColumns{text-indent:0!important}
.stage-popup-actions #stageArrangeColumns::after{content:none!important}

/* Compact business information below the production pipeline. */
.dashboard-business-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #e0e7e3}.dashboard-business-summary>section{min-width:0;border:1px solid #dce6e1;border-radius:10px;background:#f9fbfa;padding:11px 12px}.dashboard-business-summary header{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;margin-bottom:9px}.dashboard-business-summary header b,.dashboard-business-summary header small{display:block}.dashboard-business-summary header b{font-size:11px;color:#173d34}.dashboard-business-summary header small{margin-top:2px;color:#73817b;font-size:9px}.dashboard-business-summary header button{border:0;background:transparent;color:#0e674f;font-size:9px;font-weight:750;cursor:pointer;white-space:nowrap}.dashboard-seller-brief>div{display:flex;gap:6px;overflow:hidden}.dashboard-seller-brief>div>span{display:flex;align-items:center;gap:6px;min-width:0;padding:5px 7px;border:1px solid #dce7e1;border-radius:999px;background:#fff}.dashboard-seller-brief>div>span b{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.dashboard-seller-brief>div>span small{display:grid;place-items:center;min-width:17px;height:17px;border-radius:9px;background:#e2f1eb;color:#0b624a;font-size:8px;font-weight:800}.dashboard-seller-brief em{color:#7b8882;font-size:9px}.dashboard-balance-brief>div{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.dashboard-balance-brief>div>span{min-width:0;padding:7px 8px;border-radius:7px;background:#fff}.dashboard-balance-brief>div small,.dashboard-balance-brief>div b{display:block}.dashboard-balance-brief>div small{color:#718078;font-size:8px;text-transform:uppercase}.dashboard-balance-brief>div b{margin-top:2px;overflow:hidden;text-overflow:ellipsis;font-size:11px;white-space:nowrap}.dashboard-balance-brief .income{color:#087052}.dashboard-balance-brief .expense{color:#ad4a42}
.attention-item.dashboard-attention-order{align-items:center;gap:9px;padding:9px 0}.dashboard-attention-order .attention-dot{display:none}.dashboard-attention-image{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;overflow:hidden;border:1px solid #d7e2dc;border-radius:7px;background:#f5f8f6;color:#819087}.dashboard-attention-image img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}.dashboard-attention-copy{min-width:0}.dashboard-attention-copy b,.dashboard-attention-copy span,.dashboard-attention-copy small{display:block!important}.dashboard-attention-copy b{color:#0d5f49;font-size:10px}.dashboard-attention-copy span{margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#17241f;font-size:10px;font-weight:700}.dashboard-attention-copy small{margin-top:2px;color:#6f7c76;font-size:8px}
@media(max-width:1050px){.dashboard-business-summary{grid-template-columns:1fr}.dashboard-seller-brief>div{flex-wrap:wrap}}
.dashboard-recent-head>div{margin-right:auto}.dashboard-recent-columns{display:grid;place-items:center;width:34px;height:34px;margin:0 7px 0 0;padding:0;border:1px solid #a8cabe;border-radius:8px;background:#f2f8f5;color:#0c6048;font-size:16px;cursor:pointer}.dashboard-recent-columns:hover{border-color:#0c6048;background:#e7f3ee}.dashboard-recent-image{width:58px}.dashboard-recent-image img{display:block;width:42px;height:42px;border:1px solid #d6e1dc;border-radius:6px;background:#fff;object-fit:contain}#recentRows td b{white-space:normal;overflow-wrap:anywhere;font-size:11px}

/* Fixed overdue KPI warning state for desktop and mobile. */
#dashboardView .stat.overdue-stat{transition:border-color .16s ease!important}
#dashboardView .stat.overdue-stat.has-overdue{background:#fff1f0!important;border-color:#efc9c6!important}
#dashboardView .stat.overdue-stat.has-overdue .stat-icon{background:#f9deda!important;color:#a93731!important}
#dashboardView .stat.overdue-stat:hover,#dashboardView .stat.overdue-stat:focus-visible{border-color:#c95d57!important;box-shadow:none!important;transform:none!important;outline:none!important}
#dashboardView .stat.overdue-stat:not(.has-overdue),#dashboardView .stat.overdue-stat:not(.has-overdue):hover,#dashboardView .stat.overdue-stat:not(.has-overdue):focus-visible{background:#fff!important;box-shadow:none!important;transform:none!important}

.layout-item.regular-fixed-field{grid-template-columns:26px minmax(150px,1fr) 92px!important;min-height:0!important;padding:7px 9px!important;align-items:center!important;background:#eef5f1;border-color:#aac2b5}.regular-fixed-field .layout-drag{cursor:not-allowed!important;font-size:0}.regular-fixed-field .layout-drag:after{content:'🔒';font-size:12px}.regular-fixed-field .layout-width,.regular-fixed-field .layout-remove,.regular-fixed-field select{display:none!important}.regular-fixed-field .layout-name{height:32px!important;background:#f8fbf9;color:#53615c;cursor:not-allowed;border-color:#d8e5df}.regular-fixed-note{grid-column:3;grid-row:1;white-space:nowrap;font-size:10px;line-height:1;color:#0f5b45;font-weight:700;text-align:center;padding:7px 8px;background:#deece4;border-radius:5px}
@media(max-width:740px){.layout-item.regular-fixed-field{grid-template-columns:24px 1fr 76px!important}.regular-fixed-note{grid-column:3;font-size:9px;padding:6px 4px}}

/* Create Order: calm, consistent controls and an easy-to-scan gemstone workspace. */
#orderForm .field-layout-panel{border-color:#b9d2c5;background:linear-gradient(180deg,#f8fcfa 0%,#f1f8f4 100%);box-shadow:0 8px 24px rgba(20,79,58,.07)}
#orderForm .add-field-inline{align-items:center}
#orderForm .add-field-inline input,#orderForm .add-field-inline select{height:40px;border-color:#cbdad2;background:#fff;color:#17201c}
#orderForm .schema-native-select.sd-native{position:static!important;display:block!important;width:100%!important;height:36px!important;opacity:1!important;pointer-events:auto!important;margin:0!important;padding:7px 30px 7px 9px!important;border:1px solid #cbdad2!important;border-radius:7px!important;background-color:#fff!important;color:#17201c!important;font:inherit!important;font-size:10px!important;cursor:pointer}
#orderForm .schema-select-label{display:grid;gap:3px;min-width:0;color:#61746a;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.2px}
#orderForm .schema-select-label .schema-native-select{height:28px!important;padding-top:4px!important;padding-bottom:4px!important;text-transform:none}
#orderForm .add-field-inline .add-field-btn{height:40px;border:1px solid #2f7f62;background:#e8f4ee;color:#145b43;box-shadow:none;transition:.16s ease}
#orderForm .add-field-inline .add-field-btn:hover{border-color:#1f6c50;background:#dceee5;transform:translateY(-1px)}
#orderForm .layout-save{border:1px solid #2b8060;background:linear-gradient(180deg,#3a9875,#277a5b);color:#fff;box-shadow:0 5px 13px rgba(31,105,77,.18)}
#orderForm .layout-save:hover{background:linear-gradient(180deg,#348d6c,#226d51);transform:translateY(-1px)}
#orderForm .layout-cancel{border-color:#c8d5ce;color:#41564c;background:#fff}
#orderForm .layout-cancel:hover{border-color:#91ad9f;background:#f7faf8}

#orderForm .form-grid>.gemstone-builder{position:relative;overflow:visible;padding:16px;border:1px solid #bad3c6;border-radius:13px;background:linear-gradient(145deg,#fbfefc 0%,#f2f9f5 100%);box-shadow:0 6px 20px rgba(20,76,56,.06)}
#orderForm .gemstone-builder:hover{background:linear-gradient(145deg,#fff 0%,#f1f9f5 100%);box-shadow:0 8px 24px rgba(20,76,56,.09)}
#orderForm .gemstone-builder .builder-head{align-items:center;margin-bottom:13px;padding-bottom:12px;border-bottom:1px solid #dce9e2}
#orderForm .gemstone-builder .builder-head>div:first-child{position:relative;padding-left:39px}
#orderForm .gemstone-builder .builder-head>div:first-child:before{content:'◇';position:absolute;left:0;top:0;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#dfeee6;color:#176047;font-size:17px;font-weight:800}
#orderForm .gemstone-builder .builder-head b{display:block;margin:0;color:#183d31;font-size:13px;letter-spacing:.1px}
#orderForm .gemstone-builder .builder-head small{margin-top:2px;color:#667a70;font-size:9px}
#orderForm .builder-actions{align-items:center}
#orderForm #addGemstoneBtn,#orderForm .gem-column-btn{min-height:36px;padding:8px 12px;border-radius:8px;font-size:10px;font-weight:750;transition:.16s ease}
#orderForm #addGemstoneBtn{border:1px solid #2e8060;background:#e5f3eb;color:#155c43}
#orderForm #addGemstoneBtn:hover{background:#d8ebe1;transform:translateY(-1px)}
#orderForm .gem-column-btn{border-color:#b9cec3;background:#fff;color:#315e4e}
#orderForm .gem-column-btn:hover{border-color:#6f9e88;background:#f4faf7}

#orderForm #gemstoneRows{counter-reset:gemstone-card;display:grid;gap:9px}
#orderForm .gemstone-row,#orderForm .gemstone-row.dynamic-gems{counter-increment:gemstone-card;position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr)) 34px;gap:9px;align-items:end;margin:0;padding:13px 11px 11px 42px;border:1px solid #d7e5dd;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(20,70,52,.04)}
#orderForm .gemstone-row:before{content:counter(gemstone-card);position:absolute;left:10px;top:12px;width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#e1efe7;color:#145c43;font-size:10px;font-weight:800}
#orderForm .gemstone-row:hover{border-color:#a9c9b8;box-shadow:0 6px 16px rgba(20,70,52,.08)}
#orderForm .gemstone-row label{min-width:0;color:#435b50;font-size:8px;font-weight:800;letter-spacing:.15px;text-transform:uppercase}
#orderForm .gemstone-row input,#orderForm .gemstone-row select,#orderForm .gemstone-row .sd-trigger,#orderForm .gemstone-row .ed-trigger{min-height:38px;margin-top:5px!important;border:1px solid #d1ddd6!important;border-radius:8px!important;background:#fbfdfc!important;color:#17201c!important;font-size:10px!important;font-weight:500!important;text-transform:none;box-shadow:none!important}
#orderForm .gemstone-row input::placeholder{color:#89968f!important}
#orderForm .gemstone-row input:hover,#orderForm .gemstone-row select:hover,#orderForm .gemstone-row .sd-trigger:hover,#orderForm .gemstone-row .ed-trigger:hover{border-color:#8eb5a2!important;background:#fff!important}
#orderForm .gemstone-row input:focus,#orderForm .gemstone-row select:focus,#orderForm .gemstone-row .sd-dropdown.open .sd-trigger,#orderForm .gemstone-row .ed-dropdown.open .ed-trigger{border-color:#378263!important;box-shadow:0 0 0 3px rgba(55,130,99,.12)!important}
#orderForm .gemstone-row .gem-remove-row,#orderForm .gemstone-row>button[title="Remove gemstone"]{align-self:end;width:34px;height:38px;margin:0;border:1px solid #d4ded8;border-radius:8px;background:#f6f9f7;color:#60736a!important;font-size:17px;line-height:1;transition:.16s ease}
#orderForm .gemstone-row .gem-remove-row:hover,#orderForm .gemstone-row>button[title="Remove gemstone"]:hover{border-color:#9ab7a8;background:#eaf3ee;color:#174b3b!important;transform:none}
#orderForm .gemstone-empty{position:relative;padding:21px 16px 21px 49px;border:1px dashed #b8cec2;border-radius:10px;background:#fff;color:#60736a;text-align:left;font-size:10px}
#orderForm .gemstone-empty:before{content:'◇';position:absolute;left:16px;top:14px;width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#e7f2ec;color:#286c52;font-weight:800}

#orderForm .gem-column-panel{padding:13px;border-color:#bdd3c7;border-radius:10px;background:#f3f9f6;box-shadow:0 7px 20px rgba(20,76,56,.06)}
#orderForm .gem-column-item{border-color:#d3e0d9;border-radius:8px;padding:7px;background:#fff}
#orderForm .gem-col-name,#orderForm .gem-col-type,#orderForm .gem-col-add input,#orderForm .gem-col-add select{height:38px;border-color:#cbdad2;color:#17201c}
#orderForm .gem-col-remove{border:1px solid #d5dfda;background:#f5f8f6;color:#536960}
#orderForm .gem-col-remove:hover{border-color:#9db9aa;background:#eaf2ee;color:#174b3b}
#orderForm .gem-col-add button,#orderForm .gem-column-save{border:1px solid #2b8060;background:linear-gradient(180deg,#3a9875,#277a5b);color:#fff;box-shadow:0 4px 11px rgba(31,105,77,.15)}
#orderForm .gem-column-cancel{border-color:#c8d5ce;color:#41564c;background:#fff}
#orderForm .gem-column-panel .layout-help{color:#5f7469}

@media(max-width:740px){#orderForm .gemstone-builder{padding:13px}#orderForm .gemstone-builder .builder-head{align-items:stretch}#orderForm .builder-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}#orderForm .gemstone-row,#orderForm .gemstone-row.dynamic-gems{grid-template-columns:1fr 1fr;padding-left:42px}#orderForm .gemstone-row .gem-remove-row,#orderForm .gemstone-row>button[title="Remove gemstone"]{grid-column:1/-1;width:100%}}
@media(max-width:480px){#orderForm .builder-actions{grid-template-columns:1fr}#orderForm .gemstone-row,#orderForm .gemstone-row.dynamic-gems{grid-template-columns:1fr}}

/* Compact, high-contrast gemstone fields across create/edit product, order and stock forms. */
#orderForm .gemstone-row,
#orderForm .gemstone-row.dynamic-gems,
.wo-edit-gemstone-builder .wo-edit-gem-row,
.product-gem-row,
.stock-gem-row{
  grid-template-columns:none!important;
  grid-auto-flow:column;
  grid-auto-columns:minmax(74px,1fr);
  gap:5px!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
}
#orderForm .gemstone-row label,
#orderForm .gemstone-row label *,
.wo-edit-gemstone-builder .wo-edit-gem-row label,
.wo-edit-gemstone-builder .wo-edit-gem-row label *,
.product-gem-row label,
.product-gem-row label *,
.stock-gem-row label,
.stock-gem-row label *{color:#000!important}
#orderForm .gemstone-row input,
#orderForm .gemstone-row select,
#orderForm .gemstone-row .sd-trigger,
.wo-edit-gemstone-builder .wo-edit-gem-row input,
.wo-edit-gemstone-builder .wo-edit-gem-row select,
.wo-edit-gemstone-builder .wo-edit-gem-row .sd-trigger,
.product-gem-row input,.product-gem-row select,.product-gem-row .sd-trigger,
.stock-gem-row input,.stock-gem-row select,.stock-gem-row .sd-trigger{
  min-height:34px!important;
  height:34px!important;
  padding:6px 25px 6px 7px!important;
  font-size:9px!important;
}
.gemstone-row .sd-option-name,.product-gem-row .sd-option-name,.stock-gem-row .sd-option-name{color:#000!important}
#productFilterPanel .sd-option{grid-template-columns:minmax(0,1fr)!important}
#productFilterPanel .sd-rename,#productFilterPanel .sd-remove,#productFilterPanel .sd-footer{display:none!important}
@media(max-width:740px){
  #orderForm .gemstone-row,#orderForm .gemstone-row.dynamic-gems,
  .wo-edit-gemstone-builder .wo-edit-gem-row,.product-gem-row,.stock-gem-row{
    grid-template-columns:1fr 1fr!important;
    grid-auto-flow:row;
    grid-auto-columns:auto;
  }
}

.gemstone-row .sd-trigger,
.wo-edit-gem-row .sd-trigger,
.product-gem-row .sd-trigger,
.stock-gem-row .sd-trigger{
  min-height:42px!important;
  padding:9px 48px 9px 11px!important;
  border:1px solid #c8d9d1!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#17201c!important;
  box-shadow:0 1px 2px rgba(20,64,48,.04)!important;
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease!important;
}

.gemstone-row .sd-trigger::before,
.wo-edit-gem-row .sd-trigger::before,
.product-gem-row .sd-trigger::before,
.stock-gem-row .sd-trigger::before{
  content:'';
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:38px;
  border-left:1px solid #d5e3dc;
  border-radius:0 8px 8px 0;
  background:#f1f8f4;
  pointer-events:none;
  transition:background-color .16s ease,border-color .16s ease;
}

.gemstone-row .sd-trigger::after,
.wo-edit-gem-row .sd-trigger::after,
.product-gem-row .sd-trigger::after,
.stock-gem-row .sd-trigger::after{
  content:'⌄'!important;
  top:50%!important;
  right:12px!important;
  width:14px;
  height:14px;
  color:#145b46;
  font-size:18px!important;
  font-weight:800;
  line-height:10px;
  text-align:center;
  transform:translateY(-50%);
  transition:transform .16s ease,color .16s ease;
}

.gemstone-row .sd-trigger:hover,
.wo-edit-gem-row .sd-trigger:hover,
.product-gem-row .sd-trigger:hover,
.stock-gem-row .sd-trigger:hover{
  border-color:#78a692!important;
  box-shadow:0 4px 12px rgba(24,83,61,.09)!important;
}

.gemstone-row .sd-trigger:hover::before,
.wo-edit-gem-row .sd-trigger:hover::before,
.product-gem-row .sd-trigger:hover::before,
.stock-gem-row .sd-trigger:hover::before{
  background:#e3f1e9;
  border-left-color:#a9c8ba;
}

.gemstone-row .sd-dropdown.open .sd-trigger,
.wo-edit-gem-row .sd-dropdown.open .sd-trigger,
.product-gem-row .sd-dropdown.open .sd-trigger,
.stock-gem-row .sd-dropdown.open .sd-trigger{
  border-color:#1d7457!important;
  box-shadow:0 0 0 3px rgba(38,124,92,.13)!important;
}

.gemstone-row .sd-dropdown.open .sd-trigger::before,
.wo-edit-gem-row .sd-dropdown.open .sd-trigger::before,
.product-gem-row .sd-dropdown.open .sd-trigger::before,
.stock-gem-row .sd-dropdown.open .sd-trigger::before{
  background:#dceee5;
  border-left-color:#8ab7a2;
}

.gemstone-row .sd-dropdown.open .sd-trigger::after,
.wo-edit-gem-row .sd-dropdown.open .sd-trigger::after,
.product-gem-row .sd-dropdown.open .sd-trigger::after,
.stock-gem-row .sd-dropdown.open .sd-trigger::after{
  transform:translateY(-50%) rotate(180deg);
}

@media(max-width:740px){
  .gemstone-row .sd-trigger,
  .wo-edit-gem-row .sd-trigger,
  .product-gem-row .sd-trigger,
  .stock-gem-row .sd-trigger{min-height:44px!important}
}

/* Create Order role-aware layout polish and fixed image workspace. */
#orderForm .attachment-fixed-section{padding:18px 25px;border-bottom:1px solid var(--line);background:#fff}
#orderForm .attachment-fixed-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
#orderForm .attachment-fixed-head h3{margin:0 0 3px;font-size:11px;color:var(--green);text-transform:uppercase}
#orderForm .attachment-fixed-head p{margin:0;color:#63776e;font-size:10px}
#orderForm .attachment-fixed-section .attachment-workspace{margin:0;background:#f8faf8;border-color:var(--line);box-shadow:none}
#orderForm .attachment-fixed-section .attachment-inputs{min-width:0}
#orderForm .attachment-fixed-section .attachment-inputs label{font-size:11px;font-weight:650}
#orderForm .attachment-fixed-section .attachment-inputs input[type=file],#orderForm .attachment-fixed-section .attachment-inputs textarea{display:block;width:100%;max-width:100%;margin-top:5px;padding:9px;border:1px solid #dbe1dd;border-radius:7px;background:#fff;font:inherit}
#orderForm .attachment-fixed-section .attachment-inputs textarea{min-height:72px;resize:vertical}
#orderForm .attachment-fixed-section .attachment-inputs small{display:block;margin-top:3px;color:var(--muted);font-size:9px}

#orderForm .form-grid>label{border-radius:0;transition:none}
#orderForm .form-grid>label:hover{background:transparent;box-shadow:none}
#orderForm .form-grid>label>input:hover,#orderForm .form-grid>label>textarea:hover,#orderForm .form-grid>label>select:hover,#orderForm .form-grid>label>.sd-dropdown>.sd-trigger:hover,#orderForm .form-grid>label>.ed-dropdown>.ed-trigger:hover{border-color:#8eb5a2!important;background:#fff!important}
#orderForm input,#orderForm textarea,#orderForm select,#orderForm .sd-trigger,#orderForm .ed-trigger{transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease,transform .16s ease}
#orderForm input:hover,#orderForm textarea:hover,#orderForm select:hover,#orderForm .sd-trigger:hover,#orderForm .ed-trigger:hover{border-color:#78a692;background:#fbfefc;box-shadow:0 3px 12px rgba(24,83,61,.09)}
#orderForm input:focus,#orderForm textarea:focus,#orderForm select:focus,#orderForm .sd-dropdown.open .sd-trigger,#orderForm .ed-dropdown.open .ed-trigger{border-color:#1d7457!important;box-shadow:0 0 0 3px rgba(38,124,92,.14)!important;outline:0}

#orderForm .sd-trigger,#orderForm .ed-trigger{min-height:40px;border-radius:7px;background:#fff;font-weight:400;transform:none!important}
#orderForm .sd-trigger:after,#orderForm .ed-trigger:after{pointer-events:none}

.field-layout-panel.administrator-layout{border-color:#91b7a5;background:linear-gradient(145deg,#f8fcfa,#edf6f1);box-shadow:0 8px 24px rgba(22,80,58,.09)}
.field-layout-panel.administrator-layout .layout-help{padding:8px 10px;border-radius:7px;background:#deeee6;color:#15543d;font-weight:700}
.field-layout-panel.administrator-layout .layout-item{transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.field-layout-panel.administrator-layout .layout-item:hover{transform:translateY(-1px);border-color:#8fb5a3;box-shadow:0 5px 14px rgba(20,75,54,.1)}
.role-user #orderForm .field-arrange-btn{opacity:.65;cursor:not-allowed}
.role-user #orderForm .field-arrange-btn:before{content:'🔒 ';}

@media(max-width:740px){#orderForm .attachment-fixed-section{padding:18px 25px}#orderForm .attachment-fixed-head{align-items:flex-start}#orderForm .attachment-fixed-section .attachment-workspace{grid-template-columns:1fr}}

.final-action-result{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(8,29,24,.62);backdrop-filter:blur(3px)}
.final-action-result.open{display:flex!important}.final-action-card{width:min(470px,100%);display:grid;grid-template-columns:58px 1fr;gap:16px;align-items:start;padding:28px;background:#fff;border-radius:16px;box-shadow:0 26px 80px rgba(0,0,0,.3)}.final-action-check{width:58px;height:58px;display:grid;place-items:center;border-radius:50%;background:#ddf4e8;color:#096044;font-size:31px;font-weight:800}.final-action-card h2{margin:4px 0 8px;font-size:24px}.final-action-card p{margin:0;color:#41534d;font-size:15px}.final-action-orders{grid-column:1/-1;padding:13px 15px;border:1px solid #c9dfd6;border-radius:9px;background:#f3faf7;color:#173e32;overflow-wrap:anywhere}.final-action-card>button{grid-column:1/-1;justify-self:end;min-width:105px}

.universal-column-launcher{width:34px!important;min-width:34px!important;height:32px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;text-indent:0!important;border:1px solid #9dbdaf!important;border-radius:8px!important;background:#f7fbf9!important;color:#07533f!important;font-size:17px!important;font-weight:800!important;line-height:1!important;box-shadow:none!important}
.universal-column-launcher:hover{background:#e8f4ef!important;border-color:#176b55!important;transform:translateY(-1px)}
body.role-user .universal-column-launcher{display:none!important}
.universal-columns-backdrop{position:fixed;inset:0;z-index:10080;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(12,28,23,.62);backdrop-filter:blur(2px)}
.universal-columns-backdrop.open{display:flex}
.universal-columns-card{width:min(820px,95vw);max-height:min(820px,94vh);display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #b7cfc5;border-radius:12px;box-shadow:0 18px 48px rgba(12,41,32,.22);color:#10231d}
.universal-columns-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 18px 12px;border-bottom:1px solid #dbe7e1}
.universal-columns-card h2{margin:2px 0 3px;font-size:18px}.universal-columns-card header p{margin:0;color:#66776f;font-size:11px}.universal-columns-card .eyebrow{color:#557269;font-size:9px;font-weight:800;letter-spacing:.05em}
.universal-tools{display:flex;align-items:center;gap:9px;padding:10px 14px 7px}.universal-tools label{flex:1;display:flex;align-items:center;border:1px solid #b9d0c6;border-radius:8px;background:#f9fcfb;overflow:hidden}.universal-tools label span{padding:0 9px;color:#176b55}.universal-tools input{width:100%;height:34px;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;font-size:12px!important}.universal-tools>span{white-space:nowrap;color:#66776f;font-size:10px}
.universal-columns-list{flex:1;min-height:0;margin:0 14px;overflow-y:auto;overflow-x:hidden;display:block;background:#fff;padding:0 0 10px;scrollbar-color:#779c8c transparent}
.universal-column-box{margin-bottom:10px;border:1px solid #cbded5;border-radius:10px;background:#f6faf8;overflow:visible}.universal-column-box>header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid #d8e6df;border-radius:9px 9px 0 0;background:#edf6f2}.universal-column-box>header div{display:flex;align-items:baseline;gap:8px}.universal-column-box>header b{font-size:12px}.universal-column-box>header small{font-size:9px;color:#667970}.universal-column-box>header>span{min-width:24px;padding:2px 6px;border-radius:10px;background:#fff;color:#0c5c46;font-size:10px;font-weight:800;text-align:center}.universal-column-box-list{padding:4px;max-height:none;overflow:visible}.universal-selected-box{border-color:#8fbfad}.universal-selected-box>header{background:#e4f3ec}
.universal-column-row{display:grid;grid-template-columns:22px 28px minmax(145px,1fr) minmax(62px,.24fr) minmax(105px,.4fr) 24px 32px 28px;align-items:center;gap:5px;min-height:38px;margin:3px;padding:3px 7px;border:1px solid #d6e3dd;border-radius:7px;background:#fff;transition:border-color .12s,background .12s,box-shadow .12s}
.universal-column-row:hover{border-color:#81ad9b;box-shadow:0 2px 7px rgba(18,78,60,.07)}.universal-column-row.is-visible{border-color:#9fc8b8;background:#f4fbf7}.universal-column-row.dragging{opacity:.55}
.universal-drag{cursor:grab;color:#628477;font-size:15px;text-align:center}.universal-available-box .universal-drag{cursor:default;color:#0b6b50;font-weight:800}.universal-check{display:grid;place-items:center}.universal-check input{width:14px;height:14px;accent-color:#0d6049}.universal-name{height:28px!important;border:1px solid transparent!important;background:transparent!important;border-radius:6px!important;padding:0 6px!important;font-size:12px!important;font-weight:600}.universal-name:focus{background:#fff!important;border-color:#76aa96!important;outline:0}.universal-column-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#74847d;font-size:9px}.universal-usage{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 6px;border:1px solid #d5e3dd;border-radius:9px;background:#f5f9f7;color:#526a60;font-size:8px;font-weight:700}.is-visible .universal-usage{border-color:#b8d8cb;background:#eaf5f0;color:#0c5b46}.universal-active-dot{color:#0b6b50;font-size:7px}
.universal-delete{width:26px;height:26px;padding:0!important;border:1px solid #cbdad3!important;border-radius:6px!important;background:#f6faf8!important;color:#567067!important;font-size:14px!important;line-height:1!important;box-shadow:none!important;cursor:pointer}.universal-delete:hover{background:#e8f3ee!important;border-color:#8eae9f!important;color:#07533f!important;transform:none!important}
.universal-required{display:grid;place-items:center}.universal-required input{width:13px;height:13px;margin:0;accent-color:#0d6049}.universal-required-placeholder{display:block}
.universal-freeze{display:grid;place-items:center;width:26px;height:26px;border:1px solid #c8d9d1;border-radius:7px;background:#fff;color:#7a8882;cursor:pointer}.universal-freeze input{position:absolute;opacity:0;pointer-events:none}.universal-freeze span{font-size:12px;filter:grayscale(1);opacity:.55}.universal-freeze.active{border-color:#42876e;background:#dff0e8;color:#075b43}.universal-freeze.active span{filter:none;opacity:1}
.universal-type-editor{position:relative;display:grid;place-items:center}.universal-type-editor button{width:27px!important;height:27px!important;min-width:27px!important;padding:0!important;border:1px solid #b9d2c7!important;border-radius:7px!important;background:#f4faf7!important;color:#075b43!important;font-size:13px!important;line-height:1!important;box-shadow:none!important}.universal-type-editor button:hover{background:#e5f3ed!important;border-color:#6fa58f!important;transform:none!important}.universal-type-editor select{position:absolute!important;z-index:4;right:0;top:30px;width:112px!important;min-width:112px!important;height:30px!important;min-height:30px!important;padding:3px 22px 3px 7px!important;border:1px solid #8fb7a7!important;border-radius:7px!important;background-color:#fff!important;color:#183229!important;font-size:9px!important;box-shadow:0 6px 18px rgba(10,54,41,.16)!important}.universal-type-editor select[hidden]{display:none!important}
.universal-add{display:grid;grid-template-columns:1fr 120px 36px;gap:7px;margin:9px 14px;padding:8px;border:1px dashed #a8c5b8;border-radius:9px;background:#f0f8f4}.universal-add input,.universal-add select{position:static!important;width:100%!important;height:34px!important;opacity:1!important;pointer-events:auto!important;border:1px solid #b9d0c6!important;border-radius:7px!important;background:#fff!important;padding:0 9px!important;font-size:12px!important}.universal-add button{border:0;border-radius:7px;background:#0d5b46;color:#fff;font-size:17px;font-weight:800}
.universal-columns-card>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid #dbe7e1}.universal-columns-card>footer small{color:#6c7c75;font-size:9px}.universal-columns-card>footer div{display:flex;gap:7px}.universal-columns-card>footer button{min-height:32px;border-radius:7px;padding:0 12px;font-size:12px}.universal-empty{padding:28px;text-align:center;color:#72827b;font-size:12px}
@media(max-width:640px){.universal-columns-card{max-height:96vh}.universal-column-row{grid-template-columns:24px 30px minmax(105px,1fr) minmax(75px,.55fr) 24px 30px 12px}.universal-column-row small{display:none}.universal-usage{font-size:7px}.universal-column-box>header div{display:block}.universal-column-box>header small{display:block;margin-top:2px}.universal-add{grid-template-columns:1fr 42px}.universal-add select{grid-row:2;grid-column:1/-1}.universal-columns-card>footer{align-items:flex-end}.universal-columns-card>footer small{max-width:180px}}

.compact-actions .compact-icon,
.selection-toolbar .compact-symbol-action,
.selection-toolbar .bulk-stage-symbol,
.selection-toolbar #clearSelectedOrders{
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  text-indent:0!important;
  line-height:1!important;
}

/* One consistent close/remove X control across every SCLN view and popup. */
button.scln-x-button {
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e4c5c1 !important;
  border-radius: 8px !important;
  background: #fffafa !important;
  color: #b33c36 !important;
  font: 700 20px/1 Arial, sans-serif !important;
  text-align: center !important;
  text-indent: 0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease !important;
}

button.scln-x-button::before,
button.scln-x-button::after {
  content: none !important;
}

button.scln-x-button:hover:not(:disabled) {
  border-color: #cf8d87 !important;
  background: #fbecea !important;
  color: #922f2a !important;
  box-shadow: 0 4px 11px rgba(146, 47, 42, .12) !important;
  transform: translateY(-1px) !important;
}

button.scln-x-button:focus-visible {
  outline: 2px solid rgba(179, 60, 54, .25) !important;
  outline-offset: 2px !important;
}

button.scln-x-button:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
}

.settings-manage-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-manage-title{margin-top:22px}.settings-manage-title h3{margin:3px 0;font-size:17px}.settings-manage-title p{margin:0;color:#6b7872;font-size:11px}.settings-symbol{display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0;border:1px solid #bfd2c8;border-radius:9px;background:#fff;color:#075f46;font-size:17px;font-weight:800;cursor:pointer}.settings-symbol:hover{background:#eaf5ef;border-color:#6ba58e}.settings-page-groups,.settings-dropdown-groups{display:grid;gap:12px}.settings-page-group,.settings-value-group{border:1px solid #dce6e0;border-radius:12px;background:#fff;overflow:hidden}.settings-page-group>header,.settings-value-group>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#f0f6f3;border-bottom:1px solid #dce6e0}.settings-page-group h4,.settings-value-group h4{margin:0;font-size:13px;color:#143b2e}.settings-page-group header small,.settings-value-group header small{display:block;margin-top:2px;color:#708078;font-size:9px}.settings-page-group header>span{padding:4px 7px;border-radius:10px;background:#dcefe6;color:#176048;font-size:9px;font-weight:700}.settings-name-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:4px 14px 10px}.settings-name-list label{display:grid;grid-template-columns:minmax(110px,.75fr) minmax(150px,1.25fr);align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid #edf1ef}.settings-name-list label>span{overflow:hidden;text-overflow:ellipsis;color:#6c7973;font-size:9px}.settings-name-list input,.settings-value-row input{height:34px;border:1px solid #d3dfd9;border-radius:8px;background:#fff;padding:0 10px;font:inherit;font-size:11px}.settings-name-list input:focus,.settings-value-row input:focus{outline:2px solid rgba(20,111,81,.13);border-color:#428c73}.settings-value-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px 12px}.settings-value-row{display:grid;grid-template-columns:27px minmax(0,1fr) 36px;align-items:center;gap:6px}.settings-value-row .settings-drag{font-size:16px}.settings-remove-symbol{color:#b63b34;border-color:#ecd0cc}.settings-remove-symbol:hover{color:#a42f29;background:#fff1ef;border-color:#e4a9a3}@media(max-width:760px){.settings-manage-grid-compact,.settings-name-list,.settings-value-group>div{grid-template-columns:1fr}.settings-name-list label{grid-template-columns:1fr}.settings-page-group header>span{display:none}}

.settings-value-row[draggable="true"]{cursor:grab;transition:border-color .12s,background-color .12s,opacity .12s}
.settings-value-row[draggable="true"]:active{cursor:grabbing}
.settings-value-row.dragging{opacity:.45}
.settings-value-row.drag-over{border-radius:8px;background:#e5f3ec;box-shadow:inset 0 0 0 2px #4f9176}
.settings-value-row input,.settings-value-row button{cursor:auto}
.settings-value-row .settings-drag{cursor:grab;user-select:none}

/* Staff users may work with data, but structural layout controls remain administrator-only. */
body.role-user #compactArrange,
body.role-user #arrangeRegisterBtn,
body.role-user #ordersView.register-mode-special.register-mode-shipping #compactArrange,
body.role-user #ordersView.register-mode-special.register-mode-shipping #arrangeRegisterBtn,
body.role-user #stageArrangeColumns,
body.role-user .dashboard-recent-columns,
body.role-user .universal-column-launcher,
body.role-user .product-layout-open,
body.role-user .stock-layout-open,
body.role-user .quick-columns-launch,
body.role-user #sellerArrangeColumns,
body.role-user #orderCostArrangeColumns,
body.role-user .repeat-buyer-columns,
body.role-user #productArrangeGemstones,
body.role-user #editArrangeStones,
body.role-user #stockArrangeGemstones,
body.role-user .gem-column-btn,
body.role-user #miniArrangeColumns,
body.role-user #miniAddColumn,
body.role-user [data-add-rows],
body.role-user .mini-rename-icon {
  display: none !important;
}

/* Users can add and rename dropdown values; deletion stays administrator-only. */
body.role-user .sd-remove,
body.role-user .sd-remove-confirm,
body.role-user .ed-action.remove,
body.role-user .ed-confirm {
  display: none !important;
}

body.role-user .mini-column-head {
  cursor: default;
}

@media (max-width: 740px) {
  body.role-user #compactArrange,
  body.role-user #arrangeRegisterBtn,
  body.role-user #ordersView.register-mode-special.register-mode-shipping #compactArrange,
  body.role-user #ordersView.register-mode-special.register-mode-shipping #arrangeRegisterBtn,
  body.role-user #stageArrangeColumns,
  body.role-user .dashboard-recent-columns,
  body.role-user .universal-column-launcher,
  body.role-user .product-layout-open,
  body.role-user .stock-layout-open,
  body.role-user .quick-columns-launch,
  body.role-user #sellerArrangeColumns,
  body.role-user #orderCostArrangeColumns,
  body.role-user .repeat-buyer-columns,
  body.role-user #productArrangeGemstones,
  body.role-user #editArrangeStones,
  body.role-user #stockArrangeGemstones,
  body.role-user .gem-column-btn,
  body.role-user #miniArrangeColumns,
  body.role-user #miniAddColumn,
  body.role-user [data-add-rows],
  body.role-user .mini-rename-icon {
    display: none !important;
  }
}

.repeat-buyer-badge{display:inline-flex;align-items:center;margin-left:6px;padding:2px 6px;border:1px solid #d79a31;border-radius:999px;background:#fff7e8;color:#8b5700;font:700 9px/1.2 inherit;white-space:nowrap;vertical-align:middle;cursor:pointer}.repeat-buyer-badge:hover{background:#ffedc8;border-color:#b87400}.repeat-buyer-backdrop{position:fixed;inset:0;z-index:10050;display:none;place-items:center;padding:20px;background:rgba(18,31,28,.48)}.repeat-buyer-backdrop.open{display:grid}.repeat-buyer-card{width:min(560px,100%);max-height:min(680px,88vh);overflow:hidden;border:1px solid #bfd0ca;border-radius:14px;background:#fff;box-shadow:0 22px 70px rgba(0,0,0,.22)}.repeat-buyer-card>header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #dbe6e1}.repeat-buyer-card>header span{color:#9a640f;font-size:9px;font-weight:800;letter-spacing:.09em}.repeat-buyer-card h2{margin:4px 0 2px;font-size:20px}.repeat-buyer-card p{margin:0;color:#64736e;font-size:11px}.repeat-buyer-list{display:grid;gap:7px;max-height:560px;overflow:auto;padding:12px}.repeat-buyer-list>button{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;width:100%;padding:10px 12px;border:1px solid #d5e1dc;border-radius:9px;background:#fff;text-align:left;cursor:pointer}.repeat-buyer-list>button:hover{border-color:#18705a;background:#f3faf7}.repeat-buyer-list span{display:grid;gap:2px}.repeat-buyer-list b{font-size:11px}.repeat-buyer-list small{color:#687872;font-size:9px}.repeat-buyer-list i{padding:2px 6px;border-radius:999px;background:#e5f4ee;color:#11634f;font-size:8px;font-style:normal;font-weight:800}

#orderRows td[data-key="customer"]{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-width:170px}
#orderRows td[data-key="customer"]>b{display:inline!important;max-width:none!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere}
#orderRows td[data-key="customer"]>.sub{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.register-stage-text{display:inline-block;max-width:none;padding:2px 0 3px;white-space:normal;overflow:visible;text-overflow:clip;color:#173d34;font-size:11px;font-weight:700;line-height:1.35;border-bottom:1px solid #58756a;cursor:default;transition:color .15s ease,border-color .15s ease,transform .15s ease}
.register-stage-text:hover{color:#0b6047;border-bottom-color:#0b6047;transform:translateY(-1px)}
#orderRows td[data-key="stage"]>.ed-dropdown,#orderRows td[data-key="stage"]>.sd-dropdown{display:none!important}
#orderRows td[data-key="stage"]{min-width:140px;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.repeat-buyer-name{padding:1px 3px;border-radius:3px;background:#fff2bd!important;color:#173d34!important}
.repeat-buyer-badge{display:inline-flex!important;align-items:center!important;margin-left:4px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#a46a00!important;font-size:10px!important;font-weight:800!important;white-space:nowrap;vertical-align:middle;cursor:pointer}
.repeat-buyer-badge:hover{background:transparent!important;color:#075f49!important;text-decoration:underline}
.repeat-buyer-head-actions{display:flex;align-items:center;gap:7px}.repeat-buyer-columns{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid #bfd3cb;border-radius:8px;background:#f5faf8;color:#075f49;font-size:16px;font-weight:800;cursor:pointer}.repeat-buyer-columns:hover{border-color:#075f49;background:#e8f4ef}.repeat-buyer-order-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;width:100%}.repeat-buyer-order-fields span{min-width:0}.repeat-buyer-order-fields small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repeat-buyer-order-fields b{overflow-wrap:anywhere}
.repeat-buyer-image-field img{display:block;width:44px;height:44px;margin-top:2px;border:1px solid #d5e1dc;border-radius:5px;background:#f4f7f6;object-fit:contain}
.repeat-buyer-list>button.repeat-buyer-current-order{border-color:#14705a;background:#edf8f4;box-shadow:inset 3px 0 0 #14705a,0 2px 7px rgba(12,91,70,.08)}
.repeat-buyer-list>button.repeat-buyer-current-order:hover{border-color:#075f49;background:#e5f4ee}
.repeat-buyer-list>button{grid-template-columns:1fr!important;text-align:center!important}
.repeat-buyer-order-fields{align-items:center!important}
.repeat-buyer-order-fields span{place-items:center!important;align-content:center!important;text-align:center!important}
.repeat-buyer-image-field img{margin:2px auto 0!important}
.repeat-buyer-list>button>i{display:none!important}

/* Screen-only safety net: product/order images must stay inside their own UI boxes. */
@media screen{
  :is(
    .seller-order-image,
    .stage-order-image,
    .dashboard-attention-image,
    .dashboard-recent-image,
    .repeat-buyer-image-field,
    .stock-image-box,
    .stock-live-preview,
    .stock-media-thumb,
    .stock-order-thumb,
    .stock-shipped-image,
    .stock-transfer-image,
    .review-image-cell,
    .order-cost-image,
    .preview-card,
    .product-main-preview,
    .cad-main-preview,
    .product-card-image,
    .product-compact-image-card,
    .product-gallery-thumb,
    .wo-current-image,
    .wo-cad-image-preview,
    .wo-image-thumb,
    .quick-cad-image-card,
    .order-cad-image-card,
    .additional-thumbs
  ) img,
  img.order-thumb,
  img.detail-main-image,
  img.full-main-image,
  img.product-main-image,
  img.stock-card-image{
    box-sizing:border-box!important;
    display:block!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    transform:none!important;
  }
  .seller-order-image,.stage-order-image,.dashboard-attention-image,.stock-image-box,.stock-live-preview,.stock-order-thumb,.stock-shipped-image,.stock-transfer-image,.review-image-cell,.order-cost-image,.wo-current-image,.wo-cad-image-preview{
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
}

/* Bag Card production layout — single source of truth. */
.bag-print-document{--card-size:90mm;--card-gap:2mm;--image-size:15mm;--bag-font:6.4pt;--detail-font:var(--bag-font);--detail-pad:.17mm;color:#17201c}
.bag-print-document,.bag-print-document *{box-sizing:border-box}
.bag-print-document{display:block;width:287mm;margin:0 auto;background:#fff}
.bag-print-document .bag-page{width:287mm;height:200mm;min-height:200mm;max-height:200mm;margin:0 auto 8mm;padding:2mm;overflow:hidden;background:#fff;display:grid;grid-template-rows:4mm 182mm 2mm;gap:.5mm;break-after:page;page-break-after:always}
.bag-print-document .bag-page:last-child{margin-bottom:0;break-after:auto;page-break-after:auto}
.bag-print-document .bag-page-head{height:4mm;display:flex;align-items:center;justify-content:space-between;font-size:5.6pt;color:#53635c}
.bag-print-document .bag-page-head b{font-size:6.8pt;color:#123f33;letter-spacing:.01em}
.bag-print-document .bag-page-footer{height:2mm;display:flex;align-items:end;justify-content:flex-end;font-size:4.2pt;color:#53635c}
.bag-print-document .bag-card-grid{width:274mm;height:182mm;margin:auto;display:grid;grid-template-columns:repeat(3,90mm);grid-template-rows:repeat(2,90mm);gap:2mm;place-content:center}
.bag-print-document .card-slot,.bag-print-document .bag-card{width:90mm;height:90mm;min-width:90mm;min-height:90mm;max-width:90mm;max-height:90mm}
.bag-print-document .card-slot{overflow:visible}.bag-print-document .card-slot.is-empty{visibility:hidden}
.bag-print-document .bag-card{margin:0;padding:1.2mm;overflow:hidden;border:.32mm solid #222;border-radius:2.2mm;background:#fff;box-shadow:none;font-size:var(--bag-font)}
.bag-print-document .bag-card-content{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;display:grid;grid-template-rows:7mm auto auto auto 26.4mm;align-content:start;gap:.7mm;transform:none!important}
.bag-print-document .bag-number-row{grid-row:1;width:100%;height:7mm;margin:0;padding:.8mm 2mm;display:flex;align-items:center;justify-content:space-between;gap:1mm;border:0;border-bottom:.22mm solid #555;border-radius:0;background:#fff;font-size:calc(var(--bag-font) * 1.016);line-height:1}
.bag-print-document .bag-number-row span{font-weight:500;color:#000;text-align:right;text-transform:uppercase}.bag-print-document .bag-number-row strong{font-size:calc(var(--bag-font) * 1.438);font-weight:700;color:#000;letter-spacing:.012em;text-transform:uppercase}
.bag-print-document .bag-card-top{grid-row:2;width:100%;height:auto;min-width:0;min-height:0;margin:0;overflow:hidden;display:grid;grid-template-columns:var(--image-size) minmax(0,1fr);gap:4mm;align-items:start}
.bag-print-document .bag-primary-details{width:100%;min-width:0;height:100%;overflow:hidden}
.bag-print-document .bag-card-detail-column{width:auto;min-width:0;height:auto;margin:0;padding:0;overflow:visible}
.bag-print-document .bag-image-box{width:var(--image-size);height:var(--image-size);min-width:var(--image-size);min-height:var(--image-size);max-width:var(--image-size);max-height:var(--image-size);margin:0;padding:.5mm;overflow:hidden;display:grid;place-items:center;border:.2mm solid #aaa;border-radius:1.2mm;background:#fff;box-shadow:none}
.bag-print-document .bag-image-box img,.bag-print-document .bag-card-image{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;margin:0;object-fit:contain;object-position:center;transform:none}
.bag-print-document .bag-detail-table{width:100%;min-width:0;max-width:100%;margin:0;border-collapse:collapse;table-layout:fixed;font-size:var(--detail-font);line-height:1.12}
.bag-print-document .bag-detail-table th,.bag-print-document .bag-detail-table td{height:4.45mm;padding:.35mm .55mm;border:0;border-bottom:.14mm solid #aaa;background:#fff;text-align:left;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.12}
.bag-print-document .bag-detail-table th{width:42%;color:#000;font-weight:500;text-transform:uppercase}.bag-print-document .bag-detail-table td{color:#000;font-weight:650}
.bag-print-document .bag-detail-table tr:nth-child(even) td{background:#fbfdfc}
.bag-print-document .bag-detail-table tr[data-bag-field="customer"] td,.bag-print-document .bag-detail-table tr[data-bag-field="buyer"] td,.bag-print-document .bag-detail-table tr[data-bag-field="buyerName"] td{font-size:var(--bag-buyer-font,var(--detail-font))!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bag-print-document .bag-remark-row{grid-row:3;min-width:0;height:auto;min-height:7mm;max-height:12mm;padding:4px 1.5mm;border:.18mm solid #82aebf;border-radius:1mm;display:grid;grid-template-rows:auto auto;gap:.25mm;overflow:hidden;background:#e8f5fb;font-size:calc(var(--bag-font) * .906);font-weight:700;line-height:1.15}.bag-print-document .bag-remark-row b{font-size:calc(var(--bag-font) * .891);font-weight:700;text-transform:uppercase}.bag-print-document .bag-remark-row span{min-height:2.5mm;padding-bottom:.35mm;border-bottom:.18mm solid #759dac;font-weight:700;overflow:hidden;white-space:normal;overflow-wrap:anywhere}
.bag-print-document .bag-extra-details{grid-row:4;min-height:0;height:auto;overflow:hidden;display:block}.bag-print-document .bag-extra-details.is-empty{display:none}.bag-print-document .bag-extra-details .bag-detail-table{width:100%}.bag-print-document .bag-extra-details .bag-detail-table tbody{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35mm 2mm}.bag-print-document .bag-extra-details .bag-detail-table tr{display:grid;grid-template-columns:minmax(0,42%) minmax(0,58%);min-width:0;min-height:3mm;border-bottom:.1mm solid #b8b8b8}.bag-print-document .bag-extra-details .bag-detail-table th,.bag-print-document .bag-extra-details .bag-detail-table td{width:auto;height:auto;min-height:3mm;padding:.2mm .45mm;border:0!important;overflow:hidden;overflow-wrap:anywhere;font-size:5pt;line-height:1.05}
.bag-print-document .bag-production-weight-row{grid-row:5;width:100%;height:26.4mm;min-width:0;margin:0;padding:4px 0;overflow:visible;align-self:start;border:0;border-radius:0}
.bag-print-document .bag-extra-details .bag-detail-table th,.bag-print-document .bag-extra-details .bag-detail-table td{font-size:calc(var(--bag-font) * .781)}
.bag-print-document .weight-title{width:100%;height:3.3mm;margin:0;padding:.42mm 1.2mm;border:0;border-bottom:.16mm solid #999;border-radius:0;background:#f3f3f3;color:#000;font-size:calc(var(--bag-font) * .813);line-height:1;font-weight:600;text-transform:uppercase}
.bag-print-document .bag-weight-table{width:100%;height:20.7mm;min-width:0;margin:0;border-collapse:collapse;table-layout:fixed;font-size:calc(var(--bag-font) * .797);line-height:1}
.bag-print-document .bag-weight-table thead,.bag-print-document .bag-weight-table tbody{height:auto}
.bag-print-document .bag-weight-table tr{height:3.45mm}
.bag-print-document .bag-weight-table th,.bag-print-document .bag-weight-table td{height:3.45mm;min-height:3.45mm;padding:.16mm 1mm;border:.14mm solid #aaa;background:#fff;color:#000;line-height:1.08}
.bag-print-document .bag-weight-table thead th{background:#e4f0eb;color:#145440;text-align:center;font-weight:800}.bag-print-document .bag-weight-table tr>:first-child{width:48%;text-align:left}.bag-print-document .bag-weight-table th:not(:first-child),.bag-print-document .bag-weight-table td{text-align:center}
.preview-document-wrap.bag-preview-mode{overflow:auto;padding:14px}.bag-preview-mode .preview-document{width:100%;max-width:100%;min-height:0;padding:12px;overflow:hidden}.bag-preview-mode .bag-print-document{transform-origin:top center}
.bag-column-backdrop{display:none;position:fixed;inset:0;z-index:360;align-items:center;justify-content:center;padding:18px;background:#0e1b1588}.bag-column-backdrop.open{display:flex}.bag-column-modal{width:min(620px,100%);max-height:88vh;overflow:auto;border-radius:12px;background:#fff;box-shadow:0 24px 70px #0004}.bag-column-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:18px 20px;border-bottom:1px solid #d7e1dc}.bag-column-head h2{margin:3px 0;font-size:19px}.bag-column-head p{margin:0;color:#66766e;font-size:10px}.bag-column-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:16px 20px}.bag-column-list label{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid #d5e1db;border-radius:8px;background:#f8faf9;font-size:11px;font-weight:650;cursor:pointer}.bag-column-list label:has(input:checked){border-color:#4c8a76;background:#edf7f2;color:#145440}.bag-column-list input{width:15px;height:15px;accent-color:#145440}.bag-column-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid #d7e1dc}.bag-column-edit-button{white-space:nowrap}
@media(max-width:620px){.bag-column-list{grid-template-columns:1fr}}
.bag-column-search{display:flex;align-items:center;gap:8px;margin:14px 20px 0;padding:9px 11px;border:1px solid #cbdad3;border-radius:8px;background:#fff}.bag-column-search input{width:100%;border:0;outline:0;font:inherit}.bag-column-list label>span{display:grid;min-width:0}.bag-column-list label b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bag-column-list label small{color:#84918b;font-size:8px;font-weight:500}.bag-column-list label:has(input:checked){box-shadow:inset 3px 0 #2b755f}.bag-column-empty{grid-column:1/-1;padding:28px;text-align:center;color:#718078}.bag-column-actions{align-items:center}.bag-column-actions>span{margin-right:auto;color:#52665d;font-size:10px;font-weight:700}
.bag-display-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 20px 0}.bag-display-controls label{padding:10px 12px;border:1px solid #d5e1db;border-radius:9px;background:#f8faf9;color:#26352f;font-size:10px;font-weight:600}.bag-display-controls label span{float:right;color:#4c6259;font-weight:500}.bag-display-controls input{display:block;width:100%;margin-top:8px;accent-color:#145440}.bag-column-list label>i{width:16px;color:#557169;font-style:normal;text-align:center;cursor:grab}.bag-column-list label.is-selected{cursor:grab}.bag-column-list label.is-selected:active{opacity:.65}
.bag-column-name-line{display:flex;align-items:center;gap:6px;min-width:0}.bag-column-name-line b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bag-label-edit{flex:none;width:25px;height:25px;padding:0;border:1px solid #a8c2b7;border-radius:6px;background:#fff;color:#145440;font-size:12px;line-height:1;cursor:pointer}.bag-label-edit:hover{border-color:#17624d;background:#e9f5f0}.bag-column-list .bag-column-rename{display:block;width:100%!important;min-width:0!important;height:28px!important;padding:4px 7px!important;border:1px solid #a9c4b9!important;border-radius:6px!important;background:#fff!important;color:#163f33!important;font-size:10.5px!important;font-weight:600!important;outline:0}.bag-column-list .bag-column-rename[hidden]{display:none!important}.bag-column-list .bag-column-rename:focus{border-color:#17624d!important;box-shadow:0 0 0 2px #17624d18}.bag-column-list label:has(.bag-column-rename:focus){cursor:default;opacity:1}
.bag-weight-editor{margin:12px 20px 0;padding:10px 12px;border:1px solid #d5e1db;border-radius:9px;background:#fff}.bag-weight-editor header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:10px}.bag-weight-editor header button,.bag-weight-edit-row button{width:25px;height:25px;padding:0;border:1px solid #b8c9c1;border-radius:6px;background:#fff;color:#174f40;cursor:pointer}.bag-weight-editor #bagWeightList{display:grid;gap:5px}.bag-weight-edit-row{display:grid;grid-template-columns:18px minmax(0,1fr) 25px 25px;gap:5px;align-items:center}.bag-weight-edit-row i{color:#61766d;font-style:normal;cursor:grab}.bag-weight-edit-row input{height:27px;padding:4px 7px;border:1px solid transparent;border-radius:5px;background:#f7faf8;font-size:10px}.bag-weight-edit-row input:not([readonly]){border-color:#75a391;background:#fff;outline:0}
.bag-remark-editor{margin:12px 20px 0;padding:10px 12px;border:1px solid #d5e1db;border-radius:9px;background:#fff}.bag-remark-editor header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:10px}.bag-remark-editor header button{width:25px;height:25px;padding:0;border:1px solid #b8c9c1;border-radius:6px;background:#fff;color:#174f40;cursor:pointer}.bag-remark-editor select,.bag-remark-editor input{width:100%;height:30px;margin-top:5px;padding:4px 8px;border:1px solid #ccd9d3;border-radius:6px;background:#fff;font-size:10px}.bag-remark-editor input[readonly]{background:#f7faf8;color:#40544b}.bag-remark-editor input:not([readonly]){border-color:#75a391;outline:0}
/* Monochrome production card: only the order image keeps colour. */
.bag-print-document .bag-card,.bag-print-document .bag-card :where(div,section,table,thead,tbody,tr,th,td,span,strong,b){color:#000!important;border-color:#b8b8b8!important;background:#fff!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important;-webkit-text-fill-color:#000!important;font-weight:400!important}
.bag-print-document .bag-card{border-color:#777!important;border-radius:.8mm!important}
.bag-print-document .bag-number-row{border-color:#aaa!important;background:#fff!important}
.bag-print-document .bag-number-row span,.bag-print-document .bag-number-row strong{font-weight:400!important;color:#000!important}
.bag-print-document .bag-detail-table th,.bag-print-document .bag-detail-table td{font-weight:400!important;color:#000!important;background:#fff!important;line-height:1.14!important;border-color:#b8b8b8!important}
.bag-print-document .weight-title{font-weight:400!important;color:#000!important;background:#fff!important;border:0!important;border-bottom:.1mm solid #b8b8b8!important}
.bag-print-document .bag-production-weight-row{border:0!important;border-radius:0!important}
.bag-print-document .bag-weight-table th,.bag-print-document .bag-weight-table td{font-weight:400!important;color:#000!important;background:#fff!important;line-height:1.1!important;border:.1mm solid #b8b8b8!important}
.bag-print-document .bag-weight-table thead th{font-weight:400!important;background:#fff!important}
.bag-print-document .bag-image-box{border-color:#bbb!important;background:#fff!important}
@media print{@page{size:A4 landscape;margin:4mm}html,body{width:100%!important;margin:0!important;padding:0!important;background:#fff!important}#print-container,#print-container .preview-document{width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;box-shadow:none!important}.bag-print-document{width:285mm!important;max-width:285mm!important;margin:0 auto!important;zoom:1!important;transform:none!important;overflow:visible!important}.bag-print-document .bag-page{width:285mm!important;height:198mm!important;min-height:198mm!important;max-height:198mm!important;margin:0!important;padding:1mm!important;overflow:hidden!important;box-shadow:none!important;break-inside:avoid-page!important;page-break-inside:avoid!important}.bag-print-document .bag-card-grid{width:274mm!important;height:182mm!important}.bag-print-document .card-slot,.bag-print-document .bag-card{break-inside:avoid!important;page-break-inside:avoid!important}.bag-print-document .bag-card{font-size:92%!important}.bag-print-document .bag-card-content{grid-template-rows:7mm 27mm auto auto 26.4mm!important;align-content:start!important;gap:.7mm!important;overflow:visible!important}.bag-print-document .bag-card-top,.bag-print-document .bag-primary-details,.bag-print-document .bag-card-detail-column{height:27mm!important;min-height:27mm!important;overflow:visible!important}.bag-print-document .bag-image-box,.bag-print-document .bag-image-box img,.bag-print-document .bag-card-image{overflow:hidden!important;object-fit:contain!important;object-position:center!important;max-width:100%!important;max-height:100%!important;break-inside:avoid!important}.bag-print-document .bag-detail-table th,.bag-print-document .bag-detail-table td{height:4.35mm!important;padding:.25mm .5mm!important}.bag-print-document .bag-remark-row{height:auto!important;min-height:7mm!important;max-height:12mm!important;padding:4px 1.5mm!important}.bag-print-document .bag-extra-details{height:auto!important}.bag-print-document .bag-extra-details .bag-detail-table tr,.bag-print-document .bag-extra-details .bag-detail-table th,.bag-print-document .bag-extra-details .bag-detail-table td{height:auto!important;min-height:3mm!important;padding:.2mm .45mm!important}.bag-print-document .bag-production-weight-row{height:26.4mm!important;min-height:26.4mm!important;max-height:26.4mm!important;padding:4px 0!important;overflow:visible!important;align-self:start!important;border:0!important}.bag-print-document .weight-title{height:3.3mm!important;padding:.42mm 1.2mm!important}.bag-print-document .bag-weight-table{height:20.7mm!important}.bag-print-document .bag-weight-table tr,.bag-print-document .bag-weight-table th,.bag-print-document .bag-weight-table td{height:3.45mm!important;min-height:3.45mm!important;max-height:3.45mm!important;padding:.16mm 1mm!important;line-height:1.08!important}.bag-print-document .bag-card,.bag-print-document .bag-card *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.bag-print-document .bag-card img{filter:none!important}}
@media print{.bag-print-document .bag-card{font-size:var(--bag-font)!important}}

/* Value colours are deliberately limited to Metal and Plating/Rhodium value cells in Bag Print. */
.bag-print-document .bag-detail-table tr.bag-value-colour>td{background:var(--bag-value-bg)!important;color:var(--bag-value-text)!important;-webkit-text-fill-color:var(--bag-value-text)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;font-weight:600!important}
.bag-value-colour-editor{margin-top:14px;padding:14px;border:1px solid #cfddd6;border-radius:11px;background:#fbfdfc}.bag-value-colour-editor header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.bag-value-colour-editor header b,.bag-value-colour-editor header small{display:block}.bag-value-colour-editor header small{margin-top:3px;color:#6d7b74;font-size:10px;font-weight:400}.bag-value-colour-list{display:grid;gap:7px}.bag-value-colour-row{display:grid;grid-template-columns:minmax(70px,1fr) auto auto minmax(76px,auto);gap:10px;align-items:center;padding:8px 10px;border:1px solid #e1e8e4;border-radius:8px;background:#fff}.bag-value-colour-row>label{display:flex;align-items:center;gap:6px;color:#64716b;font-size:9px}.bag-value-colour-row input[type=color]{width:30px;height:25px;padding:1px;border:1px solid #cad5cf;border-radius:5px;background:#fff;cursor:pointer}.bag-value-colour-row>span{padding:5px 9px;border-radius:5px;background:var(--sample-bg);color:var(--sample-text);font-size:10px;font-weight:700;text-align:center}
@media(max-width:620px){.bag-value-colour-row{grid-template-columns:1fr 1fr}.bag-value-colour-row>span{grid-column:1/-1}.bag-value-colour-row>label{justify-content:flex-end}}

/* Compact launcher inside Edit Columns and a focused value-colour popup. */
.bag-value-colour-editor.compact{margin:12px 0;padding:0;border:0;background:transparent}.bag-value-colour-editor.compact>button{width:100%;min-height:54px;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border:1px solid #cfddd6;border-radius:10px;background:#fff;color:#17201c;text-align:left;cursor:pointer}.bag-value-colour-editor.compact>button:hover{border-color:#7eaa96;background:#f5faf7}.bag-value-colour-editor.compact span b,.bag-value-colour-editor.compact span small{display:block}.bag-value-colour-editor.compact span b{font-size:12px}.bag-value-colour-editor.compact span small{margin-top:3px;color:#718078;font-size:9px;font-weight:400}.bag-value-colour-editor.compact i{color:#176045;font-size:24px;font-style:normal;line-height:1}
.bag-value-colour-backdrop{position:fixed;inset:0;z-index:10050;display:none;place-items:center;padding:16px;background:#10201980}.bag-value-colour-backdrop.open{display:grid}.bag-value-colour-panel{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;border:1px solid #cbd9d2;border-radius:14px;background:#fff;box-shadow:0 24px 70px #07130d40}.bag-value-colour-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 18px 13px;border-bottom:1px solid #e1e8e4}.bag-value-colour-panel>header small{color:#b77a1c;font-size:8px;font-weight:800}.bag-value-colour-panel>header h3{margin:3px 0;font-size:20px}.bag-value-colour-panel>header p{margin:0;color:#6d7a74;font-size:10px}.bag-value-colour-panel>header button{width:36px;height:36px;border:1px solid #efc5c1;border-radius:9px;background:#fff9f8;color:#b63d34;font-size:21px;cursor:pointer}.bag-value-colour-groups{display:grid;gap:10px;padding:15px}.bag-colour-group{padding:12px;border:1px solid #dce5e0;border-radius:10px;background:#f9fbfa}.bag-colour-group>label{display:grid;grid-template-columns:145px 1fr;gap:10px;align-items:center}.bag-colour-group select{width:100%;height:38px;padding:0 10px;border:1px solid #c9d6cf;border-radius:8px;background:#fff;font:inherit}.bag-colour-pickers{display:grid;grid-template-columns:auto auto 1fr;gap:9px;align-items:end;margin-top:10px}.bag-colour-pickers label{display:grid;gap:4px;color:#68766f;font-size:8px}.bag-colour-pickers input{width:48px;height:31px;padding:2px;border:1px solid #c8d4ce;border-radius:6px;background:#fff}.bag-colour-pickers span{min-height:31px;display:grid;place-items:center;padding:0 10px;border-radius:6px;background:var(--sample-bg);color:var(--sample-text);font-size:11px;font-weight:800}.bag-value-colour-panel>footer{display:flex;justify-content:flex-end;padding:12px 15px;border-top:1px solid #e1e8e4}.bag-value-colour-panel>footer button{min-width:90px}
@media(max-width:520px){.bag-value-colour-panel{border-radius:11px}.bag-colour-group>label{grid-template-columns:1fr;gap:6px}.bag-colour-pickers{grid-template-columns:1fr 1fr}.bag-colour-pickers input{width:100%}.bag-colour-pickers span{grid-column:1/-1}}

html,body,body *{text-shadow:none!important}
@media print{#print-container,#print-container *{text-shadow:none!important}}

.bag-print-document .bag-card-content>.bag-remark-row{
  background-color:#d7eef8!important;
  color:#000!important;
  font-weight:400!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}
.bag-print-document .bag-card-content>.bag-remark-row b,
.bag-print-document .bag-card-content>.bag-remark-row span{
  background:transparent!important;
  color:#000!important;
  font-weight:400!important;
  -webkit-text-fill-color:#000!important;
}
@media print{
  .bag-print-document .bag-card-content>.bag-remark-row{
    background-color:#d7eef8!important;
    font-weight:400!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}

.special-month-archive{display:flex;align-items:center;gap:14px;margin:0 0 12px;padding:10px 13px;border:1px solid #d5e1db;border-radius:11px;background:#fff}.special-month-archive[hidden]{display:none!important}.special-month-archive>div{min-width:180px}.special-month-archive>div small,.special-month-archive>div b{display:block}.special-month-archive>div small{color:#b67819;font-size:8px;font-weight:800;letter-spacing:.45px}.special-month-archive>div b{margin-top:2px;font-size:13px}.special-month-archive label{display:flex;align-items:center;gap:7px;color:#68766f;font-size:10px}.special-month-archive select{height:36px;min-width:175px;padding:0 30px 0 10px;border:1px solid #c8d6cf;border-radius:8px;background:#fff;color:#17201c;font:600 12px/1 inherit}.special-month-archive>span{margin-left:auto;color:#74817b;font-size:9px}.special-month-archive.is-searching{border-color:#8cb7a3;background:#f2f9f5}.special-month-archive.is-searching>span{color:#0d6044;font-weight:700}
@media(max-width:700px){.special-month-archive{align-items:stretch;flex-wrap:wrap}.special-month-archive>div{min-width:0;flex:1}.special-month-archive label{width:100%;justify-content:space-between}.special-month-archive select{flex:1;min-width:0}.special-month-archive>span{width:100%;margin:0}}

/* Small fixed system selector beside the register toolbar buttons. Native select keeps long future lists viewport-limited. */
.toolbar-actions .special-month-archive,.compact-actions .special-month-archive{display:inline-flex;flex:0 0 auto;align-items:center;gap:0;margin:0;padding:0;border:0;border-radius:0;background:transparent}.toolbar-actions .special-month-archive[hidden],.compact-actions .special-month-archive[hidden]{display:none!important}.toolbar-actions .special-month-archive label,.compact-actions .special-month-archive label{display:flex;width:auto;align-items:center;gap:5px;color:#68766f;font-size:9px}.toolbar-actions .special-month-archive label>span,.compact-actions .special-month-archive label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.toolbar-actions .special-month-archive select,.compact-actions .special-month-archive select{width:145px;min-width:145px;max-width:145px;height:42px;padding:0 25px 0 9px;border:1px solid #cbd8d1;border-radius:9px;background:#fff;color:#16372c;font:700 10px/1 inherit;cursor:pointer}.toolbar-actions .special-month-archive.is-searching select,.compact-actions .special-month-archive.is-searching select{border-color:#3f8d70;background:#edf7f2}
@media(max-width:700px){.toolbar-actions .special-month-archive,.compact-actions .special-month-archive{width:auto}.toolbar-actions .special-month-archive label,.compact-actions .special-month-archive label{width:auto}.toolbar-actions .special-month-archive select,.compact-actions .special-month-archive select{width:126px;min-width:126px;max-width:126px;height:40px;font-size:9px}}

.special-month-archive{position:relative!important;overflow:visible!important}.special-month-trigger{width:154px;height:42px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 11px;border:1px solid #c8d7cf;border-radius:9px;background:#fff;color:#17392e;font:700 11px/1 inherit;box-shadow:0 1px 2px #10251b0a;cursor:pointer;white-space:nowrap}.special-month-trigger:hover{border-color:#79a58f;background:#f9fcfa}.special-month-trigger:focus-visible{outline:3px solid #c9e1d5;outline-offset:1px}.special-month-trigger i{color:#176045;font-size:13px;font-style:normal;transition:transform .15s}.special-month-archive.open .special-month-trigger{border-color:#45896f;box-shadow:0 0 0 3px #dcece4}.special-month-archive.open .special-month-trigger i{transform:rotate(180deg)}.special-month-menu{position:absolute;z-index:4200;top:calc(100% + 5px);right:0;display:none;width:190px;max-height:230px;overflow-y:auto;padding:5px;border:1px solid #cbd8d1;border-radius:10px;background:#fff;box-shadow:0 14px 34px #10251b2b;scrollbar-width:thin;overscroll-behavior:contain}.special-month-archive.open .special-month-menu{display:grid;gap:2px}.special-month-menu button{width:100%;min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:#263a32;font:600 11px/1.2 inherit;text-align:left;cursor:pointer}.special-month-menu button:hover{background:#edf6f1;color:#0d5c40}.special-month-menu button[aria-selected=true]{background:#dfeee7;color:#0b573d;font-weight:800}.special-month-menu button b{color:#14704e;font-size:12px}.special-month-archive.is-searching .special-month-trigger{border-color:#3f8d70;background:#edf7f2}
@media(max-width:700px){.special-month-trigger{width:132px;height:40px;font-size:10px}.special-month-menu{right:0;width:176px;max-height:210px}}

/* Sidebar stays wheel/touch scrollable while its scrollbar remains invisible. */
.sidebar{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  -webkit-overflow-scrolling:touch;
}
.sidebar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.sidebar>.brand,.sidebar>nav,.sidebar>.admin-nav,.sidebar>.sidebar-foot{flex-shrink:0}
.sidebar:focus-within{scroll-behavior:smooth}

/* Buttons stay visually stable. Only readable button text reacts on hover. */
button:hover:not(:disabled):not(.product-card-image-nav):not(.quick-image-nav){
  background:var(--button-rest-background)!important;
  border-color:var(--button-rest-border-color)!important;
  box-shadow:var(--button-rest-box-shadow)!important;
  transform:var(--button-rest-transform,none)!important;
  filter:var(--button-rest-filter,none)!important;
  opacity:var(--button-rest-opacity,1)!important;
  color:var(--button-rest-color,inherit)!important;
}
button:hover{
  text-decoration:none!important;
}
button.button-main-hover:hover:not(:disabled){
  background:var(--button-hover-background)!important;
  border-color:var(--button-hover-border,#78a996)!important;
  box-shadow:none!important;
  transform:none!important;
  color:var(--button-rest-color,inherit)!important;
}
button.button-main-hover:active:not(:disabled){
  transform:none!important;
  box-shadow:none!important;
}
button.button-main-hover.button-symbol-hover:hover:not(:disabled){
  background:#174b3b!important;
  border-color:#174b3b!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}
button.nav.button-main-hover:hover:not(:disabled){
  background:#263f35!important;
  border-color:#263f35!important;
  color:#fff!important;
  transform:none!important;
  box-shadow:none!important;
}
button.live-stage-card.button-main-hover:hover:not(:disabled){
  background:#edf7f2!important;
  border-color:#4f9278!important;
  color:var(--button-rest-color,inherit)!important;
  transform:none!important;
  box-shadow:none!important;
}

/* Exact controls: dark background only, no lift or shadow. */
button.universal-column-launcher:hover,
button.section-universal-columns:hover,
button.product-layout-symbol:hover,
button.quick-columns-launch:hover{
  background:#174b3b!important;
  border-color:#174b3b!important;
  color:#fff!important;
  transform:none!important;
  box-shadow:none!important;
}

button.product-card-image-nav:hover,
button.product-card-image-nav:focus-visible,
button.quick-image-nav:hover,
button.quick-image-nav:focus-visible{
  background:#174b3b!important;
  border-color:#174b3b!important;
  color:#fff!important;
  transform:translateY(-50%)!important;
  box-shadow:none!important;
  outline:none!important;
  filter:none!important;
  opacity:1!important;
  transition:background-color .12s linear!important;
}

/* Production-team mobile layer. Desktop layout is unchanged. */
@media(max-width:768px){
html,body{width:100%;max-width:100%;height:auto!important;min-height:100%;overflow-x:hidden;overflow-y:auto!important;font-size:12px;-webkit-text-size-adjust:100%;overscroll-behavior-y:auto}body{background:#f4f7f5;-webkit-overflow-scrolling:touch}main{position:relative!important;width:100%;max-width:100%;height:auto!important;min-height:100dvh;margin:0!important;overflow-x:hidden!important;overflow-y:visible!important}.view{position:relative;width:100%;max-width:100%;height:auto!important;min-height:calc(100dvh - 60px);padding:10px 10px 80px!important;overflow-x:hidden!important;overflow-y:visible!important}
.topbar{min-height:60px;padding:10px 12px!important;gap:8px}.topbar h1,#pageTitle{font-size:17px!important;line-height:1.2}.topbar .date{font-size:9px}button,input,select,textarea{font-size:12px!important}button{min-height:36px}input,select{min-height:38px}textarea{min-height:70px}h1{font-size:18px!important}h2{font-size:16px!important}h3{font-size:14px!important}h4{font-size:12px!important}p,small,label,span,td,th{overflow-wrap:anywhere}
.sidebar{position:fixed!important;inset:0 auto 0 0;width:min(82vw,290px)!important;max-width:290px;overflow-y:auto!important;overscroll-behavior:contain;transform:translateX(-105%);z-index:10000;scrollbar-width:none}.sidebar.open{transform:translateX(0)}.sidebar .nav{min-height:43px}.sidebar::-webkit-scrollbar{display:none}
.grid,.form-grid,.info-grid,.stats,.dashboard-grid,.product-detail-hero,.bs-ledger-grid,.bs-stats,.order-cost-stats,.seller-stats,.settings-summary-grid{grid-template-columns:1fr!important}.form-grid .wide,.form-grid .full,.field-wide{grid-column:1!important}.panel,.card,.bs-panel,.activity-chart-card,.activity-detail-card,.business-summary-card,.report-financial-card,.report-financial-detail{padding:11px!important;border-radius:9px}
.toolbar,.register-toolbar,.toolbar-actions,.register-tools,.mini-toolbar,.order-cost-toolbar,.bs-controls,.product-actions,.modal-actions{display:flex!important;max-width:100%;gap:7px;overflow-x:auto!important;flex-wrap:nowrap!important;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}.toolbar>*,.register-toolbar>*,.toolbar-actions>*,.register-tools>*,.mini-toolbar>*,.order-cost-toolbar>*,.bs-controls>*,.product-actions>*,.modal-actions>*{flex:0 0 auto;scroll-snap-align:start}
.table-wrap,.register-table-wrap,.shared-register-table-wrap,.mini-sheet-wrap,.mini-excel-grid-wrap,.order-cost-table-wrap,.bs-table-wrap,.business-table-wrap,.report-record-table,.stock-table-wrap,.seller-order-table-wrap,.horizontal-scroll,.mobile-swipe-scroll,[data-mobile-scroll]{max-width:100%;overflow:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;scrollbar-width:none!important}.table-wrap::-webkit-scrollbar,.register-table-wrap::-webkit-scrollbar,.shared-register-table-wrap::-webkit-scrollbar,.mini-sheet-wrap::-webkit-scrollbar,.mini-excel-grid-wrap::-webkit-scrollbar,.order-cost-table-wrap::-webkit-scrollbar,.bs-table-wrap::-webkit-scrollbar,.business-table-wrap::-webkit-scrollbar,.report-record-table::-webkit-scrollbar,.stock-table-wrap::-webkit-scrollbar,.seller-order-table-wrap::-webkit-scrollbar,.horizontal-scroll::-webkit-scrollbar,.mobile-swipe-scroll::-webkit-scrollbar,[data-mobile-scroll]::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
table{font-size:10px!important}th,td{padding:7px 6px!important;line-height:1.25!important}th{font-size:8px!important;white-space:normal!important}.register-table,.shared-register-table{min-width:900px!important}.mini-excel-table,.mini-sheet-table{min-width:1100px!important}.order-cost-table{min-width:1200px!important}.bs-table{min-width:650px!important}.register-table td,.register-table th,.shared-register-table td,.shared-register-table th{max-width:none!important;text-overflow:clip!important}.register-table td *,.shared-register-table td *{max-width:none!important;text-overflow:clip!important}.register-table .truncate,.register-table [class*="ellipsis"],.shared-register-table .truncate{overflow:visible!important;white-space:normal!important;text-overflow:clip!important}
.dashboard-kpis,.business-metrics,.report-financial-metrics,.activity-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px}.dashboard-kpis article,.activity-kpis article{min-width:0;padding:10px!important}.pipeline-grid,.recent-orders-wrap{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}.pipeline-grid::-webkit-scrollbar,.recent-orders-wrap::-webkit-scrollbar{display:none}.pipeline-grid{min-width:620px}
.modal-backdrop,.access-modal,.universal-backdrop,#settingsBackdrop{padding:0!important;align-items:stretch!important}.modal,.settings-modal,.universal-modal,.dialog,.print-modal{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important;overflow:hidden}.modal-head,.settings-head,.universal-head{padding:13px!important}.modal-body,#settingsContent,.universal-body{padding:12px!important;overflow:auto!important}.modal-actions,.settings-actions{position:sticky;bottom:0;padding:10px 12px!important;background:#fff;z-index:5}.detail-drawer,.seller-drawer{width:100vw!important;max-width:100vw!important}.detail-body,.detail-top{padding:13px!important}.detail-top{position:sticky;top:0;background:#fff;z-index:4}
.product-detail-hero{display:grid!important;gap:10px}.product-gallery,.product-main-image,.product-detail-image-box{width:100%!important;max-width:100%!important;aspect-ratio:1/1!important;min-height:0!important}.product-gallery img,.product-main-image img,.product-detail-image-box img{width:100%!important;height:100%!important;object-fit:contain!important}.reports-head,.business-summary-head,.report-financial-detail>header,.bs-ledger-sheet-head{align-items:flex-start!important;flex-direction:column!important;gap:6px!important}.report-financial-split{grid-template-columns:1fr!important}.report-record-table{max-height:300px}
.bag-preview-dialog,.print-settings-modal,.bs2-review-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.bag-preview-stage,.bs2-review-stage{overflow:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}.bag-preview-stage::-webkit-scrollbar,.bs2-review-stage::-webkit-scrollbar{display:none}.mobile-swipe-hint{display:none!important}
}
@media(max-width:390px){.view{padding:8px!important}.dashboard-kpis,.business-metrics,.report-financial-metrics,.activity-kpis{grid-template-columns:1fr!important}.topbar .primary{padding-inline:9px}.panel,.card{padding:9px!important}}

/* Mobile finishing pass: keep dense admin screens readable without changing desktop. */
@media(max-width:768px){
/* Product cards: a missing image should not consume most of the screen. */
.product-card{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
.product-card:has(.product-card-image .no-image) .product-card-image{height:150px!important;min-height:150px!important;max-height:150px!important;flex-basis:150px!important}
.product-card-body,.product-card-top,.product-card-specs,.product-card-foot{min-width:0!important;max-width:100%!important}
.product-card-top{flex-wrap:wrap}.product-card-foot{gap:8px;flex-wrap:wrap}.product-card-date{margin-left:auto}
.product-card-grid,.product-results-head{width:100%!important;max-width:100%!important;overflow:hidden!important}

/* Order Cost: two clean selectors, then search + compact actions on one row. */
.order-cost-head{gap:14px!important}.order-cost-controls{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;align-items:end!important;gap:8px!important;width:100%!important;overflow:visible!important}
.order-cost-controls .order-cost-picker{grid-row:1;min-width:0!important;width:100%!important}
.order-cost-controls .order-cost-picker:nth-of-type(1){grid-column:1/5}.order-cost-controls .order-cost-picker:nth-of-type(2){grid-column:5/9}
.order-cost-search{grid-row:2;grid-column:1/5;min-width:0!important;width:100%!important}
.order-cost-search input{width:100%!important;min-width:0!important;padding-right:8px!important;text-overflow:ellipsis}
.order-cost-manage{grid-row:2;width:100%!important;min-width:0!important;padding:0!important}.order-cost-freeze-control{grid-column:5}.order-cost-controls #orderCostArrangeColumns{grid-column:6}.order-cost-controls #manageCostColumns{grid-column:7}.order-cost-controls #printOrderCost{grid-column:8}
.order-cost-metal-filter{padding:9px!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important}
.order-cost-metal-filter>span{flex:0 0 auto!important;min-width:38px!important;white-space:nowrap!important;overflow-wrap:normal!important}
.order-cost-tabs{align-items:center!important;overflow:visible!important;flex-wrap:wrap!important}.order-cost-filter-note{margin-left:auto!important}

/* Universal Columns: reserve room for every action instead of clipping the right edge. */
.universal-columns-backdrop{padding:7px!important}.universal-columns-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 14px)!important}
.universal-columns-list{margin-inline:8px!important}.universal-column-box-list{overflow-x:hidden!important}
.universal-column-row{grid-template-columns:20px 24px minmax(0,1fr) 28px 28px 26px!important;gap:4px!important;margin:3px 1px!important;padding:4px!important}
.universal-column-row small,.universal-column-row .universal-usage{display:none!important}.universal-name{min-width:0!important;width:100%!important;padding-inline:3px!important}
.universal-tools{padding-inline:9px!important}.universal-tools>span{font-size:8px!important}.universal-add{margin-inline:8px!important}

/* Seller cards: keep all five counters, but let long labels fit cleanly. */
.seller-card{overflow:hidden}.seller-metrics{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}
.seller-metric{min-width:0!important;padding:7px 2px!important}.seller-metric small{font-size:6.5px!important;line-height:1.15!important;overflow-wrap:normal!important;word-break:normal!important;letter-spacing:-.01em}
.seller-metric-copy{width:100%!important;min-width:0!important}.seller-metric-icon{margin-inline:auto!important}
}

@media(max-width:390px){
.order-cost-controls{gap:6px!important}
.product-card:has(.product-card-image .no-image) .product-card-image{height:135px!important;min-height:135px!important;max-height:135px!important;flex-basis:135px!important}
}

/* Border-only order-row feedback for all register modes. */
.order-register tbody tr[data-order]{background:inherit!important}
.order-register tbody tr[data-order]:hover{background:inherit!important}
.order-register tbody tr[data-order]:hover>td{
  background:inherit!important;
  box-shadow:inset 0 1px 0 #5d8f7d,inset 0 -1px 0 #5d8f7d!important;
}
.order-register tbody tr[data-order]:hover>td:first-child{
  box-shadow:inset 2px 0 0 #2b745b,inset 0 1px 0 #5d8f7d,inset 0 -1px 0 #5d8f7d!important;
}
.order-register tbody tr[data-order]:hover>td:last-child{
  box-shadow:inset -2px 0 0 #2b745b,inset 0 1px 0 #5d8f7d,inset 0 -1px 0 #5d8f7d!important;
}
.order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td,
.order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td{
  background:inherit!important;
  border-top-color:transparent!important;
  border-bottom-color:transparent!important;
  box-shadow:inset 0 1px 0 #2d735d,inset 0 -1px 0 #2d735d!important;
}
.order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:first-child,
.order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:first-child{
  box-shadow:inset 3px 0 0 #176045,inset 0 1px 0 #2d735d,inset 0 -1px 0 #2d735d!important;
}
.order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:last-child,
.order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:last-child{
  box-shadow:inset -1px 0 0 #2d735d,inset 0 1px 0 #2d735d,inset 0 -1px 0 #2d735d!important;
}
.register-table-wrap,.shared-register-table-wrap{box-sizing:border-box;padding-inline:1px}
@media(hover:none){.order-register tbody tr[data-order]:hover>td{box-shadow:none!important}.order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td,.order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td{box-shadow:inset 0 1px 0 #2d735d,inset 0 -1px 0 #2d735d!important}.order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:first-child,.order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:first-child{box-shadow:inset 3px 0 0 #176045,inset 0 1px 0 #2d735d,inset 0 -1px 0 #2d735d!important}.order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:last-child,.order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:last-child{box-shadow:inset -1px 0 0 #2d735d,inset 0 1px 0 #2d735d,inset 0 -1px 0 #2d735d!important}}

/* Keep the interface clean after mouse/touch clicks: retain normal borders, remove focus rings. */
:where(button,a,input,select,textarea,[role="button"],[tabindex]):focus,
:where(button,a,input,select,textarea,[role="button"],[tabindex]):focus-visible,
:where(button,a,input,select,textarea,[role="button"],[tabindex]):active{
  outline:none!important;
  outline-offset:0!important;
  box-shadow:none!important;
}

.sd-dropdown.open .sd-trigger,
.sd-option.active,
.product-search:focus-within,
.product-link-add-row:focus-within,
.order-cost-search:focus-within input,
.category-rename-input:focus,
.category-add-editor input:focus,
.seller-metric:focus,
.seller-note:focus,
.settings-name-list input:focus,
.settings-value-row input:focus,
.scln-dialog-input:focus,
.wo-print-modal select:focus,
.bs-field select:focus,
.bs-field input:focus,
.bs-quick input:focus,
.bs-quick select:focus{
  outline:none!important;
  outline-offset:0!important;
  box-shadow:none!important;
}

/* Final interaction lock: no control or card may jump vertically on hover/click. */
button:hover,
button:focus,
button:focus-visible,
button:active,
.product-card:hover,
.product-card:focus,
.stock-card:hover,
.seller-card:hover,
.field-layout-panel .layout-item:hover,
#dashboardView .stat:hover{
  transform:none!important;
}

/* These arrows use translateY only to remain vertically centred; hover must not alter it. */
button.product-card-image-nav,
button.product-card-image-nav:hover,
button.product-card-image-nav:focus,
button.product-card-image-nav:active,
button.quick-image-nav,
button.quick-image-nav:hover,
button.quick-image-nav:focus,
button.quick-image-nav:active{
  transform:translateY(-50%)!important;
  filter:none!important;
}

/* Product image arrows: always stable; hover changes background only. */
button.product-card-image-nav,
button.quick-image-nav{
  opacity:1!important;
  pointer-events:auto!important;
  background:#fff!important;
  color:#14533f!important;
  border-color:#cddbd4!important;
  box-shadow:none!important;
  filter:none!important;
  animation:none!important;
  transition:none!important;
}
button.product-card-image-nav:hover,
button.product-card-image-nav:focus,
button.product-card-image-nav:focus-visible,
button.product-card-image-nav:active,
button.quick-image-nav:hover,
button.quick-image-nav:focus,
button.quick-image-nav:focus-visible,
button.quick-image-nav:active{
  background:#174b3b!important;
  color:#fff!important;
  border-color:#174b3b!important;
  box-shadow:none!important;
  filter:none!important;
  animation:none!important;
  transition:none!important;
  transform:translateY(-50%)!important;
}

/* Product Details column controls: hover changes background only. */
button.universal-column-launcher,
button.section-universal-columns,
button.product-layout-symbol{
  box-shadow:none!important;
  filter:none!important;
  animation:none!important;
  transition:none!important;
  transform:none!important;
}
button.universal-column-launcher:hover,
button.universal-column-launcher:focus,
button.universal-column-launcher:active,
button.section-universal-columns:hover,
button.section-universal-columns:focus,
button.section-universal-columns:active,
button.product-layout-symbol:hover,
button.product-layout-symbol:focus,
button.product-layout-symbol:active{
  background:#174b3b!important;
  color:#fff!important;
  border-color:#174b3b!important;
  box-shadow:none!important;
  filter:none!important;
  animation:none!important;
  transition:none!important;
  transform:none!important;
}

/* Last-loaded carousel lock: hover/focus can recolour arrows but never move them. */
html body #jewelryTypesView .product-card-image>button.product-card-image-nav,
html body #jewelryTypesView .product-card-image>button.product-card-image-nav:hover,
html body #jewelryTypesView .product-card-image>button.product-card-image-nav:focus,
html body #jewelryTypesView .product-card-image>button.product-card-image-nav:focus-visible,
html body #jewelryTypesView .product-card-image>button.product-card-image-nav:active{
  position:absolute!important;
  top:50%!important;
  bottom:auto!important;
  margin:0!important;
  translate:none!important;
  transform:translate3d(0,-50%,0)!important;
  animation:none!important;
}

/* Compact horizontal scrollbar; vertical scrollbar sizing is intentionally untouched. */
*::-webkit-scrollbar:horizontal{display:block!important;height:4px!important}
*::-webkit-scrollbar-track:horizontal{background:#e8eeeb;border-radius:999px}
*::-webkit-scrollbar-thumb:horizontal{background:#71847b;border-radius:999px}
*::-webkit-scrollbar-button:horizontal{display:none!important;width:0!important;height:0!important}
#registerStableScroll{display:none!important}
.table-wrap,.mini-excel-wrap,.order-cost-table-wrap,.product-table-wrap,.stock-table-wrap,[data-horizontal-scroll]{overscroll-behavior-x:contain;touch-action:pan-x pan-y}
.site-horizontal-controls{position:fixed;left:50%;bottom:9px;z-index:360;transform:translateX(-50%);width:min(520px,calc(100vw - 48px));padding:2px;border:1px solid #aab9b1;border-radius:6px;background:#fff;box-shadow:0 2px 10px rgba(15,35,27,.15)}.site-horizontal-controls[hidden]{display:none!important}.site-horizontal-track{position:relative;width:100%;height:6px;border-radius:999px;background:#e3eae6;cursor:pointer;touch-action:none;outline:none}.site-horizontal-thumb{height:6px;min-width:46px;border-radius:999px;background:#657d72;cursor:grab;will-change:transform;touch-action:none}.site-horizontal-thumb:hover,.site-horizontal-controls.dragging .site-horizontal-thumb,.site-horizontal-track:focus-visible .site-horizontal-thumb{background:#0d6048}.site-horizontal-controls.dragging .site-horizontal-thumb{cursor:grabbing}
.product-category-tabs{scrollbar-width:none!important}.product-category-tabs::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* Final consolidated mobile layer. Desktop is intentionally untouched. */
@media (max-width:768px){
  *{scrollbar-width:thin!important}
  *::-webkit-scrollbar{display:block!important;width:7px!important;height:7px!important}
  *::-webkit-scrollbar-track{background:#e5ece8!important;border-radius:999px!important}
  *::-webkit-scrollbar-thumb{background:#667d72!important;border-radius:999px!important}
  *::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important}
  button,[role="button"],a.button{transition:none!important;-webkit-tap-highlight-color:transparent!important}
  button:hover,button:focus,button:active,[role="button"]:hover,[role="button"]:focus,[role="button"]:active,a.button:hover,a.button:focus,a.button:active{transform:none!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;outline:none!important}
  .selection-toolbar button:not(:disabled):hover,.selection-toolbar button:not(:disabled):active{transform:none!important;box-shadow:none!important}
  .selection-toolbar button:not(.primary):not(#printSelectedOrders):not(:disabled):hover{background:#fff!important;color:inherit!important}
  .selection-toolbar button.primary:not(:disabled):hover,.selection-toolbar #printSelectedOrders:not(:disabled):hover{background:#125b46!important;border-color:#125b46!important;color:#fff!important}
  .compact-icon:hover{transform:none!important;box-shadow:none!important;background:#fff!important}

  .panel:has(#recentRows){max-width:100%!important;overflow:hidden!important}
  .panel:has(#recentRows) .table-wrap{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}
  .panel:has(#recentRows) table{width:max-content!important;min-width:900px!important;table-layout:auto!important}
  .panel:has(#recentRows) th,.panel:has(#recentRows) td{min-width:88px!important;max-width:150px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
  .panel:has(#recentRows) th:first-child,.panel:has(#recentRows) td:first-child{width:68px!important;min-width:68px!important}
  #recentRows td b,#recentRows td span{white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}

  .order-register .table-wrap{width:100%!important;max-width:100%!important;overflow-x:scroll!important;overflow-y:visible!important}
  .order-register .register-table{width:max-content!important;min-width:1500px!important;max-width:none!important;table-layout:auto!important}
  .order-register .register-table th:not(.selection-col):not(.action-col),.order-register .register-table td:not(.selection-col):not(.action-col){width:120px!important;min-width:120px!important;max-width:160px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
  .order-register .register-table th[data-key="image"],.order-register .register-table td[data-key="image"]{width:112px!important;min-width:112px!important}
  .order-register .register-table th[data-key="customer"],.order-register .register-table td[data-key="customer"],.order-register .register-table th[data-key="buyerAddress"],.order-register .register-table td[data-key="buyerAddress"]{width:150px!important;min-width:150px!important;max-width:190px!important}
  .order-register .register-table .selection-col{width:44px!important;min-width:44px!important;max-width:44px!important}
  .order-register .register-table .action-col{width:48px!important;min-width:48px!important;max-width:48px!important}
  .order-register .daily-order-group,.order-register .daily-order-group>td,.order-register .daily-order-group-bar{background:#edf5f1!important;background-image:none!important}
  .order-register .daily-order-group-bar{border-top:1px solid #cfe0d8!important;border-right:0!important;border-bottom:1px solid #cfe0d8!important;border-left:0!important}
  .order-register tbody tr[data-order],.order-register tbody tr[data-order]>td{background:#fff!important;background-image:none!important}
  .order-register tbody tr[data-order]:hover,.order-register tbody tr[data-order]:hover>td{background:#fff!important;box-shadow:none!important;transform:none!important}

  .work-order-selection-actions.has-selection{display:grid!important;grid-template-columns:minmax(48px,1fr) 32px minmax(86px,auto) 64px 32px!important;align-items:center!important;gap:3px!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-height:40px!important;padding:3px!important;overflow:hidden!important}
  .work-order-selection-actions .selection-count{min-width:0!important;width:auto!important;margin:0!important;font-size:8.5px!important;white-space:nowrap!important}
  .work-order-selection-actions .selection-tool-btn{min-width:0!important;width:auto!important;height:32px!important;min-height:32px!important;padding:0 5px!important;font-size:8.5px!important;line-height:1!important;white-space:nowrap!important}
  .work-order-selection-actions #registerPrintSelected,
  .work-order-selection-actions #removeSelectedOrders,
  .work-order-selection-actions #returnSelectedOrders,
  .work-order-selection-actions #cancelSelectedOrders,
  .work-order-selection-actions #exportSelectedOrders{display:none!important}
  .work-order-selection-actions #clearSelectedOrders,.work-order-selection-actions #editSelectedOrders{width:32px!important;min-width:32px!important;padding:0!important;font-size:0!important}
  .work-order-selection-actions #clearSelectedOrders::before{content:'↻';font-size:18px!important}
  .work-order-selection-actions #editSelectedOrders::before{content:'✎';font-size:15px!important}

  #woPrintSettings{padding:0!important;overflow:hidden!important}
  #woPrintSettings .wo-print-modal{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
  #woPrintSettings .wo-live-wrap{min-width:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch}
  #woPrintSettings .wo-paper{box-sizing:border-box!important;width:720px!important;min-width:720px!important;max-width:720px!important;margin:0!important}
  #woPrintSettings .wo-table-scale,#woPrintSettings .wo-table-scale[data-real-fit="true"]{display:block!important;width:100%!important;min-width:100%!important;max-width:100%!important;transform:none!important;overflow:visible!important}
  #woPrintSettings .wo-print-table,#woPrintSettings .wo-print-table[data-auto-column-fit="true"]{display:table!important;width:100%!important;min-width:100%!important;max-width:100%!important;table-layout:fixed!important;visibility:visible!important}
  #woPrintSettings .wo-print-table th,#woPrintSettings .wo-print-table td{visibility:visible!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}

  #selectedPrintPreview{padding:0!important}
  #selectedPrintPreview .print-preview-modal{width:100vw!important;max-width:100vw!important;height:100dvh!important;border-radius:0!important}
  #selectedPrintPreview .preview-toolbar{flex-wrap:wrap!important;overflow:visible!important;gap:6px!important;padding:8px!important}
  #selectedPrintPreview #previewTitle,#selectedPrintPreview #previewStats{width:100%!important;margin:0!important;white-space:normal!important;overflow-wrap:normal!important}
  #selectedPrintPreview .preview-toolbar button{min-height:32px!important;padding:6px 9px!important;font-size:10px!important;white-space:nowrap!important}
  #selectedPrintPreview .preview-document-wrap.bag-preview-mode{width:100%!important;max-width:100%!important;overflow:auto!important;padding:8px!important;-webkit-overflow-scrolling:touch}
  #selectedPrintPreview .bag-preview-mode .preview-document{box-sizing:border-box!important;width:calc(287mm + 24px)!important;min-width:calc(287mm + 24px)!important;max-width:none!important;padding:12px!important;overflow:visible!important;margin:0!important}
  #selectedPrintPreview .bag-preview-mode .bag-print-document{width:287mm!important;min-width:287mm!important;max-width:none!important;transform:none!important;zoom:1!important}
}

/* Restore the original horizontally scrollable mobile action bar. */
@media (max-width:768px){
  .work-order-selection-actions.has-selection{
    display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
    width:100%!important;max-width:100%!important;min-height:0!important;
    gap:7px!important;padding:7px 10px!important;overflow-x:auto!important;overflow-y:hidden!important;
    background:#eef4f0!important;border:1px solid var(--line)!important;border-radius:8px!important
  }
  .work-order-selection-actions .selection-count{flex:0 0 auto!important;min-width:75px!important;width:auto!important;margin-right:5px!important;font-size:11px!important}
  .work-order-selection-actions .selection-tool-btn,
  .work-order-selection-actions #registerPrintSelected,
  .work-order-selection-actions #removeSelectedOrders,
  .work-order-selection-actions #returnSelectedOrders,
  .work-order-selection-actions #cancelSelectedOrders,
  .work-order-selection-actions #exportSelectedOrders{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 auto!important;width:auto!important;min-width:76px!important;height:31px!important;min-height:31px!important;
    padding:0 10px!important;font-size:9px!important;white-space:nowrap!important
  }
  .work-order-selection-actions #clearSelectedOrders,
  .work-order-selection-actions #editSelectedOrders{width:auto!important;min-width:38px!important;font-size:20px!important;padding:0 8px!important}
  .work-order-selection-actions #clearSelectedOrders::before,
  .work-order-selection-actions #editSelectedOrders::before{content:none!important}
}

/* Mobile order-register interaction repair: shared by All, Returned, Cancelled and Shipped. */
@media (max-width:768px){
  /* Touch devices must not retain a mouse-style row hover highlight. */
  .order-register tbody tr[data-order]:hover,
  .order-register tbody tr[data-order]:hover>td{
    background:#fff!important;
    background-image:none!important;
    border-color:transparent!important;
    box-shadow:none!important;
    filter:none!important;
    outline:0!important;
    transform:none!important
  }

  /* Draw one continuous outer box around only the selected order. */
  .order-register .register-table{
    border-collapse:separate!important;
    border-spacing:0!important
  }
  .order-register tbody tr[data-order]:has(.register-row-checkbox:checked),
  .order-register tbody tr[data-order]:has(.selection-checkbox:checked){
    outline:0!important
  }
  .order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td,
  .order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td{
    background:#fff!important;
    background-image:none!important;
    border-top:2px solid #176045!important;
    border-right:0!important;
    border-bottom:2px solid #176045!important;
    border-left:0!important;
    box-shadow:none!important
  }
  .order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:first-child,
  .order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:first-child{
    border-left:2px solid #176045!important;
    border-right:0!important
  }
  .order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:last-child,
  .order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:last-child{
    border-right:2px solid #176045!important;
    border-left:0!important
  }

  /* An unchecked row must never retain a tap-hover or stale selection edge. */
  .order-register tbody tr[data-order]:not(:has(.register-row-checkbox:checked)):not(:has(.selection-checkbox:checked))>td.selection-col,
  .order-register tbody tr[data-order]:not(:has(.register-row-checkbox:checked)):not(:has(.selection-checkbox:checked))>td.register-selection-fixed{
    border-color:transparent!important;
    box-shadow:none!important;
    outline:0!important
  }
  .order-register tbody tr[data-order] input[type="checkbox"]:focus,
  .order-register tbody tr[data-order] input[type="checkbox"]:focus-visible{
    box-shadow:none!important;
    outline:0!important
  }

  /* Thin, always usable vertical scrolling on every mobile page and panel. */
  *::-webkit-scrollbar:vertical{
    display:block!important;
    width:4px!important
  }
  *::-webkit-scrollbar-track:vertical{
    background:#edf2ef!important
  }
  *::-webkit-scrollbar-thumb:vertical{
    min-height:34px!important;
    background:#71867b!important;
    border-radius:999px!important
  }
  *::-webkit-scrollbar-button:vertical{
    display:none!important;
    width:0!important;
    height:0!important
  }

  /* Balanced mobile action buttons: compact, but still easy to tap. */
  .work-order-selection-actions .compact-symbol-action,
  .work-order-selection-actions #removeSelectedOrders,
  .work-order-selection-actions #returnSelectedOrders,
  .work-order-selection-actions #cancelSelectedOrders,
  .work-order-selection-actions #exportSelectedOrders,
  .work-order-selection-actions #clearSelectedOrders,
  .work-order-selection-actions #editSelectedOrders{
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    flex:0 0 40px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 6px!important;
    font-size:16px!important;
    line-height:1!important
  }
}

/* Final mobile-only selected-row rendering. Loaded last to beat legacy register rules. */
body .order-register .register-table th[data-key="serial"]:not(.selection-col):not(.action-col),
body .order-register .register-table td[data-key="serial"]:not(.selection-col):not(.action-col){
  box-sizing:border-box!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  padding-left:5px!important;
  padding-right:5px!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important
}

@media (max-width:768px){
  .order-register .register-table{border-collapse:separate!important;border-spacing:0!important}
  .order-register .register-table thead th[data-key]{
    font-size:10px!important;
    line-height:1.25!important;
    font-weight:700!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important
  }

  .order-register tbody tr[data-order],
  .order-register tbody tr[data-order]:hover,
  .order-register tbody tr[data-order]:active,
  .order-register tbody tr[data-order]>td,
  .order-register tbody tr[data-order]:hover>td,
  .order-register tbody tr[data-order]:active>td{
    box-shadow:none!important;
    filter:none!important;
    text-shadow:none!important;
    transform:none!important;
    -webkit-tap-highlight-color:transparent!important
  }

  .order-register tbody tr[data-order]:has(.register-row-checkbox:checked),
  .order-register tbody tr[data-order]:has(.selection-checkbox:checked){
    outline:0!important;
    box-shadow:none!important
  }
  .order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td,
  .order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td{
    background:#fff!important;
    background-image:none!important;
    border-top:2px solid #176045!important;
    border-right:0!important;
    border-bottom:2px solid #176045!important;
    border-left:0!important;
    box-shadow:none!important
  }
  .order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:first-child,
  .order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:first-child{
    border-left:2px solid #176045!important;
    border-right:0!important;
    box-shadow:none!important
  }
  .order-register tbody tr[data-order]:has(.register-row-checkbox:checked)>td:last-child,
  .order-register tbody tr[data-order]:has(.selection-checkbox:checked)>td:last-child{
    border-right:2px solid #176045!important;
    border-left:0!important;
    box-shadow:none!important
  }

  .order-register tbody tr[data-order]>td.selection-col,
  .order-register tbody tr[data-order]>td.register-selection-fixed{
    border-right:0!important;
    box-shadow:none!important
  }
}

/* Keep the complete checkbox cell white in all register interaction states. */
body #ordersView .order-register .register-table tr > :is(th,td).selection-col,
body #ordersView .order-register .register-table tr > :is(th,td).register-selection-fixed,
body #ordersView .order-register .register-table tr:hover > :is(th,td).selection-col,
body #ordersView .order-register .register-table tr:hover > :is(th,td).register-selection-fixed,
body #ordersView .order-register .register-table tr > :is(th,td):has(.daily-group-checkbox),
body #ordersView .order-register .register-table tr > :is(th,td):has(.register-row-checkbox):first-child,
body #ordersView .order-register .register-table tr > :is(th,td):has(.register-master-checkbox):first-child {
  background-color:#fff!important;
  background-image:none!important;
}
body #ordersView .order-register input[type="checkbox"] {
  background-color:#fff!important;
  accent-color:#0d5b46;
}

/* Respect explicit Universal Columns visibility in the edit form. */
#workOrderEditView .wo-edit-grid>label[hidden]{display:none!important}

.save-corner-status{position:fixed;right:18px;bottom:18px;z-index:2147482000;max-width:min(460px,calc(100vw - 36px));padding:12px 16px;border:1px solid #bfd8cd;border-radius:10px;background:#f2fbf6;color:#174b38;box-shadow:0 5px 20px #123b2826;font:600 14px/1.5 system-ui,sans-serif;pointer-events:none;overflow-wrap:anywhere}.save-corner-status[hidden]{display:none!important}.save-corner-status[data-state="saving"]{background:#fffdf3;color:#665011;border-color:#e3dab7}
