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

.tev-cat-domain{
  position:relative;
  margin:0 0 2px;
  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-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}
}
