/* ============================================================
   Saidi Rent Car Manager - professional UI refresh
   ============================================================ */
:root {
  --ink: #16181d;
  --ink-2: #232730;
  --ink-3: #303641;
  --paper: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f4;
  --line: #dde3ea;
  --line-strong: #c7d0da;
  --text: #202630;
  --muted: #6b7481;
  --muted-2: #8a94a3;
  --orange: #e46f13;
  --orange-2: #b9520c;
  --orange-soft: #fff1e6;
  --green: #198754;
  --green-soft: #e8f6ef;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --red: #dc3545;
  --red-soft: #fdecee;
  --yellow: #d99100;
  --yellow-soft: #fff7df;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-md: 0 10px 24px rgba(17, 24, 39, .10);
  --shadow-lg: 0 22px 56px rgba(17, 24, 39, .18);
  --radius: 8px;
  --sidebar-w: 270px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(246,247,249,.98) 260px),
    linear-gradient(120deg, rgba(228,111,19,.08), transparent 42%),
    var(--surface);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  text-rendering: geometricPrecision;
}

a {
  color: var(--orange-2);
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

a:hover { color: var(--orange); }

::selection {
  color: #fff;
  background: var(--orange);
}

.layout {
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 26px;
  animation: contentIn .42s var(--ease) both;
}

@keyframes contentIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1050;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #d7dce5;
  background: linear-gradient(180deg, #17191f 0%, #222731 50%, #17191f 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.20) transparent;
}

.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.20); border-radius: 999px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #f49a3d);
  box-shadow: 0 10px 22px rgba(228,111,19,.25);
  font-size: 23px;
}

.brand-name {
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: .8px;
}

.brand-sub {
  max-width: 172px;
  margin-top: 3px;
  color: #a9b1be;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}

.avatar,
.avatar-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #f49a3d);
  box-shadow: 0 9px 18px rgba(228,111,19,.18);
  font-weight: 850;
}

.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  font-size: 16px;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 30px;
}

.user-name {
  max-width: 148px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  border: 0;
  border-radius: 999px;
  padding: .28rem .48rem;
  font-size: 10px;
  font-weight: 800;
}

.role-admin { background: var(--orange); }
.role-accueil { background: var(--blue); }
.role-manager { background: var(--green); }
.role-mecanicien { background: #68717d; }
.role-superadmin { background: #4f46e5; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 12px 10px;
  flex: 1;
}

.nav-section {
  padding: 15px 10px 5px;
  color: #7d8693;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1.35px;
}

.nav-list a {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: #d6dbe3;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  overflow: hidden;
}

.nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 8px 8px 0;
  background: var(--orange);
  opacity: 0;
  transform: scaleY(.45);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.nav-list a:hover {
  color: #fff;
  background: rgba(255,255,255,.075);
}

.nav-list a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(228,111,19,.25), rgba(255,255,255,.08));
  box-shadow: inset 0 0 0 1px rgba(228,111,19,.24);
}

.nav-list a.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-list a i {
  width: 22px;
  color: #aeb7c4;
  font-size: 17px;
  text-align: center;
}

.nav-list a:hover i,
.nav-list a.active i { color: #fff; }

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.08);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(221,227,234,.86);
  backdrop-filter: saturate(150%) blur(14px);
}

.topbar .btn-dark.d-lg-none {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius);
}

.page-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.15;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  --bs-btn-border-radius: var(--radius);
  --bs-btn-font-weight: 750;
  transition:
    transform .18s var(--ease),
    box-shadow .18s var(--ease),
    background-color .18s var(--ease),
    border-color .18s var(--ease),
    color .18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { --bs-btn-border-radius: 7px; --bs-btn-font-weight: 750; }

.btn-dark {
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: #0f1115;
  --bs-btn-hover-border-color: #0f1115;
  box-shadow: var(--shadow-sm);
}

.btn-outline-dark {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--line-strong);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  background: #fff;
}

.btn-orange {
  color: #fff;
  border: 1px solid var(--orange);
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 9px 18px rgba(228,111,19,.22);
}

.btn-orange:hover,
.btn-orange:focus {
  color: #fff;
  border-color: var(--orange-2);
  background: linear-gradient(135deg, #f07d21, var(--orange-2));
  box-shadow: 0 12px 22px rgba(228,111,19,.28);
}

.bg-orange { background: var(--orange) !important; }
.text-orange { color: var(--orange) !important; }

/* Panels and KPI cards */
.card-panel,
.stat-card,
.vehicle-card,
.ca-card {
  border-radius: var(--radius);
}

.card-panel {
  position: relative;
  padding: 20px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(221,227,234,.94);
  box-shadow: var(--shadow-sm);
  animation: panelIn .36s var(--ease) both;
}

.card-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--orange), rgba(37,99,235,.64), rgba(25,135,84,.66));
  opacity: .82;
}

