/* JTEL 053 - Products List Index */
.products-index-filter{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px 14px}.products-index-filter>label{display:flex;flex-direction:column;gap:4px;min-width:145px;flex:1 1 160px;font:600 12px "Segoe UI",Arial,sans-serif}.products-index-filter input,.products-index-filter select{width:100%;min-height:34px;padding:5px 7px;border:1px solid #a9b8c6;border-radius:5px;background:#fff;color:#223445;font:inherit}.products-index-filter .report-filter-right-actions{margin-left:auto}.products-index-scroll{overflow:auto;max-height:calc(100vh - 330px);min-height:240px}.products-index-table{min-width:930px;width:100%;font:11px "Segoe UI",Arial,sans-serif;table-layout:fixed}.products-index-table thead th{position:sticky;top:0;z-index:3;white-space:nowrap;background:#647b8d;color:#fff}.products-index-table td{padding:6px 7px;white-space:nowrap}.products-index-table .products-index-description{white-space:normal;min-width:250px;max-width:420px;overflow-wrap:anywhere}.products-index-table .number-cell{text-align:right;font-variant-numeric:tabular-nums}.products-index-table tfoot td{position:sticky;bottom:0;z-index:2;background:#cbd7e1!important;font-weight:700}.products-index-table tbody tr:nth-child(even){background:#f3f6f8}.products-index-table tbody tr.products-inactive{color:#858d95;background:#fff6cd}.products-index-nonadmin .products-admin-only{display:none!important}@media(max-width:760px){.products-index-scroll{max-height:calc(100vh - 420px)}}

/* V003: controlled index widths, wrapped product names and clear picture action. */
.products-index-table{width:100%;min-width:1235px;table-layout:fixed}
.products-index-table th:nth-child(1),.products-index-table td:nth-child(1){width:48px;text-align:center}
.products-index-table th:nth-child(2),.products-index-table td:nth-child(2){width:105px}
.products-index-table th:nth-child(3),.products-index-table td:nth-child(3){width:315px}
.products-index-table th:nth-child(4),.products-index-table td:nth-child(4){width:205px}
.products-index-table th:nth-child(5),.products-index-table td:nth-child(5),
.products-index-table th:nth-child(6),.products-index-table td:nth-child(6),
.products-index-table th:nth-child(7),.products-index-table td:nth-child(7){width:110px}
.products-index-table th:nth-child(8),.products-index-table td:nth-child(8){width:105px}
.products-index-table th:nth-child(9),.products-index-table td:nth-child(9){width:92px}
.products-index-table td.products-index-description{white-space:normal!important;min-width:0;max-width:none;overflow-wrap:anywhere;word-break:normal;line-height:1.35;vertical-align:top}
.products-index-table tbody td{vertical-align:top}
.products-index-table td.number-cell{white-space:nowrap;text-align:right}
.products-index-picture-button{display:inline-flex;align-items:center;justify-content:center;width:31px;height:28px;padding:0;border:1px solid #91a6b7;border-radius:5px;background:#e7f1f9;color:#23608d;cursor:pointer}
.products-index-picture-button svg{display:block;flex:none}
.products-index-picture-button:hover,.products-index-picture-button:focus-visible{background:#cfe5f6;color:#154e79;outline:2px solid #89b5d4;outline-offset:1px}
.products-index-table tbody tr.products-inactive,.products-index-table tbody tr.products-inactive:nth-child(even){background:#fff4c4!important;color:#555}
/* For non-admins the cost column is removed, not merely obscured. */
.products-index-nonadmin .products-admin-only{display:none!important}
.products-index-picture-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(18,30,43,.65)}
.products-index-picture-modal.hidden,.products-index-picture-stage .hidden{display:none!important}
.products-index-picture-card{width:min(780px,100%);max-height:95vh;background:#fff;border-radius:9px;overflow:hidden;box-shadow:0 16px 50px #1118}
.products-index-picture-header{display:flex;align-items:center;justify-content:space-between;padding:13px 17px;background:#556e82;color:#fff;font:600 14px "Segoe UI",Arial,sans-serif}
.products-index-picture-header button{border:0;background:transparent;color:#fff;font-size:27px;cursor:pointer}
.products-index-picture-stage{min-height:280px;max-height:calc(95vh - 60px);display:flex;align-items:center;justify-content:center;overflow:auto;padding:20px;background:#f4f7f9;color:#52616e}
.products-index-picture-stage img{max-width:100%;max-height:calc(95vh - 110px);object-fit:contain}

/* V004: stock quantities are not currency; highlight negative balances. */
.products-index-table td.products-stock-qty{ text-align:center!important; font-weight:700!important; font-variant-numeric:tabular-nums; white-space:nowrap; }
.products-index-table td.products-stock-negative{ color:#c00000!important; font-weight:700!important; }
