/* Compact stock rows inspired by LIQD, with Ferros-M's sheet fields and palette. */
.table-labels,.product-list:not(.grid) .product-row {
  grid-template-columns:minmax(275px,1fr) 155px 106px 72px 122px 244px 80px;
  gap:10px;
}
.table-labels { background:var(--blue-dark);color:#fff;border-radius:6px 6px 0 0;min-height:44px;font-size:10px;padding:12px 16px;align-items:center; }
.product-list:not(.grid) .product-row { height:52px;min-height:52px;padding:9px 16px;font-size:11px;align-items:center;box-sizing:border-box; }
.product-list:not(.grid) .product-row:nth-child(even) {background:#f3f8fb;}
.product-list:not(.grid) .product-row:hover {background:#eaf3f8;}
.product-primary {min-width:0;gap:7px;}
.product-primary>div {min-width:0;flex:1;display:flex;align-items:center;gap:5px;}
.product-name {font-size:12px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.product-primary .cut-link {font-size:12px;margin:0;flex-shrink:0;}
.sheet-maker,.sheet-standard,.sheet-weight {min-width:0;font-size:10px;line-height:1.65;}
.sheet-maker,.sheet-standard {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sheet-maker>span,.sheet-standard>span {display:inline;white-space:nowrap;}
.sheet-maker small,.sheet-standard small {display:inline;color:var(--muted);font-size:9px;}
.sheet-maker .maker-pending {color:var(--muted);}
.supplier-variants {font:inherit;color:var(--blue);padding:0;white-space:nowrap;}
.supplier-variants:hover {text-decoration:underline;}
.detail-supplier {margin:18px 0;}
.detail-supplier select {width:100%;min-width:0;}
.detail-supplier .small {margin:8px 0 0;}
.sheet-weight {font-size:12px;font-variant-numeric:tabular-nums;}
.sheet-weight small {display:inline;color:var(--muted);font-size:9px;}
.product-price {display:flex;align-items:center;gap:5px;white-space:nowrap;}
.product-price strong {font-size:15px;font-weight:700;letter-spacing:-.3px;}
.product-price .price-unit {font-size:10px;font-weight:400;margin-left:3px;}
.product-price small {font-size:9px;margin:2px 0 0;}
.price-source {display:inline;text-align:left;padding:0;font-size:12px;color:var(--muted);margin:0;line-height:1.5;}
.price-source:hover {color:var(--blue);}
.row-quantity,.cart-quantity {min-width:0;}
.row-quantity {display:flex;align-items:center;gap:7px;}
.order-controls {display:flex;gap:5px;align-items:center;}
.order-units {display:flex;flex-shrink:0;border:1px solid #b8cfdd;border-radius:4px;overflow:hidden;}
.order-units button {padding:6px 5px;font-size:10px;background:#fff;color:var(--blue);min-width:23px;}
.order-units button[aria-pressed=true] {background:var(--blue);color:white;}
.order-stepper {display:flex;border:1px solid #b8cfdd;border-radius:4px;min-width:0;background:#fff;overflow:hidden;}
.order-stepper button {font-size:14px;color:var(--blue);width:20px;flex-shrink:0;padding:0;}
.order-stepper input {min-width:0;width:43px;height:29px;padding:3px 1px;border:0;text-align:center;font-size:10px;color:var(--ink);background:#fff;appearance:textfield;}
.order-stepper input::-webkit-inner-spin-button,.order-stepper input::-webkit-outer-spin-button {appearance:none;margin:0;}
.order-equivalent {display:block;margin-top:4px;font-size:8px;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums;}
.row-quantity .order-equivalent {margin:0;white-space:nowrap;font-size:9px;}
.product-actions {justify-content:stretch;}
.product-actions .add-button {font-size:10px;font-weight:650;min-width:0;width:100%;height:31px;padding:0 7px;white-space:nowrap;}
.cart-line {grid-template-columns:minmax(0,1fr) 178px 22px;}
.cart-line .order-stepper input {min-height:0;width:79px;border:0;padding:4px 1px;height:31px;}
.cart-line .order-equivalent {font-size:9px;}
.grid .sheet-maker,.grid .sheet-standard,.grid .sheet-weight {font-size:11px;}
.grid .product-price {margin-top:5px;}
.grid .product-name {white-space:normal;font-size:13px;}
.grid .product-primary {display:flex;align-items:start;}
.grid .product-primary>div {display:block;}
.grid .row-quantity {display:block;}
.grid .order-equivalent {margin-top:7px;}
.grid .order-stepper {flex:1;}
.grid .order-stepper input {width:100%;}
.grid .product-actions .add-button {width:100%;height:38px;}
@media(max-width:1200px) and (min-width:701px) {
  .table-labels,.product-list:not(.grid) .product-row {grid-template-columns:minmax(225px,1fr) 120px 94px 61px 109px 159px 70px;gap:8px;}
  .product-name {font-size:10px;}
  .product-price strong {font-size:13px;}
  .sheet-maker,.sheet-standard {font-size:9px;}
  .row-quantity .order-equivalent {display:none;}
}
@media(max-width:950px) and (min-width:701px) {
  .table-labels,.product-list:not(.grid) .product-row {grid-template-columns:minmax(225px,1fr) 100px 109px 144px 68px;gap:8px;}
  .sheet-standard,.sheet-weight,.table-labels .standard-column-label,.table-labels .weight-column-label {display:none;}
  .product-name {white-space:nowrap;}
}
@media(max-width:700px) {
  .table-labels {display:none!important;}
  .product-list:not(.grid) .product-row {display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;padding:15px;min-height:0;height:auto;}
  .product-primary {grid-column:1/-1;display:flex!important;}
  .product-name {white-space:normal;font-size:12px;line-height:1.6;}
  .sheet-maker,.sheet-standard {display:block;font-size:10px;}
  .sheet-weight {display:block;font-size:11px;}
  .product-price {grid-column:2;grid-row:3;}
  .product-price strong {font-size:16px;}
  .product-price .request-price {font-size:12px;}
  .row-quantity {grid-column:1;}
  .row-quantity {display:block;}
  .row-quantity .order-equivalent {display:block;margin-top:6px;font-size:9px;}
  .product-list:not(.grid) .product-actions {grid-column:2;display:flex;align-items:start;}
  .product-actions .add-button {height:32px;font-size:11px;}
  .order-stepper {flex:1;}
  .order-stepper input {width:100%;font-size:11px;}
  .price-source {font-size:9px;}
  .order-equivalent {font-size:9px;}
  .cart-line {grid-template-columns:minmax(0,1fr) 22px;gap:12px;}
  .cart-line>div:first-child {grid-column:1;}
  .cart-line>.cart-quantity {grid-column:1;max-width:210px;}
  .cart-line>.remove {grid-column:2;grid-row:1;align-self:start;}
  .cart-line .order-controls {max-width:210px;}
  .cart-line .order-stepper input {width:100%;}
}
