/* RENTURO PRO — Host dashboard styles */

.rt-langswitch { display: inline-flex; align-items: center; gap: 2px; background: #ececE8; border-radius: 999px; padding: 3px; flex: none; }
.rt-lang-opt { cursor: pointer; background: none; border: none; color: #6b6e76; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; padding: 7px 10px; border-radius: 999px; line-height: 1; transition: background .15s, color .15s; }
.rt-lang-opt.is-active { background: #fff; color: #15161a; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }


:root {
  --p-ink: #15161a;
  --p-ink-2: #2a2c33;
  --p-muted: #6b6e76;
  --p-muted-2: #9a9da6;
  --p-line: #e7e8ec;
  --p-line-2: #d8dade;
  --p-bg: #fafaf7;
  --p-bg-card: #ffffff;
  --p-bg-soft: #f3f3ef;
  --p-bg-sidebar: #0F1014;
  --p-orange: #FF6B00;
  --p-orange-2: #FF5500;
  --p-orange-soft: #fff3e8;
  --p-green: #00B868;
  --p-green-soft: #e3f8ee;
  --p-red: #E5484D;
  --p-red-soft: #fde8e8;
  --p-blue: #1A4FD8;
  --p-blue-soft: #e5edff;
  --p-purple: #7c3aed;
  --p-purple-soft: #f1ebff;
  --p-yellow: #F5B400;
  --p-yellow-soft: #fff7d6;
  --p-font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --p-font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--p-font-body);
  color: var(--p-ink);
  background: var(--p-bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
img { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }

/* ============ APP LAYOUT ============ */
.p-app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.p-sidebar {
  background: var(--p-bg-sidebar);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.p-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.p-logo-mark {
  font-family: var(--p-font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}
.p-logo-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--p-orange);
  align-self: end;
  padding-bottom: 4px;
}
.p-org {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.p-org:hover { background: rgba(255,255,255,0.08); }
.p-org-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--p-orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.p-org-meta {
  flex: 1;
  min-width: 0;
}
.p-org-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-org-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.p-org-caret {
  color: rgba(255,255,255,0.4);
}

.p-navsection {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  padding: 12px 12px 6px;
  text-transform: uppercase;
}

.p-navitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  position: relative;
}
.p-navitem:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.p-navitem.is-active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 700;
}
.p-navitem.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--p-orange);
  border-radius: 0 3px 3px 0;
}
.p-navitem-badge {
  margin-left: auto;
  background: var(--p-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.p-navitem-dot {
  margin-left: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p-orange);
}

.p-sidebar-spacer { flex: 1; }
.p-help-card {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.p-help-card h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.p-help-card p {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 10px;
}
.p-help-btn {
  width: 100%;
  background: var(--p-orange);
  color: #fff;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

/* ============ MAIN ============ */
.p-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-topbar {
  height: 64px;
  background: var(--p-bg-card);
  border-bottom: 1px solid var(--p-line);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 20px;
}
.p-topbar-title {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.p-topbar-search {
  flex: 1;
  max-width: 420px;
  margin-left: 24px;
  background: var(--p-bg-soft);
  border-radius: 999px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--p-muted);
}
.p-topbar-search input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 13px;
}
.p-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--p-ink);
  transition: background 0.15s;
}
.p-icon-btn:hover { background: var(--p-bg-soft); }
.p-icon-btn-badge {
  position: absolute;
  top: 7px; right: 7px;
  background: var(--p-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.p-notif-wrap { position: relative; }
.p-icon-btn.is-active { background: var(--p-bg-soft); }
.p-notif-overlay { position: fixed; inset: 0; z-index: 40; }
.p-notif-panel {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 360px;
  max-height: 460px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  z-index: 50;
  overflow: hidden;
}
.p-notif-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 18px 12px;
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 15px;
  border-bottom: 1px solid var(--p-line);
}
.p-notif-count { font-family: var(--p-font-body); font-weight: 700; font-size: 11px; color: var(--p-orange); }
.p-notif-list { overflow-y: auto; flex: 1; }
.p-notif-empty { padding: 36px 18px; text-align: center; color: var(--p-muted); font-size: 13px; }
.p-notif-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--p-line);
  cursor: pointer;
  transition: background 0.12s;
}
.p-notif-item:hover { background: var(--p-bg-soft); }
.p-notif-body { flex: 1; min-width: 0; }
.p-notif-title { font-size: 13px; font-weight: 700; color: var(--p-ink); }
.p-notif-text { font-size: 12.5px; color: var(--p-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-notif-time { font-size: 11px; color: var(--p-muted); margin-top: 4px; }
.p-notif-foot {
  padding: 13px 18px;
  background: none;
  border: none;
  border-top: 1px solid var(--p-line);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--p-orange);
  cursor: pointer;
  text-align: center;
}
.p-notif-foot:hover { background: var(--p-bg-soft); }

/* Menu profil (topbar) */
.p-user.is-active { background: var(--p-bg-soft); }
.p-usermenu {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  z-index: 50;
  overflow: hidden;
  padding: 6px;
}
.p-usermenu-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; border-bottom: 1px solid var(--p-line); margin-bottom: 6px; }
.p-usermenu-name { font-weight: 700; font-size: 14px; }
.p-usermenu-role { font-size: 12px; color: var(--p-muted); margin-top: 2px; }
.p-usermenu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 10px;
  background: none; border: none;
  border-radius: 9px;
  font-family: var(--p-font-body);
  font-size: 13.5px; font-weight: 600; color: var(--p-ink);
  text-align: left; text-decoration: none; cursor: pointer;
}
.p-usermenu-item:hover { background: var(--p-bg-soft); }
.p-usermenu-item svg { color: var(--p-muted); flex-shrink: 0; }
.p-usermenu-danger { color: #c0392b; }
.p-usermenu-danger svg { color: #c0392b; }
.p-user {
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  transition: box-shadow 0.15s;
  margin-left: 8px;
}
.p-user:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.p-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--p-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.p-user-name { font-size: 13px; font-weight: 700; }

/* ============ PAGE ============ */
.p-page {
  padding: 32px;
  flex: 1;
  max-width: 1400px;
  width: 100%;
}
.p-page-head {
  margin-bottom: 24px;
}
.p-page-head h1 {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.p-page-head h1 em {
  font-style: italic;
  color: var(--p-orange);
}
.p-page-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--p-muted);
}

/* ============ KPI CARDS ============ */
.p-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.p-kpi {
  background: var(--p-bg-card);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.p-kpi-icon {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--p-orange-soft);
  color: var(--p-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.p-kpi-label {
  font-size: 12px;
  color: var(--p-muted);
  font-weight: 600;
  margin-bottom: 6px;
  padding-right: 54px;
}
.p-kpi-value {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding-right: 54px;
}
.p-kpi-noicon .p-kpi-label, .p-kpi-noicon .p-kpi-value { padding-right: 0; }
.p-kpi-trend {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.p-kpi-trend-up { background: var(--p-green-soft); color: var(--p-green); }
.p-kpi-trend-down { background: var(--p-red-soft); color: var(--p-red); }
.p-kpi-trend-flat { background: var(--p-bg-soft); color: var(--p-muted); }
.p-kpi-sub {
  font-size: 12px;
  color: var(--p-muted);
  margin-left: 8px;
}

/* ============ TWO COLUMN GRID ============ */
.p-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.p-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

/* ============ CARD ============ */
.p-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 22px;
}
.p-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
.p-card-head h2 {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.p-card-head .p-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--p-orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.p-link:hover { text-decoration: underline; }

/* ============ TODAY: PICKUPS / RETURNS ============ */
.p-event-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.p-event {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--p-line);
}
.p-event:last-child { border-bottom: none; }
.p-event-time {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--p-orange);
  background: var(--p-orange-soft);
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 56px;
  text-align: center;
}
.p-event-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.p-event-thumb {
  width: 44px; height: 30px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--p-bg-soft);
  flex-shrink: 0;
}
.p-event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-event-info { min-width: 0; }
.p-event-cust {
  font-size: 13px;
  font-weight: 700;
}
.p-event-veh {
  font-size: 11px;
  color: var(--p-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-event-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.p-event-status { background: var(--p-bg-soft); color: var(--p-ink); border: 1px solid var(--p-line); display: inline-flex; align-items: center; gap: 6px; }
.p-event-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--p-muted-2); }
.p-status-pickup::before { background: var(--p-orange); }
.p-status-return::before { background: var(--p-ink); }
.p-event-actions { display: flex; gap: 6px; }

/* ============ PENDING REQUESTS ============ */
.p-pending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-pending {
  border: 1px solid var(--p-line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--p-bg-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.p-pending:hover { border-color: var(--p-line-2); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.p-pending-clickable { cursor: pointer; }
.p-pending-clickable:hover { border-color: var(--p-orange); box-shadow: 0 2px 10px rgba(255,107,0,0.10); }
.p-pending-seemore { display: inline-flex; align-items: center; gap: 3px; color: var(--p-orange); font-weight: 700; }
.p-pending-seemore svg { width: 13px; height: 13px; }
.p-pending-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--p-ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.p-pending-info { min-width: 0; }
.p-pending-cust {
  font-size: 14px;
  font-weight: 700;
}
.p-pending-cust .p-pending-id {
  font-size: 11px;
  color: var(--p-muted);
  font-weight: 500;
  margin-left: 6px;
}
.p-pending-detail {
  font-size: 12px;
  color: var(--p-muted);
  margin-top: 2px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.p-pending-detail strong { color: var(--p-ink); font-weight: 700; }
.p-pending-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.p-pending-price {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--p-ink);
  margin-right: 10px;
}

.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.p-btn:active { transform: translateY(1px); }
.p-btn-primary { background: var(--p-orange); color: #fff; }
.p-btn-primary:hover { background: var(--p-orange-2); }
.p-btn-ghost { background: var(--p-bg-card); border: 1px solid var(--p-line); color: var(--p-ink); }
.p-btn-ghost:hover { background: var(--p-bg-soft); }
.p-btn-success { background: var(--p-green-soft); color: var(--p-green); border: 1px solid rgba(0, 184, 104, 0.2); }
.p-btn-success:hover { background: var(--p-green); color: #fff; }
.p-btn-danger { background: var(--p-red-soft); color: var(--p-red); border: 1px solid rgba(229, 72, 77, 0.2); }
.p-btn-danger:hover { background: var(--p-red); color: #fff; }
.p-btn-sm { padding: 6px 12px; font-size: 12px; }
.p-btn-icon { padding: 0; width: 36px; height: 36px; border-radius: 8px; }

/* ============ REVENUE CHART ============ */
.p-chart {
  position: relative;
  height: 240px;
  padding: 10px 0 24px;
}
.p-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.p-chart-line {
  fill: none;
  stroke: var(--p-orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.p-chart-fill {
  fill: url(#p-chart-grad);
  opacity: 0.6;
}
.p-chart-dot {
  fill: #fff;
  stroke: var(--p-orange);
  stroke-width: 2.5;
}
.p-chart-dot-current {
  fill: var(--p-orange);
}
.p-chart-axis {
  fill: var(--p-muted);
  font-size: 11px;
  font-weight: 600;
}
.p-chart-grid {
  stroke: var(--p-line);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

/* ============ ACTIVITY FEED ============ */
.p-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.p-feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--p-line);
}
.p-feed-item:last-child { border-bottom: none; }
.p-feed-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.p-feed-icon-booking { background: var(--p-orange-soft); color: var(--p-orange); }
.p-feed-icon-review { background: var(--p-yellow-soft); color: var(--p-yellow); }
.p-feed-icon-message { background: var(--p-blue-soft); color: var(--p-blue); }
.p-feed-icon-payment { background: var(--p-green-soft); color: var(--p-green); }
.p-feed-body { flex: 1; min-width: 0; }
.p-feed-text { font-size: 13px; }
.p-feed-text strong { font-weight: 700; }
.p-feed-time { font-size: 11px; color: var(--p-muted); margin-top: 2px; }

/* ============ TABS ============ */
.p-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--p-line);
  margin-bottom: 20px;
}
.p-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--p-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.p-tab:hover { color: var(--p-ink); }
.p-tab.is-active {
  color: var(--p-ink);
  border-color: var(--p-orange);
}
.p-tab-count {
  background: var(--p-bg-soft);
  color: var(--p-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
.p-tab.is-active .p-tab-count {
  background: var(--p-orange);
  color: #fff;
}

/* ============ TABLE ============ */
.p-table-wrap {
  background: var(--p-bg-card);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  overflow: hidden;
}
.p-table {
  width: 100%;
  border-collapse: collapse;
}
.p-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--p-muted);
  padding: 14px 18px;
  background: var(--p-bg-soft);
  border-bottom: 1px solid var(--p-line);
}
.p-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--p-line);
  font-size: 13px;
  vertical-align: middle;
}
.p-table tbody tr:last-child td { border-bottom: none; }
.p-table tbody tr:hover { background: var(--p-bg-soft); cursor: pointer; }
.p-table-veh {
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-table-veh-thumb {
  width: 48px; height: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--p-bg-soft);
}
.p-table-veh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-table-veh-name { font-weight: 700; font-size: 13px; }
.p-table-veh-plate { font-size: 11px; color: var(--p-muted); font-family: monospace; }
.p-table-cust {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--p-bg-soft);
  color: var(--p-ink);
  border: 1px solid var(--p-line);
}
.p-pill-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--p-muted-2); }
.p-pill-pending .p-pill-dot { background: var(--p-orange); }
.p-pill-confirmed .p-pill-dot { background: var(--p-ink); }
.p-pill-active .p-pill-dot { background: var(--p-green); animation: p-pulse 1.5s infinite; }
.p-pill-completed .p-pill-dot { background: var(--p-muted-2); }
.p-pill-cancelled .p-pill-dot { background: var(--p-red); }

/* === Sobriété façon Airbnb : icônes neutres, la couleur ne vit que dans les points === */
.p-kpi-icon { background: var(--p-bg-soft) !important; color: var(--p-ink) !important; }
.p-feed-icon-booking, .p-feed-icon-review, .p-feed-icon-message, .p-feed-icon-payment { background: var(--p-bg-soft); color: var(--p-ink); }
.p-kpi-trend-up, .p-kpi-trend-down, .p-kpi-trend-flat { background: transparent; padding-left: 0; padding-right: 8px; }
.p-h2-note { font-family: var(--p-font-body); font-weight: 500; font-size: 12px; color: var(--p-muted); letter-spacing: 0; text-transform: none; }
.p-event-done { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--p-green); }
.p-event-done svg { width: 13px; height: 13px; }

/* === État des lieux (inspection départ / retour) === */
.p-insp-backdrop { position: fixed; inset: 0; z-index: 400; background: rgba(15,16,20,0.5); display: flex; align-items: center; justify-content: center; padding: 24px; animation: pInspFade .15s ease; }
@keyframes pInspFade { from { opacity: 0; } to { opacity: 1; } }
.p-insp { width: min(460px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: var(--p-bg-card); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.p-insp-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--p-line); }
.p-insp-head-tx { flex: 1; min-width: 0; }
.p-insp-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--p-orange); }
.p-insp-title { font-family: var(--p-font-display); font-weight: 800; font-size: 18px; margin-top: 3px; }
.p-insp-sub { font-size: 12.5px; color: var(--p-muted); margin-top: 2px; }
.p-insp-x { width: 34px; height: 34px; flex: none; border-radius: 9px; border: none; background: var(--p-bg-soft); color: var(--p-muted); cursor: pointer; font-size: 13px; }
.p-insp-x:hover { background: var(--p-line); color: var(--p-ink); }
.p-insp-body { padding: 18px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.p-insp-field { display: flex; flex-direction: column; gap: 8px; }
.p-insp-field > label { font-size: 12.5px; font-weight: 700; color: var(--p-ink); display: flex; align-items: center; gap: 8px; }
.p-insp-opt { font-weight: 500; color: var(--p-muted-2); font-size: 11px; }
.p-insp-count { background: var(--p-orange); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.p-insp-km { display: flex; align-items: center; gap: 8px; }
.p-insp-km input { flex: 1; padding: 11px 13px; border: 1px solid var(--p-line); border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; }
.p-insp-km input:focus { border-color: var(--p-orange); }
.p-insp-km span { font-size: 13px; color: var(--p-muted); font-weight: 600; }
.p-insp-hint { font-size: 12px; color: var(--p-muted); }
.p-insp-hint.is-warn { color: var(--p-red); }
.p-insp-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.p-insp-seg-btn { flex: 1; min-width: 58px; padding: 9px 8px; border: 1px solid var(--p-line); background: var(--p-bg-card); border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--p-muted); cursor: pointer; transition: all .12s; }
.p-insp-seg-btn:hover { border-color: var(--p-line-2); }
.p-insp-seg-btn.is-on { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
.p-insp-photo { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px dashed var(--p-line-2); background: var(--p-bg-soft); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--p-ink); cursor: pointer; }
.p-insp-photo:hover { border-color: var(--p-orange); color: var(--p-orange); }
.p-insp-field textarea { padding: 11px 13px; border: 1px solid var(--p-line); border-radius: 10px; font-size: 14px; font-family: inherit; resize: vertical; outline: none; }
.p-insp-field textarea:focus { border-color: var(--p-orange); }
.p-insp-deposit { display: flex; gap: 8px; }
.p-insp-dep { flex: 1; padding: 11px; border: 1px solid var(--p-line); background: var(--p-bg-card); border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--p-ink); cursor: pointer; }
.p-insp-dep.is-on { background: var(--p-green-soft); border-color: var(--p-green); color: #00794a; }
.p-insp-dep-hold.is-on { background: var(--p-red-soft); border-color: var(--p-red); color: var(--p-red); }
.p-insp-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--p-line); }

