/* DAYO ERP · Product Center final approved UI · 2026-10-18
   Scoped to product list and product workspaces. Presentation only. */

:root{
  --pc-primary:#1268f5;
  --pc-primary-hover:#075bdf;
  --pc-page:#f2f8ff;
  --pc-card:#fff;
  --pc-head:#f2f7fd;
  --pc-border:#dce8f6;
  --pc-text:#172452;
  --pc-copy:#405c82;
  --pc-muted:#7187a6;
  --pc-success:#06a86f;
  --pc-warning:#ef8b17;
  --pc-danger:#ef4e61;
}

.pc-global-search{display:none}

body.dayo-batch2-layout:has(#erpProducts.active) .pc-global-search,
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) .pc-global-search{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:7px;
  width:min(320px,28vw);
  height:32px;
  margin-left:auto;
  padding:0 10px;
  border:1px solid #d8e4f1;
  border-radius:7px;
  background:#f5f8fc;
  color:#7187a6;
}
.pc-global-search input{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:30px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--pc-copy);
  font-size:14px;
}
.pc-global-search input::placeholder{color:#8295ad}

@media (min-width:1000px){
  body.dayo-batch2-layout:has(#erpProducts#erpProducts.active) .main,
  body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) .main{
    box-sizing:border-box!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scrollbar-gutter:stable!important;
    background:var(--pc-page)!important;
  }

  body.dayo-batch2-layout:has(#erpProducts#erpProducts.active) #workspaceTabs#workspaceTabs#workspaceTabs,
  body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #workspaceTabs#workspaceTabs#workspaceTabs{
    position:static!important;
    justify-content:flex-start!important;
    margin:0!important;
    padding-left:22px!important;
  }

  body.dayo-batch2-layout #erpProducts#erpProducts.active{
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    min-height:calc(100dvh - 85px)!important;
    padding:12px 16px 18px!important;
    overflow:visible!important;
    background:var(--pc-page)!important;
    color:var(--pc-copy)!important;
    font-size:14px!important;
  }

  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-heading{
    display:flex!important;
    height:auto!important;
    min-height:32px!important;
    margin:0 0 8px!important;
    align-items:center!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-heading>div{display:flex!important;align-items:baseline!important;gap:12px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-heading h2{margin:0!important;font-size:14px!important;line-height:24px!important;font-weight:700!important;color:var(--pc-text)!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-heading p{margin:0!important;font-size:14px!important;line-height:22px!important;color:var(--pc-muted)!important}

  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-filter{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:150px 112px minmax(220px,1fr) auto!important;
    grid-template-rows:auto!important;
    align-items:end!important;
    gap:8px!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0 0 8px!important;
    padding:10px 12px!important;
    overflow:visible!important;
    border:1px solid var(--pc-border)!important;
    border-radius:8px!important;
    background:var(--pc-card)!important;
    box-shadow:none!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-filter>label{
    display:flex!important;
    flex-direction:column!important;
    gap:4px!important;
    min-width:0!important;
    margin:0!important;
    color:var(--pc-text)!important;
    font-size:14px!important;
    line-height:18px!important;
    font-weight:600!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-filter :is(input:not([type=checkbox]),select){
    box-sizing:border-box!important;
    width:100%!important;
    height:32px!important;
    min-height:32px!important;
    min-width:0!important;
    padding:0 9px!important;
    border:1px solid #cfdeef!important;
    border-radius:6px!important;
    background:#fff!important;
    color:var(--pc-copy)!important;
    font-size:14px!important;
    line-height:30px!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-filter-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    min-width:0!important;
    margin:0!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-filter-actions button{
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    width:auto!important;
    min-width:0!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 10px!important;
    border-radius:6px!important;
    font-size:14px!important;
    line-height:30px!important;
    white-space:nowrap!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-filter-actions svg{width:15px!important;height:15px!important;flex:none!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}

  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-tabs{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:stretch!important;
    height:36px!important;
    min-height:36px!important;
    margin:0 0 8px!important;
    padding:0 6px!important;
    border:1px solid var(--pc-border)!important;
    border-radius:8px!important;
    background:#fff!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-tabs button{
    box-sizing:border-box!important;
    height:35px!important;
    padding:0 12px!important;
    border:0!important;
    border-bottom:2px solid transparent!important;
    background:transparent!important;
    color:#526d93!important;
    font-size:14px!important;
    font-weight:500!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-tabs button.active{color:var(--pc-primary)!important;border-bottom-color:var(--pc-primary)!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-tabs b{display:inline-grid!important;place-items:center!important;height:20px!important;min-width:22px!important;margin-left:4px!important;padding:0 6px!important;border-radius:10px!important;background:#eef3f9!important;color:#617895!important;font-size:12px!important;font-weight:500!important}

  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-table-card{
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0 10px 0!important;
    overflow:visible!important;
    border:1px solid var(--pc-border)!important;
    border-radius:8px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-table-title{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 2px!important;
    border:0!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-table-title h3{margin:0!important;color:var(--pc-text)!important;font-size:14px!important;font-weight:600!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-table-scroll{
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    border:1px solid #e3edf8!important;
    border-radius:6px!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table{
    width:100%!important;
    min-width:920px!important;
    table-layout:fixed!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    color:var(--pc-copy)!important;
    font-size:14px!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table :is(th,td){
    box-sizing:border-box!important;
    height:36px!important;
    min-height:36px!important;
    max-height:none!important;
    padding:3px 7px!important;
    border-right:1px solid #e8f0f9!important;
    border-bottom:1px solid #e4edf7!important;
    color:var(--pc-copy)!important;
    font-size:14px!important;
    line-height:24px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th{
    position:static!important;
    height:36px!important;
    background:var(--pc-head)!important;
    color:var(--pc-text)!important;
    font-weight:600!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th{width:auto!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .pc-col-check{width:34px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .pc-col-code{width:104px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .pc-col-name{width:200px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .pc-col-category{width:112px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .pc-col-unit{width:72px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .pc-col-price{width:94px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .pc-col-stock{width:88px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .pc-col-status{width:72px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .pc-col-actions{width:160px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th:nth-child(1){width:34px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th:nth-child(2){width:104px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th:nth-child(3){width:200px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th:nth-child(4){width:112px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th:nth-child(5){width:72px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th:nth-child(6){width:94px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th:nth-child(7){width:88px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th:nth-child(8){width:72px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th:nth-child(9){width:160px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table :is(th,td):last-child{position:static!important;right:auto!important;background:inherit!important;box-shadow:none!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table tbody tr:nth-child(even){background:#fbfdff!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table tbody tr:hover{background:#eef6ff!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .num{text-align:right!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table :is(th,td):is(:nth-child(1),:nth-child(5),:nth-child(8)){text-align:center!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .product-thumb{width:24px!important;height:24px!important;min-width:24px!important;margin:0!important;border-radius:4px!important;object-fit:contain!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table .product-thumb-empty{display:grid!important;place-items:center!important;font-size:9px!important;color:#8ca0bc!important;background:#f1f5fa!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .pc-product-name{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .pc-product-name>span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .table-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;overflow:visible!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .pp-link{padding:0 7px!important;font-size:14px!important;line-height:24px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .pp-link+.pp-link{border-left:1px solid #dbe5f2!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .pp-status{height:26px!important;padding:0 9px!important;font-size:14px!important;line-height:26px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-pagination{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:wrap!important;
    gap:5px!important;
    width:100%!important;
    height:auto!important;
    min-height:44px!important;
    padding:6px 2px!important;
    border:0!important;
    color:#5f7696!important;
    font-size:14px!important;
  }
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-pagination>span{margin-right:auto!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-pagination>span:after{content:none!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-pagination button{box-sizing:border-box!important;min-width:32px!important;height:32px!important;border:1px solid #d6e2f1!important;border-radius:6px!important;background:#fff!important;color:#45638c!important;font-size:14px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-pagination button.active{border-color:var(--pc-primary)!important;background:var(--pc-primary)!important;color:#fff!important}
}

.pc-column-settings{position:relative;z-index:20}
.pc-column-settings>summary{list-style:none;cursor:pointer;height:30px;box-sizing:border-box;padding:4px 10px;border:1px solid #cbdced;border-radius:6px;background:#fff;color:#3d5d87;font-size:14px;line-height:20px}
.pc-column-settings>div{position:absolute;top:35px;right:0;width:190px;padding:12px;display:grid;gap:8px;border:1px solid var(--pc-border);border-radius:8px;background:#fff;box-shadow:0 10px 28px rgba(32,66,105,.16)}
.pc-column-settings>div>b{color:var(--pc-text);font-size:14px}.pc-column-settings label{display:flex;align-items:center;gap:7px;color:var(--pc-copy);font-size:14px}.pc-column-settings input{width:16px;height:16px;min-height:16px}.pc-column-settings small{color:var(--pc-muted);font-size:12px;line-height:18px}

/* Product workspaces */
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace.product-center-workspace.active{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  min-height:calc(100dvh - 85px)!important;
  padding:0!important;
  overflow:visible!important;
  background:var(--pc-page)!important;
  color:var(--pc-copy)!important;
  font-size:14px!important;
}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) .main>.batch2-workspace-page.active{height:auto!important;max-height:none!important;min-height:calc(100dvh - 85px)!important;overflow:visible!important}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pc-work-head{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  height:48px!important;
  min-height:48px!important;
  padding:7px 16px!important;
  border-bottom:1px solid var(--pc-border)!important;
  background:var(--pc-page)!important;
}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pc-work-head h2{margin:0!important;color:var(--pc-text)!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pp-back{box-sizing:border-box!important;width:32px!important;height:32px!important;border:1px solid #cadced!important;border-radius:6px!important;background:#fff!important;color:#365a88!important;font-size:20px!important;line-height:28px!important}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pc-status{margin-left:auto!important}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pc-work-scroll{
  box-sizing:border-box!important;
  display:block!important;
  flex:none!important;
  width:100%!important;
  min-height:0!important;
  padding:0 16px 76px!important;
  overflow:visible!important;
}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pc-work-footer{
  position:sticky!important;
  z-index:30!important;
  bottom:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  margin-top:-52px!important;
  padding:9px 16px!important;
  border-top:1px solid var(--pc-border)!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 -3px 12px rgba(38,77,118,.06)!important;
}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace :is(button,.primary-btn,.outline-btn,.danger-btn,input:not([type=checkbox]):not([type=radio]):not([type=file]),select){box-sizing:border-box;height:32px;min-height:32px;font-size:14px;line-height:30px}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace :is(.primary-btn,.outline-btn,.danger-btn){display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:6px;white-space:nowrap}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .primary-btn{border:1px solid var(--pc-primary);background:var(--pc-primary);color:#fff}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .primary-btn:hover{background:var(--pc-primary-hover)}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .outline-btn{border:1px solid #b8d3f2;background:#fff;color:var(--pc-primary)}
body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .danger-btn{border:1px solid #ffc0c8;background:#fff;color:var(--pc-danger)}

.pc-status{box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:13px;background:#e4f8ef;color:var(--pc-success);font-size:14px;line-height:26px;white-space:nowrap}
.pc-status i{width:6px;height:6px;border-radius:50%;background:currentColor}.pc-status.off{background:#edf1f6;color:#77859a}
.pc-card{box-sizing:border-box;margin:10px 0 0;border:1px solid var(--pc-border);border-radius:8px;background:#fff;box-shadow:none;overflow:visible}
.pc-card-head{box-sizing:border-box;min-height:42px;padding:8px 12px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e6eef7}.pc-card-head>div{min-width:0}.pc-card-head h3{margin:0;color:var(--pc-text);font-size:14px;line-height:22px;font-weight:600}.pc-card-head p{margin:2px 0 0;color:var(--pc-muted);font-size:14px;line-height:20px}.pc-card-head-actions{justify-content:space-between}.pc-card-body{padding:12px}
.pc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px}.pc-form-grid label{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;gap:8px;min-width:0;color:var(--pc-text);font-size:14px;font-weight:500}.pc-form-grid label>span{min-width:0}.pc-form-grid label.wide{grid-column:1/-1}.pc-form-grid :is(input:not([type=hidden]),select,textarea){box-sizing:border-box;width:100%;min-width:0;border:1px solid #ccdaea;border-radius:6px;background:#fff;color:var(--pc-copy);padding:0 9px;font-size:14px}.pc-form-grid textarea{min-height:58px;padding:7px 9px;line-height:20px;resize:vertical}.pc-form-grid input:focus,.pc-form-grid select:focus,.pc-form-grid textarea:focus{outline:2px solid rgba(18,104,245,.16);border-color:#7fb0ef}.pp-required{color:#e54858}
.pc-extension-card{margin-bottom:0}.pc-extension-card .pc-card-head p{margin-left:4px}.pc-extension-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px}.pc-extension-grid>button{box-sizing:border-box;display:grid;grid-template-columns:38px minmax(0,1fr) 16px;align-items:center;gap:9px;width:100%;height:72px!important;min-height:72px!important;padding:8px 10px;border:1px solid #d8e6f5;border-radius:7px;background:#fff;color:var(--pc-copy);text-align:left;cursor:pointer}.pc-extension-grid>button:hover{border-color:#7eb2f8;background:#f7fbff}.pc-extension-grid i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:20px;font-style:normal}.pc-extension-grid i.green{background:#e4f8ee;color:#10a868}.pc-extension-grid i.blue{background:#e8f2ff;color:#1268f5}.pc-extension-grid i.orange{background:#fff1e5;color:#ee7b1a}.pc-extension-grid i.rose{background:#ffeaf0;color:#e84268}.pc-extension-grid b,.pc-extension-grid small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc-extension-grid b{color:var(--pc-text);font-size:14px;line-height:22px}.pc-extension-grid small{color:var(--pc-muted);font-size:12px;line-height:18px}.pc-extension-grid em{color:var(--pc-primary);font-size:24px;font-style:normal;text-align:center}
.pc-product-summary{box-sizing:border-box;display:grid;grid-template-columns:70px 150px minmax(220px,1.4fr) 120px 130px;align-items:center;gap:12px;min-height:70px;margin-top:10px;padding:8px 14px;border:1px solid var(--pc-border);border-radius:8px;background:#fff}.pc-product-summary>div{min-width:0;padding-right:10px;border-right:1px solid #e4edf7}.pc-product-summary>div:last-child{border-right:0}.pc-product-summary span{display:block;color:var(--pc-muted);font-size:12px;line-height:18px}.pc-product-summary b{display:block;overflow:hidden;color:var(--pc-text);font-size:14px;line-height:22px;white-space:nowrap;text-overflow:ellipsis}.pc-summary-thumb{display:grid;place-items:center!important;padding:0!important}.pc-summary-thumb .product-thumb{width:50px;height:50px;object-fit:contain}.pc-summary-thumb .product-thumb-empty{display:grid;place-items:center;border-radius:6px;background:#f0f5fb;color:#8295ad;font-size:11px}
.pc-extension-tabs{box-sizing:border-box!important;display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;gap:0!important;width:100%!important;height:40px!important;min-height:40px!important;margin:8px 0 0!important;padding:0!important;overflow:visible!important;border:0!important;border-bottom:1px solid #d7e5f4!important;background:transparent!important}.pc-extension-tabs button{position:relative!important;display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:none!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 16px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#526c91!important;font-size:14px!important;line-height:40px!important;transform:none!important}.pc-extension-tabs button.active{border:0!important;background:transparent!important;color:var(--pc-primary)!important;font-weight:600!important;box-shadow:none!important}.pc-extension-tabs button.active:after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:2px;background:var(--pc-primary)}
.pc-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px}.pc-image-card{min-width:0;border:1px solid #dce7f3;border-radius:7px;background:#fff;overflow:hidden}.pc-image-stage{position:relative;display:grid;place-items:center;height:142px;padding:8px;background:#f7faff}.pc-image-stage img{width:100%;height:100%;object-fit:contain;cursor:zoom-in}.pc-image-stage>span{position:absolute;z-index:1;left:7px;top:7px;height:22px;padding:0 8px;border-radius:11px;background:#e7eef8;color:#5e7494;font-size:12px;line-height:22px}.pc-image-stage>span.primary{background:var(--pc-primary);color:#fff}.pc-image-meta{padding:7px 9px}.pc-image-meta b,.pc-image-meta small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pc-image-meta b{color:var(--pc-text);font-size:14px;line-height:20px}.pc-image-meta small{color:var(--pc-muted);font-size:12px;line-height:18px}.pc-image-actions{display:flex;gap:4px;padding:0 8px 8px}.pc-image-actions button{flex:1;padding:0 6px!important}.pc-image-add{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:222px;border:1px dashed #88b8f5;border-radius:7px;background:#f8fbff;color:var(--pc-primary);font-size:30px;cursor:pointer}.pc-image-add span{margin-top:4px;font-size:14px}.pc-image-add input,.pc-upload-button input{display:none}.pc-upload-button{cursor:pointer}.pc-empty{grid-column:1/-1;padding:46px;text-align:center;color:var(--pc-muted);font-size:14px}
.pc-unit-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px}.pc-unit-summary label{display:grid;gap:5px;color:var(--pc-muted);font-size:14px}.pc-unit-summary output{box-sizing:border-box;height:32px;padding:0 10px;border:1px solid #d5e1ef;border-radius:6px;background:#fbfdff;color:var(--pc-text);font-size:14px;line-height:30px}.pc-inline-actions{display:flex;justify-content:flex-end;padding:0 12px 12px}.pc-unit-form,.pc-packaging-form{grid-template-columns:repeat(3,minmax(0,1fr))}.pc-unit-form label,.pc-packaging-form label{grid-template-columns:110px minmax(0,1fr)}
.pc-table-wrap{width:100%;overflow-x:auto;overflow-y:visible}.pc-table{width:100%;min-width:900px;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;color:var(--pc-copy);font-size:14px}.pc-table th,.pc-table td{box-sizing:border-box;height:36px;padding:4px 7px;border-right:1px solid #e6eef7;border-bottom:1px solid #e2ebf5;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc-table th{height:36px;background:var(--pc-head);color:var(--pc-text);font-weight:600;text-align:left}.pc-table td.num,.pc-table th.num{text-align:right}.pc-table tbody tr:nth-child(even){background:#fbfdff}.pc-table tbody tr:hover{background:#eff6ff}.pc-table input{box-sizing:border-box;width:100%;height:30px!important;min-height:30px!important;padding:0 8px;border:1px solid #cbdbea;border-radius:5px;color:var(--pc-copy);font-size:14px}.pc-text-actions{display:flex;gap:10px}.pc-text-actions button,.pc-row-save{height:auto!important;min-height:0!important;padding:0!important;border:0;background:transparent;color:var(--pc-primary);font-size:14px;line-height:24px}.pc-text-actions button.danger{color:var(--pc-danger)}.pc-cell-sub{display:block;overflow:hidden;color:var(--pc-muted);font-size:12px;line-height:14px;text-overflow:ellipsis}.pc-empty-cell{height:70px!important;text-align:center;color:var(--pc-muted)}
.pc-stock-summaries{display:flex;gap:8px}.pc-stock-summaries>div{box-sizing:border-box;min-width:170px;height:44px;padding:4px 10px;border:1px solid #cfe0f3;border-radius:7px;background:#f8fbff}.pc-stock-summaries span,.pc-stock-summaries b{display:block}.pc-stock-summaries span{color:var(--pc-muted);font-size:12px;line-height:16px}.pc-stock-summaries b{color:var(--pc-primary);font-size:14px;line-height:20px}.pc-warning{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:13px;font-size:14px;line-height:26px}.pc-warning i{width:6px;height:6px;border-radius:50%;background:currentColor}.pc-warning.success{background:#e4f8ef;color:var(--pc-success)}.pc-warning.warning{background:#fff2e2;color:var(--pc-warning)}.pc-warning.danger{background:#ffe9ed;color:var(--pc-danger)}.pc-safety-table th:nth-child(1){width:24%}.pc-safety-table th:nth-child(2){width:14%}.pc-safety-table th:nth-child(3){width:20%}.pc-safety-table th:nth-child(4){width:14%}.pc-safety-table th:nth-child(5){width:18%}.pc-safety-table th:nth-child(6){width:10%}

@media (min-width:1000px) and (max-width:1350px){
  body.dayo-batch2-layout #erpProducts#erpProducts.active{padding:10px 12px 16px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-filter{grid-template-columns:150px 112px minmax(220px,1fr)!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-filter-actions{grid-column:1/-1!important}
  .pc-image-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pc-product-summary{grid-template-columns:64px 126px minmax(200px,1.3fr) 94px 108px}
  .pc-unit-form,.pc-packaging-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:999px){
  .pc-form-grid,.pc-unit-form,.pc-packaging-form{grid-template-columns:1fr}.pc-form-grid label.wide{grid-column:auto}.pc-extension-grid,.pc-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pc-product-summary{grid-template-columns:60px 1fr}.pc-product-summary>div{border-right:0}.pc-unit-summary{grid-template-columns:1fr}.pc-stock-summaries{flex-wrap:wrap}
}

/* Product Center visual closure R2. Global shell remains owned by production. */
@media (min-width:1000px){
  body.dayo-batch2-layout #erpProducts#erpProducts.active{padding:16px 16px 24px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-heading{min-height:48px!important;margin:0 0 12px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-heading>div{gap:16px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-heading h2{font-size:28px!important;line-height:40px!important;letter-spacing:-.4px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-filter{gap:12px!important;margin-bottom:12px!important;padding:16px 18px!important;border-radius:12px!important;box-shadow:0 4px 16px rgba(36,78,126,.04)!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-filter>label{gap:7px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-filter :is(input:not([type=checkbox]),select){height:38px!important;min-height:38px!important;padding:0 12px!important;border-radius:7px!important;line-height:36px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-filter-actions{gap:8px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-filter-actions button{height:38px!important;min-height:38px!important;padding:0 14px!important;border-radius:7px!important;line-height:36px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-tabs{height:48px!important;min-height:48px!important;margin-bottom:12px!important;padding:0 6px!important;border:0!important;border-bottom:1px solid var(--pc-border)!important;border-radius:0!important;background:transparent!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .product-approved-tabs button{height:48px!important;padding:0 16px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-table-card{padding:0 14px!important;border-radius:12px!important;box-shadow:0 5px 20px rgba(36,78,126,.05)!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-table-title{height:48px!important;min-height:48px!important;padding:0 4px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-table-title h3{font-size:18px!important;font-weight:700!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-table-scroll{border-radius:8px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table :is(th,td){height:38px!important;min-height:38px!important;line-height:26px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .approved-product-table th{height:38px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-pagination{min-height:54px!important;padding:10px 2px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts .purchase-ui-pagination button{min-width:36px!important;height:36px!important;border-radius:7px!important}

  body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pc-work-head{height:64px!important;min-height:64px!important;padding:10px 16px!important}
  body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pc-work-head h2{font-size:26px!important;line-height:36px!important;letter-spacing:-.35px!important}
  body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pc-work-scroll{padding:0 16px 92px!important}
  body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace .pc-work-footer{height:64px!important;min-height:64px!important;margin-top:-64px!important;padding:11px 16px!important}
  body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace :is(button,.primary-btn,.outline-btn,.danger-btn,input:not([type=checkbox]):not([type=radio]):not([type=file]),select){height:40px;min-height:40px;line-height:38px}
  body.dayo-batch2-layout:has(#purchaseUiWorkspace.product-center-workspace.active) #purchaseUiWorkspace :is(.primary-btn,.outline-btn,.danger-btn){padding:0 16px;border-radius:7px}
}

.pc-card{margin-top:16px;border-radius:12px;box-shadow:0 5px 20px rgba(36,78,126,.05)}
.pc-card-head{min-height:56px;padding:12px 18px;gap:12px}.pc-card-head h3{font-size:18px;line-height:26px;font-weight:700}.pc-card-head p{margin-top:3px}.pc-card-body{padding:18px 20px}
.pc-form-grid{gap:16px 26px}.pc-form-grid label{grid-template-columns:132px minmax(0,1fr);gap:12px;font-weight:600}.pc-form-grid :is(input:not([type=hidden]),select,textarea){padding:0 12px;border-radius:7px}.pc-form-grid textarea{min-height:70px;padding:9px 12px;line-height:22px}
.pc-extension-grid{gap:16px;padding:18px}.pc-extension-grid>button{grid-template-columns:48px minmax(0,1fr) 18px;gap:12px;height:88px!important;min-height:88px!important;padding:12px 14px;border-radius:9px}.pc-extension-grid i{width:44px;height:44px;border-radius:10px;font-size:24px}.pc-extension-grid b{font-size:16px;line-height:24px}.pc-extension-grid small{font-size:13px;line-height:20px}
.pc-product-summary{grid-template-columns:84px 170px minmax(240px,1.4fr) 130px 140px;gap:18px;min-height:88px;margin-top:16px;padding:12px 18px;border-radius:12px;box-shadow:0 5px 20px rgba(36,78,126,.04)}
.pc-summary-thumb .product-thumb{width:64px;height:64px}.pc-product-summary span{font-size:13px}.pc-product-summary b{font-size:16px;line-height:24px}
.pc-extension-tabs{height:52px!important;min-height:52px!important;margin-top:10px!important;padding:0 4px!important}.pc-extension-tabs button{height:52px!important;min-height:52px!important;padding:0 18px!important;font-size:15px!important;line-height:52px!important}
.pc-image-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px}.pc-image-card{border-radius:9px;box-shadow:0 3px 12px rgba(36,78,126,.04)}.pc-image-stage{height:178px;padding:10px}.pc-image-meta{padding:9px 11px}.pc-image-actions{gap:6px;padding:0 10px 10px}.pc-image-add{min-height:272px;border-radius:9px}.pc-image-list-section{margin:0 18px 18px;border:1px solid var(--pc-border);border-radius:9px;overflow:hidden}.pc-image-list-head{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 14px;border-bottom:1px solid var(--pc-border)}.pc-image-list-head h4{margin:0;color:var(--pc-text);font-size:16px}.pc-image-list-head span{color:var(--pc-muted);font-size:13px}.pc-image-list-thumb{width:44px;height:32px;object-fit:contain;border-radius:4px;background:#f4f8fd}.pc-image-order{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:6px;background:#edf4ff;color:var(--pc-primary);font-weight:700}
.pc-image-list-table{min-width:760px}.pc-image-list-table th:nth-child(1){width:80px}.pc-image-list-table th:nth-child(2){width:90px}.pc-image-list-table th:nth-child(4){width:120px}.pc-image-list-table th:nth-child(5){width:240px}
.pc-unit-summary{gap:16px;padding:18px}.pc-unit-summary label{gap:8px;font-weight:600}.pc-unit-summary output{height:40px;padding:0 12px;border-radius:7px;line-height:38px}.pc-inline-actions{padding:0 18px 18px}.pc-unit-form,.pc-packaging-form{gap:14px 22px;padding:18px 20px}.pc-table th,.pc-table td{height:40px;padding:6px 10px;line-height:26px}.pc-table th{height:40px}.pc-table input{height:32px!important;min-height:32px!important}.pc-work-note{margin:16px 0 0;padding:14px 18px;border:1px solid #d8e8fa;border-radius:10px;background:#f3f8ff;color:#47688f;font-size:14px;line-height:22px}
.pc-packaging-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.pc-basic-card :is(#pfBrand,#pfType,#pfUnit,#pfPurchasePrice,#pfBarcode,#pfLength,#pfWeight,#pfStatus){max-width:360px}
.pc-stock-summaries{gap:10px}.pc-stock-summaries>div{min-width:190px;height:58px;padding:7px 12px;border-radius:9px}.pc-stock-summaries span{font-size:13px;line-height:18px}.pc-stock-summaries b{font-size:20px;line-height:26px}.pc-warning{height:28px;padding:0 12px;border-radius:14px;line-height:28px}

@media (min-width:1500px){.pc-image-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (min-width:1000px) and (max-width:1350px){
  body.dayo-batch2-layout #erpProducts#erpProducts.active{padding:14px 12px 22px!important}
  .pc-product-summary{grid-template-columns:72px 136px minmax(210px,1fr) 96px 112px;gap:12px;padding:10px 14px}
  .pc-form-grid{gap:14px 18px}.pc-form-grid label{grid-template-columns:118px minmax(0,1fr);gap:9px}
  .pc-extension-grid{gap:10px;padding:14px}.pc-extension-grid>button{grid-template-columns:42px minmax(0,1fr) 14px;gap:9px;height:82px!important;min-height:82px!important;padding:10px}.pc-extension-grid i{width:38px;height:38px}
  .pc-image-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pc-unit-form,.pc-packaging-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
