/* Compact product library; scoped to preserve document and invoice layouts. */
#productsPage{--catalog-border:#dce4ef}
#productsPage>.toolbar{align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:14px}
#productsPage>.toolbar h2{width:100%;margin:0;font-size:24px;letter-spacing:.2px}
#productsPage .toolbar-tools{display:flex;align-items:center;gap:8px;flex:1;flex-wrap:wrap;min-width:0}
#productsPage .toolbar-tools>#productSearch{flex:1 1 260px;max-width:480px;min-width:180px}
#productsPage button,#productsPage select,#productsPage input[type=search]{font-size:13px;line-height:1.4}
#productsPage button{padding:7px 11px;min-height:34px;white-space:nowrap;border-radius:8px;word-break:normal}
#productsPage input[type=search],#productsPage select{padding:8px 10px;min-height:36px;border-radius:8px}
#productsPage .product-more{position:relative;margin-left:auto}
#productsPage .product-more>summary{list-style:none;cursor:pointer;padding:8px 13px;border:1px solid #aabbd0;background:white;border-radius:8px;font-size:13px;white-space:nowrap;color:#3f5e84}
#productsPage .product-more>summary::-webkit-details-marker{display:none}
#productsPage .product-more>summary::after{content:' ▾'}
#productsPage .product-more[open]>summary{background:#edf3fa}
#productsPage .product-more-panel{position:absolute;z-index:25;right:0;top:calc(100% + 8px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(540px,80vw);padding:16px;background:white;border:1px solid var(--catalog-border);border-radius:12px;box-shadow:0 10px 28px #243f6424}
#productsPage .product-more-panel button,#productsPage .product-more-panel select{width:100%!important;margin:0}
#productsPage #productCategoryFolding{gap:6px!important;margin:12px 0!important;align-items:center}
#productsPage #productCategoryFolding>b{font-size:13px;color:#63748b;margin-right:6px}
#productsPage #productCategoryFolding button{padding:7px 10px;border-color:var(--catalog-border);font-size:13px}
#productsPage #productAccessNotice{font-size:12px;color:#77859a;margin:8px 0 12px;line-height:1.5}
#productsPage>.table-wrap{border:1px solid var(--catalog-border);border-radius:12px;overflow:auto;background:#fff}
#productsPage>.table-wrap>table{width:100%;min-width:1580px;table-layout:fixed;border-collapse:separate;border-spacing:0}
#productsPage>.table-wrap th{padding:11px 9px;font-size:12px;line-height:1.4;white-space:nowrap;background:#edf2f8;color:#475b76;border-bottom:1px solid var(--catalog-border)}
#productsPage>.table-wrap td{padding:12px 9px;font-size:13px;line-height:1.5;vertical-align:middle;word-break:normal;overflow-wrap:anywhere;border-bottom:1px solid #edf1f6}
#productsPage>.table-wrap tbody tr:last-child td{border-bottom:0}
#productsPage>.table-wrap tbody tr:hover td{background:#f7faff}
#productsPage>.table-wrap th:nth-child(1){width:32px}
#productsPage>.table-wrap th:nth-child(2){width:62px}
#productsPage>.table-wrap th:nth-child(3){width:112px}
#productsPage>.table-wrap th:nth-child(4){width:138px}
#productsPage>.table-wrap th:nth-child(5){width:52px}
#productsPage>.table-wrap th:nth-child(6){width:80px}
#productsPage>.table-wrap th:nth-child(7){width:88px}
#productsPage>.table-wrap th:nth-child(8){width:92px}
#productsPage>.table-wrap th:nth-child(9){width:74px}
#productsPage>.table-wrap th:nth-child(10){width:110px}
#productsPage>.table-wrap th:nth-child(11){width:58px}
#productsPage>.table-wrap th[data-variant-color]{width:76px}
#productsPage>.table-wrap th[data-variant-spec]{width:110px}
#productsPage>.table-wrap th[data-private-supplier]{width:160px}
#productsPage>.table-wrap th:last-child{width:184px}
#productsPage>.table-wrap td:nth-child(3){font-weight:600;color:#284767}
#productsPage>.table-wrap td:nth-child(5),#productsPage>.table-wrap td:nth-child(6),#productsPage>.table-wrap td:nth-child(7){font-variant-numeric:tabular-nums;white-space:nowrap}
#productsPage>.table-wrap td:nth-child(11){white-space:nowrap;font-size:12px}
#productsPage>.table-wrap td[data-private-supplier] button{display:block;margin-top:6px;font-size:12px;padding:5px 9px;min-height:30px}
#productsPage>.table-wrap td:last-child{position:sticky;right:0;background:#fff;border-left:1px solid #edf1f6}
#productsPage>.table-wrap th:last-child{position:sticky;right:0;z-index:2}
#productsPage>.table-wrap td:last-child button{display:inline-block;margin:3px 4px 3px 0;font-size:12px;padding:6px 10px;min-height:31px}
#productsPage>.table-wrap td:last-child .danger{color:#a43c32;background:#fff5f3;border:1px solid #efcfc9}
#productsPage>.table-wrap td:last-child [data-product-access].muted{margin:4px 0 0;color:#8a96a7;font-size:11px!important}
#productsPage>.table-wrap .thumb{width:54px;height:54px;object-fit:contain;border:1px solid #edf1f6;border-radius:8px;background:#fff}
#productsPage>.table-wrap input[type=checkbox]{width:16px;height:16px;margin:0}
@media(max-width:700px){#productsPage>.toolbar h2{font-size:20px}#productsPage .toolbar-tools>#productSearch{max-width:none;flex-basis:100%}#productsPage .product-more-panel{width:min(400px,86vw);grid-template-columns:1fr;max-height:65vh;overflow:auto}}