/* KYC / documents (upload réel) */
.p-doc-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--p-line); border-radius: 10px; transition: border-color 0.15s; }
.p-doc-row[data-status="verified"] { border-color: #bfe6cf; background: #f6fbf8; }
.p-doc-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.p-doc-thumb { width: 42px; height: 42px; flex: none; border-radius: 9px; background: var(--p-bg-soft); border: 1px solid var(--p-line); color: var(--p-muted); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.p-doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-doc-tx { min-width: 0; }
.p-doc-name { font-weight: 700; font-size: 13px; color: var(--p-ink); }
.p-doc-sub { font-size: 11px; color: var(--p-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.p-doc-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.p-doc-del { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--p-line); background: #fff; color: var(--p-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; transition: color 0.13s, border-color 0.13s; }
.p-doc-del:hover { color: var(--p-red); border-color: var(--p-red-soft); }

@keyframes p-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============ CALENDAR (fleet) ============ */
.p-cal {
  background: var(--p-bg-card);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  overflow: hidden;
}
.p-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--p-line);
}
.p-cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.p-cal-month {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  min-width: 180px;
}
.p-cal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: auto;
}
.p-cal-side {
  border-right: 1px solid var(--p-line);
  background: var(--p-bg-soft);
}
.p-cal-side-row {
  height: 56px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--p-line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-cal-side-thumb {
  width: 44px; height: 30px;
  border-radius: 6px;
  overflow: hidden;
}
.p-cal-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-cal-side-info { min-width: 0; }
.p-cal-side-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-cal-side-plate {
  font-size: 10px;
  color: var(--p-muted);
  font-family: monospace;
}
.p-cal-side-head {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-muted);
  border-bottom: 1px solid var(--p-line);
}
.p-cal-days-head {
  height: 40px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 40px;
  border-bottom: 1px solid var(--p-line);
}
.p-cal-dayhead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--p-muted);
  border-right: 1px solid var(--p-line);
}
.p-cal-dayhead.is-today {
  background: var(--p-orange-soft);
  color: var(--p-orange);
}
.p-cal-dayhead strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--p-ink);
}
.p-cal-dayhead.is-today strong { color: var(--p-orange); }
.p-cal-row {
  position: relative;
  height: 56px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 40px;
  border-bottom: 1px solid var(--p-line);
}
.p-cal-cell {
  border-right: 1px solid var(--p-line);
}
.p-cal-cell.is-today {
  background: var(--p-orange-soft);
  opacity: 0.4;
}
.p-cal-cell.is-weekend {
  background: var(--p-bg-soft);
}
.p-cal-cell-edit { cursor: pointer; position: relative; display: flex; align-items: flex-start; justify-content: center; }
.p-cal-cell-edit:hover { box-shadow: inset 0 0 0 2px var(--p-orange); z-index: 2; }
.p-cal-cell.is-custom { background: rgba(0,184,104,0.10); }
.p-cal-cell.is-blocked { background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(20,20,26,0.10) 4px, rgba(20,20,26,0.10) 8px); }
.p-cal-cell-tag { margin-top: 3px; font-family: var(--p-font-display); font-size: 9px; font-weight: 800; color: #00794a; background: #fff; border-radius: 4px; padding: 0 3px; line-height: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.12); pointer-events: none; }

/* Éditeur de tarif/jour (modal desktop) */
.pdre-backdrop { position: fixed; inset: 0; background: rgba(15,16,20,0.5); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 24px; animation: pdre-fade 0.16s ease; }
@keyframes pdre-fade { from { opacity: 0; } }
.pdre-modal { width: 100%; max-width: 380px; background: var(--p-bg-card); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.28); display: flex; flex-direction: column; gap: 16px; animation: pdre-pop 0.18s cubic-bezier(0.2,0.8,0.2,1); }
@keyframes pdre-pop { from { transform: scale(0.96); opacity: 0; } }
.pdre-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pdre-veh { font-family: var(--p-font-display); font-weight: 800; font-size: 17px; color: var(--p-ink); }
.pdre-date { font-size: 13px; color: var(--p-muted); text-transform: capitalize; margin-top: 2px; }
.pdre-close { width: 30px; height: 30px; border-radius: 8px; background: var(--p-bg-soft); border: none; color: var(--p-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pdre-close svg { width: 16px; height: 16px; }
.pdre-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdre-lbl { font-size: 13.5px; font-weight: 700; color: var(--p-ink); }
.pdre-stepper { display: flex; align-items: center; gap: 4px; background: var(--p-bg-soft); border-radius: 999px; padding: 3px; }
.pdre-stepper button { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--p-bg-card); font-size: 17px; font-weight: 700; color: var(--p-ink); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.pdre-stepper button:disabled { opacity: 0.4; box-shadow: none; cursor: default; }
.pdre-stepper > span { min-width: 60px; text-align: center; font-size: 13px; font-weight: 700; }
.pdre-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: var(--p-bg-soft); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; cursor: pointer; text-align: left; }
.pdre-toggle.is-on { background: var(--p-bg-card); border-color: var(--p-ink); }
.pdre-toggle-t { font-size: 13.5px; font-weight: 700; color: var(--p-ink); }
.pdre-toggle-s { font-size: 11.5px; color: var(--p-muted); margin-top: 1px; }
.pdre-switch { flex-shrink: 0; width: 42px; height: 25px; border-radius: 999px; background: var(--p-line-2); position: relative; transition: background 0.16s; }
.pdre-switch i { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: left 0.16s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.pdre-toggle.is-on .pdre-switch { background: var(--p-orange); }
.pdre-toggle.is-on .pdre-switch i { left: 20px; }
.pdre-pricefield { display: flex; flex-direction: column; gap: 7px; }
.pdre-priceinput { display: flex; align-items: center; gap: 8px; background: var(--p-bg-soft); border: 1px solid var(--p-line); border-radius: 11px; padding: 0 13px; }
.pdre-priceinput input { flex: 1; border: none; background: transparent; font-family: var(--p-font-display); font-size: 19px; font-weight: 800; color: var(--p-ink); padding: 12px 0; outline: none; }
.pdre-priceinput span { font-size: 13px; font-weight: 600; color: var(--p-muted); }
.pdre-hint { font-size: 11.5px; color: var(--p-muted); }
.pdre-foot { display: flex; justify-content: flex-end; gap: 10px; }
.p-cal-booking {
  position: absolute;
  top: 8px;
  bottom: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.p-cal-booking:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.p-cal-booking-confirmed { background: var(--p-blue); }
.p-cal-booking-active { background: var(--p-green); }
.p-cal-booking-pending {
  background: repeating-linear-gradient(45deg, var(--p-yellow), var(--p-yellow) 6px, #e8a800 6px, #e8a800 12px);
  color: #fff;
}

/* ============ FLEET ============ */
.p-fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.p-fleet-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.p-fleet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.p-fleet-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.p-fleet-img img { width: 100%; height: 100%; object-fit: cover; }
.p-fleet-status {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}
.p-fleet-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.p-fleet-status-available .p-fleet-status-dot { background: var(--p-green); }
.p-fleet-status-rented .p-fleet-status-dot { background: var(--p-blue); }
.p-fleet-status-maintenance .p-fleet-status-dot { background: var(--p-yellow); }
.p-fleet-menu {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.p-fleet-body {
  padding: 16px 18px;
}
.p-fleet-name {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.p-fleet-plate {
  font-size: 11px;
  color: var(--p-muted);
  font-family: monospace;
  margin-bottom: 14px;
}
.p-fleet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--p-line);
}
.p-fleet-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--p-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.p-fleet-stat-value {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 16px;
  margin-top: 2px;
}
.p-fleet-stat-value.is-orange { color: var(--p-orange); }
.p-fleet-add {
  background: var(--p-bg-card);
  border: 2px dashed var(--p-line-2);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  min-height: 360px;
  color: var(--p-muted);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.p-fleet-add:hover {
  border-color: var(--p-orange);
  background: var(--p-orange-soft);
  color: var(--p-orange);
}
.p-fleet-add-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--p-orange-soft);
  color: var(--p-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============ INBOX ============ */
.p-inbox {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--p-bg-card);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  overflow: hidden;
  height: calc(100vh - 200px);
  min-height: 600px;
}
.p-inbox-list {
  border-right: 1px solid var(--p-line);
  overflow-y: auto;
}
.p-inbox-search {
  padding: 14px 16px;
  border-bottom: 1px solid var(--p-line);
  position: sticky;
  top: 0;
  background: var(--p-bg-card);
  z-index: 2;
}
.p-inbox-search input {
  width: 100%;
  padding: 10px 14px;
  background: var(--p-bg-soft);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.p-inbox-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--p-line);
  cursor: pointer;
  transition: background 0.15s;
  align-items: center;
}
.p-inbox-item:hover { background: var(--p-bg-soft); }
.p-inbox-item.is-active { background: var(--p-orange-soft); }
.p-inbox-item-info { flex: 1; min-width: 0; }
.p-inbox-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.p-inbox-item-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.p-inbox-item-time {
  font-size: 11px;
  color: var(--p-muted);
}
.p-inbox-item-msg {
  font-size: 12px;
  color: var(--p-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-inbox-item-sub {
  font-size: 11px;
  color: var(--p-muted-2);
  margin-top: 4px;
}
.p-inbox-item-unread {
  background: var(--p-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

/* Chat right panel */
.p-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-chat-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--p-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.p-chat-head-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-chat-head-name { font-size: 15px; font-weight: 800; }
.p-chat-head-sub { font-size: 11px; color: var(--p-muted); }
.p-chat-thread {
  flex: 1;
  padding: 22px;
  overflow-y: auto;
  background: var(--p-bg-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-chat-msg {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
}
.p-chat-msg-cust {
  background: #fff;
  border: 1px solid var(--p-line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.p-chat-msg-host {
  background: var(--p-orange);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.p-chat-time {
  font-size: 10px;
  color: var(--p-muted);
  padding: 0 14px;
  margin-bottom: 4px;
}
.p-chat-time-host { align-self: flex-end; }
.p-chat-input {
  padding: 14px 22px;
  border-top: 1px solid var(--p-line);
  display: flex;
  gap: 10px;
  align-items: center;
}
.p-chat-input input {
  flex: 1;
  padding: 12px 16px;
  background: var(--p-bg-soft);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  outline: none;
}
.p-chat-input button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--p-orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============ ANALYTICS ============ */
.p-bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.p-bar-label { font-weight: 600; }
.p-bar-track {
  height: 8px;
  background: var(--p-bg-soft);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.p-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p-orange) 0%, #ff8a3d 100%);
  border-radius: 4px;
  transition: width 0.6s;
}
.p-bar-val {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--p-ink);
  white-space: nowrap;
}
.p-bar-sub {
  font-size: 11px;
  color: var(--p-muted);
  font-weight: 600;
}

.p-funnel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-funnel-step {
  padding: 14px 18px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 auto;
  position: relative;
  color: #fff;
  font-weight: 700;
}
.p-funnel-step strong {
  font-family: var(--p-font-display);
  font-size: 22px;
  font-weight: 800;
}
.p-funnel-step span {
  font-size: 12px;
  opacity: 0.85;
}
.p-funnel-drop {
  text-align: center;
  font-size: 11px;
  color: var(--p-muted);
  padding: 4px 0;
  font-weight: 600;
}

/* ============ REVIEWS ============ */
.p-review {
  background: var(--p-bg-card);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 20px;
}
.p-review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.p-review-cust {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-review-name { font-weight: 700; font-size: 14px; }
.p-review-meta { font-size: 11px; color: var(--p-muted); margin-top: 2px; }
.p-review-rating {
  color: var(--p-orange);
  letter-spacing: 1px;
  font-size: 15px;
  white-space: nowrap;
}
.p-review-rating .p-rating-off { color: var(--p-line-2); }
.p-review-comment {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--p-ink-2);
  margin-bottom: 14px;
}
.p-review-reply {
  background: var(--p-orange-soft);
  border-left: 3px solid var(--p-orange);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}
.p-review-reply strong { color: var(--p-orange); }
.p-review-reply-form {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.p-review-reply-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

/* ============ ACCOUNT / SETTINGS ============ */
.p-settings-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}
.p-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p-settings-nav button {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-ink-2);
  border-radius: 8px;
  transition: background 0.15s;
}
.p-settings-nav button:hover { background: var(--p-bg-soft); }
.p-settings-nav button.is-active {
  background: var(--p-bg-card);
  border: 1px solid var(--p-line);
  color: var(--p-ink);
  font-weight: 700;
}
.p-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.p-form-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--p-ink);
}
.p-form-field input, .p-form-field select, .p-form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.p-form-field input:focus, .p-form-field select:focus { border-color: var(--p-orange); }
.p-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .p-app { grid-template-columns: 72px 1fr; }
  .p-logo-mark, .p-logo-tag, .p-org-meta, .p-org-caret, .p-navsection, .p-navitem span, .p-help-card {
    display: none;
  }
  .p-org { justify-content: center; padding: 8px; }
  .p-navitem { justify-content: center; padding: 12px; }
  .p-kpi-grid, .p-fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .p-grid-2, .p-grid-3 { grid-template-columns: 1fr; }
  .p-page { padding: 20px; }
}

/* ============ Live (Airtable) booking marker + disabled actions ============ */
.p-live-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--p-orange, #FF6B00);
  margin-left: 6px; vertical-align: middle;
}
.p-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============ Agency switcher (compte loueur) ============ */
.p-org-wrap { position: relative; }
.p-org-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: #fff; border-radius: 12px; padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35); border: 1px solid var(--p-line);
}
.p-org-menu-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--p-muted); padding: 8px 10px 6px;
}
.p-org-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 9px; cursor: pointer; text-align: left;
  background: transparent; border: none; transition: background 0.12s;
}
.p-org-menu-item:hover { background: var(--p-bg-soft); }
.p-org-menu-item.is-active { background: var(--p-orange-soft); }
.p-org-menu-logo {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: var(--p-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 13px;
}
.p-org-menu-info { display: flex; flex-direction: column; min-width: 0; }
.p-org-menu-info strong { font-size: 13px; font-weight: 700; color: var(--p-ink); }
.p-org-menu-info span { font-size: 11px; color: var(--p-muted); }

/* ============ Fleet actions + dark button ============ */
.p-fleet-actions { display: flex; gap: 8px; margin-top: 14px; }
.p-fleet-actions .p-btn { flex: 1; justify-content: center; }
.p-btn-dark { background: var(--p-ink); color: #fff; border: 1px solid var(--p-ink); }
.p-btn-dark:hover { background: #000; }

/* ============ Vehicle editor modal ============ */
.p-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,16,20,0.55);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  backdrop-filter: blur(2px);
}
.p-modal-card {
  background: var(--p-bg-card); border-radius: 18px; width: 100%; max-width: 760px;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}
.p-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--p-line);
}
.p-modal-head h2 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px; margin: 0; }
.p-modal-x {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--p-line);
  background: #fff; color: var(--p-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.p-modal-x:hover { background: var(--p-bg-soft); color: var(--p-ink); }
