/* ============================================================
   Complis UI v2 — Design system (v1.6.0)
   Inspired by Solteo. Progressive enhancement.
   - Shell classes (.app-shell/.sidebar/.topbar/.main) are new
   - All component classes prefixed "v2-" to avoid collisions
     with legacy .page/.card/.badge/.kpi in index.html
   ============================================================ */

:root {
  /* v3.0.2 BRIEF #44 Sprint A : --v2-* aliasés sur les tokens (tokens.css).
     Permet la migration progressive : tout nouveau code utilise les tokens,
     l'ancien --v2-* continue de marcher. */
  --v2-sidebar-bg: #0B1F3A;
  --v2-sidebar-fg: #E6F1FB;
  --v2-sidebar-muted: #85B7EB;
  --v2-sidebar-hover: rgba(255,255,255,0.08);
  --v2-sidebar-active: var(--color-primary);
  --v2-topbar-bg: var(--color-bg);
  --v2-topbar-border: var(--color-border);
  --v2-accent: var(--color-primary);
  --v2-accent-hover: var(--color-primary-hover);
  --v2-bg: var(--color-bg-app);
  --v2-text: var(--color-text);
  --v2-muted: var(--color-text-muted);
  --v2-border: var(--color-border);
  --v2-card-bg: var(--color-bg-card);
  --v2-radius-sm: var(--radius-md);
  --v2-radius: var(--radius-xl);
  --v2-radius-lg: var(--radius-2xl);
  --v2-shadow: var(--shadow-sm);
  --v2-shadow-lg: var(--shadow-lg);
  --v2-sidebar-width: 240px;
  --v2-sidebar-collapsed: 64px;
  --v2-header-height: 60px;
}

/* Theme HE (green) inherits from body.theme-he */
body.theme-he {
  --v2-sidebar-bg: #14532D;
  --v2-sidebar-muted: #6EE7A0;
  --v2-sidebar-active: #16A34A;
  --v2-accent: #16A34A;
  --v2-accent-hover: #15803D;
}

/* ============================================================
   APP SHELL LAYOUT
   ============================================================ */

body.v2-active { background: var(--v2-bg); }

/* Desktop: push content right to make room for fixed sidebar */
@media (min-width: 1024px) {
  body.v2-active { padding-left: var(--v2-sidebar-width); }
}

/* BRIEF #45 (v5.19.0) — overrides legacy `.app-hdr` et `#app-tabs` retirés :
   les éléments ne sont plus dans le DOM. La sidebar v2 est l'unique nav. */

/* Expand the legacy .wrap container to fill the remaining area */
body.v2-active .wrap {
  max-width: none;
  padding-bottom: 40px;
}
@media (min-width: 1024px) {
  body.v2-active .wrap { padding: 0 18px 40px; }
}

/* ============================================================
   LEGACY BUTTON RESTYLE (commit #3 — additive, no HTML change)
   Maps .btnm / .btns / .btnd / .cbtn to the v2 aesthetic when
   the shell is active. Legacy classes stay for rollback safety.
   ============================================================ */

body.v2-active .btnm {
  background: var(--v2-accent);
  color: #fff;
  border: 1px solid var(--v2-accent);
  border-radius: var(--v2-radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  line-height: 1.3;
}
body.v2-active .btnm:hover {
  background: var(--v2-accent-hover);
  border-color: var(--v2-accent-hover);
}
body.v2-active .btnm:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(24,95,165,0.22);
}

body.v2-active .btns {
  background: #fff;
  color: var(--v2-text);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.3;
}
body.v2-active .btns:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}
body.v2-active .btns:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(24,95,165,0.15);
}

body.v2-active .btnd {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
  border-radius: var(--v2-radius-sm);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.3;
}
body.v2-active .btnd:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

