/* =========================================================
   ESPACE CLIENT - ONGLET
   ========================================================= */

.lwd-client-tabs {
    margin: 0 auto;
}

.lwd-client-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.lwd-client-tab-btn {
    border: 1px solid #ddd;
    background: #f7f7f7;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.lwd-client-tab-btn.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

.lwd-client-tab-content {
    display: none;
}

.lwd-client-tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .lwd-client-tabs-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lwd-client-tab-btn {
        width: 100%;
        text-align: left;
    }
}
/* =========================================================
   ESPACE CLIENT - DETAIL RESERVATION
   ========================================================= */

.lwd-reservation-detail-page {
    max-width: 1000px;
    margin: 0 auto;
}

.lwd-reservation-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.lwd-reservation-detail-header h2 {
    margin: 0 0 6px 0;
    font-size: 32px;
}

.lwd-reservation-subtitle {
    margin: 0;
    color: #666;
}

.lwd-reservation-card-main,
.lwd-reservation-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.lwd-reservation-card-main h3,
.lwd-reservation-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.lwd-reservation-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lwd-reservation-info-item {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 14px 16px;
}

.lwd-reservation-info-item span {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.lwd-reservation-info-item strong {
    display: block;
    font-size: 16px;
    color: #222;
}

.lwd-reservation-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lwd-reservation-address {
    line-height: 1.7;
}

.lwd-reservation-back {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lwd-reservation-detail-header {
        display: block;
    }

    .lwd-reservation-back {
        margin-top: 15px;
        display: inline-block;
    }

    .lwd-reservation-info-grid,
    .lwd-reservation-two-cols {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   ESPACE CLIENT - LISTE RESERVATIONS
   ========================================================= */

.lwd-client-reservations-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.lwd-client-reservations-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
}

.lwd-client-reservations-table th,
.lwd-client-reservations-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    vertical-align: middle;
    font-size: 14px;
}

.lwd-client-reservations-table th {
    background: #f7f7f7;
    font-weight: 700;
    white-space: nowrap;
}

.lwd-client-reservations-table td {
    background: #fff;
}

.lwd-client-reservations-table tr:last-child td {
    border-bottom: none;
}

.lwd-client-reservations-table th:last-child,
.lwd-client-reservations-table td:last-child {
    border-right: none;
}

.lwd-client-reservations-table td[data-title="Commande"],
.lwd-client-reservations-table td[data-title="Date"],
.lwd-client-reservations-table td[data-title="Total"],
.lwd-client-reservations-table td[data-title="Action"] {
    white-space: nowrap;
}

.lwd-client-reservations-table td[data-title="Produit"] {
    min-width: 150px;
}

.lwd-client-reservations-table td[data-title="Créneau"] {
    min-width: 170px;
}

.lwd-client-reservations-table td[data-title="Transport"] {
    min-width: 170px;
}

.lwd-client-reservations-table .button {
    white-space: nowrap;
}

.lwd-dashboard-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}
.lwd-logo-secondary {
    border-left: 2px solid #ddd;
    padding-left: 20px;
}
.lwd-dashboard-header {
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
}

.lwd-powered-by {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lwd-dashboard-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.lwd-logo {
    display: block;
    max-height: 90px;
    height: auto;
    width: auto;
}

.lwd-logo-main {
    max-height: 100px;
}

.lwd-logo-secondary {
    max-height: 80px;
    opacity: 0.95;
}
.lwd-dashboard-context{
  margin: 0 0 18px 0;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  font-size: 14px;
  line-height: 1.6;
}

.lwd-dashboard-context strong{
  color: #1d2327;
}
.lwd-dashboard-logo-wrap{
  margin: 10px 0 20px 0;
  text-align: center;
}

.lwd-dashboard-logo{
  max-width: 420px;
  height: auto;
  display: inline-block;
}
.lwd-dash-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:20px;
}

