/* =========================
   CONTAINER GLOBAL
========================= */

.mes-rdv {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

/* =========================
   ONGLET NAVIGATION
========================= */

.rdv-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 30px;
}

.rdv-tabs a {
  position: relative;
  padding-bottom: 12px;
  font-size: 15px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}

.rdv-tabs a.active {
  color: #111827;
  font-weight: 600;
}

.rdv-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: #111827;
}

/* =========================
   SECTION COMMERCE
========================= */

.rdv-commerce {
  margin-bottom: 40px;
}

.rdv-commerce h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #111827;
}

/* =========================
   TABLEAU RDV
========================= */

.rdv-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.rdv-table thead {
  background: #f9fafb;
}

.rdv-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rdv-table td {
  padding: 16px;
  font-size: 14px;
  color: #111827;
  border-top: 1px solid #e5e7eb;
  vertical-align: middle;
}

/* =========================
   STATUTS LIGNES
========================= */

.rdv-table tr.status-confirmed {
  background: #ecfdf5;
}

.rdv-table tr.status-pending {
  background: #fff7ed;
}

.rdv-table tr.status-completed {
  background: #eff6ff;
}

.rdv-table tr.status-cancelled,
.rdv-table tr.status-refused {
  background: #f9fafb;
  opacity: 0.6;
}

/* =========================
   STATUT TEXTE
========================= */

.status-label {
  font-weight: 600;
  font-size: 13px;
  text-transform: capitalize;
}

/* =========================
   ACTIONS
========================= */

.rdv-table td:last-child {
  text-align: right;
}

.rdv-cancel-btn {
  background: transparent;
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.rdv-cancel-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

/* =========================
   EMPTY STATE
========================= */

.mes-rdv p {
  color: #6b7280;
  font-size: 15px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

  .rdv-table thead {
    display: none;
  }

  .rdv-table,
  .rdv-table tbody,
  .rdv-table tr,
  .rdv-table td {
    display: block;
    width: 100%;
  }

  .rdv-table tr {
    margin-bottom: 16px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
  }

  .rdv-table td {
    border: none;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
  }

  .rdv-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    margin-right: 10px;
  }

  .rdv-table td:last-child {
    justify-content: flex-end;
  }
}