/* sales-rounding-20261029 */
:root{--bg:#f4f4f4;--paper:#fff;--ink:#2a2a2a;--muted:#747474;--line:#e6e6e6;--accent:#2a2a2a;--light:#ececec;--orange:#ab642a;--red:#ad483c;--shadow:0 10px 40px #2a2a2a0b;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible{outline:3px solid #747474;outline-offset:3px}button{border:0;background:none;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.8px;font-weight:650}h2{font-size:17px;font-weight:650}h3{font-size:15px}small,.muted{color:var(--muted)}.shell{display:flex;min-height:100vh}.sidebar{width:222px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:32px 20px 22px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 33px}.brand img{width:39px;height:39px}.brand strong{font-size:22px;letter-spacing:2px}.brand small{display:block;font-size:10px;letter-spacing:1.5px;margin-top:3px}.workspace{padding:14px;background:#f5f5f5;border:1px solid var(--line);border-radius:11px;font-weight:600;font-size:12px;margin-bottom:28px}.workspace small{display:block;font-size:11px;font-weight:400;line-height:1.9}.nav-label{font-size:10px;letter-spacing:1.8px;color:#747474;padding:0 14px 13px}nav{display:flex;flex-direction:column;gap:6px}.nav-btn{display:flex;gap:12px;align-items:center;text-align:left;border-radius:8px;padding:12px 14px;color:#747474;font-size:13px}.nav-btn svg{width:19px;height:19px;stroke-width:1.65}.nav-btn:hover{background:#f6f6f6}.nav-btn.active{background:#ececec;color:#2a2a2a;font-weight:600}.nav-count{margin-left:auto;font-size:10px;background:#dcdcdc;border-radius:5px;padding:2px 5px}.sidebar-bottom{margin-top:auto;padding:25px 11px 0}.sidebar-bottom .foot-note{font-size:11px;line-height:1.9;margin-bottom:20px;color:#747474}.profile{display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:50%;background:#eaeaea;display:grid;place-items:center;color:#676767;font-weight:650}.profile small{display:block;font-size:10px;margin-top:4px}.profile button{font-size:11px;margin-left:auto;color:var(--muted)}.main{margin-left:222px;padding:0 42px 40px;min-width:0;width:calc(100% - 222px)}.topbar{height:75px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.topbar-right{display:flex;gap:14px;align-items:center}.sync-dot{display:inline-block;width:6px;height:6px;background:#79a98d;border-radius:50%;margin-right:6px}.sync-bad .sync-dot{background:var(--red)}.sync-bad{color:var(--red)}.pill{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);padding:5px 9px;border-radius:5px;font-size:10px;color:var(--muted);background:white}.hero{display:flex;align-items:center;justify-content:space-between;padding:33px 0 28px;gap:18px}.eyebrow{font-size:10px;color:#747474;letter-spacing:2px;font-weight:600;margin-bottom:9px}.hero p{margin-top:10px;font-size:12px;color:var(--muted);line-height:1.8}.actions{display:flex;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;border-radius:7px;background:#fff;border:1px solid #dedede;font-weight:550;font-size:12px;white-space:nowrap;min-height:37px}.btn svg{width:15px;height:15px}.btn:hover{background:#f0f0f0;text-decoration:none}.btn.primary{background:var(--accent);color:white;border-color:var(--accent)}.btn.primary:hover{background:#2a2a2a}.btn.danger{color:var(--red)}.btn.subtle{border-color:transparent;background:transparent;color:var(--muted)}.btn.small{padding:6px 10px;min-height:29px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.stat{background:white;border:1px solid var(--line);border-radius:11px;padding:21px 23px;position:relative;text-align:left}.stat:hover{border-color:#747474}.stat-head{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.stat-head svg{width:18px;height:18px;color:#747474}.stat-num{font-size:32px;font-weight:600;letter-spacing:-1px;margin:14px 0 8px;line-height:1}.stat-num em{font-size:11px;font-weight:400;letter-spacing:0;font-style:normal;color:var(--muted);margin-left:6px}.stat-bottom{font-size:10px;color:var(--muted)}.stat-bottom strong{color:#a96e3a;font-weight:500}.stat.featured{background:#eeeeee;border-color:#dadada}.panels{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:21px;margin-bottom:26px}.panel{background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 23px 15px}.panel-head small{font-size:10px}.panel-head h2{font-size:14px}.panel-head h2 span{color:#747474;font-size:11px;margin-left:7px;font-weight:400}.task-list{padding:0 23px 9px}.task-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #efefef}.task-row:last-child{border-bottom:0}.task-symbol{width:35px;height:35px;background:#f6ede1;border-radius:9px;display:grid;place-items:center;color:#a6713c;flex-shrink:0}.task-symbol.green{background:#ededed;color:#747474}.task-symbol svg{width:17px;height:17px}.task-copy{flex:1;min-width:0}.task-copy strong{font-size:12px;font-weight:550}.task-copy small{font-size:10px;display:block;margin-top:6px;line-height:1.5}.task-value{text-align:right;font-size:12px;white-space:nowrap}.task-value .link{display:block;margin-top:6px;font-size:10px;color:var(--accent)}.note-strip{display:flex;align-items:flex-start;gap:9px;margin:0 0 23px;padding:11px 15px;background:#ededed;border:1px solid #e1e1e1;border-radius:7px;color:#727272;font-size:11px;line-height:1.8}.note-strip svg{width:14px;height:14px;flex-shrink:0;margin-top:3px}.table-section{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}.table-toolbar{padding:19px 23px;display:flex;align-items:center;justify-content:space-between;gap:12px}.table-toolbar h2{font-size:15px}.search{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;padding:0 9px;gap:8px;width:215px}.search svg{width:14px;height:14px;color:#747474}.search input{border:0;background:none;width:100%;padding:9px 0;font-size:11px;outline:none}.tabs{display:flex;gap:21px;padding:0 23px;border-bottom:1px solid var(--line);overflow:auto}.tab{font-size:11px;padding:3px 1px 13px;white-space:nowrap;color:#747474;border-bottom:2px solid transparent}.tab.active{color:var(--accent);font-weight:600;border-color:var(--accent)}.tab span{font-size:10px;margin-left:4px;color:#747474}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#fafafa;font-size:10px;font-weight:500;color:#747474;padding:13px 22px}td{padding:17px 22px;border-bottom:1px solid #f0f0f0;font-size:12px}td small{display:block;font-size:10px;margin-top:6px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfbfb}.order-no{font-size:10px;font-family:ui-monospace,SFMono-Regular,monospace;color:#747474;margin-top:5px}.money{font-variant-numeric:tabular-nums;font-weight:550}.status{display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:5px 8px;border-radius:5px;color:#747474;background:#efefef}.status:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.status.unpaid{color:#ac783e;background:#faf1e3}.status.ready{color:#46794d;background:#eaf3e5}.status.packing{color:#4e7c86;background:#eaf3f4}.status.partial_ship{color:#6974a4;background:#f0eff7}.status.shipped{color:#80927b;background:#f0f4ec}.status.paused{color:#ac5145;background:#f9eae6}.table-footer{padding:13px 22px;border-top:1px solid var(--line);font-size:10px;color:#747474;display:flex;justify-content:space-between}.empty{text-align:center;padding:46px 20px;color:var(--muted);font-size:12px;line-height:2}.empty strong{display:block;color:#666666;font-size:14px;margin-bottom:6px}.account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.account-card{padding:24px;border:1px solid var(--line);border-radius:11px;background:white}.account-top{display:flex;align-items:center;gap:13px;margin-bottom:23px}.account-mark{height:40px;width:40px;border-radius:10px;background:#ededed;display:grid;place-items:center;color:#696969;font-weight:700}.account-card small{font-size:11px;display:block;line-height:1.8}.account-card h3{margin-bottom:4px}.account-card .amount{font-size:27px;letter-spacing:-.5px;margin:6px 0 17px}.account-card footer{border-top:1px solid var(--line);padding-top:12px;font-size:11px;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-box{padding:25px;background:white;border:1px solid var(--line);border-radius:11px}.settings-box p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:13px}.settings-row{display:flex;justify-content:space-between;gap:10px;margin-top:20px;font-size:12px}.progress-line{display:flex;gap:0;padding:20px 0 25px}.progress-step{flex:1;font-size:10px;color:#747474;position:relative}.progress-step:before{content:'';display:block;width:8px;height:8px;background:#dddddd;border-radius:50%;margin-bottom:9px}.progress-step:after{content:'';position:absolute;height:2px;top:3px;left:14px;right:8px;background:#e9e9e9}.progress-step:last-child:after{display:none}.progress-step.done{color:#47734a}.progress-step.done:before{background:#749765}.progress-step.done:after{background:#b5caaa}
dialog{border:0;border-radius:14px;padding:0;width:min(680px,calc(100vw - 32px));max-height:90vh;box-shadow:0 24px 120px #102a3240;color:var(--ink);background:var(--bg)}dialog::backdrop{background:#172c3655;backdrop-filter:blur(3px)}dialog.wide{width:min(890px,calc(100vw - 32px))}.modal-head{padding:23px 27px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fff;position:sticky;top:0;z-index:2}.modal-head h2{font-size:18px}.modal-head p{font-size:11px;color:var(--muted);margin-top:7px}.close{font-size:24px;line-height:1;color:#747474;min-width:32px;min-height:32px}.modal-body{padding:24px 27px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:16px 27px;background:#fff;position:sticky;bottom:0;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#707070}.field.full{grid-column:1/-1}input,select,textarea{border:1px solid #dcdcdc;border-radius:6px;padding:10px 11px;background:#fff;color:var(--ink);width:100%;min-height:39px;font-size:12px;outline:none}input:focus,select:focus,textarea:focus{border-color:#747474;box-shadow:0 0 0 2px #74747416}textarea{resize:vertical;min-height:76px}.field small{font-size:10px;line-height:1.7}.check{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#676767;line-height:1.8}.check input{width:15px;min-height:15px;margin:4px 0}.form-section{margin-top:22px}.form-section h3{margin-bottom:12px;font-size:13px}.item-input{display:grid;grid-template-columns:2fr 1.5fr .75fr .75fr 1fr 25px;gap:7px;margin-bottom:8px}.item-input input{min-width:0}.item-labels{display:grid;grid-template-columns:2fr 1.5fr .75fr .75fr 1fr 25px;gap:7px;font-size:10px;color:var(--muted);margin-bottom:8px}.inline-error{background:#fff0eb;border:1px solid #f1d4c5;color:#a7563b;padding:10px 12px;border-radius:6px;margin-bottom:17px;font-size:12px;line-height:1.7}.inline-error:empty{display:none}.detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:white;padding:19px;border-radius:9px;border:1px solid var(--line)}.detail-summary small{display:block;font-size:10px;margin-bottom:9px}.detail-summary strong{font-size:23px;font-weight:600;letter-spacing:-.5px}.detail-box{border:1px solid var(--line);background:#fff;border-radius:9px;padding:19px;margin-top:17px}.detail-box h3{margin-bottom:14px;font-size:13px}.detail-box p{font-size:12px;color:#747474;line-height:1.9}.detail-box table td,.detail-box table th{padding:11px 8px}.detail-box table th{background:none}.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:13px;font-size:12px;color:#747474}.detail-meta strong{font-weight:500;color:#2a2a2a;margin-left:8px}.timeline{border-left:1px solid #dfdfdf;margin:4px 0 0 5px;padding-left:18px}.timeline-item{margin:0 0 18px;position:relative}.timeline-item:before{content:'';position:absolute;left:-22px;top:5px;width:7px;height:7px;border-radius:50%;background:#747474;border:2px solid white}.timeline-item strong{font-size:12px;font-weight:500}.timeline-item small{display:block;font-size:10px;margin-top:5px;line-height:1.6}.allocation-row{display:grid;grid-template-columns:1fr 135px;gap:15px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.allocation-row small{display:block;margin-top:5px;font-size:10px}.allocation-row strong{font-size:12px;font-weight:500}.hint{font-size:11px;line-height:1.8;color:#747474;padding:12px 0}.copy-text{font-size:13px;line-height:2;background:#fff;padding:17px;border-radius:7px;border:1px solid var(--line);margin-bottom:17px}.login-screen{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-story{background:#2a2a2a;padding:72px;display:flex;flex-direction:column;color:#fff;justify-content:center}.login-story .brand{padding:0 0 70px}.login-story .brand small{color:#747474}.login-story h1{font-size:46px;line-height:1.6;letter-spacing:-1.5px;font-weight:550}.login-story p{margin-top:25px;max-width:380px;color:#bcbcbc;font-size:14px;line-height:2}.login-steps{display:flex;gap:23px;font-size:11px;color:#747474;margin-top:65px}.login-card-wrap{display:flex;align-items:center;justify-content:center;padding:36px}.login-card{width:360px}.login-card h2{font-size:26px;margin-bottom:13px}.login-card>p{font-size:12px;color:var(--muted);line-height:1.9;margin-bottom:29px}.demo-role{display:flex;align-items:center;width:100%;padding:17px;border:1px solid #dfdfdf;background:#fff;border-radius:9px;margin-top:12px;text-align:left;gap:13px}.demo-role:hover{border-color:#747474;background:#f0f0f0}.demo-role svg{width:21px;height:21px;color:#747474}.demo-role strong{font-size:13px;display:block;font-weight:550}.demo-role small{font-size:11px;display:block;line-height:1.9;margin-top:3px}.login-foot{font-size:10px;color:#747474;line-height:1.9;margin-top:28px}.loading{display:grid;place-items:center;height:100vh;color:#747474}.mobile-brand{display:none}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(20px);padding:12px 19px;background:#2a2a2a;color:white;border-radius:8px;box-shadow:var(--shadow);opacity:0;transition:all .2s;z-index:50;pointer-events:none;font-size:12px;max-width:90vw;line-height:1.7}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.help-list{padding-left:17px;font-size:12px;color:var(--muted);line-height:2.3}.count-accent{color:var(--accent)}.danger-text{color:var(--red)}.good-text{color:var(--accent)}.upload-label{cursor:pointer;display:inline-flex}.upload-label input{width:0;height:0;opacity:0;position:absolute;min-height:0;padding:0;border:0}.sync-note{font-size:10px;color:#747474}.foot-help{padding:22px 0 0;color:#747474;font-size:10px;text-align:center}.history-note{margin-top:15px}
.intake-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.intake-label{font-size:10px;letter-spacing:1.5px;color:#747474;margin-bottom:17px}.intake-help{font-size:11px!important;margin-bottom:16px}.draft-row{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:20px 23px;border-top:1px solid var(--line)}.draft-row>div:first-child{min-width:0;flex:1}.draft-row strong{font-size:13px}.draft-row p{font-size:12px;line-height:1.8;color:var(--muted);margin:9px 0;white-space:normal;overflow-wrap:anywhere}.draft-row small{font-size:10px}.draft-row .actions{flex-shrink:0}
.intake-main textarea{font-size:14px;line-height:1.9}.intake-main>.link{font-size:12px;color:var(--accent)}.paper-mini{background:#f6f6f6;border:1px solid var(--line);border-radius:8px;padding:22px;margin-top:22px;display:grid;gap:13px}.paper-mini strong{font-size:17px}.paper-mini span{font-size:11px;color:var(--muted)}.draft-method{font-size:11px;color:#707070;margin-bottom:12px}.sales-paper{background:white;border:1px solid var(--line);border-radius:9px;padding:24px}.sales-paper header{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--accent);padding-bottom:18px;gap:15px}.sales-paper header strong{font-size:24px;letter-spacing:3px}.sales-paper header span{margin-left:15px;font-size:16px}.sales-paper header small{font-size:10px;line-height:1.8;text-align:right}.slip-customer{padding:20px 0;font-size:14px}.slip-customer small{display:inline-block;font-size:10px;margin-left:8px}.sales-paper td,.sales-paper th{padding:13px 10px}.sales-paper td:first-child{white-space:normal;min-width:150px}.slip-total{display:flex;justify-content:flex-end;align-items:center;gap:20px;border-top:1px solid var(--line);padding:20px 0;font-size:12px}.slip-total strong{font-size:23px}.slip-delivery{border-top:1px dashed var(--line);padding-top:10px}.slip-delivery p{font-size:12px;line-height:1.8;margin-top:8px;overflow-wrap:anywhere}.missing-value{color:#ab783e;font-size:12px}.draft-questions{background:#fbf4e9;border:1px solid #ebdebf;border-radius:8px;padding:18px;margin-top:20px}.draft-questions h3{font-size:13px}.draft-questions ul{padding-left:18px;margin-top:10px;font-size:12px;line-height:2;color:#8b6b39}.waiver-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding:12px 0}.waiver-row:last-child{border-bottom:0}.waiver-row strong{font-size:12px}.detail-summary{grid-template-columns:repeat(4,1fr)}
.draft-fill-hint{margin-bottom:14px;padding:11px 14px;border-radius:7px;background:#f2f2f2;color:#656565;font-size:12px;line-height:1.7}.sales-paper .draft-blank{display:inline-block;width:210px;max-width:100%;border:1px solid #dbcea9;border-bottom:2px solid #bca773;background:#fffcf3;border-radius:5px;padding:9px 10px;min-height:40px;font-size:13px;font-weight:400;vertical-align:middle}.sales-paper .draft-blank::placeholder{color:#a29474;font-size:12px}.sales-paper .draft-blank:focus{border-color:#747474;background:#fff;box-shadow:0 0 0 2px #74747416}.sales-paper td .draft-blank{width:100%;min-width:64px}.sales-paper .draft-blank-number{max-width:120px}.slip-quantity{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.slip-quantity .draft-blank{flex:1;max-width:100px}.slip-contact{display:flex;flex-wrap:wrap;gap:13px 24px;margin-top:10px}.slip-contact label,.slip-address{font-size:12px;line-height:1.8;display:flex;align-items:center;gap:7px}.slip-contact label{flex:1;min-width:230px}.slip-contact .draft-blank{flex:1;min-width:0}.slip-address{margin-top:12px}.slip-address .draft-blank{flex:1;width:auto}.draft-correction-details{border-top:1px solid var(--line);padding-top:16px}.draft-correction-details summary{font-size:12px;color:#737373;cursor:pointer}.fill-save-note{font-size:11px;line-height:1.7}.sales-paper td[data-line-total]{font-variant-numeric:tabular-nums}
@media(max-width:520px){.sales-paper{padding:14px}.sales-paper header strong{font-size:20px}.sales-paper header span{font-size:12px;margin-left:9px}.sales-paper table{table-layout:fixed}.sales-paper th:first-child{width:40%}.sales-paper td,.sales-paper th{padding:12px 4px;font-size:11px}.sales-paper td:first-child{min-width:0;overflow-wrap:anywhere}.detail-summary{grid-template-columns:1fr 1fr;row-gap:18px}.slip-total strong{font-size:19px}.intake-main .actions{flex-wrap:wrap}.intake-main .actions .primary{width:100%}}
@media(max-width:520px){.sales-paper .draft-blank{font-size:16px;padding:8px 5px}.sales-paper td .draft-blank{min-width:0}.sales-paper td .draft-blank::placeholder{font-size:10px}.slip-contact{gap:11px}.slip-contact label{min-width:100%}.slip-customer .draft-blank{width:calc(100% - 52px)}.fill-save-note{flex-basis:100%}.sales-paper td[data-line-total]{white-space:normal;overflow-wrap:anywhere}.sales-paper .slip-total strong{font-size:16px}}
@media(min-width:1500px){.main{padding-left:58px;padding-right:58px}.stats{gap:22px}.panels{gap:24px}}
@media(max-width:900px){.intake-grid{grid-template-columns:1fr}.draft-row{align-items:flex-start;flex-direction:column}.item-input{grid-template-columns:2fr 1.4fr .8fr .7fr 1fr 22px}}
@media(max-width:1150px){.sidebar{width:190px;padding:25px 13px}.main{margin-left:190px;width:calc(100% - 190px);padding-left:25px;padding-right:25px}.stat{padding:18px 17px}.hero h1{font-size:24px}td,th{padding-left:15px;padding-right:15px}.account-grid{grid-template-columns:1fr 1fr}.topbar-right{gap:8px}.panels{gap:16px}.task-list{padding-left:16px;padding-right:16px}.panel-head{padding-left:16px;padding-right:16px}}
@media(max-width:800px){.sidebar{width:72px;padding:22px 10px}.brand{padding:0 5px 25px}.brand img{width:32px}.brand>div,.workspace,.nav-label,.nav-btn>span,.sidebar-bottom,.nav-count{display:none}.nav-btn{justify-content:center;padding:13px}.main{margin-left:72px;width:calc(100% - 72px);padding:0 20px 30px}.topbar{height:64px}.topbar-right>.pill{display:none}.hero{padding-top:25px;align-items:flex-start}.hero h1{font-size:23px}.hero .actions{justify-content:flex-end}.stats{grid-template-columns:1fr 1fr;gap:12px}.panels{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.login-screen{grid-template-columns:1fr}.login-story{padding:35px}.login-story .brand{padding-bottom:25px}.login-story .brand>div{display:block}.login-story h1{font-size:26px}.login-story p,.login-steps{display:none}.login-card-wrap{padding:30px}.login-card{width:min(100%,380px)}.table-toolbar{padding:17px}.tabs{padding:0 17px;gap:19px}}
@media(max-width:520px){.sidebar{position:fixed;top:auto;bottom:0;width:100%;height:61px;padding:4px 6px;border-right:0;border-top:1px solid var(--line);background:#ffffffed;backdrop-filter:blur(10px)}.sidebar>.brand{display:none}.sidebar nav{flex-direction:row;justify-content:space-around;gap:2px}.nav-btn{flex-direction:column;gap:3px;padding:5px 8px;border-radius:7px;min-width:48px}.nav-btn>span:not(.nav-count){display:block;font-size:8px}.nav-btn svg{width:19px;height:19px}.nav-btn[data-page=accounts],.nav-btn[data-page=audit]{display:none}.main{margin:0;width:100%;padding:0 16px 85px}.topbar{height:55px;font-size:10px}.topbar-right{gap:6px}.hero{flex-direction:column;padding:24px 0 20px;gap:18px}.hero h1{font-size:25px}.hero p{font-size:11px;margin-top:7px}.eyebrow{font-size:9px}.hero .actions{justify-content:flex-start;width:100%}.hero .actions .btn{flex:1}.stat{padding:16px;border-radius:9px}.stat-num{font-size:29px}.stat-head{font-size:11px}.stat-bottom{font-size:9px}.panels{gap:15px}.note-strip{font-size:10px}.table-toolbar{flex-direction:column;align-items:flex-start}.search{width:100%}.account-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.modal-head{padding:19px}.modal-body{padding:18px}.modal-footer{padding:13px 18px}.detail-summary{padding:14px;gap:8px}.detail-summary strong{font-size:18px}.detail-meta{grid-template-columns:1fr}.item-input{grid-template-columns:1.7fr 1fr .7fr .7fr 1fr 20px;gap:4px}.item-input input{padding:9px 6px;font-size:10px}.item-labels{grid-template-columns:1.7fr 1fr .7fr .7fr 1fr 20px;gap:4px}.allocation-row{grid-template-columns:1fr 105px}.detail-box{padding:13px}dialog{max-height:93vh;width:calc(100vw - 18px)}.topbar-right .btn{font-size:10px;padding:5px 8px}.foot-help{line-height:1.8}}
/* Manual entry is the primary sales workflow. Optional assistance stays folded. */
.manual-intake .hero{padding:29px 0 23px}.manual-intake .hero h1{font-size:27px}.manual-intake .hero p{margin-top:8px}.manual-intake .hero .eyebrow{font-size:9px;margin-bottom:9px}.manual-order{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}.manual-paper-head{padding:21px 26px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.manual-paper-head strong{font-size:23px;letter-spacing:3px}.manual-paper-head span{font-size:17px;margin-left:14px}.manual-paper-head small{font-size:10px}.manual-body{padding:22px 26px}.manual-top{display:grid;grid-template-columns:minmax(250px,1.7fr) 1fr 1fr;gap:18px}.manual-customer{display:flex;gap:8px}.manual-customer select{min-width:0}.manual-customer .btn{flex-shrink:0}.manual-products{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0 17px;margin:22px 0}.manual-item{grid-template-columns:minmax(170px,2.1fr) minmax(110px,1.3fr) 70px 64px 86px 94px 24px;align-items:center;gap:9px}.manual-item output{text-align:right;font-size:12px;font-variant-numeric:tabular-nums}.manual-item button{font-size:19px;color:#747474}.manual-item input{font-size:12px;padding:9px 10px}.manual-item.item-labels{font-size:11px;margin-bottom:10px}.manual-item.item-labels span:nth-last-child(2){text-align:right}.manual-product-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:13px}.manual-product-footer>div{display:flex;align-items:center;gap:19px;font-size:12px}.manual-product-footer small{font-size:10px}.manual-product-footer output{font-size:23px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums}.manual-contact{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}.manual-delivery{display:grid;gap:15px}.manual-note textarea{min-height:64px;line-height:1.6}.manual-note small{font-size:10px;color:var(--muted)}.manual-more{border-top:1px solid var(--line);padding-top:16px;margin-top:17px}.manual-more summary,.manual-assist summary{font-size:12px;color:#646464;cursor:pointer}.manual-more summary small{margin-left:13px;font-size:10px}.manual-more .form-grid textarea{min-height:60px}.manual-more .check{flex-direction:row;align-items:flex-start}.manual-submit{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f9f9f9;border-top:1px solid var(--line);padding:16px 26px}.manual-submit small{font-size:11px}.manual-submit .primary{min-width:132px}.manual-assist{border:1px solid var(--line);border-radius:9px;background:#fff;margin-top:16px}.manual-assist summary{padding:15px 21px}.manual-assist summary small{font-size:10px;margin-left:9px}.manual-assist-body{padding:0 21px 18px}.manual-assist-body textarea{line-height:1.8;font-size:13px;min-height:100px}.manual-assist .actions{margin-top:13px}.manual-assist .link{font-size:11px;color:var(--accent)}.manual-records{margin-top:21px}.manual-records .draft-row{padding:15px 23px}.manual-records .draft-row p{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin:6px 0;font-size:11px}.manual-records .empty{padding:23px}.manual-table-scroll{overflow-x:auto}.manual-table{min-width:720px}
@media(max-width:1150px){.manual-top{grid-template-columns:minmax(210px,1.5fr) 1fr 1fr;gap:12px}.manual-body{padding:20px}.manual-item{grid-template-columns:minmax(140px,2fr) minmax(100px,1.3fr) 64px 55px 80px 88px 22px;gap:7px}}
@media(max-width:650px){.manual-top{grid-template-columns:1fr 1fr}.manual-top>.field:first-child{grid-column:1/-1}.manual-contact{grid-template-columns:1fr 1fr;gap:12px}.manual-contact>.field:last-child{grid-column:1/-1}.manual-paper-head{padding:18px}.manual-body{padding:17px}.manual-submit{padding:15px 17px}.manual-submit small{max-width:150px;line-height:1.7}.manual-more summary small{display:block;margin:7px 0 0 14px}.manual-product-footer>div{gap:10px}.manual-product-footer output{font-size:20px}.manual-order input,.manual-order select,.manual-order textarea{font-size:14px}.manual-table{min-width:720px}.manual-item input{font-size:13px}.manual-records .draft-row{gap:12px}.manual-records .draft-row .actions{align-self:flex-end}.manual-records .table-toolbar{flex-direction:row;align-items:center}.manual-records .table-toolbar small{font-size:10px}.manual-order .field{font-size:12px}}

.manual-page-title{display:flex;align-items:baseline;gap:18px;padding:25px 0 20px}.manual-page-title h1{font-size:25px}.manual-page-title p{font-size:12px;color:var(--muted)}.manual-paper-head{padding-top:17px;padding-bottom:15px}.manual-body{padding-top:19px;padding-bottom:18px}.manual-products{margin:18px 0;padding:17px 0}.manual-note textarea{min-height:55px}
@media(max-width:520px){.manual-page-title{display:block;padding:22px 0 18px}.manual-page-title h1{font-size:23px}.manual-page-title p{font-size:11px;margin-top:7px}}

/* Compact order entry and account receipt drilldown. */
.manual-intake{padding-top:22px}.manual-paper-head h1{font-size:20px;font-weight:600}.manual-paper-head{padding:16px 22px}.manual-body{padding:18px 22px}.manual-top{grid-template-columns:minmax(240px,1fr) 190px;gap:18px}.manual-contact{grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}.manual-contact textarea{min-height:78px;line-height:1.65}.manual-products{margin:16px 0;padding:15px 0}.manual-delivery{gap:12px}.manual-note{gap:6px}.manual-note textarea{min-height:44px;height:44px}.manual-note small{line-height:1.4}.manual-more{margin-top:13px;padding-top:12px}.manual-submit{padding:13px 22px}.delivery-text{white-space:pre-wrap;overflow-wrap:anywhere}.account-card{text-align:left;width:100%;color:inherit;transition:border-color .15s}.account-card:hover{border-color:#747474;background:#fbfbfb}.account-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.account-card footer{display:flex;flex-wrap:wrap;gap:8px}.account-card footer span{margin-left:auto;color:var(--accent)}.account-summary{display:grid;grid-template-columns:1.2fr .7fr 1fr;gap:16px;background:white;padding:18px;border:1px solid var(--line);border-radius:8px}.account-summary small{display:block;font-size:11px;margin-bottom:8px}.account-summary strong{font-size:22px;font-variant-numeric:tabular-nums}.account-receipt{border:1px solid var(--line);border-radius:8px;background:#fff;margin-top:14px;padding:16px}.account-receipt header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.account-receipt header strong{font-size:14px}.account-receipt header small{display:block;font-size:11px;margin-top:5px}.account-receipt .receipt-amount{text-align:right}.account-receipt .receipt-amount strong{display:block;font-size:19px;margin-top:5px}.account-receipt th,.account-receipt td{padding:10px}.order-detail-link{color:var(--accent);font-size:12px}.receipt-products{white-space:normal;max-width:300px;line-height:1.65}.receipt-credit{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;font-size:12px;color:var(--accent)}.receipt-note{font-size:11px;color:var(--muted);margin-top:10px;white-space:pre-wrap;overflow-wrap:anywhere}.revoked-receipts{margin-top:20px;font-size:12px;color:var(--muted)}.revoked-receipts summary{cursor:pointer}
@media(max-width:650px){.manual-intake{padding-top:16px}.manual-paper-head,.manual-body{padding:15px}.manual-top{grid-template-columns:minmax(0,1fr) 140px;gap:12px}.manual-top>.field:first-child{grid-column:1/-1}.manual-contact{grid-template-columns:1fr;gap:12px}.manual-contact>.field:last-child{grid-column:auto}.manual-submit{padding:13px 15px}.account-summary{gap:10px;padding:14px}.account-summary strong{font-size:17px}.account-summary small{font-size:10px}.account-receipt{padding:12px}.account-receipt th,.account-receipt td{padding:9px 6px}}

[hidden]{display:none!important}.receipt-other{display:block;margin-top:18px;font-size:11px;color:var(--muted)}

.section-switch{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}.section-switch button{padding:12px 17px;border:1px solid var(--line);border-radius:7px;background:white;font-size:12px;color:var(--muted)}.section-switch button.active{background:#ececec;border-color:#d0d0d0;color:var(--accent)}.section-switch strong{margin-left:10px}.supplier-summary{margin-bottom:20px}.purchase-item,.purchase-labels{display:grid;grid-template-columns:minmax(190px,1fr) 95px 110px 24px;gap:10px;align-items:center;margin-bottom:10px}.purchase-labels{font-size:11px;color:var(--muted)}.purchase-total{display:flex;align-items:center;justify-content:space-between;gap:12px}.purchase-total strong{font-size:13px}.purchase-total output{font-size:20px;color:var(--accent);margin-left:15px}.manual-add-products{display:flex;gap:8px!important;min-width:0}.manual-add-products select{max-width:230px;font-size:11px;min-height:30px;padding:5px}.manual-item input[readonly]{background:#f4f4f4}.hero .eyebrow:empty{display:none}.sidebar nav{min-height:0;overflow-y:auto;flex-shrink:1}.sidebar .brand,.sidebar .workspace,.sidebar .nav-label,.sidebar-bottom{flex-shrink:0}.sidebar-bottom{padding-top:16px}.nav-btn{flex-shrink:0}
@media(min-width:801px) and (max-height:850px){.sidebar{padding-top:22px}.sidebar .brand{padding-bottom:18px}.sidebar .workspace{margin-bottom:17px}.sidebar-bottom .foot-note{display:none}.nav-btn{padding:10px 14px}.sidebar nav{gap:3px}}
@media(max-width:650px){.purchase-item,.purchase-labels{grid-template-columns:minmax(125px,1fr) 60px 80px 20px;gap:5px}.purchase-item input,.purchase-item select{font-size:12px;padding:8px 5px}.manual-product-footer{flex-wrap:wrap}.manual-add-products select{max-width:200px}.section-switch button{padding:10px 12px;font-size:11px}}
@media(max-width:520px){.sidebar nav{overflow-x:auto;justify-content:flex-start}.sidebar .nav-btn{min-width:58px}.nav-btn[data-page=accounts],.nav-btn[data-page=inventory],.nav-btn[data-page=suppliers]{display:flex}}

.slip-dialog{width:min(1100px,calc(100vw - 24px))!important}.delivery-slip{background:#fff;padding:25px;color:#202020;font-family:"SimSun","Songti SC",serif}.delivery-slip header{text-align:center;margin-bottom:20px}.delivery-slip h1{font-size:23px;font-weight:500}.delivery-slip h2{font-size:15px;margin-top:7px;font-weight:400}.slip-heading{display:flex;justify-content:space-between;gap:25px;font-size:13px;line-height:2;margin-bottom:12px}.delivery-slip table{table-layout:fixed;white-space:normal}.delivery-slip td,.delivery-slip th{border:1px solid #444;padding:10px 7px;text-align:center;font-size:12px;color:#222;background:white;overflow-wrap:anywhere}.delivery-slip th:first-child{width:5%}.delivery-slip th:nth-child(2){width:11%}.delivery-slip th:nth-child(3){width:16%}.delivery-slip th:nth-child(4){width:17%}.delivery-slip th:nth-child(5){width:6%}.delivery-slip th:nth-child(6){width:8%}.delivery-slip th:nth-child(7){width:12%}.delivery-slip tbody tr:not(.slip-sum){height:100px}.delivery-slip .slip-note{text-align:left;vertical-align:top;white-space:pre-wrap}.delivery-slip footer{display:flex;justify-content:space-between;gap:12px;margin-top:30px;font-size:12px;flex-wrap:wrap}.slip-pending{font-size:11px;margin-bottom:10px;color:#8c6638}.slip-logistics{font-size:12px;margin-top:16px}.slip-dialog .modal-body{overflow-x:auto}.delivery-slip{min-width:740px}
@media print{@page{size:A4 landscape;margin:12mm}body{background:white}#app,#toast,dialog::backdrop,.slip-dialog>.modal-head,.slip-dialog>.modal-footer{display:none!important}dialog.slip-dialog{position:static!important;display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;box-shadow:none!important;overflow:visible!important;background:white}.slip-dialog .modal-body{padding:0;overflow:visible}.slip-dialog .delivery-slip{min-width:0;padding:0}.delivery-slip thead{display:table-header-group}.delivery-slip tr{break-inside:avoid}.delivery-slip footer{break-inside:avoid}}

.delivery-slip tbody tr:last-child td{border-bottom:1px solid #444}

.delivery-slip tbody tr:not(.slip-sum){height:72px}

.sales-slip th:first-child{width:4%}.sales-slip th:nth-child(2){width:8%}.sales-slip th:nth-child(3){width:12%}.sales-slip th:nth-child(4){width:12%}.sales-slip th:nth-child(5){width:5%}.sales-slip th:nth-child(6){width:6%}.sales-slip th:nth-child(7){width:10%}.sales-slip th:nth-child(8){width:9%}.sales-slip th:nth-child(9){width:10%}.sales-slip th:nth-child(10){width:24%}.sales-slip td,.sales-slip th{font-size:11px;padding:9px 5px}.sales-slip .slip-note{line-height:1.8}
.delivery-slip{min-width:0}.delivery-slip .slip-heading>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:800px){.slip-dialog .modal-body{padding:15px}.delivery-slip{padding:16px}.delivery-slip h1{font-size:20px}.slip-heading{font-size:11px;gap:15px}.delivery-slip td,.delivery-slip th{padding:8px 4px;font-size:10px}.delivery-slip footer{font-size:10px}.sales-slip .slip-note{line-height:1.6}}
@media(max-width:520px){.delivery-slip{min-width:620px}}
@media print{.slip-dialog .delivery-slip{min-width:0;padding:0}.delivery-slip td,.delivery-slip th{font-size:12px}.sales-slip td,.sales-slip th{font-size:11px}}

.ship-order-summary{display:flex;flex-wrap:wrap;gap:8px 18px;padding:18px 0;font-size:12px}.ship-order-summary small{flex-basis:100%;font-size:11px}.ship-selection td,.ship-selection th{padding:10px 8px}.ship-selection .ship-pick{width:18px;min-height:18px;accent-color:var(--accent)}.ship-selection input[type=number]{width:100px}.ship-selection tr:has(.ship-pick:not(:checked)){color:var(--muted);background:#f6f6f6}.shipping-goods{white-space:normal;min-width:150px;line-height:1.8}

.procurement-reminder{margin:24px 0}.analysis-method{margin:24px 0;color:var(--muted);line-height:1.8}.analysis-method summary{cursor:pointer}.section-switch{flex-wrap:wrap}.table-toolbar select{padding:8px;border:1px solid #dfdfdf;border-radius:8px;background:white;color:inherit}

.today-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.today-counts>div{padding:24px;border:1px solid #dfdfdf;background:#fff;border-radius:16px}.today-counts strong{display:block;font-size:36px;margin-top:12px}.today-counts small{font-size:16px;font-weight:400}.today-board{display:grid;gap:24px}.today-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 28px;border-top:1px solid #e5e5e5}.today-row strong{display:block;font-size:18px}.today-row p{margin:8px 0}.today-row small{display:block;color:#747474;line-height:1.7}.work-tag{display:inline-block;font-size:12px;color:#2a2a2a;background:#eeeeee;padding:4px 8px;border-radius:5px;margin-bottom:8px}.work-tag.urgent{color:#a04a30;background:#fff1e7}.stock-filters{display:flex;gap:8px;margin:0 0 22px;flex-wrap:wrap}.recipe-row{display:grid;grid-template-columns:2fr 1fr auto;gap:10px;margin-bottom:16px}.recipe-row input,.recipe-row select{min-width:0;padding:12px;border:1px solid #dfdfdf;border-radius:8px}@media(max-width:700px){.today-row{align-items:flex-start;flex-direction:column;padding:18px}.today-counts{gap:8px}.today-counts>div{padding:14px}.today-counts strong{font-size:28px}}

.production-filters{display:flex;flex-wrap:wrap;gap:14px;margin:22px 0}.production-filters label{display:grid;gap:6px;min-width:145px;color:var(--muted);font-size:12px}.production-filters select{background:white;border:1px solid var(--line,#dfdfdf);border-radius:8px;padding:10px;color:var(--ink,#2a2a2a)}.production-batches,.production-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.production-batch{background:white;border:1px solid #dfdfdf;border-radius:16px;padding:22px;min-width:0}.production-batch header{display:flex;justify-content:space-between;gap:12px;align-items:start}.production-batch header strong{font-size:18px;display:block}.production-batch header span:not(.status){display:block;font-size:13px;margin-top:6px}.production-batch>p{color:var(--muted);font-size:11px;margin:14px 0;overflow-wrap:anywhere}.production-batch footer{display:flex;gap:8px;justify-content:flex-end;margin-top:22px}.production-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.production-numbers small{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.production-numbers strong{font-size:16px;overflow-wrap:anywhere}.production-spec{padding:24px;min-width:0}.production-spec h2{font-size:18px}.production-spec p{font-size:12px;color:var(--muted);margin:12px 0}.production-recipe-row,.production-recipe-labels{display:grid;grid-template-columns:110px 2fr 85px 1fr 58px;gap:8px;align-items:center;margin:10px 0}.production-recipe-row input,.production-recipe-row select{width:100%;min-width:0}.production-recipe-labels{font-size:11px;color:var(--muted)}.production-issue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.production-issue-grid>.hint{grid-column:1/-1}.production-material-inputs{display:grid;gap:16px;margin:16px 0}.production-material-inputs>section{padding:18px;border:1px solid #dfdfdf;border-radius:12px;background:white}.production-material-inputs h4{font-size:14px;margin-bottom:14px}.production-material-inputs h4 small{font-weight:400;margin-left:12px;color:var(--muted)}.production-detail-meta{font-size:13px;line-height:1.9;margin-bottom:20px}.production-issued{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 22px}.production-issued span{border:1px solid #dfdfdf;padding:9px 12px;border-radius:8px;font-size:12px}.production-issued strong{margin-left:10px}.production-event{padding:14px 0;border-bottom:1px solid #dfdfdf;font-size:12px;line-height:1.8}.production-event p{margin:7px 0}.production-event small{font-size:11px}.production-recipe-row .btn{padding:8px 4px}
@media(max-width:850px){.production-batches,.production-spec-grid{grid-template-columns:1fr}.production-recipe-row,.production-recipe-labels{grid-template-columns:85px 1.5fr 65px 1fr 48px;gap:5px}}
@media(max-width:520px){.production-filters{gap:10px}.production-filters label{min-width:0;flex:1 1 42%}.production-batch{padding:16px}.production-numbers{gap:8px}.production-numbers strong{font-size:14px}.production-issue-grid{grid-template-columns:1fr}.production-recipe-labels{display:none}.production-recipe-row{grid-template-columns:1fr 2fr;gap:8px;border-bottom:1px solid #dfdfdf;padding:12px 0}.nav-btn[data-page=production]{display:flex}.production-material-inputs>section{padding:14px}}
.production-filters input{background:white;border:1px solid var(--line,#dfdfdf);border-radius:8px;padding:10px;color:var(--ink,#2a2a2a);width:100%;min-width:0}

.real-history-table,.real-stock-table{table-layout:fixed;min-width:900px;white-space:normal}.real-history-table th,.real-history-table td,.real-stock-table th,.real-stock-table td{padding:12px 9px;overflow-wrap:anywhere;vertical-align:top;line-height:1.6}.real-history-table th:nth-child(1){width:16%}.real-history-table th:nth-child(2){width:17%}.real-history-table th:nth-child(3){width:24%}.real-history-table th:nth-child(4){width:9%}.real-history-table th:nth-child(5){width:9%}.real-history-table th:nth-child(6){width:12%}.real-history-table th:nth-child(7){width:13%}.real-history-table td:nth-child(4),.real-history-table td:nth-child(5),.real-history-table td:nth-child(6){text-align:right}.real-stock-table th:nth-child(1){width:23%}.real-stock-table th:nth-child(2){width:10%}.real-stock-table th:nth-child(3),.real-stock-table th:nth-child(4),.real-stock-table th:nth-child(5){width:10%}.real-stock-table th:nth-child(6){width:21%}.real-stock-table th:nth-child(7){width:16%}.real-stock-table .btn{margin-bottom:4px}#history-search{flex-wrap:wrap;gap:12px}#history-search .field{flex:1;min-width:120px}#history-search .field:first-child{flex:1.7}.modal-body>table{white-space:normal;overflow-wrap:anywhere}.modal-body>h3{margin:20px 0 12px}.modal-body>p{line-height:1.8;margin:12px 0}.modal-body>p small{display:block}.real-stock-table small{line-height:1.7}

/* Workshop: recognizable machines and short, large controls. */
.workshop-hero h1{font-size:30px}.workshop-hero .btn,.workshop-form .btn,.machine-card .btn,.workshop-setup .btn{min-height:48px;font-size:16px}.workshop-switch{flex-wrap:wrap}.workshop-switch button{min-height:48px;font-size:16px}.machine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.machine-card,.workshop-setup{background:#fff;border:1px solid var(--line,#dfdfdf);border-radius:16px;padding:26px}.machine-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.machine-card h2{font-size:26px;margin:0}.machine-card h3{font-size:21px;margin:0 0 8px}.machine-card p{color:var(--muted);line-height:1.7}.machine-job{padding:22px 0;border-bottom:1px solid #e2e2e2}.machine-job .btn{width:100%;margin-top:12px}.machine-card footer{margin-top:22px}.machine-card footer .btn{width:100%}.machine-pending{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:15px}.workshop-setup{margin-top:24px}.workshop-setup h2{font-size:22px}.workshop-setup p{margin:12px 0 20px;line-height:1.8}.workshop-note{margin-top:22px}.workshop-management{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0}.workshop-management p{color:var(--muted)}.workshop-form .field{font-size:16px}.workshop-form input:not([type=checkbox]),.workshop-form select,.workshop-form textarea{font-size:18px;min-height:50px}.workshop-form .field small,.workshop-form .hint{font-size:14px;line-height:1.7}.workshop-step{margin-bottom:24px}.workshop-step h3{font-size:19px;margin:0 0 16px}.workshop-extra{border:1px solid #dfdfdf;background:#fff;border-radius:12px;padding:16px 18px;margin:16px 0}.workshop-extra summary{font-size:16px;font-weight:600;cursor:pointer;line-height:1.7}.workshop-extra[open]>summary{margin-bottom:16px}.workshop-form .check{font-size:15px;line-height:1.7}.simple-recipe{display:grid;grid-template-columns:1fr 1.4fr .7fr 1fr auto;align-items:end;gap:12px;padding:12px 0}.simple-recipe.main-recipe{grid-template-columns:1.5fr .8fr 1.3fr}.simple-recipe .field{min-width:0;margin:0}.simple-recipe .btn{margin-bottom:1px}.workshop-form .production-issue-grid{margin:0}.workshop-form .production-material-inputs h4{font-size:17px}.workshop-form .production-material-inputs h4 small{font-size:14px}
@media(max-width:850px){.machine-grid{grid-template-columns:1fr}.simple-recipe,.simple-recipe.main-recipe{grid-template-columns:1fr 1fr}.simple-recipe .field:first-of-type{grid-column:1/-1}.workshop-management{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.machine-card,.workshop-setup{padding:20px}.machine-card header{align-items:flex-start;flex-direction:column}.workshop-form .form-grid{grid-template-columns:1fr}.workshop-form .production-issue-grid{grid-template-columns:1fr}.simple-recipe,.simple-recipe.main-recipe{grid-template-columns:1fr}.simple-recipe .field:first-of-type{grid-column:auto}.workshop-extra{padding:14px}.workshop-hero .actions,.workshop-hero .actions .btn{width:100%}}
dialog:has(.workshop-form) .modal-footer .btn{min-height:48px;font-size:16px;padding:12px 24px}dialog:has(.workshop-form) .modal-head h2{font-size:22px}dialog:has(.workshop-form) .modal-head p{font-size:14px;line-height:1.6}dialog:has(.workshop-form) .close{min-width:44px;min-height:44px}
.quality-panel{display:grid;grid-template-columns:1fr 1.3fr;gap:16px;margin:16px 0;padding:18px;background:#fff;border:1px solid #dfdfdf;border-radius:12px;width:100%}.quality-panel h3{font-size:16px;margin:0 0 10px}.quality-panel small,.quality-material small{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.6}.quality-badge{display:inline-block;border-radius:7px;padding:6px 9px;font-size:14px;font-weight:600;white-space:normal}.quality-over{background:#fff0eb;color:#a13e25}.quality-ok{background:#eeeeee;color:#2a2a2a}.quality-unknown{color:#796b4f;background:#f7f3e9}.quality-material{margin:0 0 12px;min-width:190px}.quality-material:last-child{margin-bottom:0}#production-preview{display:block}#production-preview:empty{display:none}@media(max-width:650px){.quality-panel{grid-template-columns:1fr}.quality-material{min-width:0}}

/* Consistent select geometry across forms, filters and compact toolbars. */
select:not([multiple]):not([size]),
select:not([multiple])[size="1"] {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-left: 14px;
  padding-right: 42px;
  line-height: 1.5;
  text-overflow: ellipsis;
}
select:disabled { cursor: not-allowed; opacity: .6; }
@media (forced-colors: active) {
  select:not([multiple]):not([size]),
  select:not([multiple])[size="1"] {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
    padding-right: 14px;
  }
}

/* Center the working canvas within the space beside the navigation. */
.main > .topbar, .main > #content, .main > .foot-help {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
}
.actions { align-items: center; }
.btn { line-height: 1.5; }
.btn svg { display: block; flex-shrink: 0; }
.close { display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.manual-add-products { align-items: center; flex-wrap: wrap; }
.manual-add-products select, .manual-add-products .btn { min-height: 36px; }
.manual-customer { align-items: stretch; }
.manual-customer .btn { align-self: stretch; }
.production-filters { align-items: end; }
.production-filters input, .production-filters select { min-height: 42px; }
@media (max-width: 520px) {
  .manual-add-products { width: 100%; }
  .manual-add-products select { flex: 1 1 180px; max-width: none; }
}

/* One company overview; each card opens the corresponding task list. */
.daily-totals{display:flex;align-items:center;gap:32px;flex-wrap:wrap;padding:20px 24px;margin-bottom:20px;border:1px solid var(--line);border-radius:12px;background:#fff}
.daily-totals>div{display:grid;gap:8px}.daily-totals small{font-size:12px}.daily-totals strong{font-size:25px;font-variant-numeric:tabular-nums}.daily-totals>.btn{margin-left:auto}
.work-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}
.work-overview-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;text-align:left;background:white;border:1px solid var(--line);border-radius:11px;padding:20px 23px;color:var(--ink)}
.work-overview-card:hover{border-color:#747474;background:#fbfbfb;text-decoration:none}.work-overview-card span{font-size:12px;color:var(--muted)}.work-overview-card strong{font-size:30px;line-height:1.1;color:var(--accent)}.work-overview-card small{font-size:11px;color:var(--accent)}
@media(max-width:700px){.work-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.work-overview-card{padding:17px}.daily-totals{padding:17px;gap:20px}.daily-totals strong{font-size:21px}}
@media(max-width:380px){.work-overview{grid-template-columns:1fr}}

.startup-message{text-align:center;max-width:480px;padding:24px;line-height:1.8}.startup-message .btn{margin-top:18px}

/* Suggestions stay in the product row so the horizontally scrolling table cannot clip them. */
.product-suggestions{grid-column:1/-1;min-width:0;border:1px solid #d0d0d0;border-radius:9px;background:white;box-shadow:0 5px 18px #2a2a2a10;margin:2px 0 12px;max-height:300px;overflow-y:auto;white-space:normal}
.product-search-heading{padding:11px 14px;background:#f3f3f3;color:var(--muted);font-size:11px;line-height:1.6}
.manual-item .product-suggestions button{display:flex;justify-content:space-between;align-items:center;gap:18px;width:100%;padding:12px 14px;text-align:left;color:var(--ink);border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}
.manual-item .product-suggestions button:last-child{border-bottom:0}.product-suggestions button:hover,.product-suggestions button[aria-selected=true]{background:#ececec}
.product-search-copy{min-width:0}.product-search-copy strong{display:block;font-weight:600}.product-suggestions small{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.product-search-stock{text-align:right;flex-shrink:0;font-variant-numeric:tabular-nums;color:var(--accent)}.manual-item .product-suggestions .product-search-more{justify-content:center;color:var(--accent)}

/* Orange / white workspace theme, shared with the mini program. */
:root{--bg:#f6f6f6;--paper:#fff;--ink:#262626;--muted:#737373;--line:#e8e8e8;--accent:#c45100;--brand:#ff7a13;--light:#fff2e7;--orange:#a85b19;--red:#b84436;--shadow:0 8px 30px #00000008}
.sidebar{background:#fff}.workspace{background:#fafafa;border-radius:14px}.nav-btn{border-radius:12px}.nav-btn:hover{background:#f6f6f6}.nav-btn.active{background:var(--light);color:var(--accent)}.nav-count{background:#ffe2ca;color:#994000}.avatar{background:#f3f3f3;color:var(--ink)}
.eyebrow{color:var(--accent)}.btn{border-radius:11px;border-color:#e3e3e3}.btn:hover{background:#f5f5f5}.btn.primary{background:var(--brand);border-color:var(--brand);color:#262626;font-weight:650}.btn.primary:hover{background:#f06b08;border-color:#f06b08}.btn.primary:active{background:#e96200}.btn.subtle{border-color:transparent;background:transparent}.btn.danger{color:var(--red)}
button:focus-visible,a:focus-visible{outline-color:var(--brand)}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #ff7a131a}input[type=checkbox],input[type=radio]{accent-color:var(--brand)}input,select,textarea,.search{border-radius:10px;border-color:#e3e3e3}
.stat,.panel,.table-section,.account-card,.settings-box,.work-overview-card,.daily-totals{border-radius:18px}.stat,.work-overview-card{box-shadow:0 4px 18px #00000003}.stat.featured{background:#fff2e7;border-color:#ffe0c5}.stat:hover,.work-overview-card:hover{border-color:#ffc99f;background:#fffaf6}.stat-num,.work-overview-card strong{color:var(--ink);font-weight:700}.work-overview-card small{color:var(--accent)}.work-overview-card:hover strong{color:var(--accent)}
.task-symbol,.account-mark{background:var(--light);color:var(--accent)}.task-symbol.green{background:#f3f3f3;color:#555}.note-strip{background:#f5f5f5;border-color:#e7e7e7;color:#666}th{background:#fafafa;color:#737373}tbody tr:hover{background:#fafafa}.tabs .tab.active{color:var(--accent);border-color:var(--brand)}.good-text{color:#32704b}
.login-screen{background:#fff}.login-story{background:#f7f7f7;color:var(--ink);border-right:1px solid var(--line)}.login-story h1{font-weight:700}.login-story .brand small,.login-story p,.login-steps{color:#737373}.login-steps{border-top:3px solid var(--brand);padding-top:24px}.login-card{background:#fff}.login-card h2{font-weight:700}.login-card .btn.primary{min-height:46px;font-size:14px}.login-foot{color:#737373}
.product-suggestions button:hover,.product-suggestions button[aria-selected=true]{background:var(--light)}.product-search-stock{color:var(--ink)}.product-search-heading{background:#fafafa}#toast{background:#262626;color:white}dialog{border-radius:20px}dialog::backdrop{background:#00000055}.progress-step.done{color:#32704b}.progress-step.done:before{background:#4e8e63}.progress-step.done:after{background:#b9d8c3}
@media(max-width:700px){.stat,.work-overview-card,.table-section{border-radius:15px}}
@media print{.sales-paper header{border-color:#333}}

/* Supplied company logo: preserve original red artwork and English lettering. */
.brand{justify-content:center;padding-bottom:24px}.brand img{width:82px;height:89px;object-fit:contain;flex-shrink:0}.login-story .brand{justify-content:flex-start;padding-bottom:42px}.login-story .brand img{width:104px;height:113px}
/* All work areas share the same scrollable navigation. */
.sidebar .workspace-navigation{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;display:block;padding-right:3px}.nav-group{margin:0 0 12px}.nav-group summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#848484;padding:9px 12px;user-select:none}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:after{content:'›';font-size:16px;transform:rotate(0deg)}.nav-group[open]>summary:after{transform:rotate(90deg)}.nav-group>div{display:grid;gap:4px}.nav-group .nav-btn{width:100%;text-align:left}.workflow-frame{display:block;width:100%;height:calc(100dvh - 122px);min-height:480px;border:0;margin:24px 0 0;background:#f6f6f6}.main:has(.workflow-frame)>.foot-help{display:none}.sidebar-bottom{margin-top:14px}.sidebar .brand{padding-bottom:18px}.sidebar .workspace{margin-bottom:16px}
@media(min-width:521px) and (max-width:800px){.nav-group summary{font-size:0;padding:5px 0;justify-content:center}.nav-group summary:after{font-size:15px}.nav-group .nav-btn{justify-content:center}.workflow-frame{height:calc(100dvh - 100px)}}
@media(max-width:520px){.sidebar .workspace-navigation{display:flex;overflow-x:auto;overflow-y:hidden;max-width:100%;gap:14px}.nav-group{flex:0 0 auto;margin:0}.nav-group summary{font-size:10px;padding:3px 6px}.nav-group>div{display:flex}.nav-group .nav-btn{min-width:70px;flex-direction:column;padding:7px;gap:5px}.nav-group .nav-btn>span{display:block;font-size:10px}.nav-group .nav-btn .nav-count{display:none}.workflow-frame{height:calc(100dvh - 210px);min-height:440px}.sidebar:has(.workspace-navigation){height:auto}.nav-group[open]>div{display:flex}}
.my-record-search{padding:14px 24px;border-bottom:1px solid var(--line)}.my-record-search .search{max-width:440px;width:100%}.manual-records .table-toolbar>div>small{display:block;margin-top:7px;color:var(--muted)}.my-order-table{min-width:700px}.my-order-table .actions{flex-wrap:nowrap}.manual-records .tabs{overflow-x:auto}.manual-records .tab{white-space:nowrap}
@media(max-width:600px){.manual-records .table-toolbar{align-items:flex-start;gap:16px;flex-direction:column}.my-record-search{padding:14px 18px}.manual-records .table-footer{gap:12px;flex-wrap:wrap}}
.ship-steps{display:flex;gap:14px;align-items:center;margin-bottom:22px;color:var(--muted);font-size:13px}.ship-steps .active{color:var(--accent);font-weight:650}.ship-search-bar{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;gap:14px;align-items:end}.ship-choice-heading .check{display:flex;align-items:flex-start;gap:10px;margin:0;cursor:pointer}.ship-choice-heading .ship-order-pick{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;accent-color:var(--accent)}.ship-choice-card:has(.ship-order-pick:checked){border-color:var(--brand);background:var(--light)}.ship-choice-heading .status{white-space:nowrap;flex-shrink:0}.ship-match-count{font-size:12px;color:var(--muted);margin:18px 0 12px}.ship-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ship-choice-card{border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:18px;min-width:0}.ship-choice-card:hover{border-color:var(--brand)}.ship-choice-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.ship-choice-heading strong{display:block;font-size:15px;overflow-wrap:anywhere}.ship-choice-heading small{display:block;margin-top:6px;overflow-wrap:anywhere}.ship-choice-card small{font-size:11px;color:var(--muted);line-height:1.6}.ship-choice-date{font-size:12px;color:var(--muted);margin:13px 0}.ship-choice-date.danger-text{color:var(--red)}.ship-choice-card ul{list-style:none;margin:0 0 14px;padding:0;border-top:1px solid var(--line)}.ship-choice-card li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}.ship-choice-card li span{min-width:0;overflow-wrap:anywhere}.ship-choice-card li small{display:block}.ship-choice-card li b{flex-shrink:0;font-weight:600;white-space:nowrap}.ship-choice-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.ship-choice-bottom .btn{color:var(--accent);border-color:var(--brand);background:var(--light)}.ship-more{display:block;margin:18px auto 0}.history-ship-selection{min-width:1100px}.history-ship-selection th:nth-child(3){min-width:240px}.history-ship-selection input[type=number]{min-width:100px;width:100%}.history-ship-selection input[type=search],.history-ship-selection select{width:100%;min-width:210px}.history-ship-selection input[type=checkbox]{width:18px;height:18px}.ship-return{margin-top:14px}#ship-chooser[hidden],#ship-details[hidden],#ship-return[hidden]{display:none}
@media(max-width:650px){.ship-choice-grid{grid-template-columns:1fr}.ship-search-bar{grid-template-columns:1fr}.ship-choice-card{padding:15px}.ship-steps{font-size:12px;gap:10px}}
.today-heading{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,2.2fr);align-items:start;gap:32px;padding:30px 0 26px}.today-heading-title h1{font-size:30px;letter-spacing:-.7px;margin:0 0 16px}.today-heading-title p{font-size:13px;color:var(--muted);margin:0 0 9px}.today-heading-title small{font-size:12px;color:var(--muted)}.today-summary{background:var(--paper);border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:14px;padding:20px 24px;min-width:0}.today-summary-head{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px}.today-summary-head>span{font-weight:650}.today-summary-head a{font-size:11px;white-space:nowrap}.today-summary-money{font-size:15px;line-height:1.9;margin:12px 0 8px}.today-summary-money strong{font-variant-numeric:tabular-nums}.today-summary-pending{font-size:12px;line-height:1.9;color:var(--muted);margin:0}.today-summary-pending b{color:var(--ink);font-weight:600}.today-summary-pending>span{display:block}.today-summary-priority{display:flex;gap:12px;align-items:baseline;border-top:1px solid var(--line);padding-top:12px;margin-top:14px;font-size:12px}.today-summary-priority>span{white-space:nowrap;color:var(--accent);font-weight:600}.today-summary-priority>div{display:flex;gap:7px 16px;flex-wrap:wrap}.today-summary-link{font-size:12px;line-height:1.8;text-align:left;color:var(--accent);padding:0;border:0;background:transparent}.today-summary-link:hover{text-decoration:underline}.today-summary-calm{font-size:12px;margin:12px 0 0;color:var(--muted)}.today-details-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 15px;scroll-margin-top:22px}.today-details-heading h2{font-size:15px;margin:0}.today-details-heading .link{font-size:12px}
@media(max-width:1000px){.today-heading{grid-template-columns:1fr;gap:20px}.today-heading-title h1{margin-bottom:10px}.today-heading-title small{display:none}}
@media(max-width:520px){.today-heading{padding-top:24px}.today-heading-title h1{font-size:25px}.today-summary{padding:16px}.today-summary-money{font-size:14px}.today-summary-priority{flex-direction:column;gap:6px}}

.my-order-table .record-delete-hint{max-width:280px;white-space:normal;line-height:1.5;margin-top:6px}

/* Workshop overview follows the existing orange/white theme. */
.workshop-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.workshop-totals .panel{padding:18px;margin:0;min-width:0}.workshop-totals strong{display:block;font-size:17px;line-height:1.7;margin-top:8px;overflow-wrap:anywhere}.workshop-board .machine-card{min-width:0;padding:22px}.workshop-board .machine-card h2{font-size:22px}.workshop-counts{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;font-size:14px;margin:20px 0}.workshop-counts dt{color:var(--muted)}.workshop-counts dd{margin:0;text-align:right;overflow-wrap:anywhere}.workshop-tasks summary{font-size:14px;cursor:pointer;color:var(--accent);padding:10px 0}.workshop-board .machine-job{padding:14px 0}.workshop-board .machine-job h3{font-size:17px}.workshop-board footer .btn+.btn{margin-top:8px}
@media(max-width:700px){.workshop-totals{grid-template-columns:1fr 1fr}.workshop-totals .panel{padding:14px}.workshop-totals strong{font-size:15px}}@media(max-width:380px){.workshop-totals{grid-template-columns:1fr}}

/* Balanced desktop canvas and shared control alignment. */
@media screen {
 .main { padding-inline:clamp(20px,3vw,48px); }
 .main>.topbar,.main>#content,.main>.foot-help { max-width:1280px; width:100%; margin-inline:auto; }
 .main .hero { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:20px; padding:32px 0 28px; }
 .main .hero>.actions,.main .hero .actions { justify-content:center; align-items:center; }
 .hero h1 { line-height:1.4; letter-spacing:0; }
 .hero p { max-width:760px; margin-inline:auto; }
 .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; line-height:1.5; }
 .btn svg { display:block; flex:0 0 auto; }
 .modal-head { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:14px; align-items:center; text-align:center; padding:22px 26px; }
 .modal-head>div,.modal-head>h2 { grid-column:2; grid-row:1; min-width:0; }
 .modal-head>.close { grid-column:1; grid-row:1; justify-self:start; }
 .modal-head h2 { line-height:1.5; }
 .modal-head .close { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding:0; border-radius:10px; background:#f5f5f2; }
 .modal-footer { justify-content:center; align-items:center; gap:12px; padding:18px 26px; }
 .modal-footer>.btn { min-width:112px; }
 .main .foot-help { text-align:center; }
 .workshop-totals .panel { text-align:center; padding:22px 18px; }
 .workshop-board .machine-card { display:flex; flex-direction:column; padding:24px; }
 .workshop-board .machine-card footer { margin-top:auto; padding-top:16px; }
 .workshop-board .machine-card footer>.btn { display:flex; width:100%; min-height:44px; justify-content:center; }
 .workshop-board .machine-card header { align-items:center; }
 .workshop-management { justify-content:center; text-align:center; }
 .today-heading-title { text-align:center; align-self:center; }
 .today-details-heading { padding:0 2px; }
}
@media screen and (max-width:800px) {
 .main { padding-inline:20px; }
 .main .hero { padding:26px 0 24px; }
}
@media screen and (max-width:520px) {
 .main { padding-inline:16px; }
 .main .hero { gap:16px; }
 .hero h1 { font-size:25px; }
 .main .hero .actions { width:100%; }
 .modal-head { padding:18px 16px; grid-template-columns:38px minmax(0,1fr) 38px; gap:8px; }
 .modal-footer { padding:14px 16px; }
 .modal-footer>.btn { flex:1 1 40%; min-width:0; }
 .workshop-management { align-items:center; }
}
@media screen {
 .section-switch,.production-filters { justify-content:center; }
 .workshop-hero+.hint,.workshop-setup { text-align:center; }
 .production-filters>.hint { flex-basis:100%; text-align:center; line-height:1.8; }
 .production-filters .btn { min-height:42px; }
 .profile .avatar,.profile button { flex-shrink:0; }
 .profile button { white-space:nowrap; }
}

/* Current workshop sheets; historical batches stay in a folded reference area. */
.workshop-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.workshop-entry-card{padding:28px}.workshop-entry-card h2{margin:0 0 12px}.workshop-entry-card p{color:var(--muted);line-height:1.8;margin-bottom:24px}.workshop-entry-card .actions{flex-wrap:wrap}@media(max-width:680px){.workshop-entry-grid{grid-template-columns:1fr}.workshop-entry-card{padding:22px}}

#xf-icp-footer{position:fixed;bottom:0;left:0;right:0;text-align:center;padding:5px 8px;background:#fff;font-size:12px;line-height:18px;color:#64748b;z-index:5}#xf-icp-footer a{color:inherit;text-decoration:none}body{padding-bottom:28px}

/* Align the advice copy with its card heading. */
.panel:has(> .panel-head > a[href="/business-advice.html"]) > .panel-head{padding-inline:23px;}
.panel:has(> .panel-head > a[href="/business-advice.html"]) > p.hint,
.business-advice-entry > p.hint{width:100%;max-width:none;box-sizing:border-box;margin:0;padding:12px 23px 24px;text-align:left;line-height:1.9;overflow-wrap:anywhere;}
.business-advice-entry{align-items:stretch;text-align:left;}
.business-advice-entry > p.hint{padding:0;}


/* fangjie-archive-spacing-20261026 */
.archive-links-card > .toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0 23px 20px;box-sizing:border-box}
@media(max-width:1150px){.archive-links-card > .toolbar{padding-left:16px;padding-right:16px}}

/* payroll-native-20261026 */
.payroll-native{font-size:14px;line-height:1.6}
.payroll-native>header,.payroll-native>a{display:none}
.payroll-native section{background:#fff;border:1px solid var(--line,#e8e8e8);border-radius:16px;padding:24px;margin:0 0 20px}
.payroll-native h2{font-size:18px;margin:0 0 18px}
.payroll-native label{display:inline-flex;flex-direction:column;gap:7px;margin:8px 12px 8px 0;vertical-align:top;font-size:14px}
.payroll-native input,.payroll-native select,.payroll-native textarea{font:inherit;padding:10px;border:1px solid var(--line,#e8e8e8);border-radius:8px;background:white;color:var(--ink,#262626)}
.payroll-native textarea{min-width:280px;min-height:80px}
.payroll-native button{font:inherit;padding:10px 16px;border:1px solid var(--brand-line,#ffc99f);border-radius:8px;background:white;color:var(--accent,#c45100);cursor:pointer;margin:8px 6px 8px 0}
.payroll-native button:hover:not(:disabled){background:var(--light,#fff2e7)}
.payroll-native button:disabled{opacity:.45;cursor:wait}
.payroll-native :is(button[type=submit],button[data-action=submit],button[data-action=approve],#refresh,#upload){background:var(--brand,#ff7a13);border-color:var(--brand,#ff7a13);color:var(--ink,#262626);font-weight:650}
.payroll-native .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px}
.payroll-native .grid label{display:flex;margin-right:0}
.payroll-native .grid input{width:100%}
.payroll-native .confirm{display:flex;flex-direction:row;align-items:center}
.payroll-native .notice{padding:14px 18px;border-left:4px solid var(--brand,#ff7a13);background:var(--light,#fff2e7);border-radius:10px;line-height:1.7;margin:0 0 20px;font-size:13px}
.payroll-native #error{color:#a32525;white-space:pre-wrap}
.payroll-native #error:not(:empty){padding:12px 0 18px}
.payroll-native .record{padding:16px 0;border-top:1px solid var(--line,#e8e8e8)}
.payroll-native .record:first-child{border-top:0}
.payroll-native .record p{line-height:1.7;white-space:pre-wrap}
.payroll-native .amount{font-weight:700;font-size:20px}
.payroll-native .status{font-size:13px;color:var(--muted,#737373)}
.payroll-native #editing{color:#a16313}
.payroll-native>section:first-of-type{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}
.payroll-native>section:first-of-type label,.payroll-native>section:first-of-type button{margin:0}
.payroll-native>section:first-of-type #export{margin-left:auto}
@media(max-width:700px){.payroll-native section{padding:18px}.payroll-native .grid{grid-template-columns:1fr}.payroll-native textarea{min-width:0;width:100%}.payroll-native>section:first-of-type #export{margin-left:0}}

/* SALES_ORDER_NOTE_V1_20261027 */
.manual-order-note{margin-top:14px;gap:6px}.manual-order-note textarea{min-height:44px;resize:vertical;line-height:1.6}
/* SALES_INPUT_STYLE_V1_20261027 */

 .manual-order .manual-table{min-width:1000px}
 .manual-order .manual-item{grid-template-columns:minmax(160px,1.5fr) minmax(90px,.85fr) 120px 54px 110px 130px 94px minmax(150px,1.2fr) 24px;gap:8px}
 .manual-order .manual-item input{padding:9px 8px;min-width:0}
 .manual-order .manual-item input[name=item_qty],.manual-order .manual-item input[name=item_price]{font-variant-numeric:tabular-nums;font-size:14px;appearance:textfield;-moz-appearance:textfield}
 .manual-order .manual-item input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}
 .manual-order .manual-item.item-labels span:nth-child(7){text-align:right}
 .manual-order .manual-item.item-labels span:nth-child(8){text-align:left}
 .xf-date-entry{display:flex;align-items:center;position:relative;min-width:180px;max-width:100%;border:1px solid #dcdcdc;border-radius:6px;background:#fff;min-height:39px;padding:0 5px;gap:2px}
 .xf-date-entry:focus-within{border-color:#b56c36;box-shadow:0 0 0 2px #b56c3618}
 .xf-date-entry input.xf-date-part{border:0;border-radius:3px;min-width:0;width:30px;min-height:35px;padding:5px 2px;text-align:center;font-size:13px;box-shadow:none;font-variant-numeric:tabular-nums}
 .xf-date-entry input.xf-date-year{width:48px}
 .xf-date-entry span{font-size:11px;color:#888}
 .xf-date-entry button{border:0;background:transparent;cursor:pointer;padding:4px;margin-left:auto;font-size:16px;min-width:25px}
 .xf-date-entry input.xf-date-native{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;min-height:0;padding:0;bottom:0;right:0}
 @media(max-width:650px){.manual-order .manual-top{grid-template-columns:minmax(0,1fr)}.xf-date-entry{max-width:260px}}
 
/* SALES_PRINT_NO_SKU_20261027 */
.sales-slip.sales-no-sku th:nth-child(1){width:4%}.sales-slip.sales-no-sku th:nth-child(2){width:16%}.sales-slip.sales-no-sku th:nth-child(3){width:14%}.sales-slip.sales-no-sku th:nth-child(4){width:6%}.sales-slip.sales-no-sku th:nth-child(5){width:10%}.sales-slip.sales-no-sku th:nth-child(6){width:12%}.sales-slip.sales-no-sku th:nth-child(7){width:11%}.sales-slip.sales-no-sku th:nth-child(8){width:11%}.sales-slip.sales-no-sku th:nth-child(9){width:16%}
.sales-slip.sales-private-no-sku th:nth-child(1){width:5%}.sales-slip.sales-private-no-sku th:nth-child(2){width:26%}.sales-slip.sales-private-no-sku th:nth-child(3){width:24%}.sales-slip.sales-private-no-sku th:nth-child(4){width:10%}.sales-slip.sales-private-no-sku th:nth-child(5){width:17%}.sales-slip.sales-private-no-sku th:nth-child(6){width:18%}

/* SALES_SINGLE_PAGE_20261027 */
.sales-slip.sales-no-sku .sales-note-row{height:auto!important}
.sales-slip.sales-no-sku .sales-note-row td{height:auto!important;text-align:left;padding:6px 5px!important;line-height:1.4!important}
.sales-note-line{display:block;width:100%;white-space:nowrap;overflow:hidden;font-size:11px;line-height:1.4}
#sales-single-page{position:relative;box-sizing:border-box;width:227mm;height:126mm;margin:0;padding:0;overflow:hidden;background:white;color:#202020}
#sales-single-page .sales-single-page-content{position:absolute;top:0;left:0;box-sizing:border-box;width:227mm;min-width:0!important;max-width:none;margin:0;padding:0!important;transform-origin:top left;font-family:"SimSun","Songti SC",serif}
#sales-single-page .sales-slip header{margin:0 0 6px}
#sales-single-page .sales-slip h1{font-size:17px;margin:0;font-weight:500}
#sales-single-page .sales-slip h2{font-size:15px;margin:4px 0 0;letter-spacing:7px}
#sales-single-page .sales-slip .slip-heading{font-size:11px;line-height:1.5;margin-bottom:6px}
#sales-single-page .sales-slip table{width:100%;margin:0;table-layout:fixed;border-collapse:collapse}
#sales-single-page .sales-slip tbody tr{height:auto!important}
#sales-single-page .sales-slip td,#sales-single-page .sales-slip th{font-size:10px;padding:5px 3px;line-height:1.4}
#sales-single-page .sales-slip .slip-note{line-height:1.4}
#sales-single-page .sales-slip .sales-note-line{font-size:10px}
#sales-single-page .sales-slip footer{font-size:10px;line-height:1.4;margin:8px 0 0;gap:8px;flex-wrap:nowrap}
#sales-single-page .sales-slip p{font-size:10px;margin:4px 0;line-height:1.4}
@media screen{#sales-single-page{position:fixed;left:-100000px;top:0}}
@media print{
  @page sales-single-page{size:241mm 140mm;margin:6mm}
  body.sales-single-page-printing{display:block!important;margin:0!important;padding:0!important;background:white!important;min-height:0!important;height:auto!important}
  body.sales-single-page-printing>*:not(#sales-single-page){display:none!important}
  body.sales-single-page-printing::before,body.sales-single-page-printing::after{display:none!important}
  body.sales-single-page-printing #sales-single-page{page:sales-single-page;display:block!important;position:relative!important;left:0;top:0;break-inside:avoid;break-after:auto}
}

/* sales-heading-20261028 */
.sales-heading-field{max-width:440px;margin:0 0 18px}.sales-heading-field small{line-height:1.6}.sales-heading-field select{width:100%}

/* sale-search-ui-20261028: leave room for the input border and focus ring at the scroll edge. */
.manual-order .manual-table-scroll{padding:4px;margin:-4px;scroll-padding-inline:4px}
.manual-order .item-input>input{min-width:0;max-width:100%;box-sizing:border-box}
.manual-order .item-input>input:focus{outline-offset:-2px}
.manual-order .product-suggestions{min-width:0;width:100%;max-width:100%;box-sizing:border-box;margin-inline:0;text-align:left;overflow-x:hidden}
.manual-order .product-suggestions[hidden]{display:none!important}
.manual-order .product-suggestions:not([hidden]){display:block}
.product-search-heading,.product-search-empty{white-space:normal;overflow-wrap:anywhere}
.product-search-empty{padding:12px 14px;font-size:12px;line-height:1.7;color:var(--muted);background:#fff}
.product-search-copy strong{overflow-wrap:anywhere}

/* inventory-ui-20261028 */
#stock-search.table-toolbar{display:grid;grid-template-columns:minmax(0,420px) max-content minmax(0,1fr);align-items:end;gap:12px;justify-content:normal}
#stock-search>.field{min-width:0;width:100%;margin:0}
#stock-search>button{white-space:nowrap;align-self:end}
#stock-search>span{justify-self:end;overflow-wrap:anywhere}
@media(max-width:650px){#stock-search.table-toolbar{grid-template-columns:minmax(0,1fr) max-content}#stock-search>span{grid-column:1/-1;justify-self:start}}

/* sale-multi-units-20261028 */
.multi-unit-area{grid-column:1/-1;padding:8px 4px 12px;border-bottom:1px solid #e7e7e7;min-width:0;white-space:normal}
.multi-unit-help{font-size:12px;color:#777;margin-left:10px}.multi-unit-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0}.multi-unit-row label{display:flex;align-items:center;gap:6px;font-size:13px}.manual-item .multi-unit-row input{width:110px;min-width:0}.multi-unit-row [data-multi-result]{font-weight:600}.multi-unit-confirm{display:flex;align-items:center;gap:8px;font-size:13px}.multi-unit-confirm[hidden]{display:none}.manual-item .multi-unit-confirm input{width:16px;min-width:16px;outline-offset:0}.multi-unit-area [data-multi-summary]{margin:8px 0;font-size:13px;overflow-wrap:anywhere}

/* sales-workflow-20261028 */
.order-category-tabs{display:flex;flex-direction:row;gap:6px;padding:6px;margin:24px 0 0;background:#ecefed;border-radius:12px;overflow-x:auto}
.order-category-tabs button{flex:1;min-width:76px;border:0;border-radius:8px;background:transparent;color:var(--muted);padding:12px 20px;font-weight:600;white-space:nowrap}
.order-category-tabs button.active{background:#fff;color:var(--ink);box-shadow:0 2px 7px #172a2110}
.order-category-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.order-category-panel{padding-top:20px}
.order-category-heading{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:22px}
.order-category-heading>p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.order-category-actions{display:flex;flex-wrap:wrap;gap:8px}
.order-category-actions .btn{padding:9px 14px;font-size:13px}
.order-category-panel .detail-box{margin-top:16px}
@media(max-width:520px){.order-category-tabs button{padding:11px 12px}.order-category-actions{width:100%}.order-category-actions .btn{flex:1 1 auto}.order-category-panel .detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.order-sale-total{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px 20px;border:1px solid var(--line);border-radius:10px;background:white}.order-sale-total>span,.order-sale-total>small{color:var(--muted);font-size:13px}.order-sale-total>strong{font-size:24px;font-variant-numeric:tabular-nums}.order-sale-total>small{margin-left:auto}

/* slip-fonts-20261028: physical point sizes; never shrink a document to one page. */
.delivery-slip,.delivery-slip *{
 font-family:"SimSun","宋体","Songti SC",serif!important;
 font-size:16pt!important;font-weight:400!important;
 line-height:1.25!important;letter-spacing:0!important;
}
.delivery-slip h1,.delivery-slip h1 *{font-size:22pt!important;line-height:1.25!important}
.delivery-slip header{margin-bottom:3mm}
.delivery-slip h2{margin-top:1mm}
.delivery-slip .slip-heading{gap:4mm;margin-bottom:3mm;flex-wrap:wrap}
.delivery-slip .slip-heading>div{min-width:0;overflow-wrap:anywhere}
.delivery-slip td,.delivery-slip th{padding:1.5mm 1mm!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}
.delivery-slip tbody tr{height:auto!important}
.delivery-slip .sales-note-line,.delivery-slip .slip-note,.delivery-slip .sales-order-note{
 white-space:pre-wrap!important;overflow:visible!important;overflow-wrap:anywhere;
 max-height:none!important;height:auto!important;
}
.delivery-slip footer{flex-wrap:wrap!important;gap:3mm 6mm;margin-top:3mm}
.delivery-slip .sales-paper-terms{white-space:pre-wrap;overflow-wrap:anywhere}
@media print{
 .delivery-slip,.delivery-slip *{text-shadow:none!important}
 .delivery-slip{max-height:none!important;height:auto!important;overflow:visible!important;transform:none!important;zoom:1!important}
 .delivery-slip header,.delivery-slip .slip-heading{break-inside:avoid}
 .delivery-slip table{width:100%;table-layout:fixed;white-space:normal}
 .delivery-slip thead{display:table-header-group}
 .delivery-slip tbody tr{break-inside:auto!important}
 .delivery-slip footer{break-inside:avoid}
 .delivery-slip .sales-note-row,.delivery-slip .sales-paper-terms{break-inside:auto!important}
 #paper{overflow:visible!important}
}

/* inventory-organize-20261028 */
.inventory-more{margin:0 0 18px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px 14px}
.inventory-more>summary{cursor:pointer;font-size:13px;color:var(--muted);width:fit-content}
.inventory-more[open]>summary{margin-bottom:12px}
.inventory-more .actions{display:flex;gap:10px;flex-wrap:wrap}
.inventory-search-bar{justify-content:flex-start!important;align-items:flex-end!important;gap:14px!important;flex-wrap:wrap}
.inventory-search-bar .inventory-search-group{display:flex;align-items:flex-end;gap:8px;min-width:0;flex:1;max-width:560px}
.inventory-search-group>.field{flex:1;min-width:140px}
.inventory-search-bar>.field{min-width:140px}
.inventory-search-bar>.field,.inventory-search-group>.field{margin:0}
.inventory-search-bar>span{padding-bottom:10px;color:var(--muted);font-size:12px}
.inventory-section-tabs{margin-bottom:14px}
@media(max-width:640px){.inventory-search-bar .inventory-search-group{flex-basis:100%;max-width:none}.inventory-search-bar>.field{flex:1}.inventory-section-tabs{display:flex;overflow-x:auto}.inventory-section-tabs>button{flex:1;white-space:nowrap}}

/* workshop-tools-20261029 */
.workshop-tools{margin:20px 0 16px;border:1px solid #eadfd5;border-radius:14px;background:#fff;overflow:hidden;color:#302a25}
.workshop-tools>summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:62px;padding:14px 18px;cursor:pointer;font-size:14px;font-weight:600}
.workshop-tools>summary::-webkit-details-marker{display:none}
.workshop-tools>summary:hover{background:#fff8f2}
.workshop-tools>summary:focus-visible{outline:2px solid #ed8532;outline-offset:-3px;border-radius:12px}
.workshop-tools-icon{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:9px;color:#c76b24;background:#fff0e2}
.workshop-tools-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.workshop-tools-toggle{margin-left:auto;display:flex;align-items:center;gap:10px;color:#897b70;font-size:12px;font-weight:400;white-space:nowrap}
.workshop-tools-toggle::before{content:'展开'}
.workshop-tools-toggle::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 4px}
.workshop-tools[open]>.workshop-tools-summary,.workshop-tools[open]>summary{background:#fff8f2}
.workshop-tools[open] .workshop-tools-toggle::before{content:'收起'}
.workshop-tools[open] .workshop-tools-toggle::after{transform:rotate(225deg);margin-top:5px;margin-bottom:0}
.workshop-tools-body{display:flex;flex-wrap:wrap;gap:12px;padding:16px 18px 18px;border-top:1px solid #f0e7de}
.workshop-tools-link{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:46px;min-width:220px;max-width:100%;padding:12px 14px;border:1px solid #e9e2dc;border-radius:9px;background:#fff;color:#754a2b;font:inherit;font-size:13px;text-align:left;text-decoration:none;line-height:1.5}
.workshop-tools-link::after{content:'→';color:#cf782f;flex-shrink:0}
.workshop-tools-link:hover{background:#fff8f2;border-color:#e8b58b;text-decoration:none}
.workshop-tools-link:focus-visible{outline:2px solid #ed8532;outline-offset:2px}
@media(max-width:600px){.workshop-tools>summary{padding:12px;gap:9px}.workshop-tools-body{padding:12px}.workshop-tools-link{width:100%;min-width:0}.workshop-tools-toggle{gap:6px}}

/* history-row-layout-20261029 */
.real-history-table{table-layout:auto;min-width:1050px;width:100%;height:auto}
.real-history-table th:nth-child(n){width:auto}
.real-history-table th:nth-child(1){width:16%}
.real-history-table th:nth-child(2){width:11%}
.real-history-table th:nth-child(3){width:8%}
.real-history-table th:nth-child(4){width:22%}
.real-history-table th:last-child{width:210px;min-width:210px}
.real-history-table td{height:auto;padding:10px 12px;vertical-align:top;line-height:1.5}
.real-history-table td:nth-child(3){white-space:nowrap}
.real-history-table td:nth-child(4){min-width:200px;text-align:left}
.real-history-table td:nth-child(5){min-width:125px;text-align:right}
.real-history-table td:nth-child(6):not(:last-child),.real-history-table td:nth-child(7):not(:last-child){white-space:nowrap;text-align:right}
.real-history-table td:last-child{min-width:210px;text-align:left;overflow-wrap:break-word}
.real-history-table td:last-child .btn{white-space:nowrap;margin:0 4px 4px 0}
.real-history-table td small{margin-top:4px;line-height:1.5}

.order-discount-box{margin:18px 0;padding:20px 24px;background:#fff7ec;border:1px solid #f1d4b6;border-radius:12px;display:grid;grid-template-columns:1fr auto;gap:10px 24px;align-items:center}.order-discount-box strong{color:#a64f10}.order-discount-box p{margin:6px 0}.order-discount-box small{color:#777}.order-discount-values{display:flex;align-items:center;gap:26px}.order-discount-values .field{margin:0;min-width:210px}.order-discount-values input[type=number]{font-size:22px;font-weight:650;color:#a64f10;background:#fff}.order-discount-result{display:grid;grid-template-columns:auto auto;align-items:center;gap:7px 14px;white-space:nowrap}.order-discount-result output{font-size:19px;color:#a64f10;font-weight:650}.order-discount-result .btn{grid-column:2}.order-discount-box #order-discount-error{grid-column:1/-1;margin:0}.order-discount-box #order-discount-error:empty{display:none}.order-discount-values input[aria-invalid=true]{border-color:#c33;background:#fff5f5}@media(max-width:850px){.order-discount-box{grid-template-columns:1fr}.order-discount-values{flex-wrap:wrap;gap:16px}.order-discount-values .field{flex:1;min-width:180px}}

/* customer-delete-20261103-v1 */
.customer-delete-area{display:flex;align-items:center;gap:12px;border-top:1px solid #eee;padding-top:16px;margin-top:20px;flex-wrap:wrap}.customer-delete-area .danger{color:#b42318;border-color:#efc3bc;background:#fff}.customer-delete-area small{color:#777}

/* stock-production-repair-20261103-v1 */
.stock-detail-compact{font-size:14px;line-height:1.5;text-align:left}
.stock-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;background:#f7f8fa;border:1px solid #e7e9ed;border-radius:6px}
.stock-detail-summary small{display:block;color:#717783;margin-bottom:4px}.stock-detail-summary strong{font-size:24px;font-variant-numeric:tabular-nums}.stock-detail-summary .stock-current strong{color:#d65b00}
.stock-detail-compact .stock-detail-caption{margin:10px 0 18px;color:#717783;font-size:13px}.stock-detail-compact h3{font-size:15px;margin:14px 0 8px;text-align:left}
.stock-detail-table{overflow:auto;border:1px solid #e7e9ed;border-radius:5px}.stock-detail-table table{width:100%;margin:0;border-collapse:collapse;table-layout:auto}.stock-detail-table th,.stock-detail-table td{padding:10px 12px!important;text-align:left;vertical-align:top;border-bottom:1px solid #eceef1;font-size:13px;line-height:1.5}.stock-detail-table th{background:#f5f6f8;white-space:nowrap;font-weight:600}.stock-detail-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.stock-date{white-space:nowrap}.stock-detail-table td:last-child{min-width:200px;overflow-wrap:anywhere}.stock-detail-table .stock-empty{text-align:center;padding:22px!important;color:#858b96}
.stock-detail-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 16px;color:#717783;font-size:13px}.stock-detail-pages>div{display:flex;align-items:center;gap:10px}.stock-detail-compact details{border-top:1px solid #e7e9ed;padding:12px 0;margin:0}.stock-detail-compact summary{font-weight:500;color:#505866;cursor:pointer}.stock-detail-compact details p{font-size:13px;margin:8px 0}.stock-detail-compact details .stock-detail-table{margin-top:10px}@media(max-width:600px){.stock-detail-summary{gap:8px;padding:12px}.stock-detail-summary strong{font-size:20px}.stock-detail-pages{flex-wrap:wrap}}

/* packing-transfer-search-20261103-v1 */
.packing-stock-shortcut{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.packing-stock-shortcut>span{font-size:13px;color:#7b818c}.packing-stock-summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 16px;border:1px solid #ffdab4;background:#fff8f1;border-radius:6px;margin:12px 0}.packing-stock-summary>span{font-weight:600;color:#bf5400;font-variant-numeric:tabular-nums}.packing-stock-summary small{color:#777f8a}

/* Stock ledger: compact business transactions */
.stock-ledger{font-size:14px;color:#303740}.stock-ledger-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:#f6f8fa;border:1px solid #e3e6eb}.stock-ledger-head strong{font-size:24px;margin:0 8px}.stock-ledger small{display:block;font-size:12px;color:#77808b;margin-top:4px}.stock-ledger-tabs{display:flex;gap:8px;padding:16px 0 10px;flex-wrap:wrap}.stock-ledger-tabs .active{color:#c95200;background:#fff3e8;border-color:#ff9c50}.stock-ledger-opening{display:flex;gap:12px;flex-wrap:wrap;padding:10px 12px;background:#fafafa;border:1px solid #e5e7eb;font-size:13px}.stock-ledger-opening span{color:#737b85}.stock-ledger-scroll{overflow:auto}.stock-ledger table{width:100%;border-collapse:collapse;min-width:850px}.stock-ledger th{background:#f3f5f7;color:#626b75;font-weight:600}.stock-ledger th,.stock-ledger td{padding:10px 12px;border-bottom:1px solid #e6e9ee;text-align:left;vertical-align:top}.stock-ledger .numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.stock-ledger-date{white-space:nowrap;font-variant-numeric:tabular-nums}.stock-ledger-link{color:#bd5005;border:0;background:none;padding:0;font:inherit;text-decoration:none;cursor:pointer}.stock-ledger-link:hover{text-decoration:underline}.stock-ledger-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;color:#737b85;font-size:12px}.stock-ledger-footer>div{display:flex;align-items:center;gap:10px}.stock-ledger .stock-ledger-empty{text-align:center;padding:36px;color:#848b94}@media(max-width:650px){.stock-ledger-head{align-items:flex-start;flex-direction:column}}

/* inventory-filter-layout-20261106-v1 */
#stock-search.table-toolbar.inventory-search-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 12px;
}
#stock-search.inventory-search-bar > .inventory-warehouse-select {
  flex: 0 0 180px;
  width: 180px;
  min-width: 0;
}
#stock-search.inventory-search-bar > .inventory-type-select {
  flex: 0 0 150px;
  width: 150px;
  min-width: 0;
}
#stock-search.inventory-search-bar .inventory-search-group {
  display: flex;
  align-items: flex-end;
  flex: 1 1 420px;
  gap: 10px;
  width: auto;
  min-width: min(100%, 320px);
  max-width: 600px;
}
#stock-search.inventory-search-bar .inventory-search-group > .field {
  flex: 1 1 auto;
  min-width: 0;
}
#stock-search.inventory-search-bar .field {
  margin: 0;
}
#stock-search.inventory-search-bar input,
#stock-search.inventory-search-bar select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 46px;
}
#stock-search.inventory-search-bar .btn {
  flex: 0 0 auto;
  height: 46px;
  white-space: nowrap;
}
#stock-search.inventory-search-bar > span {
  flex: 0 0 auto;
  justify-self: start;
  margin: 0;
  padding-bottom: 12px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  #stock-search.inventory-search-bar > .inventory-warehouse-select,
  #stock-search.inventory-search-bar > .inventory-type-select {
    flex: 1 1 140px;
    width: auto;
  }
  #stock-search.inventory-search-bar .inventory-search-group {
    flex-basis: 100%;
    max-width: none;
    min-width: 0;
  }
}

/* searchable-business-fields-20261110-v1 */
.xf-choice,.sale-product-picker{position:relative;display:block;min-width:0;width:100%;flex:1}
.xf-choice input[role=combobox],.sale-product-picker input[role=combobox]{width:100%;min-width:0;padding-right:38px}
.xf-choice .xf-choice-original{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden;clip-path:inset(50%);pointer-events:none}
.xf-choice-arrow,.sale-product-picker .sale-product-arrow{position:absolute;top:2px;bottom:2px;right:2px;width:34px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted)}
.xf-choice-arrow span,.sale-product-arrow span{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.xf-choice-arrow:hover,.sale-product-picker .sale-product-arrow:hover{background:var(--light,#fff2e8);color:var(--accent)}
.xf-choice-menu{display:block;position:absolute;top:calc(100% + 3px);left:0;z-index:40;width:max-content;min-width:100%;max-width:min(420px,85vw);max-height:250px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 6px 20px #2222}
.xf-choice-menu[hidden],.xf-choice-more[hidden]{display:none!important}
.xf-choice-status{display:block;padding:8px 11px;font-size:12px;color:var(--muted);background:#fafafa}
.xf-choice-menu button{display:block;text-align:left;min-height:35px;width:100%;padding:7px 11px;background:#fff;border:0;border-radius:0;color:var(--ink);overflow-wrap:anywhere}
.xf-choice-menu button:is(:hover,[aria-selected=true]){color:var(--accent);background:var(--light,#fff2e8)}
.xf-choice-menu .xf-choice-more{text-align:center;border-top:1px solid var(--line);color:var(--accent)}
.manual-order .manual-item > .sale-product-picker{align-self:center}

.btn.small.order-payment-action {
  min-inline-size: 6.3em;
  justify-content: center;
  white-space: nowrap;
}
.btn.small.order-payment-complete {
  border-color: #d8e6d9;
  background: #f0f6ef;
  color: #336247;
}
.btn.small.order-payment-complete:hover {
  border-color: #abc7af;
  background: #e4f0e4;
  color: #2a573d;
}

/* carton-material-layout */
fieldset[data-product-packaging] {grid-column:1 / -1; min-width:0; width:100%; box-sizing:border-box}
fieldset[data-product-packaging] .form-grid {grid-template-columns:minmax(0,3fr) minmax(10rem,1fr)}
fieldset[data-product-packaging] .field {min-width:0}
fieldset[data-product-packaging] select {width:100%;min-width:0}
fieldset[data-product-packaging] .material-full-name {display:block;font-weight:400;overflow-wrap:anywhere;white-space:normal;line-height:1.45}
fieldset[data-product-packaging] .material-full-name:empty {display:none}
@media(max-width:660px){fieldset[data-product-packaging] .form-grid {grid-template-columns:minmax(0,1fr)}}
fieldset.package-ratios{grid-column:1/-1;min-width:0;padding:14px;border:1px solid #ddd;border-radius:8px;color:inherit}
.package-ratios>label{margin-top:12px}
.package-ratio-row{display:grid;grid-template-columns:minmax(3.8em,1fr) minmax(3em,1fr) auto minmax(3em,1fr) auto;align-items:end;gap:8px;margin-bottom:10px}
.package-ratio-row .field,.package-ratio-row input{min-width:0;width:100%;box-sizing:border-box}
.package-ratio-row>span{align-self:end;padding-bottom:.65em}
@media(max-width:520px){.package-ratio-row{gap:4px}.package-ratio-row .btn{padding:6px}}

/* order-detail-form-layout-20261121-v1 */
.order-detail-products .table-scroll>table{min-width:570px}
.order-detail-products .table-scroll th,.order-detail-products .table-scroll td{vertical-align:top}
.order-detail-products .order-detail-product-name{display:block;font-weight:650;overflow-wrap:anywhere}
.order-detail-products .order-detail-product-field{min-width:118px}
.order-detail-products .order-detail-quantities{min-width:186px}
.order-detail-products .order-detail-quantity-fields{display:flex;flex-wrap:wrap;gap:6px}
.order-detail-products .order-detail-field{display:inline-flex;align-items:center;gap:8px;min-height:35px;padding:6px 9px;border:1px solid var(--line,#dfe3e8);border-radius:6px;background:#fff;white-space:nowrap;font-size:13px}
.order-detail-products .order-detail-field span{font-size:12px;color:var(--muted,#596273)}
.order-detail-products .order-detail-field strong{font-variant-numeric:tabular-nums;font-weight:650}
.order-detail-products .order-detail-field-primary{background:#fff6ed;border-color:#f0cba6}
.order-detail-products .order-detail-quantity-note{display:block;white-space:normal;overflow-wrap:anywhere;color:var(--muted,#596273);margin-top:7px;font-size:12px;line-height:1.5}
.order-detail-products .order-detail-price-note{display:block;white-space:normal;overflow-wrap:anywhere;margin-top:6px}
.order-detail-delivery>p.delivery-text{border:1px solid var(--line,#dfe3e8);background:#fff;border-radius:6px;padding:9px 11px;white-space:pre-wrap;overflow-wrap:anywhere}

/* Sales slip review stamp */
.delivery-slip .xf-sales-stamp-header{position:relative}
.delivery-slip .xf-sales-stamp-header .xf-sales-review-stamp{
 position:absolute;inset:50% clamp(10px,3%,30px) auto auto;
 transform:translateY(-50%) rotate(-9deg);border:2px solid currentColor;border-radius:4px;
 padding:3px 8px;color:#ba252c!important;background:#fff;
 font-size:14px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:.06em;
 white-space:nowrap;pointer-events:none;print-color-adjust:exact;-webkit-print-color-adjust:exact
}
.xf-sales-review-stamp[hidden]{display:none!important}
@media screen{
 dialog.wide.order-paper-dialog{width:min(1360px,calc(100vw - 28px));max-width:none}
 .order-document-paper{overflow-x:auto;padding-bottom:3px}
 .order-paper-dialog .sales-paper-reference{min-width:760px!important}
}

@media screen {
  .direct-shipping-panel .direct-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
  }
  .direct-shipping-panel #direct-search {
    flex: 1 1 16rem;
    min-width: 0;
  }
  .direct-shipping-panel .direct-filters label {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    font-size: 13px;
    min-height: 32px;
    cursor: pointer;
  }
  .direct-shipping-panel [data-direct-unbilled] {
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    flex: none;
    accent-color: var(--brand, #ff790e);
  }
}

@media screen {
  #ship-details .history-ship-selection {
    table-layout: fixed;
    width: 100%;
    min-width: 680px;
  }

  #ship-details .history-ship-selection th:first-child { width: 72px; }
  #ship-details .history-ship-selection th:nth-child(2) { width: 18%; }
  #ship-details .history-ship-selection th:nth-child(3) { min-width: 0; }
  #ship-details .history-ship-selection th:nth-child(n+4) { width: 13%; }

  #ship-details .history-ship-selection td {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #ship-details .history-ship-selection :is(input[type="search"], select, input[type="number"]) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #ship-details .history-ship-selection [data-history-product-search] + select {
    margin-top: 4px;
  }
}