.lwd-dash-card{
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:10px;
  padding:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.lwd-dash-card h3{
  margin:0 0 10px 0;
  font-size:14px;
}

.lwd-dash-value{
  font-size:28px;
  font-weight:700;
  margin-bottom:12px;
}

.lwd-dash-card .description{
  display:block;
  color:#666;
  margin-top:6px;
  font-size:12px;
}
.lwd-repeat-header th {
  background: #fff;
  border-top: 2px solid #dcdcde;
}
.select2-container--default .select2-results__option--highlighted {
  background-color: #2d6cdf !important;
  color: #fff !important;
  border-radius: 4px;
}
.lwd-select2-creneau {
  line-height: 1.2;
  padding: 2px 0;
}

.lwd-select2-creneau__title {
  font-weight: 600;
}

.lwd-select2-creneau__time {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}
/* largeur propre */
.select2-container {
  min-width: 150px;
}

/* hover bleu */
.select2-container--default .select2-results__option--highlighted {
  background-color: #2d6cdf !important;
  color: #fff !important;
}
.select2-container--default .select2-results__option {
  padding-top: 6px;
  padding-bottom: 6px;
}

.select2-container--default .select2-selection--single {
  min-height: 38px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal;
  padding-top: 4px;
  padding-bottom: 4px;
}
.lwd-select2-transport {
  line-height: 1.2;
  padding: 2px 0;
}

.lwd-select2-transport__title {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.lwd-select2-transport__value {
  font-weight: 600;
  font-size: 11px;
}
.lwd-calendar-wrapper {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header select,
.calendar-header button {
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  cursor: pointer;
}

.day-names, .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.day-names {
  background-color: cornflowerblue;
}
.day-names div {
  font-weight: bold;
  padding: 5px 0;
}

.calendar-days .day-cell {
  background: #e9ecef;
  border-radius: 4px;
  margin: 2px;
  padding: 5px;
  font-size: 16px;
  font-weight: bold;
  position: relative;
  cursor: default;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-days .day-cell:hover {
  background: #cce5ff;
}

.calendar-days .today {
  background: #007bff;
  color: white;
  font-weight: bold;
}

.calendar-days .selected {
  background: #b2f2bb !important;
  color: black;
}

.calendar-days .opened {
  background-color: #d4edda !important;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.calendar-days .empty {
  background: transparent;
  cursor: default;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 11px;
  margin-top: 4px;
  width: 100%;
  padding: 2px 4px;
}

.checkbox-container label {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 2px 0;
  cursor: pointer;
}
.checkbox-container label:hover {
  background: #cce5ff;
}

.checkbox-container label:first-child {
  display: flex;
}

#selected-date {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

.lwd-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #d4edda;
  color: black;
  padding: 20px;
  font-size: 16px;
  border-radius: 5px;
  z-index: 9999;
  display: none;
  border: 1px solid #c3e6cb;
}

#year-select {
  width: 80px;
}
#stock-year-select {
  width: 80px;
}


#month-select {
  width: 100px;
}
#stock-month-select {
  width: 100px;
}


label {
  font-weight: bold;
  display: block;
  margin-top: 20px;
}

#lwd-calendrier-produit-container {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-family: Arial, sans-serif;
}

.lwd-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.lwd-cal-header button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#lwd-titre-mois {
  text-align: center;
  font-size: 1.1rem;
  margin: 0;
}

.lwd-calendrier-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day-cell {
  background: #e9ecef;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  transition: background 0.3s;
  font-size: 14px;
  user-select: none;
}

.day-cell:hover {
  background: #d4edda;
}

.day-cell.available {
  background-color: #b2f2bb;
  cursor: pointer;
}

.day-cell.unavailable {
  opacity: 0.3;
  cursor: not-allowed;
}

.empty {
  visibility: hidden;
}

#lwd-date-selectionnee {
  margin-top: 15px;
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 14px;
}
/* ==== Ajout pour le sélecteur de calendrier ==== */
#lwd-cal-selector {
  min-width: 220px;
  margin-right: 8px;
}
.calendar-header label {
  font-weight: 600;
  margin-right: 6px;
}

