.vehicles-page{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.vehicles-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
}
.vehicles-header h1{
  font-size:26px;
  font-weight:700;
}
.vehicles-header p{
  margin-top:4px;
  color:#94a3b8;
}

.vehicles-header-actions{
  display:flex;
  gap:10px;
}

.vehicles-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
@media (max-width: 1100px){
  .vehicles-kpis{ grid-template-columns:repeat(2,1fr); }
}
.kpi-card{
  background: linear-gradient(180deg, #16233f, #0f172a);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px;
}
.kpi-card .kpi-title{
  font-size:12px;
  color:#94a3b8;
}
.kpi-card .kpi-value{
  font-size:26px;
  font-weight:800;
  margin-top:6px;
}
.kpi-card .kpi-sub{
  margin-top:2px;
  font-size:12px;
  color:#64748b;
}
.kpi-card.danger{ border-color: rgba(239,68,68,0.20); }
.kpi-card.warning{ border-color: rgba(234,179,8,0.20); }
.kpi-card.info{ border-color: rgba(59,130,246,0.20); }

.vehicles-toolbar{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:14px;
}

.vehicles-search .input{
  width:100%;
}

.vehicles-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.vehicles-bulk{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.bulk-check{
  display:flex;
  gap:10px;
  align-items:center;
  color:#cbd5e1;
  font-size:13px;
}
.bulk-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.btn-mini{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
  transition:.15s ease;
}
.btn-mini:hover{ background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.btn-mini.danger{ background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.28); }
.btn-mini.warning{ background: rgba(234,179,8,0.18); border-color: rgba(234,179,8,0.28); }
.btn-mini.info{ background: rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.28); }

.vehicles-table-wrap{
  max-height: 640px;
  overflow:auto;
  border-radius:12px;
}

.vehicles-table{
  width:100%;
  border-collapse:collapse;
}
.vehicles-table thead{
  background: rgba(59,130,246,0.08);
}
.vehicles-table th{
  text-align:left;
  padding:14px 16px;
  font-size:13px;
  font-weight:700;
  color:#cbd5e1;
}
.vehicles-table td{
  padding:12px 16px;
  font-size:13px;
  color:#94a3b8;
  border-top:1px solid rgba(255,255,255,0.05);
  vertical-align:middle;
}
.vehicles-table tr:hover{
  background: rgba(59,130,246,0.05);
}

.v-plate{
  font-weight:900;
  letter-spacing: .6px;
  color: rgba(255,255,255,0.92);
}
.v-sub{
  font-size:12px;
  color:#64748b;
  margin-top:2px;
}
.v-owner{
  font-weight:700;
  color:#cbd5e1;
}
.v-owner small{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:#64748b;
}

.v-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.88);
  font-weight:800;
  font-size:12px;
}
.v-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background: rgba(148,163,184,0.7);
}
.v-status.stolen{ background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.28); }
.v-status.stolen .v-dot{ background: #ef4444; }

.v-status.lost{ background: rgba(234,179,8,0.14); border-color: rgba(234,179,8,0.28); }
.v-status.lost .v-dot{ background: #eab308; }

.v-status.impounded{ background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.28); }
.v-status.impounded .v-dot{ background: #3b82f6; }

.v-status.seized{ background: rgba(168,85,247,0.14); border-color: rgba(168,85,247,0.28); }
.v-status.seized .v-dot{ background: #a855f7; }

.v-status.scrapped{ background: rgba(100,116,139,0.14); border-color: rgba(100,116,139,0.28); }
.v-status.scrapped .v-dot{ background: #64748b; }

.v-status.recovered{ background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.28); }
.v-status.recovered .v-dot{ background: #22c55e; }

.v-flag{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  margin-left:8px;
}

.actions-cell{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.btn-view{
  background: rgba(59,130,246,0.22);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.30);
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}

.modal.xlarge{ max-width: 1120px; }
.vehicle-details-body{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
@media (max-width: 1000px){
  .vehicle-details-body{ grid-template-columns: 1fr; }
}

.vehicle-hero{
  padding:14px;
  border-radius:14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.vehicle-hero-plate{
  font-size:22px;
  font-weight:1000;
  letter-spacing: 1px;
}
.vehicle-hero-model{
  margin-top:4px;
  font-size:14px;
  color:#94a3b8;
  font-weight:800;
}
.vehicle-hero-badges{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.vehicle-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:10px;
}
.vehicle-grid .info{
  padding:12px;
  border-radius:12px;
  background: rgba(15,23,42,0.70);
  border: 1px solid rgba(255,255,255,0.06);
}
.vehicle-grid .info strong{
  display:block;
  font-size:12px;
  color:#cbd5e1;
}
.vehicle-grid .info div{
  margin-top:4px;
  color:#94a3b8;
  font-size:13px;
  font-weight:700;
}

.vehicle-notes{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.vehicle-notes-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.vehicle-notes textarea,
#declareDetails,
#vcNotes{
  width:100%;
  min-height: 110px;
  resize: vertical;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
}
.vehicle-notes textarea::placeholder{ color: rgba(255,255,255,0.35); }

.card.mini{
  padding:14px;
  border-radius:14px;
}

.owner-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
.owner-name{
  font-weight:900;
  color: rgba(255,255,255,0.92);
}
.owner-sub{
  margin-top:8px;
  font-size:12px;
  color:#64748b;
}

.quick-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.quick-actions .btn-danger.ghost{
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.22);
}

.history-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height: 320px;
  overflow:auto;
  padding-right:4px;
}
.history-item{
  padding:10px 12px;
  border-radius:12px;
  background: rgba(15,23,42,0.75);
  border: 1px solid rgba(255,255,255,0.06);
}
.history-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.history-title{
  font-weight:900;
  color: rgba(255,255,255,0.92);
  font-size:13px;
}
.history-meta{
  font-size:11px;
  color:#64748b;
}
.history-body{
  margin-top:6px;
  font-size:12px;
  color:#94a3b8;
  white-space:pre-wrap;
}

.picker-list{
  margin-top:8px;
  border-radius:12px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.picker-item{
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  background: rgba(255,255,255,0.03);
  cursor:pointer;
}
.picker-item:hover{ background: rgba(59,130,246,0.08); }
.picker-item strong{ color: rgba(255,255,255,0.92); }
.picker-item small{ display:block; color:#64748b; margin-top:2px; }

.picker-picked{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
  color: rgba(255,255,255,0.92);
  font-weight:800;
}
.muted{ color:#64748b; }

/* ===============================
   VEHICLES – INPUTS / SEARCH BAR
   (met ça en bas du fichier vehicles.css)
=============================== */

.vehicles-page .vehicles-search {
  width: 100%;
}

.vehicles-page .vehicles-search .input,
.vehicles-page .vehicles-toolbar .input {
  width: 100%;
  height: 42px;
  padding: 10px 12px;

  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px;

  color: rgba(255, 255, 255, 0.92) !important;
  outline: none;
}

.vehicles-page .vehicles-search .input::placeholder,
.vehicles-page .vehicles-toolbar .input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.vehicles-page .vehicles-search .input:focus,
.vehicles-page .vehicles-toolbar .input:focus {
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* Les select (sinon ils restent blancs) */
.vehicles-page select.input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.55) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* Optionnel : aligne mieux la ligne des filtres */
.vehicles-page .vehicles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vehicles-page .vehicles-filters .input {
  min-width: 170px;
}

/* ===============================
   VEHICLES – BUTTONS OVERRIDE
=============================== */

.vehicles-page button,
.vehicles-page .btn,
.vehicles-page .btn-primary,
.vehicles-page .btn-secondary,
.vehicles-page .btn-danger,
.vehicles-page .btn-success {
  font-family: inherit;
}

.vehicles-page .btn,
.vehicles-page .btn-primary,
.vehicles-page .btn-secondary,
.vehicles-page .btn-danger,
.vehicles-page .btn-success {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  transition: .15s ease;
}

.vehicles-page .btn:hover,
.vehicles-page .btn-primary:hover,
.vehicles-page .btn-secondary:hover,
.vehicles-page .btn-danger:hover,
.vehicles-page .btn-success:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
}

.vehicles-page .btn-primary {
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.32);
  color: #bfdbfe;
}
.vehicles-page .btn-secondary {
  background: rgba(148,163,184,0.14);
  border-color: rgba(148,163,184,0.22);
  color: rgba(255,255,255,0.90);
}
.vehicles-page .btn-success {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.28);
  color: #bbf7d0;
}
.vehicles-page .btn-danger {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.28);
  color: #fecaca;
}

.vehicles-page .btn-mini,
.vehicles-page .btn-view {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
}

/* Le "Reset" qui devient blanc */
.vehicles-page #vehiclesResetFilters.btn,
.vehicles-page #vehiclesResetFilters {
  height: 42px;
}

/* ===============================
   VEHICLES – SELECT / DROPDOWN FIX
=============================== */

.vehicles-page select.input {
  background-color: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

/* options (menu déroulant) -> dark */
.vehicles-page select.input option {
  background: #0b1220;
  color: rgba(255,255,255,0.92);
}

/* Certains browsers mettent un focus bleu + fond blanc, on force */
.vehicles-page select.input:focus {
  background-color: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.92) !important;
}

/* Si tu veux éviter le dropdown giga-haut sur certains styles globaux */
.vehicles-page select.input {
  max-width: 220px;
}

/* ===============================
   VEHICLE DETAILS – QUICK ACTIONS (fix boutons blancs)
=============================== */

#vehicleDetailsModal .quick-actions button,
#vehicleDetailsModal .quick-actions .btn,
#vehicleDetailsModal .quick-actions .btn-primary,
#vehicleDetailsModal .quick-actions .btn-secondary,
#vehicleDetailsModal .quick-actions .btn-danger,
#vehicleDetailsModal .quick-actions .btn-success {
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;

  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.92) !important;
  cursor: pointer;
  transition: .15s ease;
}

