/* LENSTAL_TABLE_FIELDS_20261112
   Approved compact list: resize native controls without replacing the
   PrestaShop 9.2 product/combination forms or changing calculation behaviour.
   Scope: category table rows with the existing coating field. */
/* Set the layout variable on the container itself. A container query cannot
   style its own query container, only descendants. */
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] {
  --lst-v5-cols: minmax(145px,1.35fr) minmax(235px,2.14fr) minmax(145px,1.32fr) minmax(178px,1.57fr) minmax(230px,2.10fr) minmax(100px,.97fr);
}
@container lst-catalog (min-width:1111px) {
  /* The fourth technical specification is Zn. Give its native select room;
     thickness, width and steel grade retain their own columns. */
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-head-specs:has(> :nth-child(4):last-child),
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-specs:has(> :nth-child(4)[data-lst-extra="0"]) {
    grid-template-columns: minmax(31px,.6fr) minmax(38px,.72fr) minmax(38px,.72fr) minmax(108px,1.86fr);
    gap:5px;
  }
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-head-commerce,
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-commerce {
    grid-template-columns:minmax(30px,.48fr) minmax(61px,.96fr) minmax(72px,1.2fr);
    gap:7px;
  }
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-form .lst-v5-quantity--managed {
    grid-template-columns:minmax(122px,1.12fr) minmax(92px,.88fr);
    gap:5px;
    width:100%;
    max-width:100%;
  }
}
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-coating,
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-specs>div,
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-quantity,
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-order-actions {
  min-width:0;
}
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-coating select,
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-quantity select,
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-quantity input:not([type="hidden"]),
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-specs .lst-zinc-docked select {
  box-sizing:border-box;
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:42px!important;
  height:42px!important;
  padding:7px 8px!important;
  font-size:12px!important;
  line-height:1.3!important;
  color:#17233c;
  background:#fff;
  border:1px solid #cbd7e9;
  border-radius:5px;
}
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-quantity-hint {
  font-size:11px;
  line-height:1.35;
}
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-row[data-lst-inline] .lst-order-actions [data-lst-order-action="add"],
body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-links>.lst-v5-detail {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:42px;
  padding-inline:7px;
  white-space:normal;
  text-align:center;
}
/* At narrow widths the existing 2-column / 1-column card rules remain the
   source of truth. Do not force desktop grid minima onto mobile controls. */

/* LENSTAL_TABLE_FIELD_TOP_ALIGN_20261112
   Fix different vertical levels of controls in existing painted coil tables.
   Native PrestaShop selectors/handlers and the agreed mobile layout remain. */
@container lst-catalog (min-width:1111px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-row[data-lst-inline] {
    align-items: start;
  }
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-row[data-lst-inline] :is(.lst-v5-name, .lst-v5-specs, .lst-v5-commerce, .lst-v5-coating, .lst-v5-quantity, .lst-order-actions) {
    align-self: start;
  }
  /* Inputs are 42px high, so the managed quantity's first grid track
     must also be 42px; otherwise centering offsets inputs by 3px. */
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating] .lst-v5-row[data-lst-inline] .lst-v5-form .lst-v5-quantity--managed {
    grid-template-rows: 42px 18px;
    align-items: start;
  }
}


/* LENSTAL_COMPACT_NO_FORM_20261114
   A row without an order form must not reserve space for an order button.
   Existing forms, identities, native links and filter behaviour are retained. */