.lwd-field {
  transition: opacity .18s ease;
}
.lwd-field[aria-hidden="true"] {
  opacity: .0;
}
.lwd-field label input {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
}
.lwd-field label select {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
}
.lwd-weekdays {
  display:grid; grid-template-columns:repeat(7, minmax(28px,1fr)); gap:6px;
  margin-bottom:6px; font-size:12px; opacity:.8;
}
.lwd-weekdays span { text-align:center; }
.phone-only{
	background-color: #ffe066 !important;
}
.lwd-capacity {
  color: #d33;
  margin: 6px 0 10px;
  white-space: pre-line; /* pour gérer les \n */
  font-size: 14px;
}
#lwd-field-transport select,
#lwd-field-voitures input[type="number"] {
  width: 100%;
}


/* ====== Visuel canoë/kayak ====== */
#lwd-boat-visual { margin-top: 10px; }
.lwd-boat-grid{
	display:flex; 
	flex-wrap:wrap;
	align-items:flex-end;
	background: lightcyan;
	border: 1px solid #ddd;
 	border-top: 0px;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}
.lwd-boat-card{ position:relative; display:inline-block; }
.lwd-boat-base{ position:relative; display:block; width:170px; height:auto; z-index:1; } /* ajuste la taille ici */
.lwd-boat-layer{ position:absolute; left:0; top:0; width:100%; height:auto; }
.lwd-boat-adult{ z-index:2; }
.lwd-boat-child{ z-index:3; }
.lwd-boat-msg{ font-size:16px; margin-top:6px; opacity:.8; white-space:pre-line; }

#lwd-boat-head img {
  display:block;
  max-width:100%;
  height:auto;
  border: 1px solid #ddd;
  border-bottom: 0px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

/* === Stocks journaliers : inputs compacts === */
#stock-calendar-days .checkbox-container input[type="number"],
#calendar-days .checkbox-container input[type="number"] {
  width: 70px !important;
  max-width: 70px;
  min-width: 0;
  flex: 0 0 70px;
  box-sizing: border-box;
  text-align: right; /* optionnel : chiffres alignés à droite */
}

/* un peu d’air entre le libellé et l’input */
#stock-calendar-days .checkbox-container label,
#calendar-days .checkbox-container label {
  gap: 6px;
}

/* Bloc stock sous la case jour */
.lwd-stock-block{
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #ddd;
}
.lwd-stock-block .lwd-stock-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.lwd-stock-block label{
  display: flex; align-items: center; gap: 6px; margin-top: 5px;
}
.lwd-stock-block input[type="number"]{
  width: 70px !important; max-width: 70px; flex: 0 0 70px; text-align: right;
}
.lwd-stock-block.is-past input[disabled]{
  background: #f6f7f7; cursor: not-allowed;
}
.lwd-stock-block.saving{
  outline: 2px dashed rgba(0,0,0,.12);
}
/* Masquer le bloc stock quand le jour n'est pas ouvert */
.lwd-stock-block.is-closed { display: none; }

/* (déjà recommandé) style jours passés */
.lwd-stock-block.is-past input[disabled] { background: #f6f7f7; cursor: not-allowed; }

/* Bouton désactivé (optionnel) */
.single_add_to_cart_button.disabled[disabled] {
  opacity: .5;
  pointer-events: none;
}

/* clickable uniquement sur les jours disponibles */
#lwd-cal-grid .day-cell.available { cursor: pointer; }

/* style sélection */
#lwd-cal-grid .day-cell.selected{
  outline: 2px solid #1e90ff;     /* bleu */
  outline-offset: 2px;
  border-radius: 8px;
  /* secours si outline est masqué par des styles internes */
  box-shadow: inset 0 0 0 2px #1e90ff;
}

