.joanne_main-container {
  width: 100%;
}

/*CATALOGUE TABS*/

.onglet-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 20px 0 8px 0;
}

.onglet-nav li label {
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  background: #f5f5f5;
  border-radius: 5px 5px 0 0;
  border: 1px solid #ddd;
  border-bottom: none;
}

.onglet-contenu {
  display: none;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 0 5px 5px 5px;
  background: #fff;
  -webkit-border-radius: 0 5px 5px 5px;
  -moz-border-radius: 0 5px 5px 5px;
  -ms-border-radius: 0 5px 5px 5px;
  -o-border-radius: 0 5px 5px 5px;
}

.onglet-contenu.active {
  display: block;
}

input[type="radio"] {
  display: none;
}

/* Sélecteurs pour afficher le bon onglet */
#vins:checked ~ .onglet-nav .vins,
#selection:checked ~ .onglet-nav .selection {
  background: #fff;
  border-bottom: 1px solid #fff;
  font-weight: 900;
}

#vins:checked ~ .onglet-contenu.vins,
#selection:checked ~ .onglet-contenu.selection {
  display: block;
}

.onglet-contenu.selection .joanne-row {
  display: flex !important;
}

/* Labels pour activer les radios */
.onglet-nav li {
  cursor: pointer;
}
.onglet-nav li:hover {
  background: #eee;
}
/**PRODUCT TABLE*/

.joanne-table {
  display: block;
  overflow-x: auto;
  margin: 30px 0;
  text-transform: lowercase;
  font-size: 14px;
}

.joanne-cell::first-letter {
  text-transform: uppercase; /* puis la 1ère lettre en majuscule */
}
.joanne-row {
  display: flex;
  flex-wrap: nowrap;
}
@media (max-width: 768px) {
  .joanne-row {
    flex-wrap: wrap;
  }
  .joanne-cell {
    flex: 1 1 100%;
    border-bottom: 1px solid #ddd;
  }
}
.joanne-row.selected {
  background: #f0f8ff;
}
.joanne-head .joanne-cell {
  text-transform: uppercase;
}

.joanne-head .joanne-cell.sortable {
  cursor: pointer;
}

.joanne-table {
  display: block;
  border: 1px solid #ddd;
}
.joanne-row {
  display: flex;
  padding: 8px;
  border-bottom: 1px solid #eee;
  align-items: center;
}
.joanne-head {
  background: #841214;
  color: white;
  font-weight: 600;
}
.joanne-cell {
  padding: 0 10px;
  flex: 1;
}
.joanne-cell.name,
.joanne-cell.appellation {
  flex: 1.5 !important;
}

.prix,
.format,
.millesime,
.selection,
.interdiction {
  text-align: center;
}

.joanne-cell.prix {
  width: 120px;
  flex: 0 0 140px;
}

.joanne-row:not(.joanne-head) .joanne-cell.joanne-cell.prix {
  color: #841214 !important;
  font-weight: 900 !important;
}

.joanne-head .joanne-cell[data-sort="asc"]::after {
  content: " ▲";
  font-size: 0.8em;
}
.joanne-head .joanne-cell[data-sort="desc"]::after {
  content: " ▼";
  font-size: 0.8em;
}

.joanne-cell.select {
  width: 80px;
  flex: 0 0 80px;
  text-align: center;
}
#joanne-interdiction-modal {
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  background: #fff;
  padding: 15px;
  border: 1px solid #ccc;
  z-index: 9999;
  width: 500px;
  padding: 40px;
  box-shadow: 0 0 20px 30px rgba(0, 0, 0, 0.25);
}

#joanne-interdiction-close {
  font-size: 32px;
  margin-bottom: 20px;
  display: inline-block;
}

#joanne-interdiction-close:hover {
  color: red;
  cursor: pointer;
}

/*impression*/
#joanne-show-print-form {
  margin-bottom: 30px;
}

.joanne-selection-form {
  padding: 20px;
  background: #f5f5f5;
  margin-bottom: 40px;
}

.joanne-refresh-section {
  display: flex;
  align-items: flex-end;
  justify-content: end;
  margin: 20px 0;
}

/*Filter everything support*/
@media screen and (min-width: 960px) {
  .onglet-contenu .wpc-horizontal-layout .wpc-filters-widget-wrapper {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: repeat(6, 1fr);
  }

  .onglet-contenu .wpc-filters-widget-wrapper > :first-child {
    grid-column: 1 / -1;
  }

  .onglet-contenu .wpc-filters-widget-wrapper > :not(:first-child) {
    width: auto !important;
    max-width: none !important;
    padding: 0 5px;
  }
}

.onglet-contenu .wpc-filter-content .wpc-filters-widget-select {
  font-size: 12px;
}