@media (min-width:1280px) {
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) {
    grid-template-rows:minmax(42px,auto) auto;
    row-gap:4px;
    align-items:center;
    padding-block:10px;
  }
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) .lst-v5-links>.lst-v5-detail {
    margin-top:0;
    align-self:center;
    min-height:36px;
  }
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden])>.lst-v5-more-specs {
    grid-column:1;
    grid-row:2;
    margin:0;
    align-self:start;
  }
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden])>.lst-v5-more-specs[open] {
    grid-column:1/-1;
    padding-top:4px;
  }
}
body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) .lst-v5-help {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  margin:0;
  padding:7px 9px;
  border:1px solid #cbd9ed;
  border-radius:5px;
  color:#123b8f;
  background:#fff;
  text-align:center;
  font-size:12px;
  font-weight:600;
  line-height:1.3;
  box-sizing:border-box;
}
body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) .product-miniature__title {
  display:block!important;
  -webkit-line-clamp:unset;
  overflow:visible;
}
@media (max-width:1279px) {
  body#category .lst-native-catalog[data-view="table"]:has(.lst-v5-row:not([data-lst-inline])>.lst-v5-calculation[hidden]) .lst-v5-head {display:none;}
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:none;
    gap:10px;
    padding:12px;
    align-items:start;
  }
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) .lst-v5-name {grid-column:1/-1;grid-row:1;}
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) .lst-v5-specs {grid-column:1/-1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));}
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) .lst-v5-commerce {grid-column:1/-1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));}
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) :is(.lst-v5-specs dt,.lst-v5-commerce span) {position:static;clip-path:none;width:auto;height:auto;overflow:visible;}
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) .lst-v5-help {grid-column:1;grid-row:4;min-height:44px;}
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden]) .lst-v5-links>.lst-v5-detail {grid-column:2;grid-row:4;margin:0;min-height:44px;align-self:stretch;}
  body#category .lst-native-catalog[data-view="table"] .lst-v5-row:not([data-lst-inline]):has(>.lst-v5-calculation[hidden])>.lst-v5-more-specs {grid-column:1/-1;grid-row:5;margin:0;}
}

/* 20261115: retired positional cold-strip width hiding.
 * Range dimensions remain targeted by their semantic .lst-range-static marker.
 * The second primary cell may now contain the real steel grade. */
/* LENSTAL_SHARED_RANGE_WIDTH_20261114: one visible native width input. */
body#category .lst-v5-row[data-lst-has-range-input="1"] .lst-v5-specs>.lst-range-static {visibility:hidden!important;}
[data-lst-has-range-input="1"]:not(.lst-v5-row) .lst-range-static {display:none!important;}
body#category .lst-v5-quantity--range-width {grid-template-columns:repeat(auto-fit,minmax(90px,1fr));}
body#category .lst-v5-quantity--range-width>.lst-v5-quantity-hint {grid-column:1/-1;}
.lst-range-width-field {min-width:0;}
.lst-range-width-field>input {box-sizing:border-box;width:100%;min-width:0;}
@container lst-catalog (max-width:1110px) {
  body#category .lst-v5-row[data-lst-has-range-input="1"] .lst-v5-specs>.lst-range-static {display:none!important;}
  body#category .lst-v5-row[data-lst-has-range-input="1"] .lst-v5-specs {grid-template-columns:repeat(auto-fit,minmax(80px,1fr));}
}
body#category .lst-native-catalog[data-view="tiles"] .lst-v5-row[data-lst-has-range-input="1"] .lst-v5-specs>.lst-range-static {display:none!important;}

.lst-v5-more-specs .lst-range-static {display:none!important;}

/* LENSTAL_RANGE_LAYOUT_20261114: each native control gets its own flex item.
   The older two-control grid assigned width and amount to the same cell. */