/* Prix dynamique – breakdown */
.lwd-dynprice { font-weight:600; font-size:18px; margin-bottom:4px; }
.lwd-dynprice-breakdown{ display:none; margin:4px 0 12px; font-size:14px; color:#444; }
.lwd-dynprice-breakdown .row{
  display:flex; justify-content:space-between; gap:12px; padding:2px 0;
  border-bottom:1px dashed rgba(0,0,0,.06);
}
.lwd-dynprice-breakdown .row:last-child{ border-bottom:none; }
.lwd-dynprice-breakdown .label{ opacity:.9; }
.lwd-dynprice-breakdown .mult{ opacity:.75; }
.lwd-dynprice-breakdown .sum{ font-weight:600; }
.lwd-dynprice-breakdown .meta{ font-size:12px; opacity:.75; border:0; padding-top:6px; }

/* Totaux HT/TVA/TTC */
.lwd-dynprice-totals{ display:none; margin:6px 0 8px; font-size:14px; }
.lwd-dynprice-totals .row{
  display:flex; justify-content:space-between; gap:12px; padding:2px 0;
}
.lwd-dynprice-totals .row.total{ font-weight:700; border-top:1px dashed rgba(0,0,0,.1); margin-top:4px; padding-top:6px; }

/* Facultaif : style du bouton Voir sur les grilles */
.lwd-view-product.button { opacity: 1; }

.wc-block-components-product-details__name {
	font-size: 16px;
	font-weight: normal !important;
}
.wc-block-components-product-details__value {
	font-size: 16px;
	font-weight: bold;
}
/* LWD - Couleur de ligne selon statut WooCommerce */
tr.lwd-row-status td {
  transition: background-color .15s ease;
}

/* Pending (en attente de paiement) */
tr.lwd-status-pending td {
  background: rgba(240, 173, 78, 0.5);
}

/* On hold (en attente) */
tr.lwd-status-on-hold td {
  background: rgba(247, 201, 72, 0.5);
}

/* Processing (en cours) */
tr.lwd-status-processing td {
  background: rgba(91, 192, 222, 0.5);
}

/* Completed (terminee) */
tr.lwd-status-completed td {
  background: rgba(92, 184, 92, 0.5);
}

/* Cancelled (annulee) */
tr.lwd-status-cancelled td {
  background: rgba(217, 83, 79, 0.5);
}

/* Failed (echouee) */
tr.lwd-status-failed td {
  background: rgba(169, 68, 66, 0.5);
}

/* Refunded (remboursee) */
tr.lwd-status-refunded td {
  background: rgba(120, 120, 120, 0.5);
}
/* Report (reservation reportee) */
tr.lwd-status-report td {
  background: rgba(155, 89, 182, 0.5);
}
/* Petit effet au survol */
tr.lwd-row-status:hover td {
  filter: brightness(0.98);
}
/* LWD - Légende des statuts */
.lwd-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 10px 0 14px;
  font-size: 13px;
}

.lwd-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ddd;
}

.lwd-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* Couleurs identiques aux lignes */
.lwd-status-pending .lwd-legend-color {
  background: rgba(240, 173, 78, 0.5);
}

.lwd-status-on-hold .lwd-legend-color {
  background: rgba(247, 201, 72, 0.5);
}

.lwd-status-processing .lwd-legend-color {
  background: rgba(91, 192, 222, 0.5);
}

.lwd-status-completed .lwd-legend-color {
  background: rgba(92, 184, 92, 0.5);
}

.lwd-status-cancelled .lwd-legend-color {
  background: rgba(217, 83, 79, 0.5);
}

.lwd-status-failed .lwd-legend-color {
  background: rgba(169, 68, 66, 0.5);
}

.lwd-status-refunded .lwd-legend-color {
  background: rgba(120, 120, 120, 0.5);
}
/* Colonne LWD dans l'édition de commande WooCommerce */
th.lwd-res-header { text-align:left; }
td.lwd-res-cell input, td.lwd-res-cell select { max-width: 100%; }

/* Pagination LWD - centrée */
        .tablenav .tablenav-pages {
            float: none !important;
            text-align: center;
            width: 100%;
            margin: 15px 0;
        }

        .tablenav .tablenav-pages a,
        .tablenav .tablenav-pages span {
            display: inline-block;
            margin: 0 4px;
            padding: 6px 10px;
            border: 1px solid #ccd0d4;
            background: #fff;
            text-decoration: none;
            border-radius: 4px;
        }

        .tablenav .tablenav-pages a:hover {
            background: #f0f0f1;
        }

        .tablenav .tablenav-pages .current-page {
            background: #2271b1;
            color: #fff;
            border-color: #2271b1;
            font-weight: 600;
            cursor: default;
        }
/* =====================================================
   Légende statuts cliquable - LWD
   ===================================================== */

.lwd-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 15px;
}

