/* R4 P01 only. No business rules, global tokens or other page selectors. */
#erpProducts#erpProducts {
  --p01-blue:#1268f5!important; --p01-ink:#111b51!important; --p01-copy:#405c91!important;
  --p01-border:#e0effd!important; --p01-soft:#eff8ff!important;
}
@media(min-width:1000px){
  /* P01 changes only the main workspace while the shared R4 shell remains authoritative. */
  body:has(#erpProducts#erpProducts.active) .main{margin-left:220px!important;width:calc(100% - 220px)!important;height:100dvh!important;overflow:hidden!important;padding:0!important;background:#f1f8ff!important}
  body:has(#erpProducts#erpProducts.active) .topbar{height:48px!important;min-height:48px!important;position:relative!important;padding:0 22px!important;border-bottom:1px solid #deebfb!important}
  body:has(#erpProducts#erpProducts.active) .topbar-left>div{display:none!important}
  body:has(#erpProducts#erpProducts.active) .desktop-menu-button{display:block!important;color:#6284b1!important;background:transparent!important}
  body:has(#erpProducts#erpProducts.active) #workspaceTabs{position:absolute!important;top:0!important;left:286px!important;right:210px!important;height:48px!important;min-height:48px!important;padding:0!important;align-items:stretch!important;gap:10px!important;border:0!important;background:transparent!important;z-index:81!important}
  body:has(#erpProducts#erpProducts.active) #workspaceTabs .dayo-workspace-tab{height:48px!important;padding:0 20px!important;border-radius:5px 5px 0 0!important;font-size:15px!important;color:#4c6c9d!important}
  body:has(#erpProducts#erpProducts.active) #workspaceTabs .dayo-workspace-tab.active{background:linear-gradient(#e4f2ff,#eaf8ff)!important;color:#0076ff!important;border-bottom:3px solid #1680ff!important}
  body:has(#erpProducts#erpProducts.active) .dayo-account-copy small{display:none!important}
  body:has(#erpProducts#erpProducts.active) .top-avatar{width:34px!important;height:34px!important;background:#0876ff!important;color:#fff!important}
  body:has(#erpProducts#erpProducts.active) .top-user-name{color:#48669b!important;font-size:15px!important;font-weight:500!important}
  #erpProducts#erpProducts.active{box-sizing:border-box!important;height:calc(100dvh - 48px)!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:10px!important;padding:16px 22px 10px!important;overflow:hidden!important;background:linear-gradient(110deg,#f0f9ff,#f5fbff)!important;color:var(--p01-copy)!important}
  #erpProducts#erpProducts .purchase-ui-heading{height:42px!important;min-height:42px!important;flex:0 0 42px!important}
  #erpProducts#erpProducts .purchase-ui-heading h2{font-size:32px!important;line-height:42px!important;font-weight:750!important;color:var(--p01-ink)!important;letter-spacing:0!important}
  #erpProducts#erpProducts .product-approved-kpis{display:none!important}
  #erpProducts#erpProducts .product-kpi{position:relative!important;overflow:hidden!important;height:116px!important;min-height:116px!important;box-sizing:border-box!important;border:1px solid var(--p01-border)!important;border-radius:9px!important;box-shadow:0 2px 7px #d8eafa20!important;padding:14px!important;gap:20px!important;align-items:flex-start!important}
  #erpProducts#erpProducts .product-kpi>i{width:72px!important;height:66px!important;flex:0 0 72px!important;border-radius:8px!important;font-size:34px!important;align-self:flex-start!important}
  #erpProducts#erpProducts .product-kpi svg{width:38px!important;height:38px!important;fill:currentColor!important}
  #erpProducts#erpProducts .product-kpi.blue>i{background:#e8f4ff!important;color:#007bff!important}
  #erpProducts#erpProducts .product-kpi.green>i{background:#eafbf5!important;color:#06bd85!important}
  #erpProducts#erpProducts .product-kpi.orange>i{background:#fff7eb!important;color:#ff950c!important}
  #erpProducts#erpProducts .product-kpi.purple>i{background:#f6eeff!important;color:#9107f4!important}
  #erpProducts#erpProducts .product-kpi div{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-width:0!important;z-index:1!important}
  #erpProducts#erpProducts .product-kpi span{font-size:14px!important;line-height:22px!important;font-weight:650!important;color:var(--p01-ink)!important;white-space:nowrap!important}
  #erpProducts#erpProducts .product-kpi strong{font-size:26px!important;line-height:30px!important;color:var(--p01-ink)!important}
  #erpProducts#erpProducts .product-kpi small{font-size:12px!important;line-height:18px!important;color:#6f83a6!important;white-space:nowrap!important}
  #erpProducts#erpProducts .product-kpi:after{content:""!important;position:absolute!important;width:90px!important;height:65px!important;right:-24px!important;bottom:-26px!important;border-radius:50%!important;background:#85bdff55!important;filter:blur(12px)!important}
  #erpProducts#erpProducts .product-kpi.green:after{background:#66e7bb55!important}#erpProducts#erpProducts .product-kpi.orange:after{background:#ffb77055!important}#erpProducts#erpProducts .product-kpi.purple:after{background:#be80ff55!important}
  #erpProducts#erpProducts .product-approved-filter{height:auto!important;min-height:0!important;flex:0 0 auto!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:1fr .8fr 1.6fr!important;grid-template-rows:auto auto!important;column-gap:18px!important;row-gap:8px!important;padding:10px 16px!important;border:1px solid var(--p01-border)!important;border-radius:9px!important;box-shadow:none!important;overflow:visible!important}
  #erpProducts#erpProducts .product-approved-filter>label{min-width:0!important;gap:4px!important;align-self:start!important;font-size:14px!important;line-height:18px!important;color:var(--p01-ink)!important;font-weight:650!important}
  #erpProducts#erpProducts .product-approved-filter input,#erpProducts#erpProducts .product-approved-filter select{box-sizing:border-box!important;height:38px!important;width:100%!important;min-width:0!important;border:1px solid #d3e3f7!important;border-radius:6px!important;color:#344e85!important;font-size:14px!important;padding:0 14px!important;background:#fff!important}
  #erpProducts#erpProducts .product-approved-filter input::placeholder{color:#94a8c9!important}
  #erpProducts#erpProducts .product-approved-filter :is(input,select):focus-visible{outline:2px solid #83baff!important;outline-offset:1px!important;box-shadow:0 0 0 3px #e2f0ff!important}
  #erpProducts#erpProducts .p01-filter-bottom{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;min-width:0!important;min-height:36px!important}
  #erpProducts#erpProducts .purchase-ui-filter-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:8px!important;margin-left:auto!important;min-width:0!important}
  #erpProducts#erpProducts .purchase-ui-filter-actions button{height:36px!important;min-height:36px!important;border-radius:6px!important;font-size:13px!important;font-weight:600!important;padding:0 14px!important;white-space:nowrap!important;line-height:34px!important}
  #erpProducts#erpProducts .primary-btn{background:var(--p01-blue)!important;border:1px solid var(--p01-blue)!important;color:#fff!important;box-shadow:0 3px 8px #147aff15!important}
  #erpProducts#erpProducts .primary-btn:hover{background:#075bdf!important}
  #erpProducts#erpProducts .outline-btn{background:#fff!important;border:1px solid #a8cdff!important;color:#0674ff!important;box-shadow:none!important}
  #erpProducts#erpProducts .product-approved-tabs{height:48px!important;min-height:48px!important;flex:0 0 48px!important;align-items:stretch!important;border:1px solid var(--p01-border)!important;border-radius:8px!important;background:#fff!important;padding:0 7px!important;box-sizing:border-box!important}
  #erpProducts#erpProducts .product-approved-tabs button{position:relative!important;height:48px!important;border-bottom:3px solid transparent!important;padding:0 14px!important;font-size:16px!important;font-weight:650!important;color:var(--p01-ink)!important}
  #erpProducts#erpProducts .product-approved-tabs button.active{color:#0078ff!important;border-bottom-color:#0078ff!important}
  #erpProducts#erpProducts .product-approved-tabs b{font-size:13px!important;font-weight:500!important;min-width:35px!important;height:24px!important;padding:0 10px!important;margin-left:8px!important;background:#f1f4f9!important;color:#354b7a!important;border-radius:13px!important}
  #erpProducts#erpProducts .product-approved-tabs button.active b{background:#e4f3ff!important;color:#007aff!important}
  #erpProducts#erpProducts .product-approved-tabs button[data-product-ui-tab="active"] b{background:#e4fbf1!important;color:#05ac76!important}
  #erpProducts#erpProducts .product-approved-tabs button[data-product-ui-tab="low"] b{background:#fff3e4!important;color:#cf751c!important;font-size:10px!important}
  #erpProducts#erpProducts .purchase-ui-table-card{box-sizing:border-box!important;height:auto!important;flex:1 1 0!important;border:1px solid var(--p01-border)!important;border-radius:9px!important;padding:0 18px!important;background:#fff!important;box-shadow:none!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
  #erpProducts#erpProducts .purchase-ui-table-title{height:46px!important;min-height:46px!important;flex:0 0 46px!important;padding:0!important;border:0!important}
  #erpProducts#erpProducts .purchase-ui-table-title h3{font-size:21px!important;font-weight:700!important;color:var(--p01-ink)!important}
  #erpProducts#erpProducts .purchase-ui-table-scroll{box-sizing:border-box!important;height:auto!important;max-height:none!important;overscroll-behavior:contain!important;scrollbar-width:thin!important;scrollbar-color:#c8dcf4 transparent!important;min-height:0!important;flex:1 1 0!important;overflow:auto!important}
  #erpProducts#erpProducts .approved-product-table{width:100%!important;min-width:1100px!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;font-size:13px!important;color:var(--p01-copy)!important}
  #erpProducts#erpProducts .approved-product-table :is(th,td){box-sizing:border-box!important;height:34px!important;min-height:34px!important;padding:5px 10px!important;line-height:23px!important;white-space:nowrap!important;border-bottom:1px solid #e4effc!important;border-right:1px solid #e8f1fc!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #erpProducts#erpProducts .approved-product-table th{position:sticky!important;height:38px!important;background:linear-gradient(#f2f8ff,#eaf4ff)!important;color:var(--p01-ink)!important;font-weight:650!important;font-size:12px!important;top:0!important;z-index:2!important}
  #erpProducts#erpProducts .approved-product-table tbody tr:nth-child(even){background:#fbfdff!important}
  #erpProducts#erpProducts .approved-product-table tbody tr:hover{background:#eef7ff!important}
  #erpProducts#erpProducts .approved-product-table th:nth-child(1){width:3.5%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(2){width:7.5%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(3){width:7%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(4){width:12%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(5){width:8%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(6){width:10%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(7){width:6%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(8){width:6%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(9){width:10%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(10){width:7.5%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(11){width:8%!important}#erpProducts#erpProducts .approved-product-table th:nth-child(12){width:14.5%!important}
  #erpProducts#erpProducts .approved-product-table :is(th,td):last-child{position:sticky!important;right:0!important;background:#fff!important;border-right:0!important;z-index:1!important;box-shadow:-1px 0 #e4effc!important}
  #erpProducts#erpProducts .approved-product-table th:last-child{background:#edf6ff!important;z-index:3!important}
  #erpProducts#erpProducts .approved-product-table td b{font-weight:500!important}
  #erpProducts#erpProducts .approved-product-table .product-thumb{display:inline-block!important;width:20px!important;height:20px!important;min-width:20px!important;vertical-align:middle!important;margin-right:4px!important;border-radius:3px!important;object-fit:contain!important}
  #erpProducts#erpProducts .approved-product-table .product-thumb-empty{display:none!important}
  #erpProducts#erpProducts .approved-product-table .badge{font-size:10px!important;padding:0 3px!important;margin-right:3px!important;line-height:18px!important}
  #erpProducts#erpProducts input[type="checkbox"]{appearance:auto!important;width:17px!important;height:17px!important;min-height:17px!important;padding:0!important;margin:0!important;accent-color:#087bff!important;vertical-align:middle!important;border:1px solid #a6c2e5!important}
  #erpProducts#erpProducts .pp-status{padding:0 12px!important;line-height:22px!important;font-size:13px!important;color:#00a876!important;background:#e0fbf0!important;border-radius:12px!important}
  #erpProducts#erpProducts .pp-status:before{display:none!important}#erpProducts#erpProducts .pp-status.off{color:#78859e!important;background:#f1f4f8!important}
  #erpProducts#erpProducts .table-actions{justify-content:center!important;gap:0!important}
  #erpProducts#erpProducts .pp-link{font-size:12px!important;color:#0079ff!important;line-height:20px!important;padding:0 8px!important;border-radius:0!important}
  #erpProducts#erpProducts .pp-link+.pp-link{border-left:1px solid #dbe6f7!important}#erpProducts#erpProducts .pp-link.danger{color:#ef4e61!important}
  #erpProducts#erpProducts .purchase-ui-pagination{height:46px!important;min-height:46px!important;flex:0 0 46px!important;padding:0!important;gap:7px!important;border:0!important;color:#4d6798!important;font-size:13px!important;white-space:nowrap!important}
  #erpProducts#erpProducts .purchase-ui-pagination>span{margin-right:auto!important}
  #erpProducts#erpProducts .purchase-ui-pagination>span:after{content:"　 |　每页 50 条"!important;color:#4d6798!important}
  #erpProducts#erpProducts .purchase-ui-pagination button{height:34px!important;min-width:34px!important;border:1px solid #e2ecfa!important;background:#fff!important;color:#36598f!important;border-radius:6px!important;font-size:14px!important}
  #erpProducts#erpProducts .purchase-ui-pagination button.active{background:#087aff!important;border-color:#087aff!important;color:#fff!important;box-shadow:0 2px 5px #167aff22!important}
  #erpProducts#erpProducts .p01-more,#erpProducts#erpProducts .p01-columns{position:relative!important;z-index:10!important;flex:0 0 auto!important}
  #erpProducts#erpProducts :is(.p01-more,.p01-columns)>summary{list-style:none!important;cursor:pointer!important;border:1px solid #d3e4fb!important;border-radius:6px!important;padding:7px 13px!important;background:white!important;color:#385787!important;font-size:13px!important;font-weight:500!important;white-space:nowrap!important}
  #erpProducts#erpProducts :is(.p01-more,.p01-columns)>summary:focus-visible{outline:2px solid #1268f5!important;outline-offset:2px!important}
  #erpProducts#erpProducts .p01-popover{position:absolute!important;top:calc(100% + 5px)!important;left:0!important;width:230px!important;padding:14px!important;display:grid!important;gap:10px!important;background:white!important;border:1px solid #d6e6f8!important;box-shadow:0 8px 24px #244f8524!important;border-radius:8px!important;color:#395682!important}
  #erpProducts#erpProducts .p01-columns .p01-popover{left:auto!important;right:0!important;width:220px!important;max-height:330px!important;overflow:auto!important}
  #erpProducts#erpProducts .p01-popover label{display:flex!important;gap:8px!important;flex-direction:row!important;align-items:center!important;min-width:0!important;font-size:13px!important}
  #erpProducts#erpProducts .p01-more .p01-popover label{flex-direction:column!important;align-items:stretch!important}
  #erpProducts#erpProducts .p01-popover button{font-size:13px!important;height:35px!important;white-space:nowrap!important}
  #erpProducts#erpProducts .p01-popover small{font-size:11px!important;color:#7288aa!important}
}
/* Column preferences affect P01 only; locked identity/status/actions stay visible. */
#erpProducts#erpProducts:has(#p01-col-2:not(:checked)) .approved-product-table tr>:nth-child(2){display:none!important}
#erpProducts#erpProducts:has(#p01-col-4:not(:checked)) .approved-product-table tr>:nth-child(4){display:none!important}
#erpProducts#erpProducts:has(#p01-col-5:not(:checked)) .approved-product-table tr>:nth-child(5){display:none!important}
#erpProducts#erpProducts:has(#p01-col-6:not(:checked)) .approved-product-table tr>:nth-child(6){display:none!important}
#erpProducts#erpProducts:has(#p01-col-7:not(:checked)) .approved-product-table tr>:nth-child(7){display:none!important}
#erpProducts#erpProducts:has(#p01-col-8:not(:checked)) .approved-product-table tr>:nth-child(8){display:none!important}
#erpProducts#erpProducts:has(#p01-col-9:not(:checked)) .approved-product-table tr>:nth-child(9){display:none!important}
#erpProducts#erpProducts:has(#p01-col-10:not(:checked)) .approved-product-table tr>:nth-child(10){display:none!important}
@media(min-width:1000px) and (max-width:1350px){
 #erpProducts#erpProducts.active{padding:14px 16px 8px!important;gap:8px!important}
 #erpProducts#erpProducts .product-approved-filter{column-gap:14px!important;row-gap:8px!important}
 #erpProducts#erpProducts .product-approved-tabs button{font-size:14px!important;padding:0 12px!important}
 #erpProducts#erpProducts .purchase-ui-filter-actions button{padding:0 12px!important}
 #erpProducts#erpProducts .purchase-ui-table-card{padding:0 12px!important}
}

@media(min-width:1000px){
 #erpProducts#erpProducts .product-approved-tabs{margin:0!important}
 #erpProducts#erpProducts .purchase-ui-table-card{margin:0!important}
 #erpProducts#erpProducts .purchase-ui-table-scroll{padding:0!important;border:0!important;border-radius:0!important}
 #erpProducts#erpProducts .approved-product-table td{font-size:13px!important}
 #erpProducts#erpProducts .product-approved-filter>label{color:#111b51!important}
 #erpProducts#erpProducts .p01-columns .p01-popover{max-height:260px!important}
}
@media(min-width:1000px){
 #erpProducts#erpProducts .product-approved-filter{margin:0!important}
 #erpProducts#erpProducts .approved-product-table tbody tr{height:34px!important;min-height:34px!important;max-height:34px!important}
 #erpProducts#erpProducts .approved-product-table td{color:#405c91!important}
 #erpProducts#erpProducts .purchase-ui-pagination{margin:0!important;flex-wrap:nowrap!important;justify-content:flex-end!important}
 #erpProducts#erpProducts .purchase-ui-filter-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:88px!important;padding:0 14px!important}
 #erpProducts#erpProducts .purchase-ui-filter-actions button:nth-child(3){min-width:118px!important}
 #erpProducts#erpProducts .purchase-ui-filter-actions button:nth-child(4){min-width:142px!important}
 #erpProducts#erpProducts .purchase-ui-filter-actions button:last-child{min-width:116px!important}
 #erpProducts#erpProducts .purchase-ui-filter-actions svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;flex-shrink:0!important}
 #erpProducts#erpProducts:not(:has(#p01-showtypes:checked)) .approved-product-table .badge{display:none!important}
}
@media(min-width:1351px){
 #erpProducts#erpProducts.active{padding:16px 23px 10px 21px!important}
}
@media(min-width:1000px){
 #erpProducts#erpProducts .approved-product-table :is(th,td){text-align:left!important}
 #erpProducts#erpProducts .approved-product-table td{font-size:14px!important}
 #erpProducts#erpProducts .approved-product-table .num{text-align:right!important}
 #erpProducts#erpProducts .approved-product-table :is(th,td):is(:nth-child(1),:nth-child(7),:nth-child(8),:nth-child(11),:last-child){text-align:center!important}
}