body#category .lst-native-catalog .lst-v5-row[data-lst-inline] .lst-v5-form .lst-v5-quantity.lst-v5-quantity--range-width {
  display:flex!important;
  flex-wrap:wrap;
  align-items:flex-start;
  align-content:flex-start;
  gap:4px 6px;
  height:auto!important;
  min-height:0;
  max-width:100%;
}
body#category .lst-native-catalog .lst-v5-quantity--range-width>.lst-order-field {
  display:flex!important;
  flex:1 1 80px;
  flex-direction:column;
  align-items:stretch;
  align-self:flex-start;
  gap:3px;
  min-width:0;
  margin:0!important;
  font-size:11px!important;
  line-height:1.3!important;
  color:#68748a;
  order:2;
}
body#category .lst-native-catalog .lst-v5-quantity--range-width>.lst-range-width-field {order:0;}
body#category .lst-native-catalog .lst-v5-quantity--range-width>.lst-v5-input-mode {
  order:1;
  flex:0.65 1 54px;
}
body#category .lst-native-catalog .lst-v5-quantity--range-width>.lst-v5-input-mode--fixed {
  font-size:0!important;
  line-height:0!important;
  padding-top:17.3px;
  gap:0;
}
body#category .lst-native-catalog .lst-v5-quantity--range-width>.lst-order-field>input,
body#category .lst-native-catalog .lst-v5-quantity--range-width>.lst-order-field>select {
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0!important;
}
body#category .lst-native-catalog .lst-v5-quantity--range-width>.lst-v5-quantity-hint {
  flex:0 0 100%;
  order:3;
  margin:0;
}

/* A single permitted input mode is already stated in the sale-unit column.
   Keep the enabled native select and its value in the form for calculation. */
body#category .lst-native-catalog .lst-v5-quantity>.lst-order-field.lst-v5-input-mode--fixed {display:none!important;}
body#category .lst-native-catalog .lst-v5-quantity--managed:has(>.lst-v5-input-mode--fixed):not(.lst-v5-quantity--range-width) {grid-template-columns:minmax(0,1fr)!important;}
body#category .lst-native-catalog .lst-v5-quantity--managed:has(>.lst-v5-input-mode--fixed):not(.lst-v5-quantity--range-width)>.lst-order-field:not(.lst-v5-input-mode) {grid-column:1!important;}

/* 20261114 width-quantity1: remove the shared range-only width track.
 * Fixed-width/mixed tables keep their existing primary width column. */
@container lst-catalog (min-width:1111px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating][data-lst-width-input-only="1"][data-lst-primary-count="3"] .lst-v5-head-specs,
  body#category .lst-native-catalog[data-view="table"][data-lst-has-coating][data-lst-width-input-only="1"][data-lst-primary-count="3"] .lst-v5-specs {
    grid-template-columns:minmax(31px,.6fr) minmax(38px,.72fr) minmax(108px,1.86fr)!important;
    gap:5px;
  }
}

/* Common catalogue rule: a quantity input always states its native unit.
   The old generic field rule used font-size:0, hiding the correct caption. */
body#category .lst-native-catalog[data-view="table"] .lst-v5-quantity--managed>.lst-order-field:not(.lst-v5-input-mode) {
  display:flex!important;
  flex-direction:column;
  gap:3px;
  font-size:11px!important;
  line-height:1.3!important;
  color:#68748a;
}
body#category .lst-native-catalog[data-view="table"] .lst-v5-quantity--managed:not(.lst-v5-quantity--range-width) {
  grid-template-rows:auto auto!important;
  row-gap:4px!important;
  align-items:start;
}

