/* Responsive shell and price editor. Screen only; no data/controls removed. */
.responsive-menu-toggle { display:none; }
@media screen {
  .ux-layout .shell, .ux-layout .panel, .ux-layout .form-grid > *,
  .ux-layout .toolbar > *, .ux-layout .section-head > * { min-width:0; }
  .ux-layout .table-wrap, .ux-layout .table-scroll { max-width:100%; min-width:0; }
  .ux-layout .section-head, .ux-layout .toolbar, .ux-layout .actions { flex-wrap:wrap; }
  .ux-layout .form-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
  .ux-layout .toolbar input, .ux-layout .toolbar select,
  .ux-layout .form-grid input, .ux-layout .form-grid select,
  .ux-layout .form-grid textarea { max-width:100%; }
  .ux-layout .stock-tile-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,275px),1fr)); }
  .ux-layout .price-auto-summary { flex-wrap:wrap; }
  .ux-layout .price-auto-layout { grid-template-columns:minmax(0,1fr) 340px; height:auto; min-height:0; overflow:visible; }
  .ux-layout .price-auto-products { height:auto; max-height:72vh; }
  .ux-layout .price-auto-products table { min-width:0; width:100%; table-layout:fixed; }
  .ux-layout .price-auto-products tr, .ux-layout .price-auto-products td { height:auto; max-height:none; }
  .ux-layout .price-auto-products th, .ux-layout .price-auto-products td { white-space:normal; overflow-wrap:anywhere; padding:10px 8px; }
  .ux-layout .price-auto-products th:first-child { width:34px; }
  .ux-layout .price-auto-products th:nth-child(2) { width:25%; }
  .ux-layout .price-auto-products th:nth-child(3) { width:30%; }
  .ux-layout .price-auto-products td.num { overflow-wrap:normal; }
  .ux-layout .price-auto-mode-status { min-width:0; flex-wrap:wrap; align-items:flex-start; }
  .ux-layout .price-auto-runtime-status { flex:1 1 180px; overflow-wrap:anywhere; }
  .ux-layout .price-auto-minimum-badge { white-space:normal; margin-left:0; }
  .ux-layout .price-auto-editor { max-height:80vh; top:12px; }
  .ux-layout .price-auto-mode { min-width:0; }
  .ux-layout .price-auto-mode label { min-width:0; padding:9px 3px; overflow-wrap:anywhere; }
  .ux-layout .price-auto-mode input[type=radio] { width:18px; height:18px; min-height:18px; }
  @media (max-width:1500px) {
    .ux-layout .price-auto-layout { grid-template-columns:minmax(0,1fr); }
    .ux-layout .price-auto-editor { grid-row:1; position:static; max-height:none; overflow:visible; }
    .ux-layout .price-auto-products { grid-row:2; }
    .ux-layout .price-auto-fields { grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); }
    .ux-layout .price-auto-mode { max-width:600px; }
    .ux-layout .price-auto-products th:nth-child(3) { width:28%; }
  }
  @media (max-width:900px) {
    .ux-layout .app-frame { grid-template-columns:minmax(0,1fr); }
    .ux-layout .sidebar { position:static; height:auto; min-height:0; max-height:none; overflow:visible; display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; padding:10px 14px; }
    .ux-layout .brand { margin:0; padding:0; border:0; }
    .ux-layout.responsive-menu-ready .responsive-menu-toggle { display:inline-flex; align-items:center; min-height:42px; }
    .ux-layout .side-nav { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-height:60vh; overflow:auto; }
    .ux-layout .side-nav[hidden] { display:none; }
    .ux-layout .side-nav a { min-height:40px; }
    .ux-layout .shell { padding:12px; }
    .ux-layout .workspace-top { flex-wrap:wrap; gap:8px; margin-bottom:12px; }
    .ux-layout .workspace-caption { display:none; }
    .ux-layout .userbox { flex-wrap:wrap; max-width:100%; }
    .ux-layout .panel { padding:14px; }
    .ux-layout .price-auto-products th:nth-child(2) { width:24%; }
    .ux-layout .price-auto-products th:nth-child(3) { width:24%; }
    .ux-layout form[method=get].toolbar input:not([type=hidden]) { min-width:0; }
    .ux-layout .settings-grid, .ux-layout .settings-card-mail .settings-card-fields { grid-template-columns:1fr; }
  }
  @media (max-width:650px) {
    /* Every value remains visible; one selectable product card replaces each row. */
    .ux-layout .price-auto-products { max-height:none; overflow:visible; border:0; }
    .ux-layout .price-auto-products table, .ux-layout .price-auto-products tbody { display:block; }
    .ux-layout .price-auto-products thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .ux-layout .price-auto-product-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:10px; margin-bottom:12px; border:1px solid #344b61; border-radius:9px; }
    .ux-layout .price-auto-products td { display:block; border:0; width:auto; min-width:0; text-align:left; }
    .ux-layout .price-auto-products td:first-child { grid-column:1/-1; padding-bottom:0; }
    .ux-layout .price-auto-products td:nth-child(2), .ux-layout .price-auto-products td:nth-child(3) { grid-column:1/-1; }
    .ux-layout .price-auto-products td:nth-child(n+4)::before { display:block; color:#b6c9db; font-size:12px; margin-bottom:4px; }
    .ux-layout .price-auto-products td:nth-child(4)::before { content:'Cena'; }
    .ux-layout .price-auto-products td:nth-child(5)::before { content:'Minimum'; }
    .ux-layout .price-auto-products td:nth-child(6)::before { content:'Stan WMS'; }
    .ux-layout .price-auto-products td:nth-child(7)::before { content:'Na zamówieniach'; }
    .ux-layout .price-auto-products td:nth-child(8)::before { content:'Ilość w Empik'; }
    .ux-layout .price-auto-mode { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ux-layout .price-auto-quantity-sum { flex-wrap:wrap; }
    .ux-layout .price-auto-search-field { min-width:0; width:100%; }
    .ux-layout .price-auto-editor { padding:12px; }
    .ux-layout .price-auto-counts { gap:6px; }
    .ux-layout .toolbar > label { max-width:100%; }
    .ux-layout .dashboard-group-grid, .ux-layout .dashboard-group-grid-four,
    .ux-layout .dashboard-group-grid-three, .ux-layout .dashboard-group-grid-two,
    .ux-layout[data-view=marketplace_orders] .dashboard-summary-eight { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
}
