.filters-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:8px 14px;align-items:end;padding-top:5px}.filter-actions{display:flex;gap:8px;padding-bottom:12px}.product-table-wrap{position:relative;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.product-cell{display:flex;gap:11px;align-items:center;min-width:0}.product-cell img,.image-placeholder{flex:none;width:56px;height:56px;border-radius:9px;object-fit:contain;background:#f7f8fb;border:1px solid var(--line);display:grid;place-items:center;color:var(--muted);font-size:10px}.product-cell small{display:block;margin-top:3px}.product-table td{overflow-wrap:anywhere}.bulk-actions{position:sticky;top:10px;z-index:6;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px;padding:12px 14px;background:rgba(247,249,255,.96);border:1px solid #d8e1fb;border-radius:11px;box-shadow:0 8px 24px rgba(32,64,140,.08);backdrop-filter:blur(8px)}.bulk-actions select{width:auto;min-width:190px}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:20px}.detail-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(290px,1fr);gap:18px}.gallery{display:flex;gap:10px;overflow:auto;margin:15px 0}.gallery img{width:140px;height:140px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:10px}.description-preview{border:1px solid var(--line);padding:20px;border-radius:11px;background:#fff;max-height:500px;overflow:auto}.checklist{list-style:none;padding:0}.checklist li{padding:9px 10px;border-bottom:1px solid var(--line)}.checklist li:before{display:inline-block;width:22px}.checklist .ok:before{content:'✓';color:var(--green)}.checklist .bad:before{content:'✕';color:var(--red)}
@media(max-width:1100px){.filters-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.detail-layout{grid-template-columns:1fr}}@media(max-width:600px){.filters-grid{grid-template-columns:1fr}.bulk-actions{align-items:stretch;flex-direction:column}.bulk-actions select,.bulk-actions .primary{width:100%}}
.gallery-item{display:grid;gap:7px;justify-items:center;flex:none}.gallery-item form{margin:0}.gallery-item button{min-height:32px;padding:5px 10px}.invalid-images{display:grid;gap:8px;margin:10px 0 18px}.invalid-images>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid #f1c6c9;border-radius:9px;background:#fff5f5}.invalid-images code{overflow-wrap:anywhere;color:var(--red)}.invalid-images form{margin:0;flex:none}
.duplicate-platforms{display:grid;gap:10px;margin:10px 0 22px}.duplicate-platform-card{padding:12px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:10px;background:#f8fbfa}.duplicate-platform-card.has-duplicates{border-left-color:var(--red);background:#fff7f7}.duplicate-platform-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.duplicate-group{display:grid;gap:5px;margin-top:8px}.duplicate-group a{display:block;padding:6px 8px;border-radius:7px;background:#fff;border:1px solid var(--line);overflow-wrap:anywhere}.duplicate-group a:hover{border-color:var(--blue)}

/* Tabela produktów IDEA skaluje się do szerokości panelu: kolumny są podane w
   procentach, a czcionki i odstępy płynnie (clamp). Bez suwaka poziomego na
   laptopie i monitorze. Na telefonach (≤767px) wiersze przechodzą w karty —
   patrz responsive.css. */
.product-table{width:100%;min-width:0;table-layout:fixed;font-size:clamp(11px,0.82vw,13px)}
.product-table th,.product-table td{overflow-wrap:normal}
.product-table th:nth-child(1),.product-table td:nth-child(1){width:var(--product-col1,30px)}
.product-table th:nth-child(2),.product-table td:nth-child(2){width:15%}
.product-table th:nth-child(3),.product-table td:nth-child(3){width:10%}
.product-table th:nth-child(4),.product-table td:nth-child(4){width:10%}
.product-table th:nth-child(5),.product-table td:nth-child(5){width:12%}
.product-table th:nth-child(6),.product-table td:nth-child(6){width:7%}
.product-table th:nth-child(7),.product-table td:nth-child(7){width:12%}
.product-table th:nth-child(8),.product-table td:nth-child(8),.product-table th:nth-child(9),.product-table td:nth-child(9),.product-table th:nth-child(10),.product-table td:nth-child(10){width:8%}
.product-table th:nth-child(11),.product-table td:nth-child(11){width:8%}
.product-table td{vertical-align:top;padding:clamp(6px,0.55vw,10px) clamp(4px,0.45vw,9px)}
.product-table td:nth-child(2),.product-table td:nth-child(3),.product-table td:nth-child(4),.product-table td:nth-child(5),.product-table td:nth-child(6),.product-table td:nth-child(7),.product-table td:nth-child(8),.product-table td:nth-child(9),.product-table td:nth-child(10){overflow-wrap:anywhere}
/* Etykiety statusów są krótkie (TAK / NIE / BRAK / SZKIC / GOTOWY / BŁĄD), więc
   mieszczą się w jednej linii. overflow-wrap jest tylko zabezpieczeniem przed
   wyjściem tekstu poza komórkę przy bardzo wąskim oknie. */
.product-table .badge{white-space:normal;text-align:center;font-size:clamp(9.5px,0.68vw,11.5px);padding:2px clamp(3px,0.35vw,7px);overflow-wrap:anywhere}
.product-table .product-cell img,.product-table .product-cell .image-placeholder{width:clamp(36px,2.8vw,56px);height:clamp(36px,2.8vw,56px);max-width:100%}
.product-table .button{font-size:clamp(10px,0.72vw,13px);padding:clamp(4px,0.4vw,8px) clamp(6px,0.6vw,12px);white-space:normal}
.product-cell{gap:clamp(6px,0.6vw,11px)}

/* Gdyby jednak tabela okazała się szersza od panelu (bardzo wąskie okno),
   przewija się tylko jej prawa część, a kolumna zaznaczenia i nazwa produktu
   pozostają przyklejone po lewej. */
@media(min-width:768px){
  .product-table{--product-col1:30px}
  .product-table th:nth-child(1),.product-table td:nth-child(1){position:sticky;left:0;z-index:3;background:var(--surface)}
  .product-table th:nth-child(2),.product-table td:nth-child(2){position:sticky;left:var(--product-col1);z-index:3;background:var(--surface);border-right:1px solid var(--line)}
  .product-table thead th:nth-child(1),.product-table thead th:nth-child(2){z-index:4;background:var(--surface-2)}
  .product-table tbody tr:not([hidden]):hover>td:nth-child(1),.product-table tbody tr:not([hidden]):hover>td:nth-child(2){background:#f7f9ff}
}
