.board-header{max-width:1180px;margin:auto;padding:24px;display:flex;align-items:center;gap:14px}.brand{display:grid;place-items:center;width:48px;height:48px;background:var(--green);border-radius:15px;font-size:25px;color:white;text-decoration:none;font-weight:700}.account{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:13px}.account button{border:0;background:none;color:var(--green);min-height:44px}.muted{color:var(--muted);font-size:13px}.board-main{max-width:1180px}.board-tools{display:flex;gap:12px;align-items:center}.search{flex:1}.search input{width:100%;min-width:0;height:46px;border:1px solid var(--line);border-radius:10px;padding:12px;background:white;font:inherit}.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap}.filters{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 16px}.filters button{border:1px solid var(--line);padding:10px 15px;border-radius:24px;background:white;color:#5c6f5b;min-height:44px}.filters button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.stage-filter{display:flex;align-items:center;gap:12px;font-size:13px;color:#596752;margin-bottom:18px}.stage-filter select,.state-form select{padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;background:white}.order-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.order-card{display:block;text-align:left;border:1px solid var(--line);border-radius:16px;padding:20px;background:white;color:inherit;min-width:0}.order-card h2{font-size:19px;margin:0 0 12px;overflow-wrap:anywhere}.order-card p{font-size:14px;line-height:1.7;margin:7px 0;white-space:pre-line;overflow-wrap:anywhere}.order-card .card-summary{color:var(--green);font-weight:600}.tags{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.tags span{padding:5px 9px;border-radius:6px;background:#eef4e9;color:#526d4e;font-size:12px}.empty{text-align:center;padding:70px 20px;color:var(--muted)}.detail-files{display:flex;flex-wrap:wrap;gap:10px}.detail-files a{padding:10px;border:1px solid var(--line);border-radius:8px;text-decoration:none;color:var(--green);max-width:100%;overflow-wrap:anywhere}.detail-files img{display:block;width:120px;height:100px;object-fit:contain;margin-bottom:5px}.detail-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:#687461}.state-form{padding:16px;margin-top:20px;border-radius:12px}.state-form label{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;font-size:14px}.state-form input[type=checkbox]{width:20px;height:20px}.state-form button{margin-top:7px}.history{font-size:12px;color:var(--muted);line-height:1.8;padding-left:18px}.login-page{max-width:430px;padding-top:80px}.login-page>.brand{margin-bottom:20px}.login-page form{margin-top:24px;padding:24px}.login-page .field+.field{margin-top:20px}.login-page .primary{margin-top:20px;width:100%}.existing-files{display:grid;gap:10px;font-size:13px}.existing-files label{display:flex;gap:8px;align-items:center}.existing-files a{color:var(--green);overflow-wrap:anywhere}.existing-files input{width:20px!important;height:20px;margin:0!important}.detail-actions{display:flex;gap:10px;margin-top:18px}.detail-text{overflow-wrap:anywhere;line-height:1.8}.notice-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.notice-label,.notice-date-label{display:flex;align-items:center;gap:8px;margin-bottom:0!important;line-height:1.6}.notice-date-label{color:#596752}.notice-date-label input{min-height:36px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:white;color:inherit;font:inherit}select:focus-visible{outline:3px solid #79ab8a;outline-offset:3px}@media(max-width:900px){.order-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.board-header{padding:20px 16px}.account{font-size:12px;gap:2px}.account>span{max-width:90px;overflow-wrap:anywhere}.board-tools{gap:8px}.board-tools .primary{font-size:13px;padding:10px}.order-grid{grid-template-columns:1fr}.filters{gap:6px}.filters button{padding:9px 12px;font-size:13px}.login-page{padding-top:45px}.detail-actions{flex-wrap:wrap}}
[hidden]{display:none!important}

/* Keep Android/iOS IME composition from moving the order list while results rerender. */
html{scroll-behavior:auto;overscroll-behavior-y:contain}
body,main,#orders,#empty{overflow-anchor:none}
@media(max-width:520px){.search input{font-size:16px;scroll-margin-top:12px}.line-table input{font-size:16px}}

/* Order overview restored above search; three columns on phones too. */
.order-overview{margin:0 0 22px;padding:25px 28px 27px;background:#0f2116;color:#fff;border-radius:26px}.order-overview h2{margin:0 0 21px;font-size:14px;font-weight:500;color:#b9c7bc}.overview-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}.overview-counts>div{display:flex;flex-direction:column;min-width:0}.overview-counts dt{font-size:14px;line-height:1.5;color:#b9c7bc}.overview-counts dd{order:-1;margin:0 0 8px;font-size:36px;line-height:1.15;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}@media(max-width:520px){.order-overview{margin-bottom:18px;padding:22px 18px 23px;border-radius:22px}.order-overview h2{font-size:13px;margin-bottom:18px}.overview-counts{gap:10px}.overview-counts dd{font-size:30px}.overview-counts dt{font-size:12px}}

/* Shared external print styles also work under the application's CSP. */
@page{size:A4 portrait;margin:14mm}
.print-sheet{margin:0;color:#000;background:#fff;font:12pt "SimSun","Songti SC",serif}
.print-sheet *{box-sizing:border-box}
.print-sheet h1{text-align:center;font-size:22pt;letter-spacing:8px;margin:6mm 0 7mm}
.print-sheet .meta{display:flex;justify-content:space-between;gap:8mm;margin:0 0 3mm;line-height:1.6}
.print-sheet .meta span{overflow-wrap:anywhere}
.print-sheet table{border-collapse:collapse;table-layout:fixed;width:100%}
.print-sheet th,.print-sheet td{border:1px solid #000;padding:2mm 1.5mm;text-align:center;overflow-wrap:anywhere;font-weight:normal}
.print-sheet thead{display:table-header-group}
.print-sheet tbody td{height:10mm}
.print-sheet tr{break-inside:avoid}
.print-sheet tfoot td{height:12mm}
.print-sheet col:nth-child(1){width:12%}.print-sheet col:nth-child(2){width:23%}.print-sheet col:nth-child(3){width:10%}.print-sheet col:nth-child(4){width:15%}.print-sheet col:nth-child(5){width:17%}.print-sheet col:nth-child(6){width:9%}.print-sheet col:nth-child(7){width:14%}
.print-sheet .marks{display:grid;grid-template-columns:18% 41% 41%;border:1px solid #000;border-top:0;break-inside:avoid}
.print-sheet .marks>div{padding:3mm;min-height:32mm;border-right:1px solid #000}
.print-sheet .marks>div:last-child{border-right:0}
.print-sheet .marks .label{display:flex;align-items:center;justify-content:center}
.print-sheet .dates{display:grid;grid-template-columns:1fr 1fr;border:1px solid #000;border-top:0;break-inside:avoid}
.print-sheet .dates>div{padding:4mm 3mm;overflow-wrap:anywhere}
.print-sheet .dates>div+div{border-left:1px solid #000}
.entry-links{display:flex;align-items:center;gap:10px}.entry-links .trial{white-space:nowrap}@media(max-width:520px){.entry-links{gap:5px;flex-wrap:wrap;justify-content:flex-end}.entry-links .trial{font-size:12px}}

/* Match the inventory dashboard graphite-gold skin. */
:root{--green:#3c444c;--line:#dad9d1;--muted:#5c666e}
body{color:#29323a;background:#f4f3ef}
.trial-note{color:#5c666e}
.board-header,.topbar{color:#29323a}
.brand,.topbar>a{background:#3c444c}
.account button,.trial,.detail-files a,.status,.secondary{color:#3c444c}
.search input,.field input,td input,form,dialog,.order-card,.secondary{background:#fffefb;border-color:#dad9d1;color:#29323a}
.primary{background:#3c444c;border-color:#3c444c;color:#fff}
.primary:hover{background:#2b333a;border-color:#2b333a}
.secondary{background:#fffefb;border-color:#dad9d1}
.filters button{background:#fffefb;border-color:#dad9d1;color:#5c666e}
.filters button[aria-pressed=true]{background:#3c444c;border-color:#3c444c;color:#fff}
.order-overview{background:#2b333a}
.order-card{border-radius:16px;box-shadow:0 2px 8px #1b27330d}
.order-card .card-summary,.totals,.preview-summary{color:#9a742f}
.tags span,.attachment-field li{background:#eee9de;color:#3c444c}
.category-options span{background:#fffefb;border-color:#dad9d1;color:#5c666e}
.category-options input:checked+span{background:#eee9de;color:#3c444c;border-color:#9a742f}
.add-row{background:#faf5e8;border-color:#cbb789;color:#3c444c}
th{background:#eee9de;color:#3c444c}
.state-form{background:#eee9de}
:focus-visible{outline-color:#9a742f}
@media(max-width:520px){.board-tools .secondary,.board-tools .primary{font-size:12px;padding:10px 8px}.order-card{border-radius:14px}}
 .board-tools .secondary{min-height:46px;padding:11px 16px;border-radius:10px;font-size:14px;font-weight:600;background:#faf5e8;border-color:#cbb789;color:#3c444c}.board-tools .secondary:hover{background:#eee9de;border-color:#9a742f}@media(max-width:520px){.board-tools .secondary{font-size:13px;padding:10px 14px}}
 .inventory-entry{display:flex;justify-content:flex-end;margin:-8px 0 12px}.inventory-entry .secondary{min-height:42px;padding:10px 15px}@media(max-width:520px){.inventory-entry{justify-content:flex-end;margin:-5px 0 10px}.inventory-entry .secondary{min-height:40px;padding:9px 13px}}

/* Inventory action bar: keep the shortcut aligned with the filter flow. */
.inventory-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;margin:10px 0 12px;background:#eee9de;border:1px solid #dad9d1;border-radius:12px}.inventory-entry::before{content:'库存数据';color:#3c444c;font-size:13px;font-weight:600}.inventory-entry .secondary{margin:0;min-height:38px;padding:9px 14px;border-radius:9px;background:#3c444c;border-color:#3c444c;color:#fff}.inventory-entry .secondary:hover{background:#2b333a;border-color:#2b333a}@media(max-width:520px){.inventory-entry{padding:7px 8px;margin:8px 0 10px}.inventory-entry::before{font-size:12px}.inventory-entry .secondary{min-height:38px;padding:8px 12px;font-size:13px}}

/* Clickable stock overview cards. */
.overview-filter{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:7px 8px;border:1px solid transparent;border-radius:10px;background:transparent;color:#fff;text-align:left}.overview-filter span{font-size:14px;line-height:1.5;color:#b9c7bc}.overview-filter strong{order:-1;margin:0 0 8px;font-size:36px;line-height:1.15;font-weight:650;font-variant-numeric:tabular-nums}.overview-filter:hover{background:#3c444c}.overview-filter[aria-pressed="true"]{background:#9a742f;border-color:#cbb789}.overview-filter[aria-pressed="true"] span{color:#fff}.overview-filter:focus-visible{outline:3px solid #cbb789;outline-offset:2px}@media(max-width:520px){.overview-filter{padding:6px 5px}.overview-filter strong{font-size:30px}.overview-filter span{font-size:12px}}

.inventory-hint{min-height:18px;margin-top:4px;font-size:11px;line-height:1.4;overflow-wrap:anywhere;color:#3c444c}.inventory-hint.is-stock{color:#3c444c;font-weight:600}.inventory-hint.is-unchecked{color:#8b6a2e;font-weight:600}.inventory-hint.is-muted{color:#6a747a;font-weight:400}
html{scroll-behavior:auto;overscroll-behavior-y:contain}.search input{scroll-margin-top:16px;-webkit-user-select:text;user-select:text}@media(max-width:520px){.search input{font-size:16px;min-height:46px}.board-tools{align-items:stretch}.search{min-width:0}}
.danger{min-height:46px;padding:11px 18px;border-radius:10px;font-weight:600;font-size:14px;color:#fff;background:#9b492c;border:1px solid #9b492c}.danger:hover{background:#7e3823;border-color:#7e3823}
.ship-confirm{min-height:46px;padding:11px 18px;border-radius:10px;font-weight:600;font-size:14px;color:#fff;background:#9a742f;border:1px solid #9a742f}.ship-confirm:hover{background:#7d5d22;border-color:#7d5d22}.ship-confirm:disabled{background:#a8a092;border-color:#a8a092;cursor:default}@media(max-width:520px){.ship-confirm{width:100%;min-height:44px}}
 .overview-counts{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-filter span{white-space:nowrap}@media(max-width:520px){.overview-counts{gap:5px}.overview-filter{padding:5px 3px}.overview-filter strong{font-size:27px}.overview-filter span{font-size:11px}}

.scan-panel{margin:0 0 22px;padding:18px 20px;border:1px solid #dbe6dc;border-radius:16px;background:#f4f8f2}.scan-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.scan-heading h2{margin:0;color:#183b28;font-size:18px}.scan-heading p{margin:5px 0 0;color:#637263;font-size:13px}.scan-badge{padding:5px 9px;border-radius:6px;background:#e0eee1;color:#39724d;font-size:11px;white-space:nowrap}.scan-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.scan-actions button{min-height:42px}.scan-status{margin:11px 0 0;color:#607161;font-size:12px;line-height:1.6}.scan-preview{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.scan-preview figure{width:78px;margin:0}.scan-preview img{display:block;width:78px;height:66px;object-fit:cover;border:1px solid #d4e1d5;border-radius:7px;background:#fff}.scan-preview figcaption{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6a786b;font-size:10px}.field input[data-scan-uncertain="true"],.line-table input[data-scan-uncertain="true"]{border-color:#c98d35;background:#fff7e2;box-shadow:0 0 0 2px #c98d3533}.category-field[data-scan-uncertain="true"]{border-color:#c98d35;background:#fff7e2}@media(max-width:520px){.scan-panel{padding:15px 14px;border-radius:14px}.scan-heading h2{font-size:16px}.scan-heading p{font-size:12px}.scan-actions{display:grid;grid-template-columns:1fr 1fr}.scan-actions button{width:100%;font-size:12px}.scan-preview figure,.scan-preview img{width:64px}.scan-preview img{height:56px}}
.scan-drop-zone{display:flex;min-height:84px;flex-direction:column;align-items:center;justify-content:center;gap:6px;margin-top:14px;padding:13px 14px;border:1.5px dashed #9ab69d;border-radius:12px;background:#fbfdf9;color:#39513e;text-align:center;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}.scan-drop-zone strong{font-size:14px}.scan-drop-zone span{font-size:12px;color:#6b7b6d}.scan-drop-zone:hover,.scan-drop-zone.is-dragover{border-color:#4e8a5e;background:#eaf5eb;box-shadow:0 0 0 3px #4e8a5e22}.scan-drop-zone:focus-visible{outline:3px solid #79ab8a;outline-offset:3px}@media(max-width:520px){.scan-drop-zone{min-height:74px;margin-top:12px;padding:10px}.scan-drop-zone strong{font-size:13px}.scan-drop-zone span{font-size:11px}}

.inventory-suggestions{display:grid;gap:4px;margin-top:5px}.inventory-suggestions button{padding:5px 7px;border:1px solid #dad9d1;border-radius:6px;background:#faf5e8;color:#3c444c;font:inherit;font-size:11px;text-align:left;cursor:pointer}.inventory-suggestions button:hover{background:#eee9de;border-color:#9a742f}.inventory-suggestions button strong{font-weight:650}.inventory-suggestions button small{display:block;color:#6a747a;font-size:10px;margin-top:2px}

.inventory-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}.inventory-pagination button{padding:5px 9px;border:1px solid #dad9d1;border-radius:6px;background:#fffefb;color:#3c444c;font:inherit;font-size:11px;cursor:pointer}.inventory-pagination button:disabled{opacity:.45;cursor:default}
/* Product entry: align the table at the top and use labelled cards on compact screens. */
#entry .line-table td{vertical-align:top;padding-top:12px;padding-bottom:14px}
#entry .line-table .inventory-hint:empty{display:none}
#entry .line-table .remove-line{height:46px;min-height:46px}
@media(max-width:760px){
  #entry .section-heading{align-items:flex-start;flex-wrap:wrap;gap:6px}
  #entry .line-table,#entry .line-table tbody{display:block;width:100%}
  #entry .line-table colgroup,#entry .line-table thead{display:none}
  #entry .line-table tr{display:grid;position:relative;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);gap:14px 10px;padding:16px;margin-bottom:12px;background:#fff;border:1px solid var(--line);border-radius:12px;align-items:start}
  #entry .line-table td{display:block;min-width:0;padding:0;border:0}
  #entry .line-table td::before{content:attr(data-label);display:block;margin:0 0 7px;font-size:12px;line-height:20px;font-weight:600;color:var(--green)}
  #entry .line-table td:first-child{grid-column:1 / -1;grid-row:1;padding-right:46px}
  #entry .line-table td:nth-child(2){grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 55px;column-gap:0}
  #entry .line-table td:nth-child(2)::before{grid-column:1 / -1}
  #entry .line-table td:nth-child(2) input{border-radius:8px 0 0 8px}
  #entry .line-table td:nth-child(2) select{width:100%;height:46px;min-height:46px;margin:0;padding:5px 2px;border-left:0;border-radius:0 8px 8px 0;font-size:14px}
  #entry .line-table td:nth-child(3){grid-column:2;grid-row:2}
  #entry .line-table td:nth-child(4){grid-column:3;grid-row:2}
  #entry .line-table td:last-child{position:absolute;top:43px;right:16px;width:36px;padding:0}
  #entry .line-table td:last-child::before{display:none}
  #entry .line-table .remove-line{border:1px solid var(--line);border-radius:8px;background:#f7f6f0;font-size:21px}
  #entry .line-table input{height:46px;min-height:46px;padding:10px 9px;font-size:16px}
  #entry .line-table .inventory-suggestions button{min-height:44px;padding:9px 10px;font-size:12px}
  #entry .line-table .inventory-suggestions button small{font-size:11px;margin-left:0}
}
@media(max-width:520px){
  #entry .line-table tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;gap:14px 10px}
  #entry .line-table td:nth-child(2){grid-column:1 / -1;grid-row:2;grid-template-columns:minmax(0,1fr) 76px}
  #entry .line-table td:nth-child(3){grid-column:1;grid-row:3}
  #entry .line-table td:nth-child(4){grid-column:2;grid-row:3}
  #entry .line-table td:last-child{top:39px;right:12px}
}

/* Shared physical cartons contain independent inventory product lines. */
.packing-actions{display:flex;gap:10px;flex-wrap:wrap}.packing-actions .add-row{flex:1;min-width:190px}
#entry .line-table .mixed-group-header td{background:#eee9de;border:1px solid #d5c69f;padding:12px!important}
.mixed-group-header td>strong{margin-right:16px}.mixed-group-header label{display:inline-flex;gap:6px;align-items:center;margin:0 12px 0 0;font-size:14px}
#entry .line-table .mixed-group-header input{display:inline-block;width:72px;min-width:0;height:40px;min-height:40px;padding:6px;font:inherit}
.mixed-group-header button{min-height:40px;padding:7px 10px}.mixed-group-header small{display:block;margin-top:7px;color:#6a747a;font-size:12px}
#entry .line-table .mixed-product-row{background:#fffdf7}.shared-case-count{display:flex;align-items:center;min-height:46px;padding:8px;border:1px solid #e1d7bc;border-radius:8px;background:#f5f1e6;font-size:12px;color:#66562f;box-sizing:border-box}
.packing-group-row td{padding:10px!important;background:#eee9de;font-weight:600;color:#5c4c29}.preview-table td[rowspan]{vertical-align:middle;text-align:center;border-left:1px solid #ece8de}
.print-sheet td[rowspan]{vertical-align:middle;text-align:center}
@media(max-width:760px){
 #entry .line-table tr.mixed-group-header{display:block;padding:0;margin:16px 0 0;border:0;background:none}
 #entry .line-table .mixed-group-header td{display:flex;position:static!important;width:auto!important;flex-wrap:wrap;gap:8px;align-items:center;border-radius:10px;padding:12px!important}
 #entry .line-table .mixed-group-header td::before{display:none}
 .mixed-group-header td>strong{margin-right:auto}.mixed-group-header label{margin:0}.mixed-group-header small{flex-basis:100%;margin:0}
 #entry .line-table tr.mixed-product-row{border-color:#d5c69f;margin-top:8px}
}
@media(max-width:520px){.packing-actions{gap:8px}.packing-actions .add-row{min-width:0;flex-basis:45%;font-size:13px;padding:12px 6px}.mixed-group-header button{flex-basis:100%}}

/* Paper order entry keeps one aligned grid on desktop and a scrollable grid on phones. */
.sheet-entry main,.sheet-entry .topbar{max-width:1320px}.sheet-entry main{padding-left:20px;padding-right:20px}.sheet-entry #entry{padding:24px}
.sheet-tip{font-size:12px;line-height:1.7;color:#6a747a;margin:8px 0}.sheet-scroll{width:100%;overflow:auto;min-height:250px;border:1px solid #d4d0c6;border-radius:10px;background:#fff;overscroll-behavior-x:contain}
.sheet-entry #entry .line-table{display:table!important;width:100%;min-width:560px;table-layout:fixed;border-collapse:collapse;margin:0}
.sheet-entry #entry .line-table colgroup{display:table-column-group!important}.sheet-entry #entry .line-table col{display:table-column}.sheet-entry #entry .line-table col:nth-child(1){width:auto}.sheet-entry #entry .line-table col:nth-child(2){width:95px}.sheet-entry #entry .line-table col:nth-child(3){width:150px}.sheet-entry #entry .line-table col:nth-child(4){width:45px}
.sheet-entry #entry .line-table thead{display:table-header-group!important}.sheet-entry #entry .line-table tbody{display:table-row-group!important;width:auto}
.sheet-entry #entry .line-table tr{display:table-row!important;position:static;padding:0;margin:0;border:0;border-radius:0;background:white}
.sheet-entry #entry .line-table th{padding:10px 7px;border:1px solid #d4d0c6;background:#eee9de;font-size:14px;text-align:center;border-radius:0}
.sheet-entry #entry .line-table td{display:table-cell!important;position:static!important;width:auto!important;padding:8px 6px!important;vertical-align:middle;border:1px solid #dedbd4;border-radius:0;min-width:0;grid-column:auto;grid-row:auto}
.sheet-entry #entry .line-table td::before{display:none!important}.sheet-entry #entry .line-table input{display:block;width:100%;min-width:0;height:40px;min-height:40px;padding:7px 5px;border:1px solid #dedbd4;border-radius:5px;font-size:14px}
.sheet-entry #entry .line-table input[data-key=cases],.sheet-entry #entry .line-table input[data-group-cases]{text-align:center}
.sheet-entry #entry .line-table .sheet-quantity-cell input{display:inline-block;width:calc(100% - 37px);border-radius:5px 0 0 5px}
.sheet-entry #entry .line-table .sheet-quantity-cell select{display:inline-block;width:37px;height:40px;min-height:40px;padding:4px 1px;margin:0;vertical-align:top;border-radius:0 5px 5px 0;border-left:0;font-size:13px}
.sheet-entry #entry .line-table .sheet-line-total{text-align:right;font-weight:600;font-size:13px;background:#f8f7f2;white-space:nowrap}
.sheet-entry #entry .line-table .shared-cases-cell{background:#f5f0e1;text-align:center}.shared-cases-cell small{display:block;margin-top:4px;color:#8b6a2e;font-size:11px}
.sheet-entry #entry .line-table .remove-line{width:30px;min-width:30px;height:40px;min-height:40px;font-size:20px;border:0;background:transparent}
.sheet-entry #entry .line-table .mixed-group-header td{display:table-cell!important;padding:8px 10px!important;background:#eee9de;border-radius:0;font-size:13px}
.sheet-entry .mixed-group-header strong{margin-right:12px}.sheet-entry .mixed-group-header small{display:inline;margin:0 12px 0 0;font-size:12px}.sheet-entry .mixed-group-header button{min-height:32px;padding:4px 10px;font-size:12px}
.sheet-entry #entry .line-table .sheet-name-cell{position:relative!important;vertical-align:top}.sheet-entry .inventory-hint{font-size:10px;line-height:1.4;margin-top:3px}
.sheet-entry .inventory-suggestions{position:fixed;display:flex;flex-direction:column;gap:0;left:0;top:0;z-index:90;width:340px;max-height:520px;overflow:hidden;padding:6px;margin:0;background:white;border:1px solid #c5b689;border-radius:8px;box-shadow:0 8px 24px #0002}
.sheet-entry .inventory-suggestions button{display:block;width:100%;min-height:38px;padding:7px 8px;font-size:12px}.sheet-entry .inventory-pagination{display:flex}
.sheet-preview-scroll{width:100%;overflow:auto}.sheet-preview-scroll .preview-table{min-width:880px;table-layout:fixed}.sheet-preview-scroll .preview-table th:first-child{width:12%}.sheet-preview-scroll .preview-table th:nth-child(2){width:26%}.sheet-preview-scroll .preview-table th{font-size:12px}
#order-preview,#detail{max-width:1060px}.sheet-preview-scroll .preview-table td{padding:10px 6px}.sheet-preview-scroll td[rowspan]{vertical-align:middle;text-align:center}
@media(max-width:760px){.sheet-entry main{padding-left:10px;padding-right:10px}.sheet-entry #entry{padding:16px 10px}.sheet-entry .section-heading{display:block}.sheet-entry .section-heading>span{display:block;margin-top:6px}.sheet-entry #entry .line-table input{font-size:16px}.sheet-entry #entry .line-table .mixed-group-header{margin:0}.sheet-entry .mixed-group-header button{display:inline-block;width:auto}.sheet-entry .sheet-tip{font-size:11px}}

body.sheet-entry{width:100%;overflow-x:hidden}.sheet-entry main{min-width:0;overflow-x:hidden}.sheet-entry .sheet-scroll{contain:layout paint}

.sheet-entry .inventory-suggestions.is-above{top:auto;bottom:calc(100% - 3px)}

.sheet-entry .sheet-preview-scroll .preview-table{min-width:600px}.sheet-entry .sheet-preview-scroll .preview-table th:first-child{width:16%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(2){width:48%}

.sheet-entry .sheet-preview-scroll .preview-table{min-width:460px}.sheet-entry .sheet-preview-scroll .preview-table th:first-child{width:64%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(2){width:16%}

#upload-progress:not(:empty){padding:10px 12px;border:1px solid #d5c69f;border-radius:8px;background:#faf5e8;color:#66562f}

/* Product process instructions remain separate from the standard stock name. */
.sheet-entry #entry .line-table{min-width:690px}
.sheet-entry .products{max-width:705px}
.sheet-entry #entry .line-table col:nth-child(1){width:110px}.sheet-entry #entry .line-table col:nth-child(2){width:auto}.sheet-entry #entry .line-table col:nth-child(3){width:75px}.sheet-entry #entry .line-table col:nth-child(4){width:100px}.sheet-entry #entry .line-table col:nth-child(5){width:80px}.sheet-entry #entry .line-table col:nth-child(6){width:40px}
.sheet-entry #entry .line-process-input{display:block;width:100%;min-width:0;height:40px;min-height:40px;max-height:180px;overflow:hidden;box-sizing:border-box;border:1px solid #dedbd4;border-radius:5px;padding:7px 8px;font:inherit;font-size:14px;line-height:1.5;resize:vertical;background:#fff}
.line-process-input:focus-visible{outline:3px solid #79ab8a;outline-offset:2px}.line-process-input[aria-invalid=true]{border-color:#bc443d}
.line-process-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#66562f}.detail-meta+.line-process-note{margin-top:6px}.preview-table .line-process-note{font-size:13px}
.sheet-entry .sheet-preview-scroll .preview-table{min-width:700px}.sheet-entry .sheet-preview-scroll .preview-table th:first-child{width:20%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(2){width:38%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(3){width:10%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(4){width:18%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(5){width:14%}
.print-sheet.print-has-process-notes col:nth-child(1){width:9%}.print-sheet.print-has-process-notes col:nth-child(2){width:20%}.print-sheet.print-has-process-notes col:nth-child(3){width:7%}.print-sheet.print-has-process-notes col:nth-child(4){width:11%}.print-sheet.print-has-process-notes col:nth-child(5){width:13%}.print-sheet.print-has-process-notes col:nth-child(6){width:7%}.print-sheet.print-has-process-notes col:nth-child(7){width:13%}.print-sheet.print-has-process-notes col:nth-child(8){width:20%}
@media(max-width:760px){.sheet-entry #entry .line-process-input{font-size:16px}}

.local-entry-banner{margin:0 0 24px;padding:14px 18px;border:1px solid #d8dfd2;border-radius:12px;background:#f0f5ed}.local-entry-banner[hidden]{display:none}.local-entry-banner p{margin:0 0 8px}.local-entry-banner .status{margin:8px 0 0}#local-transfer-preview{margin:12px 0 0}

.sheet-entry #entry .line-process-input::placeholder{font-size:11px}

.sheet-entry #entry .sheet-price-cell input{text-align:right}

.sheet-entry #entry .line-table th:nth-child(4) small{font-size:10px;white-space:nowrap}.sheet-entry #entry .line-table tr[data-line-id]>td:last-child{padding-left:4px!important;padding-right:4px!important}

.sheet-entry .inventory-options{display:flex;flex-direction:column;gap:4px;overflow-y:auto;min-height:0;overscroll-behavior:contain}.sheet-entry .inventory-suggestions .inventory-pagination{flex-shrink:0;margin:0;padding-top:8px;border-top:1px solid #e5ddcc;background:#fff;align-items:center}.sheet-entry .inventory-suggestions .inventory-pagination button{width:auto;min-height:36px;padding:5px 10px;text-align:center}.sheet-entry .inventory-pagination span{font-size:12px;color:#66562f;white-space:nowrap}

.sheet-entry .inventory-options>button{flex-shrink:0}

.overview-counts{grid-template-columns:repeat(5,minmax(0,1fr))}.auto-stock-status strong{display:block;margin-top:8px}.auto-stock-status p{margin:5px 0}.inventory-reasons{white-space:pre-line;font-size:13px;line-height:1.7;color:#8b6a2e}@media(max-width:620px){.overview-counts{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:16px}}

.overview-counts{grid-template-columns:repeat(3,minmax(0,1fr))}.order-scope{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px}.order-scope span{font-size:13px;color:#68736b}.order-scope button{min-height:36px;padding:6px 10px;font-size:12px}.shipment-confirm{padding:14px;border:1px solid #d8d2c4;border-radius:10px;background:#faf7ee}.shipment-confirm p{margin:0 0 12px}.shipment-confirm .error{margin-top:10px}

/* Prominent pending and shipped order areas. */
.order-view-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:6px;margin:20px 0 0;background:#eae6dc;border:1px solid var(--line);border-radius:13px}.order-view-tabs button{min-height:46px;border:0;border-radius:9px;background:transparent;color:var(--green);font:inherit;font-weight:600}.order-view-tabs button[aria-pressed=true]{background:var(--green);color:#fff}.order-scope h2{font-size:19px;margin:0}.order-scope{flex-wrap:wrap}.shipped-help{margin:0 0 18px;padding:12px 15px;border:1px solid #d8cba9;border-radius:10px;background:#faf6eb;color:#69552d;font-size:14px;line-height:1.7}@media(max-width:520px){.order-view-tabs button{font-size:15px}.order-scope{gap:6px}.order-scope span{font-size:12px}}

/* Compact order list toolbar; optional filters expand only on demand. */
.order-list-controls{margin:0 0 14px;padding:0;background:transparent;border:0}.order-list-toolbar{display:flex;align-items:center;gap:7px;min-width:0}.order-list-toolbar #order-sort{flex:1;max-width:230px;min-width:0;width:auto;min-height:34px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:inherit;font:inherit;font-size:13px}.order-list-toolbar button{flex-shrink:0;min-height:34px;padding:5px 9px;font-size:12px;white-space:nowrap}.reset-list-filters{border:0;background:transparent;color:var(--green);text-decoration:underline}.order-list-toolbar .list-result{flex-shrink:0;margin:0 0 0 auto;font-size:12px;color:#68736b;white-space:nowrap}.order-filter-panel{margin-top:8px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#f4f1e9}.order-filter-panel label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#59645f;min-width:0}.order-filter-panel select,.order-filter-panel input{width:100%;min-width:0;min-height:34px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:inherit;font:inherit;font-size:13px}.order-filter-panel>label{max-width:240px}.date-range-filters{margin-top:8px}.date-range-filters summary{cursor:pointer;font-size:12px;color:var(--green);padding:3px 0}.date-range-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:8px}.order-list-controls>.error{margin:6px 0 0;font-size:12px}@media(max-width:520px){.order-list-toolbar{gap:6px}.order-list-toolbar #order-sort{max-width:none}.order-list-toolbar button{padding:5px 7px}.date-range-fields{grid-template-columns:1fr 1fr}.date-range-fields label:first-child{grid-column:1/-1}.order-filter-panel>label{max-width:none}}

/* Special process requirements stay separate from stock and shipment states. */
.process-board{margin:12px 0;padding:10px 12px;border:1px solid #d9bf86;border-radius:11px;background:#fbf5e8}.process-board-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.process-board h2{font-size:15px;margin:0;color:#7d4b09}.process-board-heading>span{font-size:12px;color:#806b49}.process-board select{margin-left:auto;min-height:32px;max-width:150px;padding:4px 7px;border:1px solid #d9c9aa;border-radius:7px;background:white;color:#624e2f;font-size:12px}.process-filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.process-filters button{min-height:30px;padding:4px 8px;border:1px solid #dcc9a5;border-radius:7px;background:#fff;color:#77551d;font-size:12px}.process-filters button[aria-pressed=true]{background:#835913;border-color:#835913;color:#fff}.special-process-notice{margin:10px 0;padding:10px 12px;border:2px solid #ce9b39;border-radius:9px;background:#fff4d7;color:#704208;overflow-wrap:anywhere}.special-process-notice h4{margin:0 0 7px;font-size:16px;font-weight:750}.special-process-notice p{margin:4px 0;font-size:14px;font-weight:650;line-height:1.6}.special-process-notice.process-done{background:#edf3ee;border-color:#91a994;color:#365e3d}.process-status-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.process-status-actions label{font-size:14px;font-weight:600}.process-status-actions select{padding:8px;border:1px solid var(--line);border-radius:7px;font:inherit}.process-status-actions button{padding:8px 12px;min-height:38px}.process-status-actions .error{width:100%;margin:0}.preview-table td.process-note-emphasis{font-size:15px;font-weight:750;color:#7b3d00;background:#fff0c3}.sheet-entry #order-preview .special-process-notice{margin:16px 0}.print-process{border:2px solid #000;padding:3mm;margin:3mm 0;font-weight:bold}.print-process h2{font-size:14pt;margin:0 0 2mm}.print-process p{margin:1mm 0;line-height:1.5}@media(max-width:520px){.process-board{padding:9px 10px}.process-board select{max-width:135px}.special-process-notice h4{font-size:15px}.special-process-notice p{font-size:13px}}

/* A dedicated lower notes area in the printed order. */
.print-sheet .print-remarks{display:grid;grid-template-columns:18mm minmax(0,1fr);min-height:22mm;border:1px solid #000;border-top:0;break-inside:avoid}.print-sheet .print-remarks>h2{display:flex;align-items:center;justify-content:center;min-width:0;margin:0;padding:3mm 1mm;border-right:1px solid #000;font-size:12pt;font-weight:600;letter-spacing:2px}.print-sheet .print-remarks-body{min-width:0;padding:3mm;overflow-wrap:anywhere}.print-sheet .print-remarks-body>p{margin:0;white-space:pre-wrap;line-height:1.55;font-size:11pt}.print-sheet .print-remarks .print-process{margin:1.5mm 0 0;padding:1.5mm;border-width:1px}.print-sheet .print-remarks .print-process:first-child{margin-top:0}.print-sheet .print-remarks .print-process h2{font-size:12pt;line-height:1.3;margin:0 0 1mm}.print-sheet .print-remarks .print-process p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11pt;line-height:1.4;margin:.5mm 0}

/* Keep the business order date below shipping and warehouse fields. */
.sheet-entry .optional-grid>.order-date-field{grid-column:1}

/* Compact reminders and reversible order follow-up. */
 .order-view-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.order-view-tabs button{padding:9px 6px}
 .attention-board{margin:12px 0;padding:14px 16px;background:#fff8e9;border:1px solid #e8d2a1;border-radius:14px}.attention-board h2{font-size:16px;margin:0 0 10px}.attention-filters{display:flex;gap:8px;flex-wrap:wrap}.attention-filters button{padding:7px 10px;min-height:34px;font-size:14px;background:#fff;border:1px solid #d8c7a8;color:#534325;border-radius:8px}.attention-filters button[aria-pressed="true"]{background:#67502a;color:#fff}.attention-board p{font-size:12px;margin:9px 0 0}
 .followup-box{padding:16px;background:#f2f6ef;border:1px solid #d6e0cf;border-radius:12px;margin:16px 0}.followup-box h4{margin:0 0 10px}.followup-box textarea{width:100%;margin:6px 0}.followup-history{max-height:240px;overflow:auto}.followup-history article{border-bottom:1px solid #d6e0cf;padding:8px 0}.followup-history p{margin:0 0 5px;white-space:pre-wrap}.followup-history small{color:#66765e}.followup-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.followup-actions label{font-size:13px}.followup-actions input{margin-top:6px}.card-followup{background:#edf3e8;border-left:3px solid #789367;padding:8px 10px;margin:10px 0;font-size:13px}.card-followup p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.deleted-notice{padding:10px;background:#f7ece8;color:#853d2d;border-radius:8px}.delete-actions{border-top:1px solid #e2ded5;margin-top:20px;padding-top:14px}.delete-actions input{margin-bottom:10px}.delete-actions button{margin-right:8px}.followup-box textarea{box-sizing:border-box}
 
.followup-box textarea,.followup-actions input,.delete-actions input{padding:9px 10px;border:1px solid #d4d8cd;border-radius:7px;background:white;color:inherit;font:inherit}.followup-box textarea{min-height:70px;resize:vertical}.followup-actions label{display:flex;flex-direction:column}.card-followup p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}

/* Unified order workspace; entry and print layouts retain their own styles. */
.board-page .order-overview{padding:18px 24px;margin-bottom:18px;border-radius:18px}.board-page .order-overview h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.board-page .overview-counts{margin:0;gap:14px}.board-page .overview-filter{min-height:70px;padding:6px 12px}.board-page .overview-filter strong{font-size:30px}.board-page .overview-filter span{font-size:13px}
.board-page .board-tools{gap:8px}.board-page .board-tools .button-link{height:44px;min-height:44px;padding:8px 14px;font-size:14px}.board-page .search input{height:44px}.board-page .inventory-shortcut{border:1px solid var(--line);background:#fff;color:var(--green)}
.workspace-panel{margin-top:14px;padding:0 16px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}.workspace-panel .order-view-tabs{display:flex;gap:6px;margin:0 0 10px;padding:9px 0;border:0;border-bottom:1px solid #e9e6df;border-radius:0;background:transparent}.workspace-panel .order-view-tabs button{flex:1;min-height:36px;padding:7px 10px;font-size:14px;white-space:nowrap;border-radius:8px}.workspace-panel .order-view-tabs button[aria-pressed=false]{color:#647078}
.workspace-row{display:flex;align-items:center;gap:12px;margin:0 0 10px}.workspace-row-label{flex:none;color:#68736b;font-size:13px}.workspace-panel .attention-filters{display:flex;flex-wrap:wrap;gap:6px}.workspace-panel .attention-filters button{min-height:30px;padding:5px 9px;border:1px solid transparent;border-radius:6px;background:#f3f1ec;color:#525d62;font:inherit;font-size:13px}.workspace-panel .attention-filters button[aria-pressed=true]{background:#3a434a;color:#fff}.workspace-panel .attention-filters button:hover{border-color:#a4aaa7}
.workspace-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.workspace-filters>label{flex:1 1 125px;max-width:200px;min-width:0}.workspace-filters select,.workspace-filters button{height:34px;min-height:34px;padding:5px 9px;font:inherit;font-size:13px;border:1px solid #dedbd3;border-radius:7px;background:#fff;color:#3a434a}.workspace-filters select{width:100%}.workspace-filters button{white-space:nowrap}.workspace-filters .reset-list-filters{padding:5px 3px;border-color:transparent;color:#8a6328;background:transparent}.workspace-panel .order-filter-panel{border-top:1px solid #e9e6df;margin:12px 0 0;padding:12px 0 0;background:transparent}.workspace-panel .date-range-fields{margin:0}.workspace-panel .error{margin:8px 0 0}
.board-page .order-scope{margin:18px 0 12px}.board-page .order-scope h2{font-size:17px}.board-page .scope-help{font-size:12px;color:#7a7162;margin:0 0 12px}.board-page .list-result{margin:0;color:#7d8781;font-size:13px}
@media(max-width:640px){.board-page .board-tools{flex-wrap:wrap}.board-page .search{flex:1 1 100%;order:0}.board-page .board-tools .button-link{height:36px;min-height:36px;padding:6px 12px}.board-page .board-tools #new-order{margin-left:auto}.workspace-panel{padding:0 12px 12px}.workspace-filters>label{flex:1 1 110px;max-width:none}.workspace-filters{gap:7px}.workspace-panel .order-view-tabs button{padding:6px 4px;font-size:13px}.workspace-row{gap:8px}.workspace-panel .attention-filters{gap:5px}.workspace-panel .attention-filters button{padding:5px 7px;font-size:12px}.board-page .order-overview{padding:12px 14px}.board-page .overview-filter strong{font-size:28px}.board-page .overview-filter{min-height:62px;padding:4px 7px}}

.shipment-sync-panel{border-top:1px solid #e8e5dd;margin-top:12px;padding-top:10px;font-size:13px}.shipment-sync-panel summary{cursor:pointer;color:#52645b}.shipment-sync-panel summary span{color:#7b8580;font-size:12px;margin-left:8px}.shipment-sync-body{padding:8px 0 0}.shipment-sync-body p{margin:7px 0}.shipment-sync-actions{display:flex;gap:7px;flex-wrap:wrap}.shipment-sync-actions button,.shipment-evidence button{font:inherit;font-size:13px;padding:7px 10px;border:1px solid #d5d8ce;border-radius:7px;background:white;color:#34483c}.shipment-evidence{margin:16px 0;padding:14px;border:1px solid #c9d8ca;border-radius:10px;background:#f3f7f1}.shipment-evidence h4{margin:0 0 10px}.shipment-evidence p{white-space:pre-wrap;font-size:13px;line-height:1.6}.shipment-candidate{padding:12px;margin:10px 0;background:#fff;border:1px solid #d8ddd0;border-radius:8px}.shipment-candidate .shipment-warnings{color:#935b13;background:#fff5de;padding:9px}.shipment-evidence .shipment-confirm{margin-top:10px}.sanyou-candidate-label{color:#87621d;background:#fff5df;padding:7px;border-radius:6px}.shipment-evidence .sheet-preview-scroll{max-height:230px;overflow:auto}.shipment-evidence button:disabled{opacity:.5}
.shipment-evidence button{margin:6px 6px 0 0}.shipment-evidence>summary{font-weight:650;cursor:pointer}

.shipment-evidence .preview-table{min-width:0;width:100%;table-layout:auto}.shipment-evidence .preview-table th,.shipment-evidence .preview-table td{width:auto;min-width:0;white-space:normal;overflow-wrap:anywhere}.shipment-evidence .preview-table th:first-child,.shipment-evidence .preview-table td:first-child{width:55%}

.special-process-notice.process-doing{background:#edf5fc;border-color:#6b9ac2;color:#315b7c}.special-process-notice.process-doing h4{color:#315b7c}

/* Order detail: product facts, attachments, follow-up, then one action area. */
#detail{overscroll-behavior:contain}#detail>.dialog-heading{position:sticky;top:0;z-index:2;background:#fffefb;padding-bottom:12px;margin-bottom:18px;border-bottom:1px solid #e7e4dc}#detail-content .detail-section{margin:20px 0}#detail-content h4{font-size:15px;line-height:1.5;margin:0 0 12px}#detail-content .detail-meta{gap:7px 14px;line-height:1.7}#detail-content .detail-remarks{font-size:13px;line-height:1.7;white-space:pre-wrap;margin:12px 0}
#detail .detail-products .preview-table{min-width:500px;table-layout:auto;width:100%}#detail .detail-products .preview-table th,#detail .detail-products .preview-table td{width:auto;min-width:0;padding:10px 8px;font-size:13px}#detail .detail-products .preview-table th:first-child{width:38%}#detail .detail-products .preview-table td:first-child{overflow-wrap:anywhere}#detail .detail-products .preview-summary{font-size:15px;margin:10px 0 14px}.detail-stock-summary{padding:11px 13px;border:1px solid #e1ded4;border-radius:8px;background:#f6f4ee;font-size:13px;line-height:1.65}.detail-stock-summary strong{font-size:13px}.detail-stock-summary p{font-size:12px;margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
#detail .detail-attachment-section .detail-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}#detail .detail-attachment-section .detail-files a{display:flex;align-items:center;gap:10px;padding:8px;min-width:0;font-size:12px;line-height:1.5;background:#fff;border-radius:8px}#detail .detail-attachment-section .detail-files img{width:48px;height:64px;flex:none;object-fit:contain;margin:0;background:#f5f3ef}#detail .detail-files span{overflow-wrap:anywhere}
.detail-followup{padding-top:18px;border-top:1px solid #e7e4dc}.detail-followup>label{display:block;font-size:13px;line-height:1.7}.detail-followup textarea{display:block;box-sizing:border-box;width:100%;min-height:72px;margin:7px 0 12px;padding:10px 12px;font:inherit;font-size:13px;line-height:1.6;border:1px solid #d8d9d0;border-radius:8px;resize:vertical;background:#fff}.detail-followup .followup-history{margin-bottom:12px;padding:0 12px;max-height:220px;background:#f5f7f2;border-radius:8px}.detail-followup .followup-history p{font-size:13px}.detail-followup .followup-actions{display:grid;grid-template-columns:minmax(0,1fr)130px;gap:12px;align-items:end}.detail-followup .followup-actions label{display:flex;flex-direction:column;font-size:12px;color:#667267}.detail-followup .followup-actions input{box-sizing:border-box;min-width:0;width:100%;height:40px;padding:8px 10px;border:1px solid #d8d9d0;border-radius:8px;font:inherit;font-size:13px;background:#fff;margin:6px 0 0}.detail-followup .followup-actions button{height:40px;min-height:40px;padding:8px 12px;font-size:13px;white-space:nowrap}.detail-followup .error{margin:8px 0 0}
.detail-operation-panel{padding:16px;margin:22px 0 0;border:1px solid #e0ddd4;border-radius:11px;background:#f8f7f3}.detail-toolbar{display:flex;gap:10px;flex-wrap:wrap}.detail-toolbar>*{box-sizing:border-box;flex:1 1 120px;min-width:0;min-height:40px;padding:8px 10px!important;font:inherit!important;font-size:13px!important;text-align:center;white-space:nowrap;border-radius:8px!important}.detail-toolbar>.secondary{border:1px solid #d8d6cf;background:#fff}.detail-process-row{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:0 0 14px}.detail-process-row label{display:flex;flex:1;gap:8px;align-items:center;min-width:190px;font-size:13px}.detail-process-row select{height:38px;flex:1;min-width:90px;padding:6px 10px;border:1px solid #d8d6cf;border-radius:7px;font:inherit;font-size:13px;background:#fff}.detail-process-row button{min-height:38px;padding:7px 12px;font-size:13px;white-space:nowrap}.detail-process-row .error{flex:1 0 100%;margin:0}
.detail-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:10px;border-top:1px solid #e5e1d8}.detail-footer p{font-size:11px;line-height:1.7;margin:0;overflow-wrap:anywhere}.detail-delete-button{flex:none;min-height:34px;padding:6px 0 6px 8px;border:0;background:transparent;color:#956355;font:inherit;font-size:12px;white-space:nowrap}.detail-operation-panel .shipment-confirm{margin-top:12px;background:#fff}.detail-operation-panel .shipment-confirm>input{box-sizing:border-box;width:100%;height:40px;padding:8px 10px;margin-bottom:12px;border:1px solid #d8d6cf;border-radius:7px;font:inherit;font-size:13px}.detail-confirm-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.detail-confirm-actions button{min-height:38px;padding:7px 13px;font-size:13px}.detail-history{margin:16px 0 2px;font-size:12px;color:#798078}.detail-history>summary{cursor:pointer;padding:5px 0}.detail-history .history{margin:8px 0;font-size:11px}.detail-operation-panel .error{font-size:13px;line-height:1.6}
@media(max-width:440px){.detail-operation-panel{padding:12px}.detail-process-row label{min-width:100%}.detail-process-row button{width:100%}.detail-followup .followup-actions{grid-template-columns:1fr}.detail-followup .followup-actions button{width:100%}.detail-toolbar>*{flex-basis:110px}}
#detail{padding:0}#detail>.dialog-heading{top:0;z-index:5;padding:16px 20px;margin:0;background:#fffefb}#detail-content{padding:18px 20px 20px}#detail .detail-products .preview-table th{position:static;top:auto;z-index:auto}

.shipment-choice-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.shipment-evidence .shipment-choice-actions button{box-sizing:border-box;min-width:0;min-height:40px;margin:0;padding:8px 10px;font-size:13px;line-height:1.4;border-radius:8px;white-space:normal}.shipment-evidence .shipment-choice-actions .primary{background:var(--green);border-color:var(--green);color:#fff}.shipment-evidence .shipment-choice-actions .secondary{background:#fff;border-color:#d1d6cc;color:#3a4440}.shipment-choice-single{grid-template-columns:minmax(0,1fr);max-width:230px}.shipment-choice-error:empty{display:none}.shipment-waiting-note{padding:10px 12px;border-radius:8px;background:#edf0ea;color:#53614d}@media(max-width:380px){.shipment-evidence .shipment-choice-actions button{font-size:12px;padding:8px 6px}}

/* Per-product code follows price, preserving the existing writing proportions. */
.sheet-entry #entry .line-table{min-width:800px}.sheet-entry #entry .line-table col:nth-child(1){width:110px}.sheet-entry #entry .line-table col:nth-child(2){width:auto}.sheet-entry #entry .line-table col:nth-child(3){width:75px}.sheet-entry #entry .line-table col:nth-child(4){width:100px}.sheet-entry #entry .line-table col:nth-child(5){width:80px}.sheet-entry #entry .line-table col:nth-child(6){width:110px}.sheet-entry #entry .line-table col:nth-child(7){width:40px}.sheet-entry .sheet-preview-scroll .preview-table{min-width:800px}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(1){width:16%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(2){width:32%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(3){width:9%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(4){width:16%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(5){width:12%}.sheet-entry .sheet-preview-scroll .preview-table th:nth-child(6){width:15%}.print-sheet .print-remarks>h2{flex-direction:column;gap:1.5mm;letter-spacing:0}.print-sheet .print-remarks>h2 small{font-size:8pt;font-weight:normal;white-space:nowrap}.print-sheet th{font-size:10pt;line-height:1.4}

.sheet-entry .products{max-width:815px}

/* Larger, heavier print for packing staff; screen order entry stays unchanged. */
.print-sheet{font-family:"Microsoft YaHei","Noto Sans CJK SC","SimHei",sans-serif;font-size:14pt;line-height:1.3;color:#000}.print-sheet h1{font-size:24pt;font-weight:700;margin:4mm 0 5mm}.print-sheet .meta{font-size:14pt;line-height:1.4;gap:5mm;margin-bottom:2mm}.print-sheet th{font-size:12pt;font-weight:700;line-height:1.3}.print-sheet th,.print-sheet td{padding:1.5mm 1mm}.print-sheet tbody td{font-size:14pt;line-height:1.3;height:10mm}.print-sheet tbody td:nth-child(2){font-size:15pt;font-weight:600}.print-sheet tbody td:nth-child(3),.print-sheet tbody td:nth-child(4),.print-sheet tbody td:nth-child(5){font-size:16pt;font-weight:600;font-variant-numeric:tabular-nums}.print-sheet tfoot td{font-size:16pt;font-weight:700;height:11mm}.print-sheet .print-remarks{grid-template-columns:23mm minmax(0,1fr)}.print-sheet .print-remarks>h2{font-size:14pt;font-weight:700;padding:2mm 1mm}.print-sheet .print-remarks>h2 small{font-size:11pt;font-weight:600}.print-sheet .print-remarks-body{padding:2.5mm}.print-sheet .print-remarks-body>p{font-size:14pt;font-weight:500;line-height:1.4}.print-sheet .print-remarks .print-process h2{font-size:14pt;font-weight:700}.print-sheet .print-remarks .print-process p{font-size:14pt;line-height:1.4;font-weight:600}.print-sheet .marks>div{min-height:26mm;padding:2.5mm;font-size:14pt}.print-sheet .dates>div{padding:3mm 2.5mm;font-size:14pt}

.print-sheet:not(.print-has-process-notes) tbody td:nth-last-child(-n+2),.print-sheet.print-has-process-notes tbody td:nth-last-child(-n+3){font-size:14pt;font-weight:500}

.print-sheet .meta span{min-width:0;flex:1}.print-sheet .meta span+span{text-align:right}.print-sheet col:nth-child(1){width:8%}.print-sheet col:nth-child(2){width:28%}.print-sheet col:nth-child(3){width:9%}.print-sheet col:nth-child(4){width:14%}.print-sheet col:nth-child(5){width:15%}.print-sheet col:nth-child(6){width:9%}.print-sheet col:nth-child(7){width:17%}.print-sheet.print-has-process-notes col:nth-child(1){width:6%}.print-sheet.print-has-process-notes col:nth-child(2){width:26%}.print-sheet.print-has-process-notes col:nth-child(3){width:7%}.print-sheet.print-has-process-notes col:nth-child(4){width:11%}.print-sheet.print-has-process-notes col:nth-child(5){width:13%}.print-sheet.print-has-process-notes col:nth-child(6){width:7%}.print-sheet.print-has-process-notes col:nth-child(7){width:15%}.print-sheet.print-has-process-notes col:nth-child(8){width:15%}

.print-sheet.print-has-process-notes col:nth-child(7){width:17%}.print-sheet.print-has-process-notes col:nth-child(8){width:13%}

/* Fit against the A4 printable width; never hide or truncate order text. */
.print-sheet{width:182mm;max-width:100%}.print-sheet [data-print-fit]{display:block;line-height:1.3;white-space:normal;overflow-wrap:anywhere;word-break:normal}.print-sheet [data-print-fit="name"]{font-size:15pt;font-weight:600}.print-sheet [data-print-fit="code"]{font-size:14pt;font-weight:500}

.inventory-confirm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.inventory-confirm-actions button{min-height:36px;padding:7px 13px;font-size:13px}.inventory-auto-reference{margin-top:7px;font-size:12px;color:var(--muted)}.inventory-auto-reference summary{cursor:pointer}.detail-stock-summary>.error:empty{display:none}

#attention-board{display:block;margin:10px 0 12px;padding:12px;border:1px solid #d9bc7b;border-radius:10px;background:#fbf5e8}#attention-board .workspace-row-label{display:block;margin-bottom:8px;color:#685126;font-size:14px;font-weight:700}#attention-board .attention-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%}#attention-board .attention-filters button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:46px;padding:9px 11px;border:1px solid #dccba9;border-radius:8px;background:#fffdf8;color:#4e514c;font-size:14px;font-weight:600;text-align:left}#attention-board .attention-count{font-size:21px;line-height:1;font-variant-numeric:tabular-nums;flex:none}#attention-board .attention-filters button[aria-pressed=true]{background:#3a434a;border-color:#3a434a;color:#fff}#attention-board .attention-filters button:hover{border-color:#9b7b3f}@media(max-width:640px){#attention-board .attention-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#attention-board .attention-filters button{font-size:13px;min-height:44px}#attention-board .attention-count{font-size:19px}}

.board-tools{flex-wrap:wrap}.board-tools .shortage-shortcut{white-space:nowrap}.board-tools .search{min-width:0}@media(max-width:600px){.board-tools{display:flex;flex-wrap:wrap}.board-tools .search{flex-basis:100%}.board-tools .button-link,.board-tools .shortage-shortcut{flex:1 1 auto;text-align:center}}

.icp-footer{text-align:center;font-size:12px;padding:12px;color:#66736b}.icp-footer a{color:inherit}@media print{.icp-footer{display:none}}
