/* assets/css/tr-front.css */
table.tr-tarifs {
  border-collapse: collapse;
}
table.tr-tarifs th, table.tr-tarifs td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
table.tr-tarifs td input[type="number"] {
  width: 120px;
}
table.tr-tarifs .tr-facial {
  font-weight: 600;
}

/* Pleine largeur uniquement pour l'endpoint Mes tarifs */
.woocommerce-account .woocommerce-MyAccount-content .tr-mes-tarifs {
  width: 100vw;                        /* pleine largeur viewport */
  margin-left: calc(-50vw + 50%);      /* recentrer */
  padding: 0 20px;                     /* marges latérales */
  max-width: none;                     /* annule les limites du thème */
}

.tr-mes-tarifs .tr-tarifs-wrapper table.tr-tarifs {
  width: 100%;
}

/* TOOGLE */

.tr-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-toggle-label {
  font-weight: normal;
  transition: font-weight 0.3s;
}

.tr-toggle-label.active {
  font-weight: 600;
}

.tr-toggle-switch {
  position: relative;
  width: 60px;
  height: 28px;
  border: 1px solid #000;
  border-radius: 14px;
  background: #aaa;
}

.tr-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  transition: left 0.6s;
}

.tr-toggle[data-mode="coef"] .tr-toggle-knob {
  left: 34px;
}
.tr-toggle[data-mode="marge"] .tr-toggle-knob {
  left: 2px;
}
