/* TERROIRS VIVANTS - Admin catalogue, single stylesheet */

.tev-cat-domain{
  position:relative;
  margin:0 0 1px;
  border:1px solid #ddd6da;
  border-radius:7px;
  background:#fff;
  color:#21161f;
  overflow:visible;
  z-index:1;
}
.tev-cat-domain.is-open{border-color:#cfc4ca}

/* Hors catalogue: separate slate group */
.tev-out-section{
  margin-top:14px;
  padding-top:2px;
}
.tev-out-divider{
  min-height:28px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 8px;
  margin:0 0 4px;
  border-top:1px solid #aeb8bf;
  color:#465563;
}
.tev-out-divider span{
  margin-top:-1px;
  padding-right:3px;
  font-size:9px;
  font-weight:700;
  letter-spacing:.09em;
}
.tev-out-divider small{
  font-size:8px;
  font-weight:500;
  color:#77838b;
}
.tev-cat-domain.is-out{
  border-color:#b9c2c8;
  background:#f5f7f8;
}
.tev-cat-domain.is-out>.tev-cat-head{
  background:#e7ecef;
}
.tev-cat-domain.is-out>.tev-cat-head h2{
  color:#35434d;
}
.tev-cat-domain.is-out>.tev-cat-head small{
  color:#66747d;
}
.tev-cat-domain.is-out .tev-domain-actions .pill{
  background:#465563;
  color:#fff;
}
.tev-cat-domain.is-out .tev-menu-trigger{
  color:#465563!important;
}
.tev-cat-domain.is-out.is-open{
  border-color:#aeb8bf;
}

.tev-cat-head{
  min-height:34px;
  padding:7px 8px;
  display:flex;
  align-items:center;
  gap:5px;
  background:#faf8f9;
  border-radius:7px;
  cursor:pointer;
  position:relative;
  overflow:visible;
  z-index:2;
}
.tev-cat-domain.is-open>.tev-cat-head{
  border-bottom:1px solid #e5dfe2;
  border-radius:7px 7px 0 0;
}
.tev-cat-title{flex:1;min-width:0;text-align:left}
.tev-profile-btn{
  height:22px;
  min-height:22px;
  padding:0 7px;
  border:1px solid #d8cfd4;
  border-radius:6px;
  background:#fff;
  color:#512044;
  font-size:8px;
  font-weight:600;
  white-space:nowrap;
}
.tev-profile-btn:hover{background:#f5f0f3}
.tev-cat-head h2{margin:0;font:600 11px/1.05 Inter,Arial,sans-serif;color:#21161f}
.tev-cat-head small{display:block;margin-top:1px;font:500 7px/1 Inter,Arial,sans-serif;color:#6c6066}
.tev-cat-domain:not(.is-open)>.tev-gridwrap,
.tev-cat-domain:not(.is-open)>.tev-cat-footer{display:none!important}

.tev-domain-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:4px;
}
.tev-domain-actions .pill{
  padding:2px 6px;
  border:0;
  background:#f3f0f2;
  font-size:8px;
  color:#44383f;
}
.tev-action-menu{
  position:relative;
  z-index:20;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}
.tev-domain-menu{z-index:30}
.tev-row-menu{width:22px;height:22px}
.tev-cat-domain.tev-menu-open{z-index:1000}

.tev-action-menu .tev-menu-trigger{
  all:unset!important;
  box-sizing:border-box!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  cursor:pointer!important;
  color:#5b214f!important;
  font:800 18px/1 Arial,sans-serif!important;
  text-align:center!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
.tev-action-menu .tev-menu-trigger:hover,
.tev-action-menu .tev-menu-trigger:focus,
.tev-action-menu .tev-menu-trigger:active{
  all:unset!important;
  box-sizing:border-box!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  color:#32102f!important;
  font:800 18px/1 Arial,sans-serif!important;
  text-align:center!important;
}

.tev-action-popover{
  position:fixed!important;
  z-index:10000!important;
  min-width:145px;
  padding:5px;
  border:1px solid #d9d1d6;
  border-radius:9px;
  background:#fff;
  box-shadow:0 10px 28px rgba(35,20,30,.15);
}
.tev-action-popover[hidden]{display:none!important}
.tev-action-popover button{
  display:block;
  width:100%;
  padding:7px 9px;
  border:0;
  border-radius:6px;
  background:transparent;
  text-align:left;
  color:#32102f;
  font-size:12px;
}
.tev-action-popover button:hover{background:#f6f2f4}
.tev-action-popover button.danger{color:#9a3f3f}



.tev-tariff-head{
  position:relative;
  min-width:0;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px 0 2px;
}
.tev-tariff-head input{
  width:100%;
  height:24px;
  padding:0 2px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#584b52;
  text-align:center;
  font-size:9px;
  font-weight:800;
  outline:0;
}
.tev-tariff-head input:hover{background:#faf8f9}
.tev-tariff-head input:focus{
  background:#fff;
  outline:1px solid #d8cfd4;
}
.tev-tariff-delete{
  position:absolute;
  right:0;
  top:50%;
  width:14px;
  height:14px;
  margin-top:-7px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#9a7c89;
  font:600 13px/14px Arial,sans-serif;
  opacity:0;
  pointer-events:none;
}
.tev-tariff-head:hover .tev-tariff-delete,
.tev-tariff-delete:focus{
  opacity:1;
  pointer-events:auto;
}
.tev-tariff-delete:hover{color:#8f3434;background:transparent}
.tev-add-tariff-head{
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.tev-add-tariff-head button{
  width:22px;
  height:22px;
  min-width:22px;
  min-height:22px;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:#4f8a62;
  color:#fff;
  font:700 16px/1 Arial,sans-serif;
  box-shadow:none;
}
.tev-add-tariff-head button:hover,
.tev-add-tariff-head button:focus{
  background:#447956;
  outline:0;
  box-shadow:none;
}
.tev-tariff-spacer{pointer-events:none}

.tev-tariff-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:20000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(32,19,28,.28);
}
.tev-tariff-modal{
  position:relative;
  width:min(310px,calc(100vw - 32px));
  padding:18px;
  border:1px solid #ddd4d9;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 55px rgba(35,20,30,.2);
}
.tev-tariff-modal h3{
  margin:0 28px 14px 0;
  color:#32102f;
  font-size:16px;
  font-weight:600;
}
.tev-tariff-modal label{
  display:block;
  margin-bottom:5px;
  color:#6d6167;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.tev-tariff-qty{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:8px;
  align-items:center;
  margin-bottom:14px;
}
.tev-tariff-qty input{
  height:34px;
  padding:0 8px;
  border:1px solid #d8cfd4;
  border-radius:7px;
  background:#fff;
  color:#21161f;
  font-size:13px;
  outline:0;
}
.tev-tariff-qty input:focus{border-color:#7b5a75;box-shadow:0 0 0 2px rgba(123,90,117,.1)}
.tev-tariff-qty span{font-size:11px;color:#6d6167}
.tev-tariff-modal .btn.primary{min-height:34px;padding:7px 14px}
.tev-tariff-close{
  position:absolute;
  top:9px;
  right:10px;
  width:24px;
  height:24px;
  padding:0;
  border:0;
  background:transparent;
  color:#7d6f76;
  font-size:19px;
  line-height:1;
}
.tev-tariff-close:hover{background:transparent;color:#32102f}

.tev-gridwrap{
  padding:0 10px 2px;
  background:#fff;
  overflow-x:auto;
}
.tev-cat-gridhead,.tev-cat-row{
  display:grid;
  column-gap:6px;
  min-width:1180px;
}
.tev-cat-gridhead{
  height:32px;
  align-items:center;
  border-bottom:1px solid #e5dfe2;
  font-size:9px;
  font-weight:800;
  color:#584b52;
}
.tev-cat-gridhead .center{text-align:center}
.tev-cat-row{
  min-height:40px;
  align-items:center;
  border-bottom:1px solid #eee9eb;
}
.tev-cat-row:last-child{border-bottom:0}
.tev-cat-row.is-inactive{opacity:.5}
.tev-cat-row.is-archived{display:none}
.tev-cat-domain.show-archived .tev-cat-row:not(.is-archived){display:none}
.tev-cat-domain.show-archived .tev-cat-row.is-archived{display:grid}

.tev-cell{
  min-width:0;
  padding:1px 0;
  position:relative;
}
.tev-cell input,.tev-cell select{
  display:block;
  width:100%;
  height:28px;
  min-width:0;
  margin:0;
  padding:0 4px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#171616;
  font:500 11px/28px Inter,Arial,sans-serif;
  box-shadow:none;
}
.tev-cell input:hover,.tev-cell select:hover{background:#faf8f9}
.tev-cell input:focus,.tev-cell select:focus{
  background:#faf8f9;
  outline:1px solid #ddd4d9;
  box-shadow:none;
}
.tev-product-cell{
  display:flex;
  align-items:center;
  gap:5px;
}
.tev-product-cell>input{flex:1;width:auto;font-weight:400}
.tev-product-name-inline{
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:1 1 auto;
  min-width:0;
}
.tev-product-name-inline input{
  flex:0 1 auto!important;
  width:auto!important;
  min-width:24px!important;
  max-width:calc(100% - 17px)!important;
  field-sizing:content;
  font-weight:400;
}

.tev-drag-handle{
  flex:0 0 16px;
  width:16px;
  height:22px;
  padding:0;
  border:0;
  background:transparent;
  color:#968b91;
  cursor:grab;
  touch-action:none;
  font:700 12px/1 Arial;
}
.tev-drag-handle:active{cursor:grabbing}

.tev-color-pick{
  position:relative;
  flex:0 0 9px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#b9b9b9;
}
.tev-color-pick select{
  position:absolute;
  inset:-7px;
  width:23px!important;
  height:23px!important;
  opacity:0;
  cursor:pointer;
}
.tev-wine-bulle{background:#c9a73f}
.tev-wine-blanc{background:#e6cb66}
.tev-wine-rose{background:#df8fa4}
.tev-wine-rouge{background:#741924}
.tev-wine-orange{background:#df7426}

.tev-description button{
  display:block;
  width:100%;
  height:28px;
  padding:0 4px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#5b214f;
  text-align:left;
  font-size:11px;
  font-weight:600;
}
.tev-description button:hover,.tev-description button:focus{
  background:#faf8f9;
  outline:0;
}

.tev-price input{
  width:100%!important;
  min-width:0!important;
  padding:0 2px!important;
  border:0!important;
  border-radius:5px!important;
  background:transparent!important;
  outline:0!important;
  box-shadow:none!important;
  text-align:center;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  appearance:textfield;
  -moz-appearance:textfield;
}
.tev-price input:hover,.tev-price input:focus{background:#faf8f9!important}
.tev-price input::-webkit-outer-spin-button,.tev-price input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.tev-commission{
  display:flex;
  align-items:center;
}
.tev-commission input{
  padding-right:14px;
  text-align:right;
}
.tev-commission span{
  position:absolute;
  right:3px;
  font-size:9px;
  color:#776c72;
}

.tev-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}


.tev-cat-footer{
  display:grid;
  grid-template-columns:minmax(0,610px) 1fr;
  gap:16px;
  align-items:start;
  padding:8px 11px 10px;
  border-top:1px solid #ece7e9;
  background:#fff;
  border-radius:0 0 10px 10px;
}
.tev-shipping{
  width:100%;
  padding:8px 9px;
  border:1px solid #e2dadd;
  border-radius:9px;
  background:#fcfafb;
}
.tev-shipping-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:5px;
}
.tev-shipping-head b{font-size:11px}
.tev-shipping-head small{
  display:block;
  margin-top:1px;
  font-size:8px;
  color:#786e73;
}
.tev-link{
  border:0;
  background:transparent;
  color:#5b214f;
  font-size:10px;
  font-weight:700;
}
.tev-shipping-rows{display:grid;gap:4px}
.tev-shipping-row{
  display:grid;
  grid-template-columns:115px 1fr 22px;
  gap:5px;
  align-items:center;
}
.tev-shipping-row input{
  height:27px;
  padding:0 6px;
  border:0;
  border-radius:5px;
  background:#f5f1f3;
  font-size:10px;
}
.tev-shipping-row input:focus{
  outline:1px solid #d5cbd0;
  background:#fff;
}
.tev-delete{
  width:22px;
  height:22px;
  border:0;
  background:transparent;
  color:#9a3f3f;
  font-size:15px;
}
.tev-shipping-empty{font-size:10px;color:#84787e}
.tev-footer-actions{
  justify-self:end;
  display:flex;
  gap:7px;
  white-space:nowrap;
}
.tev-footer-actions .btn{min-height:32px;padding:7px 12px}

.tev-dragging{opacity:.45}
.tev-drop-before{box-shadow:inset 0 2px 0 #5b214f}
.tev-drop-after{box-shadow:inset 0 -2px 0 #5b214f}

@media(max-width:900px){
  .tev-cat-footer{grid-template-columns:1fr}
  .tev-footer-actions{justify-self:start;flex-wrap:wrap}
}

.tev-qavailable input{
  text-align:center!important;
  font-variant-numeric:tabular-nums;
}
.tev-admin-stock-marker{
  position:relative;
  display:inline-block;
  flex:0 0 11px;
  width:11px;
  height:9px;
  margin-left:2px;
  border:1.3px solid #512044;
  border-radius:1px;
}
.tev-admin-stock-marker:before,
.tev-admin-stock-marker:after{
  content:"";
  position:absolute;
  left:50%;
  top:-1px;
  width:1px;
  height:9px;
  background:#512044;
  transform-origin:top center;
}
.tev-admin-stock-marker:before{transform:translateX(-50%) rotate(33deg)}
.tev-admin-stock-marker:after{transform:translateX(-50%) rotate(-33deg)}

.tev-admin-stock-only{
  white-space:nowrap;
  font-weight:700;
}
.tev-admin-stock-only.active{
  background:#512044!important;
  border-color:#512044!important;
  color:#fff!important;
}


/* V475 — catalogue mobile domain cards */
@media(max-width:700px){
  body #app .tev-cat-domain>.tev-cat-head{
    display:grid!important;
    grid-template-columns:24px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    gap:7px 8px!important;
    min-height:0!important;
    padding:9px 10px!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-domain-drag{
    grid-column:1!important;
    grid-row:1!important;
    align-self:center!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-cat-title{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    width:100%!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-cat-title h2{
    display:block!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
    font-size:14px!important;
    line-height:1.15!important;
    word-break:normal!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-cat-title small{
    margin-top:3px!important;
    font-size:9px!important;
    line-height:1.15!important;
    white-space:normal!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-domain-actions{
    grid-column:1 / -1!important;
    grid-row:2!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) 28px!important;
    gap:6px!important;
    align-items:center!important;
  }
  body #app .tev-cat-domain .tev-domain-actions .pill{
    justify-self:start!important;
    white-space:nowrap!important;
  }
  body #app .tev-cat-domain .tev-domain-actions .tev-profile-btn,
  body #app .tev-cat-domain .tev-domain-actions .tev-orders-btn{
    width:100%!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 8px!important;
    font-size:11px!important;
    border-radius:9px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body #app .tev-cat-domain .tev-domain-menu{
    position:relative!important;
    width:28px!important;
    height:34px!important;
    display:grid!important;
    place-items:center!important;
    z-index:80!important;
  }
  body #app .tev-cat-domain .tev-domain-menu>.tev-menu-trigger{
    width:28px!important;
    height:34px!important;
    min-width:28px!important;
    min-height:34px!important;
  }
  body #app .tev-cat-domain .tev-domain-menu>.tev-action-popover{
    position:absolute!important;
    top:calc(100% + 4px)!important;
    right:0!important;
    left:auto!important;
    min-width:176px!important;
    max-width:min(240px,calc(100vw - 28px))!important;
    z-index:10001!important;
  }
}


/* V476 — mobile catalogue actions: icons only */
@media(max-width:700px){
  body #app .admin-catalogue-toolbar button.btn,
  body #app .tev-cat-domain .tev-domain-actions .tev-profile-btn,
  body #app .tev-cat-domain .tev-domain-actions .tev-orders-btn{
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0!important;
    display:inline-grid!important;
    place-items:center!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    font-size:0!important;
    line-height:0!important;
  }
  body #app .admin-catalogue-toolbar button.btn::before,
  body #app .tev-cat-domain .tev-domain-actions .tev-profile-btn::before,
  body #app .tev-cat-domain .tev-domain-actions .tev-orders-btn::before{
    content:"";
    display:block;
    width:18px;
    height:18px;
    background:currentColor;
    -webkit-mask:var(--tev-mobile-action-icon) center/contain no-repeat;
    mask:var(--tev-mobile-action-icon) center/contain no-repeat;
  }
  body #app .admin-catalogue-toolbar .tev-admin-stock-only{
    --tev-mobile-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M3%203h18v4H3V3zm2%206h14v12H5V9zm4%203h6v2H9v-2z'/%3E%3C/svg%3E");
  }
  body #app .admin-catalogue-toolbar button[onclick="openAddVigneron()"]{
    --tev-mobile-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M14%2012a4%204%200%201%200-8%200%204%204%200%200%200%208%200zm-4%202c-4%200-7%202-7%204.5V21h14v-2.5C17%2016%2014%2014%2010%2014zm9-8V3h-2v3h-3v2h3v3h2V8h3V6h-3z'/%3E%3C/svg%3E");
  }
  body #app .admin-catalogue-toolbar .pdf-generate-btn{
    --tev-mobile-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M6%202h8l4%204v16H6V2zm7%202v4h4l-4-4zM8%2011h8v2H8v-2zm0%204h8v2H8v-2z'/%3E%3C/svg%3E");
  }
  body #app .admin-catalogue-toolbar button[onclick="tevShowArchived()"]{
    --tev-mobile-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M3%204h18v5H3V4zm2%207h14v9H5v-9zm4%202v2h6v-2H9z'/%3E%3C/svg%3E");
  }
  body #app .tev-cat-domain .tev-domain-actions .tev-profile-btn{
    --tev-mobile-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%2012a5%205%200%201%200-10%200%205%205%200%200%200%2010%200zm0%202c-4.42%200-8%202.24-8%205v3h16v-3c0-2.76-3.58-5-8-5z'/%3E%3C/svg%3E");
  }
  body #app .tev-cat-domain .tev-domain-actions .tev-orders-btn{
    --tev-mobile-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M8%202h8v2h3v18H5V4h3V2zm2%202v2h4V4h-4zm-1%206h8v2H9v-2zm0%204h8v2H9v-2z'/%3E%3C/svg%3E");
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-domain-actions{
    grid-template-columns:auto 36px 36px 28px!important;
    justify-content:start!important;
  }
}


/* V477 — refined catalogue action icons */
.tev-icon-action::before{content:none!important;display:none!important}
.tev-icon-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-width:0;
}
.tev-action-icon{
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 17px;
  width:17px;
  height:17px;
  line-height:0;
}
.tev-action-icon svg{
  display:block!important;
  width:17px;
  height:17px;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.admin-catalogue-toolbar .tev-icon-action{
  min-height:34px;
  padding:7px 10px;
  border-color:#d8cfd4;
  background:#fff;
  color:#512044;
  font-size:10px;
  font-weight:650;
  white-space:nowrap;
}
.admin-catalogue-toolbar .tev-icon-action:hover{
  background:#f5f0f3;
  border-color:#cbbbc4;
}
.admin-catalogue-toolbar .tev-admin-stock-only.active{
  background:#512044!important;
  color:#fff!important;
}
.tev-domain-actions .tev-icon-action{
  height:26px;
  min-height:26px;
  padding:0 7px;
  border:1px solid #d8cfd4;
  border-radius:7px;
  background:#fff;
  color:#512044;
  font-size:8px;
  font-weight:600;
}
.tev-domain-actions .tev-icon-action .tev-action-icon,
.tev-domain-actions .tev-icon-action .tev-action-icon svg{
  width:14px;
  height:14px;
  flex-basis:14px;
}
@media(max-width:700px){
  body #app .admin-catalogue-toolbar{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto repeat(4,40px)!important;
    align-items:center!important;
    gap:6px!important;
    width:100%;
  }
  body #app .admin-catalogue-toolbar>label{grid-column:1;margin:0!important;white-space:nowrap}
  body #app .admin-catalogue-toolbar>select{grid-column:2;width:100%!important;min-width:0!important}
  body #app .admin-catalogue-toolbar>.pill{grid-column:3;white-space:nowrap}
  body #app .admin-catalogue-toolbar>.tev-icon-action{
    box-sizing:border-box!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
    border-radius:10px!important;
    overflow:hidden!important;
    font-size:0!important;
    line-height:0!important;
  }
  body #app .admin-catalogue-toolbar>.tev-icon-action .tev-action-label,
  body #app .tev-cat-domain .tev-domain-actions .tev-icon-action .tev-action-label{
    display:none!important;
    width:0!important;
    max-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body #app .admin-catalogue-toolbar>.tev-icon-action .tev-action-icon,
  body #app .admin-catalogue-toolbar>.tev-icon-action .tev-action-icon svg{
    width:20px!important;
    height:20px!important;
    flex-basis:20px!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-domain-actions{
    grid-template-columns:auto repeat(3,30px)!important;
    justify-content:start!important;
  }
  body #app .tev-cat-domain .tev-domain-actions .tev-icon-action{
    box-sizing:border-box!important;
    width:30px!important;
    min-width:30px!important;
    height:30px!important;
    min-height:30px!important;
    padding:0!important;
    border-radius:8px!important;
    overflow:hidden!important;
    font-size:0!important;
    line-height:0!important;
  }
  body #app .tev-cat-domain .tev-domain-actions .tev-icon-action .tev-action-icon,
  body #app .tev-cat-domain .tev-domain-actions .tev-icon-action .tev-action-icon svg{
    width:16px!important;
    height:16px!important;
    flex-basis:16px!important;
  }
}
@media(max-width:560px){
  body #app .admin-catalogue-toolbar{
    grid-template-columns:auto minmax(0,1fr) repeat(4,38px)!important;
  }
  body #app .admin-catalogue-toolbar>.pill{
    grid-column:1 / span 2!important;
    grid-row:2!important;
    justify-self:start!important;
  }
  body #app .admin-catalogue-toolbar>.tev-icon-action{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
  }
}


/* V478 — mobile catalogue: one-line domains, no drag/menu/region/status */
@media(max-width:700px){
  body #app .tev-cat-domain>.tev-cat-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-rows:1fr!important;
    align-items:center!important;
    gap:7px!important;
    min-height:48px!important;
    padding:7px 10px!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-domain-drag,
  body #app .tev-cat-domain .tev-domain-menu,
  body #app .tev-cat-domain .tev-domain-actions .pill,
  body #app .tev-cat-domain>.tev-cat-head>.tev-cat-title small{
    display:none!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-cat-title{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    width:auto!important;
    display:block!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-cat-title h2{
    margin:0!important;
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:14px!important;
    line-height:1.1!important;
  }
  body #app .tev-cat-domain>.tev-cat-head>.tev-domain-actions{
    grid-column:2 / span 2!important;
    grid-row:1!important;
    width:auto!important;
    min-width:auto!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
  }
  body #app .tev-cat-domain .tev-domain-actions .tev-profile-btn,
  body #app .tev-cat-domain .tev-domain-actions .tev-orders-btn{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0!important;
    display:inline-grid!important;
    place-items:center!important;
    flex:0 0 34px!important;
    border-radius:9px!important;
  }
  body #app .tev-cat-domain .tev-domain-actions .tev-profile-btn .tev-action-icon,
  body #app .tev-cat-domain .tev-domain-actions .tev-orders-btn .tev-action-icon,
  body #app .tev-cat-domain .tev-domain-actions .tev-profile-btn .tev-action-icon svg,
  body #app .tev-cat-domain .tev-domain-actions .tev-orders-btn .tev-action-icon svg{
    width:17px!important;
    height:17px!important;
    flex-basis:17px!important;
  }
  body #app .tev-cat-domain .tev-domain-actions .tev-action-label{
    display:none!important;
  }
}


/* V479 — mobile cuvee rows: name, base price, available qty only */
@media(max-width:700px){
  body #app .tev-gridwrap{
    padding:0 10px 2px!important;
    overflow:visible!important;
  }
  body #app .tev-cat-gridhead,
  body #app .tev-cat-row{
    min-width:0!important;
    width:100%!important;
    grid-template-columns:minmax(0,1fr) 82px 66px!important;
    column-gap:8px!important;
  }
  body #app .tev-cat-gridhead{
    height:30px!important;
  }
  body #app .tev-cat-gridhead>*{
    display:none!important;
  }
  body #app .tev-cat-gridhead>div:first-child{
    display:block!important;
    grid-column:1!important;
  }
  body #app .tev-cat-gridhead>div:nth-child(7){
    display:block!important;
    grid-column:2!important;
    text-align:center!important;
  }
  body #app .tev-cat-gridhead>div:nth-child(7)::before{
    content:"PRIX";
    font:inherit;
  }
  body #app .tev-cat-gridhead>div:nth-child(7)>*{
    display:none!important;
  }
  body #app .tev-cat-gridhead>div:nth-last-child(2){
    display:block!important;
    grid-column:3!important;
    text-align:center!important;
    font-size:0!important;
  }
  body #app .tev-cat-gridhead>div:nth-last-child(2)::before{
    content:"Q DISPO";
    font:800 9px/1 Inter,Arial,sans-serif;
    color:#584b52;
  }

  body #app .tev-cat-row{
    min-height:40px!important;
    align-items:center!important;
  }
  body #app .tev-cat-row>.tev-cell{
    display:none!important;
  }
  body #app .tev-cat-row>.tev-product-cell{
    display:flex!important;
    grid-column:1!important;
    min-width:0!important;
    padding:0!important;
  }
  body #app .tev-cat-row>.tev-product-cell>.tev-product-drag,
  body #app .tev-cat-row>.tev-product-cell>.tev-color-pick,
  body #app .tev-cat-row>.tev-product-cell .tev-admin-stock-marker{
    display:none!important;
  }
  body #app .tev-cat-row>.tev-product-cell .tev-product-name-inline{
    width:100%!important;
    min-width:0!important;
    display:block!important;
  }
  body #app .tev-cat-row>.tev-product-cell .tev-product-name-inline input{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:32px!important;
    padding:0!important;
    font-size:13px!important;
    line-height:32px!important;
    font-weight:500!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* First tariff = base price. It always follows description. */
  body #app .tev-cat-row>.tev-description + .tev-price{
    display:block!important;
    grid-column:2!important;
    padding:0!important;
  }
  body #app .tev-cat-row>.tev-description + .tev-price input{
    display:block!important;
    width:100%!important;
    height:32px!important;
    padding:0 2px!important;
    text-align:right!important;
    font-size:13px!important;
    line-height:32px!important;
    font-weight:700!important;
  }
  body #app .tev-cat-row>.tev-description + .tev-price input::after{
    content:" €";
  }

  body #app .tev-cat-row>.tev-qavailable{
    display:block!important;
    grid-column:3!important;
    padding:0!important;
  }
  body #app .tev-cat-row>.tev-qavailable input{
    display:block!important;
    width:100%!important;
    height:32px!important;
    padding:0 2px!important;
    text-align:center!important;
    font-size:13px!important;
    line-height:32px!important;
    font-weight:600!important;
  }

  body #app .tev-cat-footer{
    display:none!important;
  }
}