.lwd-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ccd0d4;
    text-decoration: none;
    color: #1d2327;
    font-size: 13px;
}

.lwd-legend-item:hover {
    background: #f0f0f1;
}

.lwd-legend-item.active {
    box-shadow: inset 0 0 0 2px #2271b1;
    font-weight: 600;
}

/* Pastilles couleur */
.lwd-legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.lwd-legend-item.pending    .dot { background: #f0ad4e; }
.lwd-legend-item.on-hold    .dot { background: #ffe8a1; }
.lwd-legend-item.processing .dot { background: #5bc0de; }
.lwd-legend-item.completed  .dot { background: #5cb85c; }
.lwd-legend-item.cancelled  .dot { background: #f5c6cb; }
.lwd-legend-item.failed     .dot { background: #d9534f; }
.lwd-legend-item.refunded   .dot { background: #adb5bd; }
.lwd-legend-item.report     .dot { background: #9b59b6; }

/* ================================
   MINI CALENDRIER - Tableau réservations
   ================================ */
.lwd-mini-calendar{
  width: 360px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
	margin-left: auto;
	margin-right: auto;
}

.lwd-mini-cal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lwd-mini-cal-title{
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.lwd-mini-cal-title select{
  min-width: 110px;
}

.lwd-mini-cal-daynames{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-weight: 600;
  font-size: 12px;
  opacity: .8;
  margin-bottom: 6px;
}

.lwd-mini-cal-daynames > div{
  text-align: center;
  padding: 4px 0;
}

.lwd-mini-cal-grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.lwd-mini-cal-grid .day-cell{
  height: 34px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: default;
  font-size: 13px;
  position: relative;
  background: #fafafa;
}

.lwd-mini-cal-grid .day-cell.empty{
  border: none;
  background: transparent;
}

.lwd-mini-cal-grid .day-cell.is-clickable{
  cursor: pointer;
  background: #fff;
}

.lwd-mini-cal-grid .day-cell.has-reservations{
  border-color: #7cc08a;
  box-shadow: 0 0 0 1px rgba(124,192,138,.25) inset;
}

.lwd-mini-cal-grid .day-cell.is-selected{
  outline: 2px solid #2271b1;
  background: #eef6ff;
}

.lwd-mini-cal-grid .day-cell .badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2e7d32;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

.lwd-mini-cal-footer{
  margin-top: 10px;
  font-size: 13px;
}
/* =============== Groupes par créneau (Tableau réservations) =============== */
.lwd-res-group-title{
  margin: 18px 0 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-left: 5px solid #2271b1;
  border-radius: 10px;
  font-size: 14px;
}

.lwd-res-group-table{
  margin-bottom: 14px;
  background: #fff;
}

.lwd-res-group-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 18px 0 8px;
}

.lwd-res-group-header .lwd-res-group-title{
  margin:0;
  flex:1;
}
.lwd-note-editor{
  font-size:12px;
}

.lwd-note-editor.lwd-note-saved{
  background:#e7f7ec;
  transition: background .3s;
}

.lwd-res-group-totals{
  margin: 8px 0 18px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
}
.lwd-total-row td{
  background:#f8f9fb;
  border-top:2px solid #2271b1;
}

.lwd-total-row strong{
  font-size:13px;
}

/* =============== Familles (Matin / Après-midi / Journée) =============== */
.lwd-res-family-title{
  margin: 22px 0 10px;
  padding: 10px 12px;
  background: #f3f6fb;
  border: 1px solid #d9e2f2;
  border-left: 6px solid #2271b1;
  border-radius: 10px;
  font-size: 16px;
}
/* =============== Familles (Matin / Après-midi / Journée) =============== */
.lwd-res-family-block{
  margin: 14px 0 18px;
  background: #fff;
  border: 1px solid #d9e2f2;
  border-left: 6px solid #2271b1;
  border-radius: 10px;
  overflow: hidden;
}

.lwd-res-family-header{
  padding: 10px 12px;
  background: #f3f6fb;
  font-size: 15px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lwd-res-family-label{
  display: inline-block;
}

.lwd-res-family-body{
  padding: 10px 12px 2px;
}

/* Dans une famille, on évite le “double margin” du header de créneau */
.lwd-res-family-body .lwd-res-group-header{
  margin-top: 10px;
}

.lwd-res-family-total{
  margin: 12px 0 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e3e8f0;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lwd-res-family-total-right{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lwd-res-ft-item{
  white-space: nowrap;
}
.lwd-res-family-block{
  display: flex;
  flex-direction: column;
}

.lwd-res-family-total{
  margin-top: auto;
  padding: 10px 14px;
  background: #eef3fb;
  border-top: 1px solid #d6deed;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  font-size: 14px;
}

.lwd-res-family-total-values{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.lwd-stale-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lwd-stale-box{
  width: min(520px, 92%);
  background: #fff;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.lwd-stale-title{
  font-weight: 700;
  margin-bottom: 6px;
}

.lwd-stale-sub{
  opacity: .85;
  margin-bottom: 12px;
}

.lwd-stale-actions{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.lwd-pending-banner{
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #f0c36d;
  background: #fff6df;
  border-radius: 10px;
}

.lwd-pending-link{
  text-decoration: none;
  font-weight: 700;
}

.lwd-pending-banner.is-blink{
  animation: lwdBlink 1s infinite;
}
.lwd-stock-summary{
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  opacity: .85;
  white-space: nowrap;
}
.lwd-stock-block.is-closed .lwd-stock-summary{
  opacity: 0.55;
}
/* ===============================
   LWD – Résumé réservés sous champs stock
   =============================== */
.lwd-stock-block .lwd-stock-summary{
  margin-top: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.10);
  color: #1f2937;
}

.lwd-stock-block .lwd-stock-summary .n{
  font-weight: 800;
  font-size: 13px;
}

.lwd-stock-block .lwd-stock-summary .sep{
  opacity: 0.6;
  padding: 0 6px;
}

.lwd-stock-block .lwd-stock-summary.is-loading{
  opacity: 0.75;
}
@keyframes lwdBlink{
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* ===============================
   Impression – verrouillage tailles
   =============================== */
@media print {
/* ===== TOTAL FAMILLE (IMPRESSION) ===== */
.print-family-total .lwd-res-family-total{
  margin-top: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.print-family-total .lwd-res-family-total-title{
  font-size: 14px;
  margin-bottom: 4px;
}

.print-family-total .lwd-res-family-total-values{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.print-family-total .lwd-res-family-total-values span{
  display: inline-block;
}

.print-family-total{
  margin-top: 14px;
  page-break-inside: avoid;
}

/* Le bloc total famille récupéré du back-office */
.print-family-total .lwd-res-family-total{
  border: 1px solid #ddd;
  padding: 10px 12px;
}

  /* Force la taille de police dans la colonne Notes */
  .lwd-note-editor,
  .lwd-note-editor *,
  td .lwd-note-editor {
    font-size: 10px !important;
    line-height: 1.4 !important;
  }

  /* Certains navigateurs "remplacent" le textarea à l'impression */
  textarea.lwd-note-editor {
    -webkit-text-size-adjust: none !important;
    text-size-adjust: none !important;
  }
  textarea.lwd-note-editor { display:none !important; }
  .lwd-print-note {
    font-size:12px;
    line-height:1.4;
    white-space:pre-wrap;
  }
	table{ width:100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
th, td{ border:1px solid #ddd; padding:6px; vertical-align: top; overflow-wrap:anywhere; word-break: break-word; }

	.lwd-print-note{
  font-size: 12px !important;
  line-height: 1.4 !important;
	}
	th.col-note, td.col-note { width: 260px; }

}



@media (max-width: 600px) {
  .calendar-header {
    flex-direction: column;
    gap: 10px;
  }

  .calendar-header select,
  .calendar-header button {
    width: 100%;
    font-size: 16px;
  }

  .day-names, .calendar-days {
    grid-template-columns: repeat(7, 1fr);
    font-size: 10px;
  }

  .calendar-days .day-cell {
    min-height: 100px;
    font-size: 10px;
    padding: 4px;
  }

  .checkbox-container label {
    font-size: 10px;
    line-height: 1.2em;
  }

  #selected-date {
    font-size: 14px;
  }
}