.p-modal-body { padding: 22px 24px; overflow-y: auto; }
.p-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--p-line); background: var(--p-bg-soft);
}
.p-modal-err {
  margin-top: 16px; background: var(--p-red-soft); color: var(--p-red);
  border: 1px solid rgba(210,59,59,0.2); border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 600;
}
.p-fld-section {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--p-orange); margin: 20px 0 12px;
}
.p-fld-section:first-child { margin-top: 0; }
.p-fld-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.p-fld { display: flex; flex-direction: column; gap: 5px; }
.p-fld-full { grid-column: 1 / -1; }
.p-fld > span { font-size: 11px; font-weight: 700; color: var(--p-muted); letter-spacing: 0.02em; }
.p-fld input, .p-fld select, .p-fld textarea {
  font: inherit; font-size: 13.5px; padding: 9px 11px; border: 1px solid var(--p-line);
  border-radius: 8px; background: #fff; color: var(--p-ink); outline: none; width: 100%; resize: vertical;
}
.p-fld input:focus, .p-fld select:focus, .p-fld textarea:focus { border-color: var(--p-ink); }
.p-chips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.p-chip { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--p-line); border-radius: 9px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--p-ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.p-chip:hover { border-color: var(--p-line-2); }
.p-chip.is-on { border-color: var(--p-ink); background: var(--p-bg-soft); }
.p-chip-box { width: 18px; height: 18px; flex-shrink: 0; border-radius: 5px; border: 1.5px solid var(--p-line-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.p-chip.is-on .p-chip-box { background: var(--p-orange); border-color: var(--p-orange); }
.p-chip-box svg { width: 12px; height: 12px; }
@media (max-width: 720px) { .p-fld-grid { grid-template-columns: 1fr 1fr; } }

/* ============ GESTIONNAIRE DE PHOTOS ============ */
.p-photos { display: flex; flex-direction: column; gap: 12px; }
.p-photo-drop {
  border: 1.5px dashed var(--p-line-2);
  border-radius: 12px;
  padding: 22px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; cursor: pointer;
  background: var(--p-bg-soft); color: var(--p-muted);
  transition: border-color 0.15s, background 0.15s;
}
.p-photo-drop:hover { border-color: var(--p-orange); }
.p-photo-drop.is-over { border-color: var(--p-orange); background: var(--p-orange-soft); color: var(--p-orange); }
.p-photo-drop svg { color: var(--p-orange); }
.p-photo-drop strong { color: var(--p-ink); font-weight: 700; }
.p-photo-drop span { font-size: 12px; }
.p-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px;
}
.p-photo-cell {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--p-line); background: var(--p-bg-soft); cursor: grab;
}
.p-photo-cell:active { cursor: grabbing; }
.p-photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-photo-cover-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--p-orange); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 999px;
}
.p-photo-cell-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.p-photo-mini {
  width: 24px; height: 24px; border-radius: 6px; border: none; cursor: pointer;
  background: rgba(15,16,20,0.62); color: #fff;
  font-size: 12px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
.p-photo-mini:hover { background: rgba(15,16,20,0.85); }
.p-photo-del:hover { background: var(--p-red, #e5484d); }
.p-photo-urlrow { display: flex; gap: 8px; }
.p-photo-urlrow input {
  flex: 1; font: inherit; font-size: 13px; padding: 9px 11px;
  border: 1px solid var(--p-line); border-radius: 8px; background: #fff; outline: none;
}
.p-photo-urlrow input:focus { border-color: var(--p-ink); }
.p-photo-hint { font-size: 11px; color: var(--p-muted); }

/* ---- Éditeur de cadrage ---- */
.p-crop-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15,16,20,0.62); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.p-crop-card {
  background: var(--p-bg-card); border-radius: 16px; width: 100%; max-width: 460px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3); display: flex; flex-direction: column; overflow: hidden;
}
.p-crop-body { padding: 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.p-crop-stage {
  position: relative; overflow: hidden; border-radius: 10px;
  background: #111; cursor: grab; touch-action: none; user-select: none;
  box-shadow: 0 0 0 1px var(--p-line);
}
.p-crop-stage:active { cursor: grabbing; }
.p-crop-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
  opacity: 0.35;
}
.p-crop-zoom { display: flex; align-items: center; gap: 12px; width: 100%; }
.p-crop-zoom span { font-size: 12px; font-weight: 700; color: var(--p-muted); width: 40px; }
.p-crop-zoom input[type=range] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 999px; background: var(--p-line); outline: none;
}
.p-crop-zoom input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--p-orange); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.25); cursor: pointer;
}
.p-crop-zoom input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--p-orange); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.25); cursor: pointer;
}
.p-crop-hint { font-size: 12px; color: var(--p-muted); margin: 0; text-align: center; }
.p-crop-err { font-size: 13px; color: var(--p-muted); line-height: 1.5; text-align: center; padding: 12px; }

