/* 상품 관리: 공통 고정 헤더·단일행·셀 편집/색상 스타일을 재사용한다. */
#page-products{height:calc(100dvh - 40px);min-height:0;overflow:hidden}
#page-products:not(.hidden){display:flex;flex-direction:column}
#page-products>.page-head,#productsError,#productsPager,#page-products>.hint{flex:0 0 auto}
#productsError:not(.hidden){background:#fef2f2;color:var(--bad,#b91c1c);padding:8px 12px;border:1px solid #fecaca;border-radius:8px;margin-bottom:8px;font-size:12px}
#productsWrap{flex:1 1 0;min-height:0;height:auto;max-height:none;overflow:auto;overscroll-behavior:contain;position:relative;padding:0;margin-bottom:4px}
body.ledger-viewport #page-products{height:100%;min-height:0;padding-bottom:0}
#productsTbl{table-layout:fixed;max-width:none}
#productsTbl tbody td{font-size:12px;vertical-align:middle;height:26px;padding:2px 6px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#productsTbl .products-cell-edit{width:100%;min-width:0;height:20px;box-sizing:border-box;font:inherit}
#productsTbl .products-empty{text-align:center;padding:28px 16px;white-space:normal;color:var(--sub);line-height:1.8}
#productsTbl .products-file-cell{padding:2px 4px}
#productsTbl .products-file-slot{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;white-space:nowrap}
#productsTbl .products-file-link{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px;text-decoration:underline;color:inherit}
#productsTbl .products-upload{flex:0 0 auto;min-height:20px;height:20px;padding:0 5px;font-size:10px;line-height:18px;white-space:nowrap}
#productsTbl .products-upload:disabled{cursor:wait;opacity:.65}
#productsTbl .products-file-cell.erp-cell-colored .products-upload{color:var(--txt);background:#fff}
#productsPager{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:6px 0}
#productsPager .hint{margin:0;font-size:12px}
@media(max-width:800px){#page-products{height:calc(100dvh - 20px)}#productsPager{padding:4px 0}}