.card-panel:hover { box-shadow: 0 8px 22px rgba(17,24,39,.08); }

.card-panel h5,
.card-panel h6 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.card-panel h5 i,
.card-panel h6 i { color: var(--orange); }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface-2);
  font-size: 22px;
}

.icon-orange { background: var(--orange-soft); color: var(--orange); }
.icon-green { background: var(--green-soft); color: var(--green); }
.icon-grey { background: var(--surface-2); color: #68717d; }
.icon-red { background: var(--red-soft); color: var(--red); }

.stat-value {
  color: var(--ink);
  font-size: 25px;
  font-weight: 850;
  line-height: 1.05;
}

.stat-label {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.ca-card {
  position: relative;
  min-height: 104px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #181b22 0%, #262b35 62%, #323844 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.ca-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
}

.ca-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ca-label {
  color: #b8c0cb;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .75px;
}

.ca-value {
  margin-top: 10px;
  font-size: 27px;
  font-weight: 850;
  line-height: 1.05;
}

.ca-value small {
  color: #ffae63;
  font-size: 13px;
  font-weight: 850;
}

.ca-negative::before { background: var(--red); }

/* Forms */
.form-label {
  margin-bottom: 5px;
  color: #424a55;
  font-size: 12px;
  font-weight: 800;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 42px;
  border-color: var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background-color: #fff;
  box-shadow: none;
}

.form-control::placeholder { color: #a0a8b3; }

.input-group > .form-control,
.input-group > .form-select,
.input-group > .input-group-text {
  border-radius: var(--radius);
}

.input-group > :not(:first-child) {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > :not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-text {
  color: var(--muted);
  background: var(--surface);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(228,111,19,.68);
  box-shadow: 0 0 0 .22rem rgba(228,111,19,.14);
}

.form-check-input:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}

/* Tables */
.table-responsive { border-radius: var(--radius); }

table.table {
  margin-bottom: 0;
  color: var(--text);
  font-size: 14px;
}

.table > :not(caption) > * > * {
  padding: .78rem .82rem;
  border-bottom-color: var(--line);
}

.table thead th {
  color: #59626f;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.table-hover > tbody > tr {
  transition: background-color .15s var(--ease);
}

.table-hover > tbody > tr:hover > * {
  background-color: #fff8f1;
}

.table-sm > :not(caption) > * > * {
  padding: .58rem .68rem;
}

/* Badges and statuses */
.badge {
  border-radius: 999px;
  padding: .42em .62em;
  font-weight: 800;
}

.statut-disponible { background: var(--green); }
.statut-loue { background: var(--orange); }
.statut-reserve { background: var(--blue); }
.statut-entretien { background: #68717d; }
.statut-hors_service { background: var(--red); }
.statut-confirmee { background: var(--orange); }
.statut-en_attente { background: #68717d; }
.statut-en_cours { background: var(--green); }
.statut-terminee { background: var(--blue); }
.statut-annulee { background: var(--red); }
[class*="statut-"] { color: #fff !important; }

.alert {
  border-radius: var(--radius);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

/* Vehicle cards */
.vehicle-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228,111,19,.30);
  box-shadow: var(--shadow-md);
}

.vehicle-photo {
  position: relative;
  height: 170px;
  background: linear-gradient(135deg, #eff2f6, #f9fafb);
  overflow: hidden;
}

.vehicle-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.22));
  pointer-events: none;
}

.vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}

.vehicle-card:hover .vehicle-photo img { transform: scale(1.035); }

.photo-placeholder,
.photo-placeholder-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5bec9;
  background: linear-gradient(135deg, #f0f3f7, #fbfcfd);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  font-size: 58px;
}

.photo-placeholder-lg {
  height: 210px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 72px;
}

.vehicle-statut {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  text-transform: capitalize;
  box-shadow: 0 8px 16px rgba(0,0,0,.18);
}

.vehicle-body { padding: 16px; }

.vehicle-body h5 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.vehicle-price {
  color: var(--orange);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.05;
  text-align: right;
  white-space: nowrap;
}

.vehicle-price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.vehicle-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: #555e6b;
  font-size: 12px;
}

.vehicle-specs span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
}

.vehicle-specs i { color: var(--orange); }

/* Dashboard alerts */
.alert-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 2px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}

.alert-item:hover {
  color: var(--text);
  background: #fffaf5;
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.alert-item i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 18px;
}

.alert-item.alert-warning { border-left-color: var(--yellow); }
.alert-item.alert-danger { border-left-color: var(--red); }
.alert-item.alert-warning i { color: var(--yellow); background: var(--yellow-soft); }
.alert-item.alert-danger i { color: var(--red); background: var(--red-soft); }