/* ====================== CARNET DE BORD VÉHICULE (pv-*) ====================== */
.pv-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--p-bg, #f6f6f4);
  display: flex; flex-direction: column;
}
.pv-topbar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: #fff; border-bottom: 1px solid var(--p-line);
}
.pv-topbar-mid { flex: 1; text-align: center; font-family: var(--p-font-display); font-weight: 800; font-size: 15px; }
.pv-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  font-family: var(--p-font-body); font-weight: 700; font-size: 14px; color: var(--p-ink);
  padding: 6px 4px;
}
.pv-back:hover { color: var(--p-orange); }
.pv-scroll { flex: 1; overflow-y: auto; padding: 28px; }

.pv-hero {
  max-width: 1140px; margin: 0 auto 22px;
  display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: stretch;
}
.pv-hero-img { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--p-bg-soft); border: 1px solid var(--p-line); }
.pv-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-hero-info { display: flex; flex-direction: column; justify-content: center; }
.pv-hero-info h1 { font-family: var(--p-font-display); font-weight: 900; font-size: 30px; letter-spacing: -0.02em; margin: 8px 0 4px; }
.pv-hero-sub { font-size: 14px; color: var(--p-muted); margin-bottom: 20px; }
.pv-status {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.pv-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pv-status-available { background: var(--p-green-soft); color: var(--p-green); }
.pv-status-rented { background: var(--p-blue-soft); color: var(--p-blue); }

.pv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pv-kpi { background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: 14px 16px; }
.pv-kpi-label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--p-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.pv-kpi-ic { display: inline-flex; color: var(--p-orange); }
.pv-kpi-value { font-family: var(--p-font-display); font-weight: 800; font-size: 22px; margin-top: 6px; letter-spacing: -0.01em; }
.pv-kpi-value.is-orange { color: var(--p-orange); }

.pv-cols { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.pv-card { background: #fff; border: 1px solid var(--p-line); border-radius: 18px; padding: 22px; margin-bottom: 22px; }
.pv-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.pv-card-head h2 { font-family: var(--p-font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.pv-card-note { font-size: 12px; color: var(--p-muted); font-weight: 600; }

.pv-empty { padding: 28px 16px; text-align: center; color: var(--p-muted); font-size: 13.5px; line-height: 1.5; }
.pv-empty-sm { padding: 20px 16px; }
.pv-empty-ok { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--p-green); font-weight: 600; }

/* compteur */
.pv-chart-svg { width: 100%; height: 200px; display: block; }
.pv-chart-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--p-muted); font-weight: 600; margin-top: 6px; }

/* timeline états des lieux */
.pv-timeline { display: flex; flex-direction: column; }
.pv-tl-item { display: grid; grid-template-columns: 16px 1fr; gap: 14px; padding-bottom: 18px; }
.pv-tl-item:not(:last-child) { background: linear-gradient(var(--p-line), var(--p-line)) no-repeat 7px 0 / 1.5px 100%; }
.pv-tl-marker { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--p-orange); margin-top: 3px; }
.pv-tl-body { border: 1px solid var(--p-line); border-radius: 14px; padding: 14px 16px; background: var(--p-bg-soft, #fafafa); }
.pv-tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pv-tl-ref { color: var(--p-muted); font-size: 12px; font-weight: 600; }
.pv-tl-dates { font-size: 12.5px; color: var(--p-muted); }
.pv-diff { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.pv-diff-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--p-ink); color: #fff; }
.pv-diff-pill.is-warn { background: var(--p-orange); }

.pv-insp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pv-insp-col { background: #fff; border: 1px solid var(--p-line); border-radius: 12px; padding: 12px 14px; }
.pv-insp-col.pv-insp-empty { display: flex; flex-direction: column; justify-content: center; background: repeating-linear-gradient(45deg, #fff, #fff 6px, var(--p-bg-soft) 6px, var(--p-bg-soft) 12px); }
.pv-insp-col-head { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--p-muted); display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pv-insp-date { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 11px; }
.pv-insp-missing { display: inline-flex; align-items: center; gap: 7px; color: var(--p-muted); font-size: 13px; font-weight: 600; }
.pv-insp-missing svg { color: var(--p-orange); }
.pv-insp-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 3px 0; }
.pv-insp-line span { color: var(--p-muted); }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pv-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--p-green-soft); color: var(--p-green); }
.pv-chip-warn { background: var(--p-orange-soft); color: var(--p-orange); }
.pv-chip-soft { background: var(--p-bg-soft); color: var(--p-muted); }
.pv-insp-note { font-size: 12.5px; color: var(--p-muted); font-style: italic; margin-top: 9px; line-height: 1.45; }
.pv-insp-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.pv-insp-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; border: 1px solid var(--p-line); }
.pv-dep { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; margin-top: 9px; display: inline-block; }
.pv-dep-ok { background: var(--p-green-soft); color: var(--p-green); }
.pv-dep-hold { background: var(--p-orange-soft); color: var(--p-orange); }

/* entretien & échéances */
.pv-ech-list { display: flex; flex-direction: column; gap: 4px; }
.pv-ech { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--p-line); }
.pv-ech:last-child { border-bottom: none; }
.pv-ech-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--p-bg-soft); color: var(--p-ink); display: inline-flex; align-items: center; justify-content: center; }
.pv-ech-body { flex: 1; min-width: 0; }
.pv-ech-name { font-size: 13.5px; font-weight: 700; }
.pv-ech-detail { font-size: 11.5px; color: var(--p-muted); margin-top: 2px; }
.pv-ech-right { text-align: right; }
.pv-ech-val { font-size: 12.5px; font-weight: 700; }
.pv-ech-badge { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.pv-ech-ok { background: var(--p-green-soft); color: var(--p-green); }
.pv-ech-soon { background: var(--p-orange-soft); color: var(--p-orange); }
.pv-ech-late { background: #fde8e8; color: #c0392b; }

/* journal des dégâts */
.pv-dmg-list { display: flex; flex-direction: column; gap: 10px; }
.pv-dmg { display: flex; gap: 11px; }
.pv-dmg-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: var(--p-orange-soft); color: var(--p-orange); display: inline-flex; align-items: center; justify-content: center; }
.pv-dmg-txt { font-size: 13.5px; font-weight: 600; }
.pv-dmg-meta { font-size: 11.5px; color: var(--p-muted); margin-top: 2px; }
.pv-dmg-note { font-size: 12px; color: var(--p-muted); font-style: italic; margin-top: 4px; }

@media (max-width: 940px) {
  .pv-hero { grid-template-columns: 1fr; }
  .pv-cols { grid-template-columns: 1fr; }
  .pv-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ====================== DÉTAIL RÉSERVATION (volet latéral, p-rd-*) ====================== */
.p-rd-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(15,16,20,0.34); display: flex; justify-content: flex-end; }
.p-rd { width: 460px; max-width: 94vw; height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -18px 0 50px rgba(0,0,0,0.18); animation: pRdIn 0.22s cubic-bezier(0.22,1,0.36,1); }
@keyframes pRdIn { from { transform: translateX(30px); } to { transform: translateX(0); } }
.p-rd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 16px; border-bottom: 1px solid var(--p-line); }
.p-rd-ref { font-family: var(--p-font-display); font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.p-rd-dates { font-size: 12.5px; color: var(--p-muted); margin-top: 3px; }
.p-rd-top-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.p-rd-x { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--p-bg-soft); color: var(--p-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.p-rd-x:hover { background: var(--p-line); }
.p-rd-body { flex: 1; overflow-y: auto; padding: 20px 24px; }

.p-rd-veh { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.p-rd-veh-img { width: 96px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--p-bg-soft); flex-shrink: 0; }
.p-rd-veh-img img { width: 100%; height: 100%; object-fit: cover; }
.p-rd-veh-name { font-family: var(--p-font-display); font-weight: 800; font-size: 16px; }
.p-rd-veh-sub { font-size: 12.5px; color: var(--p-muted); margin-top: 2px; }

.p-rd-cust { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
.p-rd-cust-name { font-weight: 700; font-size: 14px; }
.p-rd-cust-meta { font-size: 12px; color: var(--p-muted); margin-top: 2px; }

.p-rd-rows { padding: 6px 0 4px; }
.p-rd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--p-line); }
.p-rd-row:last-child { border-bottom: none; }
.p-rd-row span { color: var(--p-muted); }
.p-rd-row strong { text-align: right; }
.p-rd-row-total strong { font-family: var(--p-font-display); font-weight: 800; font-size: 18px; color: var(--p-orange); }

.p-rd-sec-h { font-family: var(--p-font-display); font-weight: 800; font-size: 14px; margin: 22px 0 12px; }
.p-rd-edl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-rd-edl-col { border: 1px solid var(--p-line); border-radius: 12px; padding: 12px 13px; }
.p-rd-edl-col.p-rd-edl-empty { display: flex; flex-direction: column; justify-content: center; background: repeating-linear-gradient(45deg, #fff, #fff 6px, var(--p-bg-soft) 6px, var(--p-bg-soft) 12px); }
.p-rd-edl-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--p-muted); margin-bottom: 9px; display: flex; flex-direction: column; gap: 2px; }
.p-rd-edl-date { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 11px; }
.p-rd-edl-missing { font-size: 13px; color: var(--p-muted); font-weight: 600; }
.p-rd-edl-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 3px 0; }
.p-rd-edl-line span { color: var(--p-muted); }
.p-rd-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.p-rd-chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--p-green-soft); color: var(--p-green); }
.p-rd-chip.is-warn { background: var(--p-orange-soft); color: var(--p-orange); }
.p-rd-chip.is-soft { background: var(--p-bg-soft); color: var(--p-muted); }
.p-rd-dep { font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 8px; margin-top: 9px; display: inline-block; }
.p-rd-dep.is-ok { background: var(--p-green-soft); color: var(--p-green); }
.p-rd-dep.is-hold { background: var(--p-orange-soft); color: var(--p-orange); }
.p-rd-edl-note { font-size: 12px; color: var(--p-muted); font-style: italic; margin-top: 9px; line-height: 1.45; }