/* V481 — align mobile price header/value and stock quantity */
@media(max-width:700px){
  body #app .tev-cat-gridhead,
  body #app .tev-cat-row{
    grid-template-columns:minmax(0,1fr) 96px 64px!important;
    column-gap:10px!important;
  }
  body #app .tev-cat-gridhead>div:nth-child(7){
    display:block!important;
    grid-column:2!important;
    text-align:right!important;
    padding-right:2px!important;
  }
  body #app .tev-cat-gridhead>div:nth-child(7)::before{
    content:"PRIX";
    display:block;
    width:100%;
    text-align:right;
  }
  body #app .tev-cat-row>.tev-description + .tev-price{
    display:block!important;
    grid-column:2!important;
    width:100%!important;
  }
  body #app .tev-cat-row>.tev-description + .tev-price input{
    text-align:right!important;
    padding-right:2px!important;
  }
  body #app .tev-cat-gridhead>div:nth-last-child(2){
    grid-column:3!important;
    text-align:center!important;
  }
  body #app .tev-cat-row>.tev-qavailable{
    grid-column:3!important;
    width:100%!important;
  }
}


/* Beta V484 — vertically align mobile catalogue headers */
@media(max-width:700px){
  body #app .tev-cat-gridhead{
    display:grid!important;
    align-items:center!important;
    height:34px!important;
    min-height:34px!important;
    line-height:1!important;
  }
  body #app .tev-cat-gridhead>div:first-child,
  body #app .tev-cat-gridhead>div:nth-child(7),
  body #app .tev-cat-gridhead>div:nth-last-child(2){
    align-self:center!important;
    margin:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
    line-height:1!important;
  }
  body #app .tev-cat-gridhead>div:nth-child(7)::before,
  body #app .tev-cat-gridhead>div:nth-last-child(2)::before{
    display:block!important;
    line-height:1!important;
  }
}
