/* ===== Page Container ===== */
.container {
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== Page Heading ===== */
.container h2 {
  /* color: #333; */
  /* margin-bottom: 24px; */
  padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

/* ===== Alerts ===== */
.alert {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
}
.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}
.alert-danger {
  background-color: #f8d7da;
  color: #842029;
}

/* ===== Filter Form ===== */
form .form-select {
  padding: 8px 12px;
  border-radius: 6px;
}

/* ===== Offline Message ===== */
.text-center.py-5 {
  padding: 60px 20px;
}
.text-center i {
  color: #999;
}
.text-center .lead {
  color: #333;
}

/* ===== Table Styling ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0 30px 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
}
.table thead {
  background-color: #e8f1fc;
}
.table th i {
  margin-right: 0.35rem;
}
.table th,
.table td {
  padding: 12px 16px;
  vertical-align: middle;
}
.table tbody tr:nth-child(odd) {
  background-color: #f2f8ff;
}
.table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

/* Faded style for 'Déjà dispatchée' rows */
.table .table-secondary {
  opacity: 0.5;
  /* font-style: italic;  <-- removed */
}

/* Ensure last two columns don't wrap */
.table td:nth-last-child(2),
.table th:nth-last-child(2),
.table td:last-child,
.table th:last-child {
  min-width: 60px;
  white-space: nowrap;
  text-align: center;
}

/* ===== Badges (Status Labels) ===== */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  /* font-weight: 500;  <-- removed */
}
.bg-warning {
  background-color: #fff3cd;
  color: #856404;
}
.bg-primary {
  background-color: #0d6efd;
  color: #fff;
}
.bg-info {
  background-color: #cff4fc;
  color: #055160;
}
.bg-success {
  background-color: #d1e7dd;
  color: #0f5132;
}
.bg-danger {
  background-color: #f8d7da;
  color: #842029;
}
.bg-secondary {
  background-color: #6ebcff47;
  color: #41464b;
}

/* ===== Buttons ===== */
.btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background-color: #0d6efd;
  color: white;
}
.btn-info {
  background-color: #17a2b8;
  color: white;
}
.btn-secondary {
  background-color: #6c757d;
  color: white;
}
.btn-sm {
  padding: 5px 10px;
  min-width: 110px; /* Optional: makes all buttons same width if you want */
  text-align: center;
}
.btn-third {
    background-color: #17a2b81c;
}
.call-button {
    BACKGROUND-COLOR: #17b83a;
    PADDING: 5px 20px;
    color: #fff;
    border-radius: 6px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span.current {
  padding: 6px 12px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.pagination span.current {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.pagination a:hover {
  background-color: #f0f0f0;
}
.time-emphasis {
  color: #0d6efd; /* Or any highlight color */
  font-weight: bold;
}
.warning-sign {
    cursor: pointer;
    color: orange;
}
.h1 {
     padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}
/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .table thead {
    display: none;
  }
  .table, .table tbody, .table tr, .table td {
    display: block;
  }
  .table tr {
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
  }
  .table td {
    padding: 10px 15px;
    border: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
  }
  .table td::before {
    content: attr(data-label);
    display: block;
    /* font-weight: bold;  <-- removed */
    margin-bottom: 4px;
    color: #666;
  }
  .container {
    padding: 10px 20px;
  }
  .action-mobile-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .pagination {
    flex-direction: row;
    align-items: center;
    display: flex;
  }
}