.p-rd-foot { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--p-line); }
.p-rd-foot .p-btn { flex: 1; }
.p-rd-foot-full { width: 100%; }

/* ====================== POLITIQUE DE PRIX (p-pol-*) ====================== */
.p-pol-lede { font-size: 13px; color: var(--p-muted); line-height: 1.55; margin: 0 0 18px; max-width: 640px; }
.p-pol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-pol-rule { border: 1px solid var(--p-line); border-radius: 12px; padding: 16px 18px; background: var(--p-bg-card); }
.p-pol-rule-wide { margin-top: 14px; }
.p-pol-rule-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.p-pol-rule-tx { min-width: 0; }
.p-pol-rule-t { font-weight: 700; font-size: 14.5px; color: var(--p-ink); }
.p-pol-rule-s { font-size: 12.5px; color: var(--p-muted); margin-top: 3px; line-height: 1.45; }
.p-pol-fields { display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.p-pol-field { display: flex; flex-direction: column; gap: 7px; }
.p-pol-field > span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--p-muted); }
.p-pol-num { display: flex; align-items: center; gap: 5px; background: var(--p-bg-soft); border: 1px solid var(--p-line); border-radius: 9px; padding: 0 12px; width: 120px; }
.p-pol-num input { width: 100%; border: none; background: transparent; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 16px; color: var(--p-ink); padding: 9px 0; outline: none; text-align: left; -moz-appearance: textfield; }
.p-pol-num input::-webkit-outer-spin-button, .p-pol-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.p-pol-num em { font-style: normal; font-weight: 800; font-size: 14px; color: var(--p-muted); }

