/* PC product workbench only. Keep native filters, column settings and actions. */
.pc-layout .pc-page:has(> .product-toolbar-card) { --product-ink:#17324f; --product-line:#dce5ef; }
.pc-layout .pc-page > .product-toolbar-card { padding:14px 16px; margin-bottom:10px; border-color:var(--product-line); border-radius:10px; }
.pc-layout .product-toolbar-card .product-toolbar-head { display:flex!important; justify-content:space-between!important; width:100%; margin:0 0 10px; gap:12px; }
.pc-layout .product-toolbar-card .product-toolbar-title-wrap { display:flex; flex-wrap:wrap; gap:10px; align-items:baseline; }
.pc-layout .product-toolbar-card .product-toolbar-title { font-size:17px; line-height:26px; letter-spacing:.3px; }
.pc-layout .product-toolbar-card .product-toolbar-summary { color:#718096; line-height:20px; }
.pc-layout .product-toolbar-card .product-toolbar-main { display:flex!important; align-items:center; justify-content:flex-start!important; flex-wrap:wrap; gap:8px!important; width:100%; }
.pc-layout .product-toolbar-card .product-search-input { flex:0 1 280px; width:280px!important; min-width:180px; margin:0; height:34px; box-sizing:border-box; }
.pc-layout .product-toolbar-card .product-category-select { flex:0 0 166px; width:166px; }
.pc-layout .product-toolbar-card .product-mp-listing-filter { flex:0 0 190px; width:190px; }
.pc-layout .product-toolbar-card .pc-select { height:34px; min-height:34px; margin:0; padding:0 10px; border:1px solid #cdd9e7; border-radius:6px; background:#fff; font-size:13px; box-sizing:border-box; }
.pc-layout .product-toolbar-card .pc-btn { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:auto; min-width:64px; height:34px; min-height:34px; margin:0!important; padding:0 14px; border-radius:6px; font-size:13px; line-height:32px; box-sizing:border-box; box-shadow:none; }
.pc-layout .product-toolbar-card .pc-btn::after { border:0; }
.pc-layout .product-toolbar-card .pc-btn-primary { color:#fff; border:1px solid #215dac; background:#215dac; box-shadow:0 2px 4px #153f7420; }
.pc-layout .product-toolbar-card .pc-btn-primary:hover { background:#174e96; }
.pc-layout .product-toolbar-card .pc-btn-default { color:#365572; border:1px solid #cdd9e7; background:#fff; }
.pc-layout .product-toolbar-card .pc-btn-default:hover { color:#1f5eaa; border-color:#94b9e6; background:#f4f8fe; }
.pc-layout .product-toolbar-card .product-more-toggle { margin-left:0!important; min-width:112px; }
.pc-layout .product-toolbar-card .product-status-filter { height:34px; box-sizing:border-box; padding:2px; gap:2px; border-radius:7px; border-color:#d6e1ef; }
.pc-layout .product-toolbar-card .product-status-tab { min-width:53px; height:28px; min-height:28px; padding:0 10px; margin:0; font-size:13px; line-height:28px; border-radius:5px; }
.pc-layout .product-toolbar-card .product-selection-bar { margin-top:10px; padding:8px 10px; flex-wrap:wrap; gap:8px; }
.pc-layout .product-toolbar-card .product-selection-actions { flex-wrap:wrap; gap:6px; }
.pc-layout .product-toolbar-card .product-more-actions { margin-top:10px; padding:10px; gap:6px; }
.pc-layout .pc-page:has(> .product-toolbar-card) > .pc-card:not(.product-toolbar-card) { padding:10px 12px; border-radius:10px; border-color:var(--product-line); }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table-toolbar { padding:0 0 8px; min-height:30px; margin:0; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table-tool-btn { display:inline-flex; align-items:center; justify-content:center; gap:4px; height:28px; min-height:28px; padding:0 10px; margin:0; border:1px solid #d3dfed; border-radius:5px; background:#fff; color:#48617c; font-size:12px; line-height:26px; box-sizing:border-box; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table-tool-btn:hover { border-color:#8eb4e4; color:#205da8; background:#f5f9ff; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table-wrapper { overflow-x:auto; border-radius:7px; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table-settings-mask { z-index:1800; background:#17324f26; }
.pc-layout .pc-content:has(.product-toolbar-card):has(.pc-table-settings-mask) { z-index:10020!important; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table-settings { top:130px!important; right:24px!important; width:300px; max-width:calc(100vw - 100px); max-height:calc(100vh - 154px); display:flex; flex-direction:column; border-radius:9px; box-shadow:0 12px 38px #17324f2b; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table-settings-body { min-height:0; overflow-y:auto; }
/* Horizontal scrolling preserves readable columns when a user chooses many. */
.pc-layout .pc-page:has(> .product-toolbar-card) table.pc-table { table-layout:auto!important; min-width:1250px!important; font-size:13px; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table th { padding:8px 8px; height:34px; background:#f2f6fb; border-color:#e4ebf3; font-size:12px; color:#4b6380; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table td { padding:8px; vertical-align:middle; border-color:#e8eef5; line-height:1.45; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table tr:nth-child(even) td { background:#f9fbfd; }
.pc-layout .pc-page:has(> .product-toolbar-card) .pc-table tr:hover td { background:#f0f6ff; }
.pc-layout .pc-page:has(> .product-toolbar-card) th[data-cmh-header-key="image"] { min-width:76px; }
.pc-layout .pc-page:has(> .product-toolbar-card) th[data-cmh-header-key="productInfo"] { min-width:200px; }
.pc-layout .pc-page:has(> .product-toolbar-card) th[data-cmh-header-key="stockQty"] { min-width:84px; }
.pc-layout .pc-page:has(> .product-toolbar-card) th[data-cmh-header-key="mpAutoStatus"] { min-width:140px; }
.pc-layout .pc-page:has(> .product-toolbar-card) th[data-cmh-header-key="actions"] { min-width:166px; }
.pc-layout .pc-page:has(> .product-toolbar-card) th:is([data-cmh-header-key="cateringPriceOverview"],[data-cmh-header-key="purchasePrice"],[data-cmh-header-key="lastInboundCost"],[data-cmh-header-key="tradePrice"],[data-cmh-header-key="keyAccountPrice"],[data-cmh-header-key="cateringPrice"]) { min-width:118px; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-main-name { white-space:normal; font-size:14px; font-weight:650; line-height:20px; color:var(--product-ink); }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-main-meta { margin-top:3px; gap:5px; flex-wrap:wrap; line-height:17px; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-main-location { margin-top:3px; gap:4px; line-height:17px; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-thumb { width:38px; height:38px; border-radius:6px; object-fit:contain; background:#fff; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-image-buttons { display:flex; gap:6px; white-space:nowrap; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-image-edit { width:auto; min-width:0; height:18px; margin:0; padding:0; border:0; background:transparent; color:#526e8c; font-size:11px; line-height:18px; white-space:nowrap; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-image-add { color:#215dac; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-image-upload { margin:0; width:48px; height:34px; padding:0; border:1px dashed #bfcfe1; border-radius:5px; background:#f8fbff; color:#597490; font-size:11px; line-height:32px; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-stock-cell strong { font-size:15px; font-variant-numeric:tabular-nums; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-price-cell { gap:1px; line-height:18px; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-price-cell strong { color:#205da8; font-size:14px; white-space:nowrap; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-price-label { font-size:10px; color:#8794a5; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-price-aux { white-space:nowrap; color:#718096; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-sale-unit { display:inline-block; max-width:100%; padding:3px 6px; font-size:11px; line-height:17px; border-radius:5px; white-space:normal; }
.pc-layout .pc-page:has(> .product-toolbar-card) .product-price-completion { display:inline-block; padding:3px 6px; font-size:11px; line-height:17px; border-radius:5px; }
.pc-layout .pc-page:has(> .product-toolbar-card) td > span:has(> .pc-tag) > div { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin-top:3px!important; font-size:11px!important; line-height:17px!important; text-align:left; }
.pc-layout .pc-page:has(> .product-toolbar-card) td:has([data-action="mp-decoration"]) > span { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; white-space:normal!important; min-width:150px; max-width:190px; margin-left:auto; }
.pc-layout .pc-page:has(> .product-toolbar-card) td:has([data-action="mp-decoration"]) button { display:inline-flex; align-items:center; justify-content:center; width:100%; min-width:0; height:27px!important; min-height:27px!important; margin:0!important; padding:0 7px; border:1px solid #d7e2ef; border-radius:5px; background:#fff; color:#3f5b79; font-family:inherit; font-size:12px; line-height:25px; white-space:nowrap; cursor:pointer; box-sizing:border-box; }
.pc-layout .pc-page:has(> .product-toolbar-card) td:has([data-action="mp-decoration"]) button[data-action="edit"] { color:#205da8; background:#edf4ff; border-color:#c8dcf6; font-weight:600; }
.pc-layout .pc-page:has(> .product-toolbar-card) td:has([data-action="mp-decoration"]) button[data-action="mp-manual-up"] { color:#167457; background:#f0faf5; border-color:#cce8d9; }
.pc-layout .pc-page:has(> .product-toolbar-card) td:has([data-action="mp-decoration"]) button[data-action="mp-manual-down"] { color:#8a642c; background:#fffcf5; border-color:#ecdfc7; }
.pc-layout .pc-page:has(> .product-toolbar-card) td:has([data-action="mp-decoration"]) button[data-action="delete"] { color:#b24b50; border-color:#ecd4d6; background:#fff; }
.pc-layout .pc-page:has(> .product-toolbar-card) td:has([data-action="mp-decoration"]) button:hover { filter:brightness(.96); border-color:#96b4d8; }
.pc-layout .pc-page:has(> .product-toolbar-card) button:focus-visible { outline:2px solid #4386d8; outline-offset:2px; }
@media (max-width:1280px) {
  .pc-layout .product-toolbar-card .product-search-input { flex:1 1 210px; }
  .pc-layout .product-toolbar-card .product-more-toggle { margin-left:0!important; }
  .pc-layout .product-toolbar-card .product-toolbar-title-wrap { flex-wrap:wrap; gap:4px 10px; }
}
@media (max-width:800px) {
  .pc-layout .pc-page > .product-toolbar-card { padding:12px; }
  .pc-layout .product-toolbar-card .product-search-input { flex:1 1 240px; }
  .pc-layout .product-toolbar-card .product-category-select,
  .pc-layout .product-toolbar-card .product-mp-listing-filter { flex:1 1 160px; width:auto; min-width:150px; }
}