#vehicleDetailsModal .quick-actions button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12) !important;
}

/* On réapplique les variantes */
#vehicleDetailsModal #vdDeclareStolen {
  background: rgba(239,68,68,0.18) !important;
  border-color: rgba(239,68,68,0.28) !important;
  color: #fecaca !important;
}
#vehicleDetailsModal #vdDeclareLost {
  background: rgba(234,179,8,0.18) !important;
  border-color: rgba(234,179,8,0.28) !important;
  color: #fde68a !important;
}
#vehicleDetailsModal #vdImpound {
  background: rgba(59,130,246,0.18) !important;
  border-color: rgba(59,130,246,0.28) !important;
  color: #bfdbfe !important;
}
#vehicleDetailsModal #vdRecover {
  background: rgba(34,197,94,0.16) !important;
  border-color: rgba(34,197,94,0.26) !important;
  color: #bbf7d0 !important;
}
#vehicleDetailsModal #vdSetActive {
  background: rgba(148,163,184,0.14) !important;
  border-color: rgba(148,163,184,0.22) !important;
  color: rgba(255,255,255,0.92) !important;
}
#vehicleDetailsModal #vdDeleteVehicle {
  background: rgba(239,68,68,0.12) !important;
  border-color: rgba(239,68,68,0.22) !important;
  color: #fecaca !important;
}