.p-pol-zones { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; max-width: 560px; }
.p-pol-zone { display: flex; align-items: center; gap: 10px; }
.p-pol-zone-name { flex: 1; min-width: 0; border: 1px solid var(--p-line); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--p-ink); background: #fff; outline: none; }
.p-pol-zone-name:focus { border-color: var(--p-orange); }
.p-pol-zone .p-pol-num { width: 104px; }
.p-pol-zone-del { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--p-line); background: #fff; border-radius: 9px; color: var(--p-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.p-pol-zone-del:hover { border-color: var(--p-red); color: var(--p-red); background: var(--p-red-soft); }
.p-pol-zone-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--p-line-2); background: #fff; border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: 13px; color: var(--p-ink); cursor: pointer; }
.p-pol-zone-add:hover { border-color: var(--p-orange); color: var(--p-orange); background: var(--p-orange-soft); }
.p-pol-zone-add svg { width: 16px; height: 16px; }

.p-pol-sub { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--p-ink); margin: 26px 0 12px; }
.p-pol-note { font-size: 12.5px; color: var(--p-muted); line-height: 1.5; margin: 12px 0 0; max-width: 560px; }
.p-pol-saved { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; font-size: 12.5px; font-weight: 700; color: var(--p-green); }

/* toggle pro */
.p-tg { width: 46px; height: 27px; flex-shrink: 0; border-radius: 999px; border: none; background: var(--p-line-2, #d8dade); position: relative; cursor: pointer; transition: background 0.18s; }
.p-tg-knob { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.18s; }
.p-tg.is-on { background: var(--p-orange); }
.p-tg.is-on .p-tg-knob { transform: translateX(19px); }

@media (max-width: 880px) { .p-pol-grid { grid-template-columns: 1fr; } }

/* ============ AUTH (connexion / gate pro) ============ */
.auth-overlay { position: fixed; inset: 0; z-index: 2000; background: var(--p-bg); display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; background: #fff; border: 1px solid var(--p-line); border-radius: 18px; padding: 40px 36px 32px; box-shadow: 0 30px 80px rgba(0,0,0,0.14); }
.auth-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--p-bg-soft); border: none; color: var(--p-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.auth-close:hover { background: var(--p-line); }
.auth-screen { display: flex; flex-direction: column; }
.auth-welcome { text-align: center; align-items: center; padding: 12px 0; }
.auth-logo { font-family: var(--p-font-display); font-weight: 900; font-style: italic; font-size: 30px; letter-spacing: -0.02em; color: var(--p-orange); margin-bottom: 22px; }
.auth-title { font-family: var(--p-font-display); font-weight: 800; font-size: 28px; line-height: 1.15; color: var(--p-ink); margin: 0 0 10px; max-width: 340px; }
.auth-sub { font-size: 15px; color: var(--p-muted); line-height: 1.5; margin: 0 0 28px; max-width: 360px; }
.auth-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-back { width: 36px; height: 36px; border-radius: 50%; background: var(--p-bg-soft); border: none; color: var(--p-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.auth-head h2 { margin: 0; font-family: var(--p-font-display); font-weight: 800; font-size: 24px; color: var(--p-ink); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--p-ink); margin-bottom: 6px; }
.auth-field input { width: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid var(--p-line); border-radius: 11px; font: inherit; font-size: 15px; color: var(--p-ink); outline: none; background: #fff; }
.auth-field input:focus { border-color: var(--p-orange); }
.auth-hosttoggle { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 11px; background: var(--p-bg-soft); border: 1px solid transparent; cursor: pointer; text-align: left; font-size: 13.5px; color: var(--p-ink); line-height: 1.4; }
.auth-hosttoggle.is-on { border-color: var(--p-orange); background: var(--p-orange-soft); }
.auth-check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--p-line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.auth-hosttoggle.is-on .auth-check { background: var(--p-orange); border-color: var(--p-orange); }
.auth-error { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; text-align: center; }
.auth-notice { background: var(--p-green-soft); color: #1a7a4d; border: 1px solid #b6e6cd; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; text-align: center; }
.auth-btn-primary { margin-top: 4px; padding: 15px; border-radius: 11px; border: none; background: var(--p-orange); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%; }
.auth-btn-primary:hover { background: var(--p-orange-2); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: default; }
.auth-btn-ghost { margin-top: 12px; padding: 15px; border-radius: 11px; background: #fff; border: 1px solid var(--p-ink); color: var(--p-ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%; max-width: 340px; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--p-muted); margin: 16px 0 0; }
.auth-switch button { background: none; border: none; color: var(--p-orange); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 0; }

/* ============ GATE / SPLASH / ACTIVATION ============ */
.p-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--p-bg); padding: 24px; }
.p-gate-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--p-line); border-radius: 18px; padding: 40px 36px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.10); }
.p-gate-logo { font-family: var(--p-font-display); font-weight: 900; font-style: italic; font-size: 26px; color: var(--p-orange); letter-spacing: -0.02em; }
.p-gate-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--p-muted); vertical-align: middle; }
.p-gate-card h1 { font-family: var(--p-font-display); font-weight: 800; font-size: 24px; color: var(--p-ink); margin: 22px 0 8px; }
.p-gate-card p { font-size: 14.5px; color: var(--p-muted); line-height: 1.55; margin: 0 0 24px; }
.p-gate-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.p-gate-form label { font-size: 12.5px; font-weight: 700; color: var(--p-ink); }
.p-gate-form input { width: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid var(--p-line); border-radius: 11px; font: inherit; font-size: 15px; outline: none; margin-top: 6px; }
.p-gate-form input:focus { border-color: var(--p-orange); }
.p-gate-foot { margin-top: 18px; font-size: 13px; color: var(--p-muted); }
.p-gate-foot button, .p-gate-foot a { background: none; border: none; color: var(--p-orange); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; }
.p-gate-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--p-line); border-top-color: var(--p-orange); animation: p-spin 0.8s linear infinite; margin: 0 auto; }
@keyframes p-spin { to { transform: rotate(360deg); } }

/* ============ Org switcher : version verrouillée (loueur) ============ */
.p-org.is-locked { cursor: default; }
.p-org.is-locked:hover { background: transparent; }
.p-org-role { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-orange); background: var(--p-orange-soft); padding: 2px 7px; border-radius: 5px; margin-left: 8px; }
.p-org-role.is-admin { color: #fff; background: var(--p-ink); }

/* ===== Réservation instantanée ===== */
.p-inst-toggle { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: #6b7280; background: #fff; cursor: pointer; }
.p-inst-toggle input { accent-color: #FF6B00; width: 18px; height: 18px; margin-top: 1px; flex: none; }
.p-inst-toggle strong { color: #111827; font-size: 13px; }
.p-fleet-inst { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.95); color: #c14f00; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 4px 9px; }
.p-expire { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #c14f00; background: #fff3e8; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.p-expire.is-urgent { color: #c0182b; background: #fdecee; }
.p-mode-inst { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 800; color: #c14f00; background: #fff3e8; border-radius: 999px; padding: 2px 8px; }
