/* ============================================
   LifeExpensive Police System - Custom Theme
   ============================================ */

/* --- Sidebar Enhancement --- */
.duik-sidebar {
  background: linear-gradient(180deg, #0a1628 0%, #132744 100%) !important;
  border-right: 1px solid rgba(16, 126, 244, 0.15);
  min-height: 100vh;
}

.duik-sidebar__heading {
  color: #5ba3f7 !important;
  font-size: 0.7rem !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.8rem 1rem 0.3rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.duik-sidebar__heading:first-child {
  border-top: none;
  margin-top: 0;
}

.duik-sidebar__link {
  color: #8ba4c7 !important;
  padding: 0.45rem 1rem !important;
  font-size: 0.85rem;
  border-radius: 6px;
  margin: 1px 0.5rem;
  transition: all 0.2s ease;
}

.duik-sidebar__link:hover {
  color: #ffffff !important;
  background: rgba(16, 126, 244, 0.15);
}

.duik-sidebar__link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #107ef4, #0c5dc0) !important;
  box-shadow: 0 2px 8px rgba(16, 126, 244, 0.3);
  font-weight: 500;
}

.duik-sidebar__item {
  list-style: none;
}

/* Sidebar Logo Section */
.sidebar-logo {
  text-align: center;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sidebar-logo img {
  max-width: 48px;
  height: auto;
  filter: drop-shadow(0 1px 4px rgba(16, 126, 244, 0.4));
  border-radius: 8px;
}

.sidebar-logo .server-name {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.sidebar-logo .server-subtitle {
  color: #5ba3f7;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Header Enhancement --- */
.duik-header .navbar {
  background: linear-gradient(135deg, #0a1628 0%, #132744 100%) !important;
  border-bottom: 2px solid #107ef4;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.duik-header .navbar-brand {
  background: rgba(16, 126, 244, 0.12) !important;
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.duik-header .navbar-brand img {
  filter: drop-shadow(0 1px 3px rgba(16, 126, 244, 0.5));
}

.duik-header .form-control {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 126, 244, 0.2) !important;
  border-radius: 8px;
}

.duik-header .form-control:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #107ef4 !important;
  box-shadow: 0 0 0 0.15rem rgba(16, 126, 244, 0.25);
}

.duik-header .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* --- Card Enhancements --- */
.card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Stat Cards */
.stat-card {
  position: relative;
  overflow: hidden;
  border-left: 4px solid #107ef4 !important;
  border-radius: 12px;
  padding: 0.5rem;
}

.stat-card.stat-primary { border-left-color: #107ef4 !important; }
.stat-card.stat-success { border-left-color: #28a745 !important; }
.stat-card.stat-danger { border-left-color: #dc3545 !important; }
.stat-card.stat-warning { border-left-color: #ffc107 !important; }
.stat-card.stat-info { border-left-color: #17a2b8 !important; }

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-card .stat-icon.bg-primary-soft {
  background: rgba(16, 126, 244, 0.12);
  color: #107ef4;
}

.stat-card .stat-icon.bg-success-soft {
  background: rgba(40, 167, 69, 0.12);
  color: #28a745;
}

.stat-card .stat-icon.bg-danger-soft {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.stat-card .stat-icon.bg-warning-soft {
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
}

.stat-card .stat-icon.bg-info-soft {
  background: rgba(23, 162, 184, 0.12);
  color: #17a2b8;
}

.stat-value,
.stat-card-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label,
.stat-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a94a6;
  font-weight: 500;
}

/* --- Badge Styles --- */
.badge-status {
  padding: 0.35em 0.8em;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-actif { background: #d4edda; color: #155724; }
.badge-en-cours { background: #fff3cd; color: #856404; }
.badge-termine { background: #e2e3e5; color: #383d41; }
.badge-expire { background: #f8d7da; color: #721c24; }
.badge-annule { background: #e2e3e5; color: #6c757d; }
.badge-execute { background: #cce5ff; color: #004085; }
.badge-urgente { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.badge-haute { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.badge-normale { background: #d1ecf1; color: #0c5460; }
.badge-basse { background: #e2e3e5; color: #383d41; }
.badge-brouillon { background: #fff3cd; color: #856404; }
.badge-valide { background: #d4edda; color: #155724; }
.badge-archive { background: #e2e3e5; color: #6c757d; }

/* --- Tables Enhancement --- */
.table thead th,
table.dataTable thead th,
.dataTables_wrapper .table thead th,
.dataTables_scrollHead .table thead th {
  background: linear-gradient(135deg, #0a1628 0%, #132744 100%) !important;
  border: none !important;
  border-bottom: 2px solid #107ef4 !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.8rem 1rem;
}

.table tbody tr:hover {
  background-color: rgba(16, 126, 244, 0.04);
}

.table tbody td {
  vertical-align: middle;
  padding: 0.7rem 0.8rem;
}

/* --- Tabs Enhancement --- */
.nav-tabs {
  border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
  color: #107ef4;
  background: rgba(16, 126, 244, 0.05);
}

.nav-tabs .nav-link.active {
  color: #107ef4;
  border-bottom: 3px solid #107ef4;
  background: transparent;
  font-weight: 600;
}

/* --- Timer / Countdown --- */
.countdown-timer {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
}

.countdown-timer.timer-active {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.countdown-timer.timer-expired {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.countdown-timer.timer-urgent {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
  animation: pulse-urgent 1.5s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* --- GAV Card --- */
.gav-card {
  border-left: 4px solid #ffc107;
  transition: all 0.3s ease;
}

.gav-card.gav-terminee {
  border-left-color: #28a745;
  opacity: 0.7;
}

.gav-card.gav-liberee {
  border-left-color: #17a2b8;
  opacity: 0.7;
}

/* --- Chart Container --- */
.chart-container {
  position: relative;
  padding: 1rem;
}

/* --- VIN History Timeline --- */
.vin-timeline {
  position: relative;
  padding-left: 2rem;
}

.vin-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

.vin-timeline-item {
  position: relative;
  padding-bottom: 1.2rem;
}

.vin-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #107ef4;
  background: #ffffff;
}

.vin-timeline-item.achat::before { border-color: #28a745; background: #28a745; }
.vin-timeline-item.vente::before { border-color: #ffc107; background: #ffc107; }
.vin-timeline-item.vol::before { border-color: #dc3545; background: #dc3545; }
.vin-timeline-item.changement_proprio::before { border-color: #6f42c1; background: #6f42c1; }
.vin-timeline-item.re-plaquage::before { border-color: #e83e8c; background: #e83e8c; }
.vin-timeline-item.vente_garage::before { border-color: #fd7e14; background: #fd7e14; }

/* --- Mandat Card --- */
.mandat-card {
  border-left: 4px solid;
}

.mandat-card.mandat-actif { border-left-color: #dc3545; }
.mandat-card.mandat-execute { border-left-color: #28a745; }
.mandat-card.mandat-expire { border-left-color: #6c757d; }
.mandat-card.mandat-annule { border-left-color: #ffc107; }

/* --- Rapport Status --- */
.rapport-card {
  border-top: 3px solid transparent;
}

.rapport-card.rapport-brouillon { border-top-color: #ffc107; }
.rapport-card.rapport-valide { border-top-color: #28a745; }
.rapport-card.rapport-archive { border-top-color: #6c757d; }

/* --- Plainte Card --- */
.plainte-card {
  border-top: 3px solid transparent;
}

.plainte-card.plainte-en_attente { border-top-color: #fd7e14; }
.plainte-card.plainte-traitee { border-top-color: #28a745; }
.plainte-card.plainte-classee { border-top-color: #6c757d; }

/* --- Plainte Status Badges --- */
.badge-en_attente { background: #fff3cd; color: #856404; }
.badge-traitee { background: #d4edda; color: #155724; }
.badge-classee { background: #e2e3e5; color: #6c757d; }

/* --- Page Title Bar --- */
.page-title-bar {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #107ef4;
}

.page-title-bar h1 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.page-title-bar .lead {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* --- Quick Actions --- */
.quick-action-btn {
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
  background: #ffffff;
  color: #4a5568;
  display: block;
  text-decoration: none;
}

.quick-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-color: #107ef4;
  color: #107ef4;
  text-decoration: none;
}

.quick-action-btn i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* --- Priority Tags --- */
.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.priority-dot.urgente { background: #dc3545; }
.priority-dot.haute { background: #ffc107; }
.priority-dot.normale { background: #107ef4; }
.priority-dot.basse { background: #6c757d; }

/* --- Alert Enhancement --- */
.alert {
  border-radius: 10px;
  border: none;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(220,53,69,0.1), rgba(220,53,69,0.05));
  border-left: 4px solid #dc3545;
}

.alert-primary {
  background: linear-gradient(135deg, rgba(16,126,244,0.1), rgba(16,126,244,0.05));
  border-left: 4px solid #107ef4;
}

.alert-success {
  background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(40,167,69,0.05));
  border-left: 4px solid #28a745;
}

/* --- Button Enhancement --- */
.btn-primary {
  background: linear-gradient(135deg, #107ef4, #0c5dc0);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(16, 126, 244, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0c6de0, #0a4fa8);
  box-shadow: 0 4px 12px rgba(16, 126, 244, 0.4);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-radius: 8px;
  border-width: 2px;
  font-weight: 500;
}

/* --- Form Enhancements --- */
.form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #107ef4;
  box-shadow: 0 0 0 0.15rem rgba(16, 126, 244, 0.15);
}

.custom-select {
  border-radius: 8px;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #8a94a6;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
}

/* --- Activity Feed --- */
.activity-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f1f3f5;
  display: flex;
  align-items: flex-start;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-right: 0.8rem;
}

.activity-content {
  flex: 1;
}

.activity-content .activity-text {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.activity-content .activity-time {
  font-size: 0.75rem;
  color: #8a94a6;
}

/* --- Footer Enhancement --- */
footer {
  color: #8a94a6;
}

/* --- Sidebar Mobile Backdrop --- */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1025;
  display: none;
}
.sidebar-backdrop.show {
  display: block;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
  .duik-sidebar {
    background: #0a1628 !important;
    position: fixed;
    z-index: 1030;
    top: 56px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .stat-value,
  .stat-card-value {
    font-size: 1.4rem;
  }

  .sidebar-logo {
    padding: 0.4rem 0.6rem;
  }

  .sidebar-logo img {
    max-width: 28px;
  }

  /* Padding-top pour compenser la navbar fixe */
  main.ml-md-auto { padding-top: 4rem; }

  /* Quick actions : 2 colonnes au lieu de 3 */
  .quick-action-btn { padding: 0.7rem 0.5rem; font-size: 0.8rem; }
  .quick-action-btn i { font-size: 1.2rem; }

  /* Tables DataTables scroll horizontal */
  .dataTables_wrapper { overflow-x: auto; }
  .dataTables_wrapper table { min-width: 600px; }

  /* Formulaires pleine largeur */
  .form-control, .custom-select { font-size: 16px; }

  /* Forms inline -> vertical sur mobile */
  .form-inline { flex-direction: column; align-items: stretch; }
  .form-inline .form-control,
  .form-inline .custom-select,
  .form-inline .btn { width: 100%; margin-bottom: 0.5rem; }

  /* Override inline min-width */
  input[style*="min-width"] { min-width: 100% !important; }

  /* Autocomplete dropdown responsive */
  .ui-autocomplete { max-width: calc(100vw - 2rem) !important; overflow-x: hidden; }

  /* Boutons full-width */
  .card-body .btn-sm,
  .card-body .btn-primary { display: block; width: 100%; margin-bottom: 0.3rem; }
}

/* --- DataTables Override --- */
.dataTables_wrapper .dataTables_filter input {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.4rem 0.8rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #107ef4;
  box-shadow: 0 0 0 0.15rem rgba(16, 126, 244, 0.15);
  outline: none;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
}

/* Force dark header on all DataTables variants */
.dataTables_wrapper thead th,
.dataTables_wrapper thead td,
.dataTables_scrollHead thead th,
.DTFC_LeftHeadWrapper thead th,
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
  background-color: #0a1628 !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* --- Main content area --- */
main.ml-md-auto {
  background: #f8f9fb;
  min-height: 100vh;
}

/* --- Scrollbar --- */
.duik-sidebar-sticky::-webkit-scrollbar {
  width: 4px;
}

.duik-sidebar-sticky::-webkit-scrollbar-track {
  background: transparent;
}

.duik-sidebar-sticky::-webkit-scrollbar-thumb {
  background: rgba(16, 126, 244, 0.3);
  border-radius: 4px;
}

/* --- Link styles --- */
a.link {
  color: #107ef4;
  font-weight: 500;
  transition: color 0.2s ease;
}

a.link:hover {
  color: #0c5dc0;
  text-decoration: none;
}

/* --- Dispatch Team Cards --- */
.team-card {
  border-top: 3px solid #6c757d;
  transition: all 0.2s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.team-card .card-header {
  background: #ffffff;
  border-bottom: 1px solid #f1f3f5;
  padding: 0.7rem 1rem;
}

.team-card .card-header h6 {
  font-size: 0.95rem;
}

.team-card .team-freq {
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 500;
}

.team-card.team-gn {
  border-top-color: #4a90d9;
}

.team-card.team-gn .card-header {
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.08), rgba(74, 144, 217, 0.02));
}

.team-card.team-gn .team-freq {
  color: #4a90d9;
}

.team-card.team-pn {
  border-top-color: #1a3a6b;
}

.team-card.team-pn .card-header {
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.08), rgba(26, 58, 107, 0.02));
}

.team-card.team-pn .team-freq {
  color: #1a3a6b;
}

.team-card.team-centrale {
  border-top-color: #d4a017;
}

.team-card.team-centrale .card-header {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(212, 160, 23, 0.02));
}

.team-card.team-centrale .team-freq {
  color: #d4a017;
}

.team-card.team-custom {
  border-top-color: #6f42c1;
}

.team-card.team-custom .card-header {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.08), rgba(111, 66, 193, 0.02));
}

.badge-team-count {
  background: #f1f5f9;
  color: #4a5568;
  font-size: 0.8rem;
  padding: 0.3em 0.7em;
  border-radius: 12px;
  font-weight: 600;
}

.team-member-list {
  max-height: 200px;
  overflow-y: auto;
}

.team-member {
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  border-bottom: 1px solid #f8f9fa;
}

.team-member:last-child {
  border-bottom: none;
}

.team-member-chef {
  font-weight: 600;
}

.team-fill-bar {
  height: 3px;
  background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
  border-radius: 0 0 12px 12px;
  transition: width 0.5s ease;
}

/* --- Corps Badges (PN / GN) --- */
.badge-corps-police {
  background: #1a3a6b;
  color: #ffffff;
  padding: 0.3em 0.8em;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-corps-gendarmerie {
  background: #003366;
  color: #ffffff;
  padding: 0.3em 0.8em;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- Gendarmerie Theme (via data-corps attribute on body) --- */
body[data-corps="gendarmerie"] .duik-sidebar {
  background: linear-gradient(180deg, #00264d 0%, #003d73 100%) !important;
}

body[data-corps="gendarmerie"] .duik-sidebar__heading {
  color: #4a90d9 !important;
}

body[data-corps="gendarmerie"] .duik-sidebar__link:hover {
  background: rgba(74, 144, 217, 0.15);
}

body[data-corps="gendarmerie"] .duik-sidebar__link.active {
  background: linear-gradient(135deg, #4a90d9, #3672b0) !important;
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}

body[data-corps="gendarmerie"] .sidebar-logo img {
  filter: drop-shadow(0 1px 4px rgba(74, 144, 217, 0.4));
}

body[data-corps="gendarmerie"] .sidebar-logo .server-subtitle {
  color: #4a90d9;
}

body[data-corps="gendarmerie"] .duik-header .navbar {
  background: linear-gradient(135deg, #00264d 0%, #003d73 100%) !important;
  border-bottom-color: #4a90d9;
}

body[data-corps="gendarmerie"] .duik-header .navbar-brand {
  background: rgba(74, 144, 217, 0.12) !important;
}

body[data-corps="gendarmerie"] .duik-header .form-control {
  border-color: rgba(74, 144, 217, 0.2) !important;
}

body[data-corps="gendarmerie"] .duik-header .form-control:focus {
  border-color: #4a90d9 !important;
  box-shadow: 0 0 0 0.15rem rgba(74, 144, 217, 0.25);
}

body[data-corps="gendarmerie"] .page-title-bar {
  border-left-color: #4a90d9;
}

body[data-corps="gendarmerie"] .btn-primary {
  background: linear-gradient(135deg, #4a90d9, #3672b0);
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}

body[data-corps="gendarmerie"] .btn-primary:hover {
  background: linear-gradient(135deg, #3672b0, #2a5a8f);
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
}

body[data-corps="gendarmerie"] .table thead th,
body[data-corps="gendarmerie"] table.dataTable thead th,
body[data-corps="gendarmerie"] .dataTables_wrapper thead th {
  background: linear-gradient(135deg, #00264d 0%, #003d73 100%) !important;
  border-bottom-color: #4a90d9 !important;
}

body[data-corps="gendarmerie"] .nav-tabs .nav-link.active {
  color: #4a90d9;
  border-bottom-color: #4a90d9;
}

body[data-corps="gendarmerie"] .nav-tabs .nav-link:hover {
  color: #4a90d9;
}

body[data-corps="gendarmerie"] .stat-card.stat-primary {
  border-left-color: #4a90d9 !important;
}

body[data-corps="gendarmerie"] .duik-sidebar-sticky::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 217, 0.3);
}

body[data-corps="gendarmerie"] a.link {
  color: #4a90d9;
}

body[data-corps="gendarmerie"] a.link:hover {
  color: #3672b0;
}

/* Corps indicator in table rows */
.corps-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.corps-indicator.corps-police { background: #1a3a6b; }
.corps-indicator.corps-gendarmerie { background: #003366; }

/* --- Print styles for reports --- */
@media print {
  .duik-sidebar, .duik-header, .duik-go-to, footer {
    display: none !important;
  }

  main.ml-md-auto {
    margin-left: 0 !important;
    padding-top: 0 !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
}