/* LENSTAL_COMMON_TABLES_20261115
 * Shared native table renderer. Existing tile/picket/mesh renderers keep their
 * own layout. Form controls, their native owners and variant handlers stay put.
 */
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] {--lst-v5-cols:minmax(260px,3.4fr) minmax(155px,1.6fr) minmax(270px,3.1fr) minmax(116px,1.15fr);}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row {
  --nf-name-col:1;--nf-coating-col:1;--nf-choice-col:1;--nf-commerce-col:2;--nf-quantity-col:3;--nf-actions-col:4;--nf-detail-col:4;
  --nf-commerce-row:1 / 4;--nf-quantity-row:1 / 4;--nf-actions-row:1;--nf-detail-row:2;--nf-specs-row:4;--nf-options-row:5;--nf-result-row:6;
  display:grid;grid-template-columns:var(--lst-v5-cols)!important;grid-template-rows:none!important;grid-auto-rows:auto;
  align-items:start!important;gap:7px 18px;padding:12px!important;min-height:0!important;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-head {grid-template-columns:var(--lst-v5-cols)!important;gap:18px;padding-inline:12px;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-name {grid-column:var(--nf-name-col)!important;grid-row:1!important;align-self:start!important;align-items:start;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-name .product-miniature__title {display:block!important;-webkit-line-clamp:unset;overflow:visible;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs {
  display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:6px 15px;grid-column:auto!important;grid-row:auto!important;margin:7px 0!important;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs>div {display:flex;align-items:baseline;gap:4px;min-width:0;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs dt {
  position:static!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;margin:0;font-size:11px;line-height:1.4;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs dt::after {content:":";}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs dt {white-space:nowrap;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs dd {width:auto;flex:0 1 auto;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs>div:has(select,input) {flex:0 1 155px;display:flex!important;flex-direction:column;align-items:stretch;gap:4px;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs>div:has(select,input) dt::after {content:"";}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs>div:has(select,input) dd {width:100%;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs>:is([data-lst-empty],[data-lst-extra="1"],[data-lst-name-duplicate="1"]):not(:has(select,input,button)) {display:none!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row:has([data-lst-compact-select="zn"]) [data-lst-name-fact="zn"],
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row:has([data-lst-compact-select="strength"]) [data-lst-name-fact="strength"] {display:none;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-specs select {box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0!important;min-height:40px!important;height:40px!important;font-size:12px!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-zinc-docked {font-size:0!important;line-height:0!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-commerce {grid-column:var(--nf-commerce-col)!important;grid-row:var(--nf-commerce-row)!important;display:flex!important;flex-direction:column;align-items:flex-start;gap:6px;align-self:start!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-commerce>div {display:flex;flex-wrap:wrap;gap:3px 5px;align-items:baseline;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-commerce span {position:static!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;margin:0;font-size:11px;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-commerce span::after {content:":";}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-commerce strong {white-space:normal!important;overflow-wrap:anywhere!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-named-unit="1"] .lst-v5-commerce>div:has(>[data-lst-v5-unit]) {display:none;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row .lst-v5-coating {grid-column:var(--nf-coating-col)!important;grid-row:2!important;align-self:start!important;max-width:230px;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-coating .lst-order-field {display:flex!important;flex-direction:column;gap:4px;font-size:11px!important;line-height:1.4!important;color:#68748a;}
/* Native RAL and request-finish controls have their own row after coating.
 * This is crucial for painted sheets, where both controls are present. */
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row .lst-v5-finish-choice,
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-links>:is([data-lst-v5-ral-picker],[data-lst-v5-variant]) {grid-column:var(--nf-choice-col)!important;grid-row:3!important;align-self:start!important;margin:0!important;max-width:230px;width:100%;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row .lst-v5-quantity {grid-column:var(--nf-quantity-col)!important;grid-row:var(--nf-quantity-row)!important;align-self:start!important;justify-self:stretch!important;width:100%;max-width:100%!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row .lst-v5-quantity--cold-strip {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row .lst-order-actions {grid-column:var(--nf-actions-col)!important;grid-row:var(--nf-actions-row)!important;align-self:start!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row .lst-v5-links>.lst-v5-detail {grid-column:var(--nf-detail-col)!important;grid-row:var(--nf-detail-row)!important;margin:0!important;align-self:start!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row>.lst-v5-more-specs {grid-column:1/-1!important;grid-row:var(--nf-specs-row)!important;margin:0!important;position:static!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row .lst-v5-options {grid-column:1/-1!important;grid-row:var(--nf-options-row)!important;position:static!important;margin:0!important;max-width:100%;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row .lst-order-result {grid-column:1/-1!important;grid-row:var(--nf-result-row)!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row:not([data-lst-inline]) .lst-v5-help {grid-column:var(--nf-quantity-col)!important;grid-row:var(--nf-quantity-row)!important;align-self:start;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row:not([data-lst-inline]) .lst-v5-links>.lst-v5-detail {grid-row:var(--nf-actions-row)!important;}
@container lst-catalog (max-width:1110px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-head {display:none!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row {
    --nf-name-col:1 / -1;--nf-coating-col:1 / -1;--nf-choice-col:1 / -1;--nf-commerce-col:1;--nf-quantity-col:2;--nf-actions-col:1;--nf-detail-col:2;
    --nf-commerce-row:4;--nf-quantity-row:4;--nf-actions-row:5;--nf-detail-row:5;--nf-specs-row:6;--nf-options-row:7;--nf-result-row:8;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
/* Same visible width / method / amount for supported strip input units. */
.lst-order-host[data-lst-strip-measure] .lst-v5-quantity--strip,
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row [data-lst-strip-measure] .lst-v5-quantity--strip {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px;}
.lst-order-host[data-lst-strip-measure] .lst-v5-quantity--strip>label {min-width:0;max-width:100%;}
.lst-order-host[data-lst-strip-measure] .lst-v5-quantity--strip>label[hidden] {display:none!important;}
.lst-order-host[data-lst-strip-measure] .lst-v5-quantity--strip[data-lst-strip-cuts="1"] .lst-strip-method {grid-column:1/-1;}
.lst-order-host[data-lst-strip-measure] .lst-v5-quantity--strip select {width:100%;min-width:0;}
.lst-order-host[data-lst-strip-measure] .lst-v5-quantity-hint {grid-column:1/-1;}
@container lst-catalog (max-width:620px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row {
    --nf-commerce-col:1;--nf-quantity-col:1;--nf-actions-col:1;--nf-detail-col:1;
    --nf-commerce-row:4;--nf-quantity-row:5;--nf-actions-row:6;--nf-detail-row:7;--nf-specs-row:8;--nf-options-row:9;--nf-result-row:10;
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* LENSTAL_CONTROLS_20261115: one group; no hidden required inputs under other fields. */
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row > .lst-v5-controls[data-lst-controls] {
  display:grid;grid-column:3 / -1;grid-row:1 / 4;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(110px,.74fr);
  align-items:start;gap:10px 12px;min-width:0;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] [data-lst-v5-specs] {display:contents!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] [data-lst-v5-specs]>div:not(:has(select,input,button)) {display:none!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] [data-lst-control-choice] {
  grid-column:var(--lst-choice-col)!important;grid-row:var(--lst-choice-row)!important;
  min-width:0;max-width:none!important;width:100%;margin:0!important;align-self:start!important;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] :is(.lst-order-field,dt) {
  font-size:11px!important;line-height:1.4!important;color:#68748a;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-zinc-docked {font-size:11px!important;line-height:1.4!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] [data-lst-v5-specs]>div:has(.lst-zinc-docked)>dt {display:none!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] :is(input:not([type="hidden"]),select) {
  box-sizing:border-box;width:100%!important;max-width:100%;min-width:0!important;height:42px!important;min-height:42px!important;font-size:12px!important;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-order-field {
  display:flex;flex-direction:column;gap:4px;min-width:0;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-quantity {
  display:flex!important;flex-wrap:wrap;grid-column:1 / 3!important;grid-row:var(--lst-quantity-row)!important;gap:8px!important;align-items:flex-start;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-quantity > .lst-order-field {
  grid-column:auto!important;grid-row:auto!important;position:static!important;flex:1 1 100px;order:var(--lst-field-order,2)!important;
  margin:0!important;max-width:100%;min-width:0;align-self:flex-start;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-quantity > [hidden] {display:none!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-quantity-hint {flex-basis:100%;order:99;margin:0;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-quantity[data-lst-strip-cuts="1"] > .lst-strip-method {flex-basis:100%;order:-1!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-order-actions {grid-column:3!important;grid-row:var(--lst-quantity-row)!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-links > .lst-v5-detail {grid-column:3!important;grid-row:calc(var(--lst-quantity-row) + 1)!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-order-result {grid-column:1 / 3!important;grid-row:calc(var(--lst-quantity-row) + 1)!important;margin:0;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-options {grid-column:1 / -1!important;grid-row:calc(var(--lst-quantity-row) + 2)!important;}
body#category .lst-v5-control-facts {display:flex;flex-wrap:wrap;gap:4px 12px;margin:7px 0;font-size:11px;color:#68748a;}
body#category .lst-v5-control-facts[hidden] {display:none;}
@container lst-catalog (max-width:1110px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row > .lst-v5-controls[data-lst-controls] {grid-column:1 / -1;grid-row:5;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row > .lst-v5-more-specs {grid-row:6!important;}
}
@container lst-catalog (max-width:620px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row > .lst-v5-controls[data-lst-controls] {grid-template-columns:minmax(0,1fr);}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] [data-lst-control-choice] {grid-column:1!important;grid-row:var(--lst-choice-index)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-quantity {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 1)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-order-actions {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 2)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-links > .lst-v5-detail {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 3)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-order-result {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 4)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-options {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 5)!important;}
}

/* Fixed SKU facts are already in the title; hide navigation to another SKU.
   Do not hide named calculation inputs or native variant selectors. */
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] [data-lst-v5-specs]>[data-lst-fixed-fact-control="1"] {display:none!important;}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row:has([data-lst-fixed-fact-control="1"] [data-lst-compact-select="zn"]) [data-lst-name-fact="zn"],
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row:has([data-lst-fixed-fact-control="1"] [data-lst-compact-select="strength"]) [data-lst-name-fact="strength"] {display:inline!important;}
@container lst-catalog (max-width:1110px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row > .lst-v5-controls[data-lst-controls] {grid-column:1 / -1;grid-row:5;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row > .lst-v5-more-specs {grid-row:6!important;}
}
@container lst-catalog (max-width:620px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row > .lst-v5-controls[data-lst-controls] {grid-template-columns:minmax(0,1fr);}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] [data-lst-control-choice] {grid-column:1!important;grid-row:var(--lst-choice-index)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-quantity {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 1)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-order-actions {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 2)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-links > .lst-v5-detail {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 3)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-order-result {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 4)!important;}
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-options {grid-column:1!important;grid-row:calc(var(--lst-choice-count) + 5)!important;}
}

@container lst-catalog (min-width: 621px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] {
    position:relative;
    min-block-size:94px;
  }
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-order-actions {
    position:absolute;
    grid-row:1!important;
    inset:0 0 auto;
    margin:0!important;
  }
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-order-actions [data-lst-order-action="add"],
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-links > .lst-v5-detail {
    box-sizing:border-box;
    width:100%;
    min-block-size:42px;
  }
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-links > .lst-v5-detail {
    position:absolute;
    grid-row:1!important;
    inset:50px 0 auto;
  }
}

body#category #search_filters_wrapper.lst-v5-filters section[data-name="Исполнение / цвет самореза"] ul.accordion-body {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
}
body#category #search_filters_wrapper.lst-v5-filters section[data-name="Исполнение / цвет самореза"] li:not(:has(.lst-ral-square)) {
  grid-column:1 / -1;
  min-width:0;
}
body#category #search_filters_wrapper.lst-v5-filters section[data-name="Исполнение / цвет самореза"] .js-search-link {
  white-space:normal!important;
  overflow:visible!important;
}

/* Screw list: this form has one finish selector and one quantity input. */
body#category:is(.category-id-28,.category-id-46) .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-quantity--amount:not(.lst-v5-quantity--unit) > .lst-order-field:has(input[name="amount"]) {
  flex:0 1 132px;
  max-inline-size:132px;
}

@container lst-catalog (min-width:621px) {
  body#category:is(.category-id-28,.category-id-46) .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls]:has(.lst-v5-links > [data-lst-v5-ral-picker]):has(.lst-v5-quantity--amount:not(.lst-v5-quantity--unit)) {
    --lst-quantity-row:1!important;
    grid-template-columns:minmax(0,min(206px,36%)) minmax(0,1fr) max(110px,26%);
    min-block-size:111px;

    & .lst-v5-quantity--amount {
      grid-column:2!important;
    }

    & .lst-v5-links > [data-lst-v5-ral-picker] {
      box-sizing:border-box;
      min-height:42px;
      margin-block-start:19px!important;
    }

    & .lst-order-actions {
      inset-block-start:19px;
    }

    & .lst-v5-links > .lst-v5-detail {
      inset-block-start:69px;
    }

    & .lst-v5-options {
      grid-column:1 / 3!important;
    }
  }
}

@container lst-catalog (max-width:620px) {
  body#category:is(.category-id-28,.category-id-46) .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-links > [data-lst-v5-ral-picker] {
    max-inline-size:206px!important;
  }
}

/* LENSTAL_MANAGED_FORMULA_TABLE_20261202 — same native row, arbitrary fields.
   Never infer a dimension or collapse required formula inputs. */
body#category .lst-native-catalog[data-view="table"] .lst-v5-row[data-lst-generic-formula="1"] .lst-v5-quantity--formula {
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,115px),1fr))!important;
  grid-template-rows:none!important;grid-auto-rows:auto;gap:6px 9px!important;align-items:start!important;
}
body#category .lst-native-catalog[data-view="table"] .lst-v5-row[data-lst-generic-formula="1"] .lst-v5-quantity--formula > .lst-order-field {
  grid-column:auto!important;grid-row:auto!important;min-width:0!important;width:100%!important;
  max-width:none!important;margin:0!important;font-size:11px!important;line-height:1.4!important;color:#68748a!important;
  display:flex!important;flex-direction:column;gap:4px;order:initial!important;
}
body#category .lst-native-catalog[data-view="table"] .lst-v5-row[data-lst-generic-formula="1"] .lst-v5-quantity--formula > :is(p,small,[data-lst-order-action="measure"]) {
  grid-column:1/-1!important;grid-row:auto!important;margin:0!important;min-width:0;
}
body#category .lst-native-catalog[data-view="table"] .lst-v5-row[data-lst-generic-formula="1"] .lst-v5-quantity--formula > .lst-order-field :is(input,select) {width:100%;min-width:0!important;max-width:100%;}
body#category .lst-native-catalog[data-view="table"] .lst-v5-row[data-lst-generic-formula="1"] .lst-v5-calculation[open] {min-width:0;}

/* LENSTAL_FORMULA_ALIGNMENT_20261202: use the same control grid, with exactly two
   equal editable tracks on desktop, no fixed fact taking up an input cell. */
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline][data-lst-generic-formula="1"] .lst-v5-controls[data-lst-controls] .lst-v5-quantity--formula {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:none!important;grid-auto-rows:auto;gap:8px 9px!important;align-items:start!important;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline][data-lst-generic-formula="1"] .lst-v5-controls[data-lst-controls] .lst-v5-quantity--formula > .lst-order-field {
  grid-column:auto!important;grid-row:auto!important;order:0!important;align-self:start!important;
  width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
}
body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline][data-lst-generic-formula="1"] .lst-v5-controls[data-lst-controls] .lst-v5-quantity--formula > :is(p,small,[data-lst-order-action="measure"]) {
  grid-column:1/-1!important;grid-row:auto!important;order:99!important;
}
.lst-native-catalog .lst-v5-formula-facts {margin:5px 0 7px;font-size:11px;line-height:1.45;color:#68748a;overflow-wrap:anywhere;}
.lst-native-catalog .lst-v5-formula-facts > p {margin:0 0 3px!important;font-size:inherit!important;line-height:inherit!important;}
@container lst-catalog (max-width:360px) {
  body#category .lst-native-catalog[data-view="table"][data-lst-name-first="1"] .lst-v5-row[data-lst-inline][data-lst-generic-formula="1"] .lst-v5-controls[data-lst-controls] .lst-v5-quantity--formula {grid-template-columns:minmax(0,1fr)!important;}
}
