/* RESET simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: system-ui, sans-serif;
  background: #f5f5f5;
  color: #111;
}

h1 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* CONTAINER */
.container {
  padding: 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.head-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dashboard-card {
    background: #fff;
    border-radius: 14px;
    padding: 11px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    width: 100%;
}

.rdv-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.rdv-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}

.rdv-date {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.rdv-comment {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.4;
}

.rdv-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
}

.btn-danger {
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: system-ui, sans-serif;
    font-size: 0.8rem;
}

.btn-link {
    text-decoration: none;
    background: #eff6ff;
    color: #2563eb;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
}

.tuile-user {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
}

.tuile {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.chart {
  position: relative;
  padding: 10px;
}

.chart canvas {
    max-height: 250px;
}

.btn-primary {
    display: inline-block;
    margin: 0 0 16px 0;
    padding: 10px 14px;
    background: #4f8fa3;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-form {
  margin-top: 15px;
}

form div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}



/* HEADER */
.header {
  background: #548a9b;
  color: white;
}

/* INNER */
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

/* LOGO */
.header__logo {
  font-weight: bold;
  font-size: 18px;
}

/* BURGER */
.header__toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

/* NAV MOBILE */
.nav {
  display: none;
  flex-direction: column;
  background: #548a9b;
}

.nav a {
  padding: 14px 16px;
  text-decoration: none;
  color: white;
  border-top: 1px solid #2d4e58;
}

.nav a:hover {
  color: #ce6e1a;
}

/* ACTIVE */
.nav.active {
  display: flex;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    font-size: 11px;
}

table.dataTable tbody tr {
    background: #f9fafb;
}

table.dataTable tbody td {
    padding: 12px 10px;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

/* DESKTOP */
@media (min-width: 768px) {

  .header__toggle {
    display: none;
  }

  .nav {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
  }

  .nav a {
    border: none;
  }

}