/* DAYO V4.3.8.29 - 全界面简洁优化版 */
:root{--dayo-navy:#123b4a;--dayo-navy-deep:#0b2d38;--dayo-teal:#087f7d;--dayo-bg:#f4f7f8;--dayo-line:#e1e9eb;--dayo-text:#243b44;--dayo-muted:#70828a;--dayo-panel:#fff}
body{background:var(--dayo-bg);color:var(--dayo-text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif}
.app-shell{grid-template-columns:224px minmax(0,1fr);background:var(--dayo-bg)}
.sidebar{background:linear-gradient(180deg,var(--dayo-navy) 0%,var(--dayo-navy-deep) 100%);padding:20px 13px 14px;border:0;box-shadow:none}
.dayo-wordmark-wrap{height:62px;padding:5px 9px 19px;margin:0;border-bottom:1px solid rgba(255,255,255,.11);display:flex;align-items:center}
.dayo-wordmark{display:block;width:158px;height:auto;max-height:46px;object-fit:contain;object-position:left center}
.sidebar-caption{display:none!important}
.sidebar nav{padding:10px 2px 8px 0}
.nav-section-title{margin:13px 10px 5px;padding:0;color:rgba(220,235,237,.48);font-size:10px;font-weight:600;letter-spacing:1.2px}
.sidebar nav>button,.nav-group-toggle,.nav-submenu>button,.nav-subgroup-toggle,.nav-subgroup-menu>button{min-height:39px;margin:2px 0;border-radius:8px;color:#dcebed;font-size:13px;font-weight:500;transition:background .15s,color .15s}
.sidebar nav>button:hover,.nav-group-toggle:hover,.nav-submenu>button:hover,.nav-subgroup-toggle:hover,.nav-subgroup-menu>button:hover{background:rgba(255,255,255,.09);color:#fff}
.sidebar nav button.active{background:#fff!important;color:var(--dayo-navy)!important;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.nav-icon{width:20px;min-width:20px;display:inline-grid;place-items:center;font-size:15px}.ui-icon{width:17px;height:17px}
.nav-submenu{padding:2px 0 5px 13px;border-left:1px solid rgba(255,255,255,.13);margin-left:19px}.nav-submenu>button,.nav-subgroup-toggle{padding-left:14px}.nav-subgroup-menu{padding-left:10px}.nav-subgroup-menu>button{padding-left:20px}
.sidebar-footer{margin-top:6px;padding:12px 9px 2px;border-top:1px solid rgba(255,255,255,.1)}.sidebar-footer strong{color:#e9f4f5}.sidebar-footer span{color:rgba(220,235,237,.58)}
.main{background:var(--dayo-bg);padding:0 27px 32px;min-width:0}.topbar{height:76px;margin:0 -27px 20px;padding:0 28px;background:rgba(255,255,255,.88);border-bottom:1px solid var(--dayo-line);box-shadow:none;backdrop-filter:blur(12px)}
.topbar .eyebrow{display:none}.topbar h1{font-size:20px;font-weight:600;color:var(--dayo-text)}.security-pill{background:#edf7f4;border-color:#d9ebe6;color:#287264}
.page>.toolbar,.dashboard-simple-head{margin:0 0 17px;align-items:center}.toolbar h2,.dashboard-simple-head h2,.erp-toolbar h2{font-size:22px!important;font-weight:600;margin:0 0 5px!important;color:var(--dayo-text)}.toolbar p,.dashboard-simple-head p,.erp-toolbar p{font-size:12px;color:var(--dayo-muted)}
.dashboard-simple-head>div:first-child>span,.erp-kicker{display:none}
.panel,.metric-card,.erp-product-summary>div,.inventory-kpi-grid>div{background:var(--dayo-panel);border:1px solid var(--dayo-line);border-radius:11px;box-shadow:none}
.panel{padding:16px}.panel-head{margin-bottom:12px}.panel-head h3{font-size:14px;font-weight:600;color:var(--dayo-text)}.panel-head p{font-size:11px;color:var(--dayo-muted)}
.metric-grid{gap:12px}.metric-card{padding:15px 16px;min-height:92px}.metric-card span{color:var(--dayo-muted);font-size:11px}.metric-card strong{color:var(--dayo-text);font-size:20px;font-weight:600}.metric-card small{color:#8a9aa0;font-size:10px}
.home-section-title{margin:19px 2px 9px}.home-section-title b{font-size:14px;font-weight:600}.home-section-title span{font-size:10px;color:var(--dayo-muted)}
.primary-btn{background:var(--dayo-teal);border-color:var(--dayo-teal);border-radius:8px;box-shadow:none;font-weight:600}.primary-btn:hover{background:#06706e}.outline-btn,.ghost-btn{border-color:#d5e0e3;background:#fff;border-radius:8px;color:#385b66;box-shadow:none}.text-link{color:var(--dayo-teal)}
input,select,textarea{border-color:#d7e2e5!important;border-radius:7px!important;background:#fff!important;color:var(--dayo-text)!important;box-shadow:none!important}input:focus,select:focus,textarea:focus{border-color:#67aaa8!important;box-shadow:0 0 0 3px rgba(8,127,125,.1)!important}
.table-wrap{border-radius:8px;border:1px solid #e5ecee}table{font-size:11px}table th{background:#f1f5f6!important;color:#60747c!important;font-weight:600!important;padding:10px 9px!important}table td{padding:10px 9px!important;border-color:#edf1f2!important}tbody tr:hover td{background:#f8fbfb!important}tfoot td{background:#f4f8f8!important;font-weight:600}
.payment-tabs,.erp-tabs,.inventory-tabs,.purchase-tabs,.settlement-tabs{background:#eaf0f1!important;border-radius:9px!important;padding:4px!important;box-shadow:none!important}.payment-tabs button.active,.erp-tabs button.active,.inventory-tabs button.active,.purchase-tabs button.active,.settlement-tabs button.active{background:#fff!important;color:var(--dayo-teal)!important;box-shadow:none!important}
.badge{border-radius:6px;font-weight:600}.row-action-menu summary{border-radius:7px}.row-action-menu>div{border-radius:9px;box-shadow:0 10px 25px rgba(15,47,58,.15)}
.modal-card{border-radius:14px;border:1px solid var(--dayo-line);box-shadow:0 25px 70px rgba(10,38,48,.24)}.modal-head{border-color:var(--dayo-line)}
.dashboard-statusbar{background:transparent;border:0;color:#8b9a9f;padding:8px 2px}.quick-strip.home-modules button{border:1px solid var(--dayo-line);border-radius:10px;background:#fff;box-shadow:none}
.login-screen{background:linear-gradient(135deg,#eaf2f4,#cfe4e8)}.login-visual{background:linear-gradient(155deg,var(--dayo-navy),#176279)}.login-hero-icon{display:none}.login-visual:before{content:"";position:relative;display:block;left:auto;bottom:auto;width:235px;height:62px;border:0;border-radius:0;background:url('/static/assets/dayo-logo.svg?v=4.3.8.29') left center/contain no-repeat;box-shadow:none;transform:none}.login-visual-copy{margin-top:54px}.login-form-brand{display:none}.login-card{background:#fff}.login-btn{background:var(--dayo-teal);box-shadow:none}
@media(max-width:980px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.main{padding-left:18px;padding-right:18px}.topbar{margin-left:-18px;margin-right:-18px;padding-left:19px;padding-right:19px}.metric-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.app-shell{display:block}.sidebar{display:none}.main{padding:14px}.topbar{margin:-14px -14px 16px;padding:0 15px}.metric-grid-four,.metric-grid-three{grid-template-columns:1fr}.top-actions{flex-wrap:wrap}}

/* V4.3.8.29 确认稿落地：导航结构与公司主页 */
.sidebar{width:224px}.sidebar nav>button,.nav-group-toggle{padding:9px 11px;display:flex;align-items:center;gap:9px;width:100%}.nav-group-toggle>b{margin-left:auto;font-size:12px}.nav-group.open>.nav-group-toggle{background:rgba(255,255,255,.08);color:#fff}.nav-group.open>.nav-submenu{display:block}.nav-submenu{margin-top:2px;margin-bottom:4px}.nav-submenu button{width:100%;text-align:left}
.dayo-home{padding-bottom:24px}.dayo-home-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.dayo-home-head h2{font-size:22px;font-weight:600;margin:0 0 5px}.dayo-home-head p{font-size:12px;color:var(--dayo-muted);margin:0}.dayo-home-actions{display:flex;align-items:end;gap:8px}.dayo-home-actions label{display:grid;gap:5px;font-size:10px;color:var(--dayo-muted)}.dayo-home-actions select{height:36px;min-width:110px}.dayo-home-section{display:flex;align-items:center;justify-content:space-between;margin:4px 2px 9px}.dayo-home-section>div{display:flex;align-items:baseline;gap:10px}.dayo-home-section b{font-size:14px}.dayo-home-section span{font-size:10px;color:var(--dayo-muted)}
.dayo-home-metrics{margin-bottom:14px}.dayo-click-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;cursor:pointer;color:inherit}.dayo-click-card:hover{border-color:#a8c9c9;box-shadow:0 6px 18px rgba(18,59,74,.07);transform:translateY(-1px)}
.dayo-home-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:14px}.dayo-home-panel{margin-bottom:14px}.dayo-home-panel table th:last-child,.dayo-home-panel table td:last-child{text-align:right}.dayo-home-panel .table-wrap{border:0}.dayo-home-panel table th{padding-top:9px!important;padding-bottom:9px!important}.dayo-home-panel table td{height:46px}.dayo-todo-list,.dayo-quick-list{display:grid;gap:8px}.dayo-todo-list button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;padding:9px 10px;border:0;border-radius:8px;background:#f7f9fa;color:var(--dayo-text);cursor:pointer}.dayo-todo-list button:hover{background:#eef5f5}.dayo-todo-list span{display:flex;align-items:center;gap:8px}.dayo-todo-list i{width:7px;height:7px;border-radius:50%;background:#e58b35}.dayo-todo-list b{min-width:25px;padding:3px 7px;border-radius:6px;background:#fff;color:var(--dayo-teal)}.dayo-quick-list button{width:100%;min-height:38px}.dayo-reminder{margin-top:0}.empty-cell{text-align:center!important;color:#8b9a9f;padding:26px!important}
@media(max-width:1100px){.dayo-home-grid{grid-template-columns:1fr}.dayo-home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dayo-home-head{flex-direction:column}.dayo-home-metrics{grid-template-columns:1fr}.dayo-home-actions{width:100%;flex-wrap:wrap}}

/* V4.3.8.29 商品中心紧凑分页、登记回料型号列加宽 */
#erpProducts .product-filter-grid{grid-template-columns:minmax(260px,2fr) minmax(170px,1fr) minmax(150px,.8fr) auto auto!important}
#erpProducts .product-table-wrap{max-height:none}
#erpProducts .product-table th,#erpProducts .product-table td{padding:7px 10px!important;height:auto!important}
#erpProducts .product-table tbody tr{height:54px!important}
#erpProducts .product-thumb{width:38px;height:38px;border-radius:7px}
#erpProducts .product-table .table-actions{gap:5px;flex-wrap:nowrap}
.product-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px 0;color:var(--dayo-muted);font-size:11px}
.product-pagination>div{display:flex;align-items:center;gap:5px}.product-pagination .mini-btn.active{background:var(--dayo-teal);border-color:var(--dayo-teal);color:#fff}.product-pagination .mini-btn:disabled{opacity:.4;cursor:not-allowed}
#modal .standardized-document-table:has(#osReturnBody) table{width:100%;min-width:1260px;table-layout:fixed}
#modal .standardized-document-table:has(#osReturnBody) th:nth-child(1){width:260px}
#modal .standardized-document-table:has(#osReturnBody) th:nth-child(2){width:170px}
#modal .standardized-document-table:has(#osReturnBody) th:nth-child(3){width:135px}
#modal .standardized-document-table:has(#osReturnBody) th:nth-child(4){width:145px}
#modal .standardized-document-table:has(#osReturnBody) th:nth-child(5){width:120px}
#modal .standardized-document-table:has(#osReturnBody) th:nth-child(6){width:125px}
#modal .standardized-document-table:has(#osReturnBody) th:nth-child(7){width:120px}
#modal .standardized-document-table:has(#osReturnBody) th:nth-child(8){width:110px}
#modal .standardized-document-table:has(#osReturnBody) th:nth-child(9){width:80px}
#modal #osReturnBody td{min-width:0!important;overflow:hidden}
#modal #osReturnBody .product-model-entry{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;gap:6px;width:100%;min-width:0!important}
#modal #osReturnBody .product-model-entry input{width:100%!important;min-width:0!important}
#modal #osReturnBody .product-model-entry .mini-btn{width:42px!important;padding:0!important}
#modal #osReturnBody .os-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){#erpProducts .product-filter-grid{grid-template-columns:1fr 1fr!important}.product-pagination{align-items:flex-start;flex-direction:column}}

/* V4.3.8.29 全模块选品弹窗紧凑化：一屏显示更多商品 */
.purchase-picker-layer{padding:12px!important}
.purchase-picker-card{width:min(1040px,96vw)!important;max-height:94vh!important;padding:13px 15px!important;gap:8px!important;border-radius:12px!important}
.purchase-picker-title b{font-size:15px!important}.purchase-picker-title span{font-size:10px!important}
.purchase-picker-card .product-picker-head{margin:0!important;gap:8px!important}
.purchase-picker-card .product-picker-head input{height:32px!important;font-size:11px!important}
.purchase-picker-card .product-picker-table{max-height:72vh!important}
.purchase-picker-card .product-picker-table table{font-size:11px!important}
.purchase-picker-card .product-picker-table th{padding:6px 8px!important;height:34px!important}
.purchase-picker-card .product-picker-table td{padding:4px 8px!important;height:38px!important;line-height:1.2!important}
.purchase-picker-card .product-picker-table tbody tr{height:38px!important}
.purchase-picker-card .product-picker-table input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;padding:0!important;border-radius:3px!important;box-shadow:none!important}
.purchase-picker-card .product-picker-table .mini-btn{height:26px!important;min-height:26px!important;padding:0 8px!important;font-size:10px!important}
.purchase-picker-card .modal-actions{margin-top:2px!important;padding-top:5px!important}
.purchase-picker-card .modal-actions button{height:34px!important}

/* V4.3.8.29 全局组件精修：与确认预览统一 */
.main{max-width:none}.page{animation:none}.toolbar{gap:18px}.toolbar>div:first-child{min-width:0}.toolbar-actions,.top-actions{gap:8px}.toolbar-actions button,.top-actions button,.top-actions a{height:34px;padding:0 12px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.panel.table-panel{padding:14px}.erp-page .panel-head{margin-bottom:10px}.metric-grid{margin-bottom:14px}.metric-card{overflow:hidden;position:relative}.metric-card:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-38px;top:-48px;background:rgba(8,127,125,.045);pointer-events:none}.metric-card.balance-card:after{background:rgba(104,75,190,.05)}
.erp-filter-row{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px!important;align-items:end;margin:0 0 12px}.erp-filter-row label{display:grid;gap:5px;min-width:0;margin:0;font-size:10px;color:var(--dayo-muted);font-weight:500}.erp-filter-row input,.erp-filter-row select{width:100%;min-width:0;max-width:none;height:34px;padding:0 9px;font-size:11px}.erp-filter-row>button{height:34px;min-width:68px;padding:0 11px;align-self:end}.erp-filter-row .searchable-filter-wrap{width:100%;min-width:0}
.product-filter-grid,.payment-filter-grid{gap:8px!important}.product-filter-grid input,.product-filter-grid select,.payment-filter-grid input,.payment-filter-grid select{height:34px!important;font-size:11px!important}.product-filter-panel,.payment-filter-panel,.transport-filter-panel{padding:12px 14px!important}
.searchable-filter-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) 36px;gap:5px!important;min-width:0!important;width:100%}.searchable-filter-input{min-width:0!important;width:100%!important;height:34px!important}.searchable-filter-wrap .mini-btn{width:36px!important;min-width:36px!important;height:34px!important;padding:0!important;border-radius:7px!important}
.searchable-filter-wrap{position:relative}
.filter-suggest-menu{position:absolute;left:0;right:41px;top:38px;z-index:80;max-height:230px;overflow:auto;padding:5px;background:#fff;border:1px solid #d7e2e5;border-radius:8px;box-shadow:0 12px 28px rgba(15,47,58,.16)}
.filter-suggest-menu button{display:block;width:100%;min-height:32px;padding:6px 9px!important;border:0!important;border-radius:6px!important;background:#fff!important;color:var(--dayo-text)!important;text-align:left;font-size:11px!important;cursor:pointer;white-space:normal}
.filter-suggest-menu button:hover{background:#edf6f5!important;color:var(--dayo-teal)!important}
.transport-filter-grid,.recon-filter-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;align-items:end}.transport-filter-grid label,.recon-filter-grid label{display:grid;gap:5px;min-width:0;font-size:10px;color:var(--dayo-muted)}.transport-filter-grid input,.transport-filter-grid select,.recon-filter-grid input,.recon-filter-grid select{height:34px!important;min-width:0;width:100%;font-size:11px}.transport-filter-grid .transport-keyword,.recon-filter-grid .transport-keyword{grid-column:span 2}.transport-filter-grid>button,.recon-filter-grid>button{height:34px;align-self:end}
.payment-tabs,.transport-tabs{gap:3px!important;width:max-content;max-width:100%;padding:4px!important}.payment-tabs button,.transport-tabs button{height:34px;padding:0 12px!important;font-size:11px!important;font-weight:500!important}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}table th,table td{line-height:1.35}.table-btn,.mini-btn{min-height:30px;padding:0 9px!important;font-size:10px!important;border-radius:7px!important}.badge{padding:4px 7px!important;font-size:9.5px!important}
.nav-icon{font-size:0!important}.nav-icon svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar nav>button,.nav-group-toggle{font-size:13px!important;font-weight:500!important}.nav-submenu button{font-size:12px!important;font-weight:500!important}.nav-submenu{padding-left:10px!important;margin-left:18px!important}.nav-submenu button.active{border-left:0!important}
@media(min-width:1500px){.transport-filter-grid,.recon-filter-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.transport-filter-grid .transport-keyword,.recon-filter-grid .transport-keyword{grid-column:auto}}
@media(max-width:1050px){.transport-filter-grid,.recon-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.transport-filter-grid .transport-keyword,.recon-filter-grid .transport-keyword{grid-column:span 2}.erp-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.transport-filter-grid,.recon-filter-grid,.erp-filter-row{grid-template-columns:1fr!important}.transport-filter-grid .transport-keyword,.recon-filter-grid .transport-keyword{grid-column:auto}}

/* V4.3.8.29 采购与库存：固定标题、筛选、表格三层结构 */
#erpInventory .erp-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 14px;
}
#erpInventory .erp-summary-card{
  position:relative;
  overflow:hidden;
  min-height:92px;
  padding:15px 16px;
  background:#fff;
  border:1px solid var(--dayo-line);
  border-radius:11px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
#erpInventory .erp-summary-card:after{
  content:"";
  position:absolute;
  right:-38px;
  top:-48px;
  width:110px;
  height:110px;
  border-radius:50%;
  background:rgba(8,127,125,.045);
}
#erpInventory .erp-summary-card span{font-size:11px;color:var(--dayo-muted)}
#erpInventory .erp-summary-card b{margin:7px 0 3px;font-size:20px;line-height:1.1;color:var(--dayo-text)}
#erpInventory .erp-summary-card small{font-size:10px;color:#8a9aa0}

#erpInventory .panel-head,
#erpOtherStock .panel-head,
#erpSuppliers .panel-head,
#erpPurchaseOrders .panel-head,
#erpPurchaseReceipts .panel-head{
  display:block;
}
#erpInventory .panel-head>div:first-child,
#erpOtherStock .panel-head>div:first-child,
#erpSuppliers .panel-head>div:first-child,
#erpPurchaseOrders .panel-head>div:first-child,
#erpPurchaseReceipts .panel-head>div:first-child{
  width:100%;
  min-width:0;
  margin-bottom:12px;
}
#erpInventory .product-filter-row,
#erpOtherStock .product-filter-row,
#erpInventoryReports .inventory-report-filters,
#erpSuppliers .product-filter-row,
#erpPurchaseOrders .product-filter-row,
#erpPurchaseReceipts .product-filter-row{
  width:100%;
  max-width:none;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px!important;
  align-items:center;
  justify-content:stretch;
  padding:11px 0 1px;
  margin:0;
  border-top:1px solid #e7eeee;
}
#erpInventoryReports .inventory-report-filters{
  padding:12px 0;
  margin-bottom:10px;
  border-bottom:1px solid #e7eeee;
}
#erpInventory .product-filter-row input,
#erpInventory .product-filter-row select,
#erpOtherStock .product-filter-row input,
#erpOtherStock .product-filter-row select,
#erpInventoryReports .inventory-report-filters input,
#erpInventoryReports .inventory-report-filters select,
#erpSuppliers .product-filter-row input,
#erpSuppliers .product-filter-row select,
#erpPurchaseOrders .product-filter-row input,
#erpPurchaseOrders .product-filter-row select,
#erpPurchaseReceipts .product-filter-row input,
#erpPurchaseReceipts .product-filter-row select{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:34px!important;
}
#erpInventory .product-filter-row>.searchable-filter-wrap,
#erpOtherStock .product-filter-row>.searchable-filter-wrap,
#erpInventoryReports .inventory-report-filters>.searchable-filter-wrap,
#erpSuppliers .product-filter-row>.searchable-filter-wrap,
#erpPurchaseOrders .product-filter-row>.searchable-filter-wrap,
#erpPurchaseReceipts .product-filter-row>.searchable-filter-wrap{width:100%;min-width:0}
#erpInventory .product-filter-row>span,
#erpOtherStock .product-filter-row>span:not(.searchable-filter-wrap),
#erpPurchaseOrders .product-filter-row>span:not(.searchable-filter-wrap),
#erpPurchaseReceipts .product-filter-row>span:not(.searchable-filter-wrap),
#erpInventoryReports .inventory-report-filters>span:not(.searchable-filter-wrap){display:none}
#erpInventory #warehousePageKeyword,
#erpSuppliers #supplierPageKeyword,
#erpPurchaseOrders #poFilterKeyword,
#erpPurchaseReceipts #prFilterKeyword,
#erpInventoryReports #irKeyword{grid-column:span 2}
#erpInventoryReports .multi-select,
#erpInventoryReports .multi-select-btn{width:100%;min-width:0;max-width:none}
#erpInventoryReports .erp-small-tip{display:none!important}

/* V4.3.8.29 库存报表筛选区 */
#erpInventoryReports .inventory-report-filters{display:grid!important;grid-template-columns:160px 160px minmax(220px,1.15fr) minmax(190px,1fr) minmax(250px,1.35fr) 82px 82px!important;gap:10px!important;align-items:center!important}
#erpInventoryReports #irKeyword{grid-column:auto!important}
#erpInventoryReports .inventory-report-filters>input,
#erpInventoryReports .inventory-report-filters>select,
#erpInventoryReports .multi-select-btn,
#erpInventoryReports .inventory-report-filters>button{height:38px!important}
#erpInventoryReports .multi-select-menu{top:44px!important;min-width:330px!important;max-width:min(460px,70vw)!important;max-height:280px!important;padding:6px!important;z-index:120!important}
#erpInventoryReports .multi-select-menu label{min-height:36px!important;height:auto!important;padding:7px 10px!important;gap:10px!important;font-size:13px!important;line-height:1.35!important}
#erpInventoryReports .multi-select-menu input[type="checkbox"]{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;margin:0!important;padding:0!important;flex:0 0 16px!important}

@media(max-width:1100px){
  #erpInventory .erp-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #erpInventory .product-filter-row,#erpOtherStock .product-filter-row,#erpInventoryReports .inventory-report-filters,#erpSuppliers .product-filter-row,#erpPurchaseOrders .product-filter-row,#erpPurchaseReceipts .product-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1280px){#erpInventoryReports .inventory-report-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}#erpInventoryReports #irKeyword{grid-column:span 2!important}}
@media(max-width:620px){
  #erpInventory .erp-summary-grid,#erpInventory .product-filter-row,#erpOtherStock .product-filter-row,#erpInventoryReports .inventory-report-filters,#erpSuppliers .product-filter-row,#erpPurchaseOrders .product-filter-row,#erpPurchaseReceipts .product-filter-row{grid-template-columns:1fr}
  #erpInventory #warehousePageKeyword,#erpSuppliers #supplierPageKeyword,#erpPurchaseOrders #poFilterKeyword,#erpPurchaseReceipts #prFilterKeyword,#erpInventoryReports #irKeyword{grid-column:auto}
}

/* V4.3.8.29 所有旧式业务筛选区统一，覆盖委外生产等剩余页面 */
.erp-page .panel-head:has(>.product-filter-row){display:block!important}
.erp-page .panel-head:has(>.product-filter-row)>div:first-child{
  width:100%!important;
  min-width:0!important;
  margin-bottom:12px!important;
}
.erp-page .panel-head>.product-filter-row{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:11px 0 1px!important;
  border-top:1px solid #e7eeee;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:stretch!important;
}
.erp-page .panel-head>.product-filter-row input,
.erp-page .panel-head>.product-filter-row select{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:34px!important;
}
.erp-page .panel-head>.product-filter-row>.searchable-filter-wrap{
  width:100%!important;
  min-width:0!important;
}
.erp-page .panel-head>.product-filter-row>span:not(.searchable-filter-wrap){display:none!important}
.erp-page .panel-head>.product-filter-row input[placeholder*="单号"],
.erp-page .panel-head>.product-filter-row input[placeholder*="关键词"],
.erp-page .panel-head>.product-filter-row input[placeholder*="联系人"]{grid-column:span 2}

@media(max-width:1100px){
  .erp-page .panel-head>.product-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  .erp-page .panel-head>.product-filter-row{grid-template-columns:1fr!important}
  .erp-page .panel-head>.product-filter-row input[placeholder*="单号"],
  .erp-page .panel-head>.product-filter-row input[placeholder*="关键词"],
  .erp-page .panel-head>.product-filter-row input[placeholder*="联系人"]{grid-column:auto}
}
.role-action-hidden{display:none!important}

/* V4.3.8.29 供应商账户与领回料大界面 */
#modal .modal-card.supplier-editor-wide{width:min(1180px,96vw);max-width:1180px}
.supplier-account-editor-table{overflow-x:hidden}
.supplier-account-editor-table table{width:100%;table-layout:fixed;min-width:0!important}
.supplier-account-editor-table th:nth-child(1){width:58px}
.supplier-account-editor-table th:nth-child(2){width:24%}
.supplier-account-editor-table th:nth-child(3){width:32%}
.supplier-account-editor-table th:nth-child(4){width:18%}
.supplier-account-editor-table th:nth-child(6){width:72px}
.supplier-account-editor-table th,.supplier-account-editor-table td{padding:8px 6px}
.supplier-account-editor-table input:not([type="radio"]){width:100%;min-width:0}

#modal .modal-card.outsource-document-wide{
  width:calc(100vw - 20px)!important;
  max-width:1800px!important;
  height:calc(100vh - 16px)!important;
  max-height:calc(100vh - 16px)!important;
  display:flex;
  flex-direction:column;
}
#modal .outsource-document-wide #modalBody{flex:1;min-height:0;overflow-y:auto;padding:14px 18px}
#modal .outsource-document-wide .modal-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px}
#modal .outsource-document-wide .modal-grid label.wide{grid-column:span 2}
#modal .outsource-document-wide .modal-grid input,
#modal .outsource-document-wide .modal-grid select{height:36px}
#modal .outsource-document-wide .callout{padding:9px 12px;margin:10px 0}
#modal .outsource-document-wide .panel-head{padding:7px 0;margin:0}
#modal .outsource-document-wide .standardized-document-table{overflow-x:hidden!important;max-height:none!important}
#modal .outsource-document-wide .standardized-document-table table{width:100%!important;min-width:0!important;table-layout:fixed!important}
#modal .outsource-document-wide .standardized-document-table th,
#modal .outsource-document-wide .standardized-document-table td{padding:6px 5px!important;font-size:12px!important}
#modal .outsource-document-wide .standardized-document-table input,
#modal .outsource-document-wide .standardized-document-table select{width:100%!important;min-width:0!important;height:34px!important;padding:4px 6px!important;font-size:12px!important}
#modal .outsource-document-wide .standardized-document-table button{min-height:32px!important;padding:5px 8px!important;white-space:nowrap}
#modal .outsource-document-wide .modal-actions{margin-top:10px;padding-top:10px}
#modal .outsource-document-wide table:has(#osInputBody) th:nth-child(1){width:25%}
#modal .outsource-document-wide table:has(#osInputBody) th:nth-child(2){width:25%}
#modal .outsource-document-wide table:has(#osInputBody) th:nth-child(3),
#modal .outsource-document-wide table:has(#osInputBody) th:nth-child(4){width:16%}
#modal .outsource-document-wide table:has(#osInputBody) th:nth-child(5){width:11%}
#modal .outsource-document-wide table:has(#osInputBody) th:nth-child(6){width:7%}
#modal .outsource-document-wide table:has(#osReturnBody) th:nth-child(1){width:18%}
#modal .outsource-document-wide table:has(#osReturnBody) th:nth-child(2){width:14%}
#modal .outsource-document-wide table:has(#osReturnBody) th:nth-child(3),
#modal .outsource-document-wide table:has(#osReturnBody) th:nth-child(4){width:11%}
#modal .outsource-document-wide table:has(#osReturnBody) th:nth-child(5),
#modal .outsource-document-wide table:has(#osReturnBody) th:nth-child(6){width:10%}
#modal .outsource-document-wide table:has(#osReturnBody) th:nth-child(7){width:11%}
#modal .outsource-document-wide table:has(#osReturnBody) th:nth-child(8){width:9%}
#modal .outsource-document-wide table:has(#osReturnBody) th:nth-child(9){width:6%}
@media(max-width:900px){
  #modal .outsource-document-wide .modal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V4.3.8.29 委外领料/回料分栏与整单重量 */
.outsource-document-tabs{display:inline-flex;margin:0 0 12px;padding:5px;background:#eaf1f1;border-radius:12px;gap:3px}
.outsource-document-tabs button{border:0;background:transparent;color:#526a72;padding:10px 20px;border-radius:9px;font-weight:700;cursor:pointer}
.outsource-document-tabs button.active{background:#fff;color:#078c89;box-shadow:0 1px 3px rgba(25,65,70,.08)}
.outsource-document-filter{margin-bottom:12px!important}
.outsource-document-filter .panel-head{padding-bottom:10px!important}
.outsource-document-filter .product-filter-row{grid-template-columns:140px repeat(2,minmax(145px,.8fr)) minmax(190px,1fr) minmax(260px,1.4fr) 90px!important}
.outsource-document-panel{margin-top:12px!important}
#modal .outsource-document-wide .return-count-table table{min-width:0!important;table-layout:fixed!important}
#modal .outsource-document-wide .return-count-table th:nth-child(1){width:21%}
#modal .outsource-document-wide .return-count-table th:nth-child(2){width:17%}
#modal .outsource-document-wide .return-count-table th:nth-child(3){width:13%}
#modal .outsource-document-wide .return-count-table th:nth-child(4){width:8%}
#modal .outsource-document-wide .return-count-table th:nth-child(5){width:11%}
#modal .outsource-document-wide .return-count-table th:nth-child(6){width:14%}
#modal .outsource-document-wide .return-count-table th:nth-child(7){width:10%}
#modal .outsource-document-wide .return-count-table th:nth-child(8){width:6%}
.return-count-table .osr-unit-label{display:block;text-align:center;white-space:nowrap}
.outsource-document-wide .return-weight-label>span{display:block;white-space:nowrap;overflow:visible}
.outsource-document-wide .return-weight-label{white-space:nowrap}
@media(max-width:1100px){.outsource-document-filter .product-filter-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.outsource-document-filter .product-filter-row{grid-template-columns:1fr!important}.outsource-document-tabs{display:flex}.outsource-document-tabs button{flex:1;padding:9px 8px}}
#erpSettlementRecon .text-cell,.settlement-recon-detail-table .text-cell{text-align:left!important}
#erpSettlementRecon .money-cell,.settlement-recon-detail-table .money-cell{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
#erpSettlementRecon table>thead>tr>th:nth-child(n+3),
#erpSettlementRecon table>tbody>tr>td:nth-child(n+3),
#erpSettlementRecon table>tfoot>tr>td:nth-child(n+2){text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.settlement-related-docs{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:150px}
.settlement-money-link{border:0;background:transparent;color:inherit;font:inherit;padding:0;cursor:pointer;text-decoration:underline;text-decoration-color:#83bbb4;text-underline-offset:3px;white-space:nowrap}
.settlement-money-link:hover{color:#008b8b}

/* V4.3.8.29 登录界面：企业化、简洁且不展示任何默认凭证 */
.login-screen{padding:32px;background:linear-gradient(135deg,#062d3a 0%,#0a4654 46%,#0c6f70 100%)}
.login-screen:before{width:540px;height:540px;left:-250px;bottom:-310px;border-color:rgba(255,255,255,.08);box-shadow:0 0 0 76px rgba(255,255,255,.035),0 0 0 154px rgba(255,255,255,.02)}
.login-screen:after{width:430px;height:430px;right:-190px;top:-230px;border-color:rgba(255,255,255,.08);box-shadow:0 0 0 68px rgba(255,255,255,.025)}
.login-shell{width:min(1000px,calc(100vw - 64px));min-height:590px;grid-template-columns:1.04fr .96fr;border:1px solid rgba(255,255,255,.24);border-radius:28px;background:#fff;box-shadow:0 38px 100px rgba(0,18,25,.38);backdrop-filter:none}
.login-visual{padding:56px 54px 44px;background:linear-gradient(155deg,#083746 0%,#075461 58%,#07807d 100%)}
.login-visual:before{position:relative;z-index:3;width:250px;height:66px;margin:0;background:url('/static/assets/dayo-logo.svg?v=4.3.8.29') left center/contain no-repeat}
.login-visual:after{left:-22%;bottom:-120px;width:145%;height:240px;border-color:rgba(255,255,255,.14);background:rgba(0,31,42,.14);box-shadow:0 -38px 0 rgba(255,255,255,.035),0 -78px 0 rgba(255,255,255,.025)}
.login-ocean-glow{width:360px;height:360px;right:-90px;top:-130px;background:radial-gradient(circle,rgba(93,224,211,.23),rgba(93,224,211,0) 68%)}
.login-visual-copy{margin-top:94px}.login-visual-copy>span{font-size:10px;letter-spacing:2.6px;color:#a9dfda;opacity:1}
.login-visual-copy h1{font-size:38px;line-height:1.28;margin:16px 0 15px;letter-spacing:1.5px}.login-visual-copy p{max-width:360px;font-size:13px;color:rgba(235,250,248,.76)}
.login-feature-row{gap:10px}.login-feature-row span{padding:9px 13px;border-color:rgba(207,241,237,.2);background:rgba(255,255,255,.075);color:#d9efec}
.login-card{padding:66px 58px 50px;background:#fff}.login-form-brand{margin-bottom:50px}.login-mini-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#0a807c,#07505d);box-shadow:0 9px 22px rgba(8,102,104,.2)}
.login-form-brand b{font-size:17px;letter-spacing:1.2px;color:#103b43}.login-form-brand small{font-size:8px;letter-spacing:1.2px;color:#819a9d}
.login-card h2{font-size:28px;color:#153a42;margin-bottom:9px}.login-card>p{font-size:12px;color:#819496;margin-bottom:31px}
.login-card label{font-size:12px;color:#496368;margin-top:16px}.login-card label input{height:50px;border:1px solid #d5e2e2;border-radius:12px;background:#f8fbfb;font-size:14px;padding:0 16px}
.login-card label input:hover{border-color:#b5cdca}.login-card label input:focus{border-color:#168b87;background:#fff;box-shadow:0 0 0 4px rgba(22,139,135,.11)}
.login-btn{height:51px;margin-top:27px;border-radius:12px;background:linear-gradient(90deg,#086c6b,#0a8b83);box-shadow:0 12px 25px rgba(8,111,108,.22);font-size:14px}.login-btn:hover{filter:brightness(1.04);transform:translateY(-1px)}
.login-security{margin-top:18px;color:#7b9192;font-size:10px}.login-security i{background:#1dac81}.login-card #loginError{min-height:20px;margin-top:12px;font-size:11px;color:#c34f4a}
@media(max-width:760px){.login-screen{padding:18px}.login-shell{width:min(430px,calc(100vw - 36px));min-height:auto;grid-template-columns:1fr}.login-visual{min-height:176px;padding:27px 30px 23px}.login-visual:before{width:170px;height:45px}.login-visual-copy{margin-top:20px}.login-visual-copy h1{font-size:24px;margin:8px 0}.login-card{padding:34px 31px 30px}.login-form-brand{display:none}.login-card h2{font-size:25px}.login-card>p{margin-bottom:20px}}

/* V4.3.8.29 整仓批量库存盘点 */
#modal .stock-count-wide{width:min(1400px,calc(100vw - 28px));max-height:calc(100vh - 24px)}
.stock-count-head{grid-template-columns:repeat(4,minmax(0,1fr))}
.stock-count-table{max-height:calc(100vh - 340px);overflow:auto}
.stock-count-table th{position:sticky;top:0;z-index:2;background:#edf3f4}
.stock-count-table th:nth-child(n+4),.stock-count-table td:nth-child(n+4){text-align:right}
.stock-count-table .ct-actual{width:150px;text-align:right}
.stock-count-table .count-profit{color:#16815f;font-weight:700}.stock-count-table .count-loss{color:#d1534c;font-weight:700}.stock-count-table .count-even{color:#738486}

/* V4.3.8.29 EAN-13 自动校验位 */
.ean13-hint{display:block;margin-top:5px;color:#71878a;font-size:11px;line-height:1.35}
.ean13-hint.invalid{color:#c84f49}
