/* 協作收貨桌機版：依 Stitch 稿套用天空藍工作台；不影響手機／平板作業流程。 */
@media (min-width: 1051px){
  .receiving-page.receiving-desktop-stitch{max-width:1560px;margin:0 auto;padding:18px 22px 32px;background:#f0f7fd}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs{display:flex!important;align-items:center;gap:6px;overflow-x:auto;margin:0 0 14px;padding:7px;border:1px solid #bae6fd;border-radius:14px;background:#fff;box-shadow:0 2px 10px rgba(12,74,110,.07)}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:40px;padding:7px 13px;border:0;border-radius:9px;background:transparent;color:#475569;font-size:13px;font-weight:800}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs button:hover{background:#f0f9ff;color:#075985}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs button.active{background:linear-gradient(120deg,#0284c7,#0369a1);color:#fff;box-shadow:0 5px 14px rgba(3,105,161,.26)}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs button.needs-action:not(.active){border:1px solid #fbbf24;background:#fffbeb;color:#92400e}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs b{display:inline-grid;place-items:center;min-width:23px;height:23px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:11px}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs button.active b{background:#fff;color:#075985}

  .receiving-page.receiving-desktop-stitch .receiving-summary{display:grid;gap:13px;padding:17px;border:1px solid #bae6fd;border-radius:18px;background:#fff;box-shadow:0 3px 13px rgba(12,74,110,.08)}
  .receiving-page.receiving-desktop-stitch .receiving-summary-head{padding-bottom:13px;border-bottom:1px solid #e0f2fe}
  .receiving-page.receiving-desktop-stitch .receiving-summary-head .btn{min-height:38px;border-radius:10px;border-color:#7dd3fc;background:#f0f9ff;color:#075985;font-weight:800}
  .receiving-page.receiving-desktop-stitch .receiving-summary-head .status{border:1px solid #7dd3fc;background:#e0f2fe;color:#075985}
  .receiving-page.receiving-desktop-stitch .receiving-summary-head strong{font-size:22px;font-variant-numeric:tabular-nums;color:#0f172a}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(170px,.9fr);gap:10px;padding:0;border:0;background:none}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost>div{padding:12px;border:1px solid #bae6fd;border-radius:12px;background:linear-gradient(145deg,#fff,#f0f9ff)}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost>div span{color:#075985;font-size:12px}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost>div strong{font-size:20px;color:#0f172a;font-variant-numeric:tabular-nums}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost>.rate{border-color:#075985;background:linear-gradient(135deg,#075985,#0c4a6e);box-shadow:0 6px 17px rgba(3,105,161,.22)}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost>.rate span,.receiving-page.receiving-desktop-stitch .receiving-persisted-cost>.rate strong,.receiving-page.receiving-desktop-stitch .receiving-persisted-cost>.rate small{color:#fff}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost>.rate strong{font-size:28px}
  .receiving-page.receiving-desktop-stitch .receiving-game-caption{padding:10px 13px;border:1px solid #7dd3fc;border-bottom:0;border-radius:13px 13px 0 0;background:#e0f2fe;color:#075985}
  .receiving-page.receiving-desktop-stitch .receiving-game-caption strong{font-size:14px}
  .receiving-page.receiving-desktop-stitch .receiving-game-progress{border:1px solid #7dd3fc;border-top:0;border-radius:0 0 13px 13px}
  .receiving-page.receiving-desktop-stitch .receiving-kpis{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
  .receiving-page.receiving-desktop-stitch .receiving-kpis span{display:grid;place-items:center;min-height:52px;padding:8px;border:1px solid #d7edf9;border-radius:10px;background:#f8fcff;color:#36556d;font-size:12px;font-weight:850;text-align:center}
  .receiving-page.receiving-desktop-stitch .receiving-kpis .posted{border-color:#86efac;background:#f0fdf4;color:#166534}
  .receiving-page.receiving-desktop-stitch .receiving-kpis .attention{border-color:#fcd34d;background:#fffbeb;color:#92400e}

  .receiving-page.receiving-desktop-stitch .receiving-scan-panel{grid-template-columns:50px minmax(260px,.75fr) minmax(360px,1.25fr) auto auto;gap:11px;align-items:center;margin:14px 0;padding:14px 16px;border:1px solid #7dd3fc;border-radius:16px;background:linear-gradient(105deg,#fff,#f0f9ff);box-shadow:0 3px 12px rgba(12,74,110,.07)}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel .scan-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#0ea5e9,#0369a1);color:#fff;font-size:22px}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel label{font-size:15px;color:#0c4a6e}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel input{min-height:48px;border:2px solid #7dd3fc;border-radius:10px;background:#fff;font-size:16px}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel .btn{min-height:48px;border-radius:10px;font-weight:850}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel .btn.primary{background:linear-gradient(135deg,#0284c7,#0369a1)}

  .receiving-page.receiving-desktop-stitch .receiving-work-layout{grid-template-columns:minmax(0,1fr) minmax(330px,.42fr);gap:15px;align-items:start}
  .receiving-page.receiving-desktop-stitch .receiving-work-layout>.panel{border:1px solid #bae6fd;border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(12,74,110,.07)}
  .receiving-page.receiving-desktop-stitch .receiving-work-layout>.panel>.panel-title{padding:15px 16px;border-bottom:1px solid #e0f2fe;background:linear-gradient(90deg,#fff,#f0f9ff)}
  .receiving-page.receiving-desktop-stitch .receiving-work-layout>.panel>.panel-title h2{color:#0c4a6e}
  .receiving-page.receiving-desktop-stitch .receiving-line-list{padding:10px}
  .receiving-page.receiving-desktop-stitch .receiving-line{border-color:#d7edf9;border-radius:12px;background:#fff;box-shadow:none}
  .receiving-page.receiving-desktop-stitch .receiving-line:hover{border-color:#38bdf8;background:#f8fdff}
  .receiving-page.receiving-desktop-stitch .receiving-line-main>span{background:#e0f2fe;color:#0369a1}
  .receiving-page.receiving-desktop-stitch .receiving-line-main>b{border-radius:999px;background:#e0f2fe;color:#075985;font-variant-numeric:tabular-nums}
  .receiving-page.receiving-desktop-stitch .receiving-scan-history{position:sticky;top:16px;max-height:calc(100dvh - 180px);overflow:auto}
  .receiving-page.receiving-desktop-stitch .receiving-scan-history article{border-bottom-color:#e0f2fe}
  .receiving-page.receiving-desktop-stitch .receiving-line-pager{border-color:#bae6fd;background:#f0f9ff}
}

@media (min-width:1051px) and (max-width:1280px){
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(170px,.9fr)}
  .receiving-page.receiving-desktop-stitch .receiving-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel{grid-template-columns:50px minmax(220px,1fr) minmax(280px,1fr) auto}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel #open-receiving-camera{display:none}
}

/* 最終覆蓋層：舊收貨樣式含有 !important，這裡明確固定桌機工作台的視覺規則。 */
@media (min-width:1051px){
  .receiving-page.receiving-desktop-stitch{max-width:1560px!important;margin:0 auto!important;padding:18px 22px 32px!important;background:#f0f7fd!important;}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs{display:flex!important;align-items:center!important;gap:6px!important;overflow-x:auto!important;margin:0 0 14px!important;padding:7px!important;border:1px solid #bae6fd!important;border-radius:14px!important;background:#fff!important;box-shadow:0 2px 10px rgba(12,74,110,.07)!important;}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;padding:7px 13px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#475569!important;font-size:13px!important;font-weight:800!important;}
  .receiving-page.receiving-desktop-stitch .receiving-view-tabs button.active{background:linear-gradient(120deg,#0284c7,#0369a1)!important;color:#fff!important;box-shadow:0 5px 14px rgba(3,105,161,.26)!important;}
  .receiving-page.receiving-desktop-stitch .receiving-summary{display:grid!important;gap:13px!important;padding:17px!important;border:1px solid #bae6fd!important;border-radius:18px!important;background:#fff!important;box-shadow:0 3px 13px rgba(12,74,110,.08)!important;}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(170px,.9fr)!important;gap:10px!important;padding:0!important;border:0!important;background:none!important;}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost>div{padding:12px!important;border:1px solid #bae6fd!important;border-radius:12px!important;background:linear-gradient(145deg,#fff,#f0f9ff)!important;}
  .receiving-page.receiving-desktop-stitch .receiving-persisted-cost>.rate{border-color:#075985!important;background:linear-gradient(135deg,#075985,#0c4a6e)!important;}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel{display:grid!important;grid-template-columns:50px minmax(260px,.75fr) minmax(360px,1.25fr) auto auto!important;gap:11px!important;align-items:center!important;margin:14px 0!important;padding:14px 16px!important;border:1px solid #7dd3fc!important;border-radius:16px!important;background:linear-gradient(105deg,#fff,#f0f9ff)!important;box-shadow:0 3px 12px rgba(12,74,110,.07)!important;}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel input{min-height:48px!important;border:2px solid #7dd3fc!important;border-radius:10px!important;background:#fff!important;font-size:16px!important;}
  .receiving-page.receiving-desktop-stitch .receiving-scan-panel .btn{min-height:48px!important;border-radius:10px!important;font-weight:850!important;}
  .receiving-page.receiving-desktop-stitch .receiving-work-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(330px,.42fr)!important;gap:15px!important;align-items:start!important;}
  /* 待清點與溢收頁只有一個商品工作區，必須全寬顯示五欄卡片；右欄在這兩個狀態原本就是隱藏的。 */
  .receiving-page.receiving-desktop-stitch .receiving-work-layout.pending-view,
  .receiving-page.receiving-desktop-stitch .receiving-work-layout.over-view{grid-template-columns:minmax(0,1fr)!important;}
  .receiving-page.receiving-desktop-stitch .receiving-work-layout.pending-view .receiving-line-list,
  .receiving-page.receiving-desktop-stitch .receiving-work-layout.over-view .receiving-line-list{grid-template-columns:repeat(5,minmax(0,1fr))!important;width:100%!important;}
  .receiving-page.receiving-desktop-stitch .receiving-work-layout>.panel{border:1px solid #bae6fd!important;border-radius:16px!important;background:#fff!important;box-shadow:0 3px 12px rgba(12,74,110,.07)!important;}
  .receiving-page.receiving-desktop-stitch .receiving-work-layout>.panel>.panel-title{padding:15px 16px!important;border-bottom:1px solid #e0f2fe!important;background:linear-gradient(90deg,#fff,#f0f9ff)!important;}
  .receiving-page.receiving-desktop-stitch .receiving-line-list{padding:10px!important;}
  .receiving-page.receiving-desktop-stitch .receiving-line{border-color:#d7edf9!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;}
}

/* 收貨第 2 步只保留一組輸入欄位；桌機、平板與 PDA 都不再出現重複入口。 */
.receiving-entry-fields{padding:14px}.receiving-entry-fields>.form-grid{padding:12px 0}.receiving-entry-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.receiving-entry-heading h3{margin:0;color:#173b5b}.receiving-entry-heading p{margin:0;color:#63809a;font-size:13px}.receiving-entry-photo-field .btn{width:100%;min-height:44px}.receiving-entry-photo-field small{display:block;margin-top:6px}
@media(max-width:650px){.receiving-entry-heading{align-items:flex-start;flex-direction:column;gap:3px}.receiving-entry-fields{padding:12px}.receiving-entry-fields>.form-grid{grid-template-columns:1fr}}

/* 平板工作模式｜已清點清單：先看狀態與必要數字，修正資料才展開。 */
.tablet-receiving-flow .tablet-scanned-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;background:#eef7ff}.tablet-receiving-flow .tablet-scanned-list>.panel-title,.tablet-receiving-flow .tablet-scanned-list>.tablet-scan-filterbar{grid-column:1/-1}.tablet-receiving-flow .tablet-scanned-list>.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0;padding:4px 4px 0;border:0;background:transparent}.tablet-receiving-flow .tablet-scanned-list>.panel-title h2{margin:0;color:#0c4a6e;font-size:22px}.tablet-receiving-flow .tablet-scanned-list>.panel-title span{display:block;margin-top:4px;color:#59758e;font-size:13px}.tablet-scan-filterbar{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 5px;scrollbar-width:none}.tablet-scan-filterbar::-webkit-scrollbar{display:none}.tablet-scan-filterbar button{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;min-height:42px;padding:8px 12px;border:1px solid #bddcf3;border-radius:999px;background:#fff;color:#315b7c;font-weight:800;font-size:14px}.tablet-scan-filterbar button.active{border-color:#087eb9;background:#087eb9;color:#fff}.tablet-scan-filterbar b{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:#e4f3ff;color:#075985;font-size:12px}.tablet-scan-filterbar button.active b{background:#fff;color:#075985}.tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);gap:11px;align-content:start;min-width:0;margin:0;padding:13px;border:1px solid #b9dff7;border-radius:16px;background:#fff;box-shadow:0 2px 8px rgba(12,74,110,.07)}.tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card.unmatched{border-color:#fca5a5;background:#fffafa}.tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card.posted{border-color:#86d9bd;background:#f5fffb}.tablet-receiving-flow .tablet-scanned-list .receiving-card-status{position:absolute;top:10px;right:10px;z-index:1;padding:4px 8px;border-radius:999px;background:#e8f2ff;color:#075985;font-size:11px;font-weight:900}.tablet-receiving-flow .tablet-scanned-list .receiving-card-status.pending-review{background:#fff4d6;color:#a65a00}.tablet-receiving-flow .tablet-scanned-list .receiving-card-status.posted{background:#dff8eb;color:#08734e}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-thumb{width:72px;height:72px;margin:0;border-radius:12px;border:1px solid #d5e8f5;background:#f4faff;overflow:hidden}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-thumb img{width:100%;height:100%;object-fit:contain}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-summary{display:contents}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-info{display:grid;gap:8px;min-width:0;padding-right:55px}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-title strong{display:-webkit-box;overflow:hidden;color:#163a57;font-size:16px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-title>b{flex:0 0 auto;color:#047857;font-size:19px;font-variant-numeric:tabular-nums}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-identity,.tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch{grid-column:1/-1;grid-template-columns:1.25fr 1fr .8fr}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-identity span,.tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch span{display:grid;gap:2px;min-width:0;padding:7px 8px;border-radius:9px;background:#f4f9fd}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-identity small,.tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch small{color:#71879a;font-size:11px}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-identity b,.tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch b{overflow:hidden;color:#31506b;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch .missing{background:#fff5dc}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch .missing b{color:#b45309}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-quantity-form,.tablet-receiving-flow .tablet-scanned-list .receiving-scan-actions,.tablet-receiving-flow .tablet-scanned-list .receiving-review-pending{grid-column:1/-1}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-quantity-form{display:grid;grid-template-columns:auto 42px minmax(64px,1fr) 42px auto;align-items:center;gap:7px;margin-top:2px;padding-top:10px;border-top:1px solid #e2eef6}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-quantity-form span{font-size:12px;font-weight:800;color:#55728b}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-quantity-form button{min-height:42px;border-radius:10px}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-quantity-form input{min-width:0;min-height:42px;border:1px solid #a9cbe2;border-radius:10px;text-align:center;font-size:18px;font-weight:900}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-actions{display:flex;gap:7px;flex-wrap:wrap}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-actions .btn,.tablet-receiving-flow .tablet-scanned-list .receiving-review-pending{min-height:40px}.tablet-receiving-flow .tablet-scanned-list .tablet-scan-more{grid-column:1/-1;margin:0;border:1px solid #d8e8f3;border-radius:10px;background:#fbfdff}.tablet-receiving-flow .tablet-scanned-list .tablet-scan-more>summary{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:0 11px;color:#315b7c;font-size:13px;font-weight:850;cursor:pointer}.tablet-receiving-flow .tablet-scanned-list .tablet-scan-more>summary span{color:#1580ba;font-size:12px}.tablet-receiving-flow .tablet-scanned-list .tablet-scan-more[open]>summary{border-bottom:1px solid #d8e8f3}.tablet-receiving-flow .tablet-scanned-list .tablet-scan-more form{margin:0;padding:10px}.tablet-receiving-flow .tablet-scanned-list .tablet-scan-empty{grid-column:1/-1;padding:32px;text-align:center;color:#63809a;background:#fff;border:1px dashed #b9dff7;border-radius:14px}
@media(max-width:700px){.tablet-receiving-flow .tablet-scanned-list{grid-template-columns:1fr;padding:10px}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch{grid-template-columns:1fr 1fr}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-batch-quantity{grid-column:1/-1}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-quantity-form{grid-template-columns:1fr 42px 72px 42px;gap:6px}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-quantity-form span{grid-column:1/-1}.tablet-receiving-flow .tablet-scanned-list .receiving-scan-quantity-form .btn{grid-column:1/-1}}

/* 平板模式優先層：即使在大螢幕預覽，也要保留「一筆一張、全寬可閱讀」的工作卡。
   這層刻意覆蓋舊版 scanned-view 的四欄卡片規則，避免文字被擠成直排。 */
html[data-device-mode="tablet"] .receiving-page.tablet-receiving-flow{
  width:100%!important;
  max-width:1280px!important;
  margin:0 auto!important;
  padding:20px 24px 44px!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .receiving-work-layout.scanned-view{
  display:block!important;
  width:100%!important;
  min-width:0!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .receiving-work-layout.scanned-view>.receiving-scan-history.tablet-scanned-list{
  position:static!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  max-width:none!important;
  max-height:none!important;
  min-width:0!important;
  overflow:visible!important;
  gap:14px!important;
  padding:18px!important;
  border:2px solid #b9dff7!important;
  border-radius:18px!important;
  background:#eef7ff!important;
  box-sizing:border-box!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card{
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  gap:12px 16px!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  padding:16px!important;
  border:1px solid #b9dff7!important;
  border-radius:16px!important;
  box-sizing:border-box!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-thumb{
  width:82px!important;
  height:82px!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-info{
  gap:9px!important;
  padding-right:82px!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-title strong{
  font-size:18px!important;
  line-height:1.35!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-title>b{
  font-size:22px!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-identity,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-identity span,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch span{
  min-height:54px!important;
  padding:8px 10px!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-identity small,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch small{font-size:12px!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-identity b,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch b{font-size:14px!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-quantity-form,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-actions,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-review-pending,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .tablet-scan-more{grid-column:1/-1!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-actions{justify-content:flex-end!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-actions .btn{min-width:132px!important}
/* 舊版已清點卡的 summary 仍帶有四格內層 grid；平板卡必須在這裡完整重設。 */
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card{height:auto!important;overflow:visible!important;align-items:start!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary{display:grid!important;grid-column:1/-1!important;grid-template-columns:34px 82px minmax(0,1fr)!important;gap:10px 14px!important;align-items:start!important;width:100%!important;min-width:0!important;padding:4px 0 0!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary>i{grid-column:1!important;grid-row:1!important;width:34px!important;height:34px!important;margin-top:5px!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary>.receiving-scan-thumb{grid-column:2!important;grid-row:1!important;width:82px!important;height:82px!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary>.receiving-scan-info{grid-column:3!important;grid-row:1!important;width:auto!important;min-width:0!important;text-align:left!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary>.receiving-scan-quantity-form,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary>.receiving-scan-actions,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary>.receiving-posted-badge,
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary>.receiving-posted-time{grid-column:1/-1!important;grid-row:auto!important;width:100%!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary>.receiving-scan-quantity-form{grid-template-columns:minmax(110px,1fr) 44px 96px 44px auto!important;justify-self:stretch!important}
@media(max-width:700px){
  html[data-device-mode="tablet"] .receiving-page.tablet-receiving-flow{padding:12px 12px 28px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .receiving-work-layout.scanned-view>.receiving-scan-history.tablet-scanned-list{padding:12px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card{grid-template-columns:64px minmax(0,1fr)!important;padding:13px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-thumb{width:64px!important;height:64px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-info{padding-right:0!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-title{padding-right:64px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-identity,
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-expiry-batch{grid-template-columns:1fr 1fr!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-batch-quantity{grid-column:1/-1!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-actions{justify-content:stretch!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list .receiving-scan-actions .btn{flex:1 1 132px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary{grid-template-columns:30px 64px minmax(0,1fr)!important;gap:8px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.receiving-scan-card>.receiving-scan-summary>.receiving-scan-thumb{width:64px!important;height:64px!important}
}

/* 平板已清點清單 v2：與舊收貨卡完全隔離，固定用一列照片＋商品資訊＋四格數字。 */
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scanned-list>.tablet-scan-card-v2{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:16px!important;
  overflow:visible!important;
  border:1px solid #b7ddf5!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 2px 9px rgba(12,74,110,.07)!important;
  box-sizing:border-box!important;
}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-card-v2>.tablet-scan-v2-main{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:14px!important;align-items:center!important;min-width:0!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-photo{display:grid;place-items:center;width:88px;height:88px;overflow:hidden;border:1px solid #cfe5f4;border-radius:12px;background:#f7fbff}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-photo img{width:100%;height:100%;object-fit:contain}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-photo span{font-size:32px}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-copy{display:grid;gap:6px;min-width:0}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-copy>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-copy>div>b{color:#08734e;font-size:23px;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-copy strong{overflow:hidden;color:#123c5a;font-size:19px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-copy small{overflow:hidden;color:#647b8f;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-state{display:inline-flex;align-items:center;width:max-content;min-height:26px;padding:3px 9px;border-radius:999px;background:#e4f3ff;color:#075985;font-size:12px;font-weight:900}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-state.review{background:#fff4d6;color:#a65a00}html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-state.expiry{background:#fff4d6;color:#a65a00}html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-state.posted{background:#dcfce7;color:#08734e}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-meta{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-meta>span{display:grid!important;gap:3px!important;min-width:0!important;min-height:58px;padding:9px 10px!important;border:1px solid #dcecf6!important;border-radius:10px!important;background:#f8fcff!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-meta small{color:#71879a!important;font-size:12px!important;font-weight:700!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-meta b{overflow:hidden;color:#244a66!important;font-size:15px!important;text-overflow:ellipsis;white-space:nowrap}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-meta b.warning{color:#b45309!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-card-v2>.tablet-scan-v2-quantity{display:grid!important;grid-template-columns:minmax(150px,1fr) 46px 92px 46px auto!important;align-items:center!important;gap:8px!important;margin:0!important;padding:12px!important;border:1px solid #cde5f5!important;border-radius:12px!important;background:#f8fcff!important;box-sizing:border-box!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-quantity>span{color:#385d78!important;font-size:14px!important;font-weight:900!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-quantity input{min-width:0!important;min-height:44px!important;border:1px solid #a9cbe2!important;border-radius:9px!important;font-size:20px!important;font-weight:900!important;text-align:center!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-quantity button{min-height:44px!important;border-radius:9px!important;font-size:18px!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-quantity .btn{padding-inline:16px!important;font-size:14px!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-card-v2>.tablet-scan-v2-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-end!important;margin:0!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-actions>.btn,html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-actions>label{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:150px!important;min-height:42px!important;margin:0!important;padding:8px 12px!important;border-radius:9px!important;white-space:normal!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-card-v2>.tablet-scan-v2-review{min-height:48px!important;border-radius:10px!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-card-v2>.tablet-scan-v2-more{display:block!important;margin:0!important;border:1px solid #d5e7f3!important;border-radius:10px!important;background:#fbfdff!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-more>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:44px!important;padding:0 12px!important;color:#315b7c!important;font-size:14px!important;font-weight:850!important;cursor:pointer!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-more>summary span{color:#1686c8!important;font-size:12px!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-more[open]>summary{border-bottom:1px solid #d5e7f3!important}
html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-more form{margin:0!important;padding:12px!important}
@media(max-width:700px){
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-card-v2>.tablet-scan-v2-main{grid-template-columns:68px minmax(0,1fr)!important;gap:11px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-photo{width:68px!important;height:68px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-copy strong{font-size:16px!important;white-space:normal!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-copy small{font-size:12px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-meta{grid-template-columns:1fr 1fr!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-card-v2>.tablet-scan-v2-quantity{grid-template-columns:1fr 44px 78px 44px!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-quantity>span,.tablet-receiving-flow .tablet-scan-v2-quantity .btn{grid-column:1/-1!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-actions{justify-content:stretch!important}
  html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-actions>.btn,html[data-device-mode="tablet"] .tablet-receiving-flow .tablet-scan-v2-actions>label{flex:1 1 140px!important}
}