/* Segmented choice button (cbtn) */
body.v2-active .cbtn {
  background: #F9FAFB;
  color: var(--v2-muted);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.3;
}
body.v2-active .cbtn:hover { background: #F3F4F6; color: var(--v2-text); }
body.v2-active .cbtn.heon,
body.v2-active .cbtn.dron {
  background: var(--v2-accent);
  color: #fff;
  border-color: var(--v2-accent);
}
body.v2-active .cbtn.heon:hover,
body.v2-active .cbtn.dron:hover {
  background: var(--v2-accent-hover);
  border-color: var(--v2-accent-hover);
}

/* ============================================================
   LEGACY FORM RESTYLE (commit #4 — additive, no HTML change)
   .fld / .fld label / .inp / .sel / textarea.inp / .g2 / .g3
   .sh / .sb / .hint / .res / .tbar
   ============================================================ */

/* Field wrapper */
body.v2-active .fld {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 2px;
}
body.v2-active .fld label {
  font-size: 11px;
  font-weight: 700;
  color: var(--v2-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Inputs, selects, textareas */
body.v2-active .inp,
body.v2-active .sel,
body.v2-active textarea.inp {
  border: 1px solid var(--v2-border);
  background: #fff;
  border-radius: var(--v2-radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}
body.v2-active .sel {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
body.v2-active .inp:focus,
body.v2-active .sel:focus,
body.v2-active textarea.inp:focus {
  outline: none;
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.12);
}
body.v2-active .inp::placeholder,
body.v2-active textarea.inp::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}
body.v2-active textarea.inp { min-height: 70px; resize: vertical; }
body.v2-active .inp:disabled,
body.v2-active .sel:disabled {
  background: #F9FAFB;
  color: #9CA3AF;
  cursor: not-allowed;
}

/* Grids — widen gap slightly on desktop */
body.v2-active .g2 { gap: 14px; }
body.v2-active .g3 { gap: 12px; }
@media (min-width: 768px) {
  body.v2-active .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2-active .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Hint text */
body.v2-active .hint {
  font-size: 11px;
  color: var(--v2-muted);
  line-height: 1.45;
}

/* Section header + body — the canonical Complis "card" pattern.
   Restyle to a softer card aesthetic while keeping legacy structure. */
body.v2-active .sh {
  background: #F9FAFB;
  color: var(--v2-text);
  font-size: 12px;
  font-weight: 700;
  padding: 11px 16px;
  border: 1px solid var(--v2-border);
  border-bottom: none;
  border-radius: var(--v2-radius) var(--v2-radius) 0 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
body.v2-active .sb {
  border: 1px solid var(--v2-border);
  border-top: none;
  border-radius: 0 0 var(--v2-radius) var(--v2-radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--v2-shadow);
  margin-bottom: 14px;
}
/* When .sb is used alone (no .sh before), keep full radius */
body.v2-active .sw > .sb:first-child { border-top: 1px solid var(--v2-border); border-radius: var(--v2-radius); }
body.v2-active .sw { margin-bottom: 14px; }

/* Result box (.res) — greenish KPI-like */
body.v2-active .res {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--v2-radius-sm);
  padding: 10px 12px;
  text-align: center;
}
body.v2-active .rhi {
  background: #DCFCE7;
  border-color: #86EFAC;
}
body.v2-active .rl {
  font-size: 10px;
  color: #166534;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
body.v2-active .rv {
  font-size: 15px;
  font-weight: 700;
  color: #14532D;
  margin-top: 3px;
}

/* Bottom toolbar (.tbar) — totals strip */
body.v2-active .tbar {
  background: var(--v2-sidebar-bg);
  color: #E6F1FB;
  border-radius: var(--v2-radius);
  padding: 16px 20px;
  margin-top: 14px;
  box-shadow: var(--v2-shadow-lg);
}
body.v2-active .tr {
  color: rgba(230,241,251,0.75);
  font-size: 13px;
  padding: 5px 0;
}
body.v2-active .tr span:last-child { color: #fff; font-weight: 700; }

/* Filter bar (.fbar) and search-result bar (.sbar) */
body.v2-active .fbar input,
body.v2-active .fbar select {
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  background: #fff;
  color: var(--v2-text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.v2-active .fbar input:focus,
body.v2-active .fbar select:focus {
  outline: none;
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.12);
}
body.v2-active .sbar {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  border-radius: var(--v2-radius-sm);
  padding: 10px 14px;
  font-size: 13px;
}

/* Info banners (.iban, .lblk) */
body.v2-active .iban {
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12px;
  border-radius: var(--v2-radius-sm);
  padding: 9px 13px;
  margin-top: 10px;
  border: 1px solid #BFDBFE;
}
body.v2-active .lblk {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--v2-radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
}

/* OK / error inline messages */
body.v2-active .okmsg {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #86EFAC;
  padding: 10px 14px;
  border-radius: var(--v2-radius-sm);
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}
body.v2-active .errmsg {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
  padding: 10px 14px;
  border-radius: var(--v2-radius-sm);
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}

/* Checkboxes + radios: use accent color */
body.v2-active input[type="checkbox"],
body.v2-active input[type="radio"] {
  accent-color: var(--v2-accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ============================================================
   COMMIT #6 — CHANTIER DETAIL PAGE (breadcrumb + pipeline)
   ============================================================ */

/* Breadcrumb above the dossier page */
body.v2-active .v2-breadcrumb {
  margin: 0 0 12px 0;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  box-shadow: var(--v2-shadow);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.v2-active .v2-breadcrumb a { color: var(--v2-accent); text-decoration: none; font-weight: 600; cursor: pointer; }
body.v2-active .v2-breadcrumb a:hover { text-decoration: underline; }
body.v2-active .v2-breadcrumb-sep { color: #D1D5DB; font-weight: 300; }
body.v2-active .v2-breadcrumb-current { color: var(--v2-text); font-weight: 700; }

/* Dossier header card (title + badge + edit button) */
body.v2-active #pg-dossier > div:first-of-type,
body.v2-active #pg-dossier > .v2-breadcrumb + div {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 14px 18px !important;
  box-shadow: var(--v2-shadow);
  margin-bottom: 12px !important;
}
body.v2-active #dos-title {
  color: var(--v2-text) !important;
  font-size: 18px !important;
}

/* Status pipeline (BRIEF #39 Sprint A : #dos-statut-bar legacy retiré) */

/* ============================================================
   BRIEF #39 Sprint B — Mode-bar contextuelle des groupes
   Sous les onglets dossier, apparaît quand un onglet groupé
   (Étude PV, Offre client, Préparation, Clôture financière)
   est actif. Permet de switcher entre modes internes.
   ============================================================ */
/* Masquage des boutons enfants legacy dans #dos-tabs (Sprint B BRIEF #39).
   Utilise une classe au lieu de style.display='none' pour ne pas perturber
   la détection 'caché par rôle' dans isDosBtnVisible() de la sidebar dossier
   (UIv2.dossier), qui lit btn.style.display directement. */
#dos-tabs .tb.dos-child-hidden { display: none !important; }

/* ============================================================
   BRIEF #39 Sprint C — Barre transversale + highlight phase
   ============================================================ */

/* Barre verticale sticky-droite avec icônes raccourcis vers les onglets
   transversaux (Journal, Messages HE, Financier, Portail, SAV).
   Visible desktop uniquement, masquée mobile (où #dos-tabs prend le relais). */
.dos-transversal-bar {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 6px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 40;
}
.dos-trans-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 120ms, border-color 120ms, color 120ms;
  max-width: 40px;
  overflow: hidden;
}
.dos-trans-btn:hover {
  background: #F3F4F6;
  max-width: 200px;
}
.dos-trans-btn.active {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
  font-weight: 600;
}
.dos-trans-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.dos-trans-label {
  opacity: 0;
  transition: opacity 120ms;
}
.dos-trans-btn:hover .dos-trans-label,
.dos-trans-btn.active .dos-trans-label {
  opacity: 1;
}
@media (max-width: 1100px) {
  .dos-transversal-bar { display: none !important; }
}

/* Highlight de la section "phase active" dans la sidebar dossier.
   Posé sur le header .sidebar-section quand le statut chantier
   correspond à cette section. */
#v2-sidebar-nav .sidebar-section.current-phase {
  color: #1E40AF;
  background: linear-gradient(90deg, #EFF6FF 0%, transparent 100%);
  position: relative;
  padding-left: 12px;
}
#v2-sidebar-nav .sidebar-section.current-phase::before {
  content: '●';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #2563EB;
  font-size: 10px;
  animation: dos-phase-pulse 2s ease-in-out infinite;
}
@keyframes dos-phase-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dos-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-top: 2px solid #2563EB;
  border-radius: 0 0 8px 8px;
  margin-bottom: 12px;
}
.dos-mode-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: #1E40AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.dos-mode-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  background: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.dos-mode-btn:hover {
  background: #F3F4F6;
  color: #374151;
}
.dos-mode-btn.active {
  background: #185FA5;
  color: #fff;
  border-color: #185FA5;
  font-weight: 600;
}
body.v2-active .dos-mode-bar {
  background: #EFF6FF;
  border-color: #BFDBFE;
  border-top: 2px solid #2563EB;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
body.v2-active .dos-mode-btn.active {
  background: var(--v2-accent, #185FA5);
  border-color: var(--v2-accent, #185FA5);
}

body.v2-active .v2-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
body.v2-active .v2-pipeline-step {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 2px;
}
body.v2-active .v2-pipeline-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #E5E7EB;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  z-index: 2;
  position: relative;
  transition: all 0.2s;
}
body.v2-active .v2-pipeline-step.done .v2-pipeline-circle {
  background: #16A34A;
  border-color: #16A34A;
  color: #fff;
}
body.v2-active .v2-pipeline-step.current .v2-pipeline-circle {
  background: var(--v2-accent);
  border-color: var(--v2-accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(24,95,165,0.18);
  transform: scale(1.06);
}
body.v2-active .v2-pipeline-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--v2-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 7px;
  line-height: 1.25;
  max-width: 80px;
}
body.v2-active .v2-pipeline-step.done .v2-pipeline-label,
body.v2-active .v2-pipeline-step.current .v2-pipeline-label {
  color: var(--v2-text);
}
body.v2-active .v2-pipeline-step.clickable { cursor: pointer; }
body.v2-active .v2-pipeline-step.clickable:hover .v2-pipeline-circle:not(.current) {
  border-color: var(--v2-accent);
  color: var(--v2-accent);
}
/* Connecting line between steps */
body.v2-active .v2-pipeline-step::after {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #E5E7EB;
  z-index: 1;
}
body.v2-active .v2-pipeline-step:last-child::after { display: none; }
body.v2-active .v2-pipeline-step.done::after { background: #16A34A; }

/* Admin statut change panel */
body.v2-active .v2-pipeline-admin {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--v2-border);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--v2-muted);
}
body.v2-active .v2-pipeline-admin select {
  font-size: 12px !important;
  padding: 6px 10px !important;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  background: #fff;
  color: var(--v2-text);
  font-family: inherit;
  flex: 1;
  max-width: 260px;
}

/* Mobile: compact pipeline */
@media (max-width: 640px) {
  body.v2-active .v2-pipeline-step { min-width: 56px; }
  body.v2-active .v2-pipeline-circle { width: 34px; height: 34px; font-size: 14px; }
  body.v2-active .v2-pipeline-step::after { top: 16px; left: calc(50% + 18px); right: calc(-50% + 18px); }
  body.v2-active .v2-pipeline-label { font-size: 9px; }
}

/* ============================================================
   LEGACY TABLE RESTYLE (commit #5 — additive, no HTML change)
   .tt / .ti / auto-labeled responsive mobile cards
   ============================================================ */

body.v2-active .tt {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  overflow: hidden;
  box-shadow: var(--v2-shadow);
}
body.v2-active .tt thead th {
  background: #F9FAFB;
  color: var(--v2-muted);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--v2-border);
  white-space: nowrap;
}
body.v2-active .tt thead th:first-child { text-align: left; }
body.v2-active .tt tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #F3F4F6;
  color: var(--v2-text);
  font-size: 13px;
  background: #fff;
}
body.v2-active .tt tbody tr:last-child td { border-bottom: none; }
body.v2-active .tt tbody tr:nth-child(even) td { background: #FAFBFC; }
body.v2-active .tt tbody tr:hover td { background: #EFF6FF; }

/* Inline inputs inside tables */
body.v2-active .ti {
  width: 100%;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  text-align: center;
  background: #fff;
  color: var(--v2-text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.v2-active .ti:focus {
  outline: none;
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 2px rgba(24,95,165,0.12);
}

/* Mobile: transform auto-labeled tables into cards.
   Only tables tagged data-v2-labeled="1" by autoLabelTables() get this.
   Tables WITHOUT thead or with too few columns fall back to horizontal scroll. */
@media (max-width: 640px) {
  body.v2-active .tt[data-v2-labeled="1"] {
    border: none;
    background: transparent;
    box-shadow: none;
    display: block;
  }
  body.v2-active .tt[data-v2-labeled="1"] thead { display: none; }
  body.v2-active .tt[data-v2-labeled="1"] tbody,
  body.v2-active .tt[data-v2-labeled="1"] tr {
    display: block;
  }
  body.v2-active .tt[data-v2-labeled="1"] tr {
    background: #fff;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    margin-bottom: 10px;
    padding: 6px 0;
    box-shadow: var(--v2-shadow);
  }
  body.v2-active .tt[data-v2-labeled="1"] tbody tr:nth-child(even) td,
  body.v2-active .tt[data-v2-labeled="1"] tbody tr:hover td {
    background: transparent;
  }
  body.v2-active .tt[data-v2-labeled="1"] td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 14px;
    border-bottom: 1px solid #F3F4F6;
    text-align: right;
  }
  body.v2-active .tt[data-v2-labeled="1"] tr td:last-child { border-bottom: none; }
  body.v2-active .tt[data-v2-labeled="1"] td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 10px;
    color: var(--v2-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    text-align: left;
  }
  /* Hide ::before pseudo on cells with no data-label (fallback rows) */
  body.v2-active .tt[data-v2-labeled="1"] td:not([data-label])::before { content: none; }
  /* Non-labeled tables fallback: horizontal scroll container */
  body.v2-active .tt:not([data-v2-labeled="1"]) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Admin view banner (restyled for v2) */
#admin-view-banner {
  background: #FFF7ED;
  border: 2px solid #FB923C;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 10px 18px;
  font-size: 13px;
  color: #9A3412;
  font-weight: 600;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
/* When shown (style.display = ''), become flex */
#admin-view-banner:not([style*="none"]) { display: flex !important; }

/* BRIEF #77 — Bandeau impersonation (violet, priorité maximale) */
#admin-impersonation-banner {
  background: #7C3AED;
  border: 2px solid #5B21B6;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 10px 18px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#admin-impersonation-banner:not([style*="none"]) { display: flex !important; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--v2-sidebar-width);
  background: var(--v2-sidebar-bg);
  color: var(--v2-sidebar-fg);
  display: none;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.25s ease, width 0.25s ease;
  overflow: hidden;
}
body.v2-active .sidebar { display: flex; }

.sidebar-brand {
  height: var(--v2-header-height);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.sidebar-brand img { max-height: 32px; max-width: 140px; }
.sidebar-brand-title { font-size: 14px; font-weight: 700; color: var(--v2-sidebar-fg); }

/* ── Sidebar CTA block (BRIEF-UI-01) ── */
.sidebar-cta { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-cta-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; padding: 10px 12px; border-radius: 8px; border: none;
  cursor: pointer; font-size: 13px; font-weight: 600; text-align: left;
  transition: opacity 0.15s;
}
.sidebar-cta-btn:hover { opacity: 0.88; }
.sidebar-cta-visite  { background: #FFFBEB; color: #92400E; border: 1px solid #FCD34D !important; }
.sidebar-cta-chantier { background: var(--v2-accent, #2563EB); color: #fff; }
.sidebar-cta-sub { font-size: 10px; font-weight: 400; opacity: 0.72; margin-top: 2px; }

/* ── Pipeline trail (BRIEF-UI-01) ── */
.pipeline-trail {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 10px 14px; margin-bottom: 14px;
  background: #F0F9FF; border: 1px solid #BAE6FD; border-radius: 8px;
  font-size: 12px;
}
.pipeline-trail .step { padding: 3px 8px; border-radius: 12px; color: #6B7280; background: #E5E7EB; font-weight: 500; }
.pipeline-trail .step.active { background: #2563EB; color: #fff; font-weight: 700; }
.pipeline-trail .step.done { background: #16A34A; color: #fff; }
.pipeline-trail .arrow { color: #9CA3AF; font-size: 11px; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0;
}
.sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.45) rgba(255,255,255,0.06); }
.sidebar-nav::-webkit-scrollbar { width: 10px; }
.sidebar-nav::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.45); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.7); background-clip: padding-box; border: 2px solid transparent; }

.sidebar-section {
  font-size: 10px;
  font-weight: 700;
  color: var(--v2-sidebar-muted);
  text-transform: uppercase;
  padding: 10px 20px 6px;
  letter-spacing: 0.5px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--v2-sidebar-fg);
  text-decoration: none;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.sidebar-item:hover { background: var(--v2-sidebar-hover); }
.sidebar-item.active {
  background: var(--v2-sidebar-hover);
  border-left-color: var(--v2-sidebar-active);
  font-weight: 700;
}
.sidebar-item-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.92;
}
.sidebar-item.active .sidebar-item-icon { opacity: 1; }
.sidebar-item-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }

.sidebar-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: var(--v2-sidebar-muted);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--v2-sidebar-active);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; color: var(--v2-sidebar-fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { font-size: 10px; color: var(--v2-sidebar-muted); text-transform: uppercase; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.sidebar-overlay.active { display: block; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  height: var(--v2-header-height);
  background: var(--v2-topbar-bg);
  border-bottom: 1px solid var(--v2-topbar-border);
  display: none;
  align-items: center;
  padding: 0 18px;
  gap: 12px;
  z-index: 500;
  box-shadow: var(--v2-shadow);
  margin-bottom: 10px;
}
body.v2-active .topbar { display: flex; }
.topbar-burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--v2-text);
  padding: 4px 8px;
  border-radius: var(--v2-radius-sm);
}
.topbar-burger:hover { background: #F3F4F6; }
.topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--v2-text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-btn {
  background: none;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--v2-text);
  font-family: inherit;
  transition: background 0.15s;
}
.topbar-btn:hover { background: #F9FAFB; }

/* Main content area */
.main {
  flex: 1;
  padding-left: var(--v2-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: padding-left 0.25s ease;
}
.main-content {
  flex: 1;
  padding: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { padding-left: 0; }
  .topbar-burger { display: inline-flex; }
}

@media (max-width: 520px) {
  :root { --v2-header-height: 54px; }
  .sidebar { width: 85vw; max-width: 300px; }
  .topbar { padding: 0 10px; }
  .topbar-title { font-size: 13px; }
}

/* ============================================================
   V2 COMPONENTS — only classes actually used in markup.
   (commit #8 cleanup: dropped v2-page / v2-card / v2-kpi /
   v2-badge / v2-field / v2-subtab / v2-table / v2-empty and
   the duplicate unscoped .v2-breadcrumb block. Those classes
   were part of the original prototype import but never wired
   into the real HTML — we restyle the legacy classes instead.)
   Kept:
     - .v2-btn*  (used by sidebar logout + admin view banner)
     - .v2-breadcrumb / .v2-pipeline (defined earlier, scoped
        under body.v2-active next to their consumers)
   ============================================================ */
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--v2-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.v2-btn-ghost {
  background: transparent;
  color: var(--v2-text);
  border-color: var(--v2-border);
}
.v2-btn-ghost:hover { background: #F9FAFB; }
.v2-btn-sm { padding: 5px 10px; font-size: 12px; }

/* ============================================================
   LEGACY KPI RESTYLE (commit #7 — additive, no HTML change)
   Targets the existing .kpi-grid / .kpi / .kpi-label / .kpi-val
   structure used by the dashboards. No JS changes required.
   ============================================================ */

body.v2-active .kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

body.v2-active .kpi {
  position: relative;
  background: var(--v2-card-bg);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 18px 18px 18px 22px;
  text-align: left;
  box-shadow: var(--v2-shadow);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
body.v2-active .kpi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--v2-accent);
  border-radius: 4px 0 0 4px;
}
body.v2-active .kpi:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: #D5DCE5;
}

body.v2-active .kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--v2-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

body.v2-active .kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--v2-text);
  line-height: 1.15;
  letter-spacing: -0.3px;
}
body.v2-active .kpi-val.green { color: #15803D; }
body.v2-active .kpi-val.red   { color: #B91C1C; }

/* Accent stripe alternates gently for visual rhythm
   (kept optional; pure cosmetic, no semantic meaning) */
body.v2-active .kpi-grid > .kpi:nth-child(4n+2)::before { background: #7C3AED; } /* violet */
body.v2-active .kpi-grid > .kpi:nth-child(4n+3)::before { background: #16A34A; } /* green */
body.v2-active .kpi-grid > .kpi:nth-child(4n+4)::before { background: #F59E0B; } /* amber */

/* Mobile: 2-col on small, 1-col on tiny */
@media (max-width: 780px) {
  body.v2-active .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.v2-active .kpi { padding: 14px 14px 14px 18px; }
  body.v2-active .kpi-val { font-size: 22px; }
}
@media (max-width: 420px) {
  body.v2-active .kpi-grid { grid-template-columns: 1fr; }
}

/* ── Recherche globale topbar (v2.11.0) ────────────────────── */
.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search-icon {
  position: absolute;
  left: 9px;
  font-size: 13px;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}
.topbar-search-input {
  width: 250px;
  padding: 6px 36px 6px 28px;
  border: 1px solid var(--v2-border, #E5E7EB);
  border-radius: 18px;
  font-size: 12.5px;
  font-family: inherit;
  background: #F9FAFB;
  color: var(--v2-text, #111827);
  outline: none;
  transition: border-color .15s, box-shadow .15s, width .2s;
}
.topbar-search-input:focus {
  border-color: var(--v2-accent, #2563EB);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
  background: #fff;
  width: 300px;
}
.topbar-search-input::placeholder { color: #9CA3AF; font-size: 12px; }
.topbar-search-kbd {
  position: absolute;
  right: 8px;
  font-size: 10px;
  color: #9CA3AF;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 1px 5px;
  pointer-events: none;
  font-family: inherit;
  white-space: nowrap;
}
.topbar-search-dd {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 360px;
  width: max-content;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--v2-border, #E5E7EB);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.13);
  z-index: 9999;
  max-height: 440px;
  overflow-y: auto;
}
.search-group-label {
  padding: 6px 14px 2px;
  font-size: 10px;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F3F4F6;
  transition: background .1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item.srfocused { background: #EFF6FF; }
.search-result-icon { font-size: 17px; flex-shrink: 0; width: 24px; text-align: center; }
.search-result-main { flex: 1; min-width: 0; }
.search-result-title { font-size: 13px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-sub   { font-size: 11px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.search-result-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; white-space: nowrap; }
.search-empty  { padding: 20px 14px; color: #9CA3AF; font-size: 13px; text-align: center; }
.search-loading{ padding: 16px 14px; text-align: center; color: #9CA3AF; font-size: 12px; }
@media (max-width: 768px) {
  .topbar-search-input { width: 160px; }
  .topbar-search-input:focus { width: 200px; }
  .topbar-search-kbd { display: none; }
  .topbar-search-dd { min-width: 280px; max-width: 340px; }
}
@media (max-width: 480px) {
  .topbar-search-input { width: 100px; }
  .topbar-search-input:focus { width: 150px; }
}

/* ── Matériel états — BRIEF-UI-02 ── */
.badge-mat { display:inline-block; padding:2px 6px; border-radius:10px; font-size:10px; font-weight:600; white-space:nowrap; }
.badge-mat.grey   { background:#F3F4F6; color:#6B7280; }
.badge-mat.green  { background:#DCFCE7; color:#15803D; }
.badge-mat.orange { background:#FEF3C7; color:#B45309; }
.badge-mat.blue   { background:#DBEAFE; color:#1D4ED8; }
.badge-mat.amber  { background:#FEF9C3; color:#92400E; }
.badge-mat.purple { background:#F3E8FF; color:#7C3AED; }

.mat-facture-notice {
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; margin-bottom:10px;
  background:#F0FDF4; border:1px solid #86EFAC; border-radius:8px;
  font-size:12px; color:#15803D;
}
.mat-legende {
  font-size:10px; color:#9CA3AF; margin-top:6px; line-height:1.6;
}
.mat-legende span { font-weight:600; color:#6B7280; }

/* ── BRIEF-UI-OF — Option F : sidebar dossier nav ─────────── */

/* Desktop : masque la barre de tabs horizontale dès que la sidebar est active */
@media (min-width: 768px) {
  body.v2-active #dos-tabs { display: none !important; }
}

/* Mobile : barre compacte, scrollbar invisible, tab actif auto-centré */
#dos-tabs {
  scrollbar-width: none;
}
#dos-tabs::-webkit-scrollbar { display: none; }

@media (max-width: 767px) {
  body.v2-active #dos-tabs .tb { padding: 8px 10px; font-size: 11px; }
}

/* Bouton "← Retour projets" dans le nav dossier */
.dos-nav-back {
  opacity: 0.72;
  font-style: italic;
}
.dos-nav-back:hover { opacity: 1 !important; }

/* Séparateur entre retour et groupes */
.dos-nav-divider {
  margin: 6px 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* ── BRIEF-UI-03 — Kits / Packs / Forfaits ─────────────── */
/* ── BRIEF-UI-04 — Code couleur + sections repliables ────── */

/* Flex sur les .sh des sections catégorisées pour aligner label + compteur */
body.v2-active .sw-cat-dc .sh,
body.v2-active .sw-cat-ac .sh,
body.v2-active .sw-cat-bat .sh,
body.v2-active .sw-cat-borne .sh,
body.v2-active .sw-cat-sm .sh,
body.v2-active .sw-cat-mat .sh,
body.v2-active .sw-cat-suppl .sh {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
body.v2-active .sw-cat-dc .sh:hover,
body.v2-active .sw-cat-ac .sh:hover,
body.v2-active .sw-cat-bat .sh:hover,
body.v2-active .sw-cat-borne .sh:hover,
body.v2-active .sw-cat-sm .sh:hover,
body.v2-active .sw-cat-mat .sh:hover,
body.v2-active .sw-cat-suppl .sh:hover { filter: brightness(0.97); }

/* Flèche de toggle */
.sw-toggle-arrow {
  flex-shrink: 0;
  margin-right: 8px;
  font-size: 10px;
  opacity: 0.55;
  transition: transform 0.15s;
  display: inline-block;
}
.sw-collapsed .sw-toggle-arrow { transform: rotate(-90deg); }

/* Label texte */
.sw-sh-label { flex: 1; }

/* Badge compteur */
.sw-counter {
  flex-shrink: 0;
  margin-left: 10px;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: #E5E7EB;
  color: #6B7280;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.sw-counter.has-values { background: #DBEAFE; color: #1D4ED8; }

/* Section repliée : body masqué, sh arrondi complet */
.sw-collapsed .sb { display: none !important; }
.sw-collapsed .sh {
  border-bottom: 1px solid var(--v2-border) !important;
  border-radius: var(--v2-radius) !important;
}

/* ── BRIEF-UI-04 — Code couleur par catégorie technique ──── */

/* Palette : DC amber | AC blue | Bat emerald | Borne violet | SM slate | Mat indigo | Suppl orange */
body.v2-active .sw-cat-dc    .sh { background:#FFFBEB; border-left:3px solid #F59E0B; }
body.v2-active .sw-cat-ac    .sh { background:#EFF6FF; border-left:3px solid #3B82F6; }
body.v2-active .sw-cat-bat   .sh { background:#ECFDF5; border-left:3px solid #10B981; }
body.v2-active .sw-cat-borne .sh { background:#F5F3FF; border-left:3px solid #8B5CF6; }
body.v2-active .sw-cat-sm    .sh { background:#F8FAFC; border-left:3px solid #64748B; }
body.v2-active .sw-cat-mat   .sh { background:#EEF2FF; border-left:3px solid #6366F1; }
body.v2-active .sw-cat-suppl .sh { background:#FFF7ED; border-left:3px solid #F97316; }

/* Box totaux (.rhi) par catégorie — surcharge la couleur verte par défaut */
body.v2-active .sw-cat-dc    .rhi { background:#FEF3C7; border-color:#FDE68A; }
body.v2-active .sw-cat-ac    .rhi { background:#DBEAFE; border-color:#BFDBFE; }
body.v2-active .sw-cat-bat   .rhi { background:#D1FAE5; border-color:#A7F3D0; }
body.v2-active .sw-cat-borne .rhi { background:#EDE9FE; border-color:#DDD6FE; }
body.v2-active .sw-cat-sm    .rhi { background:#E2E8F0; border-color:#CBD5E1; }
body.v2-active .sw-cat-mat   .rhi { background:#E0E7FF; border-color:#C7D2FE; }
body.v2-active .sw-cat-suppl .rhi { background:#FFEDD5; border-color:#FED7AA; }

/* Puces colorées dans le récap latéral */
.tr.tr-cat-dc span:first-child::before    { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#F59E0B; margin-right:6px; vertical-align:middle; flex-shrink:0; }
.tr.tr-cat-ac span:first-child::before    { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#3B82F6; margin-right:6px; vertical-align:middle; flex-shrink:0; }
.tr.tr-cat-bat span:first-child::before   { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#10B981; margin-right:6px; vertical-align:middle; flex-shrink:0; }
.tr.tr-cat-borne span:first-child::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#8B5CF6; margin-right:6px; vertical-align:middle; flex-shrink:0; }
.tr.tr-cat-sm span:first-child::before    { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#94A3B8; margin-right:6px; vertical-align:middle; flex-shrink:0; }

.forfait-info { font-size:11px; cursor:help; opacity:0.65; margin-left:2px; }
.of-pack-badge { display:inline-block; margin-left:6px; padding:1px 6px; border-radius:10px; font-size:10px; font-weight:600; background:#EFF6FF; color:#1D4ED8; border:1px solid #BFDBFE; white-space:nowrap; vertical-align:middle; }
.pv-kit-group-title { font-size:11px; font-weight:700; color:#6B7280; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:4px; margin-top:4px; }
.pv-kit-group-hint { font-size:11px; color:#9CA3AF; margin-bottom:8px; }
