/* 1108-16 板块 A2：采购库存单据页（申购·待收货·调拨·单据流转·下单·未配送·新建申购／调拨填写页）。
   只换排版；旧样式（unified.css、operations.css）用更具体的选择器覆盖。
   标“共享候选”的几条是通用件，交主代理决定是否并入 ui-kit.css。 */

/* 共享候选：视觉隐藏（仍可被读屏和自动化选中），用于保留原有 select 作为唯一筛选来源 */
.uk-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
/* 共享候选：路线箭头、危险文字按钮、分组卡底部操作区、日期胶囊展开行 */
.uk-route{color:#8e8e93;font-size:12px}
.uk-tl.uk-danger{color:#b5362c;font-weight:600}
.uk-tl:disabled{color:#b0aea6;cursor:default}
.uk-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid #e9e6df;background:#faf9f5}
.uk-foot .uk-btn{height:38px;padding:0 16px}
.uk-foot small{margin-right:auto;font-size:12px;color:var(--muted);min-width:0}
.uk-date-row{gap:6px}
.uk-filters[hidden],.supply-filters[hidden],.order-main-head[hidden]{display:none}
.uk-date-row input.uk-pill{font-size:14px;max-width:170px}
.uk-date-row span{color:var(--muted)}
.uk-filters select.uk-pill:not(.on){color:var(--ink)}
.uk-back .uk-tl{font-size:15px}

/* 列表页 */
.supply-page.uk{max-width:none}
.supply-page.uk .page-title{margin-bottom:12px}
.supply-page.uk .supply-filters{background:none;padding:0;border:0;margin:0 0 6px}
.supply-page.uk .uk-sec .os-group+.os-group{margin-top:10px}
.supply-page.uk a.uk-row{cursor:pointer}
.supply-page.uk a.uk-row:hover{background:#faf9f5}
.supply-page.uk .uk-row .uk-meta .document-note{max-width:14em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supply-page.uk .supply-source-note a,.supply-page.uk .uk-warnline a{color:inherit;font-weight:600;text-decoration:underline;padding:0 2px}
.supply-page.uk .uk-empty{margin-bottom:18px}

/* 单据详情 */
.supply-document-detail .uk-hero .top .mn-store{font-size:12px}
.supply-document-detail .uk-hero>.uk-meta{margin-top:4px;font-size:13px}
.supply-document-detail .uk-sec>h2 .r{color:var(--green);font-weight:500}
.supply-document-detail .document-line .uk-main>b{white-space:normal;overflow-wrap:anywhere}
.supply-document-detail .document-difference-note{color:#8b402f}
.supply-document-detail .uk-end b{font-size:16px}
.supply-document-detail .uk-end .uk-chip{font-size:11px;line-height:18px;padding:0 8px}
.supply-document-detail>.uk-btn.block{margin:4px 0 0}
.supply-document-detail .uk-actions{margin-bottom:18px}
.supply-document-detail .uk-actions:first-child{margin-top:0}
.supply-history{margin-top:18px}
.supply-history .uk-row .uk-tl{font-size:13px;flex:none}

/* 逐项收货子页 */
.supply-receive .uk-step{align-items:stretch}
.supply-receive .uk-step button{width:34px;min-height:0;height:34px;border:0;background:none;color:var(--green);font-size:18px;padding:0;line-height:34px;cursor:pointer}
.supply-receive .uk-step input{width:64px;height:34px;min-height:0;border:0;border-left:1px solid #eee;border-right:1px solid #eee;border-radius:0;text-align:center;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;padding:0;background:#fff;-moz-appearance:textfield;box-shadow:none}
.supply-receive .uk-step input::-webkit-inner-spin-button,.supply-receive .uk-step input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.supply-receive .uk-field input{margin-left:auto;border:0;background:none;text-align:right;font:inherit;font-size:16px;color:#6b6a65;min-height:0;height:40px;padding:0;min-width:0;flex:1;box-shadow:none}
.supply-receive .uk-field input[type=date]{flex:none}
.supply-receive .uk-meta .uk-chip[hidden]{display:none}
.supply-receive .uk-errline[hidden]{display:none}

/* 下单 */
.supplier-orders-page .supplier-order{margin:0 0 10px;padding:0}
.supplier-orders-page .supplier-order .uk-sub{gap:8px}
.supplier-orders-page .supplier-order .uk-sub .n{flex:1;min-width:4em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supplier-orders-page .supplier-order .uk-sub .n small{color:var(--muted);font-size:11px}
.supplier-orders-page .supplier-order .uk-sub .uk-meta{flex:none;flex-wrap:nowrap}
.supplier-orders-page .supplier-order .uk-sub .uk-amt{margin-left:0;flex:none}
.supplier-orders-page .supplier-order .uk-foot{flex-wrap:wrap}
.supplier-orders-page .supplier-order textarea{display:block;width:calc(100% - 28px);margin:0 14px 12px;font-size:13px;line-height:1.6;border:1px solid #e6e3dc;border-radius:12px;padding:10px 12px;background:#fffefa}
.supplier-orders-page .supplier-order textarea[hidden]{display:none}
.supplier-orders-page button.uk-row{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer;min-height:48px;border-radius:0;box-shadow:none}
.supplier-orders-page button.uk-row:hover{background:#faf9f5}
.supplier-orders-page #order-refresh{margin:0 0 12px}
.supplier-orders-page .uk-warnline[hidden],.supplier-orders-page #order-refresh[hidden]{display:none}

/* 未配送 */
.undelivered-page .supply-filters .uk-search{margin-bottom:12px}
.undelivered-head{display:flex;align-items:center;gap:10px;margin:0 4px 10px 16px;font-size:14px}
.undelivered-head strong{font-weight:600;color:var(--ink)}
.undelivered-all{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--green);cursor:pointer}
.undelivered-all[hidden]{display:none}
.undelivered-all input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--green)}
.undelivered-row{cursor:pointer}
.undelivered-row>input{width:22px;height:22px;min-height:0;margin:0;flex:none;accent-color:var(--green)}
.undelivered-result{font-size:13px;color:var(--green);margin:0 0 8px}
.undelivered-result:empty{display:none}
.undelivered-page #undelivered-copy{display:block;width:100%;margin:0 0 12px;font-size:13px;line-height:1.6;border-radius:12px}
.undelivered-page #undelivered-copy[hidden]{display:none}
.undelivered-bar{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:6;margin:4px 0 12px}
.undelivered-bar[hidden]{display:none}
.undelivered-bar span{color:var(--ink);font-weight:600}

/* 新建申购／新建调拨填写页（原全屏弹窗，现排成普通填写页） */
#modal.supply-editor.operations-entry{background:var(--paper);color:var(--ink);font-size:15px}
#modal.supply-editor.operations-entry .supply-modal-heading{position:static;display:block;padding:0;margin:0 0 12px;background:none}
#modal.supply-editor.operations-entry .supply-modal-heading .uk-back{margin:2px 0 4px}
#modal.supply-editor.operations-entry .supply-modal-heading .supply-entry-back{font-size:15px;min-height:0;padding:0;border:0;background:none;color:var(--green)}
#modal.supply-editor.operations-entry .supply-modal-heading h2{font-size:28px;font-weight:600;letter-spacing:-.02em;margin:0;line-height:1.15;color:var(--ink)}
#modal.supply-editor.operations-entry .supply-document-context{display:block;margin:0 0 12px;padding:0}
#modal.supply-editor.operations-entry .supply-document-context .uk-field{display:flex;align-items:center;gap:12px;min-height:48px;padding:4px 16px;margin:0;font-size:16px;color:var(--ink);flex:none;min-width:0}
#modal.supply-editor.operations-entry .supply-document-context .uk-field>span{flex:none;min-width:72px}
#modal.supply-editor.operations-entry .supply-document-context .uk-field select,#modal.supply-editor.operations-entry .supply-document-context .uk-field input{flex:1;min-width:0;width:auto;max-width:none;height:40px;min-height:0;border:0;background:none;box-shadow:none;text-align:right;text-align-last:right;font-size:16px;color:#6b6a65;padding:0 2px}
#modal.supply-editor.operations-entry .supply-document-context .uk-field input[type=search]{background:#f1efe9;border-radius:10px;padding:0 10px;text-align:left;height:34px}
#modal.supply-editor.operations-entry .supply-document-context .uk-field-note{display:block;padding:0 16px 8px;font-size:12px;color:var(--muted)}
#modal.supply-editor.operations-entry .supply-document-context .uk-field-note:empty{display:none}
#modal.supply-editor.operations-entry .operation-shortcut{padding:0;margin:0 0 12px}
#modal.supply-editor.operations-entry .operation-shortcut>button{display:grid;place-items:center;width:100%;height:44px;border-radius:12px;background:#fffefa;border:1px solid #dcd9d1;color:var(--ink);font-size:15px;font-weight:500}
#modal.supply-editor.operations-entry .supply-entry-search{margin:0 0 10px}
#modal.supply-editor.operations-entry .supply-entry-search input{font-size:16px;height:100%}
#modal.supply-editor.operations-entry .supply-entry-filters{display:flex;gap:8px;margin:0 0 6px;flex-wrap:nowrap}
#modal.supply-editor.operations-entry .supply-entry-filters select.uk-pill{width:auto;height:34px;font-size:14px;max-width:200px}
#modal.supply-editor.operations-entry .operation-note{margin:0 0 8px;font-size:12px}
#modal.supply-editor.operations-entry .supply-entry-table{margin:0 0 6px}
#modal.supply-editor.operations-entry .supply-entry-table table{border-collapse:separate;border-spacing:0;background:none}
#modal.supply-editor.operations-entry .supply-category th{background:none!important;padding:14px 0 5px;border:0}
#modal.supply-editor.operations-entry .supply-category-toggle{display:flex;align-items:center;width:100%;gap:4px;padding:0 4px 0 16px;min-height:0;font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.04em;background:none;border:0;box-shadow:none;text-align:left}
#modal.supply-editor.operations-entry .supply-category-arrow{display:none}
#modal.supply-editor.operations-entry .supply-category-toggle::after{content:'收起';margin-left:auto;color:var(--green);font-weight:500;letter-spacing:0}
#modal.supply-editor.operations-entry .supply-category-toggle[aria-expanded=false]::after{content:'展开'}
#modal.supply-editor.operations-entry [data-sku-row]{height:auto}
#modal.supply-editor.operations-entry [data-sku-row] td{background:#fffefa;border-bottom:1px solid #e9e6df;padding:9px 8px;vertical-align:middle}
#modal.supply-editor.operations-entry [data-sku-row] td:first-child{padding-left:12px;border-left:1px solid #e6e3dc}
#modal.supply-editor.operations-entry [data-sku-row] td:last-child{border-right:1px solid #e6e3dc;text-align:right;padding-left:4px;padding-right:10px}
#modal.supply-editor.operations-entry .supply-category+[data-sku-row] td{border-top:1px solid #e6e3dc}
#modal.supply-editor.operations-entry .supply-category+[data-sku-row] td:first-child{border-top-left-radius:16px}
#modal.supply-editor.operations-entry .supply-category+[data-sku-row] td:last-child{border-top-right-radius:16px}
#modal.supply-editor.operations-entry .operation-entry-identity{grid-template-columns:44px minmax(0,1fr);gap:10px}
#modal.supply-editor.operations-entry .operation-photo{width:44px;height:44px;border-radius:10px;object-fit:cover}
#modal.supply-editor.operations-entry .operation-entry-identity>div{display:block}
#modal.supply-editor.operations-entry .operation-entry-identity strong{font-size:16px;font-weight:600;color:var(--ink)}
#modal.supply-editor.operations-entry .operation-entry-identity small{display:inline;font-size:12px;color:var(--muted)}
#modal.supply-editor.operations-entry [data-recent]{display:inline;font-size:12px;color:#a34f48;margin-left:6px}
#modal.supply-editor.operations-entry .supply-entry-demand{display:block!important;margin-top:2px}
#modal.supply-editor.operations-entry .operation-entry-identity .operation-quick-values{display:flex;width:auto;gap:6px;margin:6px 0 0}
#modal.supply-editor.operations-entry .operation-quick-values button{flex:none;min-width:34px;min-height:0;height:24px;padding:0 9px;border:0;border-radius:999px;background:#e5eee6;color:#2f5744;font-size:13px;font-weight:600}
#modal.supply-editor.operations-entry .operation-quick-values button:disabled{opacity:.5}
#modal.supply-editor.operations-entry col.op-quantity-col{width:106px}
#modal.supply-editor.operations-entry [data-sku-row] td:last-child{width:auto}
#modal.supply-editor.operations-entry input[name^="qty:"]{display:block;width:100%;height:42px;min-height:0;border:1.5px solid #e6e3dc;border-radius:12px;background:#fff;text-align:right;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;padding:0 10px;color:var(--ink)}
#modal.supply-editor.operations-entry input[name^="qty:"]:focus{border-color:var(--green);outline:none}
#modal.supply-editor.operations-entry td:last-child>small{display:block;margin:3px 2px 0;font-size:11px;color:var(--muted);text-align:right}
#modal.supply-editor.operations-entry #supply-unsaved{display:none}
#modal.supply-editor.operations-entry .supply-review-list{margin:14px 0 10px}
#modal.supply-editor.operations-entry #form-error{margin:8px 4px}
#modal.supply-editor.operations-entry #form-error:empty{display:none}
#modal.supply-editor.operations-entry .supply-entry-bar{position:sticky;bottom:0;z-index:6;margin:10px 0 0}
#modal.supply-editor.operations-entry .supply-entry-bar.uk-savebar span{color:var(--ink);font-size:14px}
#modal.supply-editor.operations-entry .supply-entry-bar.uk-savebar [type=submit]{height:38px;padding:0 16px;flex:none}
#modal.supply-editor.operations-entry .supply-entry-submit{display:block;padding:10px 0;background:var(--paper)}
#modal.supply-editor.operations-entry .supply-entry-submit [data-entry-count]{display:block;font-size:13px;color:var(--muted);margin:0 4px 6px}
#modal.supply-editor.operations-entry .supply-entry-submit [type=submit]{display:grid;width:100%;height:46px;background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
#modal.supply-editor.operations-entry .supply-entry-bar [type=submit]:disabled{opacity:.6}
@media(min-width:760px){
 #modal.supply-editor.operations-entry col.op-quantity-col{width:150px}
 #modal.supply-editor.operations-entry .operation-entry-identity{grid-template-columns:48px minmax(0,1fr)}
}
#modal.supply-editor.operations-entry .supply-entry-table{border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
#modal.supply-editor.operations-entry [data-sku-row] td+td{border-left:0}
#modal.supply-editor.operations-entry [data-sku-row] td:not(:last-child){border-right:0}
#modal.supply-editor.operations-entry [data-sku-row]:has(+.supply-category) td,#modal.supply-editor.operations-entry [data-sku-row]:last-child td{border-bottom:1px solid #e6e3dc}
#modal.supply-editor.operations-entry [data-sku-row]:has(+.supply-category) td:first-child,#modal.supply-editor.operations-entry [data-sku-row]:last-child td:first-child{border-bottom-left-radius:16px}
#modal.supply-editor.operations-entry [data-sku-row]:has(+.supply-category) td:last-child,#modal.supply-editor.operations-entry [data-sku-row]:last-child td:last-child{border-bottom-right-radius:16px}
#modal.supply-editor.operations-entry .supply-document-context .uk-field select,#modal.supply-editor.operations-entry .supply-document-context .uk-field input{margin:0}
.supplier-orders-page .supply-completed{border:0;border-radius:0;padding:0;background:none}
.supplier-orders-page .supplier-order .uk-foot{margin:0;position:static;box-shadow:none}
/* 1108-43 刷新分配: header pill and bottom sheet (原 → 新 供应商, yellow line for rows that stay). */
.supplier-orders-page .order-reassign.uk-pill{color:var(--green);border-color:var(--green);font-weight:600;cursor:pointer}
.supplier-orders-page .order-reassign.uk-pill:disabled{opacity:.5;cursor:default}
#modal.ra-sheet .ra-body{display:block;min-height:48px}
#modal.ra-sheet .ra-body[aria-busy=true]:empty::before{content:'…';display:block;padding:12px 16px;color:var(--muted)}
#modal.ra-sheet .ra-group{margin:0 0 10px;background:#fffefa;border:1px solid #e6e3dc;border-radius:16px;overflow:hidden}
#modal.ra-sheet .ra-row{position:relative;display:flex;align-items:center;gap:8px;min-height:50px;padding:6px 14px;box-sizing:border-box;font-size:15px}
#modal.ra-sheet .ra-row+.ra-row::before{content:'';position:absolute;top:0;left:14px;right:0;height:1px;background:#eeebe4}
#modal.ra-sheet .ra-name{flex:1;min-width:0;display:flex;flex-direction:column;overflow-wrap:anywhere}
#modal.ra-sheet .ra-name small{font-size:12px;color:var(--muted)}
#modal.ra-sheet .ra-tag{flex:none;max-width:6.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 9px;border-radius:999px;background:var(--c,#6E726A);color:#fff;font-size:12px;font-style:normal;font-weight:700}
#modal.ra-sheet .ra-arrow{flex:none;color:var(--muted)}
#modal.ra-sheet .ra-warn{margin:0 0 10px;padding:8px 12px;border-radius:12px;background:#fff3d6;color:#7a5a1c;font-size:13px;line-height:1.45}
#modal.ra-sheet .ra-err{margin:0 0 10px;color:#a3412b;font-size:14px}
#modal.ra-sheet .ra-err[hidden],#modal.ra-sheet .ra-apply[hidden]{display:none}
#modal.ra-sheet .dm-save.ra-apply{margin:12px 0 0}