/* Calculations, timeline, calendar */
.calc-recap {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}

.calc-panel { position: sticky; top: 94px; }

.timeline {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.timeline li {
  position: relative;
  margin-left: 9px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid rgba(228,111,19,.34);
  font-size: 14px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.fc {
  --fc-border-color: var(--line);
  --fc-today-bg-color: #fff5eb;
  --fc-button-bg-color: var(--ink);
  --fc-button-border-color: var(--ink);
  --fc-button-hover-bg-color: #0f1115;
  --fc-button-hover-border-color: #0f1115;
}

.fc .fc-button {
  border-radius: 7px;
  font-weight: 800;
}

.fc .fc-toolbar-title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

/* Login */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(22,24,29,.94), rgba(38,42,51,.96)),
    linear-gradient(45deg, rgba(228,111,19,.22), transparent);
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 38px 34px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: loginIn .46s var(--ease) both;
}

.login-header {
  margin-bottom: 26px;
  text-align: center;
}

.login-header i {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 14px 26px rgba(228,111,19,.26);
  font-size: 30px;
}

.login-header h1 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .7px;
}

.login-header h1 span { color: var(--orange); }
.login-header p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; }

@keyframes loginIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Notifications */
.notif-wrap { position: relative; }

.btn-notif {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 18px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.btn-notif:hover {
  border-color: rgba(228,111,19,.42);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.notif-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  animation: badgePulse 1.8s var(--ease) infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.notif-panel {
  position: absolute;
  right: 0;
  top: 50px;
  width: 390px;
  max-width: calc(100vw - 24px);
  z-index: 2000;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: dropdownIn .18s var(--ease) both;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: var(--ink);
}

.notif-list {
  max-height: 60vh;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.notif-item:hover {
  color: var(--text);
  background: var(--surface);
}

.notif-item i {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border-radius: var(--radius);
  font-size: 18px;
}

.notif-danger i { color: var(--red); background: var(--red-soft); }
.notif-warning i { color: var(--yellow); background: var(--yellow-soft); }
.notif-info i { color: var(--blue); background: var(--blue-soft); }
.notif-titre { color: var(--ink); font-weight: 850; font-size: 13px; }
.notif-msg { color: var(--muted); font-size: 12px; }

/* Utilities */
.border.rounded,
.rounded {
  border-radius: var(--radius) !important;
}

.progress,
.progress-stacked {
  border-radius: 999px;
  background-color: var(--surface-2);
}

.text-muted { color: var(--muted) !important; }

/* Responsive */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(9,12,17,.56);
  backdrop-filter: blur(2px);
}

@media (max-width: 1199px) {
  .content { padding: 22px; }
}

@media (max-width: 991px) {
  :root { --sidebar-w: 276px; }

  .sidebar {
    position: fixed;
    left: calc(var(--sidebar-w) * -1 - 10px);
    top: 0;
    transition: left .25s var(--ease), box-shadow .25s var(--ease);
  }

  .sidebar.open {
    left: 0;
    box-shadow: var(--shadow-lg);
  }

  .sidebar-overlay.show { display: block; }
  .content { padding: 18px; }
  .topbar { min-height: 68px; padding: 12px 18px; }
  .page-title { font-size: 19px; }
  .calc-panel { position: static; }
}

@media (max-width: 575px) {
  body { font-size: 13px; }
  .content { padding: 14px; }
  .topbar {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .page-title {
    order: 2;
    flex-basis: 100%;
    font-size: 18px;
  }
  .topbar-right {
    width: 100%;
    justify-content: stretch;
  }
  .topbar-right .btn { width: 100%; }
  .card-panel { padding: 16px; }
  .stat-card { padding: 14px; }
  .stat-icon { width: 42px; height: 42px; font-size: 19px; }
  .stat-value { font-size: 21px; }
  .ca-value { font-size: 23px; }
  .vehicle-photo { height: 155px; }
  .notif-panel {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .login-card { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .sidebar,
  .topbar,
  .sidebar-overlay {
    display: none !important;
  }
  .content {
    max-width: none;
    padding: 0;
    animation: none;
  }
  body { background: #fff; }
}

/* Vehicle sale and profit report */
.statut-vendu { background: #111827; }
.sale-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
  font-weight: 750;
}
.sale-note i { color: var(--orange); }
.mini-metric {
  min-height: 76px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .45px;
}
.mini-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}
.vehicle-profit-table td,
.vehicle-profit-table th { white-space: nowrap; }
.vehicle-profit-table td:first-child,
.vehicle-profit-table th:first-child { white-space: normal; min-width: 180px; }