/* ===============================
   HISTORY SCROLLBAR (MDT style)
=============================== */

#vehicleDetailsModal .history-list {
  scrollbar-width: thin;                       /* Firefox */
  scrollbar-color: rgba(59,130,246,0.45) rgba(255,255,255,0.05);
}

#vehicleDetailsModal .history-list::-webkit-scrollbar {
  width: 10px;
}
#vehicleDetailsModal .history-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}
#vehicleDetailsModal .history-list::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,0.35);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.05);
}
#vehicleDetailsModal .history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(59,130,246,0.55);
}

/* ===============================
   CREATE VEHICLE MODAL – SELECT DROPDOWN (Assurance / Immatriculation)
=============================== */

#vehicleCreateModal select,
#vehicleCreateModal select.input {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 12px;
}

#vehicleCreateModal select:focus,
#vehicleCreateModal select.input:focus {
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
  outline: none;
}

/* Le menu déroulant (options) -> dark */
#vehicleCreateModal select option,
#vehicleCreateModal select.input option {
  background: #0b1220 !important;
  color: rgba(255,255,255,0.92) !important;
}

/* Petit fix pour éviter des zones blanches sur certains thèmes */
#vehicleCreateModal select optgroup {
  background: #0b1220 !important;
  color: rgba(255,255,255,0.92) !important;
}

/* ===============================
   DECLARE VEHICLE MODAL – DROPDOWN FIX
=============================== */

#vehicleDeclareModal select,
#vehicleDeclareModal select.input {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 12px;
}

/* menu déroulant */
#vehicleDeclareModal select option {
  background: #0b1220 !important;
  color: rgba(255,255,255,0.92) !important;
}

/* focus style */
#vehicleDeclareModal select:focus {
  border-color: rgba(59,130,246,0.55) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
  outline: none;
}

/* petite flèche custom pour éviter le style OS */
#vehicleDeclareModal select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.55) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}