/**
 * VERMAN ? Styles applicatifs
 * Charte : Bleu Nuit + Rouge Automobile (tokens dans style.css)
 * @import en t?te pour garantir la palette m?me si seul app.css est charg?
 */

@import url("./style.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--verman-text, var(--color-ink));
  background:
    radial-gradient(1100px 520px at 6% -14%, rgba(27, 73, 101, 0.12), transparent 58%),
    radial-gradient(900px 480px at 100% 0%, rgba(230, 57, 70, 0.08), transparent 55%),
    linear-gradient(180deg, #f4f6f8 0%, var(--verman-bg, var(--color-bg)) 45%, #eef2f6 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-brand);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ?? Header ?? */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(248, 249, 250, 0.92);
  border-bottom: 1px solid rgba(213, 221, 230, 0.9);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.brand-logo {
  height: var(--logo-h);
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--color-brand), var(--color-accent));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--color-brand);
}

.brand-text small {
  color: var(--color-ink-muted);
  font-size: 0.72rem;
}

.main-nav {
  display: none;
  gap: var(--space-4);
  align-items: center;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  padding: var(--space-1) 0;
  transition: color 0.2s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-brand);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-brand-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mnav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.mnav-burger:hover,
.mnav-burger:focus-visible {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.mnav-burger__ico { display: block; }
.mnav-backdrop,
.mnav-drawer {
  display: none;
}
.mnav-backdrop[hidden],
.mnav-drawer[hidden] {
  display: none !important;
}
.mnav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.mnav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 95;
  width: min(20.5rem, 88vw);
  height: 100dvh;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.18);
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  animation: mnav-slide-in 0.22s ease;
}
@keyframes mnav-slide-in {
  from { transform: translateX(100%); opacity: 0.7; }
  to { transform: translateX(0); opacity: 1; }
}
.mnav-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1rem 0.95rem;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.mnav-profile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.mnav-profile__avatar {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #0a192f, #1d4ed8);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mnav-profile__meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.mnav-profile__meta strong {
  font-size: 0.92rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mnav-profile__meta span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mnav-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.mnav-drawer__nav {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.75rem;
}
.mnav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.85rem;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mnav-link:hover,
.mnav-link:focus-visible {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.mnav-link__ico {
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.mnav-link__text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}
.mnav-link__text strong { font-size: 0.9rem; }
.mnav-link__text em {
  font-style: normal;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}
.mnav-link--market {
  background: linear-gradient(110deg, #fff7ed, #eff6ff);
  border-color: #fed7aa;
}
.mnav-link__badge {
  margin-left: auto;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #0a192f;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mnav-link__count {
  margin-left: auto;
  min-width: 1.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}
.mnav-drawer__foot {
  margin-top: auto;
  padding: 0.85rem 0.75rem 1.15rem;
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: 0.65rem;
}
.mnav-switcher .admin-ctx-switch select {
  width: 100%;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid #bfdbfe;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-weight: 650;
  background: #f8fbff;
}
.mnav-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  background: #0a1128;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.mnav-logout:hover { background: #1d4ed8; }
.mnav-enter { transition: transform 0.22s ease, opacity 0.22s ease; }
.mnav-enter-start { transform: translateX(100%); opacity: 0.6; }
.mnav-enter-end { transform: translateX(0); opacity: 1; }
.mnav-leave { transition: transform 0.18s ease, opacity 0.18s ease; }
.mnav-leave-start { transform: translateX(0); opacity: 1; }
.mnav-leave-end { transform: translateX(100%); opacity: 0.4; }

@media (max-width: 767px) {
  .site-header:not(.site-header--driver) .header-inner {
    gap: 0.65rem;
    padding-block: 0.55rem;
  }
  .site-header:not(.site-header--driver) .brand-logo {
    height: 2rem;
    max-width: 7.5rem;
  }
  .site-header:not(.site-header--driver) .header-actions {
    gap: 0.45rem;
    margin-left: auto;
  }
  .site-header:not(.site-header--driver) .header-actions__desktop,
  .site-header:not(.site-header--driver) .main-nav,
  .site-header:not(.site-header--driver) .admin-ctx-switch,
  .site-header:not(.site-header--driver) .header-search {
    display: none !important;
  }
  .site-header:not(.site-header--driver) .mnav-burger {
    display: inline-flex;
  }
  .site-header:not(.site-header--driver).is-mnav-open .mnav-backdrop {
    display: block;
  }
  .site-header:not(.site-header--driver).is-mnav-open .mnav-drawer {
    display: flex;
  }
  .site-header:not(.site-header--driver) .notif-bell {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
  }
  .site-header:not(.site-header--driver) .lang-switch {
    transform: scale(0.92);
    transform-origin: center right;
  }
}

@media (min-width: 768px) {
  .mnav-burger,
  .mnav-backdrop,
  .mnav-drawer {
    display: none !important;
  }
}

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  flex-shrink: 0;
}

.notif-bell:hover,
.notif-bell:focus-visible {
  color: #DC2626;
  border-color: #DC2626;
}

.notif-bell.has-unread {
  border-color: rgba(220, 38, 38, 0.45);
}

.notif-bell__pulse {
  position: absolute;
  top: 0.18rem;
  right: 0.18rem;
  width: 0.55rem;
  height: 0.55rem;
  pointer-events: none;
  z-index: 2;
}
.notif-bell__ping,
.notif-bell__dot {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #DC2626;
}
.notif-bell__ping {
  opacity: 0.75;
  animation: notif-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.notif-bell__dot {
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.65);
  animation: notif-pulse 1.6s ease-out infinite;
}

.notif-bell__count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #DC2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  z-index: 3;
}

@keyframes notif-pulse {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    opacity: 1;
  }
  70% {
    transform: scale(1.35);
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    opacity: 0.85;
  }
  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    opacity: 1;
  }
}
@keyframes notif-ping {
  75%, 100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.fleet-table tr.is-unread td {
  background: #fff5f5;
}

.notif-table .notif-row {
  cursor: pointer;
  transition: background 0.15s ease;
}
.notif-type-pill {
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  max-width:100%;
}
.notif-type-pill__ico {
  display:inline-flex;
  flex-shrink:0;
}
.notif-type-pill__ico .gmao-ico {
  width:0.95rem;
  height:0.95rem;
}

.notif-table .notif-row:hover td {
  background: #f8fafc;
}

.notif-table .notif-row.is-unread:hover td {
  background: #fee2e2;
}

.notif-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.notif-open-btn {
  background: #0F172A !important;
  border-color: #0F172A !important;
}

.notif-open-btn:hover {
  background: #DC2626 !important;
  border-color: #DC2626 !important;
}

.notif-mark-form { margin: 0; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-elevated);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--color-ink-muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-btn.is-active {
  background: var(--color-brand);
  color: #fff;
}

.lang-btn.is-active:hover {
  background: var(--color-brand-soft);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ?? Buttons ?? */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--verman-red, var(--color-accent));
  color: #fff;
  border-color: var(--verman-red, var(--color-accent));
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--verman-red-dark, var(--color-accent-dark));
  border-color: var(--verman-red-dark, var(--color-accent-dark));
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-ink);
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-brand-soft);
  color: var(--color-brand);
}

.btn-accent {
  background: var(--verman-red, var(--color-accent));
  color: #fff;
  border-color: var(--verman-red, var(--color-accent));
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--verman-red-dark, var(--color-accent-dark));
}

.btn-brand {
  background: var(--verman-blue-royal, var(--color-brand-soft));
  color: #fff;
}

.btn-brand:hover,
.btn-brand:focus-visible {
  background: var(--verman-blue-dark, var(--color-brand));
}

/* ?? Hero ?? */
.hero {
  padding: var(--space-7) 0 var(--space-6);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      135deg,
      var(--verman-blue-dark) 0%,
      #0f2744 42%,
      var(--verman-blue-royal) 100%
    );
  color: #ffffff;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-md);
  animation: rise-in 0.7s var(--ease) both;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(230, 57, 70, 0.28), transparent 72%);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-brand img {
  height: 56px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 var(--space-3);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero h1 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 14ch;
  animation: rise-in 0.8s var(--ease) 0.08s both;
}

.hero-lead {
  margin: 0 0 var(--space-5);
  max-width: 42ch;
  font-size: 1.05rem;
  opacity: 0.92;
  animation: rise-in 0.8s var(--ease) 0.16s both;
}

/* Accueil sans barre de recherche : pas de marge / espace réservé sous le lead */
.hero-lead--solo {
  margin-bottom: 0;
}

.search-shell {
  display: grid;
  gap: var(--space-3);
  animation: rise-in 0.8s var(--ease) 0.24s both;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

.search-form input[type="search"] {
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  background: #fff;
  color: var(--color-ink);
}

.search-form input[type="search"]:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.search-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.search-hint {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

#search-feedback {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

/* ?? Sections ?? */
.section {
  padding: var(--space-6) 0;
}

.section-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.section-lead {
  margin: 0 0 var(--space-5);
  color: var(--color-ink-muted);
  max-width: 50ch;
}

.hub-grid {
  display: grid;
  gap: var(--space-4);
}

.hub-link {
  display: block;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hub-link:hover,
.hub-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-brand-soft);
  box-shadow: var(--shadow-md);
}

.hub-link strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
  color: var(--color-brand);
}

.hub-link span {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.i18n-demo {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
}

.i18n-demo code {
  font-size: 0.9rem;
  background: rgba(11, 37, 69, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ?? Footer ?? */
.site-footer {
  margin-top: var(--space-7);
  border-top: 1px solid var(--color-border);
  padding: var(--space-5) 0;
  color: var(--color-ink-muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-note {
  margin: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ?? Responsive ?? */
@media (min-width: 720px) {
  .main-nav {
    display: flex;
  }

  .search-form {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }

  .search-actions {
    grid-template-columns: auto auto;
  }

  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 719px) {
  .brand-text small {
    display: none;
  }

  .btn-ghost {
    display: none;
  }
}

/* ?? PWA / Connectivit? ?? */
.net-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
}

.net-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #163a66;
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.2);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.net-dot.is-offline {
  background: #c45c26;
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.22);
  animation: pulse-offline 1.4s ease-in-out infinite;
}

.sync-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.35rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}

.connectivity-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 60;
  max-width: min(92vw, 28rem);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.connectivity-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.connectivity-banner.is-offline {
  background: #7a3414;
}

.connectivity-banner.is-online {
  background: var(--color-brand-soft);
}

html.is-offline .site-header {
  border-bottom-color: rgba(196, 92, 38, 0.45);
}

@keyframes pulse-offline {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* ?? Recherche universelle ?? */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.header-search {
  display: none;
  flex: 1;
  max-width: 28rem;
  margin-inline: var(--space-3);
}

body.has-station-search .header-inner {
  flex-wrap: wrap;
}

body.has-station-search .header-search {
  display: block;
  position: relative;
  z-index: 5;
  flex: 1 1 100%;
  order: 3;
  max-width: none;
  margin: 0.35rem 0 0.55rem;
}

body.has-station-search .search-bar__suggest {
  z-index: 80;
}

.search-bar__form {
  display: grid;
  gap: var(--space-2);
}

.search-bar__field {
  position: relative;
}

.search-bar__input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  background: #fff;
  color: var(--color-ink);
}

.search-bar__input:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.search-bar__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.search-bar__scan {
  gap: 0.4rem;
}

.search-bar__suggest {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.search-bar__option {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}

.search-bar__option:last-child {
  border-bottom: 0;
}

.search-bar__option:hover,
.search-bar__option:focus-visible {
  background: var(--color-surface);
}

.search-bar__option strong {
  color: var(--color-brand);
}

.search-bar__option span,
.search-bar__option em {
  color: var(--color-ink-muted);
  font-size: 0.88rem;
  font-style: normal;
}

.search-bar__empty {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: 0.92rem;
}

.search-bar__create {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
}

.search-bar__feedback {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
}

.search-bar--hero .search-bar__form {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

.search-bar--hero .search-bar__empty,
.search-bar--hero .search-bar__feedback,
.search-bar--hero .search-hint {
  color: rgba(247, 251, 248, 0.92);
}

.search-bar--hero .search-bar__create {
  color: #ffd7c2;
}

@media (min-width: 960px) {
  .header-search {
    display: block;
  }

  .header-search .search-bar__scan-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .header-search .search-bar__form {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .header-search .search-bar__actions {
    flex-wrap: nowrap;
  }

  .header-search .search-bar__empty {
    display: none;
  }
}

@media (min-width: 720px) {
  .search-bar--hero .search-bar__form {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

/* QR Modal */
.qr-modal[hidden] {
  display: none !important;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 24, 0.55);
}

.qr-modal__panel {
  position: relative;
  width: min(100%, 28rem);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}

.qr-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.qr-modal__head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.qr-modal__reader {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #111;
  min-height: 220px;
}

.qr-modal__hint {
  margin: var(--space-3) 0 0;
  color: var(--color-ink-muted);
  font-size: 0.9rem;
}

body.qr-open {
  overflow: hidden;
}

/* Fiche v?hicule */
.vehicle-profile__breadcrumb {
  color: var(--color-ink-muted);
  margin-bottom: var(--space-4);
}

.vehicle-profile__breadcrumb a {
  color: var(--color-brand-soft);
  text-decoration: underline;
}

.vehicle-profile__hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.vehicle-profile__plate {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-soft);
  font-weight: 700;
}

.vehicle-profile__hero h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.vehicle-profile__year {
  color: var(--color-ink-muted);
  font-weight: 500;
  font-size: 0.7em;
}

.vehicle-profile__meta {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.92rem;
}

.vehicle-profile__org {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.vehicle-profile__stats {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.vehicle-profile__stats article {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
}

.vehicle-profile__stats h2 {
  margin: 0 0 var(--space-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-muted);
}

.vehicle-profile__stats p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(11, 37, 69, 0.12);
  color: var(--color-brand);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.status-pill.status-pill--ok,
.status-pill.status-pill--alert,
.status-pill.status-pill--danger,
.status-pill.status-pill--wait,
.status-pill.status-pill--progress,
.status-pill.status-pill--draft,
.letterhead__status.is-ok,
.letterhead__status.is-alert,
.letterhead__status.is-danger,
.letterhead__status.is-waiting,
.letterhead__status.is-progress,
.letterhead__status.is-draft,
.quote-sheet__status.is-ok,
.quote-sheet__status.is-alert,
.quote-sheet__status.is-danger,
.quote-sheet__status.is-waiting,
.quote-sheet__status.is-progress,
.quote-sheet__status.is-draft {
  border-style: solid;
  border-width: 1px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.status-pill.status-pill--ok,
.letterhead__status.is-ok,
.quote-sheet__status.is-ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.status-pill.status-pill--alert,
.letterhead__status.is-alert,
.quote-sheet__status.is-alert {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
  animation: subtle-pulse 2.4s ease-in-out infinite;
}

.status-pill.status-pill--danger,
.letterhead__status.is-danger,
.quote-sheet__status.is-danger {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.status-pill.status-pill--wait,
.letterhead__status.is-waiting,
.quote-sheet__status.is-waiting {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
  animation: subtle-pulse 2.6s ease-in-out infinite;
}

.status-pill.status-pill--progress,
.letterhead__status.is-progress,
.quote-sheet__status.is-progress {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.status-pill.status-pill--draft,
.letterhead__status.is-draft,
.quote-sheet__status.is-draft {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

@keyframes subtle-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-pill.status-pill--alert,
  .status-pill.status-pill--wait,
  .letterhead__status.is-alert,
  .letterhead__status.is-waiting,
  .quote-sheet__status.is-alert,
  .quote-sheet__status.is-waiting {
    animation: none;
  }
}

.action-grid {
  display: grid;
  gap: var(--space-3);
}

.action-card {
  display: block;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-brand-soft);
}

.action-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-brand);
}

.action-card span {
  color: var(--color-ink-muted);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .vehicle-profile__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .action-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Formulaire cr?ation */
.create-form {
  display: grid;
  gap: var(--space-3);
}

.create-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.create-form input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-weight: 400;
}

.form-row {
  display: grid;
  gap: var(--space-3);
}

.form-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.form-errors {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(138, 31, 17, 0.08);
  border: 1px solid rgba(138, 31, 17, 0.25);
  color: #8a1f11;
  margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ?? Module Garage ?? */
.form-success--tech-report {
  border-color: rgba(220, 38, 38, 0.35);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(220, 38, 38, 0.06)),
    #fff;
  box-shadow: inset 3px 0 0 #dc2626;
}

.form-success--tech-report .form-success__hint {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.form-success {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(11, 37, 69, 0.1);
  border: 1px solid rgba(11, 37, 69, 0.25);
  margin-bottom: var(--space-4);
}

.wo-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.wo-create .wo-card {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(10, 25, 47, 0.06);
  padding: 1.15rem 1.15rem 1.25rem;
  margin-bottom: 0.95rem;
}

.wo-card h2 {
  margin: 0 0 var(--space-3);
  font-size: 1.1rem;
}

.wo-create .wo-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--verman-blue-dark);
  line-height: 1.25;
}

.wo-card__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.wo-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  background: rgba(10, 25, 47, 0.06);
  color: var(--verman-blue-dark);
}

.wo-ico {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  display: block;
}

.wo-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0;
}

.wo-card__head h2 {
  margin: 0;
}

.wo-card__head .form-actions {
  margin-top: 0;
  gap: 0.5rem;
}

.wo-vehicle-summary {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

/* ?? Create OR / Devis : flow mobile-first (steps, less card clutter) ?? */
.wo-create--flow {
  --wo-navy: #0f172a;
  --wo-accent: #dc2626;
  padding-bottom: 5.5rem;
}

.wo-create--flow .wo-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 1.25rem;
}

.wo-create--flow .wo-step {
  display: grid;
  gap: 0.95rem;
  margin: 0 0 1.35rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
}

.wo-create--flow .wo-step--nested {
  margin: 0;
  padding: 0.85rem 0 0;
  border-bottom: 0;
}

.wo-create--flow .wo-step--totals {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.wo-step__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.wo-step__head--split {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.wo-step__title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.wo-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--wo-navy, #0f172a);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wo-step__head h2,
.wo-create--flow .wo-step h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--wo-navy, #0f172a);
  line-height: 1.25;
}

.wo-step__actions {
  margin: 0;
  gap: 0.45rem;
}

.wo-vehicle-chip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.wo-vehicle-chip__main {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  flex: 1 1 auto;
}

.wo-vehicle-chip__plate {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wo-accent, #dc2626);
}

.wo-vehicle-chip__main > strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wo-navy, #0f172a);
  letter-spacing: -0.02em;
}

.wo-vehicle-chip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  color: #64748b;
  font-size: 0.84rem;
}

.wo-vehicle-chip__meta:empty,
.wo-vehicle-chip__meta span:empty {
  display: none;
}

.wo-vehicle-chip__change {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding-inline: 0.85rem;
}

.wo-create--flow .wo-accordion {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  transition:
    grid-template-rows 0.34s ease,
    opacity 0.28s ease,
    margin-bottom 0.34s ease,
    padding-bottom 0.34s ease,
    border-color 0.28s ease;
}

.wo-create--flow .wo-accordion.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.wo-accordion__clip {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 0.95rem;
}

.wo-accordion__body {
  display: grid;
  gap: 0.95rem;
}

.wo-create--flow .wo-contact-row {
  padding-top: 0.15rem;
}

.wo-create--flow .wo-table-wrap {
  margin: 0 -0.15rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.wo-create--flow .wo-totals {
  margin-top: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.wo-create--flow .wo-totals__ttc dd,
.wo-create--flow .wo-totals__ttc dt {
  color: var(--wo-accent, #dc2626);
  font-weight: 800;
}

.wo-sticky-bar .wo-form__submit {
  position: sticky;
  bottom: 0.65rem;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

.wo-sticky-bar .wo-form__submit .btn {
  min-height: 2.75rem;
  flex: 1 1 auto;
}

.wo-sticky-bar .wo-form__submit .btn-primary {
  flex: 1.4 1 auto;
  background: var(--wo-accent, #dc2626);
  border-color: var(--wo-accent, #dc2626);
}

@media (max-width: 720px) {
  .wo-create--flow .wo-search-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .wo-create--flow .wo-search-row .wo-scan-btn,
  .wo-create--flow .wo-search-row .wo-new-vehicle {
    width: 100%;
    min-height: 2.85rem;
    justify-content: center;
  }

  .wo-vehicle-chip {
    flex-direction: column;
  }

  .wo-vehicle-chip__change {
    width: 100%;
  }

  .wo-sticky-bar .wo-form__submit {
    bottom: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wo-create--flow .wo-accordion {
    transition: none;
  }
}

.wo-form label,
.wo-line label,
.quote-public__actions label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.wo-create .wo-form label,
.wo-create .wo-line label {
  gap: 0.4rem;
  margin-bottom: 0;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: #334155;
}

.wo-create .form-row {
  gap: 1rem;
}

.wo-form input,
.wo-form select,
.wo-line input,
.wo-line select,
.quote-public__actions textarea {
  font-weight: 400;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
}

.wo-create .wo-form input:not([type="checkbox"]):not([type="radio"]),
.wo-create .wo-form select,
.wo-create .wo-line input,
.wo-create .wo-line select {
  font-weight: 500;
  color: var(--verman-text);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.wo-create .wo-form input:not([type="checkbox"]):not([type="radio"]):hover,
.wo-create .wo-form select:hover,
.wo-create .wo-line input:hover,
.wo-create .wo-line select:hover {
  border-color: #cbd5e1;
}

.wo-create .wo-form input:not([type="checkbox"]):not([type="radio"]):focus,
.wo-create .wo-form select:focus,
.wo-create .wo-line input:focus,
.wo-create .wo-line select:focus {
  outline: none;
  border-color: var(--verman-blue-dark);
  box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.1);
}

.wo-create .wo-form select,
.wo-create .wo-line select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a192f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  padding-right: 2.35rem;
}

.wo-line {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.wo-line__total {
  font-weight: 700;
  color: var(--color-brand);
  align-self: end;
}

.wo-tax {
  max-width: 10rem;
}

.wo-totals {
  margin: var(--space-4) 0 0;
  display: grid;
  gap: 0.45rem;
}

.wo-totals > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.wo-totals dt {
  margin: 0;
  color: var(--color-ink-muted);
  font-weight: 500;
}

.wo-totals dd {
  margin: 0;
  font-weight: 700;
}

.wo-totals__ttc {
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  font-size: 1.1rem;
}

@media (min-width: 900px) {
  .wo-line {
    grid-template-columns: 8rem 1fr 1fr 1fr 5rem 6rem 5rem auto;
    align-items: end;
  }
}

.wo-kicker {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--verman-blue-royal);
}

.wo-create h1 {
  color: var(--verman-blue-dark);
}

.wo-hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--color-ink-muted);
  font-weight: 500;
  font-size: 0.82rem;
}

.wo-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.wo-create .wo-check {
  align-items: center;
  min-height: 2.75rem;
  margin: 0;
  color: #0a192f;
  font-size: 0.92rem;
}

.wo-options {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

.wo-create .wo-option {
  display: flex;
  flex: 1 1 16rem;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: #0a192f;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wo-create .wo-option:hover {
  background: rgba(249, 250, 251, 0.9);
  border-color: rgba(10, 25, 47, 0.3);
}

.wo-create .wo-option:has(input:checked) {
  background: rgba(10, 25, 47, 0.04);
  border-color: rgba(10, 25, 47, 0.45);
  box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.06);
}

.wo-create .wo-option:has(input:focus-visible) {
  border-color: #0a192f;
  box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.1);
}

.wo-create .wo-option input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 1.15rem;
  margin: 0;
  accent-color: #0a192f;
}

@media (max-width: 640px) {
  .wo-create .wo-option {
    flex: 1 1 100%;
  }
}

.wo-scan-btn {
  min-height: 2.75rem;
}

.wo-scan video {
  width: 100%;
  max-height: 46vh;
  background: #0a192f;
  border-radius: 12px;
  object-fit: cover;
}

.wo-create .wo-scan-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wo-scan-file {
  position: relative;
}

.wo-check input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 1.15rem;
  margin-top: 0.12rem;
  accent-color: var(--verman-blue-dark);
  flex: 0 0 auto;
}

.vrm-modal .wo-form > label,
.vrm-modal .wo-form .form-row label,
.vrm-modal .phone-field {
  margin-bottom: 0.9rem;
}

.wo-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0;
}

.wo-search-row .wo-search {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.wo-new-vehicle {
  flex: 0 0 auto;
  min-height: 2.75rem;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  background: #0a192f;
  color: #fff;
  border: 0;
  box-shadow: 0 1px 2px rgba(10, 25, 47, 0.16);
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.wo-new-vehicle:hover,
.wo-new-vehicle:focus-visible {
  background: #13293d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 25, 47, 0.2);
}

.wo-new-vehicle:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(10, 25, 47, 0.16);
}

.wo-search {
  position: relative;
  margin-bottom: 0;
}

.wo-search__field {
  position: relative;
  display: block;
}

.wo-search__field > .wo-ico {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
}

.wo-search__field input {
  width: 100%;
  padding-left: 2.55rem;
}

.wo-suggest {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  box-shadow: 0 14px 36px rgba(10, 25, 47, 0.14);
}

.wo-suggest button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.wo-suggest button:hover,
.wo-suggest button:focus {
  background: rgba(10, 25, 47, 0.06);
}

.wo-suggest strong {
  color: var(--verman-blue-dark);
}

.wo-suggest em {
  display: block;
  font-style: normal;
  color: var(--color-ink-muted);
  font-size: 0.85rem;
}

.wo-vehicle-summary strong {
  color: var(--verman-blue-dark);
  font-size: 1.05rem;
}

.wo-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
}

.wo-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.wo-table--readonly {
  min-width: 720px;
}

.wo-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--verman-blue-dark);
  padding: 0.7rem 0.55rem;
  font-weight: 700;
}

.wo-table tr.wo-line {
  display: table-row;
  padding: 0;
  margin: 0;
  border: 0;
}

.wo-table td {
  padding: 0.45rem;
  border-bottom: 1px solid var(--verman-border);
  vertical-align: middle;
  background: #fff;
}

.wo-table .wo-line--part td {
  background: #fff7f7;
}

.wo-table .wo-line--over td {
  box-shadow: inset 3px 0 0 var(--verman-red);
}

.wo-table input,
.wo-table select {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
}

.wo-line__total {
  color: var(--verman-red);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wo-line__remove {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border-radius: 0.75rem;
  color: var(--verman-red);
  line-height: 1;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.wo-line__remove:hover,
.wo-line__remove:focus-visible {
  background: rgba(230, 57, 70, 0.08);
  border-color: rgba(230, 57, 70, 0.35);
  color: var(--verman-red);
  transform: translateY(-1px);
}

.wo-line__remove:active {
  transform: translateY(0);
}

.wo-tax-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.wo-tax-presets {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
}

.wo-tax-preset {
  min-height: 2.75rem;
  border-radius: 0.75rem;
  padding-inline: 0.9rem;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.wo-tax-preset:hover,
.wo-tax-preset:focus-visible {
  transform: translateY(-1px);
}

.wo-tax-preset:active {
  transform: translateY(0);
}

.wo-tax-preset.is-active {
  background: var(--verman-blue-dark);
  color: #fff;
  border-color: var(--verman-blue-dark);
}

.wo-card__head .wo-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #fff;
  color: #0a192f;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
  padding: 0.5rem 0.85rem;
  box-shadow: 0 1px 2px rgba(10, 25, 47, 0.04);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.wo-card__head .wo-add-btn:hover,
.wo-card__head .wo-add-btn:focus-visible {
  background: #f8fafc;
  border-color: rgba(10, 25, 47, 0.35);
  color: #0a192f;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(10, 25, 47, 0.08);
}

.wo-card__head .wo-add-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(10, 25, 47, 0.05);
}

.wo-card__head .wo-add-btn.is-on {
  background: rgba(10, 25, 47, 0.06);
  border-color: rgba(10, 25, 47, 0.45);
  color: #0a192f;
}

@media (max-width: 767px) {
  main.section:has(.wo-create) {
    padding: 0.7rem 0 1.25rem;
  }

  .wo-create h1 {
    font-size: 1.35rem;
  }

  .wo-create .section-lead {
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
  }

  .mx-nav,
  .garage-nav,
  .fx-nav {
    margin-bottom: 0.75rem;
  }

  .mx-nav__track {
    gap: 0.4rem;
  }

  .wo-create .wo-card {
    padding: 1rem;
    margin-bottom: 0.8rem;
    gap: 0.95rem;
  }

  .wo-create .wo-form label {
    margin-bottom: 0;
    font-size: 0.8rem;
  }

  .wo-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wo-new-vehicle {
    width: 100%;
    min-height: 2.75rem;
  }

  .wo-card__head {
    gap: 0.7rem;
  }

  .wo-card__head .form-actions {
    width: 100%;
  }

  .wo-card__head .wo-add-btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-height: 2.75rem;
    font-size: 0.86rem;
    padding: 0.5rem 0.7rem;
    justify-content: center;
  }

  .wo-form .btn-ghost {
    display: inline-flex;
  }

  #work-order-form > .form-actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.2rem;
  }

  #work-order-form > .form-actions .btn {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 0.85rem;
  }

  #work-order-form .wo-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  #work-order-form .wo-table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  #work-order-form .wo-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  #work-order-form .wo-table tbody {
    display: grid;
    gap: 0.6rem;
  }

  #work-order-form .wo-table tr.wo-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.65rem;
    padding: 0.9rem;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(10, 25, 47, 0.05);
  }

  #work-order-form .wo-table tr.wo-line--part {
    background: #fff7f7;
  }

  #work-order-form .wo-table tr.wo-line:not(.wo-line--part) td:first-child {
    grid-column: 1 / -1;
  }

  #work-order-form .wo-table td {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #work-order-form .wo-table td::before {
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
  }

  #work-order-form .wo-table td.wo-cell--wide {
    grid-column: 1 / -1;
  }

  #work-order-form .wo-table td:has(select[hidden]) {
    display: none;
  }

  #work-order-form .wo-table td.wo-cell--remove {
    align-self: end;
  }

  #work-order-form .wo-table td.wo-cell--remove::before {
    content: none;
  }

  #work-order-form .wo-table input,
  #work-order-form .wo-table select {
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    font-size: 1rem;
  }

  #work-order-form .wo-line-discount select {
    width: 4.4rem;
  }

  #work-order-form .wo-line__remove {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .wo-tax-bar,
  .wo-discount,
  .wo-totals {
    margin-top: 0.7rem;
  }

  .wo-discount {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.55rem;
    gap: 0.45rem;
  }

  .wo-totals {
    gap: 0.28rem;
    font-size: 0.9rem;
  }

  .wo-totals__ttc {
    font-size: 1rem;
  }
}

.wo-form__submit {
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.wo-form__submit .btn {
  min-height: 2.75rem;
  gap: 0.5rem;
  border-radius: 0.85rem;
  padding: 0.7rem 1.05rem;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.wo-form__submit .btn-ghost {
  background: #fff;
  border-color: #e5e7eb;
}

.wo-form__submit .btn:hover,
.wo-form__submit .btn:focus-visible {
  transform: translateY(-1px);
}

.wo-form__submit .btn-primary:hover,
.wo-form__submit .btn-primary:focus-visible {
  box-shadow: 0 10px 22px rgba(230, 57, 70, 0.28);
}

.wo-form__submit .btn-ghost:hover,
.wo-form__submit .btn-ghost:focus-visible {
  background: #fff;
  box-shadow: 0 8px 16px rgba(10, 25, 47, 0.08);
}

.wo-form__submit .btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.wo-discount {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem;
  margin-top: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #f8fafc;
}

.wo-discount label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 9rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: #0a192f;
}

.wo-line-discount {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.wo-line-discount select {
  width: 3.6rem;
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .wo-table .wo-col-qty {
    width: 4.75rem;
  }

  .wo-table .wo-col-qty input {
    width: 4.5rem;
    max-width: 72px;
    padding-inline: 0.3rem;
  }

  .wo-table .wo-col-discount {
    width: 8.4rem;
  }

  .wo-table .wo-line-discount {
    width: 7.5rem;
    gap: 0.2rem;
  }

  .wo-table .wo-line-discount input {
    width: 3.5rem;
    max-width: 58px;
    flex: 0 0 3.5rem;
    padding-inline: 0.25rem;
  }

  .wo-table .wo-line-discount select {
    width: 3.5rem;
    flex: 0 0 3.5rem;
    padding-inline: 0.15rem;
  }
}

.wo-totals__discount dd {
  color: #0a192f;
  font-weight: 800;
}

.wo-totals__ttc dd {
  color: var(--verman-blue-dark);
  font-size: 1.15rem;
}

.wo-view-head,
.wo-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
}

.wo-ref {
  font-size: 1.35rem;
  color: var(--verman-blue-dark);
}

.wo-meta {
  display: grid;
  margin: var(--space-4) 0 0;
}

.wo-meta dt {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.wo-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

@media (min-width: 720px) {
  .wo-meta {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.quote-public {
  padding: var(--space-5) var(--space-3) var(--space-7);
}

.quote-public__wrap {
  width: min(40rem, 100%);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

.quote-public__garage {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--color-brand-soft);
  font-weight: 700;
}

.quote-public__head h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.45rem;
}

.quote-public__lines ul,
.convert-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-public__lines li,
.convert-lines li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.quote-public__lines li span {
  display: block;
  color: var(--color-ink-muted);
  font-size: 0.85rem;
}

.quote-sign__canvas {
  display: block;
  width: 100%;
  height: 104px;
  max-height: 110px;
  border: 1px dashed rgba(10, 25, 47, 0.28);
  border-radius: 8px;
  touch-action: none;
  background: #fff;
  cursor: crosshair;
}

.quote-sign__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.quote-sign__bar p {
  margin: 0;
}

.quote-sign__bar .btn {
  min-height: 1.75rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
}

.quote-public__buttons {
  flex-direction: column;
}

.quote-public__sigimg {
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.quote-public {
  background: #eef2f6;
}

.quote-sheet {
  width: min(42rem, 100%);
  margin-inline: auto;
  padding: 0.85rem 0.8rem 0.95rem;
  background: #fff;
  color: #0a192f;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(10, 25, 47, 0.1);
}

.quote-sheet__brand {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 3px solid #0a192f;
  box-shadow: inset 0 -4px 0 #e63946;
}

.quote-sheet__identity {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.quote-sheet__logo,
.quote-sheet__mark {
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(10, 25, 47, 0.12);
}

.quote-sheet__mark {
  display: grid;
  place-items: center;
  background: #0a192f;
  color: #fff;
  font-weight: 800;
}

.quote-sheet__garage {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.quote-sheet__identity p,
.quote-sheet__doc p {
  margin: 0;
  line-height: 1.4;
}

.quote-sheet__identity a {
  color: #0a192f;
  font-weight: 700;
}

.quote-sheet__doc {
  text-align: right;
}

.quote-sheet__kind {
  color: #e63946;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-sheet__ref {
  font-size: 1.05rem;
  font-weight: 800;
}

.quote-sheet__status {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-top: 0.15rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(10, 25, 47, 0.06);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.25;
}

.quote-sheet__title {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.quote-sheet__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.9rem 0;
}

.quote-sheet__parties div,
.quote-sheet__notes,
.quote-sheet__sign {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(10, 25, 47, 0.1);
  border-radius: 12px;
}

.quote-sheet__parties h2,
.quote-sheet__notes h2,
.quote-sheet__lines-title,
.quote-sign p {
  margin: 0 0 0.3rem;
  color: #e63946;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-sheet__parties p,
.quote-sheet__notes p {
  margin: 0;
}

.quote-sheet__lines-title {
  margin: 0.2rem 0 0.4rem;
}

.quote-sheet__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-sheet__lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(10, 25, 47, 0.1);
}

.quote-sheet__lines span {
  display: block;
  color: #5c6b7a;
  font-size: 0.85rem;
}

.quote-sheet__currency {
  margin: 0.8rem 0 0.4rem;
  color: #5c6b7a;
  font-size: 0.82rem;
}

.quote-sheet__totals {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  margin: 0 0 1rem;
}

.quote-sheet__totals div {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  width: min(18rem, 100%);
}

.quote-sheet__totals dt,
.quote-sheet__totals dd {
  margin: 0;
}

.quote-sheet__totals .is-total {
  margin-top: 0.25rem;
  padding-top: 0.4rem;
  border-top: 2px solid #0a192f;
  box-shadow: inset 0 3px 0 #e63946;
  font-weight: 800;
}

.quote-sheet__sign {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding: 0.6rem 0.7rem;
}

.quote-sheet__sign label {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  font-weight: 700;
  font-size: 0.82rem;
}

.quote-sheet__sign textarea {
  width: 100%;
  min-height: 50px;
  max-height: 64px;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(10, 25, 47, 0.16);
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #0a192f;
  resize: none;
}

.quote-sign .quote-sign__hint {
  margin: 0;
  color: #5c6b7a;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.quote-sign__bar p {
  margin: 0;
}

.quote-sheet__buttons {
  display: grid;
  gap: 0.4rem;
}

.quote-sheet__buttons .btn {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
}

.quote-sheet__revise {
  background: #0a192f;
  border-color: #0a192f;
  color: #fff;
}

.quote-sheet__signed {
  margin-top: 1rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .quote-public {
    padding: 0.35rem 0.35rem 7.4rem;
  }

  body:has(.quote-public) .site-footer {
    margin-top: 0.25rem;
    padding: 0.4rem 0 0.6rem;
    font-size: 0.72rem;
  }

  .quote-sheet {
    padding: 0.55rem 0.5rem 0.6rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(10, 25, 47, 0.08);
  }

  .quote-sheet__brand,
  .quote-sheet__parties {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quote-sheet__brand {
    gap: 0.35rem;
    padding-bottom: 0.4rem;
  }

  .quote-sheet__logo,
  .quote-sheet__mark {
    width: 2.3rem;
    height: 2.3rem;
  }

  .quote-sheet__garage {
    font-size: 0.95rem;
  }

  .quote-sheet__identity p,
  .quote-sheet__doc p {
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .quote-sheet__ref {
    font-size: 0.92rem;
  }

  .quote-sheet__status {
    font-size: 0.68rem;
    margin-top: 0.1rem;
  }

  .quote-sheet__doc {
    text-align: left;
  }

  .quote-sheet__title {
    margin-top: 0.35rem;
    font-size: 0.88rem;
  }

  .quote-sheet__parties {
    gap: 0.3rem;
    margin: 0.35rem 0;
  }

  .quote-sheet__parties div,
  .quote-sheet__notes,
  .quote-sheet__sign {
    padding: 0.4rem 0.45rem;
    border-radius: 8px;
  }

  .quote-sheet__parties h2,
  .quote-sheet__notes h2,
  .quote-sheet__lines-title,
  .quote-sign p {
    margin-bottom: 0.12rem;
    font-size: 0.64rem;
  }

  .quote-sheet__parties p,
  .quote-sheet__notes p,
  .quote-sheet__lines span {
    font-size: 0.75rem;
  }

  .quote-sheet__lines li {
    padding: 0.28rem 0;
    gap: 0.4rem;
  }

  .quote-sheet__currency {
    margin: 0.35rem 0 0.15rem;
    font-size: 0.7rem;
  }

  .quote-sheet__totals {
    gap: 0.08rem;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
  }

  .quote-sheet__sign {
    gap: 0.3rem;
    margin-top: 0.25rem;
  }

  .quote-sheet__sign label {
    font-size: 0.72rem;
    gap: 0.15rem;
  }

  .quote-sign__hint {
    font-size: 0.7rem;
    margin: 0;
  }

  .quote-sheet__buttons {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    margin: 0;
    padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(10, 25, 47, 0.12);
    box-shadow: 0 -8px 18px rgba(10, 25, 47, 0.08);
  }

  .quote-sheet__buttons .btn-primary {
    grid-column: 1 / -1;
  }

  .quote-sheet__buttons .btn {
    min-height: 2.4rem;
    padding: 0.3rem 0.4rem;
    font-size: 0.82rem;
  }

  .quote-sheet .btn-ghost {
    display: inline-flex;
  }
}

@media (max-width: 719px) {
  .quote-sheet .btn-ghost {
    display: inline-flex;
  }
}

.site-header--minimal .header-inner {
  justify-content: space-between;
}

/* ?? Module Flotte ?? */
.fleet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-5);
}

.fleet-alert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.fleet-alert-pill {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.fleet-alert-pill.is-red {
  background: rgba(138, 31, 17, 0.1);
  border-color: rgba(138, 31, 17, 0.3);
  color: #8a1f11;
}

.fleet-alert-pill.is-orange {
  background: rgba(196, 92, 38, 0.12);
  border-color: rgba(196, 92, 38, 0.35);
  color: #7a3414;
}

.fleet-alert-pill.is-green {
  background: rgba(11, 37, 69, 0.12);
  border-color: rgba(11, 37, 69, 0.3);
  color: var(--color-brand);
}

.fleet-table-wrap {
  overflow-x: auto;
}

.fleet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.fleet-table th,
.fleet-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.fleet-table th {
  color: var(--color-ink-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fleet-doc-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.doc-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
}

.doc-dot.is-green { background: var(--verman-blue-royal); }
.doc-dot.is-orange { background: #c45c26; }
.doc-dot.is-red { background: #b3261e; }

.fleet-doc-list {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
}

.fleet-doc-list li.is-green { color: var(--color-brand-soft); }
.fleet-doc-list li.is-orange { color: #7a3414; }
.fleet-doc-list li.is-red { color: #8a1f11; font-weight: 600; }

.fleet-mode-switch {
  display: grid;
  gap: var(--space-3);
}

.fleet-mode-card {
  display: grid;
  gap: 0.35rem;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #fff;
}

.fleet-mode-card input {
  margin-right: 0.4rem;
}

.fleet-mode-card span {
  color: var(--color-ink-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.fleet-horizon-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.fleet-horizon-total {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-brand);
}

.urgency-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.urgency-pill.is-critical { background: rgba(138, 31, 17, 0.12); color: #8a1f11; }
.urgency-pill.is-high { background: rgba(196, 92, 38, 0.14); color: #7a3414; }
.urgency-pill.is-medium { background: rgba(180, 140, 20, 0.14); color: #6a5608; }
.urgency-pill.is-low { background: rgba(11, 37, 69, 0.12); color: var(--color-brand); }

@media (min-width: 720px) {
  .fleet-mode-switch {
    grid-template-columns: 1fr 1fr;
  }

  .fleet-horizon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.inline-form {
  display: inline;
}

.wo-form textarea {
  font-weight: 400;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  width: 100%;
}

/* ?? Module Tech ?? */
.tech-search-form {
  display: grid;
  gap: var(--space-3);
}

.tech-search-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.tech-results {
  display: grid;
  gap: var(--space-3);
}

.tech-result-card {
  display: grid;
  gap: 0.25rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.tech-result-card:hover,
.tech-result-card:focus-visible {
  border-color: var(--color-brand-soft);
  transform: translateY(-2px);
}

.tech-result-card strong {
  color: var(--color-brand);
}

.tech-result-card em {
  color: var(--color-ink-muted);
  font-style: normal;
  font-size: 0.88rem;
}

.tech-ai-card { margin-top: 1rem; }
.tech-ai-card__kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.tech-ai-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.tech-ai-form {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.85rem;
}
.tech-ai-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}
.tech-ai-form input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
}
.tech-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0.75rem 0;
}
.tech-ai-grid h3,
.tech-ai-docs h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
}
.tech-ai-summary {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 650;
}
.tech-ai-doc {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  margin-bottom: 0.65rem;
}
.tech-ai-excerpt {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}
.tech-ai-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s ease;
}
.tech-ai-pdf-btn i { color: #f87171; }
.tech-ai-pdf-btn:hover { background: var(--verman-red, #e63946); }
.mech-ai-card { display: grid; gap: 0.55rem; }
.mech-ai-conf { margin: 0; color: #64748b; font-size: 0.8rem; }
.mech-ai-doc { margin: 0.45rem 0; padding: 0.55rem 0; border-top: 1px solid #e2e8f0; }
@media (max-width: 900px) {
  .tech-ai-form { grid-template-columns: 1fr; }
  .tech-ai-grid { grid-template-columns: 1fr; }
}

.tech-sheet__code {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

.tech-sheet__code strong {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.tech-grid {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.tech-grid h3,
.tech-procedure h3 {
  margin: 0 0 var(--space-2);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted);
}

.tech-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.tech-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.tech-admin-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .tech-search-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-admin-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

/* ?? Cockpit Super Admin ?? */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: 0 0 var(--space-5);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(11, 37, 69, 0.12);
}

.admin-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-nav a.is-active,
.admin-nav a:hover {
  background: rgba(11, 37, 69, 0.1);
  color: var(--color-brand);
}

.admin-nav__user {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

.admin-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.admin-stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.admin-module-matrix {
  border: 1px solid rgba(11, 37, 69, 0.14);
  border-radius: 8px;
  padding: var(--space-3);
  margin: var(--space-3) 0;
  display: grid;
  gap: 0.5rem;
}

.admin-module-matrix legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.admin-check code {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.65;
}

.admin-mod-dots {
  display: flex;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--color-brand);
}

.admin-mod-dots span {
  display: inline-flex;
  width: 1.4rem;
  height: 1.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(11, 37, 69, 0.1);
  font-size: 0.75rem;
}

.admin-row-alert {
  background: rgba(196, 92, 38, 0.08);
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-inline-actions select {
  max-width: 9rem;
  font-size: 0.85rem;
}

.admin-reply-box {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  border-left: 3px solid var(--color-brand);
  background: rgba(11, 37, 69, 0.05);
}

.admin-cockpit .fleet-horizon-total {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.25rem 0;
}

/* ?? Portail Client / Passeport ?? */
.passport-portal {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(11, 37, 69, 0.12), transparent 50%),
    linear-gradient(180deg, #f4f6f8 0%, #eef2f6 100%);
  min-height: 70vh;
}

.passport-portal__wrap {
  max-width: 40rem;
}

.passport-lookup__head {
  margin-bottom: var(--space-5);
}

.passport-lookup__head h1 {
  margin: 0.35rem 0;
}

.passport-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.passport-id {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.06);
  margin-bottom: var(--space-4);
}

.passport-id__badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.passport-id__mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--color-brand);
  color: #fff;
  font-weight: 800;
}

.passport-id__brand {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.passport-id__tag {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

.passport-id__plate {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-brand-soft);
}

.passport-id__title {
  margin: 0.25rem 0 var(--space-4);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.passport-id__title span {
  color: var(--color-ink-muted);
  font-weight: 500;
  font-size: 0.7em;
}

.passport-id__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: 0;
}

.passport-id__grid dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted);
  margin: 0 0 0.2rem;
}

.passport-id__grid dd {
  margin: 0;
  font-weight: 600;
}

.passport-id__grid code {
  font-size: 0.85rem;
  word-break: break-all;
}

.passport-quote-banner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(217, 4, 41, 0.1), rgba(11, 37, 69, 0.12));
  border: 1px solid rgba(217, 4, 41, 0.28);
}

.passport-quote-banner__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.passport-quote-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.passport-quote-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.passport-alerts {
  margin-bottom: var(--space-5);
}

.passport-alerts h2,
.passport-timeline h2 {
  margin: 0 0 var(--space-3);
  font-size: 1.15rem;
}

.passport-alerts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.passport-alerts__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.passport-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  border-left: 2px solid rgba(11, 37, 69, 0.18);
  display: grid;
  gap: var(--space-4);
}

.passport-timeline__item {
  position: relative;
  padding-left: var(--space-4);
}

.passport-timeline__dot {
  position: absolute;
  left: -0.95rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-brand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.25);
}

.passport-timeline__card {
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.passport-timeline__card header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.passport-timeline__card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.passport-timeline__provider,
.passport-timeline__meta,
.passport-timeline__notes,
.passport-timeline__next {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

.passport-timeline__provider strong {
  color: var(--color-ink);
}

.passport-foot {
  margin-top: var(--space-6);
  text-align: center;
  color: var(--color-ink-muted);
  font-size: 0.88rem;
}

.passport-export__cert {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-brand);
}

.passport-export__cert h1 {
  margin: 0 0 0.35rem;
}

.passport-export__issued {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

.passport-export__seal {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px dashed rgba(11, 37, 69, 0.35);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.passport-export__verify {
  word-break: break-all;
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .no-print {
    display: none !important;
  }

  .passport-portal {
    background: #fff;
    min-height: 0;
  }

  .passport-id,
  .passport-timeline__card,
  .passport-alerts__item {
    box-shadow: none;
    break-inside: avoid;
  }

  .passport-timeline__list {
    border-left-color: #999;
  }
}

/* ?? Module 5 Inventaire : bouton + modale pi?ce ?? */
.pinv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.pinv-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pinv-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem;
  border: 0;
  border-radius: 0.85rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pinv-btn-add:hover {
  background: #b91c1c;
  box-shadow: 0 10px 22px rgba(185, 28, 28, 0.28);
}

.pinv-btn-add:active {
  transform: translateY(1px);
}

.pinv-btn-add__ico {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.pinv-btn-add--ghost {
  background: #0f172a;
  box-shadow: none;
}

.pinv-btn-add--ghost:hover {
  background: #1e293b;
  box-shadow: none;
}

.pinv-table-card {
  margin-top: 0.25rem;
}

.pinv-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.pinv-ref-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pinv-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  flex: 0 0 auto;
}

.pinv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow: auto;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pinv-modal {
  width: min(100%, 42rem);
  margin: 1.25rem auto 2rem;
  max-height: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.32);
  color: #0f172a;
}

.pinv-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  z-index: 1;
}

.pinv-modal__kicker {
  margin: 0;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pinv-modal__head h2 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.2rem;
}

.pinv-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.65rem;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pinv-modal__close:hover {
  background: #e2e8f0;
  color: #dc2626;
}

.pinv-modal__form {
  padding: 1rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.85rem;
}

.pinv-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.pinv-photos {
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin-top: 0.15rem;
}

.pinv-photos__label {
  margin: 0;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pinv-photos__hint {
  margin: 0.35rem 0 0.75rem;
  color: #64748b;
  font-size: 0.82rem;
}

.pinv-photos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .pinv-photos__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pinv-photo-slot {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 0.75rem;
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
}

.pinv-photo-slot span {
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
}

.pinv-photo-slot__preview {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pinv-photo-slot input[type="file"] {
  width: 100%;
  font-size: 0.75rem;
  color: #64748b;
}

.pinv-photo-slot input[type="file"]::file-selector-button {
  margin-right: 0.5rem;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 0.65rem;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.pinv-photo-slot input[type="file"]::file-selector-button:hover {
  background: #e2e8f0;
}

@media (max-width: 640px) {
  .pinv-modal-backdrop {
    padding: 0;
    align-items: stretch;
  }

  .pinv-modal {
    width: 100%;
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    border: 0;
  }

  .pinv-modal__head {
    border-radius: 0;
  }
}

/* ?? Module 5 Pi?ces / Marketplace ?? */
.parts-stock-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.parts-stock-kpi {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
  color: #0f172a;
}

.parts-stock-kpi span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.parts-stock-kpi strong {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
}

.parts-stock-kpi--accent {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(160deg, #fff 0%, #fef2f2 100%);
}

.parts-stock-kpi--accent strong {
  color: #dc2626;
}

.parts-stock-kpi--alert {
  border-color: rgba(220, 38, 38, 0.4);
}

.parts-stock-kpi--alert strong {
  color: #dc2626;
}

.parts-currency-hint {
  margin: -0.35rem 0 0.75rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

.parts-money {
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
}

.parts-money--sell {
  color: #0f172a;
}

.parts-compat,
.parts-location {
  border: 1px solid rgba(11, 37, 69, 0.14);
  border-radius: 8px;
  padding: var(--space-3);
  margin: var(--space-3) 0;
}

.parts-compat legend,
.parts-location legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.parts-offer-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.parts-offer-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.parts-offer-card p {
  margin: 0.25rem 0 0;
}

.parts-nav {
  margin-bottom: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}
.parts-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: inherit;
  align-items: center;
}
.parts-nav__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.parts-notif {
  position: relative;
  z-index: 30;
}
.parts-notif__bell {
  position: relative;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.parts-notif__bell:hover,
.parts-notif__bell:focus-visible {
  border-color: #DC2626;
  color: #DC2626;
}
.parts-notif__bell.has-unread {
  border-color: rgba(220, 38, 38, 0.45);
}
.parts-notif__pulse {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #DC2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.65);
  animation: notif-pulse 1.6s ease-out infinite;
  pointer-events: none;
  z-index: 2;
}
.parts-notif__count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #DC2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  z-index: 3;
}
.parts-notif__panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: 22rem;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.parts-notif__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  background: #0F172A;
  color: #fff;
}
.parts-notif__markall {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.parts-notif__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.parts-notif__empty {
  padding: 1rem 0.85rem;
  color: #64748b;
  font-size: 0.84rem;
}
.parts-notif__item {
  border-bottom: 1px solid #f1f5f9;
}
.parts-notif__item.is-unread {
  background: rgba(220, 38, 38, 0.05);
}
.parts-notif__link {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
}
.parts-notif__item-title {
  font-size: 0.8rem;
  font-weight: 800;
}
.parts-notif__item-body {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.35;
}
.parts-notif__item-time {
  font-size: 0.66rem;
  color: #94a3b8;
}
.parts-notif__all {
  display: block;
  padding: 0.65rem 0.85rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 750;
  color: #DC2626;
  border-top: 1px solid #e2e8f0;
}

/* ?? Login / Splash ?? */
.login-screen {
  min-height: calc(100vh - var(--header-h) - 6rem);
  display: flex;
  align-items: center;
}

.login-splash {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.login-splash__logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 719px) {
  .brand-logo {
    height: 32px;
  }

  .hero-brand img {
    height: 44px;
  }
}

/* ?? Force identit? VERMAN (priorit? visuelle index / PWA) ?? */
.hero-panel {
  background: linear-gradient(135deg, #0a192f 0%, #122a47 45%, #1b4965 100%) !important;
  color: #fff !important;
}

.hero-panel h1,
.hero-panel .hero-lead,
.hero-panel .hero-kicker {
  color: #fff;
}

.btn-primary,
.btn-accent,
.search-bar__scan {
  background: #e63946 !important;
  border-color: #e63946 !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-accent:hover,
.search-bar__scan:hover {
  background: #c1121f !important;
  border-color: #c1121f !important;
}

.brand-logo,
.hero-brand img,
.login-splash__logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.status-pill {
  background: rgba(27, 73, 101, 0.14);
  color: #0a192f;
}

.lang-btn.is-active {
  background: #0a192f !important;
  color: #fff !important;
}

.auth-screen {
  min-height: calc(100vh - var(--header-h) - 5rem);
  display: flex;
  align-items: center;
  padding: var(--space-5) var(--space-3);
}

.auth-panel {
  width: min(58rem, 100%);
  margin-inline: auto;
  display: grid;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--verman-border);
  box-shadow: var(--shadow-md);
}

.auth-panel--single {
  width: min(36rem, 100%);
}

.auth-panel__brand {
  background: linear-gradient(160deg, #0a192f 0%, #122a47 55%, #1b4965 100%);
  color: #fff;
  padding: var(--space-5);
}

.auth-panel__brand h1,
.auth-panel__form h1 {
  margin: 0.2rem 0 0.6rem;
  color: inherit;
}

.auth-panel__brand img {
  height: 56px;
  width: auto;
  background: transparent;
}

.auth-kicker {
  margin: var(--space-3) 0 0;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e63946;
}

.auth-panel__brand .auth-kicker {
  color: #ff8a93;
}

.auth-roles {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.auth-roles li {
  padding-left: 0.85rem;
  border-left: 3px solid #e63946;
}

.auth-panel__form {
  padding: var(--space-5);
}

.auth-kinds {
  border: 0;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  align-items: stretch;
}

.auth-kinds legend {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  padding: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-kind {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.auth-kind span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.35rem;
}

.auth-kind input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.auth-kind:has(input:checked) {
  border-color: #0a192f;
  background: rgba(10, 25, 47, 0.06);
  color: #0a192f;
}

.auth-kind:focus-within {
  outline: 2px solid #0a192f;
  outline-offset: 2px;
}

.auth-switch {
  margin: var(--space-4) 0 0;
  color: var(--color-ink-muted);
}

.auth-switch a {
  color: #e63946;
  font-weight: 700;
}

.auth-form input,
.auth-form select,
.auth-submit {
  min-height: 3rem;
  font-size: 1rem;
}

.phone-field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: var(--space-3);
  font-weight: 600;
  font-size: 0.9rem;
}

.phone-field__row {
  display: flex;
  align-items: stretch;
  min-height: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.auth-form .phone-field__row select,
.auth-form .phone-field__row input,
.wo-form .phone-field__row select,
.wo-form .phone-field__row input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 3rem;
}

.auth-form .phone-field__row select,
.wo-form .phone-field__row select {
  flex: 0 0 6.85rem;
  width: 6.85rem;
  padding: 0 0.15rem 0 0.7rem;
  color: #5c6b7a;
  font-size: 0.92rem;
  font-weight: 600;
  border-right: 1px solid var(--color-border);
}

.auth-form .phone-field__row input,
.wo-form .phone-field__row input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.wo-create .phone-field__row {
  border-color: #e5e7eb;
  border-radius: 0.75rem;
  min-height: 2.75rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.wo-create .phone-field__row:focus-within {
  border-color: var(--verman-blue-dark);
  box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.1);
}

.wo-create .phone-field__row select,
.wo-create .phone-field__row input {
  appearance: auto;
  background-image: none;
  box-shadow: none;
}

.wo-create .phone-field__row select:focus,
.wo-create .phone-field__row input:focus {
  border-color: transparent;
  box-shadow: none;
}

@media (max-width: 859px) {
  .auth-screen {
    align-items: stretch;
    padding: 0.75rem 0.75rem 1.5rem;
  }

  .auth-panel {
    width: 100%;
  }

  .auth-panel__brand {
    padding: 1.1rem 1.1rem 0.9rem;
  }

  .auth-panel__brand img {
    height: 42px;
  }

  .auth-panel__brand h1 {
    font-size: 1.45rem;
  }

  .auth-panel__form {
    padding: 1.1rem;
  }

}

@media (min-width: 860px) {
  .auth-panel {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .auth-panel--single {
    grid-template-columns: 1fr;
  }
}

/* ?? Sous-nav module (Garage / Flotte) — thématique 2026 ?? */
.mx-nav,
.garage-nav,
.fx-nav {
  --mx-navy: #0f172a;
  --mx-muted: #475569;
  --mx-line: rgba(15, 23, 42, 0.12);
  --mx-panel: #ffffff;
  position: relative;
  margin: 0 0 1.15rem;
  z-index: 30;
}

.mx-nav__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.15rem 0 0.3rem;
}

.mx-nav__track::-webkit-scrollbar {
  display: none;
}

.mx-nav__group {
  position: relative;
  flex: 0 0 auto;
}

.mx-nav__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.45rem;
  max-width: min(100%, 16rem);
  padding: 0.4rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid var(--mx-line);
  background: #fff;
  color: var(--mx-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mx-nav__chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mx-nav__chip:hover,
.mx-nav__chip:focus-visible {
  color: var(--mx-navy);
  border-color: rgba(15, 23, 42, 0.22);
  outline: none;
}

.mx-nav__chip.is-active,
.mx-nav__chip[aria-expanded="true"] {
  background: var(--mx-navy);
  border-color: var(--mx-navy);
  color: #fff;
  box-shadow: inset 0 -2px 0 #dc2626;
}

.mx-nav__chip.is-active:hover,
.mx-nav__chip[aria-expanded="true"]:hover,
.mx-nav__chip.is-active:focus-visible,
.mx-nav__chip[aria-expanded="true"]:focus-visible {
  color: #fff;
}

.mx-nav__chev {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.mx-nav__chip[aria-expanded="true"] .mx-nav__chev {
  transform: rotate(180deg);
}

.mx-nav__panel {
  /* Masqué par défaut — évite le fantôme fixed en haut à gauche */
  display: none !important;
  position: fixed;
  z-index: 1200;
  min-width: 12rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 24rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid var(--mx-line);
  background: var(--mx-panel);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.mx-nav__panel.is-open {
  display: block !important;
}

.mx-nav__link {
  display: flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  color: var(--mx-navy);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mx-nav__link:hover,
.mx-nav__link:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.mx-nav__link.is-active {
  background: var(--mx-navy);
  color: #fff;
}

@media (max-width: 640px) {
  .mx-nav__chip {
    min-height: 2.3rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.84rem;
  }
}

.garage-directory__search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.garage-directory__search input {
  flex: 1 1 16rem;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(10, 25, 47, 0.16);
  border-radius: 10px;
  color: #0a192f;
  background: #fff;
  font: inherit;
}

.garage-directory__search .btn {
  min-height: 3rem;
  background: #e63946;
  border-color: #e63946;
  color: #fff;
}

.fleet-table .btn {
  min-height: 2.4rem;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
  background: #e63946;
  border-color: #e63946;
  color: #fff;
}

.garage-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0a192f 0%, #122a47 58%, #1b4965 100%);
  color: #fff;
}

.garage-hero h1 {
  margin: 0.15rem 0;
  color: #fff;
  font-size: 1.7rem;
}

.garage-hero p {
  margin: 0;
}

.garage-hero__kicker {
  margin: 0;
  color: #ff8a93;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.garage-hero__logo,
.garage-logo-preview,
.garage-print-logo img {
  width: auto;
  max-width: 8rem;
  max-height: 4rem;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 0.25rem;
}

.garage-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.garage-kpi {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  min-height: 6.5rem;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(10, 25, 47, 0.1);
  border-top: 3px solid #e63946;
  border-radius: var(--radius-md, 12px);
}

.garage-kpi span,
.garage-kpi small {
  color: #5c6b7a;
  font-size: 0.86rem;
  font-weight: 600;
}

.garage-kpi strong {
  color: #0a192f;
  font-size: 1.55rem;
  line-height: 1.15;
}

.garage-kpi.is-alert strong {
  color: #e63946;
}

.garage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.garage-actions .btn,
.garage-stock-form .btn,
.garage-inline-form .btn {
  min-height: 2.3rem;
  padding: 0.3rem 0.7rem;
}

.garage-inline-form,
.garage-stock-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.garage-stock-form {
  grid-template-columns: 7rem 4rem auto;
}

.garage-profile {
  max-width: 42rem;
}

.settings-page .settings-card {
  border-top: 3px solid var(--verman-red, #e63946);
}

.settings-page .fleet-head h1 {
  color: var(--verman-blue-dark, #0a192f);
}

.settings-print-header {
  margin: 0.35rem 0 1rem;
  padding: 0.85rem 0.95rem 1rem;
  border: 1px solid rgba(10, 25, 47, 0.12);
  border-radius: var(--radius-sm);
  background: #fff;
}
.settings-print-header legend {
  padding: 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
}
.settings-print-header > .wo-hint {
  margin: 0.15rem 0 0.75rem;
}
.settings-print-header__options {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 720px) {
  .settings-print-header__options {
    grid-template-columns: 1fr 1fr;
  }
}
.settings-print-header__option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(10, 25, 47, 0.12);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  cursor: pointer;
}
.settings-print-header__option.is-active,
.settings-print-header__option:has(input:checked) {
  border-color: #1b4965;
  background: #eef5f9;
  box-shadow: inset 0 0 0 1px #1b4965;
}
.settings-print-header__option input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.settings-print-header__copy {
  display: grid;
  gap: 0.2rem;
}
.settings-print-header__copy strong {
  font-size: 0.9rem;
  font-weight: 750;
  color: #0f172a;
}
.settings-print-header__copy small {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
  font-weight: 500;
}
.letterhead--no-header .letterhead__identity { display: none !important; }
.letterhead--no-header .letterhead__brand {
  justify-content: flex-end;
}

.settings-form .btn-primary {
  margin-top: 0.5rem;
}

.garage-legal-row {
  margin-top: 0.15rem;
}

.garage-legal-hint {
  margin: -0.35rem 0 0.95rem;
  color: #475569;
}

.letterhead__legal,
.quote-sheet__legal,
.station-receipt__legal,
.pos-receipt__legal {
  margin: 0.75rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(10, 25, 47, 0.12);
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.45;
}

.letterhead__legal p,
.quote-sheet__legal p,
.station-receipt__legal p,
.pos-receipt__legal p {
  margin: 0.15rem 0 0;
}

.station-receipt__legal,
.pos-receipt__legal {
  text-align: center;
  font-size: 0.72rem;
  border-top: 1px dashed rgba(10, 25, 47, 0.25);
}

.garage-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(10, 25, 47, 0.12);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.wo-form label.garage-switch {
  display: block;
  margin: 0;
  padding: 0;
}

.garage-switch {
  position: relative;
  width: 2.8rem;
  height: 1.6rem;
  flex: 0 0 auto;
}

.garage-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.garage-switch span {
  display: block;
  width: 2.8rem;
  height: 1.6rem;
  background: #d5dbe3;
  border-radius: 999px;
  cursor: pointer;
}

.garage-switch span::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.3rem;
  height: 1.3rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.garage-switch input:checked + span {
  background: #0a192f;
}

.garage-switch input:checked + span::after {
  transform: translateX(1.2rem);
}

.garage-switch input:focus-visible + span {
  outline: 2px solid #e63946;
  outline-offset: 2px;
}

.garage-profile textarea {
  width: 100%;
  min-height: 6.5rem;
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
}

.garage-quote-notes {
  margin: 1rem 0 0;
  color: #334155;
  white-space: pre-wrap;
}

.garage-quote-notes a {
  color: #0a192f;
  font-weight: 700;
}

dialog.vrm-modal:not([open]) {
  display: none;
}

dialog.vrm-modal[open] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  box-shadow: none;
  color: #0a192f;
}

.vrm-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.vrm-modal__form {
  display: flex;
  flex-direction: column;
  width: min(40rem, 100%);
  max-height: 90vh;
  max-height: 90dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(10, 25, 47, 0.28);
}

.vrm-modal__head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.35rem;
}

.vrm-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0.15rem 1.25rem 1.15rem;
}

.vrm-modal__head h2 {
  margin: 0;
  color: #0a192f;
}

.vrm-modal__close {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #f4f6f8;
  color: #0a192f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.vrm-modal h3 {
  margin: 1.1rem 0 0.7rem;
  color: #0a192f;
  font-size: 0.95rem;
}

.vrm-category {
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
}

.vrm-category legend {
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.vrm-category__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.wo-form label.vrm-category__option {
  display: block;
  margin: 0;
  padding: 0;
}

.vrm-category__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.vrm-category__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(10, 25, 47, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #0a192f;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.vrm-category__option input:checked + span {
  background: #0a192f;
  color: #fff;
  border-color: #0a192f;
  box-shadow: inset 0 -3px 0 #e63946;
}

.vrm-category__option input:focus-visible + span {
  outline: 2px solid #e63946;
  outline-offset: 2px;
}

.vrm-combo {
  position: relative;
  display: grid;
  gap: 0.3rem;
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.vrm-combo:focus-within {
  z-index: 1050;
}

.vrm-combo__field {
  position: relative;
}

.wo-form .vrm-combo > label {
  display: block;
  margin: 0;
}

.vrm-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 180px;
  margin: 0;
  padding: 0.3rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(10, 25, 47, 0.16);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(10, 25, 47, 0.12);
}

.vrm-suggest[hidden] {
  display: none;
}

.vrm-suggest button {
  width: 100%;
  min-height: 3rem;
  text-align: left;
  border: 0;
  background: transparent;
  color: #0a192f;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
}

.vrm-suggest button:hover,
.vrm-suggest button:focus {
  background: rgba(10, 25, 47, 0.06);
}

.vrm-modal__body input,
.vrm-modal__body select {
  min-height: 3.25rem;
  font-size: 1rem;
}

.vrm-modal__body .phone-field__row {
  min-height: 3.25rem;
}

.vrm-modal__actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 0.65rem;
  margin: 0;
  padding: 0.75rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(10, 25, 47, 0.1);
  background: #fff;
}

.vrm-modal__actions .btn {
  min-height: 3.25rem;
  padding-inline: 1.1rem;
  font-size: 1rem;
}

.vrm-modal__actions .btn-primary {
  background: #e63946;
  border-color: #e63946;
  color: #fff;
}

#wo-vehicle-qr,
#wo-vehicle-category {
  color: #64748b;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .wo-search-row,
  .vrm-category__choices {
    flex-direction: column;
    align-items: stretch;
  }

  .vrm-category__choices {
    display: grid;
    grid-template-columns: 1fr;
  }

  dialog.vrm-modal[open] {
    padding: 0.75rem;
  }

  .vrm-modal__form {
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
  }

  .vrm-modal__actions {
    flex-direction: column-reverse;
  }

  .vrm-modal__actions .btn {
    width: 100%;
  }
}

.is-low-stock strong {
  color: #e63946;
}

@media (max-width: 900px) {
  .garage-kpis,
  .garage-inline-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .garage-kpis,
  .garage-inline-form,
  .garage-stock-form {
    grid-template-columns: 1fr;
  }

  .garage-hero {
    align-items: flex-start;
  }
}

@media print {
  .site-header,
  .site-footer,
  .mx-nav,
  .garage-nav,
  .fx-nav,
  .form-actions,
  .garage-actions {
    display: none !important;
  }
}

/* ?? Papier ? en-t?te devis / OR ?? */
.letterhead-page {
  background: #eef2f6;
}

.letterhead-toolbar {
  --lh-navy: #0f172a;
  --lh-red: #dc2626;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.letterhead-formats,
.letterhead-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.letterhead-formats {
  flex: 1 1 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.letterhead-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.letterhead-formats__label {
  flex: 0 0 auto;
  margin-right: 0.15rem;
  color: var(--lh-navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.letterhead-seg {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  padding: 0.22rem;
  gap: 0.18rem;
  border-radius: 0.85rem;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.letterhead-seg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.68rem;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.letterhead-seg__btn:hover {
  color: var(--lh-navy);
  background: rgba(255, 255, 255, 0.72);
}

.letterhead-seg__btn.is-active,
.letterhead-formats button.is-active {
  background: var(--lh-navy);
  border-color: var(--lh-navy);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.18),
    inset 0 -2px 0 var(--lh-red);
}

.letterhead-seg__btn:focus-visible,
.lh-btn:focus-visible {
  outline: 2px solid var(--lh-red);
  outline-offset: 2px;
}

.lh-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  display: block;
}

.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.lh-btn:hover {
  transform: translateY(-1px);
}

.lh-btn:active {
  transform: translateY(0);
}

.lh-btn--print {
  background: var(--lh-red);
  border-color: #b91c1c;
  color: #fff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.22);
}

.lh-btn--print:hover {
  background: #b91c1c;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.28);
}

.lh-btn--edit {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
  color: var(--lh-navy);
}

.lh-btn--edit:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.22);
}

.lh-btn--repair {
  background: linear-gradient(180deg, #ef4444 0%, var(--lh-red) 100%);
  border-color: #b91c1c;
  color: #fff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.18);
}

.lh-btn--repair:hover {
  background: #b91c1c;
}

.lh-btn--complete {
  background: linear-gradient(180deg, #1e293b 0%, var(--lh-navy) 100%);
  border-color: var(--lh-navy);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.lh-btn--complete:hover {
  background: #020617;
}

.lh-btn--invoice {
  background: var(--lh-navy);
  border-color: var(--lh-navy);
  color: #fff;
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.2),
    inset 0 -2px 0 var(--lh-red);
}

.lh-btn--invoice:hover {
  background: #020617;
}

.lh-btn--pay {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
  color: var(--lh-navy);
  box-shadow: inset 0 -2px 0 var(--lh-red);
}

.lh-btn--pay:hover {
  background: #f1f5f9;
}

@media (max-width: 860px) {
  .letterhead-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .letterhead-formats,
  .letterhead-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .letterhead-actions {
    padding-top: 0.15rem;
  }
}

@media (max-width: 560px) {
  .letterhead-seg__btn span {
    font-size: 0.8rem;
  }

  .lh-btn {
    min-height: 2.85rem;
    padding-inline: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .letterhead-seg__btn,
  .lh-btn {
    transition: none;
  }

  .lh-btn:hover {
    transform: none;
  }
}

.letterhead {
  width: min(210mm, 100%);
  margin: 0 auto 2rem;
  padding: 10mm 12mm 12mm;
  background: #fff;
  color: #0a192f;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(10, 25, 47, 0.12);
  font-size: 9.5pt;
  line-height: 1.35;
}

.letterhead--a4,
.letterhead--a5 {
  display: flex;
  flex-direction: column;
}

.letterhead--a4 { min-height: 297mm; }
.letterhead--a5 { width: min(148mm, 100%); min-height: 210mm; padding: 7mm 8mm; }
.letterhead--t80 { width: min(80mm, 100%); min-height: 0; padding: 3mm 3mm 4mm; display: block; }
.letterhead--t58 { width: min(58mm, 100%); min-height: 0; padding: 2.5mm 2.5mm 3.5mm; display: block; font-size: 8pt; }

.letterhead__brand {
  display: flex;
  justify-content: space-between;
  gap: 4mm;
  padding-bottom: 3mm;
  border-bottom: 0.6mm solid #0a192f;
  box-shadow: inset 0 -1.1mm 0 #e63946;
}

.letterhead__identity {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  min-width: 0;
}

.letterhead__logo,
.letterhead__mark {
  width: 16mm;
  height: 16mm;
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  border: 0.2mm solid rgba(10, 25, 47, 0.12);
  border-radius: 1.5mm;
}

.letterhead__mark {
  display: grid;
  place-items: center;
  background: #0a192f;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.letterhead__garage {
  margin: 0 0 0.4mm;
  color: #0a192f;
  font-size: 13pt;
  font-weight: 800;
  line-height: 1.15;
}

.letterhead__identity p,
.letterhead__doc p {
  margin: 0;
  font-size: 8.5pt;
  line-height: 1.35;
}

.letterhead__identity a {
  color: #0a192f;
  font-weight: 700;
}

.letterhead__doc {
  flex: 0 0 auto;
  min-width: 9rem;
  text-align: right;
}

.letterhead__kind {
  color: #e63946;
  font-size: 8pt !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.letterhead__ref {
  color: #0a192f;
  font-size: 12pt !important;
  font-weight: 800;
}

.letterhead__status {
  display: inline-block;
  margin-top: 0.35rem !important;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 25, 47, 0.06);
  font-weight: 700;
}

.letterhead__title {
  margin: 3mm 0 0;
  font-size: 11pt;
  font-weight: 700;
}

.letterhead__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3mm;
  margin: 3.5mm 0;
}

.letterhead__parties div,
.letterhead__notes,
.letterhead__sign > div {
  padding: 2.5mm 3mm;
  border: 0.2mm solid rgba(10, 25, 47, 0.14);
  border-radius: 1.5mm;
  background: #fff;
}

.letterhead__parties h2,
.letterhead__notes h2,
.letterhead__sign h2 {
  margin: 0 0 0.35rem;
  color: #e63946;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.letterhead__parties p,
.letterhead__notes p,
.letterhead__sign p,
.letterhead__place {
  margin: 0;
  line-height: 1.4;
}

.letterhead__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 1mm;
}

.letterhead__table col.col-qty { width: 14mm; }
.letterhead__table col.col-unit { width: 28mm; }
.letterhead__table col.col-total { width: 32mm; }

.letterhead__table th {
  padding: 1.6mm 2mm;
  background: #0a192f;
  color: #fff;
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.letterhead__table td {
  padding: 1.8mm 2mm;
  border-bottom: 0.2mm solid rgba(10, 25, 47, 0.12);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.letterhead__desc {
  display: block;
}

.letterhead__kind-line {
  display: block;
  margin-top: 0.4mm;
  color: #5c6b7a;
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.letterhead__table .col-qty,
.letterhead__table .col-unit,
.letterhead__table .col-total {
  white-space: nowrap;
  text-align: right;
}

.letterhead__table .col-total {
  color: #0a192f;
  font-weight: 800;
}

.thermal-meta {
  display: none;
}

.letterhead__bottom {
  display: grid;
  gap: 3mm;
  margin-top: 4mm;
}

.letterhead--a4 .letterhead__bottom,
.letterhead--a5 .letterhead__bottom {
  margin-top: auto;
  padding-top: 4mm;
}

.letterhead__currency {
  margin: 0;
  color: #5c6b7a;
  font-size: 0.8rem;
}

.letterhead__totals {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  margin: 0;
}

.letterhead__totals div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(18rem, 100%);
}

.letterhead__totals dt,
.letterhead__totals dd {
  margin: 0;
}

.letterhead__totals .is-total {
  margin-top: 0.25rem;
  padding-top: 0.4rem;
  border-top: 2px solid #0a192f;
  box-shadow: inset 0 3px 0 #e63946;
  font-size: 1.05rem;
  font-weight: 800;
}

.letterhead__sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3mm;
  margin-top: 2mm;
}

.letterhead__line {
  display: block;
  width: 100%;
  height: 14mm;
  margin-top: 1.5mm;
  border-bottom: 0.2mm solid rgba(10, 25, 47, 0.45);
}

.letterhead__sign-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 45px;
  margin-top: 1mm;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  break-inside: avoid;
  page-break-inside: avoid;
}

.letterhead__stamp {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 28mm;
  margin-top: 1mm;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  break-inside: avoid;
  page-break-inside: avoid;
}

.letterhead--t80 .letterhead__stamp,
.letterhead--t58 .letterhead__stamp {
  max-height: 16mm;
}

/* ?? Upload justificatif (PDF + images compress?es) ?? */
.vrm-upload {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0.75rem;
}
.vrm-upload__label {
  font-weight: 800;
  color: #0F172A;
  font-size: 0.9rem;
}
.vrm-upload__drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.15rem 1rem;
  border: 1.5px dashed rgba(15, 23, 42, 0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.vrm-upload__drop:hover,
.vrm-upload__drop:focus-within,
.vrm-upload__drop.is-dragover {
  border-color: #DC2626;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.vrm-upload__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.vrm-upload__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0F172A;
}
.vrm-upload__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.vrm-upload__title {
  font-weight: 800;
  color: #0F172A;
  font-size: 0.92rem;
}
.vrm-upload__hint {
  color: #64748b;
  font-size: 0.8rem;
  max-width: 28rem;
}
.vrm-upload__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}
.vrm-upload__meta[hidden] { display: none; }
.vrm-upload__preview-wrap {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
}
.vrm-upload__preview {
  max-width: 3.2rem;
  max-height: 3.2rem;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid #e2e8f0;
}
.vrm-upload__pdf {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.55rem;
  background: #0F172A;
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.vrm-upload__info {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.vrm-upload__info strong {
  color: #0F172A;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vrm-upload__info span,
.vrm-upload__info small {
  color: #64748b;
  font-size: 0.78rem;
}
.vrm-upload__clear {
  min-height: 2.2rem;
  padding-inline: 0.7rem;
}
@media (max-width: 560px) {
  .vrm-upload__meta {
    grid-template-columns: auto 1fr;
  }
  .vrm-upload__clear {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.img-compress-note {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-ink-muted, #5b6b7c);
  font-size: 0.82rem;
  font-weight: 500;
}

.img-compress-note[hidden],
.img-compress-preview[hidden] {
  display: none;
}

.img-compress-preview {
  display: block;
  margin-top: 0.45rem;
  width: auto;
  max-width: 8rem;
  max-height: 4.5rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.25rem;
}

.garage-stamp-preview {
  display: block;
  width: auto;
  max-width: 12rem;
  max-height: 7rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.35rem;
}

.letterhead__signed {
  margin: 1mm 0 0;
  color: #5c6b7a;
  font-size: 8pt;
}

.letterhead--t80 .letterhead__brand,
.letterhead--t58 .letterhead__brand,
.letterhead--t80 .letterhead__parties,
.letterhead--t58 .letterhead__parties,
.letterhead--t80 .letterhead__sign-grid,
.letterhead--t58 .letterhead__sign-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.letterhead--t80 .letterhead__doc,
.letterhead--t58 .letterhead__doc {
  text-align: left;
}

.letterhead--t80 .letterhead__identity,
.letterhead--t58 .letterhead__identity {
  display: grid;
}

.letterhead--t80 .col-qty,
.letterhead--t80 .col-unit,
.letterhead--t58 .col-qty,
.letterhead--t58 .col-unit {
  display: none;
}

.letterhead--t80 .letterhead__table col.col-qty,
.letterhead--t80 .letterhead__table col.col-unit,
.letterhead--t58 .letterhead__table col.col-qty,
.letterhead--t58 .letterhead__table col.col-unit {
  width: 0;
}

.letterhead--t80 .thermal-meta,
.letterhead--t58 .thermal-meta {
  display: block;
  margin-top: 0.15rem;
  color: #5c6b7a;
  font-size: 0.75rem;
}

.letterhead--t58 {
  font-size: 0.78rem;
}

.letterhead--t58 .letterhead__garage {
  font-size: 1rem;
}

.letterhead--t58 .letterhead__logo,
.letterhead--t58 .letterhead__mark,
.letterhead--t80 .letterhead__logo,
.letterhead--t80 .letterhead__mark {
  width: 11mm;
  height: 11mm;
}

.letterhead--t58 .letterhead__line,
.letterhead--t80 .letterhead__line {
  height: 9mm;
}

@media print {
  @page {
    margin: 0;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    background: #fff !important;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .no-print,
  .mx-nav,
  .garage-nav,
  .fx-nav,
  .letterhead-toolbar,
  .header-search,
  .main-nav,
  .connectivity-banner,
  dialog,
  .vrm-modal {
    display: none !important;
  }

  a[href]::after {
    content: none !important;
  }

  .letterhead-page,
  .letterhead-page.section,
  .letterhead-page .container {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .letterhead {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .letterhead-page {
    font-size: 11px;
    line-height: 1.2;
  }

  .print-container.letterhead--a4,
  .print-container.letterhead--a5 {
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 11px;
    line-height: 1.2;
  }

  .print-container.letterhead--a4 {
    height: 279mm;
    max-height: 279mm;
  }

  .print-container.letterhead--a5 {
    height: 196mm;
    max-height: 196mm;
  }

  .letterhead--a5 .letterhead__logo,
  .letterhead--a5 .letterhead__mark {
    width: 10mm;
    height: 10mm;
  }

  .letterhead--a5 .letterhead__garage {
    font-size: 12px;
  }

  .letterhead--a5 .letterhead__ref {
    font-size: 12px !important;
  }

  .letterhead--a5 .letterhead__identity p,
  .letterhead--a5 .letterhead__doc p,
  .letterhead--a5 .letterhead__parties p,
  .letterhead--a5 .letterhead__notes p,
  .letterhead--a5 .letterhead__sign p,
  .letterhead--a5 .letterhead__place,
  .letterhead--a5 .letterhead__currency,
  .letterhead--a5 .letterhead__totals {
    font-size: 10px;
    line-height: 1.2;
  }

  .letterhead--a5 .letterhead__brand {
    gap: 2mm;
    padding-bottom: 1.5mm;
  }

  .letterhead--a5 .letterhead__title {
    margin: 1.5mm 0 0;
    font-size: 12px;
  }

  .letterhead--a5 .letterhead__parties {
    gap: 2mm;
    margin: 1.5mm 0;
  }

  .letterhead--a5 .letterhead__parties div,
  .letterhead--a5 .letterhead__notes,
  .letterhead--a5 .letterhead__sign > div {
    padding: 1.4mm 2mm;
  }

  .letterhead--a5 .letterhead__parties h2,
  .letterhead--a5 .letterhead__notes h2,
  .letterhead--a5 .letterhead__sign h2 {
    margin-bottom: 0.6mm;
    font-size: 8px;
  }

  .letterhead--a5 .letterhead__table th,
  .letterhead--a5 .letterhead__table td {
    padding: 1mm 1.4mm;
    font-size: 10px;
  }

  .letterhead--a5 .letterhead__bottom,
  .letterhead--a4 .letterhead__bottom {
    gap: 1.5mm;
    margin-top: auto;
    padding-top: 1.5mm;
  }

  .letterhead--a5 .letterhead__totals {
    gap: 0;
  }

  .letterhead--a5 .letterhead__totals .is-total {
    margin-top: 0.6mm;
    padding-top: 0.6mm;
    font-size: 12px;
  }

  .letterhead--a5 .letterhead__sign-grid {
    gap: 2mm;
    margin-top: 1mm;
  }

  .letterhead--a5 .letterhead__line {
    height: 8mm;
  }

  .letterhead--t80,
  .letterhead--t58 {
    height: auto;
    min-height: 0;
  }

  .letterhead a {
    color: inherit;
    text-decoration: none;
  }

  .letterhead__status.is-alert,
  .letterhead__status.is-waiting,
  .status-pill.status-pill--alert,
  .status-pill.status-pill--wait {
    animation: none !important;
    opacity: 1 !important;
  }

  .letterhead__table thead {
    display: table-header-group;
  }

  .letterhead__table th,
  .letterhead__table td {
    overflow: hidden;
  }

  .letterhead--t80 .col-qty,
  .letterhead--t80 .col-unit,
  .letterhead--t58 .col-qty,
  .letterhead--t58 .col-unit {
    display: none !important;
  }

  .letterhead__sign-img {
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    max-height: 45px !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .letterhead__stamp {
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    max-height: 28mm !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .letterhead--t80 .letterhead__stamp,
  .letterhead--t58 .letterhead__stamp {
    max-height: 16mm !important;
  }

  .letterhead__table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ?? Cockpit garage : listes, stock, ?quipe ?? */
.gx-filters {
  display: flex;
  gap: 0.45rem;
  margin: 0 0 1rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.gx-filters a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0a192f;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.gx-filters a span {
  min-width: 1.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(10, 25, 47, 0.08);
  font-size: 0.75rem;
  text-align: center;
}

.gx-filters a.is-active,
.gx-filters a:hover {
  background: #0a192f;
  border-color: #0a192f;
  color: #fff;
}

.gx-filters a.is-active span,
.gx-filters a:hover span {
  background: rgba(255, 255, 255, 0.16);
}

.gx-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(10, 25, 47, 0.06);
}

.gx-ref,
.gx-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #0a192f;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gx-sub {
  display: block;
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

.gx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.gx-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0a192f;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.gx-iconbtn:hover,
.gx-iconbtn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(10, 25, 47, 0.08);
}

.gx-iconbtn:active {
  transform: translateY(0);
}

.gx-iconbtn--accent {
  background: #0a192f;
  border-color: #0a192f;
  color: #fff;
}

.gx-iconbtn--edit {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

.gx-iconbtn--edit:hover,
.gx-iconbtn--edit:focus-visible {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

.gx-iconbtn--edit .gx-ico {
  color: #64748b;
}

.gx-iconbtn--danger {
  color: #e63946;
  border-color: rgba(230, 57, 70, 0.35);
}

.gx-ref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.gx-tech-report {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.gx-tech-report:hover,
.gx-tech-report:focus-visible {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.gx-tech-report .gx-ico {
  width: 0.95rem;
  height: 0.95rem;
  color: #dc2626;
}

.gx-iconbtn--tech-report {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.gx-iconbtn--tech-report:hover,
.gx-iconbtn--tech-report:focus-visible {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.gx-iconbtn--tech-report .gx-ico {
  color: #dc2626;
}

/* ?? Modale rapport technicien ?? */
html.tr-modal-open,
html.tr-modal-open body {
  overflow: hidden;
}

.tr-modal {
  border: 0;
  padding: 0;
  max-width: min(720px, calc(100vw - 1rem));
  width: 100%;
  max-height: min(92vh, 920px);
  border-radius: 1rem;
  background: transparent;
  color: #0f172a;
}

.tr-modal::backdrop {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(2px);
}

.tr-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 920px);
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.tr-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.9rem;
  background: #0f172a;
  color: #fff;
}

.tr-modal__kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.tr-modal__head h2 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  color: #fff;
}

.tr-modal__meta {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tr-modal__close {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.tr-modal__close:hover,
.tr-modal__close:focus-visible {
  background: rgba(220, 38, 38, 0.85);
}

.tr-modal__body {
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(220, 38, 38, 0.05), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}

.tr-modal__loading,
.tr-modal__empty {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 10rem;
  text-align: center;
  color: #64748b;
  padding: 1.5rem;
}

.tr-modal__spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid #e2e8f0;
  border-top-color: #dc2626;
  border-radius: 999px;
  animation: tr-spin 0.7s linear infinite;
}

@keyframes tr-spin {
  to { transform: rotate(360deg); }
}

.tr-modal__content {
  display: grid;
  gap: 0.85rem;
}

.tr-block {
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
}

.tr-block h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: #0f172a;
}

.tr-block__ico {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #eff6ff;
  color: #1d4ed8;
  flex: 0 0 auto;
}

.tr-block__ico svg {
  width: 0.95rem;
  height: 0.95rem;
}

.tr-block__ico--red {
  background: #fef2f2;
  color: #dc2626;
}

.tr-fields {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.tr-field {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #e2e8f0;
}

.tr-field:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tr-field dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.tr-field dd {
  margin: 0;
  font-size: 0.92rem;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}

.tr-muted {
  margin: 0;
  color: #94a3b8;
  font-size: 0.86rem;
}

.tr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.55rem;
}

.tr-gallery a,
.tr-gallery img,
.tr-gallery video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tr-gallery video {
  aspect-ratio: 16 / 10;
}

.tr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.tr-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.tr-list .tr-sub {
  color: #64748b;
  font-size: 0.8rem;
}

.tr-pill {
  display: inline-flex;
  align-self: start;
  margin-top: 0.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.tr-pill--ok {
  background: #ecfdf5;
  color: #047857;
}

.tr-pill--warn {
  background: #fef2f2;
  color: #dc2626;
}

.tr-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.tr-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.tr-checks li.is-done {
  color: #0f172a;
  font-weight: 600;
}

.tr-check {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  flex: 0 0 auto;
}

.tr-checks li.is-done .tr-check {
  background: #dc2626;
  color: #fff;
}

.tr-notes {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 0.88rem;
  color: #0f172a;
}

.tr-ready {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  font-size: 0.86rem;
}

.tr-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.tr-modal__import {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.tr-modal__import:hover,
.tr-modal__import:focus-visible {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.tr-modal__import.is-busy {
  opacity: 0.75;
  pointer-events: none;
  cursor: wait;
}

@media (max-width: 640px) {
  .tr-modal {
    max-width: calc(100vw - 0.5rem);
    max-height: 96vh;
  }

  .tr-modal__panel {
    max-height: 96vh;
  }

  .tr-modal__foot {
    flex-direction: column-reverse;
  }

  .tr-modal__foot .btn {
    width: 100%;
    justify-content: center;
  }
}

.gx-iconbtn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.gx-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.garage-cockpit .status-pill--ok {
  animation: gx-ok 2.8s ease-in-out infinite;
}

@keyframes gx-ok {
  0%, 100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
  50% { box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.16); }
}

.gx-segment {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e5e7eb;
}

.gx-segment--fleet {
  background: rgba(10, 25, 47, 0.06);
  color: #0a192f;
}

.gx-segment--vip {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.gx-history {
  display: grid;
  gap: 0.65rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.gx-history li {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
}

.gx-history a {
  color: #0a192f;
  font-weight: 700;
}

.gx-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.gx-form input,
.gx-form select,
.gx-qty input,
.gx-role-form select {
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: #0a192f;
  font: inherit;
}

.gx-form input:focus,
.gx-form select:focus,
.gx-qty input:focus,
.gx-role-form select:focus {
  outline: none;
  border-color: #0a192f;
  box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.1);
}

.gx-stock-form,
.gx-team-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 0.9rem;
  align-items: end;
}

.gx-stock-form h2,
.gx-form__actions {
  grid-column: 1 / -1;
}

.gx-stock-form h2 {
  margin: 0;
  color: #0a192f;
  font-size: 1.05rem;
}

.gx-form__actions,
.gx-qty {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.gx-qty input {
  width: 5.5rem;
}

.gx-form .btn,
.gx-qty .btn,
.gx-role-form .btn,
.gx-iconbtn {
  min-height: 2.75rem;
}

.gx-table tr.is-low-stock td {
  background: #fff7ed;
}

.gx-table tr.is-low-stock td:first-child {
  box-shadow: inset 3px 0 0 #e63946;
}

.gx-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gx-member {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 0.85rem;
  align-items: start;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(10, 25, 47, 0.06);
}

.gx-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: #0a192f;
  color: #fff;
  font-weight: 700;
}

.gx-member__body strong {
  display: block;
  color: #0a192f;
}

.gx-role {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.gx-role--diag {
  background: rgba(27, 73, 101, 0.12);
  color: #1b4965;
}

.gx-role--lead {
  background: #0a192f;
  color: #fff;
}

.gx-role--desk {
  background: #fff1f2;
  color: #be123c;
}

.gx-role-form {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}

.gx-role-form label {
  display: grid;
  gap: 0.3rem;
  flex: 1 1 10rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.gx-member > .gx-iconbtn {
  grid-column: 1 / -1;
}

.staff-hr {
  --staff-navy: #0f172a;
  --staff-red: #dc2626;
}

.staff-hr__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid #b91c1c;
  border-radius: 0.85rem;
  background: var(--staff-red, #dc2626);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.staff-hr__toggle:hover {
  background: #b91c1c;
  transform: scale(1.02);
}

.staff-hr__toggle .gx-ico {
  width: 1.1rem;
  height: 1.1rem;
}

html.staff-hr-modal-open,
html.staff-hr-modal-open body {
  overflow: hidden;
}

.staff-hr-modal:not([open]) {
  display: none;
}

.staff-hr-modal[open] {
  position: fixed;
  inset: 0;
  z-index: 10050;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: #0f172a;
}

.staff-hr-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.staff-hr-modal__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.staff-hr-modal__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: #0f172a;
  color: #fff;
}

.staff-hr-modal__head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.staff-hr-modal__head .gx-ico {
  width: 1.15rem;
  height: 1.15rem;
  color: #dc2626;
}

.staff-hr-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.staff-hr-modal__close:hover {
  color: #fff;
  background: rgba(220, 38, 38, 0.2);
}

.staff-hr-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.1rem 1.1rem 1.25rem;
}

.staff-hr-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.staff-hr-modal__full {
  grid-column: 1 / -1;
}

.staff-hr-modal__grid > label,
.staff-hr-modal__access label:not(.staff-hr__login-toggle) {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-hr-modal__grid input,
.staff-hr-modal__grid select {
  min-height: 2.75rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
}

.staff-hr-modal__grid input:focus,
.staff-hr-modal__grid select:focus {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  border-color: #dc2626;
}

.staff-hr-modal__access {
  margin-top: 1.15rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), #fff 48%);
}

.staff-hr-modal__access > header {
  margin-bottom: 0.85rem;
}

.staff-hr-modal__access h3 {
  margin: 0 0 0.2rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}

.staff-hr-modal__access > header p {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
}

.staff-hr-modal__foot {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.staff-hr-modal__save {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.staff-hr-modal__save:hover {
  background: #b91c1c !important;
}

.staff-hr-modal__foot--edit {
  justify-content: space-between;
  align-items: center;
}

.staff-hr-modal__foot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-left: auto;
}

.staff-hr-modal__remove-form {
  display: none;
}

.staff-hr__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.staff-hr__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.15rem;
  border: 0;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease;
}

.staff-hr__edit-btn .gx-ico {
  width: 1rem;
  height: 1rem;
  color: #dc2626;
}

.staff-hr__edit-btn:hover {
  color: #dc2626;
}

@media (min-width: 640px) {
  .staff-hr-modal[open] {
    padding: 1.25rem;
    align-items: center;
  }

  .staff-hr-modal__panel {
    width: min(42rem, 100%);
    max-width: 42rem;
    height: auto;
    max-height: min(90vh, 90dvh);
    border-radius: 1.15rem;
  }

  .staff-hr-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-hr-modal__head {
    border-radius: 1.15rem 1.15rem 0 0;
  }

  .staff-hr-modal__foot {
    border-radius: 0 0 1.15rem 1.15rem;
  }
}

.staff-hr__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.staff-hr__kpis article {
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-hr__kpis article:last-child {
  border-color: rgba(220, 38, 38, 0.22);
}

.staff-hr__kpis span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.staff-hr__kpis strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--staff-navy, #0f172a);
  font-size: 1.15rem;
}

.staff-hr__card {
  margin-bottom: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-hr__card--create,
.staff-hr__card--time {
  padding: 1.1rem 1.15rem 1.2rem;
  background: #fff;
}

.staff-hr__card h2 {
  margin: 0 0 0.85rem;
  color: var(--staff-navy, #0f172a);
  font-size: 1.05rem;
}

.staff-hr__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.staff-hr__grid-full {
  grid-column: 1 / -1;
}

.staff-hr__form label,
.staff-hr__grid label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
}

.staff-hr__form input,
.staff-hr__form select,
.staff-hr__grid input,
.staff-hr__grid select,
.staff-hr__period input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--staff-navy, #0f172a);
  font: inherit;
  box-sizing: border-box;
}

.staff-hr__form input:focus,
.staff-hr__form select:focus,
.staff-hr__grid input:focus,
.staff-hr__grid select:focus {
  outline: 2px solid rgba(220, 38, 38, 0.28);
  border-color: var(--staff-red, #dc2626);
}

.staff-hr__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.staff-hr__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.staff-hr__member {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-hr__member header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-hr__member header strong {
  color: var(--verman-blue-dark, #0a192f);
}

.staff-hr__member header p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}

.staff-live {
  flex: 0 0 auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.staff-live--disponible {
  background: rgba(27, 73, 101, 0.12);
  color: #1b4965;
}

.staff-live--en_intervention {
  background: rgba(230, 57, 70, 0.12);
  color: #be123c;
}

.staff-live--conge {
  background: #fff7ed;
  color: #c2410c;
}

.staff-live--inactif {
  background: #f1f5f9;
  color: #64748b;
}

.staff-hr__member dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  margin: 0;
}

.staff-hr__member dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.staff-hr__member dd {
  margin: 0.1rem 0 0;
  color: #0a192f;
  font-weight: 600;
  font-size: 0.9rem;
}


.staff-hr__login {
  margin: 1rem 0 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), #fff 42%);
  overflow: hidden;
}

.staff-hr__login > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  color: #0f172a;
  font-weight: 700;
}

.staff-hr__login > summary::-webkit-details-marker {
  display: none;
}

.staff-hr__login > summary small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}

.staff-hr__login-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.staff-hr__login-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  color: #0f172a;
  font-weight: 600;
}

.staff-hr__login-toggle input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #dc2626;
}

.staff-hr__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
}

.staff-access,
.staff-login-flag {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.staff-access--technicien {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.staff-access--chef_atelier {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.staff-access--patron {
  background: #0f172a;
  color: #fff;
}

.staff-login-flag--on {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.staff-login-flag--off {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.mech-denied {
  margin: 0 1rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.08);
  color: #0f172a;
}

.mech-denied p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.staff-hr__custom-role {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.02);
}

.staff-hr__perms {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.02);
  display: grid;
  gap: 0.45rem;
}

.staff-hr__perms legend {
  margin-bottom: 0.35rem;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-hr__perms label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.86rem;
}

.staff-hr__perms input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #dc2626;
}

#wo-open-reception:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mech-top__actions {
  position: relative;
  flex-shrink: 0;
  max-width: min(100%, 16.5rem);
}

.mech-back-cockpit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.mech-back-cockpit:hover,
.mech-back-cockpit:focus-visible {
  background: #1e293b;
  border-color: #475569;
  color: #fff;
  transform: translateY(-1px);
}

.mech-back-cockpit i {
  color: #dc2626;
  font-size: 0.85rem;
}

.mech-back-cockpit__short {
  display: none;
}

@media (max-width: 420px) {
  .mech-top__actions {
    max-width: 11.5rem;
  }

  .mech-back-cockpit {
    padding: 0.4rem 0.65rem;
  }

  .mech-back-cockpit__full {
    display: none;
  }

  .mech-back-cockpit__short {
    display: inline;
  }
}

.tech-notif {
  position: relative;
}

.tech-notif__bell {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tech-notif__count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}

.tech-notif__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(20rem, calc(100vw - 1.5rem));
  max-height: 20rem;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  z-index: 40;
}

.tech-notif__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  background: #0f172a;
  color: #fff;
}

.tech-notif__markall {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.tech-notif__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-notif__empty {
  padding: 1rem 0.85rem;
  color: #64748b;
  font-size: 0.86rem;
}

.tech-notif__item {
  border-bottom: 1px solid #f1f5f9;
}

.tech-notif__item.is-unread {
  background: rgba(220, 38, 38, 0.05);
}

.tech-notif__link {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
}

.tech-notif__item-title {
  font-size: 0.82rem;
  font-weight: 800;
}

.tech-notif__item-body {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
}

.tech-notif__item-time {
  font-size: 0.68rem;
  color: #94a3b8;
}

.mech-card--or {
  position: relative;
}

.mech-card--or.is-new-assignment {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.28);
}

.tech-new-badge {
  pointer-events: none;
}

.rx-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
}

.rx-summary-chip i {
  color: #dc2626;
}

html.rx-modal-open,
html.rx-modal-open body {
  overflow: hidden;
}

.rx-modal {
  border: 0;
  padding: 0;
  max-width: min(640px, calc(100vw - 1rem));
  width: 100%;
  max-height: min(92vh, 900px);
  border-radius: 1rem;
  background: transparent;
  color: #0f172a;
}

.rx-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.rx-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 900px);
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.rx-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background: #0f172a;
  color: #fff;
}

.rx-modal__kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.rx-modal__head h2 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  color: #fff;
}

.rx-modal__hint {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.rx-modal__body .rx-modal__hint {
  color: #64748b;
}

.rx-modal__close {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.rx-modal__body {
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.rx-modal__grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .rx-modal__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rx-modal__body label,
.rx-modal__accessories {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.rx-modal__body label > span,
.rx-modal__accessories legend,
.rx-modal__photos h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.rx-modal__body input,
.rx-modal__body select,
.rx-modal__body textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  font: inherit;
  color: #0f172a;
}

.rx-modal__body input:focus,
.rx-modal__body select:focus,
.rx-modal__body textarea:focus {
  outline: 2px solid #dc2626;
  outline-offset: 1px;
  background: #fff;
}

.rx-modal__accessories {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 0.85rem;
  padding: 0.75rem;
}

.rx-modal__checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.rx-modal__checks label,
.rx-modal__checkline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem;
}

.rx-modal__checks input,
.rx-modal__checkline input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #dc2626;
}

.rx-modal__photos {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.85rem;
}

.rx-modal__thumbs {
  margin-top: 0.75rem;
}

.rx-modal__assign {
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: #f8fafc;
}

.rx-modal__assign.is-focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.rx-modal__assign-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.rx-modal__assign select {
  width: 100%;
  min-height: 2.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  padding: 0.45rem 0.7rem;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
}

.rx-modal__status {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.rx-modal__status.is-ok {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.rx-modal__status.is-err {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.rx-modal__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.85rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  position: sticky;
  bottom: 0;
}

@media (min-width: 560px) {
  .rx-modal__foot {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rx-btn {
  min-height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
}

.rx-btn--navy {
  background: #0f172a;
  color: #fff;
}

.rx-btn--red {
  background: #dc2626;
  color: #fff;
}

.rx-btn--ghost {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
}

.rx-btn i {
  color: inherit;
}

.rx-btn--navy i,
.rx-btn--red i {
  opacity: 0.95;
}

.staff-access--magasinier {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.staff-access--caissier {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.staff-access--custom {
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
}

.staff-access-denied {
  margin: 0 0 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.08);
  color: #0f172a;
}

.staff-access-denied p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.staff-hr__danger {
  color: var(--verman-red, #e63946) !important;
}

.staff-hr__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.staff-hr__period {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
}

.staff-hr__period label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.staff-hr__table-wrap {
  overflow-x: auto;
}

.staff-hr__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 40rem;
}

.staff-hr__table th,
.staff-hr__table td {
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid rgba(10, 25, 47, 0.08);
  text-align: left;
  font-size: 0.9rem;
}

.staff-hr__table th {
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.staff-hr__table tfoot th {
  color: var(--verman-blue-dark, #0a192f);
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
}

.staff-hr__logs {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.staff-hr__logs li {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.5fr 0.7fr 1.4fr;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}

@media (min-width: 720px) {
  .staff-hr__grid {
    grid-template-columns: 1fr 1fr;
  }

  .staff-hr__kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .staff-hr__logs li {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .staff-hr__kpis {
    grid-template-columns: 1fr;
  }

  .staff-hr__member dl {
    grid-template-columns: 1fr;
  }

  .staff-hr__toggle {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .staff-hr__accordion,
  .staff-hr__toggle {
    transition: none;
  }

  .staff-hr__toggle:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .gx-stock-form,
  .gx-team-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .gx-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .gx-table,
  .gx-table tbody {
    display: block;
  }

  .gx-table tr {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    padding: 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.95rem;
    background: #fff;
  }

  .gx-table tr.is-low-stock {
    background: #fff7ed;
    box-shadow: inset 3px 0 0 #e63946;
  }

  .gx-table td {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .gx-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .gx-table td.gx-cell-actions::before {
    content: none;
  }

  .gx-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .gx-iconbtn,
  .gx-form .btn,
  .gx-qty .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .gx-stock-form,
  .gx-team-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .garage-cockpit .status-pill--ok,
  .gx-filters a,
  .gx-iconbtn,
  .wo-reveal,
  .wo-create .wo-option {
    animation: none;
    transition: none;
  }
}

a.garage-kpi {
  color: inherit;
  text-decoration: none;
}

a.garage-kpi:hover {
  border-color: rgba(10, 25, 47, 0.28);
}

.cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.cockpit-bars {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.cockpit-bar {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 2rem;
  gap: 0.7rem;
  align-items: center;
}

.cockpit-bar span {
  color: #0a192f;
  font-size: 0.92rem;
  font-weight: 650;
}

.cockpit-bar__track {
  display: block;
  height: 0.55rem;
  overflow: hidden;
  background: rgba(10, 25, 47, 0.08);
  border-radius: 999px;
}

.cockpit-bar__fill {
  display: block;
  height: 100%;
  background: #0a192f;
  border-radius: inherit;
}

.cockpit-bar--progress .cockpit-bar__fill {
  background: #1b4965;
}

.cockpit-bar--invoiced .cockpit-bar__fill {
  background: #e63946;
}

.cockpit-create {
  margin-top: 0.85rem;
}

.cockpit-links {
  display: grid;
  margin-top: 0.35rem;
}

.cockpit-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 0;
  color: #0a192f;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 25, 47, 0.08);
}

.cockpit-links a:hover {
  color: #e63946;
}

.gx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.gx-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(10, 25, 47, 0.06);
  color: #0a192f;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gx-badge--insure {
  background: rgba(27, 73, 101, 0.12);
  color: #1b4965;
}

.gx-badge--reception {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.22);
}

.gx-row--reception td {
  background: rgba(15, 23, 42, 0.02);
}

.gx-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.gx-tech-badge .gx-ico {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  color: #dc2626;
}

.gx-tech-badge > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gx-tech-empty {
  color: #94a3b8;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 500;
}

.wo-insurance {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
  padding: 0.95rem;
  background: rgba(10, 25, 47, 0.03);
  border: 1px solid rgba(10, 25, 47, 0.1);
  border-radius: 12px;
}

.wo-reveal {
  display: grid;
  grid-template-rows: 0fr;
  margin-bottom: 0;
  transition: grid-template-rows 0.32s ease, margin-bottom 0.32s ease;
}

.wo-reveal.is-open {
  grid-template-rows: 1fr;
  margin-bottom: 0.95rem;
}

.wo-reveal.is-instant {
  transition: none;
}

.wo-reveal__inner {
  min-height: 0;
  overflow: hidden;
}

.wo-reveal .wo-card {
  margin-bottom: 0;
}

.wo-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.wo-photos li {
  display: grid;
  gap: 0.35rem;
}

.wo-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(10, 25, 47, 0.04);
  border-radius: 12px;
}

.wo-photos span,
.letterhead__insurance p {
  color: #5c6b7a;
  font-size: 0.82rem;
}

.wo-photo-board {
  margin-bottom: 1rem;
}

.letterhead__insurance {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(10, 25, 47, 0.12);
  border-radius: 8px;
}

.letterhead__insurance h2 {
  margin: 0 0 0.25rem;
  color: #0a192f;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .cockpit-grid,
  .cockpit-bar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wo-reveal,
  .wo-create .wo-option,
  .wo-express__panel,
  .wo-express__card,
  .wo-express__item {
    transition: none;
  }
}

.wo-job-field {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.wo-job-field > label {
  flex: 1 1 16rem;
  margin: 0;
}

.wo-express-open {
  min-height: 2.75rem;
}

dialog.wo-express:not([open]) {
  display: none;
}

dialog.wo-express[open] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: hidden;
  color: #0a192f;
}

dialog.wo-express::backdrop {
  background: rgba(10, 25, 47, 0.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.wo-express__panel {
  display: flex;
  flex-direction: column;
  width: min(68rem, 100%);
  max-height: min(92vh, 92dvh);
  min-height: 0;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(10, 25, 47, 0.28);
  overflow: hidden;
}

.wo-express__head,
.wo-express__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
}

.wo-express__head {
  border-bottom: 1px solid #e5e7eb;
}

.wo-express__head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.wo-express__head p,
.wo-express__foot p {
  margin: 0.3rem 0 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.wo-express__close {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #f4f6f8;
  color: #0a192f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wo-express__close:hover,
.wo-express__close:focus-visible {
  background: rgba(10, 25, 47, 0.08);
}

.wo-express__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.15rem 1.15rem;
}

.wo-express__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.wo-express__card {
  margin: 0;
  padding: 0.85rem 0.9rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wo-express__card:hover {
  border-color: rgba(10, 25, 47, 0.28);
}

.wo-express__card:has(.is-on) {
  border-color: #0a192f;
  box-shadow: inset 0 0 0 1px #0a192f;
}

.wo-express__card h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.3;
}

.wo-express__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.wo-express__card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wo-express__service {
  padding: 0.55rem 0;
  border-top: 1px solid #f3f4f6;
}

.wo-express__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.wo-express__item input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: #0a192f;
  flex: 0 0 auto;
}

.wo-express__name {
  flex: 1 1 auto;
  line-height: 1.35;
}

.wo-express__badge {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(10, 25, 47, 0.08);
  color: #0a192f;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.wo-express__service.is-on .wo-express__name {
  font-weight: 600;
}

.wo-express__price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0 1.6rem;
  color: #4b5563;
  font-size: 0.82rem;
}

.wo-express__price input {
  width: 7.5rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  color: #0a192f;
  font: inherit;
}

.wo-express__price input:focus {
  outline: none;
  border-color: #0a192f;
  box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.12);
}

.wo-express__price em {
  font-style: normal;
  font-weight: 700;
}

.wo-express__foot {
  align-items: center;
  border-top: 1px solid #e5e7eb;
}

.wo-express__foot p {
  flex: 1 1 12rem;
  margin: 0;
  min-height: 1.2rem;
}

.wo-express__foot .btn {
  min-height: 2.75rem;
}

@media (max-width: 960px) {
  .wo-express__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  dialog.wo-express[open] {
    padding: 0.5rem;
  }

  .wo-express__grid {
    grid-template-columns: 1fr;
  }

  .wo-express__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .wo-express__foot .btn {
    width: 100%;
  }
}

.auth-form .auth-station {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  margin: 0.2rem 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}

.auth-form .auth-station[hidden] {
  display: none;
}

.auth-form .auth-station input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #0a192f;
  flex: 0 0 auto;
}

.station-cockpit .garage-kpi {
  min-height: 7.5rem;
}

.station-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0 1.1rem;
}

.station-shortcut {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 5.5rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #fff;
  color: #0a192f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.station-shortcut span {
  font-size: 1.45rem;
  line-height: 1;
}

.station-shortcut strong {
  font-size: 1rem;
  line-height: 1.25;
}

.station-shortcut:hover,
.station-shortcut:focus-visible {
  border-color: #0a192f;
  box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.12);
}

.station-shortcut--all {
  background: #0a192f;
  border-color: #0a192f;
  color: #fff;
}

.station-basket {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
}

.station-basket__item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(6.5rem, 7.5rem) auto auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.station-basket__name {
  font-weight: 700;
}

.station-qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.station-qty__btn,
.station-basket__remove {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: #fff;
  color: #0a192f;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.station-basket__remove {
  color: #e63946;
  border-color: rgba(230, 57, 70, 0.35);
}

.station-qty input,
.station-basket__item input[name="service_price[]"] {
  width: 4.2rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  font: inherit;
  text-align: center;
}

.station-basket__item input[name="service_price[]"] {
  width: 100%;
  text-align: right;
}

.station-basket__item em {
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.station-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0.2rem 0 1rem;
}

.station-total strong {
  color: #0a192f;
  font-size: 1.35rem;
}

.station-total small {
  color: #4b5563;
}

.station-mobile label span::after {
  content: " *";
  color: #e63946;
}

.station-history {
  margin-top: 1rem;
}

.station-history__wrap {
  overflow-x: auto;
}

.station-history__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

.station-history__table th,
.station-history__table td {
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.station-history__table th {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: #4b5563;
}

.station-history__table td span {
  display: block;
  color: #4b5563;
  font-size: 0.85rem;
}

.station-history__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.station-history__actions .btn,
.station-void {
  margin: 0;
}

.station-history__actions .btn {
  min-height: 2.5rem;
}

@media (max-width: 720px) {
  .station-basket__item {
    grid-template-columns: 1fr auto auto;
  }

  .station-basket__name {
    grid-column: 1 / -1;
  }
}

.station-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.9rem 0;
  padding: 0;
  border: 0;
}

.station-methods legend {
  width: 100%;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.station-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  cursor: pointer;
}

.station-method:has(:checked) {
  border-color: #0a192f;
  background: rgba(10, 25, 47, 0.05);
}

.station-sale input[type="text"],
.station-sale input[type="tel"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  font: inherit;
}

.station-pay {
  min-height: 3rem;
  padding-inline: 1.3rem;
}

#station-mobile[hidden] {
  display: none;
}

.station-ticket__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.station-receipt {
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
  color: #0a192f;
  border: 1px dashed #d1d5db;
}

.station-receipt header,
.station-receipt header h1,
.station-receipt header p,
.station-receipt p {
  margin: 0;
  text-align: center;
}

.station-receipt header h1 {
  font-size: 1.15rem;
}

.station-receipt ul {
  list-style: none;
  margin: 0.8rem 0;
  padding: 0.6rem 0;
  border-top: 1px dashed #9ca3af;
  border-bottom: 1px dashed #9ca3af;
}

.station-receipt li,
.station-receipt__total {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0;
}

.station-receipt__thanks {
  margin-top: 0.8rem;
}

@media (max-width: 860px) {
  .station-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  body.ticket-a5 .station-receipt {
    width: 100%;
    max-width: none;
    border: 0;
  }

  body.ticket-thermal,
  body.ticket-thermal .section,
  body.ticket-thermal .container {
    width: 72mm !important;
    max-width: 72mm !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body.ticket-thermal .station-receipt {
    width: 100% !important;
    max-width: 72mm !important;
    margin: 0 auto !important;
    border: 0;
    padding: 2mm;
  }
}

/* ?? Cockpit flotte ?? */
.fx-cockpit {
  color: #0a192f;
}

.fx-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e63946;
}

.fx-filters a,
.fx-actions .btn,
.fx-form button,
.fx-cockpit .btn {
  min-height: 2.75rem;
}

.fx-filters a.is-on {
  background: #0a192f;
  color: #fff;
  border-color: #0a192f;
}

.fx-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fx-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 7.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(10, 25, 47, 0.08);
}

.fx-kpi strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.fx-kpi small,
.fx-kpi span {
  color: #4b5563;
}

.fx-kpi.is-alert {
  border-color: rgba(230, 57, 70, 0.45);
}

.fx-kpi.is-alert strong {
  color: #e63946;
}

.fx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.fx-filters a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #0a192f;
  text-decoration: none;
}

.fx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.fx-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.fx-form input,
.fx-form select,
.fx-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font: inherit;
  background: #fff;
}

.fx-form textarea {
  min-height: 5rem;
}

.fx-form input:focus,
.fx-form select:focus,
.fx-form textarea:focus {
  outline: 2px solid #0a192f;
  outline-offset: 1px;
}

.fx-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eef2f6;
  font-size: 0.82rem;
  font-weight: 700;
}

.fx-badge.is-in_service { background: #e8f6ee; color: #146c43; }
.fx-badge.is-on_mission { background: #e7eef8; color: #0a192f; }
.fx-badge.is-in_maintenance { background: #fff4e8; color: #9a4d12; }
.fx-badge.is-immobilized,
.fx-badge.is-doc-red {
  background: #dc2626;
  color: #fff;
  border: 1px solid #b91c1c;
  font-weight: 800;
}
.fx-badge.is-doc-orange {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
  font-weight: 700;
}
.fx-badge.is-doc-green {
  background: #e8f6ee;
  color: #146c43;
  border: 1px solid transparent;
}
.fx-badge.is-doc-none {
  background: #eef2f6;
  color: #4b5563;
  border: 1px solid transparent;
}
.fx-badge.is-doc-soon {
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.15);
}
.fx-badge.is-doc-critical {
  animation: fx-doc-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}
.fx-row-soon td:first-child {
  box-shadow: inset 3px 0 0 #f97316;
}
.fx-row-critical td:first-child {
  box-shadow: inset 3px 0 0 #dc2626;
}
@keyframes fx-doc-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.88; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-badge.is-doc-critical { animation: none; }
}

.fx-docs,
.fx-history,
.fx-tco {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.fx-docs li,
.fx-history li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: center;
}

.fx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Modale véhicule flotte */
.fx-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fx-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fx-modal__panel {
  position: relative;
  z-index: 1;
  width: min(44rem, 100%);
  max-height: min(92vh, 92dvh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.fx-modal__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(92vh, 92dvh);
  margin: 0;
  gap: 0;
}

.fx-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex: 0 0 auto;
  padding: 1.1rem 1.25rem 0.5rem;
}

.fx-modal__head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #0f172a;
}

.fx-modal__close {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.fx-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 1.25rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.fx-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.85rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.fx-combo__field {
  position: relative;
}

.fx-suggest {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 14rem;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.fx-suggest li {
  margin: 0;
}

.fx-suggest button {
  display: block;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.fx-suggest button:hover,
.fx-suggest button:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.fx-suggest__hint {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

@media (max-width: 720px) {
  .fx-modal {
    padding: 0;
    align-items: stretch;
  }

  .fx-modal__panel {
    width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

.fx-tco__label,
.fx-legend {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.fx-tco__track {
  display: flex;
  height: 0.7rem;
  min-width: 2rem;
  margin-top: 0.3rem;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f6;
}

.fx-tco__fuel { background: #0a192f; }
.fx-tco__maint { background: #e63946; }
.fx-tco__ins { background: #c45c26; }

.fx-legend {
  justify-content: flex-start;
  gap: 1rem;
  color: #4b5563;
  font-size: 0.85rem;
}

.fx-legend span::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 2px;
  vertical-align: -0.05rem;
}

.fx-legend .is-fuel::before { background: #0a192f; }
.fx-legend .is-maint::before { background: #e63946; }
.fx-legend .is-ins::before { background: #c45c26; }

.fx-live {
  margin: 0;
  font-weight: 700;
}

.fx-live.is-green { color: #146c43; }
.fx-live.is-orange { color: #9a4d12; }
.fx-live.is-red { color: #e63946; }

.fx-empty {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.fx-empty p {
  margin: 0;
}

.fx-actions form {
  margin: 0;
}

.fx-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #fff;
}

/* Sélecteur compact type segmented control (origine intervention) */
.fx-field--compact {
  display: grid;
  gap: 0.4rem;
}

.fx-field__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink-muted, #64748b);
  letter-spacing: 0.01em;
}

.fx-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.fx-seg__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fx-seg__item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.fx-seg__item.is-active {
  border-color: color-mix(in srgb, var(--color-brand, #0b2545) 45%, #e5e7eb);
  background: color-mix(in srgb, var(--color-brand, #0b2545) 6%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-brand, #0b2545) 18%, transparent);
}

.fx-seg__input {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--verman-red, var(--color-accent, #c0392b));
}

.fx-seg__text {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-ink, #0f172a);
}

/* Ligne checkbox épurée (contrôle qualité) */
.fx-check-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  min-height: auto;
}

.fx-check-line__box {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  accent-color: var(--verman-red, var(--color-accent, #c0392b));
}

.fx-check-line__text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink, #0f172a);
}

.fx-diag-other {
  margin-top: 0.45rem;
}

.fx-diag-other__input {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--color-ink, #0f172a);
}

.fx-diag-other__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-brand, #0b2545) 40%, #e5e7eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand, #0b2545) 12%, transparent);
}

.fx-checks,
.fx-check {
  display: grid;
  gap: 0.45rem;
}

.fx-check,
.fx-checks fieldset {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(10, 25, 47, 0.08);
  border-radius: 0.9rem;
}

.fx-soc {
  height: 0.7rem;
  margin-top: 0.3rem;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f6;
}

.fx-soc span {
  display: block;
  height: 100%;
  background: #0a192f;
}

.fx-soc span.is-low {
  background: #e63946;
}

.fx-access-row {
  align-items: end;
  grid-template-columns: minmax(8rem, 1.2fr) 1fr 1fr auto;
}

.fx-driver .btn {
  width: 100%;
}

@media (max-width: 860px) {
  .fx-kpis,
  .fx-grid,
  .fx-access-row {
    grid-template-columns: 1fr;
  }
}

.stk--modern {
  --stk-navy: #0f172a;
  --stk-red: #dc2626;
}

.stk-head,
.stk-head h1 {
  color: var(--stk-navy, #0f172a);
}

.stk-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.stk-kicker {
  margin: 0 0 0.3rem;
  color: var(--stk-red, #dc2626);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stk-head p {
  margin: 0.35rem 0 0;
  max-width: 40rem;
  color: #64748b;
}

.stk-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  display: block;
}

.stk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.stk-btn:hover {
  transform: translateY(-1px);
}

.stk-btn--add {
  background: var(--stk-red, #dc2626);
  border-color: #b91c1c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.stk-btn--add:hover {
  background: #b91c1c;
}

.stk-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.stk-btn--import {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.stk-btn--import:hover {
  background: #1e293b;
  border-color: #1e293b;
}

.stk-btn--cat {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  border-radius: 0.85rem;
}

.stk-btn--cat:hover {
  background: #f8fafc;
  border-color: #0f172a;
}

.stk-import-lead {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.stk-import-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 9.5rem;
  padding: 1.25rem 1rem;
  border: 1.5px dashed rgba(15, 23, 42, 0.28);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.01)),
    #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.stk-import-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.stk-import-drop__ico {
  width: 1.75rem;
  height: 1.75rem;
  color: #dc2626;
}

.stk-import-drop strong {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  pointer-events: none;
}

.stk-import-drop small {
  color: #64748b;
  font-size: 0.8rem;
  pointer-events: none;
}

.stk-import-drop.is-drag,
.stk-import-drop.has-file {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.stk-import-reassure {
  margin: -0.35rem 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: #166534;
  font-size: 0.88rem;
  line-height: 1.45;
}

.stk-import-cols {
  margin: 1rem 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #0f172a;
  color: #fff;
}

.stk-import-cols__title {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
}

.stk-import-cols__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
}

.stk-import-cols__label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.stk-import-cols__label--req {
  color: #fca5a5;
}

.stk-import-cols ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stk-import-cols li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.stk-import-cols li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #dc2626;
}

.stk-import-cols__groups > div:last-child li::before {
  background: #64748b;
}

@media (max-width: 640px) {
  .stk-import-cols__groups {
    grid-template-columns: 1fr;
  }
}

.stk-import-template {
  width: 100%;
  margin-top: 0.25rem;
}

.stk-btn--ghost {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--stk-navy, #0f172a);
  min-height: 2.45rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.stk-btn--ghost:hover {
  background: #f1f5f9;
}

.stk-cat-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0 0.85rem;
  min-width: 0;
}

.stk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0;
}

.stk-filters--scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 0.35rem 0;
  padding: 0.35rem 0.1rem 0.55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  min-width: 0;
  flex: 1 1 auto;
}

.stk-filters--scroll::-webkit-scrollbar {
  display: none;
}

.stk-filters a,
.stk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 2.4rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.8rem;
  padding: 0.4rem 0.85rem;
  color: #475569;
  text-decoration: none;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stk-chip .stk-ico,
.stk-chip svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.stk-filters a.is-active,
.stk-chip.is-active {
  background: var(--stk-navy, #0f172a);
  color: #fff;
  border-color: var(--stk-navy, #0f172a);
  box-shadow: inset 0 -2px 0 var(--stk-red, #dc2626);
}

.stk-count {
  color: var(--stk-navy, #0f172a);
  margin: 0 0 0.85rem;
}

.stk-cards {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.stk-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stk-card--low {
  border-color: rgba(220, 38, 38, 0.28);
}

.stk-card--out {
  border-color: rgba(220, 38, 38, 0.45);
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}

.stk-card__main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

.stk-card__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.stk-card__copy h3 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--stk-navy, #0f172a);
}

.stk-card__ref {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.stk-card__ref strong {
  color: var(--stk-navy, #0f172a);
  letter-spacing: 0.02em;
}

.stk-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.stk-type,
.stk-qty-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.stk-type--new {
  background: rgba(15, 23, 42, 0.08);
  color: var(--stk-navy, #0f172a);
}

.stk-type--used {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.stk-type--refurb {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.stk-qty-pill {
  background: #f1f5f9;
  color: #334155;
}

.stk-qty-pill.is-low,
.stk-qty-pill.is-out {
  background: rgba(220, 38, 38, 0.12);
  color: var(--stk-red, #dc2626);
}

.stk-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.stk-card__price {
  display: grid;
  gap: 0.1rem;
}

.stk-card__price span {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stk-card__price strong {
  color: var(--stk-navy, #0f172a);
  font-size: 1rem;
}

.stk-card__price small {
  color: #64748b;
  font-size: 0.8rem;
}

.stk-cat-lead {
  margin: 0 0 0.85rem;
  color: #64748b;
}

.stk-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 12px;
}

.stk-table-wrap--desktop {
  display: none;
}

@media (min-width: 900px) {
  .stk-cards {
    display: none;
  }

  .stk-table-wrap--desktop {
    display: block;
  }

  .stk-cat-bar {
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .stk-head {
    flex-direction: column;
    align-items: stretch;
  }

  .stk-head__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stk-btn--add,
  .stk-btn--import,
  .stk-btn--cat {
    width: 100%;
  }

  .stk-cat-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .stk-import-cols ul {
    grid-template-columns: 1fr;
  }

  .stk-card__foot .stk-actions {
    width: 100%;
  }

  .stk-card__foot .stk-btn--ghost {
    flex: 1 1 auto;
  }
}

.stk-table {
  width: 100%;
  border-collapse: collapse;
}

.stk-table th,
.stk-table td {
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
}

.stk-table th {
  color: #0a192f;
  font-size: 0.82rem;
}

.stk-table small,
.stk-moves time {
  display: block;
  color: #5c6b7a;
}

.stk-badge {
  display: inline-block;
  margin-left: 0.35rem;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.stk-badge.is-low {
  background: #fff1e4;
  color: #9a4d12;
}

.stk-badge.is-out {
  background: #fde8ea;
  color: #e63946;
}

.stk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stk-empty,
.stk-moves {
  margin-top: 1.2rem;
  background: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 12px;
  padding: 1rem;
}

.stk-moves ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stk-moves li {
  display: grid;
  grid-template-columns: 8rem 1fr auto auto;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eef2f6;
}

.stk-form.vrm-modal__form {
  width: min(44rem, 100%);
}

.stk-form .vrm-modal__actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(10, 25, 47, 0.08);
  background: #fff;
}

.stk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.stk-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
  color: var(--verman-blue-dark, #0a192f);
  font-weight: 700;
  font-size: 0.86rem;
}

.stk-field span {
  display: block;
  line-height: 1.3;
}

.stk-field input,
.stk-field select {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border, #d7dee7);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  color: #0a192f;
  font: inherit;
  font-weight: 500;
  box-sizing: border-box;
}

.stk-field input:focus,
.stk-field select:focus {
  outline: 2px solid var(--verman-red, #e63946);
  outline-offset: 1px;
  border-color: transparent;
}

.stk-margin {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm, 6px);
  background: rgba(27, 73, 101, 0.08);
  color: var(--verman-blue-dark, #0a192f);
  font-weight: 700;
}

.stk-field--full {
  grid-column: 1 / -1;
}

.stk-grid.is-restock > .stk-field,
.stk-grid.is-restock > .stk-margin,
.stk-grid.is-restock > .stk-photo {
  display: none;
}

.stk-grid.is-restock > #stk-add-wrap {
  display: flex;
}

.stk-part {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.stk-part > div {
  min-width: 0;
}

.stk-thumb {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(10, 25, 47, 0.12);
  background: #f8fafc;
}

.stk-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #64748b;
}

.stk-photo {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.stk-photo__label {
  display: block;
  color: var(--verman-blue-dark, #0a192f);
  font-weight: 700;
  font-size: 0.86rem;
}

.stk-photo__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: stretch;
}

.stk-photo__drop {
  position: relative;
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  align-content: center;
  min-height: 7.5rem;
  margin: 0;
  padding: 1rem;
  border: 1.5px dashed rgba(10, 25, 47, 0.28);
  border-radius: var(--radius-md, 12px);
  background: #f8fafc;
  color: #334155;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.stk-photo__drop:hover,
.stk-photo.is-drag .stk-photo__drop {
  border-color: var(--verman-red, #e63946);
  background: #fff5f5;
}

.stk-photo__drop strong {
  color: var(--verman-blue-dark, #0a192f);
}

.stk-photo__drop small {
  color: #64748b;
  font-weight: 500;
}

.stk-photo__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.stk-photo__drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.stk-photo__preview {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  align-content: start;
  min-width: 7.5rem;
}

.stk-photo__preview img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(10, 25, 47, 0.12);
  background: #fff;
}

@media (min-width: 720px) {
  .stk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.1rem;
  }
}

@media (max-width: 640px) {
  .stk-photo__row {
    grid-template-columns: 1fr;
  }
}

/* ?? Cockpit Patron ?? */
.boss-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.1rem;
}
.boss-kicker {
  margin: 0 0 0.25rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.boss-toolbar {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}
.boss-periods,
.boss-exports {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ?? Actions 2026 : segmented control + exports + CTA ?? */
.vrm-pay-select,
select.vrm-pay-select {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.9rem;
  background: #fff;
  color: #0F172A;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #0F172A 50%), linear-gradient(135deg, #0F172A 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% - 0.15rem), calc(100% - 0.85rem) calc(50% - 0.15rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}
.vrm-pay-select:focus {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  border-color: #DC2626;
}
.vrm-pay-ref em {
  font-style: normal;
  font-weight: 600;
  color: #64748b;
  font-size: 0.8em;
}
.station-method-select {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
}
.pos-pay-select {
  margin-bottom: 0.65rem;
}

.vrm-ico {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.vrm-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.vrm-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: min(100%, 28rem);
}
.vrm-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.vrm-seg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.vrm-seg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.vrm-seg__btn:hover,
.vrm-seg__btn:focus-visible {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}
.vrm-seg__btn.is-active {
  background: #DC2626;
  color: #fff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}
.vrm-seg__btn.is-active:hover,
.vrm-seg__btn.is-active:focus-visible {
  background: #b91c1c;
  color: #fff;
}
.vrm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.vrm-btn--export {
  background: #fff;
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.vrm-btn--export:hover,
.vrm-btn--export:focus-visible {
  background: #0F172A;
  color: #fff;
  border-color: #0F172A;
  outline: none;
}
.vrm-btn--cta {
  flex: 1 1 auto;
  min-width: min(100%, 11rem);
  background: #0F172A;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}
.vrm-btn--cta:hover,
.vrm-btn--cta:focus-visible {
  background: #DC2626;
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
  outline: none;
}
.vrm-btn--cta:active {
  transform: scale(0.99);
}
.fin-periods.vrm-seg {
  margin: 0;
}
@media (max-width: 720px) {
  .vrm-actions {
    width: 100%;
    justify-items: stretch;
  }
  .boss-toolbar.vrm-actions {
    justify-items: stretch;
  }
  .vrm-seg {
    width: 100%;
  }
  .vrm-seg__btn {
    flex: 1 1 0;
    padding-inline: 0.55rem;
    font-size: 0.8rem;
  }
  .vrm-actions__row {
    width: 100%;
  }
  .vrm-btn--cta {
    flex: 1 1 100%;
    order: -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vrm-seg__btn,
  .vrm-btn {
    transition: none;
  }
  .vrm-btn--cta:hover,
  .vrm-btn--cta:focus-visible {
    transform: none;
  }
}
.boss-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}
.boss-kpi {
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(10, 25, 47, 0.1);
  border-top: 3px solid var(--verman-blue-dark, #0a192f);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm);
}
.boss-kpi--alert { border-top-color: var(--verman-red, #e63946); }
.boss-kpi--warn { border-top-color: #f59e0b; }
.boss-kpi span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}
.boss-kpi strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  color: var(--verman-blue-dark, #0a192f);
  font-size: 1.25rem;
  line-height: 1.2;
}
.boss-kpi em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.9rem;
}
.boss-kpi em.is-up { color: #0f766e; }
.boss-kpi em.is-down { color: var(--verman-red, #e63946); }
.boss-kpi small {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
}
.boss-ops {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.boss-ops article,
.boss-ops__link {
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.boss-ops article.is-alert,
.boss-ops__link.is-alert {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fff5f5;
}
.boss-ops__link:hover,
.boss-ops__link:focus-visible {
  border-color: #0f172a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.boss-ops--finance {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.boss-ops span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}
.boss-ops strong {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: 1.15rem;
}
/* Shell garage anti-FOUC (compl?te critical.css) */
body.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8fafc;
}
body.app-shell > .site-footer { margin-top: auto; }
.layout-garage {
  --gx-navy: #0f172a;
  --gx-red: #dc2626;
  --gx-bg: #f8fafc;
  --gx-card: #fff;
  --gx-wa: #25d366;
}
.layout-garage #main.section,
.layout-garage main.garage-shell {
  flex: 1 1 auto;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding: 1.5rem 1rem;
  color: var(--gx-navy);
}
.layout-garage #main.section > .container,
.layout-garage .garage-shell__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ?? Garage 2026 design system (global, non-destructif) ?? */
.layout-garage .btn,
.layout-garage .stk-btn,
.layout-garage .lh-btn,
.layout-garage .crm-nav-btn {
  border-radius: 0.85rem;
}

.layout-garage .btn-primary {
  background: var(--gx-red);
  border-color: #b91c1c;
  color: #fff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.18);
}

.layout-garage .btn-primary:hover,
.layout-garage .btn-primary:focus-visible {
  background: #b91c1c;
  border-color: #991b1b;
}

.layout-garage .btn-ghost {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
}

.layout-garage .btn-ghost:hover {
  background: #f1f5f9;
}

.gx-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin: 0 0 1.05rem;
}

.gx-page-head__kicker {
  margin: 0 0 0.3rem;
  color: var(--gx-red, #dc2626);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gx-page-head__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--gx-navy, #0f172a);
}

.gx-page-head__lead {
  margin: 0.35rem 0 0;
  max-width: 40rem;
  color: #64748b;
  line-height: 1.45;
}

.gx-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gx-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  display: block;
}

.layout-garage .mx-nav,
.layout-garage .garage-nav {
  --mx-navy: var(--gx-navy, #0f172a);
  margin: 0 0 1.15rem;
}

.layout-garage .garage-nav__ico {
  width: 0.95rem;
  height: 0.95rem;
}

.wo-create__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.wo-create__title-ico {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--gx-red, #dc2626);
}

.layout-garage .mx-nav__chip.is-active,
.layout-garage .mx-nav__chip[aria-expanded="true"],
.layout-garage .mx-nav__link.is-active {
  background: var(--gx-navy);
  border-color: var(--gx-navy);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gx-red);
}

.layout-garage .gx-filters,
.layout-garage .vrm-seg,
.layout-garage .boss-periods,
.layout-garage .stk-filters--scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.25rem 0 0.45rem;
}

.layout-garage .gx-filters::-webkit-scrollbar,
.layout-garage .vrm-seg::-webkit-scrollbar,
.layout-garage .boss-periods::-webkit-scrollbar {
  display: none;
}

.layout-garage .gx-filters a,
.layout-garage .vrm-seg button,
.layout-garage .boss-periods a,
.layout-garage .boss-periods button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.layout-garage .gx-filters a.is-active,
.layout-garage .vrm-seg button.is-active,
.layout-garage .boss-periods a.is-active,
.layout-garage .boss-periods button.is-active {
  background: var(--gx-navy);
  border-color: var(--gx-navy);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gx-red);
}

.layout-garage .wo-card,
.layout-garage .gx-panel,
.layout-garage .fleet-head + .wo-card {
  border-radius: 1rem;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.layout-garage .fleet-head h1,
.layout-garage .crm-head h1,
.layout-garage .stk-head h1 {
  letter-spacing: -0.02em;
  color: var(--gx-navy);
}

.layout-garage .fleet-table-wrap,
.layout-garage .gx-table {
  border-radius: 1rem;
}

.layout-garage .status-pill,
.layout-garage .gx-badge,
.layout-garage .stk-badge,
.layout-garage .crm-badge {
  border-radius: 999px;
  font-weight: 700;
}

/* Devise visible dans les totaux / KPI */
.layout-garage .gx-money::after,
.layout-garage [data-currency="xaf"]::after {
  content: none;
}

/* Modales : plein ?cran mobile, popup desktop */
@media (max-width: 720px) {
  .layout-garage dialog.vrm-modal[open] {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .layout-garage .vrm-modal__form {
    width: 100%;
    max-width: none;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }

  .gx-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .gx-page-head__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gx-page-head__actions .btn,
  .gx-page-head__actions .stk-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Cartes modulaires mobiles pour listes cockpit */
@media (max-width: 820px) {
  .layout-garage .gx-table thead {
    display: none;
  }

  .layout-garage .gx-table tr {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    padding: 1rem;
    background: var(--gx-card);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .layout-garage .gx-table td {
    display: block;
    border: 0;
    padding: 0;
  }

  .layout-garage .gx-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .layout-garage .gx-cell-actions::before {
    display: none;
  }
}

/*
 * PR?SERVATION STRICTE ? bouton WhatsApp valid?.
 * Ne jamais red?finir .crm-wa ici (couleur #25D366 + ic?ne).
 */
.layout-garage .crm-wa {
  /* h?rite de la d?finition canonique plus haut dans app.css */
}
.chart-frame {
  position: relative;
  width: 100%;
  height: 18rem;
}
.chart-frame--sm { height: 14rem; }
.chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.boss-charts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.boss-chart {
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(10, 25, 47, 0.1);
  border-radius: var(--radius-md, 12px);
}
.boss-chart--wide { grid-column: 1 / -1; }
.boss-chart h2 {
  margin: 0 0 0.75rem;
  color: #0a192f;
  font-size: 1rem;
}
.boss-tables {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 0.85rem;
}
.boss-tables h2 {
  margin: 0 0 0.75rem;
  color: #0a192f;
  font-size: 1rem;
}
.boss-empty { color: #64748b; margin: 0; }
.boss-late {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.boss-late li {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #fff5f5;
  border-left: 3px solid var(--verman-red, #e63946);
  font-size: 0.86rem;
}
.boss-rank {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: boss-rank;
  display: grid;
  gap: 0.45rem;
}
.boss-rank li {
  counter-increment: boss-rank;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #f8fafc;
}
.boss-rank li::before {
  content: counter(boss-rank);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: #0a192f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.boss-rank span {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  color: #0a192f;
  font-weight: 600;
}
.boss-rank small {
  display: block;
  color: #64748b;
  font-weight: 500;
  font-size: 0.75rem;
}
.boss-rank strong {
  color: #1b4965;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .boss-kpis { grid-template-columns: 1fr 1fr; }
  .boss-ops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boss-ops--finance { grid-template-columns: 1fr 1fr; }
  .boss-tables { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .boss-charts { grid-template-columns: 1fr; }
  .boss-ops { grid-template-columns: 1fr 1fr; }
  .boss-ops--finance { grid-template-columns: 1fr; }
  .boss-late li { grid-template-columns: 1fr 1fr; }
  .boss-toolbar { justify-items: stretch; }
}
@media print {
  .mx-nav,
  .garage-nav,
  .fx-nav,
  .boss-toolbar,
  .site-header,
  .site-footer { display: none !important; }
  .boss-chart { break-inside: avoid; }
}

/* ?? Fournisseurs & Achats (mobile-first 2026) ?? */
.sup-mod {
  --sup-navy: #0f172a;
  --sup-red: #dc2626;
}

.sup-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  display: block;
}

.sup-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sup-kpi,
.sup-kpis article {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sup-kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.06);
  color: var(--sup-navy);
}

.sup-kpi.is-alert .sup-kpi__icon {
  background: rgba(220, 38, 38, 0.1);
  color: var(--sup-red);
}

.sup-kpi span,
.sup-kpis article > div > span,
.sup-kpis article > span:not(.sup-kpi__icon) {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sup-kpi strong,
.sup-kpis article strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--sup-navy);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.sup-kpi.is-alert strong {
  color: var(--sup-red);
}

.sup-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  padding: 0.35rem 0 0.55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.sup-tabs::-webkit-scrollbar {
  display: none;
}

.sup-tab,
.sup-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 2.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #475569;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sup-tab.is-active,
.sup-tabs a.is-active {
  background: var(--sup-red);
  border-color: #b91c1c;
  color: #fff;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.22);
}

.sup-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: start;
}

.sup-panel,
.suppliers-mod .wo-card {
  padding: 1.1rem 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sup-panel__head {
  margin-bottom: 0.95rem;
}

.sup-panel__head h2,
.suppliers-mod .wo-card h2 {
  margin: 0;
  color: var(--sup-navy);
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.sup-form,
.suppliers-mod .wo-form {
  display: grid;
  gap: 0.85rem;
}

.sup-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.sup-field,
.suppliers-mod .wo-form label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
}

.sup-field input,
.sup-search input,
.suppliers-mod .wo-form input,
.suppliers-mod .wo-form select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--sup-navy);
  font: inherit;
  font-weight: 500;
  box-sizing: border-box;
}

.sup-field input:focus,
.sup-search input:focus,
.suppliers-mod .wo-form input:focus,
.suppliers-mod .wo-form select:focus {
  outline: 2px solid rgba(220, 38, 38, 0.28);
  border-color: var(--sup-red);
}

.sup-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.sup-btn-save {
  min-height: 2.85rem;
}

.sup-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.sup-search input {
  flex: 1 1 auto;
}

.sup-empty {
  margin: 0;
  color: #64748b;
}

.sup-cards {
  display: grid;
  gap: 0.75rem;
}

.sup-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.95rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sup-card.has-debt {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.sup-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sup-card__top h3 {
  margin: 0;
  color: var(--sup-navy);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.sup-card__debt {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--sup-navy);
  white-space: nowrap;
}

.sup-card__debt.is-debt {
  color: var(--sup-red);
}

.sup-card__meta {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.sup-card__meta div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.45rem;
  align-items: baseline;
}

.sup-card__meta dt {
  margin: 0;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sup-card__meta dd {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  word-break: break-word;
}

.sup-card__meta a {
  color: var(--sup-navy);
  font-weight: 700;
  text-decoration: none;
}

.sup-card__meta a:hover {
  color: var(--sup-red);
}

.sup-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sup-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--sup-navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sup-card__btn:hover {
  background: #f1f5f9;
}

.sup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.sup-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
}

.sup-list--actions li.sup-list-card {
  display: grid;
  gap: 0;
  padding: 0.9rem 0.95rem 0.85rem;
}

.sup-list-card__main {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.sup-list--actions .sup-po-actions {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.sup-list strong { display: block; color: var(--sup-navy); }
.sup-list span { display: block; color: #64748b; font-size: 0.82rem; }
.sup-list em { font-style: normal; font-weight: 700; color: var(--sup-navy); white-space: nowrap; }
.sup-list em.is-debt { color: var(--sup-red); }

.sup-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--sup-navy);
  font-size: 0.72rem;
  font-weight: 700;
}

.sup-badge.is-ok { background: rgba(15, 118, 110, 0.12); color: #0f766e; }
.sup-po-lines { display: grid; gap: 0.65rem; margin-bottom: 0.75rem; }
.sup-po-line { align-items: end; }
.sup-po-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sup-po-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sup-po-detail__head h3 {
  margin: 0;
  color: #0f172a;
}

.sup-po-detail__head p {
  margin: 0.3rem 0 0;
  color: #64748b;
}

.sup-po-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.sup-po-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sup-po-btn i {
  color: #64748b;
  font-size: 0.85rem;
}

.sup-po-btn:hover,
.sup-po-btn:focus-visible {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.sup-po-btn--wa {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.sup-po-btn--wa i {
  color: #059669;
}

.sup-po-btn--wa:hover,
.sup-po-btn--wa:focus-visible {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.sup-po-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.sup-po-detail--edit {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
  .sup-po-detail__head {
    flex-direction: column;
  }

  .sup-po-actions {
    width: 100%;
  }

  .sup-po-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
.sup-table-wrap { overflow-x: auto; }
.sup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sup-table th,
.sup-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
}
.sup-table tr.is-overdue td { background: #fff5f5; }
.sup-pay-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.sup-pay-form input,
.sup-pay-form select {
  min-height: 2.3rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  max-width: 8rem;
}

@media (min-width: 720px) {
  .sup-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .sup-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sup-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
  }
}

@media (max-width: 560px) {
  .sup-card__meta div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .sup-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ?? Tr?sorerie & Rentabilit? ?? */
.fin-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}
.fin-head__eyebrow {
  margin: 0 0 0.25rem;
  color: #DC2626;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fin-periods { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.fin-kpis--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fin-kpis--secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -0.35rem;
  margin-bottom: 1.1rem;
}
.fin-kpis article,
.fin-kpi {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fin-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}
.fin-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #0F172A;
}
.fin-kpi--navy::before { background: #0F172A; }
.fin-kpi--slate::before { background: #1B4965; }
.fin-kpi--amber::before { background: #F59E0B; }
.fin-kpi--ok::before { background: #0F766E; }
.fin-kpi--alert::before { background: #DC2626; }
.fin-kpi--mini {
  padding: 0.85rem 1rem;
}
.fin-kpi__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  color: #0F172A;
}
.fin-kpi--ok .fin-kpi__icon { background: rgba(15, 118, 110, 0.12); color: #0F766E; }
.fin-kpi--alert .fin-kpi__icon { background: rgba(220, 38, 38, 0.12); color: #DC2626; }
.fin-kpi__icon svg { width: 1.15rem; height: 1.15rem; }
.fin-kpi__body { min-width: 0; flex: 1 1 auto; }
.fin-kpis article.is-ok { border-top-color: #0f766e; }
.fin-kpis article.is-alert { border-top-color: #dc2626; }
.fin-badge.is-estimate { background: rgba(15, 23, 42, 0.06); color: #0f172a; }
.fin-forecast-table tr.is-overdue td { background: #fff5f5; }
.fin-forecast-table td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.fin-kpis span,
.fin-kpi span {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
}
.fin-kpis strong,
.fin-kpi strong {
  display: block;
  margin-top: 0.28rem;
  color: #0F172A;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.fin-kpi__trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}
.fin-kpi__trend span { font-weight: 600; color: inherit; opacity: 0.8; }
.fin-kpi__trend.is-up { background: rgba(15, 118, 110, 0.12); color: #0F766E; }
.fin-kpi__trend.is-down { background: rgba(220, 38, 38, 0.12); color: #DC2626; }
.fin-kpi__trend.is-flat { background: rgba(15, 23, 42, 0.06); color: #64748b; }
.fin-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}
.fin-chart-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  padding: 1rem 1.05rem 1.1rem;
  min-width: 0;
}
.fin-chart-card--wide { min-height: 100%; }
.fin-chart-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.fin-chart-card__eyebrow {
  margin: 0 0 0.15rem;
  color: #DC2626;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fin-chart-card h2 {
  margin: 0;
  color: #0F172A;
  font-size: 1rem;
}
.fin-chart-card__period {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.fin-chart-frame {
  position: relative;
  height: 280px;
}
.fin-chart-frame--donut { height: 260px; }
.fin-pnl--modern {
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.fin-pnl__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.fin-pnl__chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  font-size: 0.72rem;
  font-weight: 800;
}
.fin-mod--viz .fin-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.85);
}
.fin-mod--viz .fin-table thead th {
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .fin-kpis,
  .fin-kpis--secondary,
  .fin-charts {
    grid-template-columns: 1fr;
  }
  .fin-chart-frame,
  .fin-chart-frame--donut { height: 240px; }
}
@media (min-width: 720px) and (max-width: 979px) {
  .fin-kpis { grid-template-columns: 1fr 1fr; }
  .fin-kpis--secondary { grid-template-columns: 1fr 1fr 1fr; }
}
.fin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.fin-tabs a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d5dde6;
  background: #fff;
  color: #0a192f;
  font-weight: 700;
  font-size: 0.86rem;
}
.fin-tabs a.is-active {
  background: #0a192f;
  border-color: #0a192f;
  color: #fff;
}
.fin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.fin-table-wrap { overflow-x: auto; }
.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.fin-table th,
.fin-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
}
.fin-pnl-table th { font-weight: 600; color: #334155; }
.fin-pnl-table td { text-align: right; font-weight: 700; color: #0a192f; white-space: nowrap; }
.fin-pnl-table tr.is-total th,
.fin-pnl-table tr.is-total td { border-top: 2px solid #0a192f; }
.fin-pnl-table tr.is-minus td { color: #9a3412; }
.fin-pnl-table tr.is-sub th,
.fin-pnl-table tr.is-sub td { background: #f8fafc; }
.fin-pnl-table tr.is-net th,
.fin-pnl-table tr.is-net td {
  font-size: 1.05rem;
  border-top: 2px solid #0a192f;
  background: #0a192f;
  color: #fff;
}
.fin-pnl-table tr.is-net.is-alert th,
.fin-pnl-table tr.is-net.is-alert td { background: var(--verman-red, #e63946); }
.fin-pnl-table tr.is-net.is-ok th,
.fin-pnl-table tr.is-net.is-ok td { background: #0f766e; }
.fin-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.fin-badge.is-fixe { background: rgba(10, 25, 47, 0.1); color: #0a192f; }
.fin-badge.is-var { background: rgba(230, 57, 70, 0.12); color: #b91c1c; }
.fin-meta { display: block; color: #64748b; font-size: 0.8rem; font-weight: 500; }
.fin-table .is-pos { color: #0f766e; font-weight: 700; }
.fin-table .is-neg { color: var(--verman-red, #e63946); font-weight: 700; }
.fin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.fin-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  background: #f8fafc;
  border-radius: 8px;
}
.fin-list strong { display: block; color: #0a192f; }
.fin-list span { display: block; color: #64748b; font-size: 0.82rem; }
.fin-list em { font-style: normal; font-weight: 700; white-space: nowrap; }
.fin-list em.is-in { color: #0f766e; }
.fin-list em.is-out { color: var(--verman-red, #e63946); }
@media (max-width: 960px) {
  .fin-layout { grid-template-columns: 1fr; }
  .fin-kpis,
  .fin-kpis--wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fin-kpis--wide { grid-template-columns: 1fr; }
}

.is-neg {
  color: #e63946;
}

.wo-stock-warn {
  display: block;
  margin-top: 0.25rem;
  color: #9a4d12;
  font-size: 0.82rem;
}

.letterhead-advance {
  display: inline-flex;
  margin: 0;
  flex: 0 0 auto;
}

.letterhead-actions .crm-wa {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .stk-moves li {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stk-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .stk-table thead {
    display: none;
  }

  .stk-table tr {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e4ebf2;
  }

  .stk-table td {
    display: block;
    border: 0;
    padding: 0.2rem 0.8rem;
  }

  .stk-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: #5c6b7a;
  }
}

.mech {
  --mech-navy: #0f172a;
  --mech-red: #dc2626;
  --mech-muted: #64748b;
  --mech-line: #e2e8f0;
  --mech-soft: #f8fafc;
  max-width: 32rem;
  margin: 0 auto;
  padding: 1rem 1rem 3.5rem;
  color: var(--mech-navy);
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(220, 38, 38, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--mech-soft) 100%);
  min-height: 100vh;
}

.mech-top {
  margin-bottom: 1rem;
}

.mech-top__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mech-top h1,
.mech-plate {
  color: var(--mech-navy);
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.mech-top p,
.mech-kicker,
.mech-car,
.mech-meta,
.mech-estimate,
.mech-progress,
.mech-specialty {
  margin: 0.35rem 0 0;
  color: var(--mech-muted);
}

.mech-kicker {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mech-red);
}

.mech-specialty {
  font-weight: 600;
  color: #334155;
}

.mech-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 700;
}

.mech-status__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.15);
}

.mech-status--is-busy {
  background: #fef2f2;
  color: var(--mech-red);
}

.mech-status--is-busy .mech-status__dot {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.mech-status--is-off {
  background: #f1f5f9;
  color: #475569;
}

.mech-status--is-off .mech-status__dot {
  box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.12);
}

.mech-leave,
.mech-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--mech-line);
  background: #fff;
  color: var(--mech-navy);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mech-back {
  margin: 0.25rem 0 0.85rem;
  padding-left: 0;
  border: 0;
  background: transparent;
}

.mech-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.25rem 0 1rem;
}

.mech-kpi {
  background: var(--mech-navy);
  color: #fff;
  border-radius: 14px;
  padding: 0.75rem 0.65rem;
  min-height: 4.6rem;
}

.mech-kpi__label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.25;
}

.mech-kpi__value {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.mech-kpi__value--money {
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.mech-punch {
  margin: 0 0 1.1rem;
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--mech-line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.mech-punch.is-running {
  border-color: var(--mech-navy);
  box-shadow: inset 4px 0 0 var(--mech-red), 0 10px 28px rgba(15, 23, 42, 0.08);
}

.mech-punch__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mech-red);
}

.mech-punch__plate {
  margin: 0.35rem 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--mech-navy);
}

.mech-punch__task {
  margin: 0.25rem 0 0;
  color: var(--mech-muted);
  font-weight: 600;
}

.mech-actions--punch {
  margin-top: 0.35rem;
}

.mech-section-title {
  margin: 0.4rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--mech-navy);
}

.mech-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.mech-card,
.mech-task {
  display: block;
  background: #fff;
  border: 1px solid var(--mech-line);
  border-radius: 16px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

.mech-card--or {
  padding: 0;
  overflow: hidden;
}

.mech-card__link {
  display: block;
  padding: 1rem 1rem 0.7rem;
  text-decoration: none;
  color: inherit;
}

.mech-card__title {
  margin: 0.45rem 0 0;
  font-weight: 700;
  color: var(--mech-navy);
}

.mech-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.mech-card__actions .mech-btn--ghost {
  grid-column: 1 / -1;
}

.mech-plate {
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.mech-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.mech-badge {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: #eef2f6;
  color: var(--mech-navy);
  font-size: 0.75rem;
  font-weight: 700;
}

.mech-badge--urgent,
.mech-badge--immobilise,
.mech-badge--en_cours {
  background: #fef2f2;
  color: var(--mech-red);
}

.mech-badge--termine {
  background: #ecfdf5;
  color: #047857;
}

.mech-badge--a_faire,
.mech-badge--pause {
  background: #f1f5f9;
  color: #475569;
}

.mech-task {
  margin-top: 0.8rem;
}

.mech-task--compact {
  margin-top: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  box-shadow: none;
}

.mech-task--compact .mech-check {
  font-size: 0.98rem;
  line-height: 1.35;
}

.mech-task--compact .mech-gallery {
  margin-top: 0.55rem;
}

.mech-task--compact.is-done .mech-check span {
  text-decoration: line-through;
  color: #64748b;
}

.mech-task__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.mech-task.is-running {
  border-color: var(--mech-navy);
  box-shadow: inset 4px 0 0 var(--mech-red);
}

.mech-task.is-done {
  opacity: 0.72;
}

.mech-task--compact.is-done {
  opacity: 1;
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: inset 3px 0 0 #dc2626;
}

.mech-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 1.05rem;
  font-weight: 700;
  flex: 1;
}

.mech-check input {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  accent-color: var(--mech-red);
}

.mech-clock {
  margin: 0.6rem 0;
  font-size: 2.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--mech-navy);
  font-weight: 800;
}

.mech-actions,
.mech-photos {
  display: grid;
  gap: 0.55rem;
}

.mech-btn {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--mech-navy);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 0.75rem;
}

.mech-btn--compact {
  min-height: 48px;
  font-size: 0.92rem;
}

.mech-btn--pause {
  background: #9a3412;
}

.mech-btn--done,
.mech-btn--send {
  background: var(--mech-red);
}

.mech-btn--ghost {
  background: #fff;
  color: var(--mech-navy);
  border: 1px solid var(--mech-line);
}

.mech-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mech-btn--send {
  width: 100%;
  margin-top: 1rem;
}

.mech-note {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.8rem 0 0.5rem;
}

.mech-note textarea,
.mech-assign-form input,
.mech-assign-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--mech-line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.mech-photos {
  margin-top: 0.7rem;
}

.mech-photos input {
  display: block;
  margin-top: 0.35rem;
}

.mech-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.mech-gallery img {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 10px;
}

.mech-empty,
.mech-wait,
.mech-handed {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--mech-line);
  border-radius: 14px;
}

.mech-handed {
  color: var(--mech-navy);
  font-weight: 700;
}

@media (max-width: 420px) {
  .mech-kpis {
    grid-template-columns: 1fr;
  }

  .mech-kpi__value--money {
    font-size: 1rem;
  }

  .mech-card__actions {
    grid-template-columns: 1fr;
  }
}

/* ?? VERMAN TECHNICIAN Espace Atelier ?? */
.mech-kpis--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mech-kpi {
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mech-kpi.is-active,
.mech-kpi:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 2px #dc2626;
}

.mech-presence {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.mech-presence__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.mech-chip {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--mech-line);
  background: #fff;
  color: var(--mech-navy);
  font-weight: 700;
  cursor: pointer;
}

.mech-chip.is-on {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.mech-chip.is-on.is-busy {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--mech-red);
}

.mech-hours-today {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--mech-line);
  color: var(--mech-muted);
  font-size: 0.88rem;
}

.mech-hours-today strong {
  color: var(--mech-navy);
  font-size: 1.05rem;
}

.mech-filter-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--mech-muted);
}

.mech-filter-hint a {
  color: var(--mech-red);
  font-weight: 700;
}

.mech-card__ref {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mech-muted);
}

.mech-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin: 0.25rem 0 0.85rem;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.mech-tabs__item {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--mech-line);
  color: var(--mech-navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.mech-tabs__item.is-active {
  background: var(--mech-navy);
  border-color: var(--mech-navy);
  color: #fff;
}

.mech-lock {
  margin: 0 0 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.mech-lock--soft {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.mech-lock strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--mech-red);
}

.mech-client,
.mech-symptoms {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--mech-muted);
  line-height: 1.35;
}

.mech-client {
  font-weight: 700;
  color: #334155;
}

.mech-card__actions--single {
  grid-template-columns: 1.2fr 1fr;
}

/* Boutons miniatures atelier (chrono + cartes OR) */
.mech-actions--punch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.mech-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.12s ease, background-color 0.12s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.mech-mini-btn:active {
  transform: translateY(1px);
}

.mech-mini-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.mech-mini-btn i {
  font-size: 0.78rem;
}

.mech-mini-btn--go,
.mech-mini-btn--navy {
  background: #0f172a;
  color: #fff;
}

.mech-mini-btn--navy:hover {
  background: #1e293b;
}

.mech-mini-btn--pause {
  background: #f59e0b;
  color: #0f172a;
}

.mech-mini-btn--done {
  background: #dc2626;
  color: #fff;
}

.mech-mini-btn--ghost {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.mech-mini-btn--ghost:hover {
  background: #e2e8f0;
}

.mech-card__actions {
  padding: 0 1rem 1rem;
}

.mech-actions--punch .mech-mini-btn {
  flex: 1 1 auto;
  min-width: 6.5rem;
}

@media (max-width: 399px) {
  .mech-actions--punch .mech-mini-btn,
  .mech-card__actions .mech-mini-btn {
    width: 100%;
  }
}

.mech-card__link--btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 1rem 1rem 0.7rem;
}

.mech-assignee-hint {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.mech-supervisor-badge {
  margin: 0.85rem 1rem 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: #0f172a;
  color: #fff;
  border-left: 4px solid #dc2626;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.mech-supervisor-badge--chef {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-left-color: #f8fafc;
}

.mech-supervisor-badge__tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mech-supervisor-badge p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  line-height: 1.35;
}

.or-modal-body .mech-supervisor-badge {
  margin: 0.75rem 0 0;
}

.mech-assign {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.15rem 1rem 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #fff;
}

.mech-assign span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.mech-assign__select {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  accent-color: #dc2626;
}

.mech-assign__select:focus {
  outline: 2px solid #dc2626;
  outline-offset: 1px;
}

.mech-assign--modal {
  margin: 0.75rem 0 0;
}

html.or-modal-open,
html.or-modal-open body {
  overflow: hidden;
}

.or-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(15, 23, 42, 0.62);
  padding: 0;
}

.or-modal-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 40rem;
  height: 100%;
  max-height: 100%;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.28);
}

.or-modal-sheet__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
  flex-shrink: 0;
}

.or-modal-sheet__kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fca5a5;
}

.or-modal-sheet__title {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.or-modal-close {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.or-modal-sheet__body {
  position: relative;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 0.85rem 2.5rem;
  /* Laisse les dropdowns (stock atelier) peindre au-dessus du contenu scroll? */
  isolation: isolate;
}

.or-modal-loading {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 12rem;
  color: #64748b;
  font-weight: 700;
}

.or-modal-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 3px solid #e2e8f0;
  border-top-color: #dc2626;
  animation: or-spin 0.7s linear infinite;
}

@keyframes or-spin {
  to { transform: rotate(360deg); }
}

.or-modal-body__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.or-modal-body__ref {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.or-modal-body__plate {
  margin: 0.2rem 0 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
}

.or-modal-body__car {
  margin: 0.15rem 0 0;
  color: #64748b;
  font-weight: 600;
}

.or-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  overflow-x: auto;
  margin: 0 0 0.85rem;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.or-modal-tabs__btn {
  flex: 1 1 auto;
  min-height: 44px;
  min-width: calc(50% - 0.35rem);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.or-modal-tabs__btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.or-modal-panel {
  display: grid;
  gap: 0.75rem;
  overflow: visible;
}

[x-cloak] {
  display: none !important;
}

@media (min-width: 768px) {
  .or-modal-overlay {
    align-items: center;
    padding: 1.25rem;
  }

  .or-modal-sheet {
    height: min(92vh, 920px);
    border-radius: 1.25rem;
    /* Pas d'overflow:hidden global : il coupait le dropdown stock atelier.
       Le clip arrondi est assur? par le body scrollable + coins de la sheet. */
    overflow: visible;
  }

  .or-modal-sheet__body {
    border-radius: 0 0 1.25rem 1.25rem;
  }
}

.mech-block {
  margin: 0 0 0.9rem;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid var(--mech-line);
  border-radius: 16px;
}

.mech-block h2,
.mech-block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--mech-navy);
}

.mech-dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.mech-dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.mech-dl dt {
  margin: 0;
  color: var(--mech-muted);
}

.mech-dl dd {
  margin: 0;
  font-weight: 700;
  color: var(--mech-navy);
}

.mech-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.mech-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.mech-plain-list li {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--mech-soft);
}

.mech-plain-list small {
  display: block;
  color: var(--mech-muted);
}

.mech-muted {
  color: var(--mech-muted);
  margin: 0;
}

.mech-subtabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.mech-subtabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--mech-line);
  background: #fff;
  color: var(--mech-navy);
  font-weight: 700;
  font-size: 0.8rem;
}

.mech-subtabs button.is-active {
  background: var(--mech-red);
  border-color: var(--mech-red);
  color: #fff;
}

.mech-form,
.mech-inline-form {
  display: grid;
  gap: 0.65rem;
}

.mech-form label,
.mech-inline-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mech-navy);
}

.mech-form input,
.mech-form textarea,
.mech-form select,
.mech-inline-form input,
.mech-inline-form select,
.mech-chat__form textarea,
.mech-ai-prompt {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--mech-line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}

.mech-form.is-hidden {
  display: none;
}

.mech-inline-form {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.mech-quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.mech-quick-row--compact {
  margin-top: 0.65rem;
  gap: 0.4rem;
}

.mech-quick-row--compact .mech-btn--compact {
  min-height: 2.4rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  border-radius: 0.7rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
}

.mech-quick-row--compact .mech-btn--compact:hover,
.mech-quick-row--compact .mech-btn--compact:focus-visible {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

@media (max-width: 420px) {
  .mech-quick-row--compact {
    grid-template-columns: 1fr;
  }
}

.mech-checklist {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--mech-line);
}

.mech-extra {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  margin-bottom: 0.45rem;
}

/* Stock atelier ? dropdown suggestions (au-dessus du contenu de la modale OR) */
.mech-block--parts-search {
  position: relative;
  overflow: visible;
  z-index: 30;
}

.mech-parts-search {
  position: relative;
  z-index: 40;
}

.mech-parts-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  z-index: 9999;
  max-height: 15rem; /* max-h-60 */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  padding: 0.35rem;
}

.mech-parts-results[hidden] {
  display: none !important;
}

.mech-parts-results .mech-part-row {
  margin-bottom: 0.35rem;
}

.mech-parts-results .mech-part-row:last-child {
  margin-bottom: 0;
}

.mech-parts-results .mech-muted {
  margin: 0;
}

.mech-parts-empty {
  padding: 0.85rem 0.75rem;
}

.mech-parts-empty [data-parts-signal],
.mech-parts-empty button {
  color: #DC2626;
  font-weight: 700;
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.25rem;
}

.mech-parts-empty [data-parts-signal]:hover,
.mech-parts-empty button:hover {
  color: #0F172A;
}

.mech-part-row--out {
  opacity: 0.92;
  background: #fff7ed;
  border-color: #fed7aa;
}

.mech-parts-out-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #92400e;
  background: #fde68a;
}

.mech-part-row,
.mech-library-card {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--mech-line);
  border-left: 3px solid #DC2626;
  background: #fff;
  margin-bottom: 0.5rem;
}

.mech-part-row strong {
  color: #0F172A;
}

.mech-library-card {
  display: block;
}

.mech-part-row p,
.mech-library-card p {
  margin: 0.2rem 0 0;
  color: var(--mech-muted);
  font-size: 0.85rem;
}

.mech-ai-out {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
}

.mech-ai-out ul {
  margin: 0;
  padding-left: 1.1rem;
}

.mech-chat__thread {
  display: grid;
  gap: 0.55rem;
  max-height: 22rem;
  overflow: auto;
  margin-bottom: 0.75rem;
}

.mech-chat__bubble {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: var(--mech-soft);
  border: 1px solid var(--mech-line);
}

.mech-chat__bubble.is-mine {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.mech-chat__bubble header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.mech-chat__bubble p {
  margin: 0;
  font-size: 0.92rem;
}

.mech-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(100vw - 1.5rem, 26rem);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.mech-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.mech-dialog .mech-form {
  padding: 1rem;
}

.mech-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mech-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 10060;
  max-width: 90vw;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--mech-navy);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

@media (min-width: 720px) {
  .mech-kpis--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mech-assign {
  margin: 0 0 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 16px;
}

.mech-assign-form,
.mech-assign-list {
  display: grid;
  gap: 0.6rem;
}

.mech-assign-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
}

.mech-assign-list span,
.mech-assign h2 {
  color: #0a192f;
}

/* ?? CRM Relances WhatsApp (mobile-first) ?? */
.crm--modern {
  --crm-navy: #0f172a;
  --crm-red: #dc2626;
  --crm-wa: #25d366;
}

.crm-kicker {
  margin: 0 0 0.35rem;
  color: var(--crm-red, #dc2626);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crm-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
  color: var(--crm-navy, #0f172a);
}

.crm-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--crm-navy, #0f172a);
}

.crm-head__lead,
.crm-head p,
.crm-count,
.crm-type {
  color: #64748b;
}

.crm-head__lead {
  margin: 0.4rem 0 0;
  max-width: 40rem;
  line-height: 1.45;
}

.crm-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.crm-nav-btn,
.crm-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.6rem 1.05rem;
  border-radius: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.crm-nav-btn:hover,
.crm-secondary:hover {
  transform: translateY(-1px);
}

.crm-nav-btn--ghost,
.crm-secondary {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: var(--crm-navy, #0f172a);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.crm-nav-btn--ghost:hover,
.crm-secondary:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.22);
}

.crm-nav-btn--primary {
  background: var(--crm-navy, #0f172a);
  border: 1px solid var(--crm-navy, #0f172a);
  color: #fff;
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.16),
    inset 0 -2px 0 var(--crm-red, #dc2626);
}

.crm-nav-btn--primary:hover {
  background: #020617;
}

.crm-ico {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  display: block;
}

.crm-ico--xs {
  width: 0.85rem;
  height: 0.85rem;
}

.crm-ico--lg {
  width: 1.85rem;
  height: 1.85rem;
  color: #94a3b8;
}

.crm-banner {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0 0 1.15rem;
  padding: 0.95rem 1.05rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: var(--crm-navy, #0f172a);
}

.crm-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.crm-banner strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
}

.crm-banner p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.4;
}

.crm-section {
  margin: 0 0 1.35rem;
}

.crm-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.crm-section__head h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  color: var(--crm-navy, #0f172a);
}

.crm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--crm-navy, #0f172a);
  font-size: 0.78rem;
  font-weight: 700;
}

.crm-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.crm-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.crm-card--sent {
  border-color: rgba(22, 163, 74, 0.22);
}

.crm-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.crm-card__who h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--crm-navy, #0f172a);
}

.crm-card__vehicle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.crm-card__vehicle strong {
  color: var(--crm-navy, #0f172a);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crm-card__phone {
  margin: 0.35rem 0 0;
  color: #94a3b8;
  font-size: 0.84rem;
}

.crm-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.crm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
}

.crm-chip--oil {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.crm-chip--inspect {
  background: rgba(15, 23, 42, 0.07);
  color: var(--crm-navy, #0f172a);
}

.crm-chip--muted {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
}

.crm-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.crm-card__actions form {
  margin: 0;
  width: 100%;
}

.crm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.crm-badge--sent {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.crm-badge--due {
  background: rgba(220, 38, 38, 0.1);
  color: var(--crm-red, #dc2626);
}

.crm-badge--planned {
  background: rgba(15, 23, 42, 0.08);
  color: var(--crm-navy, #0f172a);
}

.crm-table-wrap,
.crm-template,
.crm-empty,
.crm-logs,
.crm-section--logs .crm-log-list {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
}

.crm-table-wrap {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
}

.crm-table th,
.crm-table td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
  color: var(--crm-navy, #0f172a);
}

.crm-table small,
.crm-logs time,
.crm-log time {
  display: block;
  color: #64748b;
}

.crm-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--crm-wa, #25d366);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.crm-wa:hover {
  background: #1ebe57;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.28);
}

.crm-wa svg {
  width: 1.15rem;
  height: 1.15rem;
}

.crm-missing {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--crm-red, #dc2626);
  font-weight: 700;
}

.crm-empty,
.crm-logs,
.crm-template {
  margin-top: 0;
  padding: 1.15rem;
}

.crm-empty {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
  color: #64748b;
}

.crm-empty p {
  margin: 0;
}

.crm-log-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.35rem;
}

.crm-log {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid #eef2f6;
}

.crm-log:last-child {
  border-bottom: 0;
}

.crm-log__main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.crm-log__main strong {
  color: var(--crm-navy, #0f172a);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.crm-log__main span,
.crm-log__main em {
  color: #64748b;
  font-size: 0.86rem;
  font-style: normal;
}

.crm-log__side {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.crm-log__side time {
  font-size: 0.8rem;
  white-space: nowrap;
}

.crm-logs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.crm-logs li {
  display: grid;
  grid-template-columns: 7rem 1fr auto auto;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eef2f6;
}

.crm-template label,
.crm-preview {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.crm-template input,
.crm-template textarea {
  width: 100%;
  border: 1px solid #d5dde6;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--crm-navy, #0f172a);
}

.crm-preview {
  white-space: pre-wrap;
  background: #f7faf8;
  border-radius: 12px;
  padding: 0.8rem;
}

.crm-active {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

@media (min-width: 760px) {
  .crm-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-card__actions form,
  .crm-wa {
    width: auto;
  }
}

@media (min-width: 1100px) {
  .crm-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .crm-head {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-head-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crm-nav-btn,
  .crm-secondary {
    width: 100%;
  }

  .crm-log,
  .crm-logs li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .crm-log__side {
    justify-items: start;
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .crm-table thead {
    display: none;
  }

  .crm-table tr {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e4ebf2;
  }

  .crm-table td {
    display: block;
    border: 0;
    padding: 0.2rem 0.8rem;
  }

  .crm-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: #5c6b7a;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crm-nav-btn,
  .crm-secondary,
  .crm-wa {
    transition: none;
  }

  .crm-nav-btn:hover,
  .crm-secondary:hover,
  .crm-wa:hover {
    transform: none;
  }
}

.crm-card--manual {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: inset 3px 0 0 #dc2626;
}

.crm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.crm-modal {
  width: min(100%, 34rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
}

.crm-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.crm-modal__head h2 {
  margin: 0.15rem 0 0;
  color: #0f172a;
  font-size: 1.2rem;
}

.crm-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.65rem;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.crm-modal__close:hover {
  background: #e2e8f0;
}

.crm-modal__form {
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.crm-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.crm-picker {
  position: relative;
}

.crm-picker__list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: 14rem;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.crm-picker__item {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.crm-picker__item:hover,
.crm-picker__item:focus-visible {
  background: #f8fafc;
}

.crm-picker__item strong {
  color: #0f172a;
  font-size: 0.9rem;
}

.crm-picker__item span {
  color: #64748b;
  font-size: 0.78rem;
}

.crm-picker__selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.45rem 0 0;
  padding: 0.55rem 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  color: #0f172a;
}

[x-cloak] { display: none !important; }

/* ?? Centre de commandement flotte ?? */
.fcc-head {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: #0a192f;
}

.fcc-head h1,
.fcc-panel h2 {
  color: #0a192f;
}

.fcc-kpis,
.fcc-board {
  display: grid;
  gap: 0.8rem;
}

.fcc-kpi,
.fcc-panel {
  background: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 16px;
}

.fcc-kpi {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-left: 4px solid #1f9d55;
}

.fcc-kpi.is-watch { border-left-color: #e09f3e; }
.fcc-kpi.is-alert { border-left-color: #e63946; }

.fcc-kpi span,
.fcc-quiet,
.fcc-legend span {
  color: #5c6b7a;
}

.fcc-kpi strong {
  display: block;
  color: #0a192f;
  font-size: 1.45rem;
  line-height: 1.15;
}

.fcc-kpi small,
.fcc-flag {
  display: block;
  color: #3d4c5c;
}

.fcc-flag { color: #e63946; font-weight: 700; }

.fcc-ico {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e8f6ee;
  color: #1f9d55;
}

.fcc-kpi.is-watch .fcc-ico { background: #fff4e5; color: #9a4d12; }
.fcc-kpi.is-alert .fcc-ico { background: #fde8ea; color: #e63946; }

.fcc-ico svg { width: 1.35rem; height: 1.35rem; }

.fcc-board { margin: 0.9rem 0; }

.fcc-panel { padding: 1rem; }

.fcc-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

.fcc-chart {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
}

.fcc-donut {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.fcc-donut span {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fcc-donut strong {
  color: #0a192f;
  font-size: 1.4rem;
  line-height: 1;
}

.fcc-donut small { color: #5c6b7a; }

.fcc-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.fcc-legend li,
.fcc-filters a,
.fcc-actions a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fcc-legend li {
  justify-content: space-between;
  padding: 0.28rem 0;
  color: #0a192f;
}

.fcc-legend i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex: 0 0 0.7rem;
}

.fcc-legend span { flex: 1; }

.fcc-alerts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fcc-alerts li + li { margin-top: 0.45rem; }

.fcc-alerts a {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #f7f8fa;
  color: #0a192f;
  text-decoration: none;
}

.fcc-alerts .is-alert a { background: #fde8ea; }
.fcc-alerts .is-watch a { background: #fff4e5; }
.fcc-alerts em { color: #5c6b7a; font-style: normal; }

.fcc-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  margin-bottom: 0.9rem;
  padding-bottom: 0.2rem;
}

.fcc-filters a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  color: #0a192f;
  text-decoration: none;
  border: 1px solid #e4ebf2;
}

.fcc-filters a.is-on {
  background: #0a192f;
  color: #fff;
  border-color: #0a192f;
}

.fcc-filters b {
  font-weight: 700;
}

.fcc-table-wrap { overflow-x: auto; }

.fcc-table {
  width: 100%;
  border-collapse: collapse;
}

.fcc-table th,
.fcc-table td {
  text-align: left;
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
  color: #0a192f;
}

.fcc-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.fcc-actions a {
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f4f7fb;
  color: #0a192f;
  text-decoration: none;
  font-weight: 700;
}

.fcc-empty {
  padding: 1rem 0.2rem 0.4rem;
  color: #3d4c5c;
}

@media (max-width: 760px) {
  .fcc-table thead { display: none; }

  .fcc-table tr {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e4ebf2;
  }

  .fcc-table td {
    display: block;
    border: 0;
    padding: 0.2rem 0;
  }

  .fcc-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: #5c6b7a;
  }

  .fcc-actions a { flex: 1 1 30%; justify-content: center; }
}

@media (min-width: 760px) {
  .fcc-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .fcc-kpis { grid-template-columns: 1fr 1fr; }
  .fcc-chart { flex-direction: row; align-items: center; }
  .fcc-legend { width: auto; flex: 1; }
}

@media (min-width: 1100px) {
  .fcc-kpis { grid-template-columns: repeat(4, 1fr); }
  .fcc-board { grid-template-columns: 1fr 1fr 1.15fr; }
}

/* ===== Dossier numérique véhicule — Design Flotte 2026 ===== */
.fvp-head,
.fvp-grid,
.fvp-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.fvp-head,
.fvp-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  color: #0f172a;
}

.fvp-head {
  padding: 1.35rem 1.4rem;
  margin-bottom: 0.9rem;
}

.fvp-photo {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.fvp-photo__frame {
  flex: 0 0 auto;
}

.fvp-photo__frame img,
.fvp-photo__frame > span {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1rem;
  object-fit: cover;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 750;
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.fvp-upload-form {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.fvp-upload span {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
}

.fvp-upload input {
  display: block;
  margin-top: 0.2rem;
  max-width: 14rem;
  font-size: 0.78rem;
}

.fvp-identity .fx-kicker {
  margin: 0 0 0.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 750;
  color: #64748b;
}

.fvp-identity h1 {
  margin: 0.05rem 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  letter-spacing: 0.02em;
  font-weight: 800;
}

.fvp-identity p { margin: 0.18rem 0; color: #64748b; }
.fvp-mileage { color: #0f172a !important; }
.fvp-identity .fd26-badge { margin-top: 0.35rem; }

.fvp-head-actions,
.fvp-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.fvp-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.fvp-action__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.fvp-action--blue {
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.72);
  border-color: #bfdbfe;
}
.fvp-action--blue:hover {
  background: #dbeafe;
  color: #1e40af;
}

.fvp-action--indigo {
  color: #4338ca;
  background: rgba(238, 242, 255, 0.72);
  border-color: #c7d2fe;
}
.fvp-action--indigo:hover {
  background: #e0e7ff;
  color: #3730a3;
}

.fvp-action--emerald {
  color: #047857;
  background: rgba(236, 253, 245, 0.72);
  border-color: #a7f3d0;
}
.fvp-action--emerald:hover {
  background: #d1fae5;
  color: #065f46;
}

.fvp-action--slate {
  color: #334155;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.fvp-action--slate:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.fvp-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  margin-bottom: 0.95rem;
  padding: 0.15rem 0;
}

.fvp-tabs a {
  flex: 0 0 auto;
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  font-weight: 650;
  font-size: 0.84rem;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .03);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.fvp-tabs a:hover {
  background: #f8fafc;
  color: #0f172a;
}

.fvp-tabs a.is-on {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.fvp-grid { display: grid; gap: 0.9rem; }

.fvp-card { padding: 1.25rem 1.35rem; }
.fvp-card h2 { margin: 0 0 0.75rem; color: #0f172a; font-size: 1.02rem; }
.fvp-quiet { color: #64748b; }

.fvp-card dl { margin: 0; }
.fvp-card dl div,
.fvp-specs div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.fvp-card dt { color: #64748b; font-size: 0.86rem; }
.fvp-card dd { margin: 0; color: #0f172a; font-weight: 700; text-align: right; }

.fvp-alerts,
.fvp-list { list-style: none; margin: 0; padding: 0; }
.fvp-alerts li,
.fvp-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  color: #0f172a;
}
.fvp-alerts .is-alert strong { color: #e11d48; }
.fvp-alerts .is-watch strong { color: #b45309; }
.fvp-list em { color: #64748b; font-style: normal; }

.fvp-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 72px;
  margin-bottom: 0.8rem;
}
.fvp-bars i {
  flex: 1;
  min-width: 6px;
  border-radius: 6px 6px 0 0;
  background: #10b981;
}
.fvp-bars i.is-watch { background: #f59e0b; }
.fvp-bars i.is-alert { background: #f43f5e; }

.fvp-table-wrap { overflow-x: auto; }
.fvp-table { width: 100%; border-collapse: collapse; }
.fvp-table th,
.fvp-table td {
  text-align: left;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid #f3f4f6;
  color: #0f172a;
}

@media (max-width: 760px) {
  .fvp-table thead { display: none; }
  .fvp-table tr { display: block; padding: 0.55rem 0; border-bottom: 1px solid #e5e7eb; }
  .fvp-table td { display: block; border: 0; padding: 0.15rem 0; }
  .fvp-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: #64748b;
  }
  .fvp-head-actions { width: 100%; }
  .fvp-action { flex: 1 1 auto; justify-content: center; }
}

@media (min-width: 760px) {
  .fvp-head {
    flex-direction: row;
    align-items: center;
  }
  .fvp-identity { flex: 1; min-width: 0; }
  .fvp-head-actions {
    justify-content: flex-end;
    max-width: 22rem;
  }
  .fvp-grid { grid-template-columns: 1.1fr 0.9fr; }
  .fvp-card-head { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1100px) {
  .fvp-head-actions {
    max-width: none;
    flex-direction: column;
    align-items: stretch;
  }
  .fvp-action { justify-content: flex-start; }
}

/* ?? Analyse TCO flotte ?? */
.tco-head,
.tco-board,
.tco-chart,
.tco-switch {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tco-head h1,
.tco-panel h2 { color: #0a192f; }

.tco-threshold,
.tco-quiet,
.tco-legend span { color: #5c6b7a; }

.tco-threshold strong { color: #0a192f; }

.tco-switch,
.tco-focus select {
  display: flex;
  gap: 0.4rem;
}

.tco-switch { flex-direction: row; overflow-x: auto; }

.tco-switch a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: #0a192f;
  text-decoration: none;
  border: 1px solid #e4ebf2;
  font-weight: 700;
}

.tco-switch a.is-on {
  background: #0a192f;
  color: #fff;
  border-color: #0a192f;
}

.tco-panel {
  background: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.tco-focus select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d5dde6;
  border-radius: 12px;
  padding: 0.4rem 0.7rem;
  color: #0a192f;
  font: inherit;
}

.tco-donut {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.tco-donut span {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #0a192f;
  font-size: 0.85rem;
  padding: 0.4rem;
}

.tco-legend { list-style: none; margin: 0; padding: 0; }
.tco-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0;
  color: #0a192f;
}
.tco-legend i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}
.tco-legend span { flex: 1; }

.tco-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-height: 180px;
}
.tco-bars div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
  min-height: 160px;
}
.tco-bars i {
  display: block;
  width: 100%;
  max-width: 36px;
  border-radius: 8px 8px 0 0;
  background: #0a192f;
}
.tco-bars span,
.tco-bars b {
  font-size: 0.68rem;
  color: #5c6b7a;
  text-align: center;
}
.tco-bars b { color: #0a192f; }

.tco-table-wrap { overflow-x: auto; }
.tco-table { width: 100%; border-collapse: collapse; }
.tco-table th,
.tco-table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
  color: #0a192f;
}

.tco-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
}
.tco-badge.is-keep { background: #e8f6ee; color: #146c43; }
.tco-badge.is-watch { background: #fff4e5; color: #9a4d12; }
.tco-badge.is-sell { background: #fde8ea; color: #e63946; }

@media (max-width: 760px) {
  .tco-table thead { display: none; }
  .tco-table tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid #e4ebf2; }
  .tco-table td { display: block; border: 0; padding: 0.15rem 0; }
  .tco-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: #5c6b7a;
  }
}

@media (min-width: 900px) {
  .tco-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .tco-board { display: grid; grid-template-columns: 1fr 1fr; }
  .tco-chart { flex-direction: row; align-items: center; }
}

.ffl-head { margin-bottom: 1rem; }
.ffl-kicker {
  margin: 0 0 0.2rem;
  color: #e63946;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ffl-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.ffl-kpis article,
.ffl-card {
  background: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.ffl-kpis span,
.ffl-quiet { color: #5c6b7a; font-size: 0.85rem; }
.ffl-kpis strong {
  display: block;
  margin-top: 0.25rem;
  color: #0a192f;
  font-size: 1.15rem;
}
.ffl-kpis em { display: block; color: #0a192f; font-style: normal; font-size: 0.85rem; }
.ffl-kpis .is-alert strong { color: #e63946; }
.ffl-card { margin-bottom: 1rem; }
.ffl-card h2 { margin: 0 0 0.8rem; color: #0a192f; font-size: 1.05rem; }
.ffl-grid { display: grid; gap: 0.75rem; }
.ffl-grid label { display: flex; flex-direction: column; gap: 0.3rem; color: #0a192f; font-size: 0.88rem; }
.ffl-grid input,
.ffl-grid select {
  min-height: 44px;
  border: 1px solid #d5dee8;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  color: #0a192f;
  background: #fff;
}
.ffl-live {
  margin: 0.8rem 0;
  font-weight: 700;
}
.ffl-live.is-green { color: #146c43; }
.ffl-live.is-orange { color: #9a4d12; }
.ffl-live.is-red { color: #e63946; }
.ffl-table-wrap { overflow-x: auto; }
.ffl-table { width: 100%; border-collapse: collapse; }
.ffl-table th { text-align: left; color: #5c6b7a; font-size: 0.75rem; font-weight: 700; }
.ffl-table td, .ffl-table th { padding: 0.55rem 0.4rem; border-bottom: 1px solid #e4ebf2; }
.ffl-table a { color: #0a192f; font-weight: 700; }
.ffl-table tr.is-alert td:first-child { box-shadow: inset 3px 0 0 #e63946; }
.ffl-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.ffl-badge.is-ok { background: #e8f6ee; color: #146c43; }
.ffl-badge.is-alert { background: #fde8ea; color: #e63946; }

@media (max-width: 760px) {
  .ffl-table thead { display: none; }
  .ffl-table tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid #e4ebf2; }
  .ffl-table td { display: block; border: 0; padding: 0.15rem 0; }
  .ffl-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: #5c6b7a;
  }
  .ffl-table tr.is-alert td:first-child { box-shadow: none; }
}

@media (min-width: 800px) {
  .ffl-kpis { grid-template-columns: repeat(4, 1fr); }
  .ffl-grid { grid-template-columns: 1fr 1fr; }
}

.fai-kicker {
  margin: 0 0 0.2rem;
  color: #e63946;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fai-head { margin-bottom: 1rem; }
.fai-prompt {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #0a192f 0%, #1b2a4a 72%, #3d348b 140%);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35);
}
.fai-prompt__label { display: flex; flex-direction: column; gap: 0.35rem; color: #fff; font-weight: 700; }
.fai-prompt input {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  color: #0a192f;
  background: #fff;
}
.fai-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1rem; }
.fai-chips form { margin: 0; }
.fai-chips button {
  min-height: 40px;
  border: 1px solid #d5dee8;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: #fff;
  color: #0a192f;
  font-weight: 700;
  text-align: left;
}
.fai-turn { margin-bottom: 1rem; }
.fai-question {
  margin: 0 0 0.4rem;
  color: #5c6b7a;
  font-weight: 700;
}
.fai-answer,
.fai-clear { background: #fff; border: 1px solid #e4ebf2; border-radius: 14px; padding: 0.9rem 1rem; }
.fai-answer h2, .fai-answer h3 { margin: 0.8rem 0 0.4rem; color: #0a192f; font-size: 1rem; }
.fai-answer h2 { margin-top: 0; }
.fai-quiet { color: #5c6b7a; }
.fai-table-wrap { overflow-x: auto; }
.fai-table { width: 100%; border-collapse: collapse; }
.fai-table th { text-align: left; color: #5c6b7a; font-size: 0.75rem; }
.fai-table td, .fai-table th { padding: 0.45rem 0.35rem; border-bottom: 1px solid #e4ebf2; }
.fai-table a { color: #0a192f; font-weight: 700; }
.fai-clear { margin-top: 0.5rem; }

@media (max-width: 760px) {
  .fai-table thead { display: none; }
  .fai-table tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid #e4ebf2; }
  .fai-table td { display: block; border: 0; padding: 0.15rem 0; }
  .fai-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: #5c6b7a;
  }
}

@media (min-width: 800px) {
  .fai-prompt { flex-direction: row; align-items: flex-end; }
  .fai-prompt__label { flex: 1; }
}

/* ?? Catalogue intelligent pi?ces (pcat) ?? */
.pcat-head { margin-bottom: 1rem; }
.pcat-eyebrow,
.pcat-kicker {
  margin: 0 0 0.25rem;
  color: var(--verman-red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pcat-panel {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--verman-border);
  border-radius: 16px;
  background: var(--verman-white);
  box-shadow: var(--shadow-sm);
}
.pcat-panel--filters {
  position: relative;
  z-index: 30;
  overflow: visible;
}
.pcat-panel h2 {
  margin: 0 0 0.75rem;
  color: var(--verman-blue-dark);
  font-size: 1.05rem;
}
.pcat-search {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pcat-search__main {
  max-width: 100%;
}
.pcat-search label,
.pcat-cascade label,
.pcat-meta-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--verman-blue-dark);
  font-size: 0.85rem;
}
.pcat-search input,
.pcat-cascade select,
.pcat-cascade .pcat-ac__wrap input,
.pcat-meta-filters select {
  min-height: 46px;
  border: 1px solid var(--verman-border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: #fff;
  color: var(--verman-text);
}
.pcat-search input:focus,
.pcat-cascade select:focus,
.pcat-cascade .pcat-ac__wrap input:focus,
.pcat-meta-filters select:focus {
  outline: 2px solid rgba(220, 38, 38, 0.28);
  border-color: #DC2626;
}
.pcat-cascade {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
.pcat-cascade legend {
  margin-bottom: 0.35rem;
  color: #0F172A;
  font-weight: 800;
}
.pcat-cascade__hint {
  margin: 0 0 0.65rem;
  color: var(--verman-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.pcat-cascade__type {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
}
.pcat-cascade__type select,
.pcat-cascade__type input {
  min-height: 46px;
  border: 1px solid var(--verman-border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: #fff;
  color: #0F172A;
  font-weight: 600;
}
.pcat-cascade__type select:focus,
.pcat-cascade__type input:focus {
  outline: 2px solid rgba(220, 38, 38, 0.28);
  border-color: #DC2626;
}
.pcat-cascade__grid,
.pcat-meta-filters {
  display: grid;
  gap: 0.7rem;
}
.pcat-ac {
  min-width: 0;
}
.pcat-ac__wrap {
  position: relative;
  display: grid;
}
.pcat-ac__wrap input {
  width: 100%;
  padding-right: 2.35rem;
}
.pcat-ac__wrap input:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}
.pcat-ac__toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0F172A;
  cursor: pointer;
}
.pcat-ac__toggle:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #DC2626;
}
.pcat-ac__list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.pcat-ac__list[hidden] {
  display: none !important;
}
.pcat-ac__list [role="option"] {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: #0F172A;
  font-weight: 600;
  cursor: pointer;
}
.pcat-ac__list [role="option"] mark {
  background: transparent;
  color: #DC2626;
  font-weight: 800;
  padding: 0;
}
.pcat-ac__list [role="option"]:hover,
.pcat-ac__list [role="option"][aria-selected="true"] {
  background: #0F172A;
  color: #fff;
}
.pcat-ac__list [role="option"]:hover mark,
.pcat-ac__list [role="option"][aria-selected="true"] mark {
  color: #fca5a5;
}
.pcat-ac__empty {
  padding: 0.65rem 0.7rem;
  color: var(--verman-muted);
  font-weight: 500;
  font-size: 0.85rem;
}
.pcat-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem !important;
  min-height: 46px;
}
.pcat-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--verman-red); }
.pcat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}
.pcat-count {
  margin: 0.4rem 0 0.9rem;
  color: var(--verman-muted);
  font-weight: 600;
}
.pcat-count strong { color: var(--verman-blue-dark); }
.pcat-grid {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}
.pcat-grid--compact { margin-top: 0.75rem; }
.pcat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  gap: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.pcat-card:hover {
  border-color: rgba(220, 38, 38, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
.pcat-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-height: 0;
}
.pcat-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.pcat-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--verman-blue-dark);
  line-height: 1.25;
}
.pcat-card h3 a:hover { color: var(--verman-red); }
.pcat-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 0.35rem 0 0;
  color: var(--verman-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.pcat-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.pcat-badge--ok { background: rgba(27, 73, 101, 0.12); color: var(--verman-blue-royal); }
.pcat-badge--low { background: rgba(196, 92, 38, 0.14); color: #9a4b1c; }
.pcat-badge--out { background: rgba(230, 57, 70, 0.12); color: var(--verman-red); }
.pcat-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.pcat-prices--detail { grid-template-columns: 1fr; }
.pcat-prices > div {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(10, 25, 47, 0.04);
}
.pcat-prices span {
  display: block;
  color: var(--verman-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pcat-prices strong {
  color: var(--verman-blue-dark);
  font-size: 0.98rem;
}
.pcat-vehicles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pcat-vehicles li {
  color: var(--verman-text);
  font-size: 0.84rem;
  padding-left: 0.7rem;
  position: relative;
}
.pcat-vehicles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--verman-red);
}
.pcat-more { color: var(--verman-muted) !important; font-weight: 700; }
.pcat-quiet { margin: 0; color: var(--verman-muted); font-size: 0.86rem; }
.pcat-loc { margin: 0; color: var(--verman-blue-royal); font-size: 0.82rem; font-weight: 700; }
.pcat-link {
  color: #dc2626;
  font-weight: 700;
  font-size: 0.6875rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.pcat-link:hover,
.pcat-link:focus-visible {
  text-decoration: underline;
  outline: none;
}
.pcat-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}
.pcat-add-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
  flex-shrink: 0;
  min-height: 0;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.pcat-add-pos:hover,
.pcat-add-pos:focus-visible {
  background: #dc2626;
  outline: none;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.22);
}
.pcat-add-pos:disabled,
.pcat-add-pos.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  background: #0f172a;
}
.pcat-add-pos__ico {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
}
.pcat-toast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #0f172a;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}
.pcat-toast a {
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}
.pcat-toast a:hover {
  background: #b91c1c;
}
.pcat-toast.is-error {
  background: #7f1d1d;
  border-color: rgba(220, 38, 38, 0.35);
}
.pcat-toast[hidden] {
  display: none !important;
}
.pcat-empty {
  padding: 1.4rem 1rem;
  border: 1px dashed var(--verman-border);
  border-radius: 16px;
  text-align: center;
  background: rgba(255,255,255,0.7);
  color: var(--verman-muted);
}
[data-pcat-results].is-loading { opacity: 0.55; transition: opacity 0.2s var(--ease); }
.pcat-back { margin: 0 0 0.75rem; }
.pcat-back a { color: var(--verman-blue-royal); font-weight: 700; }
.pcat-detail__hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pcat-detail__stock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.75rem;
}
.pcat-detail__grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.pcat-gallery {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.pcat-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--verman-border);
  background: #0f172a;
  aspect-ratio: 4 / 3;
}
.pcat-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcat-gallery--viewer {
  grid-template-columns: 1fr;
}
.pcat-gallery__main {
  min-height: 180px;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
}
.pcat-gallery__main img {
  object-fit: contain;
  background: #0f172a;
}
.pcat-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.pcat-gallery__thumb {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #0f172a;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.pcat-gallery__thumb.is-active,
.pcat-gallery__thumb:hover {
  border-color: #dc2626;
}
.pcat-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcat-gallery--empty {
  min-height: 160px;
  place-items: center;
  display: grid;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.25);
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  font-weight: 700;
}
.pcat-dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.pcat-dl > div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #eef2f6;
}
.pcat-dl dt {
  color: var(--verman-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pcat-dl dd {
  margin: 0;
  color: var(--verman-blue-dark);
  font-weight: 800;
  font-size: 1rem;
  word-break: break-word;
}
.pcat-table-wrap { overflow-x: auto; }
.pcat-table {
  width: 100%;
  border-collapse: collapse;
}
.pcat-table th {
  text-align: left;
  color: var(--verman-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pcat-table th,
.pcat-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
}
@media (max-width: 760px) {
  .pcat-table thead { display: none; }
  .pcat-table tr {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eef2f6;
  }
  .pcat-table td {
    display: block;
    border: 0;
    padding: 0.15rem 0;
  }
  .pcat-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: var(--verman-muted);
    font-weight: 700;
  }
}
@media (min-width: 720px) {
  .pcat-search { grid-template-columns: 1fr; }
  .pcat-cascade__type { grid-template-columns: 1.2fr 1fr; max-width: 720px; }
  .pcat-cascade__grid { grid-template-columns: repeat(3, 1fr); }
  .pcat-meta-filters { grid-template-columns: 1fr 1fr auto auto; align-items: end; }
  .pcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcat-prices--detail { grid-template-columns: repeat(3, 1fr); }
  .pcat-detail__hero { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .pcat-detail__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .pcat-cascade__grid { grid-template-columns: repeat(5, 1fr); }
  .pcat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ?? POS Pi?ces (caisse tactile) ?? */
.pos { padding-bottom: 1.5rem; }
.pos-shell { width: min(1400px, calc(100% - 1rem)); margin-inline: auto; }
.pos-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.pos-topbar--page { margin-bottom: 1rem; }
.pos-topbar h1 { margin: 0; color: var(--verman-blue-dark); font-size: clamp(1.25rem, 2vw, 1.6rem); }
.pos-eyebrow {
  margin: 0 0 0.15rem;
  color: var(--verman-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pos-session-badge {
  margin: 0.25rem 0 0;
  color: var(--verman-blue-royal);
  font-weight: 700;
  font-size: 0.86rem;
}
.pos-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.pos-layout {
  display: grid;
  gap: 0.85rem;
}
.pos-left,
.pos-right { min-width: 0; }
.pos-searchbar {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.pos-search-wrap {
  position: relative;
  min-width: 0;
  z-index: 20;
}
.pos-search input,
.pos-searchbar select,
.pos-field input,
.pos-field select,
.pos-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--verman-border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: #fff;
  color: var(--verman-text);
  font: inherit;
}
.pos-search input:focus,
.pos-searchbar select:focus,
.pos-field input:focus,
.pos-field select:focus {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  border-color: #dc2626;
}

/* Autocomplete live POS */
.pos-suggest {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 9999;
  max-height: min(22rem, 58vh);
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}
.pos-suggest__empty {
  margin: 0;
  padding: 0.85rem 0.75rem;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}
.pos-suggest__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.5rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.12s ease;
}
.pos-suggest__item:hover,
.pos-suggest__item:focus-visible,
.pos-suggest__item.is-active {
  background: rgba(15, 23, 42, 0.05);
  outline: none;
}
.pos-suggest__item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pos-suggest__thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}
.pos-suggest__thumb--empty {
  display: inline-block;
  background:
    linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.pos-suggest__body {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}
.pos-suggest__body strong {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pos-suggest__ref {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pos-suggest__meta {
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  flex-shrink: 0;
}
.pos-suggest__price {
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.pos-hint {
  margin: 0 0 0.55rem;
  color: var(--verman-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.pos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  max-height: min(70vh, 820px);
  overflow: auto;
  padding-right: 0.15rem;
}
.pos-tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  min-height: 108px;
  padding: 0.75rem;
  border: 1px solid var(--verman-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  color: var(--verman-blue-dark);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pos-tile:hover,
.pos-tile:focus-visible {
  border-color: var(--verman-red);
  transform: translateY(-1px);
}
.pos-tile.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.pos-tile__top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.pos-tile__thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  flex-shrink: 0;
}
.pos-tile__type {
  color: #dc2626;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pos-tile strong { font-size: 0.95rem; line-height: 1.25; color: #0f172a; }
.pos-tile__ref { color: var(--verman-muted); font-size: 0.72rem; font-weight: 700; }
.pos-tile__meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
  font-weight: 800;
  font-size: 0.86rem;
}
.pos-stock {
  display: inline-flex;
  min-width: 1.6rem;
  justify-content: center;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
}
.pos-stock--ok { background: rgba(27, 73, 101, 0.12); color: var(--verman-blue-royal); }
.pos-stock--low { background: rgba(196, 92, 38, 0.14); color: #9a4b1c; }
.pos-stock--out { background: rgba(230, 57, 70, 0.12); color: var(--verman-red); }
.pos-panel {
  padding: 0.9rem;
  border: 1px solid var(--verman-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.pos-panel + .pos-panel { margin-top: 0.75rem; }
.pos-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.pos-panel h2 {
  margin: 0;
  color: var(--verman-blue-dark);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.pos-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--verman-blue-dark);
  color: #fff;
  font-size: 0.75rem;
}
.pos-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
  color: var(--verman-blue-dark);
  font-size: 0.84rem;
}
.pos-clients-head {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.pos-clients-head .pos-field--grow {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}
.pos-client-new {
  flex: 0 0 auto;
  white-space: nowrap;
  border-color: #0F172A;
  color: #0F172A;
  font-weight: 800;
}
.pos-client-new:hover,
.pos-client-new:focus-visible {
  background: #DC2626;
  border-color: #DC2626;
  color: #fff;
}
.pos-clients {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 140px;
  overflow: auto;
  margin-bottom: 0.5rem;
}
.pos-clients__empty {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px dashed var(--verman-border);
  border-radius: 10px;
  color: var(--verman-muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.pos-client {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--verman-border);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}
.pos-client strong { color: var(--verman-blue-dark); font-size: 0.9rem; }
.pos-client span { color: var(--verman-muted); font-size: 0.75rem; }
.pos-client.is-active {
  border-color: var(--verman-red);
  box-shadow: inset 3px 0 0 var(--verman-red);
  background: #fff;
}
.pos-credit-hint {
  margin: 0 0 0.55rem;
  color: var(--verman-blue-royal);
  font-size: 0.8rem;
  font-weight: 700;
}
.pos-cart {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 280px;
  overflow: auto;
  margin-bottom: 0.65rem;
}
.pos-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  background: #fafbfc;
}
.pos-line__info { min-width: 0; }
.pos-line__info strong {
  display: block;
  color: var(--verman-blue-dark);
  font-size: 0.88rem;
  line-height: 1.2;
}
.pos-line__info span {
  color: var(--verman-muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.pos-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.pos-line__qty button,
.pos-line__rm {
  width: 36px;
  height: 36px;
  border: 1px solid var(--verman-border);
  border-radius: 10px;
  background: #fff;
  color: var(--verman-blue-dark);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.pos-line__qty input,
.pos-line__remise input {
  width: 52px;
  min-height: 36px;
  text-align: center;
  border: 1px solid var(--verman-border);
  border-radius: 8px;
}
.pos-line__remise {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--verman-muted);
}
.pos-line__total {
  color: var(--verman-blue-dark);
  font-size: 0.86rem;
  white-space: nowrap;
}
.pos-line__rm { color: var(--verman-red); }
.pos-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.pos-totals > div {
  padding: 0.55rem;
  border-radius: 12px;
  background: rgba(10, 25, 47, 0.04);
}
.pos-totals span {
  display: block;
  color: var(--verman-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.pos-totals strong {
  color: var(--verman-blue-dark);
  font-size: 0.95rem;
}
.pos-pay-modes,
.pos-sous {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.pos-pay {
  min-height: 44px;
  border: 1px solid var(--verman-border);
  border-radius: 12px;
  background: #fff;
  color: var(--verman-blue-dark);
  font-weight: 800;
  cursor: pointer;
}
.pos-pay.is-active {
  background: var(--verman-blue-dark);
  border-color: var(--verman-blue-dark);
  color: #fff;
}
.pos-checkout {
  width: 100%;
  min-height: 54px;
  font-size: 1.05rem;
  font-weight: 800;
}
.pos-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--verman-muted);
  border: 1px dashed var(--verman-border);
  border-radius: 12px;
}
.pos-grid.is-idle {
  display: block;
  max-height: none;
  overflow: visible;
}
.pos-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: min(42vh, 280px);
  padding: 1.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.pos-idle__ico {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
  opacity: 0.35;
}
.pos-idle__title {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
}
.pos-idle__text {
  margin: 0;
  max-width: 22rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}
/* Mobile : carte d'attente volumineuse masqu?e ? recherche coll?e au panier */
@media (max-width: 1019px) {
  .pos-left > .pos-hint {
    display: none;
  }
  .pos-grid.is-idle {
    display: none !important;
    margin: 0;
    padding: 0;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
  }
  .pos-grid.is-idle .pos-idle {
    display: none !important;
    min-height: 0;
    padding: 0;
    border: 0;
  }
  .pos-left {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }
  .pos-searchbar {
    margin-bottom: 0;
  }
}
.pos-recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.pos-recent__head h2 { margin: 0; }
.pos-recent__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pos-recent__see-all {
  border: 0;
  background: transparent;
  color: #DC2626;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  padding: 0.15rem 0;
}
.pos-recent__see-all:hover,
.pos-recent__see-all:focus-visible {
  text-decoration: underline;
}
.pos-recent ul {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.pos-recent__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid #eef2f6;
  font-size: 0.86rem;
  transition: background 0.15s ease;
}
.pos-recent__item:hover {
  background: #f8fafc;
}
.pos-recent__link {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0F172A;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pos-recent__link:hover strong {
  color: #DC2626;
}
.pos-recent__client {
  color: var(--verman-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.pos-recent__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.pos-recent__amount {
  color: #0F172A;
  font-weight: 800;
  font-size: 0.82rem;
}
.pos-recent__time {
  color: var(--verman-muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.pos-recent__empty {
  padding: 0.7rem 0.2rem;
  color: var(--verman-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: none;
}
.pos-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pos-status.is-paid {
  background: #ecfdf5;
  color: #047857;
}
.pos-status.is-deposit {
  background: #fff7ed;
  color: #c2410c;
}
.pos-status.is-unpaid {
  background: #fef2f2;
  color: #DC2626;
}
.pos-status.is-muted {
  background: #f1f5f9;
  color: #64748b;
}
.pos-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.pos-modal__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0F172A;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.pos-modal__close:hover {
  background: #DC2626;
  color: #fff;
}
.pos-modal__lead {
  margin: 0.35rem 0 0.9rem;
  color: var(--verman-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.pos-modal__card--client {
  width: min(440px, 100%);
}
.pos-client-type {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
}
.pos-client-type legend {
  flex: 1 0 100%;
  margin-bottom: 0.45rem;
  color: #0F172A;
  font-size: 0.84rem;
  font-weight: 700;
}
.pos-client-type__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--verman-border);
  border-radius: 12px;
  background: #fff;
  color: #0F172A;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.pos-client-type__opt:has(input:checked) {
  border-color: #DC2626;
  box-shadow: inset 0 0 0 1px #DC2626;
  background: #fff5f5;
}
.pos-client-type__opt input {
  accent-color: #DC2626;
}
.pos-client-form__error {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fef2f2;
  color: #DC2626;
  font-size: 0.78rem;
  font-weight: 700;
}
.pos-client-form__submit {
  width: 100%;
  background: #0F172A;
  border-color: #0F172A;
}
.pos-client-form__submit:hover,
.pos-client-form__submit:focus-visible {
  background: #DC2626;
  border-color: #DC2626;
}
body.pos-modal-open {
  overflow: hidden;
}
.pos-tickets-modal {
  z-index: 90;
  align-items: stretch;
  padding: 0.75rem;
}
.pos-modal__card--tickets {
  width: min(1120px, 100%);
  max-height: calc(100vh - 1.5rem);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.1rem;
}
.pos-modal__lead--tight {
  margin: 0.2rem 0 0;
}
.pos-tickets-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.15fr);
  gap: 0.85rem;
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 0.75rem;
}
.pos-tickets-listpane,
.pos-tickets-preview {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.pos-tickets-listpane {
  padding: 0.75rem;
}
.pos-tickets-list {
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.35rem;
  min-height: 220px;
  max-height: min(58vh, 520px);
}
.pos-tickets-list__empty,
.pos-tickets-list__loading {
  margin: 0.75rem 0.25rem;
  color: var(--verman-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.pos-tickets-row {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pos-tickets-row:hover {
  border-color: #cbd5e1;
  background: #fff;
}
.pos-tickets-row.is-active {
  border-color: #DC2626;
  background: #fff;
  box-shadow: inset 3px 0 0 #DC2626;
}
.pos-tickets-row__main,
.pos-tickets-row__side {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.pos-tickets-row__main strong {
  color: #0F172A;
  font-size: 0.86rem;
}
.pos-tickets-row__main span,
.pos-tickets-row__side time {
  color: var(--verman-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.pos-tickets-row__side {
  align-items: flex-end;
}
.pos-tickets-row__side strong {
  color: #0F172A;
  font-size: 0.78rem;
  white-space: nowrap;
}
.pos-tickets-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  color: #0F172A;
  font-size: 0.75rem;
  font-weight: 700;
}
.pos-tickets-preview__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  background: #0F172A;
  color: #fff;
}
.pos-tickets-preview__toolbar strong {
  display: block;
  font-size: 0.9rem;
}
.pos-tickets-preview__toolbar .pos-status {
  margin-top: 0.25rem;
}
.pos-tickets-preview__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.pos-tickets-preview__actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.pos-tickets-preview__actions .btn-ghost:hover:not(:disabled) {
  background: #DC2626;
  border-color: #DC2626;
}
.pos-tickets-preview__actions .btn-primary {
  background: #DC2626;
  border-color: #DC2626;
}
.pos-tickets-preview__frame-wrap {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  color: var(--verman-muted);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
}
.pos-tickets-preview__frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 360px;
  height: min(62vh, 560px);
  border: 0;
  background: #f1f5f9;
}
@media (max-width: 900px) {
  .pos-tickets-layout {
    grid-template-columns: 1fr;
  }
  .pos-tickets-list {
    max-height: 240px;
  }
  .pos-tickets-preview__frame {
    min-height: 300px;
    height: 48vh;
  }
}
body.pos-ticket-embed .site-header,
body.pos-ticket-embed .site-footer,
body.pos-ticket-embed .skip-link,
body.pos-ticket-embed .connectivity-banner {
  display: none !important;
}
body.pos-ticket-embed {
  background: #fff !important;
  min-height: 0 !important;
}
body.pos-ticket-embed .pos-ticket {
  padding: 0.5rem !important;
}
body.pos-ticket-embed .pos-ticket__actions {
  justify-content: center;
  margin-bottom: 0.5rem;
}
.pos-toast {
  position: sticky;
  top: calc(var(--header-h) + 0.4rem);
  z-index: 30;
  margin: 0 0 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--verman-blue-dark);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.pos-toast.is-error { background: var(--verman-red); }
.pos-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 25, 47, 0.55);
}
.pos-modal[hidden] { display: none !important; }
.pos-modal__card {
  width: min(420px, 100%);
  padding: 1.2rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.pos-modal__card h2 { margin: 0 0 0.4rem; color: var(--verman-blue-dark); }
.pos-z-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.pos-z-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.pos-z-dl dt {
  color: var(--verman-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.pos-z-dl dd {
  margin: 0.15rem 0 0;
  color: var(--verman-blue-dark);
  font-weight: 800;
  font-size: 1.05rem;
}
.pos-z-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pos-z-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eef2f6;
}
.pos-z-list .is-total {
  margin-top: 0.35rem;
  border-top: 2px solid var(--verman-blue-dark);
  border-bottom: 0;
  padding-top: 0.75rem;
  font-size: 1.05rem;
}
.pos-ticket__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pos-receipt {
  width: min(80mm, 100%);
  margin: 0 auto;
  padding: 0.75rem;
  background: #fff;
  color: #111;
  border: 1px dashed var(--verman-border);
  font-family: "Segoe UI", Consolas, monospace;
  font-size: 12px;
}
.pos-receipt.is-58 { width: min(58mm, 100%); font-size: 11px; }
.pos-receipt__header {
  text-align: center;
}
.pos-receipt__logo {
  display: block;
  max-width: 42mm;
  max-height: 18mm;
  width: auto;
  height: auto;
  margin: 0 auto 0.35rem;
  object-fit: contain;
}
.pos-receipt__brand {
  margin: 0;
  color: var(--verman-blue-dark);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.pos-receipt__phone,
.pos-receipt__address,
.pos-receipt__notes {
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 10px;
  color: #444;
  line-height: 1.3;
}
.pos-receipt h1 {
  margin: 0.2rem 0;
  font-size: 1.05rem;
  color: var(--verman-blue-dark);
}
.pos-receipt__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.35rem 0;
  color: #555;
}
.pos-receipt__lines {
  list-style: none;
  margin: 0.6rem 0;
  padding: 0.5rem 0;
  border-top: 1px dashed #ccc;
  border-bottom: 1px dashed #ccc;
}
.pos-receipt__lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
}
.pos-receipt__lines small { display: block; color: #666; }
.pos-receipt__totals { margin: 0; }
.pos-receipt__totals > div,
.pos-receipt__pay li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
}
.pos-receipt__totals .is-total {
  margin-top: 0.25rem;
  border-top: 1px solid #111;
  padding-top: 0.4rem;
  font-size: 1.05em;
  font-weight: 800;
}
.pos-receipt__pay { list-style: none; margin: 0.5rem 0; padding: 0; }
.pos-receipt__status {
  text-align: center;
  font-weight: 800;
  color: var(--verman-blue-dark);
}
.pos-receipt footer {
  margin-top: 0.75rem;
  text-align: center;
  color: #666;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.btn-sm { min-height: 36px; padding: 0.25rem 0.65rem; font-size: 0.85rem; }
@media (max-width: 900px) {
  .pos-line {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      \"info rm\"
      \"qty total\"
      \"remise remise\";
  }
  .pos-line__info { grid-area: info; }
  .pos-line__qty { grid-area: qty; }
  .pos-line__remise { grid-area: remise; }
  .pos-line__total { grid-area: total; }
  .pos-line__rm { grid-area: rm; justify-self: end; }
  .pos-totals { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
  .pos-searchbar { grid-template-columns: 1.6fr 1fr; }
  .pos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pos-pay-modes { grid-template-columns: repeat(4, 1fr); }
  .pos-z-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px) {
  .pos-layout { grid-template-columns: 1.35fr 0.9fr; align-items: start; }
  .pos-right { position: sticky; top: calc(var(--header-h) + 0.5rem); }
  .pos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  .site-header, .no-print, .parts-nav, .skip-link { display: none !important; }
  body { background: #fff; }
  .pos-receipt {
    border: 0;
    width: 80mm !important;
    margin: 0;
  }
  .pos-ticket[data-ticket-width="58"] .pos-receipt { width: 58mm !important; }
}

/* ?? Stock avanc? multi-magasins (iadv) ?? */
.iadv-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.iadv-head h1 { margin: 0; color: var(--verman-blue-dark); }
.iadv-eyebrow {
  margin: 0 0 0.2rem;
  color: var(--verman-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.iadv-toolbar {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0;
  padding: 0.85rem;
  border: 1px solid var(--verman-border);
  border-radius: 16px;
  background: #fff;
}
.iadv-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--verman-blue-dark);
  font-size: 0.84rem;
}
.iadv-toolbar select,
.iadv-toolbar input[type="search"],
.iadv-form input,
.iadv-form select,
.iadv-form textarea {
  min-height: 46px;
  border: 1px solid var(--verman-border);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  font: inherit;
}
.iadv-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  min-height: 46px;
}
.iadv-check input { accent-color: var(--verman-red); width: 1.1rem; height: 1.1rem; }
.iadv-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.iadv-kpis article {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--verman-border);
  background: linear-gradient(180deg, #fff, #f7fafc);
}
.iadv-kpis span {
  display: block;
  color: var(--verman-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.iadv-kpis strong {
  color: var(--verman-blue-dark);
  font-size: 1.35rem;
}
.iadv-kpis small {
  display: block;
  color: var(--verman-blue-royal);
  font-weight: 700;
  margin-top: 0.15rem;
}
.iadv-kpis .is-warn {
  border-color: rgba(230, 57, 70, 0.35);
  box-shadow: inset 3px 0 0 var(--verman-red);
}
.iadv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.iadv-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--verman-border);
  background: #fff;
  color: var(--verman-blue-dark);
  font-weight: 700;
  font-size: 0.86rem;
}
.iadv-tabs a.is-active {
  background: var(--verman-blue-dark);
  border-color: var(--verman-blue-dark);
  color: #fff;
}
.iadv-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--verman-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.iadv-panel h2 {
  margin: 0 0 0.75rem;
  color: var(--verman-blue-dark);
  font-size: 1.05rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.iadv-panel h2 small { color: var(--verman-muted); font-weight: 700; }
.iadv-hint { margin: 0 0 0.85rem; color: var(--verman-muted); font-size: 0.88rem; }
.iadv-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--verman-muted);
  border: 1px dashed var(--verman-border);
  border-radius: 12px;
}
.iadv-table-wrap { overflow-x: auto; }
.iadv-table { width: 100%; border-collapse: collapse; }
.iadv-table th {
  text-align: left;
  color: var(--verman-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.iadv-table th,
.iadv-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
}
.iadv-table td strong { display: block; color: var(--verman-blue-dark); }
.iadv-table td small { display: block; color: var(--verman-muted); font-weight: 600; }
.iadv-table tr.is-low { background: rgba(196, 92, 38, 0.06); }
.iadv-table tr.is-out { background: rgba(230, 57, 70, 0.06); }
.iadv-badge {
  display: inline-flex;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}
.iadv-badge--low { background: rgba(196, 92, 38, 0.14); color: #9a4b1c; }
.iadv-badge--out { background: rgba(230, 57, 70, 0.12); color: var(--verman-red); }
.iadv-form-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.iadv-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--verman-blue-dark);
  font-size: 0.84rem;
}
.iadv-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.iadv-danger { color: var(--verman-red) !important; }
.iadv-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 25, 47, 0.55);
}
.iadv-modal[hidden] { display: none !important; }
.iadv-modal__card {
  width: min(560px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 1.1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.iadv-modal__card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.iadv-modal__card h2 { margin: 0; color: var(--verman-blue-dark); font-size: 1.1rem; }
.iadv-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--verman-blue-dark);
  font-size: 1.3rem;
  cursor: pointer;
}
.iadv-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
@media (max-width: 760px) {
  .iadv-table thead { display: none; }
  .iadv-table tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eef2f6;
  }
  .iadv-table td {
    display: block;
    border: 0;
    padding: 0.15rem 0;
  }
  .iadv-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    color: var(--verman-muted);
    font-weight: 700;
  }
}
@media (min-width: 720px) {
  .iadv-toolbar { grid-template-columns: 1.2fr 1fr auto auto; align-items: end; }
  .iadv-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .iadv-form-grid { grid-template-columns: 1fr 1fr; }
  .iadv-span2 { grid-column: span 2; }
}

/* ?? Commandes sp?ciales & WhatsApp (sord) ?? */
.sord-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.sord-head h1 { margin: 0; color: var(--verman-blue-dark); }
.sord-eyebrow {
  margin: 0 0 0.2rem;
  color: #25d366;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sord-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0;
}
.sord-kpi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 4.5rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sord-kpi:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.sord-kpi span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}
.sord-kpi strong {
  color: #0F172A;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sord-kpi.is-active {
  border-color: #DC2626;
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12), inset 3px 0 0 #DC2626;
}
.sord-toolbar {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--verman-border);
  border-radius: 16px;
  background: #fff;
}
.sord-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--verman-blue-dark);
  font-size: 0.84rem;
}
.sord-toolbar input,
.sord-form input,
.sord-form select {
  min-height: 44px;
  border: 1px solid var(--verman-border);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  background: #fff;
  font: inherit;
}
.sord-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--verman-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.sord-panel h2 {
  margin: 0 0 0.75rem;
  color: var(--verman-blue-dark);
  font-size: 1.05rem;
}
.sord-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--verman-muted);
  border: 1px dashed var(--verman-border);
  border-radius: 12px;
}
.sord-table-wrap { overflow-x: auto; }
.sord-table { width: 100%; border-collapse: collapse; }
.sord-table th {
  text-align: left;
  color: var(--verman-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sord-table th,
.sord-table td {
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
}
.sord-table td strong { display: block; color: var(--verman-blue-dark); }
.sord-table td span,
.sord-table td small { display: block; color: var(--verman-muted); font-size: 0.8rem; font-weight: 600; }
.sord-table tr.is-highlight {
  background: rgba(220, 38, 38, 0.05);
  box-shadow: inset 3px 0 0 #DC2626;
}
.sord-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.sord-badge--wait { background: rgba(196, 92, 38, 0.14); color: #9a4b1c; }
.sord-badge--offer-ok { background: rgba(16, 185, 129, 0.14); color: #047857; }
.sord-badge--pay { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.sord-badge--paid { background: rgba(16, 185, 129, 0.16); color: #047857; }
.sord-badge--ship { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.sord-badge--dispute { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.sord-badge--counter { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.sord-btn-dispute { color: #b91c1c !important; border-color: #fecaca !important; }
.marketplace-orders__actions {
  display: grid;
  gap: 0.35rem;
  min-width: 11rem;
}
.marketplace-orders__actions input[type="text"] {
  width: 100%;
  min-height: 1.9rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.72rem;
}
.sord-badge--order { background: rgba(27, 73, 101, 0.14); color: var(--verman-blue-royal); }
.sord-badge--ready { background: rgba(15, 23, 42, 0.08); color: #0F172A; }
.sord-badge--done { background: rgba(10, 25, 47, 0.1); color: var(--verman-blue-dark); }
.sord-badge--cancel { background: rgba(230, 57, 70, 0.12); color: var(--verman-red); }
.sord-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.sord-btn-accept { white-space: nowrap; }
.sord-btn-counter {
  border-color: #f59e0b !important;
  color: #b45309 !important;
}
.sord-counter-meta {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 0.8rem;
  color: #9a3412;
}
.sord-modal--counter { max-width: 28rem; }
.sord-actions {
  min-width: 0;
  vertical-align: middle;
}
.sord-inline { margin: 0; }
.sord-actbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
.sord-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 0;
  height: auto;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 0.7rem;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  width: auto;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.sord-act:active { transform: scale(0.96); }
.sord-act i { font-size: 0.625rem; opacity: 0.95; }
.sord-act--primary {
  background: #0F172A;
  color: #fff;
}
.sord-act--primary:hover {
  background: #DC2626;
  color: #fff;
}
.sord-act--accept {
  background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
  color: #fff;
}
.sord-act--accept:hover { background: #DC2626; color: #fff; }
.sord-act--ship {
  background: #0F172A;
  color: #fff;
}
.sord-act--ship:hover { background: #1e293b; color: #fff; }
.sord-act--accent {
  background: #DC2626;
  color: #fff;
}
.sord-act--accent:hover { background: #b91c1c; color: #fff; }
.sord-act--danger {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  box-shadow: none;
}
.sord-act--danger:hover {
  background: #fef2f2;
  color: #991b1b;
}
.sord-act--soft {
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
}
.sord-act--soft:hover {
  background: #e2e8f0;
  color: #0F172A;
}
.sord-act--soft i { color: #64748b; }
.sord-act--ghost {
  background: transparent;
  color: #475569;
  box-shadow: none;
  border: 1px solid #e2e8f0;
}
.sord-act--ghost:hover {
  background: #f8fafc;
  color: #0F172A;
  border-color: #cbd5e1;
}
.sord-act-status { flex: 0 1 9rem; min-width: 7.5rem; max-width: 11rem; }
.sord-act-select {
  width: 100%;
  min-height: 0;
  padding: 0.35rem 1.6rem 0.35rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #f8fafc;
  color: #0F172A;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 1.8rem;
}
.sord-act-select:focus {
  outline: none;
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
  background-color: #fff;
}
.sord .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sord-form-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.sord-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--verman-blue-dark);
  font-size: 0.84rem;
}
.sord-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Modale ? Nouvelle commande sp?ciale ? */
.sord-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow: auto;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sord-modal {
  width: min(100%, 44rem);
  margin: 1.25rem auto 2rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.32);
  color: #0f172a;
}

.sord-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  z-index: 1;
}

.sord-modal__kicker {
  margin: 0;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sord-modal__head h2 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.2rem;
}

.sord-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.65rem;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.sord-modal__close:hover {
  background: #e2e8f0;
  color: #dc2626;
}

.sord-modal__form {
  padding: 1rem 1.15rem 1.2rem;
}

.sord-modal__form .sord-form-grid {
  margin-bottom: 0;
}

.sord-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.sord-modal__actions .btn-primary {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.sord-modal__actions .btn-primary:hover,
.sord-modal__actions .btn-primary:focus-visible {
  background: #b91c1c;
  border-color: #b91c1c;
}

@media (max-width: 640px) {
  .sord-modal-backdrop {
    padding: 0;
    align-items: stretch;
  }

  .sord-modal {
    width: 100%;
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    border: 0;
  }

  .sord-modal__head {
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  .sord-table thead { display: none; }
  .sord-table tr {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid #eef2f6;
  }
  .sord-table td {
    display: block;
    border: 0;
    padding: 0.25rem 0;
  }
  .sord-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    color: var(--verman-muted);
    font-weight: 700;
  }
  .sord-table td.sord-actions {
    margin-top: 0.55rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
  }
  .sord-actbar {
    justify-content: flex-end;
    gap: 0.3rem;
  }
  .sord-act-status {
    flex: 1 1 100%;
    max-width: none;
  }
  .sord-act span { display: inline; }
}
@media (min-width: 720px) {
  .sord-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sord-toolbar { grid-template-columns: 1fr auto auto; align-items: end; }
  .sord-form-grid { grid-template-columns: 1fr 1fr; }
  .sord-span2 { grid-column: span 2; }
  .sord-actions { min-width: 220px; }
}
@media (min-width: 1100px) {
  .sord-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ?? Planning atelier / rendez-vous ?? */
.appt-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.appt-kpis article {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(10, 25, 47, 0.1);
  border-top: 3px solid var(--verman-blue-dark, #0a192f);
  border-radius: var(--radius-sm);
}
.appt-kpis article.is-alert,
.appt-kpis article.is-urgent {
  border-top-color: var(--verman-red, #e63946);
}
.appt-kpis span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}
.appt-kpis strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--verman-blue-dark, #0a192f);
  font-size: 1.2rem;
}
.appt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.appt-views,
.appt-nav-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.appt-nav-dates strong {
  min-width: 8rem;
  text-align: center;
  color: var(--verman-blue-dark, #0a192f);
}
.appt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  align-items: start;
}
.appt-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}
.appt-week__col {
  min-height: 14rem;
  background: #f8fafc;
  border: 1px solid rgba(10, 25, 47, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
}
.appt-week__col.is-today {
  border-color: var(--verman-red, #e63946);
  background: #fff;
}
.appt-week__col header {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.appt-week__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.appt-card {
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
  background: #fff;
  border-left: 3px solid var(--verman-blue-royal, #1b4965);
  font-size: 0.72rem;
  color: #334155;
}
.appt-card strong { color: #0a192f; }
.appt-card.is-urgent,
.appt-card.is-late {
  border-left-color: var(--verman-red, #e63946);
  background: #fff5f5;
}
.appt-card.is-termine { opacity: 0.65; }
.appt-card.is-annule { opacity: 0.45; text-decoration: line-through; }
.appt-card em {
  color: var(--verman-red, #e63946);
  font-style: normal;
  font-weight: 700;
}
.appt-empty {
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 0.35rem;
}
.appt-month__head,
.appt-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.appt-month__head span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  padding: 0.35rem;
}
.appt-month__cell {
  min-height: 5.5rem;
  padding: 0.4rem;
  border: 1px solid rgba(10, 25, 47, 0.08);
  border-radius: var(--radius-sm);
  background: #fff;
  color: inherit;
  display: grid;
  gap: 0.2rem;
  align-content: start;
}
.appt-month__cell.is-empty { background: transparent; border: 0; }
.appt-month__cell.is-today { border-color: var(--verman-red, #e63946); }
.appt-chip {
  display: block;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  background: rgba(27, 73, 101, 0.1);
  color: #0a192f;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appt-chip.is-urgent,
.appt-chip.is-late {
  background: rgba(230, 57, 70, 0.12);
  color: #be123c;
}
.appt-day {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
}
.appt-day__hours {
  display: grid;
  grid-template-rows: repeat(12, 3rem);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
}
.appt-day__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.appt-card--day {
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  font-size: 0.9rem;
}
.appt-card--day p { margin: 0.2rem 0 0; }
.appt-parts { color: #1b4965; font-weight: 600; }
.appt-notes { color: #be123c; }
.appt-status-form select {
  min-width: 8rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.appt-form-card h2,
.appt-side .wo-card h2 {
  margin: 0 0 0.85rem;
  color: var(--verman-blue-dark, #0a192f);
  font-size: 1.05rem;
}
.appt-auto { margin: 0.35rem 0 0.75rem; }
.appt-bays {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.appt-bay {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border-left: 3px solid #1b4965;
  font-size: 0.88rem;
}
.appt-bay--occupe {
  border-left-color: var(--verman-red, #e63946);
  background: #fff5f5;
}
.appt-bay--maintenance {
  border-left-color: #94a3b8;
  opacity: 0.8;
}
@media (max-width: 980px) {
  .appt-layout { grid-template-columns: 1fr; }
  .appt-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .appt-kpis { grid-template-columns: 1fr 1fr; }
  .appt-week { grid-template-columns: 1fr; }
  .appt-month__cell { min-height: 4.2rem; }
  .appt-card--day { grid-template-columns: 1fr; }
}

/* ?? Param?tres : ?quipe & collaborateurs ?? */
.settings-team {
  margin-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.35rem;
}
.settings-team__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.settings-team__head h2 {
  margin: 0 0 0.2rem;
  color: #0F172A;
  font-size: 1.05rem;
}
.settings-team__add {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.05rem;
  border: 0;
  border-radius: 1rem;
  background: #0F172A;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.settings-team__add-ico {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.settings-team__add:hover,
.settings-team__add:focus-visible {
  background: #DC2626;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
  outline: none;
}
.settings-team__add:active {
  transform: scale(0.97);
}
@media (min-width: 640px) {
  .settings-team__add {
    width: auto;
  }
}
.settings-team__empty {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
}
.settings-team__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.settings-team__card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.settings-team__card.is-suspended {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  opacity: 0.92;
}
.settings-team__card-main {
  min-width: 0;
}
.settings-team__card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.settings-team__card-title strong {
  color: #0F172A;
  font-size: 0.92rem;
  font-weight: 800;
}
.settings-team__card-phone {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}
.settings-team__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.settings-team__badge,
.settings-team__status {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.12rem 0.55rem;
  border-radius: 0.55rem;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}
.settings-team__status {
  border-radius: 999px;
}
.settings-team__badge {
  background: #f1f5f9;
  color: #334155;
}
.settings-team__status.is-on {
  background: #ecfdf5;
  color: #047857;
}
.settings-team__status.is-off {
  background: #fff7ed;
  color: #c2410c;
}
.settings-team__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}
.settings-team__action-form {
  margin: 0;
  display: inline-flex;
}
.settings-team__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.05rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.settings-team__action .gx-ico {
  width: 0.85rem;
  height: 0.85rem;
}
.settings-team__action:active {
  transform: scale(0.97);
}
.settings-team__action--edit {
  background: #f1f5f9;
  color: #334155;
}
.settings-team__action--edit:hover,
.settings-team__action--edit:focus-visible {
  background: #e2e8f0;
  outline: none;
}
.settings-team__action--toggle {
  background: #fffbeb;
  color: #b45309;
}
.settings-team__action--toggle:hover,
.settings-team__action--toggle:focus-visible {
  background: #fef3c7;
  outline: none;
}
.settings-team__action--delete {
  background: #fef2f2;
  color: #DC2626;
  padding-inline: 0.65rem;
}
.settings-team__action--delete:hover,
.settings-team__action--delete:focus-visible {
  background: #fee2e2;
  outline: none;
}
@media (min-width: 768px) {
  .settings-team__card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .settings-team__actions {
    padding-top: 0;
    border-top: 0;
    flex-shrink: 0;
  }
  .settings-team__action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
.settings-team__more { margin-top: 0.85rem; }
body.settings-modal-open { overflow: hidden; }
.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
}
.settings-modal[hidden] { display: none !important; }
.settings-modal__card {
  width: min(480px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}
.settings-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.settings-modal__head h2 {
  margin: 0;
  color: #0F172A;
  font-size: 1.15rem;
}
.settings-modal__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0F172A;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.settings-modal__close:hover {
  background: #DC2626;
  color: #fff;
}
.settings-modal__lead {
  margin: 0.4rem 0 1rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}
.settings-branding {
  margin: .35rem 0 1rem;
  padding: 1rem;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  background: #fafafa;
}
.settings-branding h3 {
  margin: 0 0 .75rem;
  font-size: .95rem;
  color: #0f172a;
}
.settings-branding__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .9rem;
}
.settings-branding__field {
  display: grid;
  gap: .4rem;
  margin: 0;
}
.settings-branding__preview {
  min-height: 5.5rem;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: .85rem;
  background: #fff;
  padding: .65rem;
}
.settings-branding__preview img {
  max-height: 4.5rem;
  max-width: 100%;
  object-fit: contain;
}
.settings-branding__empty { color: #94a3b8; }
.settings-save-btn {
  margin-top: .35rem;
}
.settings-collab-roles__group {
  margin: 0 0 .85rem;
  padding: .75rem;
  border: 1px solid #f1f5f9;
  border-radius: .9rem;
  background: #f8fafc;
}
.settings-collab-roles__group h3 {
  margin: 0 0 .55rem;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.settings-modal__card {
  width: min(560px, 100%);
}
.settings-collab-roles {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.45rem;
}
.settings-collab-roles legend {
  margin-bottom: 0.4rem;
  color: #0F172A;
  font-size: 0.84rem;
  font-weight: 700;
}
.settings-optional {
  color: #94a3b8;
  font-style: normal;
  font-weight: 600;
}
.settings-team__login-hint {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
}
.settings-collab-roles__opt {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.settings-collab-roles__opt:hover {
  background: #f1f5f9;
}
.settings-collab-roles__opt:has(input:checked) {
  border-color: #DC2626;
  box-shadow: inset 0 0 0 1px #DC2626;
  background: #fff5f5;
}
.settings-collab-roles__opt input {
  accent-color: #DC2626;
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
}
.settings-collab-roles__opt strong {
  display: block;
  color: #0F172A;
  font-size: 0.86rem;
}
.settings-collab-roles__opt small {
  display: block;
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
}
.settings-collab-form__submit {
  width: 100%;
  background: #0F172A;
  border-color: #0F172A;
}
.settings-collab-form__submit:hover,
.settings-collab-form__submit:focus-visible {
  background: #DC2626;
  border-color: #DC2626;
}

/* ?? Marketplace B2B ?? */
.mkt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.75rem;
  background: #0F172A;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.mkt-cta__ico { width: 0.9rem; height: 0.9rem; color: #DC2626; }
.mkt-cta:hover,
.mkt-cta:focus-visible {
  background: #DC2626;
  color: #fff;
  outline: none;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}
.mkt-cta:hover .mkt-cta__ico,
.mkt-cta:focus-visible .mkt-cta__ico { color: #fff; }
.mkt-cta:active { transform: scale(0.97); }
.mkt-cta--header { padding: 0.35rem 0.7rem; }
.mkt-cta--dash { align-self: flex-start; }
.mkt-cta--ghost {
  background: #fff;
  color: #0F172A;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}
.mkt-cta--ghost .gx-ico { color: #DC2626; }
.mkt-cta--ghost:hover,
.mkt-cta--ghost:focus-visible {
  background: #0F172A;
  border-color: #0F172A;
  color: #fff;
}
.marketplace-b2b { padding-bottom: 2.5rem; }
.marketplace-b2b__wrap { max-width: 72rem; }
.marketplace-b2b__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0.75rem 0 1.25rem;
}
.marketplace-b2b__kicker {
  margin: 0 0 0.25rem;
  color: #DC2626;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marketplace-b2b__head h1 {
  margin: 0 0 0.35rem;
  color: #0F172A;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.marketplace-b2b__app {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.marketplace-search__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #0F172A;
  font-size: 0.78rem;
  font-weight: 800;
}
.marketplace-search__field {
  position: relative;
  display: flex;
  align-items: center;
}
.marketplace-search__ico {
  position: absolute;
  left: 1rem;
  width: 1.15rem;
  height: 1.15rem;
  color: #94a3b8;
  pointer-events: none;
}
.marketplace-search__field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 2.75rem 0.9rem 2.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  color: #0F172A;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.marketplace-search__field input:focus {
  outline: none;
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.marketplace-search__clear {
  position: absolute;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.marketplace-search__clear .gx-ico { width: 0.9rem; height: 0.9rem; }
.marketplace-search__clear:hover { background: #e2e8f0; color: #0F172A; }
.marketplace-search__spinner {
  position: absolute;
  right: 3rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid #e2e8f0;
  border-top-color: #DC2626;
  border-radius: 50%;
  animation: mkt-spin 0.7s linear infinite;
}
@keyframes mkt-spin { to { transform: rotate(360deg); } }
.marketplace-search__hint {
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
}
.marketplace-correct {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid #fde68a;
  border-radius: 0.85rem;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.78rem;
}
.marketplace-correct .gx-ico {
  width: 0.9rem;
  height: 0.9rem;
  color: #f59e0b;
  vertical-align: -0.15rem;
  margin-right: 0.25rem;
}
.marketplace-correct strong { color: #0F172A; }
.marketplace-ai {
  padding: 0.85rem 0.95rem;
  border: 1px solid #dbeafe;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  color: #0f172a;
}
.marketplace-ai__type {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
}
.marketplace-ai__xrefs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.marketplace-ai__xrefs li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bfdbfe;
  font-size: 0.72rem;
  font-weight: 700;
}
.marketplace-ai__xrefs em {
  font-style: normal;
  color: #64748b;
  font-weight: 650;
  text-transform: uppercase;
  font-size: 0.62rem;
}
.marketplace-ai__summary {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
  color: #0f172a;
}
.marketplace-ai__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.mkt-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.mkt-badge--sm { font-size: 0.58rem; padding: 0.15rem 0.4rem; }
.mkt-badge--exact { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.mkt-badge--xref { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.mkt-badge--fitment { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.mkt-badge--fuzzy { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.marketplace-learn-flash {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 700;
}
.marketplace-compare {
  display: grid;
  gap: 0.85rem;
}
.mkt-compare-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.mkt-compare-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e2e8f0;
}
.mkt-compare-card__title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.3;
}
.mkt-compare-card__meta {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 650;
}
.mkt-compare-card__head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.mkt-compare-card__toggle {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 0.55rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}
.mkt-compare-card__toggle:hover { border-color: #94a3b8; }
.mkt-compare-card__offers {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.mkt-offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(8.5rem, auto);
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid transparent;
}
.mkt-offer-row.is-own { opacity: 0.78; }
.mkt-offer-row__shop {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}
.mkt-offer-row__loc,
.mkt-offer-row__refs {
  margin: 0.12rem 0 0;
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 650;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.mkt-offer-row__mid {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 700;
  text-align: center;
}
.mkt-offer-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.mkt-offer-row__price {
  font-size: 0.84rem;
  font-weight: 900;
  color: #DC2626;
}
.mkt-offer-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}
.mkt-offer-row__select,
.mkt-offer-row__learn,
.mkt-offer-row__details {
  border: 0;
  border-radius: 0.55rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}
.mkt-offer-row__select {
  background: #0f172a;
  color: #fff;
}
.mkt-offer-row__select:hover { background: #DC2626; }
.mkt-offer-row__learn {
  background: #fff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}
.mkt-offer-row__learn:hover { background: #eff6ff; }
.mkt-offer-row__learn:disabled { opacity: 0.55; cursor: wait; }
.mkt-offer-row__details {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.mkt-offer-row__details:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.mkt-offer-row__details .fa-eye {
  font-size: 0.62rem;
  color: #64748b;
}
@media (max-width: 720px) {
  .mkt-offer-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .mkt-offer-row__mid,
  .mkt-offer-row__right { align-items: flex-start; text-align: left; }
  .mkt-offer-row__actions { justify-content: flex-start; }
}
.marketplace-card__reason {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1d4ed8;
}
.marketplace-meta {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}
.marketplace-meta p { margin: 0; }
.marketplace-empty__card {
  padding: 1.35rem 1.1rem;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  text-align: center;
}
.marketplace-empty__ico {
  width: 1.6rem;
  height: 1.6rem;
  color: #DC2626;
  margin-bottom: 0.55rem;
}
.marketplace-empty__card h2 {
  margin: 0 0 0.35rem;
  color: #0F172A;
  font-size: 0.95rem;
}
.marketplace-empty__card p {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}
.marketplace-error,
.marketplace-none {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.marketplace-error {
  background: #fef2f2;
  color: #DC2626;
  border: 1px solid #fecaca;
}
.marketplace-none {
  background: #f8fafc;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}
.marketplace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .marketplace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .marketplace-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.marketplace-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.marketplace-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.marketplace-card.is-own { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08); }
.marketplace-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}
.marketplace-card__title {
  margin: 0;
  color: #0F172A;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.marketplace-card__ref {
  flex: 0 0 auto;
  max-width: 42%;
  padding: 0.2rem 0.45rem;
  border-radius: 0.45rem;
  background: #f1f5f9;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketplace-card__seller {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 650;
}
.marketplace-card__seller .gx-ico { width: 0.8rem; height: 0.8rem; color: #94a3b8; }
.marketplace-card__own {
  margin-left: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
}
.marketplace-card__oem {
  margin: 0;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
}
.marketplace-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding-top: 0.55rem;
  border-top: 1px solid #f1f5f9;
}
.marketplace-card__label {
  display: block;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.marketplace-card__stats strong {
  color: #0F172A;
  font-size: 0.8rem;
  font-weight: 800;
}
.marketplace-card__foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.35rem;
}
.marketplace-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: #DC2626;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.marketplace-card__cta .gx-ico { width: 0.85rem; height: 0.85rem; }
.marketplace-card__cta:hover,
.marketplace-card__cta:focus-visible { background: #0F172A; outline: none; }
.marketplace-card__cta:active { transform: scale(0.97); }
.marketplace-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: end center;
}
@media (min-width: 720px) {
  .marketplace-modal { place-items: center; padding: 1rem; }
}
.marketplace-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.marketplace-modal__card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: 1.15rem 1.15rem 0 0;
  background: #fff;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.2);
}
.marketplace-modal__card--wide {
  width: min(42rem, 100%);
  max-height: min(90vh, 760px);
}
.marketplace-modal--details .marketplace-modal__backdrop,
.marketplace-modal--order .marketplace-modal__backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
}
.marketplace-modal--order {
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  align-content: center;
}
.mkt-order-sheet {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  margin: auto;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}
.mkt-order-sheet__inner {
  padding: 1.25rem 1.2rem 1.35rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .mkt-order-sheet__inner { padding: 1.55rem 1.6rem 1.7rem; gap: 1.15rem; }
}
.mkt-order-sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #f1f5f9;
}
.mkt-order-sheet__kicker {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border-radius: 0.55rem;
  background: #fef2f2;
  color: #DC2626;
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mkt-order-sheet__head h2 {
  margin: 0.35rem 0 0.2rem;
  color: #0F172A;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.3;
}
.mkt-order-sheet__ref {
  margin: 0;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.mkt-order-sheet__close {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.mkt-order-sheet__close:hover {
  background: #e2e8f0;
  color: #0F172A;
}
.mkt-order-sheet__close:active { transform: scale(0.95); }
.mkt-order-card {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: grid;
  gap: 0.55rem;
}
.mkt-order-card__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.74rem;
}
.mkt-order-card__row span {
  color: #64748b;
  font-weight: 700;
}
.mkt-order-card__row strong {
  color: #0F172A;
  font-weight: 850;
  text-align: right;
}
.mkt-order-card__row strong em {
  font-style: normal;
  color: #64748b;
  font-weight: 700;
}
.mkt-order-card__row .is-price { color: #DC2626; }
.mkt-order-card__modality {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem;
  align-items: center;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.74rem;
}
.mkt-order-card__modality > span {
  color: #64748b;
  font-weight: 700;
}
.mkt-order-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 0.5rem;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.25;
}
.mkt-order-pill.is-local {
  background: #ecfdf5;
  color: #047857;
}
.mkt-order-pill.is-escrow {
  background: #fffbeb;
  color: #b45309;
}
.mkt-order-pill.is-external {
  background: #fff7ed;
  color: #c2410c;
}
.mkt-order-pay-choice {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #f8fafc;
}
.mkt-order-pay-choice--card {
  margin: 0.15rem 0 0.35rem;
}
.mkt-order-pay-choice__title {
  margin: 0;
  color: #0F172A;
  font-size: 0.74rem;
  font-weight: 800;
}
.mkt-order-pay-choice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mkt-order-pay-option {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mkt-order-pay-option.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
}
.mkt-order-pay-option input {
  margin-top: 0.15rem;
}
.mkt-order-pay-option strong {
  display: block;
  color: #0F172A;
  font-size: 0.78rem;
  font-weight: 800;
}
.mkt-order-pay-option em {
  display: block;
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}
.mkt-order-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.15rem 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid #fde68a;
  border-radius: 0.85rem;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.4;
}
.mkt-order-disclaimer i {
  margin-top: 0.1rem;
  color: #d97706;
  flex-shrink: 0;
}
.mkt-order-disclaimer strong {
  font-weight: 850;
}
.mkt-order-form {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .mkt-order-form { grid-template-columns: 1fr 1fr; }
}
.mkt-order-field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  color: #0F172A;
  font-size: 0.74rem;
  font-weight: 800;
}
.mkt-order-field--full { grid-column: 1 / -1; }
.mkt-order-field__control {
  position: relative;
}
.mkt-order-field__control > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.72rem;
  pointer-events: none;
}
.mkt-order-field__control input,
.mkt-order-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
  color: #0F172A;
  font: inherit;
  font-weight: 800;
  padding: 0.72rem 0.85rem 0.72rem 2.25rem;
}
.mkt-order-field textarea {
  padding-left: 0.85rem;
  font-weight: 650;
  resize: vertical;
  min-height: 4.5rem;
}
.mkt-order-field__control input.is-offer { color: #DC2626; }
.mkt-order-field__control input:focus,
.mkt-order-field textarea:focus {
  outline: none;
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
  background: #fff;
}
.mkt-order-field__hint {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
}
.mkt-order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: #0F172A;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}
.mkt-order-total__label {
  margin: 0 0 0.15rem;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mkt-order-total__value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
  color: #fff;
}
.mkt-order-total__badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.6rem;
  border-radius: 0.55rem;
  font-size: 0.62rem;
  font-weight: 850;
  background: #DC2626;
  color: #fff;
}
.mkt-order-total__badge.is-local { background: #059669; }
.mkt-order-total__badge.is-external { background: #ea580c; }
.mkt-order-msg {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #DC2626;
  font-size: 0.74rem;
  font-weight: 750;
}
.mkt-order-msg.is-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.mkt-order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding-top: 0.15rem;
}
.mkt-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 0.85rem;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.mkt-order-btn:active:not(:disabled) { transform: scale(0.95); }
.mkt-order-btn:disabled { opacity: 0.65; cursor: wait; }
.mkt-order-btn--ghost {
  background: #f1f5f9;
  color: #334155;
}
.mkt-order-btn--ghost:hover:not(:disabled) { background: #e2e8f0; }
.mkt-order-btn--primary {
  background: #DC2626;
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
}
.mkt-order-btn--primary:hover:not(:disabled) {
  background: #0F172A;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
}
@media (max-width: 420px) {
  .mkt-order-actions { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
  .marketplace-modal__card {
    border-radius: 1.15rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  }
}
.mkt-details__brand {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.18rem 0.45rem;
  border-radius: 0.4rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mkt-details__loading {
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}
.mkt-details__grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .mkt-details__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.mkt-details__gallery {
  display: grid;
  gap: 0.55rem;
}
.mkt-details__hero {
  min-height: 11rem;
  display: grid;
  place-items: center;
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.mkt-details__hero img {
  max-height: 10rem;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0.65rem;
}
.mkt-details__empty-photo {
  text-align: center;
  color: #94a3b8;
}
.mkt-details__empty-photo .fa-image {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  display: block;
}
.mkt-details__empty-photo p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
}
.mkt-details__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mkt-details__thumb {
  width: 3.1rem;
  height: 3.1rem;
  padding: 0.15rem;
  border-radius: 0.55rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.mkt-details__thumb.is-active {
  border-color: #DC2626;
  box-shadow: 0 0 0 1px #DC2626;
}
.mkt-details__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.35rem;
}
.mkt-details__specs {
  display: grid;
  gap: 0.55rem;
  font-size: 0.78rem;
}
.mkt-details__specs p {
  margin: 0;
  display: grid;
  gap: 0.15rem;
}
.mkt-details__specs span {
  color: #64748b;
  font-weight: 700;
  font-size: 0.68rem;
}
.mkt-details__specs strong {
  color: #0F172A;
  font-weight: 850;
}
.mkt-details__specs .is-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.mkt-details__specs .is-price { color: #DC2626; }
.mkt-details__specs .is-stock { color: #059669; }
.mkt-details__section {
  padding-top: 0.85rem;
  margin-top: 0.35rem;
  border-top: 1px solid #e2e8f0;
}
.mkt-details__section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 850;
  color: #0F172A;
}
.mkt-details__xrefs,
.mkt-details__fitment {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mkt-details__xrefs li,
.mkt-details__fitment li {
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
}
.mkt-details__xrefs li strong { color: #0F172A; margin-right: 0.3rem; }
.mkt-details__xrefs li .is-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.mkt-details__xrefs li em {
  margin-left: 0.35rem;
  font-style: normal;
  color: #64748b;
  text-transform: uppercase;
  font-size: 0.58rem;
}
.mkt-details__empty,
.mkt-details__compat {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 650;
}
.mkt-details__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}
.marketplace-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.marketplace-modal__head h2 {
  margin: 0;
  color: #0F172A;
  font-size: 1.05rem;
}
.marketplace-modal__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0F172A;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.marketplace-modal__close:hover { background: #DC2626; color: #fff; }
.marketplace-modal__part {
  margin: 0.85rem 0 0.25rem;
  color: #0F172A;
  font-size: 0.95rem;
  font-weight: 800;
}
.marketplace-modal__meta {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}
.marketplace-modal__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}
.marketplace-modal__price strong { color: #0F172A; font-size: 0.95rem; }
.marketplace-modal__field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  color: #0F172A;
  font-size: 0.78rem;
  font-weight: 750;
}
.marketplace-modal__field input,
.marketplace-modal__field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 600;
  color: #0F172A;
}
.marketplace-modal__field input:focus,
.marketplace-modal__field textarea:focus {
  outline: none;
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.marketplace-modal__msg {
  margin: 0 0 0.65rem;
  color: #0F766E;
  font-size: 0.78rem;
  font-weight: 700;
}
.marketplace-modal__submit {
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.85rem;
  background: #0F172A;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}
.marketplace-modal__submit:hover:not(:disabled),
.marketplace-modal__submit:focus-visible:not(:disabled) {
  background: #DC2626;
  outline: none;
}
.marketplace-modal__submit:disabled { opacity: 0.65; cursor: wait; }
.fcc-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
@media (max-width: 720px) {
  .mkt-cta--header span { display: none; }
  .mkt-cta--header { padding: 0.45rem; min-width: 2.15rem; }
}
.marketplace-card__own-hint {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}
.marketplace-modal__summary {
  margin: 0.75rem 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: #f8fafc;
  font-size: 0.78rem;
  color: #64748b;
}
.marketplace-modal__summary p { margin: 0 0 0.3rem; }
.marketplace-modal__summary p:last-child { margin-bottom: 0; }
.marketplace-modal__summary strong { color: #0F172A; }
.marketplace-modal__em { color: #0F172A; font-weight: 800; }
.marketplace-modal__actions {
  display: flex;
  gap: 0.55rem;
  padding-top: 0.35rem;
}
.marketplace-modal__cancel,
.marketplace-modal__submit {
  flex: 1;
  min-height: 2.6rem;
  border: 0;
  border-radius: 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.marketplace-modal__cancel {
  background: #f1f5f9;
  color: #334155;
}
.marketplace-modal__cancel:hover { background: #e2e8f0; }
.marketplace-modal__submit { width: auto; }
.marketplace-modal__msg.is-ok { color: #047857; }

/* Admin Marketplace supervision */
.mkt-admin__kicker {
  margin: 0 0 0.25rem;
  color: #DC2626;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mkt-admin__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
@media (min-width: 900px) {
  .mkt-admin__kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.mkt-admin__kpi {
  padding: 0.95rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.mkt-admin__kpi span {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mkt-admin__kpi strong {
  display: block;
  margin-top: 0.35rem;
  color: #0F172A;
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.2;
}
.mkt-admin__kpi small {
  display: block;
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
}
.mkt-admin__kpi--accent { border-color: rgba(220, 38, 38, 0.25); background: #fff7f7; }
.mkt-admin__kpi--warn { border-color: #fde68a; background: #fffbeb; }
.mkt-admin__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 960px) {
  .mkt-admin__grid { grid-template-columns: 1fr 1fr; }
}
.mkt-admin__panel { margin-bottom: 1rem; }
.mkt-admin__panel h2 {
  margin: 0 0 0.75rem;
  color: #0F172A;
  font-size: 1rem;
}
.mkt-admin__table-wrap { overflow-x: auto; }
.mkt-admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.mkt-admin__table th,
.mkt-admin__table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}
.mkt-admin__table th {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mkt-admin__table strong { color: #0F172A; display: block; }
.mkt-admin__table small { color: #94a3b8; font-weight: 650; }
.mkt-admin__badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
}
.mkt-admin__badge.is-pending { background: #fff7ed; color: #c2410c; }
.mkt-admin__badge.is-ok { background: #eff6ff; color: #1d4ed8; }
.mkt-admin__badge.is-done { background: #ecfdf5; color: #047857; }
.mkt-admin__badge.is-cancel { background: #f1f5f9; color: #64748b; }
.mkt-admin__badge.is-dispute { background: #fef2f2; color: #DC2626; }
.marketplace-b2b__orders-link {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: #DC2626;
  text-decoration: none;
}
.marketplace-b2b__orders-link:hover { text-decoration: underline; }
.marketplace-modal__route { margin: 0.35rem 0 0; }
.marketplace-modal__route-pill {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}
.marketplace-modal__route-pill.is-local {
  background: #ecfdf5;
  color: #047857;
}
.marketplace-modal__route-pill.is-escrow {
  background: #fff7ed;
  color: #c2410c;
}
.marketplace-orders__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.marketplace-orders__board {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.marketplace-orders__cards {
  display: grid;
  gap: 0.9rem;
}
.mkt-order-card {
  padding: 1.05rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}
.mkt-order-card.is-highlight {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}
.mkt-order-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.mkt-order-card__ref {
  display: inline-block;
  margin-bottom: 0.2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.4rem;
  background: #0F172A;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
}
.mkt-order-card h2 {
  margin: 0;
  color: #0F172A;
  font-size: 0.98rem;
  line-height: 1.3;
}
.mkt-order-card__seller {
  margin: 0.3rem 0 0;
  display: grid;
  gap: 0.15rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}
.mkt-order-card__seller strong { color: #0F172A; }
.mkt-order-card__route {
  display: inline-block;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
}
.mkt-order-card__route.is-local { background: #ecfdf5; color: #047857; }
.mkt-order-card__route.is-escrow { background: #fff7ed; color: #c2410c; }
.mkt-order-card__route.is-external { background: #fff7ed; color: #9a3412; }
.mkt-order-card__badge.is-external {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}
.mkt-act--external {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}
.mkt-act--external:hover {
  background: #ffedd5;
}
.mkt-declare {
  position: relative;
}
.mkt-declare > summary {
  list-style: none;
  cursor: pointer;
}
.mkt-declare > summary::-webkit-details-marker { display: none; }
.mkt-act--declare {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.mkt-declare__form {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 0.35rem);
  width: min(18rem, 86vw);
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.mkt-declare__form label {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
}
.mkt-declare__form input[type="number"] {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
  color: #0F172A;
}
.mkt-declare__hint {
  margin: 0;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.35;
}
.mkt-declare-done {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.65rem;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.68rem;
  font-weight: 750;
}
.sord-declare .mkt-declare__form {
  left: 0;
  right: auto;
}
.mkt-order-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}
.mkt-order-card__badge.is-pending { background: #fff7ed; color: #c2410c; }
.mkt-order-card__badge.is-counter { background: #fef2f2; color: #DC2626; }
.mkt-order-card__badge.is-ok { background: #eff6ff; color: #1d4ed8; }
.mkt-order-card__badge.is-paid { background: #ecfdf5; color: #047857; }
.mkt-order-card__badge.is-done { background: #0F172A; color: #fff; }
.mkt-order-card__badge.is-cancel { background: #f1f5f9; color: #64748b; }
.mkt-order-card__prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.2rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}
.mkt-order-card__prices > div {
  padding: 0.6rem 0.7rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.mkt-order-card__prices span {
  display: block;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mkt-order-card__prices strong {
  color: #0F172A;
  font-size: 0.86rem;
  font-weight: 850;
}
.mkt-order-card__prices strong.is-offer { color: #DC2626; }
.mkt-order-card__prices strong.is-counter { color: #b45309; }
.mkt-order-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}
.mkt-act-form {
  margin: 0;
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
}
.mkt-act-form--grow {
  flex: 0 0 auto;
}
.mkt-act-form--grow .mkt-act {
  width: auto;
}
.mkt-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 0;
  width: auto;
  flex: 0 0 auto;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 0.7rem;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.mkt-act:active { transform: scale(0.96); }
.mkt-act i { font-size: 0.625rem; }
.mkt-act--deliver {
  background: #059669;
  color: #fff;
}
.mkt-act--deliver:hover {
  background: #047857;
  color: #fff;
}
.mkt-act--pay {
  background: #DC2626;
  color: #fff;
}
.mkt-act--pay:hover {
  background: #b91c1c;
  color: #fff;
}
.mkt-act--accept {
  background: #0F172A;
  color: #fff;
}
.mkt-act--accept:hover {
  background: #DC2626;
  color: #fff;
}
.mkt-act--chat {
  background: #0F172A;
  color: #fff;
}
.mkt-act--chat:hover {
  background: #DC2626;
  color: #fff;
}
.mkt-act--counter {
  background: #f1f5f9;
  color: #0F172A;
  box-shadow: none;
}
.mkt-act--counter:hover {
  background: #e2e8f0;
  color: #0F172A;
}
.mkt-act--dispute {
  background: #fef2f2;
  color: #DC2626;
  box-shadow: none;
}
.mkt-act--dispute:hover {
  background: #fee2e2;
  color: #b91c1c;
}
.mkt-act--receipt {
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
}
.mkt-act--receipt:hover {
  background: #e2e8f0;
  color: #0F172A;
}
.mkt-act--receipt i { color: #64748b; }
.mkt-receipt__kicker {
  margin: 0.35rem 0 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #DC2626;
}
@media (min-width: 640px) {
  .mkt-order-card {
    padding: 1.2rem 1.25rem;
    border-radius: 1.5rem;
  }
  .marketplace-orders__board {
    padding: 1.15rem;
  }
}
.mkt-nego {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
}
@media (min-width: 720px) {
  .mkt-nego { place-items: center; padding: 1rem; }
}
.mkt-nego__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.mkt-nego__panel {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: min(92vh, 40rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.1rem 1.1rem 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}
@media (min-width: 720px) {
  .mkt-nego__panel {
    border-radius: 1.1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  }
}
.mkt-nego__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: #0F172A;
  color: #fff;
}
.mkt-nego__kicker {
  margin: 0;
  color: #fca5a5;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mkt-nego__head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
}
.mkt-nego__meta {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 650;
}
.mkt-nego__head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.mkt-nego__offer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.mkt-nego__offer-toggle:hover {
  background: rgba(251, 191, 36, 0.28);
  color: #fde68a;
}
.mkt-nego__offer-toggle i {
  font-size: 0.68rem;
}
@media (max-width: 380px) {
  .mkt-nego__offer-toggle span { display: none; }
  .mkt-nego__offer-toggle {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }
}
.mkt-nego__close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.mkt-nego__prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.mkt-nego__prices span {
  display: block;
  color: #94a3b8;
  font-size: 0.6rem;
  font-weight: 750;
  text-transform: uppercase;
}
.mkt-nego__prices strong {
  color: #0F172A;
  font-size: 0.82rem;
  font-weight: 850;
}
.mkt-nego__prices strong.is-offer,
.mkt-nego__prices strong.is-counter { color: #DC2626; }
.mkt-nego__thread {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  min-height: 16rem; /* ~h-64 */
}
@media (min-width: 480px) {
  .mkt-nego__thread {
    min-height: 18rem; /* ~h-72 */
  }
}
.mkt-nego__empty {
  margin: 0;
  color: #94a3b8;
  font-size: 0.84rem;
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.mkt-nego__bubble {
  max-width: 85%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: #f1f5f9;
  color: #0F172A;
}
.mkt-nego__bubble.is-mine {
  justify-self: end;
  background: #0F172A;
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.mkt-nego__bubble.is-theirs {
  justify-self: start;
  border-bottom-left-radius: 0.25rem;
}
.mkt-nego__bubble p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 650;
}
.mkt-nego__bubble time {
  display: block;
  margin-top: 0.3rem;
  opacity: 0.65;
  font-size: 0.64rem;
}
.mkt-nego__price-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #DC2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
}
.mkt-nego__composer {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  display: grid;
  gap: 0.55rem;
}
.mkt-nego__offer-box {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #fde68a;
  border-radius: 0.85rem;
  background: #fffbeb;
}
.mkt-nego__offer-hint {
  margin: 0;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
}
.mkt-nego-offer-enter,
.mkt-nego-offer-leave {
  transition: opacity 0.18s ease, transform 0.18s ease, max-height 0.18s ease;
  overflow: hidden;
}
.mkt-nego-offer-enter-start,
.mkt-nego-offer-leave-end {
  opacity: 0;
  transform: translateY(0.35rem);
  max-height: 0;
}
.mkt-nego-offer-enter-end,
.mkt-nego-offer-leave-start {
  opacity: 1;
  transform: translateY(0);
  max-height: 12rem;
}
.mkt-nego__field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 750;
  color: #64748b;
}
.mkt-nego__field input,
.mkt-nego__field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: #0F172A;
  background: #fff;
}
.mkt-nego__field input:focus,
.mkt-nego__field textarea:focus {
  outline: 2px solid rgba(220, 38, 38, 0.25);
  border-color: #DC2626;
}
.mkt-nego__send {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}
.mkt-nego__send .btn-primary {
  background: #DC2626;
  border-color: #DC2626;
}
.mkt-nego__hint {
  margin: 0;
  color: #DC2626;
  font-size: 0.75rem;
  font-weight: 700;
}
.marketplace-orders__panel { margin-top: 0.5rem; }
.marketplace-orders__table tr.is-highlight {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  background: #fff7f7;
}
.marketplace-orders__pay { margin: 0; }
.marketplace-orders__held {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  color: #1d4ed8;
}
.mkt-admin__panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.mkt-admin__panel-head h2 { margin: 0; }
.mkt-admin__filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mkt-admin__filters .btn.is-active {
  background: #0F172A;
  color: #fff;
  border-color: #0F172A;
}
.mkt-admin__tx-actions { min-width: 14rem; }
.mkt-admin__tx-form {
  display: grid;
  gap: 0.35rem;
}
.mkt-admin__tx-form input[type="text"] {
  width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.75rem;
}
.sord-b2b-inbox {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sord-b2b-inbox h2 {
  margin: 0 0 0.65rem;
  color: #0F172A;
  font-size: 0.95rem;
}
.sord-b2b-inbox__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.sord-b2b-inbox__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
}
.sord-b2b-inbox__list strong { color: #0F172A; }
.sord-b2b-inbox__list span { color: #64748b; font-weight: 650; }
.sord-b2b-inbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.sord-chat-panel { max-width: 32rem; }
.sord-chat-counter {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.sord-chat-counter .mkt-nego__field { flex: 1; margin: 0; }
.sord-btn-propose {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #fff !important;
  white-space: nowrap;
}
.sord-btn-propose:hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
}
.sord-chat-send {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.sord-chat-input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  color: #0F172A;
}
.sord-chat-input:focus {
  outline: none;
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.mkt-nego__accept-btn {
  width: 100%;
  background: #0F172A !important;
  border-color: #0F172A !important;
}
.mkt-nego__accept-btn:hover {
  background: #DC2626 !important;
  border-color: #DC2626 !important;
}
.marketplace-bot {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 650;
}
.marketplace-bot p { margin: 0; line-height: 1.4; }
.marketplace-bot__badge {
  flex: 0 0 auto;
  min-width: 1.7rem;
  height: 1.4rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.45rem;
  background: #DC2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 850;
}
.marketplace-card__geo {
  margin-left: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
}
.marketplace-card__fx {
  margin: 0;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 700;
}
.marketplace-modal__offer {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid #fecaca;
  background: #fff7f7;
}
.marketplace-modal__offer-input {
  color: #DC2626 !important;
  font-weight: 850 !important;
}
.marketplace-modal__offer-hint {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 650;
}
.sord-b2b-tag {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #0F172A;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}
.sord-offer-label {
  display: block;
  margin-top: 0.25rem;
  color: #DC2626;
  font-weight: 750;
}
.sord-offer-pill {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fef2f2;
  color: #DC2626;
  font-size: 0.62rem;
  font-weight: 800;
}

/* ?? Admin cross-references import ?? */
.xref-admin__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}
@media (min-width: 720px) {
  .xref-admin__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.xref-kpi {
  padding: 0.85rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.xref-kpi span {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.xref-kpi strong {
  display: block;
  margin-top: 0.25rem;
  color: #0F172A;
  font-size: 1.35rem;
  font-weight: 850;
}
.xref-admin__import,
.xref-admin__recent {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}
.xref-admin__import h2,
.xref-admin__recent h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.xref-admin__form {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0;
  max-width: 36rem;
}
.xref-admin__file {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: #0F172A;
  font-size: 0.78rem;
  font-weight: 750;
}
.xref-admin__file input[type="file"] {
  padding: 0.55rem 0.65rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  font: inherit;
}
.xref-admin__file small {
  color: #94a3b8;
  font-weight: 650;
}
.xref-admin__hint {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.4;
}
.xref-admin__hint i { color: #2563eb; margin-top: 0.15rem; }
.xref-admin__hint p { margin: 0 0 0.35rem; }
.xref-admin__hint p:last-child { margin: 0; }
.xref-admin__table code {
  font-size: 0.78rem;
  font-weight: 750;
  color: #0F172A;
}
.xref-admin__table small {
  display: block;
  color: #94a3b8;
  font-weight: 650;
}
.xref-type {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}
.xref-type--exact { background: #ecfdf5; color: #047857; }
.xref-type--replacement { background: #fff7ed; color: #c2410c; }
.xref-type--conditional { background: #eff6ff; color: #1d4ed8; }

/* ?? S?lecteur contexte Super Admin ?? */
.admin-ctx-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
}
.admin-ctx-switch select {
  max-width: 11.5rem;
  min-height: 2.1rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #f8fafc;
  color: #0F172A;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}
.admin-ctx-switch select:focus {
  outline: 2px solid rgba(220, 38, 38, 0.25);
  border-color: #DC2626;
}
@media (max-width: 900px) {
  .admin-ctx-switch {
    display: none;
  }
}
/* ???????????????????????????????????????????????
   Super Admin Cockpit ? Light SaaS 2026 (.sa-*)
   ??????????????????????????????????????????????? */
.sa-shell-body {
  background: #f8fafc !important;
  color: #0f172a;
}
.sa-shell-body .site-header--admin {
  background: #fff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.sa-shell-body .site-header--admin .brand {
  gap: 0.65rem;
}
.sa-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-search--admin {
  flex: 1 1 18rem;
  max-width: 28rem;
}
.sa-locale {
  position: relative;
  margin-left: 0.35rem;
}
.sa-locale > summary {
  list-style: none;
}
.sa-locale > summary::-webkit-details-marker {
  display: none;
}
.sa-locale__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}
.sa-locale__chev {
  font-size: 0.6rem;
  color: #94a3b8;
}
.sa-locale__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 40;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.sa-locale__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.sa-locale__menu button.is-active,
.sa-locale__menu button:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
}
.sa-locale__menu button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sa-shell {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sa-shell__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.sa-pillar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  color: #64748b;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.sa-pillar:hover {
  background: #f8fafc;
  color: #0f172a;
}
.sa-pillar.is-active {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.sa-pillar i {
  font-size: 0.85rem;
  opacity: 0.9;
}
.sa-shell__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.15rem;
  border-top: 1px solid #f1f5f9;
}
.sa-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.sa-chip:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
}
.sa-chip.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.sa-main {
  padding: 1.25rem 0 3rem;
  min-height: 70vh;
}
.sa-wrap {
  max-width: 1180px;
}
.sa-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.sa-hero__kicker {
  margin: 0 0 0.35rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sa-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sa-hero__lead {
  margin: 0.45rem 0 0;
  max-width: 36rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}
.sa-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sa-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 750;
}
.sa-pill--soft {
  background: #f8fafc;
  color: #64748b;
}

.sa-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.sa-split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 0.85rem;
}
.sa-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 1rem;
  padding: 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.sa-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.sa-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.sa-card__top > span,
.sa-card__top h2 {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.sa-card__top h2 {
  color: #0f172a;
  font-size: 0.95rem;
}
.sa-card__value {
  display: block;
  color: #0f172a;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.sa-card__value small {
  font-size: 0.55em;
  font-weight: 750;
  color: #94a3b8;
}
.sa-card__meta {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}
.sa-card__cta {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}
.sa-link {
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
}
.sa-link:hover {
  text-decoration: underline;
}
.sa-empty {
  margin: 0.5rem 0 0;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 650;
}

.sa-spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.6rem;
}
.sa-spark i {
  display: block;
  width: 4px;
  height: var(--h, 40%);
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
  opacity: 0.85;
}

.sa-mini-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
}
.sa-mini-list--stack {
  grid-template-columns: 1fr;
}
.sa-mini-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}
.sa-mini-list b {
  margin-left: auto;
  color: #0f172a;
  font-weight: 800;
}
.sa-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex: 0 0 auto;
}
.sa-dot--ok { background: #10b981; }
.sa-dot--warn { background: #f59e0b; }
.sa-dot--danger { background: #ef4444; }
.sa-dot--info { background: #3b82f6; }

.sa-geo-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.sa-geo-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
}
.sa-geo-list__label strong {
  display: block;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
}
.sa-geo-list__label span {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
}
.sa-geo-list__bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.sa-geo-list__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93c5fd, #2563eb);
}
.sa-geo-list b {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 850;
  min-width: 1.5rem;
  text-align: right;
}

@media (max-width: 1100px) {
  .sa-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sa-split {
    grid-template-columns: 1fr 1fr;
  }
  .sa-split .sa-card--wide {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .sa-badge {
    display: none;
  }
  .sa-kpi-grid,
  .sa-split {
    grid-template-columns: 1fr;
  }
  .sa-geo-list li {
    grid-template-columns: 1fr auto;
  }
  .sa-geo-list__bar {
    grid-column: 1 / -1;
  }
  .header-search--admin {
    order: 5;
    max-width: none;
    flex-basis: 100%;
  }
}

.sa-shell-body .admin-cockpit {
  background: transparent;
  padding-top: 1.25rem;
}
.sa-shell-body .admin-cockpit > .container {
  max-width: 1180px;
}

.sa-header-pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.65rem;
  padding: 0.2rem;
  border-radius: 0.95rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.sa-header-pillars .sa-pillar {
  padding: 0.4rem 0.7rem;
  font-size: 0.74rem;
  border-radius: 0.7rem;
}
.sa-shell {
  padding: 0.55rem 0.75rem;
}
.sa-shell__subs {
  border-top: 0;
  padding-top: 0;
}
@media (max-width: 1100px) {
  .sa-header-pillars span {
    display: none;
  }
  .sa-header-pillars .sa-pillar {
    padding: 0.45rem 0.55rem;
  }
}
@media (max-width: 720px) {
  .sa-header-pillars {
    order: 4;
    margin-left: 0;
    flex-basis: 100%;
    justify-content: stretch;
  }
  .sa-header-pillars .sa-pillar {
    flex: 1 1 0;
    justify-content: center;
  }
  .sa-header-pillars span {
    display: inline;
    font-size: 0.68rem;
  }
}

/* ???????????????????????????????????????????????
   Tech Center ? documentation atelier (.tc-*)
   ??????????????????????????????????????????????? */
.tc-wrap { max-width: 1280px; }
.tc-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  align-items: flex-end;
}
.tc-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}
.tc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
body.tc-modal-open { overflow: hidden; }
.tc-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.tc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tc-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  padding: 1.25rem 1.3rem 1.15rem;
}
.tc-modal__panel--wide { width: min(820px, 100%); }
.tc-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.tc-modal__kicker {
  margin: 0;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tc-modal__head h2 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 850;
}
.tc-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
}
.tc-modal__close:hover { background: #e2e8f0; }
.tc-media-source {
  margin: 0.85rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.45rem;
}
.tc-media-source legend {
  padding: 0 0.35rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tc-media-source__opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}
.tc-media-source__opt.is-on {
  border-color: #0f172a;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.tc-media-source__opt input { accent-color: #0f172a; }
.tc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.tc-stat span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tc-stat strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 850;
}
.tc-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 0.9rem;
  align-items: start;
}
.tc-sidebar {
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
}
.tc-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.tc-sidebar__head h2 {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
}
.tc-filter {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 750;
  color: #64748b;
}
.tc-filter input,
.tc-type-filters input,
.tc-type-filters select,
.tc-form-grid input,
.tc-form-grid select,
.tc-form-grid textarea,
.tc-torque-row input,
.tc-step-row input,
.tc-step-row textarea {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.85rem;
}
.tc-form-grid textarea,
.tc-step-row textarea { min-height: 4rem; resize: vertical; }
.tc-tree { display: grid; gap: 0.25rem; margin-bottom: 0.85rem; }
.tc-tree__btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.4rem 0.35rem;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  border-radius: 0.55rem;
}
.tc-tree__btn:hover { background: #f8fafc; }
.tc-tree__btn--model { padding-left: 0.85rem; font-weight: 650; color: #334155; }
.tc-tree__btn i { width: 0.85rem; color: #94a3b8; font-size: 0.65rem; }
.tc-tree__engines { display: grid; gap: 0.2rem; padding: 0.15rem 0 0.35rem 1.4rem; }
.tc-tree__engine {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.tc-tree__engine small { color: #94a3b8; font-weight: 650; }
.tc-tree__engine.is-active,
.tc-tree__engine:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.tc-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}
.tc-systems__label {
  flex: 1 0 100%;
  margin: 0 0 0.25rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tc-systems .sa-chip { gap: 0.35rem; }
.tc-type-filters {
  display: grid;
  gap: 0.4rem;
}
.tc-reader { min-width: 0; }
.tc-doc-list__head,
.tc-panel__head,
.tc-doc__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.tc-doc-list__head h2,
.tc-panel h2,
.tc-doc__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 850;
}
.tc-doc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.tc-doc-items a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.tc-doc-items a:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.tc-doc-items strong { display: block; color: #0f172a; font-size: 0.92rem; }
.tc-doc-items p { margin: 0.2rem 0 0; }
.tc-muted { color: #64748b; font-size: 0.8rem; font-weight: 650; }
.tc-doc__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tc-doc__head { margin-bottom: 1rem; }
.tc-viewer {
  margin: 0 0 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  overflow: hidden;
  background: #0f172a;
}
.tc-viewer__frame {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #fff;
}
.tc-viewer__img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #0f172a;
}
.tc-block { margin: 0 0 1rem; }
.tc-block h3 {
  margin: 0 0 0.4rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 850;
}
.tc-block p { margin: 0; color: #334155; line-height: 1.5; white-space: pre-wrap; }
.tc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.tc-table th,
.tc-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.tc-table th { color: #64748b; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tc-steps { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.65rem; }
.tc-steps strong { color: #0f172a; }
.tc-steps p { margin: 0.2rem 0 0; color: #475569; }
.tc-panel { margin-bottom: 1rem; }
.tc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.tc-form-grid label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 750;
  color: #64748b;
}
.tc-span-2 { grid-column: 1 / -1; }
.tc-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.tc-subcard {
  margin: 0 0 0.85rem;
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.85rem;
  background: #f8fafc;
}
.tc-subcard h3 {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: #0f172a;
}
.tc-links-panel { border-style: solid; border-color: #94a3b8; }
.tc-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.35rem 0.55rem;
}
.tc-check {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.tc-check input { margin-top: 0.15rem; }
.tc-check--inline { display: inline-flex; align-items: center; font-weight: 700; }
.tc-link-motors__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.tc-family-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.tc-motor-scroll {
  max-height: 14rem;
  overflow: auto;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
  display: grid;
  gap: 0.55rem;
}
.tc-motor-group { display: grid; gap: 0.25rem; }
.tc-motor-group__title {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tc-links-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: #475569;
  max-height: 10rem;
  overflow: auto;
}
.tc-links-list code {
  font-size: 0.72rem;
  background: #e2e8f0;
  padding: 0.05rem 0.3rem;
  border-radius: 0.25rem;
}
.tc-doc-links { margin-top: 0.65rem; }
.tc-torque-row,
.tc-step-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.tc-step-row { grid-template-columns: 1fr; }
.tc-delete-form { margin-top: 0.75rem; }
.tc-seed { margin-top: 1rem; }
.btn-sm { min-height: 2rem; padding: 0.3rem 0.65rem; font-size: 0.75rem; }

@media (max-width: 980px) {
  .tc-layout { grid-template-columns: 1fr; }
  .tc-sidebar { position: static; max-height: none; }
  .tc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-form-grid { grid-template-columns: 1fr; }
  .tc-torque-row { grid-template-columns: 1fr; }
}
@media print {
  .site-header,
  .sa-shell,
  .tc-hero,
  .tc-stats,
  .tc-sidebar,
  .no-print,
  .tc-doc__toolbar,
  .skip-link { display: none !important; }
  .tc-layout { display: block; }
  .tc-viewer__frame { min-height: 50vh; }
  body { background: #fff !important; }
}

/* ???????????????????????????????????????????????
   Intelligence Center ? IA & analytics (.ic-*)
   ??????????????????????????????????????????????? */
.ic-wrap { max-width: 1240px; }
.ic-hero {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
}
.ic-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}
.intel-panel {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.intel-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 1.15rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.55));
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.intel-dropzone.is-drag,
.intel-dropzone:hover {
  border-color: var(--verman-red, #e63946);
  transform: translateY(-1px);
}
.intel-dropzone.has-file {
  border-color: var(--verman-red, #e63946);
  background: rgba(230, 57, 70, 0.04);
}
.intel-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.intel-dropzone__label {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  cursor: pointer;
  color: #64748b;
}
.intel-dropzone__label i {
  font-size: 2rem;
  color: #94a3b8;
}
.intel-dropzone__label strong {
  color: #0f172a;
  font-size: 0.85rem;
}
.intel-dropzone__label span {
  font-size: 0.7rem;
  max-width: 36rem;
}
.intel-progress {
  margin-top: 1rem;
}
.intel-progress__bar {
  height: 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.intel-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--verman-red, #e63946), #0f172a);
  transition: width 0.25s ease;
}
.ic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
}
.ic-kpi {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.ic-kpi__card span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ic-kpi__card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 850;
}
.ic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.ic-grid--2 { grid-template-columns: 1fr 1fr; }
.ic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ic-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 850;
}
.ic-muted { color: #64748b; font-size: 0.8rem; font-weight: 650; }
.ic-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.ic-feed li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}
.ic-feed strong { color: #0f172a; font-size: 0.88rem; }
.ic-feed p { margin: 0.2rem 0 0; }
.ic-pill-ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.ic-pill-warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.ic-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.ic-rank li {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.ic-rank__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.ic-rank b { color: #0f172a; font-size: 0.85rem; white-space: nowrap; }
.ic-rank b small { color: #94a3b8; font-weight: 700; }
.ic-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ic-bars li {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
}
.ic-bars__label strong { display: block; color: #0f172a; font-size: 0.8rem; }
.ic-bars__label span { color: #94a3b8; font-size: 0.68rem; font-weight: 700; }
.ic-bars__track {
  height: 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.ic-bars__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #67e8f9, #2563eb);
}
.ic-cost { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.ic-cost li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
.ic-cost strong { color: #0f172a; font-size: 0.9rem; }
.ic-table-wrap { overflow-x: auto; }
.ic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.ic-table th,
.ic-table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.ic-table th {
  color: #64748b;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ic-resolve,
.ic-sync-form,
.ic-score-form,
.ic-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.ic-mini,
.ic-score-form input[type="number"] {
  min-height: 2rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  max-width: 7.5rem;
}
.ic-score-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.ic-score-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
}
.ic-sync-block {
  margin: 0 0 0.9rem;
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  background: #f8fafc;
}
.ic-sync-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: #0f172a;
}
.ic-code {
  display: block;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.72rem;
  overflow-x: auto;
}
@media (max-width: 1100px) {
  .ic-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ic-grid,
  .ic-grid--2 { grid-template-columns: 1fr; }
  .ic-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ic-bars li { grid-template-columns: 1fr auto; }
  .ic-bars__track { grid-column: 1 / -1; }
}

/* ???????????????????????????????????????????????
   AI Center ? packages .vpkg & testing lab (.aic-*)
   ??????????????????????????????????????????????? */
.aic-wrap { max-width: 1200px; }
.aic-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  align-items: flex-end;
}
.aic-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}
.aic-hero__status { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.aic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
}
.aic-tabs .sa-chip {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.aic-flash {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.aic-flash.is-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.aic-flash.is-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.aic-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.aic-kpi__card span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.aic-kpi__card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 850;
}
.aic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.aic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.aic-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 850;
}
.aic-muted { color: #64748b; font-size: 0.82rem; font-weight: 650; }
.aic-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; word-break: break-all; }
.aic-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.aic-meta li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.84rem;
}
.aic-meta span { color: #64748b; font-weight: 700; }
.aic-meta b { color: #0f172a; font-weight: 800; text-align: right; }
.aic-health { list-style: none; margin: 0 0 0.85rem; padding: 0; display: grid; gap: 0.65rem; }
.aic-health li { display: flex; gap: 0.65rem; align-items: flex-start; }
.aic-health i {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  flex: 0 0 auto;
}
.aic-health i.ok { background: #10b981; }
.aic-health i.warn { background: #f59e0b; }
.aic-health i.muted { background: #cbd5e1; }
.aic-health strong { display: block; color: #0f172a; font-size: 0.88rem; }
.aic-health p { margin: 0.15rem 0 0; }
.aic-pill-ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.aic-pill-warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.aic-pill-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.aic-upload { display: grid; gap: 0.75rem; }
.aic-drop {
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  padding: 1rem;
  border: 1.5px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.aic-drop:hover { border-color: #93c5fd; background: #eff6ff; }
.aic-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 650;
}
.aic-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; max-height: 28rem; overflow: auto; }
.aic-versions li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}
.aic-versions strong { color: #0f172a; }
.aic-versions p { margin: 0.15rem 0 0; }
.aic-versions__actions { display: flex; align-items: center; gap: 0.35rem; }
.aic-lab-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.aic-lab-form input {
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font: inherit;
}
.aic-lab-results { display: grid; gap: 0.55rem; }
.aic-hit {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
}
.aic-hit header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.aic-hit__excerpt {
  margin: 0.35rem 0 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.aic-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.aic-feed li {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 900px) {
  .aic-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aic-grid { grid-template-columns: 1fr; }
  .aic-lab-form { grid-template-columns: 1fr; }
}

/* ???????????????????????????????????????????????
   AI Testing Lab ? banc d'essai RAG (.atl-*)
   ??????????????????????????????????????????????? */
.atl-prompt { margin-bottom: 0.85rem; }
.atl-form { display: grid; gap: 0.75rem; }
.atl-field { display: grid; gap: 0.3rem; }
.atl-field span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.atl-field select,
.atl-field input,
.atl-field textarea,
.atl-adjust input,
.atl-adjust textarea {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
}
.atl-field textarea,
.atl-adjust textarea { min-height: 8rem; resize: vertical; }
.atl-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.atl-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 0.85rem;
  align-items: start;
}
.atl-confidence {
  min-width: 9rem;
  text-align: right;
}
.atl-confidence--hero {
  min-width: 12rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.atl-confidence__label {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.atl-confidence strong,
.atl-confidence__value {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 850;
  display: inline-block;
  margin-right: 0.35rem;
}
.atl-source--part {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(239, 246, 255, 0.65);
}
.atl-parts .aic-card-head h2 {
  font-size: 0.92rem;
}
.atl-confidence__bar {
  margin-top: 0.3rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.atl-confidence__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #2563eb);
}
.atl-answer__body {
  margin: 0.65rem 0 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 28rem;
  overflow: auto;
}
.atl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.atl-adjust {
  margin: 0 0 0.85rem;
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  background: #fff;
  display: grid;
  gap: 0.65rem;
}
.atl-prompt-box {
  margin-top: 0.35rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
}
.atl-prompt-box summary {
  cursor: pointer;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 750;
}
.atl-prompt-box pre {
  margin: 0.55rem 0 0;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.72rem;
  white-space: pre-wrap;
  max-height: 16rem;
  overflow: auto;
}
.atl-sources { max-height: 70vh; overflow: auto; }
.atl-source {
  margin: 0 0 0.65rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}
.atl-source header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.atl-source strong { color: #0f172a; font-size: 0.88rem; }
.atl-source__excerpt {
  margin: 0.4rem 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.atl-source__scores { font-size: 0.72rem !important; }
@media (max-width: 980px) {
  .atl-layout { grid-template-columns: 1fr; }
}

/* ???????????????????????????????????????????????
   Vue mondiale ? filtres & tendances (.wd-*)
   ??????????????????????????????????????????????? */
.wd-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.wd-filters__periods,
.wd-filters__sectors,
.wd-filters__export {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.wd-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #f8fafc;
  color: #64748b;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s;
}
.wd-chip:hover {
  color: #0f172a;
  border-color: #cbd5e1;
}
.wd-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.wd-select {
  display: grid;
  gap: 0.15rem;
  min-width: 11rem;
}
.wd-select span {
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wd-select select,
.wd-filters__custom input[type="date"] {
  min-height: 2.15rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
}
.wd-filters__custom {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
  font-size: 0.75rem;
}
.wd-filters__status {
  margin: 0;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
}
.wd-filters__export {
  margin-left: auto;
}
.wd-trend {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
  background: #f1f5f9;
  color: #64748b;
}
.wd-trend.is-up {
  background: #ecfdf5;
  color: #047857;
}
.wd-trend.is-down {
  background: #fffbeb;
  color: #b45309;
}
.wd-trend.is-flat {
  background: #f1f5f9;
  color: #64748b;
}
@media (max-width: 900px) {
  .wd-filters__export {
    margin-left: 0;
    width: 100%;
  }
  .wd-select {
    width: 100%;
  }
}

/* ==========================================================================
   System Settings - Data Center (.ss-*)
   ========================================================================== */
.ss-main { padding-bottom: 3rem; }
.ss-wrap { max-width: 1120px; }
.ss-hero {
  margin: 0.35rem 0 1.1rem;
}
.ss-hero h1 {
  margin: 0.15rem 0 0.35rem;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}
.ss-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.ss-tab-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 1rem;
  background: #f1f5f9;
  color: #64748b;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.ss-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.ss-tab-btn.is-active {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.ss-tab-btn.is-active:hover {
  background: #0f172a;
  color: #fff;
}
.ss-panel { margin-top: 0.25rem; }
.ss-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.85rem;
}
.ss-stack {
  display: grid;
  gap: 0.85rem;
}
.ss-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ss-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.ss-card__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 800;
}
.ss-form,
.ss-form-grid {
  display: grid;
  gap: 0.7rem;
}
.ss-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ss-form label,
.ss-form-grid label {
  display: grid;
  gap: 0.28rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ss-form input,
.ss-form select,
.ss-form-grid input,
.ss-form-grid select,
.ss-inline select,
.ss-inline input {
  min-height: 2.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.ss-form input:focus,
.ss-form select:focus,
.ss-form-grid input:focus,
.ss-form-grid select:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}
.ss-perms {
  margin: 0.2rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.4rem;
}
.ss-perms legend {
  padding: 0 0.35rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ss-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  color: #0f172a !important;
}
.ss-check input { width: 1rem; height: 1rem; accent-color: #0f172a; }
.ss-muted {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
}
.ss-team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.ss-team > li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.ss-team > li:last-child { border-bottom: 0; padding-bottom: 0; }
.ss-team strong {
  color: #0f172a;
  font-size: 0.92rem;
}
.ss-team__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.ss-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.ss-mini { width: 4.2rem; }
.ss-table-wrap { overflow-x: auto; }
.ss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.ss-table th,
.ss-table td {
  padding: 0.55rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-weight: 600;
}
.ss-table th {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ss-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}
.ss-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  grid-column: 1 / -1;
}
.ss-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ss-toggle > span {
  position: relative;
  width: 2.55rem;
  height: 1.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background 0.2s ease;
}
.ss-toggle > span::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}
.ss-toggle input:checked + span {
  background: #0f172a;
}
.ss-toggle input:checked + span::after {
  transform: translateX(1.15rem);
}
.ss-toggle--sm {
  grid-column: auto;
  font-size: 0.78rem !important;
}
.ss-vat-block {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}
.ss-save {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ss-save.is-pulse {
  transform: scale(0.97);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12);
}
.ss-toast {
  position: sticky;
  top: 0.75rem;
  z-index: 40;
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.ss-toast.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.ss-toast.is-err {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
@media (max-width: 900px) {
  .ss-grid,
  .ss-form-grid {
    grid-template-columns: 1fr;
  }
  .ss-team__actions,
  .ss-inline {
    width: 100%;
  }
}

/* ==========================================================================
   Data Analyst Cockpit - Vue mondiale (.dac-*)
   ========================================================================== */
.dac-main { padding-bottom: 3rem; }
.dac-wrap { max-width: 1180px; }
.dac-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: flex-end;
  margin: 0.35rem 0 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dac-controls__block {
  display: grid;
  gap: 0.4rem;
}
.dac-controls__label {
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dac-controls__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dac-charts {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.dac-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dac-card--wide { grid-column: 1 / -1; }
.dac-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dac-card__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dac-card__head p {
  margin: 0.2rem 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
}
.dac-chart-box {
  position: relative;
  height: 280px;
  width: 100%;
}
.dac-chart-box--donut { height: 240px; }
.dac-empty {
  margin: 0.35rem 0 0;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
}
.dac-fault-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.dac-fault-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid #f1f5f9;
}
.dac-fault-list li:last-child { border-bottom: 0; }
.dac-fault-list strong {
  display: block;
  color: #0f172a;
  font-size: 0.86rem;
}
.dac-fault-list span {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 650;
}
.dac-fault-list b {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}
.dac-finance {
  margin: 0 0 1rem;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dac-finance__head { margin-bottom: 0.95rem; }
.dac-finance__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.dac-fin {
  padding: 0.9rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}
.dac-fin--accent {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.dac-fin > span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dac-fin strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}
.dac-fin p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
}
@media (max-width: 980px) {
  .dac-charts,
  .dac-finance__grid {
    grid-template-columns: 1fr;
  }
  .dac-card--wide { grid-column: auto; }
}

.dac-demand-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.15rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}
.dac-demand-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
}
.dac-demand-legend__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   Organizations / Tenants ? Data Center (.org-*)
   ========================================================================== */
body.org-modal-open { overflow: hidden; }
.org-main { padding-bottom: 3rem; }
.org-wrap { max-width: 1180px; }
.org-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0 1.1rem;
}
.org-hero h1 {
  margin: 0.15rem 0 0.35rem;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}
.org-btn-create {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem;
  border: 0;
  border-radius: 1rem;
  background: #dc2626;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.org-btn-create:hover {
  background: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}
.org-toast {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.org-toast.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.org-toast.is-err {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.org-toast p { margin: 0; }
.org-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.35rem;
  padding: 1.15rem 1.2rem 0.85rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.org-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.org-card__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}
.org-card__count {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
}
.org-table-wrap { overflow-x: auto; }
.org-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.org-table th,
.org-table td {
  padding: 0.85rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
  font-weight: 600;
}
.org-table th {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.org-table tbody tr:hover { background: #f8fafc; }
.org-table__actions { text-align: right; }
.org-empty {
  text-align: center !important;
  color: #94a3b8 !important;
  padding: 2rem 1rem !important;
}
.org-name-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #0f172a;
}
.org-name-btn:hover strong { color: #dc2626; }
.org-type {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
}
.org-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
}
.org-badge.is-active { background: #ecfdf5; color: #047857; }
.org-badge.is-trial { background: #eff6ff; color: #1d4ed8; }
.org-badge.is-suspended { background: #fffbeb; color: #b45309; }
.org-badge.is-closed { background: #f1f5f9; color: #94a3b8; }
.org-mod-dots {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}
.org-mod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.45rem;
  background: #f1f5f9;
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 850;
}
.org-mod.is-on {
  background: #0f172a;
  color: #fff;
}
.org-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  width: 100%;
}
.org-inline-form { display: inline; margin: 0; }
.org-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.org-icon-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.org-icon-btn.is-ok { color: #047857; }
.org-icon-btn.is-warn { color: #b45309; }
.org-icon-btn.is-danger { color: #dc2626; }
.org-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modal */
.org-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.org-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.org-modal__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  padding: 1.25rem 1.3rem 1.15rem;
}
.org-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.org-modal__kicker {
  margin: 0;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.org-modal__head h2 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 850;
}
.org-modal__form {
  display: grid;
  gap: 0.8rem;
}
.org-field {
  display: grid;
  gap: 0.3rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.org-field input,
.org-field select {
  min-height: 2.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.org-field input:focus,
.org-field select:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
}
.org-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.org-matrix {
  margin: 0.15rem 0 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}
.org-matrix legend {
  padding: 0 0.35rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.org-matrix__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
}
.org-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}
.org-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #0f172a;
}
.org-check code {
  margin-left: auto;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}
.org-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}
.org-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
@media (max-width: 720px) {
  .org-field-row,
  .org-matrix__grid {
    grid-template-columns: 1fr;
  }
  .org-hero { align-items: stretch; }
  .org-btn-create { width: 100%; justify-content: center; }
}

.org-mod--ai {
  width: auto;
  min-width: 1.85rem;
  padding: 0 0.35rem;
  letter-spacing: 0.02em;
}
.org-matrix__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.org-mod-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.org-mod-card--wide { grid-column: 1 / -1; }
.org-mod-card.is-on {
  background: #fff;
  border-color: #0f172a;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.org-mod-card input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: #0f172a;
  flex: 0 0 auto;
}
.org-mod-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 0.5rem;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 850;
  flex: 0 0 auto;
}
.org-mod-card.is-on .org-mod-card__badge {
  background: #0f172a;
  color: #fff;
}
.org-mod-card__badge--ai { letter-spacing: 0.03em; }
.org-mod-card__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.org-mod-card__body strong {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.25;
}
.org-mod-card__body small {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 650;
}
@media (max-width: 720px) {
  .org-matrix__cards { grid-template-columns: 1fr; }
  .org-mod-card--wide { grid-column: auto; }
}

/* ==========================================================================
   Subscriptions & billing ? Data Center (.sub-*)
   ========================================================================== */
body.sub-modal-open { overflow: hidden; }
.sub-main {
  padding-bottom: 3rem;
  background: #f8fafc;
}
.sub-wrap { max-width: 1180px; }
.sub-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0 1.1rem;
}
.sub-hero h1 {
  margin: 0.15rem 0 0.35rem;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}
.sub-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 750;
}
.sub-toast {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.sub-toast.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.sub-toast.is-err {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.sub-toast p { margin: 0; }
.sub-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.35rem;
  padding: 1.25rem 1.35rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sub-card__head {
  margin-bottom: 0.95rem;
}
.sub-card__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}
.sub-card__head p {
  margin: 0.25rem 0 0;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}
.sub-table-wrap { overflow-x: auto; }
.sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.sub-table th,
.sub-table td {
  padding: 0.95rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
  font-weight: 600;
}
.sub-table th {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sub-table tbody tr:hover { background: #f8fafc; }
.sub-table tbody tr.is-alert { background: #fffbeb; }
.sub-table tbody tr.is-warn { background: #fff1f2; }
.sub-table__actions { text-align: right; }
.sub-empty {
  text-align: center !important;
  color: #94a3b8 !important;
  padding: 2rem 1rem !important;
}
.sub-org {
  display: grid;
  gap: 0.35rem;
}
.sub-org strong {
  color: #0f172a;
  font-size: 0.92rem;
}
.sub-type {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 750;
}
.sub-plan {
  display: grid;
  gap: 0.2rem;
}
.sub-plan__name {
  color: #0f172a;
  font-weight: 800;
}
.sub-plan__period {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.sub-amount {
  display: grid;
  gap: 0.15rem;
}
.sub-amount strong {
  color: #0f172a;
  font-weight: 800;
}
.sub-amount span {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 650;
}
.sub-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}
.sub-badge.is-ok { background: #ecfdf5; color: #047857; }
.sub-badge.is-soon { background: #fffbeb; color: #b45309; }
.sub-badge.is-late { background: #fff7ed; color: #c2410c; }
.sub-badge.is-critical { background: #fff1f2; color: #be123c; }
.sub-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.sub-manage-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

/* Modal */
.sub-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.sub-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sub-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  padding: 1.25rem 1.3rem 1.15rem;
}
.sub-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.sub-modal__kicker {
  margin: 0;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sub-modal__head h2 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 850;
}
.sub-modal__org {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 650;
}
.sub-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}
.sub-modal__tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border-radius: 0.85rem;
  background: #f1f5f9;
}
.sub-tab {
  flex: 1;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}
.sub-tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.sub-modal__form {
  display: grid;
  gap: 0.85rem;
}
.sub-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.sub-summary span {
  display: block;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sub-summary strong {
  display: block;
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
}
.sub-field {
  display: grid;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sub-field input[type="text"],
.sub-field select {
  min-height: 2.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.sub-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sub-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.sub-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}
.sub-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
@media (max-width: 720px) {
  .sub-manage-btn span { display: none; }
  .sub-summary { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Marketplace B2B supervision (.msp-*)
   ========================================================================== */
body.msp-modal-open { overflow: hidden; }
.msp-main {
  padding-bottom: 3rem;
  background: #f8fafc;
}
.msp-wrap { max-width: 1180px; }
.msp-hero { margin: 0.25rem 0 1.1rem; }
.msp-hero h1 {
  margin: 0.15rem 0 0.35rem;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}
.msp-toast {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.msp-toast.is-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.msp-toast.is-err { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.msp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}
.msp-kpi {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.msp-kpi--accent { border-color: #bfdbfe; background: #f8fbff; }
.msp-kpi--warn { border-color: #fde68a; background: #fffbeb; }
.msp-kpi--danger { border-color: #fecdd3; background: #fff1f2; }
.msp-kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #0f172a;
  flex: 0 0 auto;
}
.msp-kpi span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.msp-kpi strong {
  display: block;
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}
.msp-kpi em,
.msp-trend {
  display: inline-block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}
.msp-trend.is-up { color: #047857; }
.msp-trend.is-down { color: #b45309; }
.msp-card {
  margin-bottom: 0.95rem;
  padding: 1.2rem 1.25rem 1rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.msp-card__head { margin-bottom: 0.85rem; }
.msp-card__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}
.msp-card__head p {
  margin: 0.2rem 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
}
.msp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.msp-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
}
.msp-tab:hover { border-color: #cbd5e1; color: #0f172a; }
.msp-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.msp-empty {
  margin: 0.5rem 0;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
}
.msp-muted { color: #94a3b8; font-size: 0.75rem; font-weight: 650; }
.msp-table-wrap { overflow-x: auto; }
.msp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.msp-table th,
.msp-table td {
  padding: 0.8rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
  font-weight: 600;
}
.msp-table th {
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.msp-table td strong { display: block; color: #0f172a; }
.msp-table td small,
.msp-table td code + small {
  display: block;
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}
.msp-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #0f172a;
}
.msp-table--compact th,
.msp-table--compact td { padding: 0.65rem 0.45rem; }
.msp-table__actions { text-align: right; }
.msp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}
.msp-badge.is-done { background: #ecfdf5; color: #047857; }
.msp-badge.is-held { background: #eff6ff; color: #1d4ed8; }
.msp-badge.is-pending { background: #fffbeb; color: #b45309; }
.msp-badge.is-ship { background: #f0f9ff; color: #0369a1; }
.msp-badge.is-dispute { background: #fff1f2; color: #be123c; }
.msp-badge.is-cancel { background: #f1f5f9; color: #64748b; }
.msp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
}
.msp-action-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.msp-conv {
  display: inline-block;
  color: #0f172a;
  font-weight: 800;
}
.msp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
  margin-bottom: 0.95rem;
}
.msp-split > .msp-card { margin-bottom: 0; }

/* Modal */
.msp-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.msp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.msp-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  padding: 1.25rem 1.3rem 1.15rem;
}
.msp-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.msp-modal__kicker {
  margin: 0;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.msp-modal__head h2 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 850;
}
.msp-modal__meta {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 650;
}
.msp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}
.msp-modal__summary {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.msp-modal__summary span {
  display: block;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.msp-modal__summary strong {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
}
.msp-modal__form { display: grid; gap: 0.85rem; }
.msp-field {
  display: grid;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.msp-field textarea {
  min-height: 5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  resize: vertical;
}
.msp-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.msp-modal__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
@media (max-width: 980px) {
  .msp-kpi-grid,
  .msp-split {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Support Center (.sp-*)
   ========================================================================== */
.sp-main {
  padding-bottom: 3rem;
  background: #f8fafc;
}
.sp-wrap { max-width: 1180px; }
.sp-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0 1rem;
}
.sp-hero h1 {
  margin: 0.15rem 0 0.35rem;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}
.sp-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 750;
}
.sp-toast {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.sp-toast.is-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.sp-toast.is-err { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.sp-toast p { margin: 0; }
.sp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}
.sp-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.sp-filter em {
  font-style: normal;
  min-width: 1.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}
.sp-filter:hover { border-color: #cbd5e1; color: #0f172a; }
.sp-filter.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.sp-filter.is-active em {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.sp-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.25fr);
  gap: 0.95rem;
  align-items: start;
}
.sp-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 1.05rem 1.1rem;
}
.sp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.sp-card__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 800;
}
.sp-muted { color: #94a3b8; font-size: 0.78rem; font-weight: 650; }
.sp-empty {
  margin: 1rem 0;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}
.sp-ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  max-height: min(70vh, 720px);
  overflow: auto;
}
.sp-ticket {
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  background: #fff;
  padding: 0.8rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
}
.sp-ticket:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.sp-ticket.is-active {
  border-color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.sp-ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.sp-ticket__top code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #0f172a;
  font-weight: 750;
}
.sp-ticket__org {
  display: block;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
}
.sp-ticket__subject {
  margin: 0.25rem 0 0.45rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-ticket__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sp-ticket__meta time {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 650;
}
.sp-prio,
.sp-status {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}
.sp-prio.is-critical,
.sp-prio.is-high { background: #fff1f2; color: #be123c; }
.sp-prio.is-normal { background: #fffbeb; color: #b45309; }
.sp-prio.is-low { background: #eff6ff; color: #1d4ed8; }
.sp-status.is-open { background: #eff6ff; color: #1d4ed8; }
.sp-status.is-in_progress { background: #fff7ed; color: #c2410c; }
.sp-status.is-waiting { background: #f1f5f9; color: #64748b; }
.sp-status.is-resolved { background: #ecfdf5; color: #047857; }
.sp-status.is-closed { background: #f1f5f9; color: #94a3b8; }

.sp-detail { min-height: 28rem; }
.sp-detail-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.45rem;
  min-height: 24rem;
  padding: 1.5rem;
  color: #64748b;
}
.sp-detail-empty__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.sp-detail-empty h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 850;
}
.sp-detail-empty p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #94a3b8;
}
.sp-detail__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}
.sp-detail__head code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 750;
}
.sp-detail__head h2 {
  margin: 0.25rem 0 0.35rem;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 850;
}
.sp-detail__head p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}
.sp-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}
.sp-thread {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  max-height: 280px;
  overflow: auto;
  padding-right: 0.15rem;
}
.sp-msg {
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.sp-msg--support {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.sp-msg__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.sp-msg__meta strong {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
}
.sp-msg__meta time {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 650;
}
.sp-msg p {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
}
.sp-thread__hint { margin: 0.25rem 0 0; }
.sp-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}
.sp-inline { margin: 0; }
.sp-chip-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
}
.sp-chip-btn:hover:not(:disabled) { background: #f8fafc; }
.sp-chip-btn.is-ok { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.sp-chip-btn.is-mute { color: #64748b; }
.sp-chip-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sp-reply {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}
.sp-field {
  display: grid;
  gap: 0.3rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sp-field textarea,
.sp-field select {
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.sp-field textarea { min-height: 6rem; resize: vertical; }
.sp-reply__actions {
  display: flex;
  justify-content: flex-end;
}
.sp-reply__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
@media (max-width: 960px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-ticket-list { max-height: 22rem; }
}

body.ss-modal-open { overflow: hidden; }
.ss-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.ss-panel__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 850;
}
.ss-invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.ss-tag {
  display: inline-flex;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
}
.ss-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.ss-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ss-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  padding: 1.25rem 1.3rem 1.15rem;
}
.ss-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ss-modal__kicker {
  margin: 0;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ss-modal__head h2 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 850;
}
.ss-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}
.ss-gw-routing {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #f1f5f9;
  display: grid;
  gap: 0.75rem;
}
.ss-gw-routing__title {
  margin: 0;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ss-gw-routing__grid {
  display: grid;
  gap: 0.85rem;
}
.ss-gw-routing__label {
  margin: 0 0 0.4rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ss-gw-coverage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}
.ss-gw-coverage__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.ss-gw-coverage__label {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
}
.ss-gw-coverage__meta {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 650;
}
.ss-gw-coverage__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.8rem;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  transition: background 0.15s;
}
.ss-gw-coverage__btn:hover { background: #1e293b; }
.ss-gw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ss-gw-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ss-gw-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ss-gw-chip.is-on,
.ss-gw-chip:has(input:checked) {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.ss-gw-routing__role {
  display: grid;
  gap: 0.28rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: 22rem;
}
.ss-gw-routing__role select {
  min-height: 2.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.ss-modal--countries .ss-modal__panel,
.ss-country-panel {
  width: min(720px, 100%);
  max-height: min(92vh, 880px);
}
.ss-country-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.ss-country-toolbar__btn {
  font-size: 0.75rem !important;
  font-weight: 750 !important;
}
.ss-country-groups {
  display: grid;
  gap: 0.9rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 0.15rem;
  margin-bottom: 0.85rem;
}
.ss-country-group {
  padding: 0.75rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}
.ss-country-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.ss-country-group__head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 850;
}
.ss-country-group__toggle {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.25rem 0.55rem;
  border-radius: 0.65rem;
  background: #e2e8f0;
  color: #334155;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 750;
}
.ss-country-group__toggle:hover { background: #cbd5e1; }
.ss-country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
@media (min-width: 720px) {
  .ss-country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ss-country-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ss-country-option input {
  accent-color: #0f172a;
  width: 0.95rem;
  height: 0.95rem;
}
.ss-country-option.is-on {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.ss-country-option.is-on input { accent-color: #fff; }
.ss-int-probe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}
.ss-int-probe__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.8rem;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  transition: background 0.15s, opacity 0.15s;
}
.ss-int-probe__btn:hover { background: #1e293b; }
.ss-int-probe__btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.ss-int-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.3;
}
.ss-int-badge.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.ss-int-badge.is-err {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.ss-create-mode {
  margin: 0.15rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.55rem;
}
.ss-create-mode legend {
  padding: 0 0.35rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ss-create-mode__option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ss-create-mode__option.is-active {
  border-color: #0f172a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.ss-create-mode__option input {
  margin-top: 0.2rem;
  accent-color: #0f172a;
}
.ss-create-mode__option strong {
  display: block;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.ss-create-mode__option em {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.ss-temp-pass {
  display: grid;
  gap: 0.35rem;
}
.ss-temp-pass__label {
  display: grid;
  gap: 0.28rem;
}
.ss-temp-pass__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
}
.ss-temp-pass__row input {
  min-height: 2.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}
.ss-temp-pass__gen {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 2.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #0f172a;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}
.ss-temp-pass__gen:hover { background: #e2e8f0; }
.ss-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

/* ===== GMAO Elite (SaaS maintenance hub) ===== */
.gmao-shell { --gmao-ink:#0f172a; --gmao-muted:#64748b; --gmao-line:#e2e8f0; --gmao-ok:#059669; --gmao-warn:#d97706; --gmao-bad:#dc2626; --gmao-violet:#7c3aed; --gmao-brand:#1b4965; }
.gmao-ico { width:1.05rem; height:1.05rem; flex:0 0 auto; display:inline-block; vertical-align:-0.15em; }
.gmao-ico--tab { width:1rem; height:1rem; }
.gmao-ico--sm { width:0.95rem; height:0.95rem; }
.gmao-ico--xs { width:0.78rem; height:0.78rem; }
.gmao-btn { display:inline-flex; align-items:center; justify-content:center; gap:0.4rem; }
.gmao-btn--icon { padding-inline:0.65rem; }
.gmao-head { margin-bottom:1.15rem; gap:1rem; }
.gmao-tabs {
  margin-bottom:1.15rem;
  grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr));
  gap:0.55rem;
  background:transparent;
  border:0;
  padding:0;
  box-shadow:none;
}
.gmao-tabs.fx-seg,
.gmao-tabs.fx-seg--filters {
  background:transparent;
  border:0;
  padding:0;
  box-shadow:none;
}
.gmao-tabs .gmao-tabs__item,
.gmao-tabs .fx-seg__item.gmao-tabs__item {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  width:100%;
  cursor:pointer;
  font:inherit;
  font-size:0.875rem;
  font-weight:600;
  line-height:1.25;
  color:#334155;
  text-decoration:none;
  background:#fff;
  border:1px solid #bae6fd; /* sky-200 */
  border-radius:0.75rem; /* rounded-xl */
  padding:0.625rem 1rem; /* py-2.5 px-4 */
  box-shadow:none;
  transition:border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gmao-tabs .gmao-tabs__item:hover,
.gmao-tabs .fx-seg__item.gmao-tabs__item:hover {
  border-color:#38bdf8; /* sky-400 */
  background:#f0f9ff; /* sky-50 */
  color:#0c4a6e;
}
.gmao-tabs .gmao-tabs__item.is-active,
.gmao-tabs .fx-seg__item.gmao-tabs__item.is-active {
  border:2px solid #38bdf8; /* sky-400 */
  background:#f0f9ff; /* sky-50 */
  color:#0c4a6e; /* sky-900-ish */
  box-shadow:0 1px 2px rgba(14,165,233,.12);
  font-weight:700;
}
.gmao-tabs .gmao-tabs__item .gmao-ico,
.gmao-tabs .gmao-tabs__item .fx-seg__text {
  flex:0 0 auto;
}
.gmao-tabs .gmao-tabs__item.is-active .gmao-ico {
  color:#0284c7; /* sky-600 */
}
.gmao-interv__head { margin-bottom:0.85rem; align-items:flex-start; }
.gmao-stock-hub__kpis { margin-bottom:1rem; }
.gmao-section-title { display:inline-flex; align-items:center; gap:0.45rem; margin:0 0 0.65rem; font-size:1.05rem; color:var(--gmao-ink); }
.gmao-section-title .gmao-ico { color:var(--gmao-brand); }
.gmao-x { transition-property:opacity,transform; transition-timing-function:cubic-bezier(.22,1,.36,1); transition-duration:220ms; }
.gmao-x-leave { transition-duration:140ms; }
.gmao-x-from { opacity:0; transform:translateY(8px); }
.gmao-x-to { opacity:1; transform:none; }
.gmao-pane { margin-bottom:0.5rem; }
.gmao-score { display:grid; gap:0.9rem; grid-template-columns:repeat(auto-fit,minmax(10.5rem,1fr)); margin-bottom:1.25rem; }
.gmao-score__card { position:relative; overflow:hidden; border:1px solid var(--gmao-line); border-radius:1rem; background:linear-gradient(165deg,#fff 0%,#f8fafc 100%); padding:1.05rem 1.1rem 1rem; box-shadow:0 1px 0 rgba(15,23,42,.03); }
.gmao-score__card::after { content:""; position:absolute; inset:auto -20% -40% auto; width:7rem; height:7rem; border-radius:50%; background:radial-gradient(circle,rgba(27,73,101,.08),transparent 70%); pointer-events:none; }
.gmao-score__top { display:flex; align-items:flex-start; justify-content:space-between; gap:0.5rem; }
.gmao-score__ico { display:inline-flex; align-items:center; justify-content:center; width:2rem; height:2rem; border-radius:0.65rem; background:rgba(27,73,101,.08); color:var(--gmao-brand); }
.gmao-score__label { margin:0; font-size:0.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--gmao-muted); }
.gmao-score__value { margin:0.4rem 0 0; font-size:1.55rem; font-weight:800; letter-spacing:-.03em; color:var(--gmao-ink); line-height:1.1; }
.gmao-score__trend { display:inline-flex; align-items:center; gap:0.25rem; margin-top:0.45rem; font-size:0.75rem; font-weight:700; }
.gmao-score__trend.is-up { color:var(--gmao-bad); }
.gmao-score__trend.is-down { color:var(--gmao-ok); }
.gmao-score__trend.is-flat { color:var(--gmao-muted); }
.gmao-charts { display:grid; gap:1rem; grid-template-columns:repeat(12,minmax(0,1fr)); margin-bottom:1.25rem; }
.gmao-charts__panel { grid-column:span 12; border:1px solid var(--gmao-line); border-radius:1rem; background:#fff; padding:1.05rem 1.15rem 1.2rem; }
@media (min-width:900px) {
  .gmao-charts__panel--type { grid-column:span 4; }
  .gmao-charts__panel--component { grid-column:span 8; }
  .gmao-charts__panel--vehicle { grid-column:span 5; }
  .gmao-charts__panel--monthly { grid-column:span 7; }
}
.gmao-charts__title { margin:0 0 0.75rem; font-size:0.95rem; font-weight:750; color:var(--gmao-ink); }
.gmao-charts__canvas { position:relative; height:14rem; }
.gmao-charts__empty { margin:2rem 0; text-align:center; color:var(--gmao-muted); font-size:0.9rem; }
.gmao-down-list { display:grid; gap:0.7rem; }
.gmao-down-item { display:flex; flex-wrap:wrap; justify-content:space-between; gap:0.55rem 1rem; padding:0.9rem 1rem; border:1px solid var(--gmao-line); border-radius:0.9rem; background:#fff; }
.gmao-down-item strong { display:block; color:var(--gmao-ink); }
.gmao-down-item small { color:var(--gmao-muted); }
.gmao-down-item__cost { text-align:right; }
.gmao-plan-filters { display:flex; flex-wrap:wrap; gap:0.75rem; align-items:end; margin-bottom:1.1rem; }
.gmao-plan-filters label { display:grid; gap:0.3rem; font-size:0.78rem; font-weight:650; color:var(--gmao-muted); }
.gmao-plan-filters select { min-width:9rem; }
.gmao-cal-head { margin-bottom:0.85rem; }
.gmao-cal-head__title { display:inline-flex; align-items:center; gap:0.45rem; margin:0; font-size:1.1rem; color:var(--gmao-ink); }
.gmao-cal-head__title .gmao-ico { color:var(--gmao-brand); }
.gmao-cal-head__lead { margin:0.25rem 0 0; }
.gmao-cal { display:grid; gap:0.45rem; grid-template-columns:repeat(7,minmax(0,1fr)); margin-bottom:1.2rem; }
.gmao-cal__head { font-size:0.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--gmao-muted); text-align:center; }
.gmao-cal__cell { min-height:4.6rem; border:1px solid var(--gmao-line); border-radius:0.7rem; background:#fff; padding:0.35rem; }
.gmao-cal__cell.is-muted { background:#f8fafc; opacity:.72; }
.gmao-cal__cell.has-events { box-shadow:inset 0 0 0 1px rgba(27,73,101,.06); }
.gmao-cal__day { font-size:0.7rem; font-weight:750; color:var(--gmao-muted); margin-bottom:0.25rem; }
.gmao-cal__pill { position:relative; display:flex; align-items:center; gap:0.22rem; width:100%; margin:0 0 0.22rem; border:0; border-radius:0.4rem; padding:0.2rem 0.3rem; font-size:0.62rem; font-weight:700; text-align:left; cursor:pointer; color:#fff; line-height:1.15; text-decoration:none; transition:transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.gmao-cal__pill:hover, .gmao-cal__pill:focus-visible { transform:translateY(-1px); filter:brightness(1.06); box-shadow:0 4px 10px rgba(15,23,42,.18); outline:none; z-index:2; }
.gmao-cal__pill-ico { display:inline-flex; opacity:.95; }
.gmao-cal__pill-txt { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gmao-cal__pill.is-green { background:var(--gmao-ok); }
.gmao-cal__pill.is-orange { background:var(--gmao-warn); }
.gmao-cal__pill.is-red { background:var(--gmao-bad); animation:gmao-pulse 1.4s ease-in-out infinite; }
.gmao-cal__pill.is-violet { background:var(--gmao-violet); }
.gmao-cal-legend {
  display:flex; flex-wrap:wrap; gap:0.65rem 1.1rem; list-style:none; margin:0 0 1.15rem; padding:0.75rem 0.9rem;
  border:1px solid var(--gmao-line); border-radius:0.85rem; background:#fff;
}
.gmao-cal-legend li { display:inline-flex; align-items:center; gap:0.4rem; font-size:0.75rem; font-weight:650; color:var(--gmao-muted); }
.gmao-cal-legend__swatch { width:0.75rem; height:0.75rem; border-radius:999px; flex:0 0 auto; }
.gmao-cal-legend__swatch.is-green { background:var(--gmao-ok); }
.gmao-cal-legend__swatch.is-orange { background:var(--gmao-warn); }
.gmao-cal-legend__swatch.is-red { background:var(--gmao-bad); }
.gmao-cal-legend__swatch.is-violet { background:var(--gmao-violet); }
.gmao-cal__pill[data-tip]::after {
  content:attr(data-tip);
  position:absolute; left:50%; bottom:calc(100% + 0.35rem); transform:translateX(-50%) translateY(4px);
  min-width:9rem; max-width:14rem; padding:0.4rem 0.55rem; border-radius:0.5rem;
  background:#0f172a; color:#fff; font-size:0.65rem; font-weight:600; line-height:1.3; text-align:left;
  opacity:0; pointer-events:none; transition:opacity .15s ease, transform .15s ease; z-index:5;
  box-shadow:0 8px 20px rgba(15,23,42,.25);
}
.gmao-cal__pill[data-tip]:hover::after, .gmao-cal__pill[data-tip]:focus-visible::after { opacity:1; transform:translateX(-50%) translateY(0); }
.gmao-cal__more { display:block; font-size:0.62rem; font-weight:750; color:var(--gmao-muted); padding:0 0.15rem; }
@keyframes gmao-pulse { 0%,100%{ opacity:1 } 50%{ opacity:.72 } }
.gmao-timeline { display:grid; gap:0.65rem; }
.gmao-timeline__row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0.85rem; align-items:center; padding:1rem 1.05rem; border:1px solid var(--gmao-line); border-radius:0.95rem; background:#fff; }
.gmao-timeline__title { display:inline-flex; align-items:center; gap:0.45rem; color:var(--gmao-ink); }
.gmao-timeline__title .gmao-ico { color:var(--gmao-brand); }
.gmao-timeline__meta { display:flex; flex-wrap:wrap; gap:0.4rem; margin-top:0.4rem; align-items:center; }
.gmao-comp-badge { display:inline-flex; align-items:center; gap:0.3rem; padding:0.18rem 0.5rem; border-radius:999px; background:#f1f5f9; color:#334155; font-size:0.72rem; font-weight:700; }
.gmao-date-badge { display:inline-flex; align-items:center; gap:0.28rem; }
.gmao-dot { width:0.55rem; height:0.55rem; border-radius:50%; display:inline-block; }
.gmao-dot.is-green { background:var(--gmao-ok); }
.gmao-dot.is-orange { background:var(--gmao-warn); }
.gmao-dot.is-red { background:var(--gmao-bad); box-shadow:0 0 0 0 rgba(220,38,38,.45); animation:gmao-ring 1.5s infinite; }
.gmao-dot.is-violet { background:var(--gmao-violet); }
.fx-badge.is-doc-violet { background:#f3e8ff; color:#6b21a8; }
@keyframes gmao-ring { 70%{ box-shadow:0 0 0 8px rgba(220,38,38,0) } 100%{ box-shadow:0 0 0 0 rgba(220,38,38,0) } }
.gmao-ot-modal .fx-modal__panel,
.gmao-import-modal .fx-modal__panel { max-width:min(52rem,96vw); }
.gmao-import-modal .fx-modal__body { display:flex; flex-direction:column; overflow:hidden; padding:0; min-height:0; }
.gmao-import-wizard { display:flex; flex-direction:column; min-height:0; flex:1 1 auto; max-height:70vh; }
.gmao-import-scroll { flex:1 1 auto; min-height:0; overflow:auto; padding:0.85rem 1.15rem 1rem; }
.gmao-import-drop {
  display:grid; gap:0.45rem; justify-items:center; text-align:center;
  padding:1.5rem 1rem; border:1.5px dashed #cbd5e1; border-radius:1rem; background:#f8fafc;
}
.gmao-import-drop__ico { width:2rem; height:2rem; color:var(--gmao-brand); }
.gmao-import-drop__title { margin:0; font-weight:800; color:var(--gmao-ink); }
.gmao-import-drop input[type=file] { max-width:100%; font-size:0.85rem; }
.gmao-import-actions { display:flex; flex-wrap:wrap; justify-content:space-between; gap:0.55rem; margin-top:1rem; }
.gmao-import-stats { margin-bottom:0.85rem; }
.gmao-import-row-err { background:#fef2f2; }

/* ===== Fleet Assets / Trailers hub ===== */
.fa-shell .fa-kpis { margin-bottom:1.15rem; }
.fa-tabs {
  display:grid;
  margin-bottom:1rem;
  gap:0.5rem;
  grid-template-columns:repeat(auto-fill, minmax(8.75rem, 1fr));
  background:transparent;
  border:0;
  padding:0;
  box-shadow:none;
}
.fa-tabs.gmao-tabs { grid-template-columns:repeat(auto-fill, minmax(8.75rem, 1fr)); }
.fa-tabs .gmao-tabs__item {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.4rem;
  width:100%;
  min-width:0;
  min-height:2.75rem;
  padding:0.55rem 0.65rem;
  overflow:hidden;
  text-decoration:none;
}
.fa-tabs .gmao-tabs__text,
.fa-tabs .fx-seg__text {
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:0.78rem;
  font-weight:650;
  line-height:1.2;
  text-align:center;
}
.fa-tabs .gmao-ico { flex:0 0 auto; }
.fa-filters { margin-bottom:1rem; }
.fa-filters label { display:grid; gap:0.3rem; align-content:start; }
.fa-filters label .gmao-ico { display:inline-block; margin-right:0.15rem; vertical-align:-0.1em; }
.fa-code { display:inline-flex; align-items:center; gap:0.35rem; }
.fa-actions { display:flex; flex-wrap:wrap; gap:0.35rem; justify-content:flex-end; }
.fa-specs { margin-top:1rem; padding-top:0.75rem; border-top:1px solid #e2e8f0; }
.fa-modal .fx-modal__panel { max-width:min(52rem,96vw); }
@media (max-width:720px) {
  .fa-actions { justify-content:flex-start; }
  .fa-tabs { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
.gmao-ot-modal .fx-modal__form { max-height:min(92vh,92dvh); }
.gmao-ot-modal .fx-modal__head { position:sticky; top:0; z-index:3; background:#fff; border-bottom:1px solid var(--gmao-line); padding:1rem 1.25rem 0.85rem; }
.gmao-ot-modal .fx-modal__body {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-height:0;
  padding:0;
  flex:1 1 auto;
}
.gmao-ot-wizard {
  display:flex;
  flex-direction:column;
  min-height:0;
  flex:1 1 auto;
  max-height:70vh;
}
.gmao-ot-steps {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0.35rem;
  flex:0 0 auto;
  padding:0.75rem 1.15rem 0.65rem;
  background:#f8fafc;
  border-bottom:1px solid var(--gmao-line);
}
.gmao-ot-steps__item {
  appearance:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.2rem;
  min-width:0;
  border:1px solid var(--gmao-line);
  background:#fff;
  color:var(--gmao-muted);
  border-radius:0.75rem;
  padding:0.45rem 0.35rem;
  font:inherit;
  font-size:0.68rem;
  font-weight:700;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.gmao-ot-steps__num {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.35rem;
  height:1.35rem;
  border-radius:999px;
  background:#e2e8f0;
  color:#334155;
  font-size:0.7rem;
  font-weight:800;
}
.gmao-ot-steps__label {
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
}
.gmao-ot-steps__item.is-active {
  background:var(--gmao-brand);
  border-color:var(--gmao-brand);
  color:#fff;
  box-shadow:0 6px 16px rgba(27,73,101,.22);
}
.gmao-ot-steps__item.is-active .gmao-ot-steps__num { background:rgba(255,255,255,.22); color:#fff; }
.gmao-ot-steps__item.is-done {
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#047857;
}
.gmao-ot-steps__item.is-done .gmao-ot-steps__num { background:#a7f3d0; color:#047857; }
.gmao-ot-scroll {
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-x:hidden;
  overflow-y:auto;
  padding:0.85rem 1.15rem 0.5rem;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.gmao-ot-step { position:relative; z-index:0; }
.gmao-ot-step__lead { margin:0 0 0.75rem; }
.gmao-ot-part-line { margin-bottom:0.65rem; align-items:end; }
.gmao-ot-subtotal { margin:0.85rem 0 0; font-weight:750; color:var(--gmao-ink); }
.gmao-ot-grand { margin:0; font-size:1.1rem; font-weight:800; color:var(--gmao-ink); }
.gmao-ot-nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:0.5rem;
  flex:0 0 auto;
  flex-wrap:wrap;
  padding:0.65rem 1.15rem 0.85rem;
  border-top:1px solid var(--gmao-line);
  background:#fff;
}
.gmao-ot-nav__spacer { flex:1 1 auto; }
.gmao-ot-modal .fx-modal__actions {
  position:sticky;
  bottom:0;
  z-index:3;
  background:#fff;
  box-shadow:0 -6px 16px rgba(15,23,42,.04);
}
.gmao-pred-grid { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(18rem,1fr)); }
.gmao-pred-card { border:1px solid var(--gmao-line); border-radius:1rem; background:#fff; padding:1.05rem 1.1rem; }
.gmao-pred-card h2 { margin:0 0 0.25rem; font-size:1rem; }
.gmao-pred-item { border-top:1px solid var(--gmao-line); padding:0.9rem 0; }
.gmao-pred-item:first-of-type { border-top:0; }
.gmao-pred-item__cta { margin:0.6rem 0 0; }
.gmao-conf { display:inline-flex; align-items:center; gap:0.35rem; font-size:0.72rem; font-weight:750; color:var(--gmao-muted); }
.gmao-conf__bar { width:4.5rem; height:0.35rem; border-radius:999px; background:#e2e8f0; overflow:hidden; }
.gmao-conf__bar > span { display:block; height:100%; background:var(--gmao-brand); border-radius:inherit; }
.gmao-sources { display:flex; flex-wrap:wrap; gap:0.3rem; margin-top:0.4rem; }
.gmao-sources span { font-size:0.65rem; font-weight:750; padding:0.15rem 0.45rem; border-radius:999px; background:#f1f5f9; color:#334155; }
.fx-modal--wide .fx-modal__panel { max-width:min(52rem,96vw); }
@media (max-width:640px) {
  .gmao-ot-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gmao-ot-wizard { max-height:min(68vh,68dvh); }
}
@media (max-width:720px) {
  .gmao-cal { gap:0.3rem; }
  .gmao-cal__cell { min-height:3.6rem; padding:0.28rem; border-radius:0.55rem; }
  .gmao-cal__pill { padding:0.16rem 0.22rem; font-size:0.58rem; }
  .gmao-cal__pill-txt { max-width:100%; }
  .gmao-cal__pill[data-tip]::after { left:0; right:auto; transform:translateY(4px); max-width:min(12rem,70vw); }
  .gmao-cal__pill[data-tip]:hover::after, .gmao-cal__pill[data-tip]:focus-visible::after { transform:translateY(0); }
  .gmao-timeline__row { grid-template-columns:1fr; }
  .gmao-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gmao-tabs__item .fx-seg__text { font-size:0.72rem; }
}

/* ===== Table row Actions (normalized, horizontal) ===== */
.vt-actions-col { width:1%; white-space:nowrap; text-align:right; vertical-align:middle; }
.vt-actions {
  display:inline-flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:0.375rem; /* gap-1.5 */
}
.vt-actions__extra {
  display:inline-flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:0.3rem;
  margin-right:0.1rem;
  padding-right:0.4rem;
  border-right:1px solid #e2e8f0;
}
.vt-action {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2.1rem;
  height:2.1rem;
  padding:0.375rem; /* p-1.5 */
  border-radius:0.5rem; /* rounded-lg */
  border:1px solid transparent;
  background:transparent;
  color:#4b5563; /* text-gray-600 */
  text-decoration:none;
  cursor:pointer;
  transition:background-color .15s ease, color .15s ease, border-color .15s ease;
}
.vt-action:hover, .vt-action:focus-visible {
  outline:none;
  background:#f0f9ff; /* hover:bg-sky-50 */
  color:#0284c7; /* hover:text-sky-600 */
}
.vt-action--edit:hover, .vt-action--edit:focus-visible {
  background:#fff7ed;
  color:#c2410c;
}
.vt-action--delete:hover, .vt-action--delete:focus-visible {
  background:#fef2f2;
  color:#b91c1c;
}
.vt-action[data-tooltip]::after {
  content:attr(data-tooltip);
  position:absolute;
  bottom:calc(100% + 0.35rem);
  left:50%;
  transform:translateX(-50%) translateY(4px);
  padding:0.28rem 0.5rem;
  border-radius:0.4rem;
  background:#0f172a;
  color:#fff;
  font-size:0.68rem;
  font-weight:650;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease, transform .12s ease;
  z-index:20;
}
.vt-action[data-tooltip]:hover::after,
.vt-action[data-tooltip]:focus-visible::after {
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
@media (max-width:720px) {
  .vt-actions-col { text-align:left; }
  .vt-actions { justify-content:flex-start; }
  .vt-actions__extra { border-right:1px solid #e2e8f0; }
}

/* ===== Consultation modal — papier à en-tête ===== */
.vt-consult-modal .vt-consult-panel { max-width:min(52rem,96vw); }
.vt-consult-body { background:#eef2f7; padding:1rem 1.1rem 1.25rem; max-height:min(70vh,70dvh); overflow:auto; }
.vt-letterhead {
  background:#fff;
  border:1px solid #dbe3ee;
  border-radius:0.35rem;
  padding:1.35rem 1.5rem 1.1rem;
  box-shadow:0 1px 0 rgba(15,23,42,.04);
  color:#0f172a;
}
.vt-letterhead__head {
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  padding-bottom:0.85rem;
  margin-bottom:1rem;
  border-bottom:2px solid #1b4965;
}
.vt-letterhead--no-header .vt-letterhead__head,
.vt-letterhead--no-header .vt-letterhead__stamp,
.vt-letterhead--no-header .vt-letterhead__notes { display:none !important; }
.vt-letterhead__brand { display:flex; align-items:flex-start; gap:0.75rem; min-width:0; }
.vt-letterhead__logo { height:2.75rem; width:auto; max-width:8.5rem; object-fit:contain; }
.vt-letterhead__mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2.75rem;
  height:2.75rem;
  border-radius:0.55rem;
  background:#1b4965;
  color:#fff;
  font-weight:800;
  font-size:0.85rem;
  letter-spacing:.04em;
  flex:0 0 auto;
}
.vt-letterhead__name { display:block; font-size:1.05rem; font-weight:800; letter-spacing:.02em; color:#1b4965; }
.vt-letterhead__tag { display:block; font-size:0.75rem; color:#64748b; line-height:1.35; }
.vt-letterhead__meta {
  font-size:0.78rem;
  color:#64748b;
  text-align:right;
  display:grid;
  gap:0.2rem;
  justify-items:end;
  max-width:16rem;
}
.vt-letterhead__stamp {
  margin-top:1rem;
  text-align:right;
}
.vt-letterhead__stamp img {
  max-height:5.5rem;
  max-width:10rem;
  object-fit:contain;
}
.vt-letterhead__notes {
  margin:0.85rem 0 0;
  color:#64748b;
  font-size:0.8rem;
  line-height:1.4;
  white-space:pre-wrap;
}
.vt-letterhead__title { margin:0 0 0.35rem; font-size:1.25rem; font-weight:800; letter-spacing:-.02em; }
.vt-letterhead__lead { margin:0 0 1rem; color:#64748b; font-size:0.92rem; }
.vt-letterhead__fields { display:grid; gap:0.55rem; margin:0 0 1.1rem; }
.vt-letterhead__row {
  display:grid;
  grid-template-columns:min(12rem,38%) 1fr;
  gap:0.55rem 0.85rem;
  padding:0.45rem 0;
  border-bottom:1px dashed #e2e8f0;
}
.vt-letterhead__row dt {
  margin:0;
  font-size:0.72rem;
  font-weight:750;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#64748b;
}
.vt-letterhead__row dd { margin:0; font-weight:650; white-space:pre-wrap; word-break:break-word; }
.vt-letterhead__photos h3 { margin:0 0 0.65rem; font-size:0.95rem; color:#1b4965; }
.vt-letterhead__gallery {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));
  gap:0.65rem;
}
.vt-letterhead__figure {
  margin:0;
  border:1px solid #e2e8f0;
  border-radius:0.55rem;
  overflow:hidden;
  background:#f8fafc;
  aspect-ratio:4/3;
}
.vt-letterhead__figure img { width:100%; height:100%; object-fit:cover; display:block; }
.vt-letterhead__foot {
  display:flex;
  justify-content:space-between;
  gap:1rem;
  margin-top:1.25rem;
  padding-top:0.75rem;
  border-top:1px solid #e2e8f0;
  font-size:0.75rem;
  color:#64748b;
}
.vt-consult-actions { gap:0.55rem; }
@media print {
  body.vt-printing-consult * { visibility:hidden !important; }
  body.vt-printing-consult .vt-letterhead,
  body.vt-printing-consult .vt-letterhead * { visibility:visible !important; }
  body.vt-printing-consult .vt-letterhead {
    position:absolute;
    left:0; top:0;
    width:100%;
    border:0;
    box-shadow:none;
    border-radius:0;
    padding:0;
  }
  body.vt-printing-consult .no-print { display:none !important; }
  body.vt-printing-consult .vt-letterhead--no-header .vt-letterhead__head,
  body.vt-printing-consult .vt-letterhead--no-header .vt-letterhead__stamp,
  body.vt-printing-consult .vt-letterhead--no-header .vt-letterhead__notes { display:none !important; }
}

/* ===== Safety / Accidents hub ===== */
.safety-shell .fleet-table tr.is-focus-incident > td {
  background:rgba(14, 165, 233, 0.12);
  box-shadow: inset 3px 0 0 #0284c7;
}
.safety-shell .fx-seg__badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.25rem;
  height:1.25rem;
  padding:0 0.35rem;
  margin-left:0.35rem;
  border-radius:999px;
  background:#ea580c;
  color:#fff;
  font-size:0.7rem;
  font-weight:700;
  line-height:1;
}
.safety-qualify-modal .fx-modal__panel { max-width:min(44rem,96vw); }
.safety-qualify-modal .fx-modal__body { padding:1.1rem 1.5rem 1.25rem; }
.safety-qualify-summary {
  display:flex;
  flex-direction:column;
  gap:1rem;
  padding:1rem 1.1rem;
  border:1px solid #e2e8f0;
  border-radius:0.85rem;
  background:#f8fafc;
}
.safety-qualify-summary__grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0.85rem 1rem;
}
@media (min-width:768px) {
  .safety-qualify-summary__grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.safety-qualify-label {
  display:block;
  margin:0 0 0.2rem;
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:.02em;
  color:#64748b;
  text-transform:uppercase;
}
.safety-qualify-desc p {
  margin:0.25rem 0 0;
  color:#0f172a;
  line-height:1.45;
  white-space:pre-wrap;
}
.safety-qualify-photos__grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(5.5rem,1fr));
  gap:0.65rem;
  margin-top:0.45rem;
}
.safety-qualify-photos__grid a {
  display:block;
  overflow:hidden;
  border-radius:0.65rem;
  border:1px solid #e2e8f0;
  background:#fff;
  aspect-ratio:1;
}
.safety-qualify-photos__grid img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.safety-qualify-photo-empty {
  margin:0;
  font-size:0.85rem;
  color:#64748b;
}
.safety-qualify-edit .dispatch-check-textarea {
  min-height:7.5rem;
}
.safety-type-add {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-top:0.55rem;
  align-items:center;
}
.safety-type-add .dispatch-check-input { flex:1 1 12rem; }
.safety-type-add__err {
  margin:0.35rem 0 0;
  color:#b91c1c;
  font-size:0.8rem;
}
.safety-qualify-note {
  margin-top:1.15rem;
  padding-top:1rem;
  border-top:1px solid #e2e8f0;
}
.safety-qualify-note__hint {
  margin:0.4rem 0 0;
  color:#64748b;
  font-size:0.78rem;
  line-height:1.35;
}
.safety-qualify-actions {
  display:grid;
  grid-template-columns:1fr;
  gap:0.75rem;
  margin-top:1.5rem;
  padding-top:0;
  border-top:none;
}
@media (min-width:640px) {
  .safety-qualify-actions {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
.sq-action {
  display:flex;
  align-items:flex-start;
  gap:0.7rem;
  width:100%;
  text-align:left;
  min-height:4.25rem;
  padding:0.85rem 0.95rem;
  border-radius:0.9rem;
  border:1px solid transparent;
  cursor:pointer;
  font:inherit;
  line-height:1.25;
  transition:background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow:0 1px 2px rgba(15, 23, 42, 0.04);
}
.sq-action:hover,
.sq-action:focus-visible {
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(15, 23, 42, 0.08);
  outline:none;
}
.sq-action:active { transform:translateY(0); }
.sq-action__ico {
  flex:0 0 auto;
  width:1.75rem;
  height:1.75rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1.05rem;
  line-height:1;
  border-radius:0.55rem;
  background:rgba(255,255,255,0.65);
}
.sq-action__text {
  display:flex;
  flex-direction:column;
  gap:0.2rem;
  min-width:0;
}
.sq-action__text strong {
  font-size:0.88rem;
  font-weight:700;
}
.sq-action__text small {
  font-size:0.72rem;
  opacity:0.88;
  line-height:1.35;
}
.sq-action--neutral {
  background:#f3f4f6;
  color:#374151;
  border-color:#d1d5db;
}
.sq-action--neutral:hover,
.sq-action--neutral:focus-visible { background:#e5e7eb; }
.sq-action--amber {
  background:#fffbeb;
  color:#92400e;
  border-color:#fde68a;
}
.sq-action--amber:hover,
.sq-action--amber:focus-visible { background:#fef3c7; }
.sq-action--sky {
  background:#f0f9ff;
  color:#0369a1;
  border-color:#bae6fd;
}
.sq-action--sky:hover,
.sq-action--sky:focus-visible { background:#e0f2fe; }
.sq-action--critical {
  background:#fef2f2;
  color:#b91c1c;
  border-color:#fecaca;
}
.sq-action--critical:hover,
.sq-action--critical:focus-visible { background:#fee2e2; }
.safety-inbox-filters {
  display:flex;
  flex-wrap:wrap;
  gap:0.45rem;
}
.safety-inbox-filters .btn.is-active {
  background:#e2e8f0;
  border-color:#94a3b8;
  color:#0f172a;
}
.safety-shell .safety-charts { margin-bottom:1.25rem; }
.safety-shell .safety-charts .gmao-charts__panel--type { grid-column:span 12; }
.safety-shell .safety-charts .gmao-charts__panel--monthly { grid-column:span 12; }
@media (min-width:900px) {
  .safety-shell .safety-charts .gmao-charts__panel--type { grid-column:span 5; }
  .safety-shell .safety-charts .gmao-charts__panel--monthly { grid-column:span 7; }
}

/* ===== Incident modal (driver) — grille verticale aérée ===== */
.dispatch-incident-modal .fx-modal__panel { max-width:min(36rem,96vw); }
.dispatch-incident-modal .fx-modal__head { padding:1.25rem 1.5rem 0.65rem; }
.dispatch-incident-modal .fx-modal__body { padding:1.25rem 1.5rem; }
.dispatch-incident-modal .fx-modal__actions { padding:1rem 1.5rem 1.25rem; }
.dispatch-incident-modal .dispatch-check-textarea {
  min-height:6.5rem;
  width:100%;
}

/* ===== Checklist modal — grille anti-chevauchement ===== */
.dispatch-checklist-modal .fx-modal__panel { max-width:min(42rem,96vw); }
.dispatch-check-form { display:flex; flex-direction:column; gap:1rem; }
.dispatch-check-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
}
@media (min-width:768px) {
  .dispatch-check-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.dispatch-check-field {
  display:flex;
  flex-direction:column;
  gap:0.375rem;
  min-width:0;
  margin:0;
}
.dispatch-check-field--full { grid-column:1 / -1; }
.dispatch-check-label {
  display:block;
  margin:0;
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:.02em;
  color:#334155;
  line-height:1.3;
}
.dispatch-check-input {
  width:100%;
  min-height:2.5rem;
  padding:0.5rem 0.75rem;
  border:1px solid #d1d5db;
  border-radius:0.75rem;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-size:0.875rem;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
  box-sizing:border-box;
}
.dispatch-check-input--sm { max-width:6rem; width:6rem; }
.dispatch-check-input:focus {
  border-color:#38bdf8;
  box-shadow:0 0 0 3px rgba(56,189,248,.18);
}
.dispatch-check-hint {
  font-size:0.72rem;
  color:#64748b;
  line-height:1.35;
}
.dispatch-check-toggle {
  display:flex;
  align-items:flex-start;
  gap:0.65rem;
  margin:0.15rem 0 0;
  padding:0.75rem 0.85rem;
  border:1px solid #e2e8f0;
  border-radius:0.75rem;
  background:#f8fafc;
  cursor:pointer;
  font-size:0.875rem;
  font-weight:600;
  color:#0f172a;
}
.dispatch-check-toggle input {
  margin-top:0.15rem;
  width:1rem;
  height:1rem;
  flex:0 0 auto;
  accent-color:#0284c7;
}
.dispatch-check-footer {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:0.75rem;
  padding-top:1rem;
  margin-top:0.25rem;
  border-top:1px solid #f1f5f9;
}
.dispatch-check-submit {
  appearance:none;
  border:0;
  background:#0284c7;
  color:#fff;
  font:inherit;
  font-weight:650;
  font-size:0.9rem;
  padding:0.55rem 1.25rem;
  border-radius:0.75rem;
  box-shadow:0 1px 2px rgba(15,23,42,.08);
  cursor:pointer;
  transition:background .15s ease, transform .12s ease;
}
.dispatch-check-submit:hover { background:#0369a1; }
.dispatch-check-submit:active { transform:translateY(1px); }
.dispatch-check-textarea {
  min-height:10rem;
  resize:vertical;
  line-height:1.45;
}
.dispatch-hse-modal .fx-modal__panel { max-width:min(48rem,96vw); }
.dispatch-hse-custom-cat-wrap { margin-top:0.5rem; }
.dispatch-hse-custom-cat {
  width:100%;
  border-color:#7dd3fc !important;
  border-radius:0.75rem;
  font-size:0.875rem;
}
.dispatch-hse-custom-cat:focus {
  outline:none;
  border-color:#38bdf8 !important;
  box-shadow:0 0 0 3px rgba(14,165,233,0.18);
}
.dispatch-hse-pick-head {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:0.35rem 0.75rem;
  margin-bottom:0.45rem;
}
.dispatch-hse-pick-head .dispatch-check-label { margin:0; }
.dispatch-hse-drivers-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:0.4rem;
  max-height:14rem;
  overflow:auto;
  padding:0.55rem 0.65rem;
  border:1px solid #cbd5e1;
  border-radius:0.65rem;
  background:#f8fafc;
}
@media (min-width:640px) {
  .dispatch-hse-drivers-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.dispatch-hse-driver-opt {
  display:flex;
  align-items:flex-start;
  gap:0.5rem;
  margin:0;
  padding:0.35rem 0.4rem;
  border-radius:0.45rem;
  cursor:pointer;
  font-size:0.88rem;
  color:#0f172a;
  line-height:1.35;
}
.dispatch-hse-driver-opt:hover { background:#e2e8f0; }
.dispatch-hse-driver-opt input {
  margin-top:0.15rem;
  width:1rem;
  height:1rem;
  accent-color:#0284c7;
  flex:0 0 auto;
}
.dispatch-hse-driver-opt em {
  display:block;
  font-style:normal;
  font-size:0.75rem;
  color:#64748b;
}
.dispatch-ack-bar {
  margin-top:0.35rem;
  height:0.35rem;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
  max-width:7rem;
}
.dispatch-ack-bar > span {
  display:block;
  height:100%;
  background:#0284c7;
  border-radius:inherit;
}

/* ===== Driver dispatch command center ===== */
.dispatch-shell .gmao-score__card.is-alert {
  border-color:#fecaca;
  background:linear-gradient(180deg,#fff,#fef2f2);
}
.dispatch-shell .gmao-score__card.is-alert .gmao-score__value { color:#b91c1c; }
.dispatch-shell .vt-action--ot {
  color:#1b4965;
  border-color:#bae6fd;
  background:#f0f9ff;
}
.dispatch-shell .vt-inline-form { display:inline; margin:0; }
.dispatch-hse-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));
  gap:0.85rem;
  margin-top:0.85rem;
}
.dispatch-hse-card {
  border:1px solid #e2e8f0;
  border-radius:0.65rem;
  background:#fff;
  padding:0.9rem 1rem;
  display:flex;
  flex-direction:column;
  gap:0.55rem;
  min-height:11rem;
}
.dispatch-hse-card--important { border-color:#fdba74; background:linear-gradient(180deg,#fff,#fff7ed); }
.dispatch-hse-card--critical { border-color:#fca5a5; background:linear-gradient(180deg,#fff,#fef2f2); }
.dispatch-hse-card__head { display:flex; flex-wrap:wrap; gap:0.35rem; align-items:center; }
.dispatch-hse-card h3 { margin:0; font-size:1rem; font-weight:800; color:#0f172a; letter-spacing:-.01em; }
.dispatch-hse-card p { margin:0; color:#475569; font-size:0.88rem; line-height:1.45; flex:1; }
.dispatch-hse-card__foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.75rem;
  padding-top:0.55rem;
  border-top:1px solid #e2e8f0;
}
.dispatch-hse-card__foot small { color:#64748b; }

/* ===== Compliance / CO2 hub ===== */
.compliance-shell .compliance-charts { margin-bottom:1.25rem; }
.compliance-shell .compliance-charts .gmao-charts__panel--monthly { grid-column:span 12; }
.compliance-shell .compliance-charts .gmao-charts__panel--type { grid-column:span 12; }
@media (min-width:900px) {
  .compliance-shell .compliance-charts .gmao-charts__panel--monthly { grid-column:span 7; }
  .compliance-shell .compliance-charts .gmao-charts__panel--type { grid-column:span 5; }
}
.compliance-shell .gmao-score__card.is-alert {
  border-color:#fecaca;
  background:linear-gradient(180deg,#fff,#fef2f2);
}
.compliance-shell .gmao-score__card.is-alert .gmao-score__value { color:#b91c1c; }
.compliance-shell .gmao-score__value { font-size:clamp(1.05rem,2.1vw,1.45rem); word-break:break-word; }
.compliance-shell .gmao-score__hint {
  margin:0.25rem 0 0;
  font-size:0.72rem;
  color:#64748b;
  font-weight:600;
}
.compliance-report-card__head {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}
.compliance-report-summary {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));
  gap:0.75rem 1rem;
  margin:0;
}
.compliance-report-summary > div {
  padding:0.7rem 0.8rem;
  border:1px solid #e2e8f0;
  border-radius:0.55rem;
  background:#f8fafc;
}
.compliance-report-summary dt {
  margin:0 0 0.25rem;
  font-size:0.72rem;
  font-weight:750;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#64748b;
}
.compliance-report-summary dd {
  margin:0;
  font-weight:750;
  color:#0f172a;
}
.safety-shell .gmao-score__card.is-alert {
  border-color:#fecaca;
  background:linear-gradient(165deg,#fff 0%,#fef2f2 100%);
}
.safety-shell .gmao-score__card.is-alert .gmao-score__value { color:#b91c1c; }
.safety-shell .gmao-score__value { font-size:clamp(1.1rem,2.2vw,1.55rem); word-break:break-word; }
.safety-shell textarea {
  width:100%;
  min-height:5rem;
  border:1px solid #e2e8f0;
  border-radius:0.65rem;
  padding:0.65rem 0.75rem;
  font:inherit;
  resize:vertical;
}

/* ===== Conducteurs — formulaire & catégories permis ===== */
.fleet-driver-modal .fx-modal__panel { max-width:min(44rem,96vw); }
.fleet-driver-form {
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
}
@media (min-width:768px) {
  .fleet-driver-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.fleet-driver-field {
  display:flex;
  flex-direction:column;
  gap:0.375rem;
  min-width:0;
  margin:0;
  border:0;
  padding:0;
}
.fleet-driver-field--full { grid-column:1 / -1; }
.fleet-driver-label {
  display:block;
  margin:0;
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:.02em;
  color:#334155;
  line-height:1.3;
}
.fleet-driver-input {
  width:100%;
  min-height:2.5rem;
  padding:0.5rem 0.75rem;
  border:1px solid #d1d5db;
  border-radius:0.75rem;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-size:0.875rem;
  outline:none;
  box-sizing:border-box;
}
.fleet-driver-input:focus {
  border-color:#94a3b8;
  box-shadow:0 0 0 3px rgba(148,163,184,.25);
}
.fleet-driver-hint {
  color:#64748b;
  font-size:0.75rem;
  line-height:1.35;
}
.fleet-license-cats {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
}
.fleet-license-cat {
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  margin:0;
  padding:0.4rem 0.7rem;
  border:1px solid #e2e8f0;
  border-radius:0.65rem;
  background:#f8fafc;
  font-size:0.8125rem;
  font-weight:650;
  color:#0f172a;
  cursor:pointer;
  user-select:none;
}
.fleet-license-cat input {
  margin:0;
  accent-color:#0f172a;
}
.fleet-license-cat--custom {
  border-color:#cbd5e1;
  background:#fff;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.04);
}
.fleet-license-cat__remove {
  margin:0;
  margin-left:.1rem;
  padding:0;
  border:0;
  background:transparent;
  color:#94a3b8;
  font-size:1rem;
  line-height:1;
  cursor:pointer;
}
.fleet-license-cat__remove:hover {
  color:#be123c;
}
.fleet-license-custom {
  margin-top:.65rem;
  display:grid;
  gap:.45rem;
}
.fleet-license-custom__toggle {
  justify-self:start;
  margin:0;
  padding:.35rem .15rem;
  border:0;
  background:transparent;
  color:#0369a1;
  font-size:.8125rem;
  font-weight:650;
  cursor:pointer;
}
.fleet-license-custom__toggle:hover {
  color:#0c4a6e;
  text-decoration:underline;
}
.fleet-license-custom__row {
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  align-items:center;
}
.fleet-license-custom__row .fleet-driver-input {
  max-width:10rem;
  text-transform:uppercase;
}
.fleet-driver-suspension {
  padding:0.85rem;
  border:1px solid #fee2e2;
  border-radius:0.85rem;
  background:#fff7f7;
}

/* ===== Sous-traitance B2B ===== */
.subcontract-shell .subcontract-tabs .gmao-tabs__item {
  border:2px solid #bae6fd;
  background:#f0f9ff;
  color:#0c4a6e;
}
.subcontract-shell .subcontract-tabs .gmao-tabs__item:hover {
  border-color:#38bdf8;
  background:#e0f2fe;
}
.subcontract-shell .subcontract-tabs .gmao-tabs__item.is-active {
  border-color:#38bdf8;
  background:#e0f2fe;
  color:#0369a1;
  box-shadow:0 0 0 1px rgba(56,189,248,.35);
}
.subcontract-kpis { margin:1rem 0 1.25rem; }
.subcontract-overview {
  margin:0.75rem 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:0.5rem;
}
.subcontract-overview li {
  padding:0.65rem 0.85rem;
  border:1px solid #e2e8f0;
  border-radius:0.75rem;
  background:#f8fafc;
  font-size:0.875rem;
  color:#334155;
}
.subcontract-badge {
  display:inline-flex;
  align-items:center;
  padding:0.25rem 0.55rem;
  border-radius:0.5rem;
  border:1px solid #7dd3fc;
  background:#e0f2fe;
  color:#0369a1;
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:.01em;
}
.subcontract-check-grid {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
}
.subcontract-modal .fx-modal__panel { max-width:min(48rem,96vw); }
.vehicle-subcontract-badge {
  display:inline-flex;
  margin-top:0.25rem;
  padding:0.15rem 0.45rem;
  border-radius:0.4rem;
  border:1px solid #7dd3fc;
  background:#f0f9ff;
  color:#0369a1;
  font-size:0.68rem;
  font-weight:700;
}

/* ===== Driver portal PWA 2026 — onglets intégrés, sans barre fixe basse ===== */
body.driver-portal-body .section { padding-bottom: 0; }
body.layout-driver-portal .section { max-width: none; }
body.layout-driver-portal .section > .container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
body.layout-driver-portal .site-header--driver {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}
body.layout-driver-portal .site-header--driver .header-inner {
  min-height: 3.25rem;
  padding-top: .45rem;
  padding-bottom: .45rem;
  gap: .6rem;
}
body.layout-driver-portal .site-header--driver .brand-logo {
  width: auto;
  height: 1.65rem;
}
body.layout-driver-portal .site-header--driver .header-search,
body.layout-driver-portal .site-header--driver .main-nav,
body.layout-driver-portal .site-header--driver .notif-bell,
body.layout-driver-portal .site-header--driver .net-status {
  display: none !important;
}
body.layout-driver-portal .site-header--driver .header-actions {
  margin-left: auto;
  gap: .4rem;
}
body.layout-driver-portal .site-header--driver .site-header__logout {
  padding: .35rem .7rem;
  font-size: .78rem;
  border-radius: 999px;
}
@media (max-width: 480px) {
  body.layout-driver-portal .site-header--driver .site-header__logout {
    padding: .3rem .55rem;
  }
}

.driver-portal-v2.dp-shell {
  min-height: calc(100vh - 4rem);
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 32%, #f8fafc 100%);
  padding-bottom: 2rem;
}
.dp-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1rem .9rem 2rem;
}
@media (min-width: 900px) {
  .dp-wrap { padding: 1.25rem 1.25rem 2.5rem; }
}

.dp-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .9rem;
  margin-bottom: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #bae6fd;
  border-radius: 1.25rem;
  background: linear-gradient(155deg, #fff 0%, #e0f2fe 55%, #f0f9ff 100%);
  box-shadow: 0 12px 30px rgba(14, 165, 233, .1);
}
.dp-kicker {
  margin: 0 0 .2rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0284c7;
}
.dp-hero h1 {
  margin: .1rem 0 .5rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -.02em;
  color: #0A192F;
}
.dp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.dp-hero__fleet {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-content: flex-start;
}
.dp-status {
  display: inline-flex;
  align-items: center;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.dp-status.is-duty {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.dp-status.is-mission {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}
.dp-org {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: .78rem;
  font-weight: 700;
}
.dp-org small { color: #c2410c; font-weight: 800; }
.dp-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #7dd3fc;
  color: #0369a1;
  font-size: .78rem;
  font-weight: 700;
}
.dp-chip.is-muted { border-color: #e2e8f0; color: #64748b; }
.dp-chip.is-soft { border-color: #e2e8f0; color: #475569; background: #f8fafc; }

.dp-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.35rem;
  padding: .5rem;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.dp-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.55rem;
  padding: .5rem .85rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  background: transparent;
  color: #6b7280;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dp-tab .gmao-ico { width: 1.05rem; height: 1.05rem; }
.dp-tab:hover { background: #f8fafc; color: #0369a1; }
.dp-tab.is-active {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 2px rgba(14, 165, 233, .12);
}
.dp-panel[hidden] { display: none !important; }
a.dp-alert, a.dp-quick__btn { text-decoration: none; color: inherit; }

.dp-checkin-ok {
  margin-top: .35rem;
  padding: .95rem 1rem;
  border-radius: 1rem;
  border: 1px solid #a7f3d0;
  background: linear-gradient(180deg, #ecfdf5, #fff);
}
.dp-checkin-ok__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: #047857;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.dp-checkin-ok__text {
  margin: 0 0 .35rem;
  color: #065f46;
  font-size: .95rem;
  font-weight: 700;
}
.dp-checkin-ok .dp-meta { margin-top: .15rem !important; }
.dp-checkin-ok .dp-hint { margin: .45rem 0 0; color: #047857; }

body.dp-modal-open { overflow: hidden; }
.dp-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: .75rem;
}
.dp-modal.is-open,
.dp-modal[data-open="1"] {
  display: flex !important;
}
.dp-modal.is-open[x-cloak],
.dp-modal[data-open="1"][x-cloak] {
  display: flex !important;
}
@media (min-width: 720px) {
  .dp-modal {
    align-items: center;
    padding: 1.25rem;
  }
  .dp-modal.is-open,
  .dp-modal[data-open="1"] {
    display: flex !important;
  }
}
.dp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.dp-modal__backdrop.bg-black\/50 {
  background: rgba(0, 0, 0, .5);
}
.dp-modal__panel {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  max-height: min(92vh, 52rem);
  overflow: auto;
  padding: 1rem 1.05rem 1.2rem;
  border-radius: 1.25rem 1.25rem .9rem .9rem;
  background: #fff;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, .18);
  transition: opacity .2s ease, transform .2s ease;
}
.dp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
@media (min-width: 720px) {
  .dp-modal__panel {
    border-radius: 1.25rem;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .2);
  }
}
.dp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}
.dp-modal__head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0A192F;
}
.dp-modal__close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.dp-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .35rem;
  padding-top: .75rem;
  border-top: 1px solid #e2e8f0;
}
.dp-modal__actions--stack {
  flex-direction: column-reverse;
  align-items: stretch;
}
.dp-modal__actions--stack .btn { width: 100%; justify-content: center; }
.dp-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .65rem;
  font-style: normal;
  font-weight: 800;
}

.dp-flash {
  margin: 0 0 .85rem;
  padding: .75rem .95rem;
  border-radius: 1rem;
  font-size: .88rem;
  font-weight: 650;
}
.dp-flash.is-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.dp-flash.is-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.dp-flash.is-warn { background: #fffbeb; border: 1px solid #fbbf24; color: #92400e; }
.dp-flash.is-warn p { margin: .35rem 0 0; font-weight: 550; }

.dp-panel { margin-bottom: .5rem; }
.dp-title { margin: 0 0 .85rem; font-size: 1.1rem; font-weight: 800; color: #0A192F; }
.dp-subtitle { margin: 1.15rem 0 .6rem; font-size: .95rem; font-weight: 800; color: #0A192F; }
.dp-empty, .dp-hint { color: #64748b; font-size: .9rem; }
.dp-lead { margin: 0 0 .85rem; color: #475569; font-size: .9rem; line-height: 1.45; }
.dp-meta { margin-top: .35rem !important; font-size: .78rem !important; color: #64748b !important; }

.dp-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}
.dp-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
}
@media (min-width: 640px) {
  .dp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .dp-grid-2 { grid-template-columns: 1.15fr .85fr; }
}

.dp-cards { display: flex; flex-direction: column; gap: .75rem; }
.dp-cards--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 720px) {
  .dp-cards--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dp-card {
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.dp-card--accent {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #fff, #f0f9ff);
}
.dp-card.is-important { border-color: #fdba74; background: linear-gradient(180deg, #fff, #fff7ed); }
.dp-card.is-critical { border-color: #fca5a5; background: linear-gradient(180deg, #fff, #fef2f2); }
.dp-card.is-doc-warn { border-color: #fbbf24; background: linear-gradient(180deg, #fff, #fffbeb); }
.dp-card.is-doc-expired { border-color: #f87171; background: linear-gradient(180deg, #fff, #fef2f2); }
.dp-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .45rem;
}
.dp-card__head h2,
.dp-card__head h3 {
  margin: 0;
  font-size: .98rem;
  font-weight: 800;
  color: #0A192F;
}
.dp-card p { margin: 0; color: #475569; font-size: .88rem; line-height: 1.45; }
.dp-card__foot {
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid #e2e8f0;
}
.dp-report-block {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: .35rem;
}

/* ========== Design Flotte 2026 ========== */
.fd26-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.fd26-vehicle-panel {
  padding: 1.15rem 1.25rem;
  margin-bottom: .9rem;
}
.fd26-vehicle-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}
.fd26-vehicle-panel .section-lead {
  margin: .3rem 0 0;
  color: #64748b;
}
.fd26-vehicle-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem;
}
.fd26-vehicle-panel .fd26-actions {
  margin-top: .55rem;
}
.fd26-vehicle-panel__row .fd26-actions {
  margin-top: 0;
}
.fd26-table {
  border-collapse: separate;
  border-spacing: 0;
}
.fd26-table thead th {
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
  padding: .85rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}
.fd26-table tbody td {
  padding: .95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}
.fd26-row {
  transition: background .15s ease;
}
.fd26-row:hover {
  background: #f8fafc;
}
.fd26-entity {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.fd26-entity__text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.fd26-entity__text strong {
  font-size: .95rem;
  color: #111827;
}
.fd26-entity__text small,
.fd26-entity__text .vehicle-subcontract-badge {
  color: #6b7280;
  font-size: .78rem;
}
.fd26-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: .85rem;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  flex-shrink: 0;
}
.fd26-thumb--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.fd26-avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: #f3f4f6;
}
.fd26-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.fd26-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .28rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.fd26-badge.is-in_service,
.fd26-badge.is-doc-green { background: #ecfdf5; color: #047857; }
.fd26-badge.is-on_mission { background: #eff6ff; color: #1d4ed8; }
.fd26-badge.is-in_maintenance,
.fd26-badge.is-doc-orange { background: #fff7ed; color: #c2410c; }
.fd26-badge.is-immobilized,
.fd26-badge.is-doc-red { background: #fff1f2; color: #be123c; }
.fd26-badge.is-doc-none { background: #f3f4f6; color: #6b7280; }
.fd26-type-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .75rem;
  font-weight: 650;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.fd26-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.fd26-actions .btn {
  border-radius: .75rem;
}
.fd26-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.2;
  border-radius: .75rem;
  border: 1px solid transparent;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.fd26-action__icon {
  width: .875rem;
  height: .875rem;
  flex: 0 0 auto;
}
.fd26-action--blue {
  color: #1d4ed8;
  background: rgba(239, 246, 255, .72);
  border-color: #bfdbfe;
}
.fd26-action--blue:hover {
  background: #dbeafe;
  color: #1e40af;
}
.fd26-action--indigo {
  color: #4338ca;
  background: rgba(238, 242, 255, .72);
  border-color: #c7d2fe;
}
.fd26-action--indigo:hover {
  background: #e0e7ff;
  color: #3730a3;
}
.fd26-action--cyan {
  color: #0e7490;
  background: rgba(236, 254, 255, .72);
  border-color: #a5f3fc;
}
.fd26-action--cyan:hover {
  background: #cffafe;
  color: #155e75;
}
.fd26-action--amber {
  color: #b45309;
  background: rgba(255, 251, 235, .72);
  border-color: #fde68a;
}
.fd26-action--amber:hover {
  background: #fef3c7;
  color: #92400e;
}
.fd26-action--emerald {
  color: #047857;
  background: rgba(236, 253, 245, .72);
  border-color: #a7f3d0;
}
.fd26-action--emerald:hover {
  background: #d1fae5;
  color: #065f46;
}
.fd26-action--slate {
  color: #334155;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.fd26-action--slate:hover {
  background: #f1f5f9;
  color: #0f172a;
}
@media (max-width: 760px) {
  .fd26-actions {
    width: 100%;
  }
  .fd26-action {
    flex: 1 1 calc(50% - .4rem);
    justify-content: center;
  }
}
.fd26-label {
  margin: 0 0 .55rem;
  font-size: .82rem;
  font-weight: 700;
  color: #374151;
}
.fd26-body-picker {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  background: rgba(249, 250, 251, .7);
}
.fd26-body-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: .9rem;
}
@media (min-width: 640px) {
  .fd26-body-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fd26-body-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 4.5rem;
  padding: .7rem .5rem;
  border-radius: .9rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.fd26-body-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fd26-body-option.is-active,
.fd26-body-option:has(input:checked) {
  border-color: #fca5a5;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}
.fd26-body-option__icon { font-size: 1.45rem; line-height: 1; }
.fd26-body-option__label {
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  color: #374151;
}
.fd26-photo-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 650;
  color: #374151;
}
.fd26-photo-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.fd26-photo-preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: .9rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fd26-photo-preview--round {
  border-radius: 999px;
}
.fd26-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fd26-hint {
  color: #9ca3af;
  font-weight: 500;
  font-size: .75rem;
}
.fd26 .ffl-card,
.section.ffl.fd26 .ffl-card {
  border-radius: 1rem;
  border-color: #f3f4f6;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
@media (max-width: 720px) {
  .fd26-table thead { display: none; }
  .fd26-table,
  .fd26-table tbody,
  .fd26-table tr,
  .fd26-table td {
    display: block;
    width: 100%;
  }
  .fd26-row {
    padding: .35rem 0 .75rem;
    border-bottom: 1px solid #f3f4f6;
  }
  .fd26-table tbody td {
    border: 0;
    padding: .35rem 0;
  }
}

/* Rapport de mission intelligent (portail + flotte) */
.mr-smart {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.mr-form {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.mr-card {
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(249, 250, 251, .55);
}
.mr-card--meta,
.mr-card--admin {
  background: #fff;
  border-color: #e5e7eb;
}
.mr-card--sig {
  background: #fff;
}
.mr-card__head {
  margin: 0 0 .85rem;
}
.mr-card__head h4 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: #111827;
}
.mr-card__head p {
  margin: .25rem 0 0;
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.4;
}
.mr-card__head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.mr-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.mr-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 640px) {
  .mr-row { grid-template-columns: 1fr 1fr; }
}
.mr-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
}
.mr-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: .7rem .85rem;
  font: inherit;
  font-weight: 500;
  color: #111827;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mr-input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .18);
}
.mr-input:disabled {
  opacity: .55;
  background: #f9fafb;
}
.mr-toggle {
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .86rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.mr-toggle input {
  margin-top: .2rem;
}
.mr-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: .78rem;
  color: #6b7280;
}
.mr-chip strong { color: #111827; }
.mr-meta {
  margin: 0 0 .55rem;
  font-size: .86rem;
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.mr-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 560px) {
  .mr-media { grid-template-columns: 1fr 1fr; }
}
.mr-media figure {
  margin: 0;
}
.mr-media figcaption {
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 650;
  color: #6b7280;
}
.mr-media img {
  display: block;
  width: 100%;
  max-height: 12rem;
  object-fit: cover;
  border-radius: .75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.mr-sig-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 9rem;
  border: 1px dashed #d1d5db;
  border-radius: .85rem;
  background: #fff;
  touch-action: none;
}
.mr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  margin-top: .25rem;
  padding-top: .85rem;
  border-top: 1px solid #f3f4f6;
}
.mr-actions .btn {
  min-height: 2.55rem;
  border-radius: .85rem;
}
@media (max-width: 520px) {
  .mr-actions { flex-direction: column-reverse; }
  .mr-actions .btn { width: 100%; }
}
.dp-mission-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: .5rem;
}
.dp-btn-accept,
.dp-btn-refuse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.65rem;
  padding: .65rem 1rem;
  border-radius: .9rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.dp-btn-accept {
  flex: 1 1 auto;
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.dp-btn-accept:hover,
.dp-btn-accept:focus-visible {
  background: #d1fae5;
  border-color: #6ee7b7;
}
.dp-btn-refuse {
  flex: 0 0 auto;
  color: #be123c;
  background: #fff1f2;
  border-color: #fecdd3;
}
.dp-btn-refuse:hover,
.dp-btn-refuse:focus-visible {
  background: #ffe4e6;
  border-color: #fda4af;
}
.dp-btn-accept:disabled,
.dp-btn-refuse:disabled,
.dp-btn-close:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.dp-btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex: 1 1 auto;
  min-height: 2.65rem;
  padding: .65rem 1rem;
  border-radius: .9rem;
  border: 1px solid #bfdbfe;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dp-btn-close:hover,
.dp-btn-close:focus-visible {
  background: #dbeafe;
  border-color: #93c5fd;
}
.dp-btn-ico {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .dp-mission-actions { flex-wrap: wrap; }
  .dp-btn-accept,
  .dp-btn-refuse,
  .dp-btn-close { flex: 1 1 100%; }
}
.btn-success {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}
.btn-success:hover,
.btn-success:focus-visible {
  background: #166534;
  border-color: #166534;
}
.btn-danger {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}
.btn-danger:hover,
.btn-danger:focus-visible {
  background: #991b1b;
  border-color: #991b1b;
}
.form-textarea {
  width: 100%;
  min-height: 6rem;
  padding: .7rem .85rem;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  font: inherit;
  color: #0f172a;
  background: #fff;
  resize: vertical;
}
.form-textarea:focus {
  outline: 2px solid rgba(14, 165, 233, .35);
  border-color: #0ea5e9;
}

.dp-pill {
  display: inline-flex;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: .7rem;
  font-weight: 700;
}
.dp-pill.is-warn { background: #fef3c7; color: #b45309; }
.dp-pill.is-danger { background: #fee2e2; color: #b91c1c; }

.dp-alerts { display: flex; flex-direction: column; gap: .5rem; }
.dp-alert {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  text-align: left;
  padding: .7rem .85rem;
  border-radius: .9rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: .86rem;
  font-weight: 650;
  cursor: pointer;
}
.dp-alert.is-warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.dp-alert.is-info { background: #f0f9ff; border-color: #7dd3fc; color: #0369a1; }

.dp-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin-top: 1rem;
}
.dp-quick__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .7rem .35rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}
.dp-quick__btn.is-sos { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }

.dp-form { display: flex; flex-direction: column; gap: .75rem; }
.dp-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 640px) {
  .dp-field-row { grid-template-columns: 1fr 1fr; }
}
.dp-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .84rem;
  font-weight: 650;
  color: #334155;
}
.dp-field input,
.dp-field textarea,
.dp-field select {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid #cbd5e1;
  border-radius: .85rem;
  font: inherit;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
}
.dp-field input:focus,
.dp-field textarea:focus,
.dp-field select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18);
}
.dp-toggle {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .86rem;
  font-weight: 650;
  color: #334155;
}
.dp-check {
  margin: 0;
  padding: .7rem;
  border: 1px solid #e2e8f0;
  border-radius: .9rem;
  background: #f8fafc;
}
.dp-check legend { padding: 0 .2rem; font-size: .86rem; font-weight: 700; }
.dp-choice {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: .3rem .55rem 0 0;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}
.dp-choice.is-ok { color: #047857; }
.dp-choice.is-bad { color: #b91c1c; }

.dp-ack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  background: #0284c7;
  color: #fff;
  padding: .75rem 1rem;
  border-radius: .9rem;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.dp-ack:hover { background: #0369a1; }
.dp-acked { color: #047857; font-size: .82rem; font-weight: 700; }

.dp-scan {
  display: flex;
  gap: .45rem;
  align-items: stretch;
}
.dp-scan input { flex: 1; min-width: 0; }
.dp-scan .btn {
  display: inline-flex !important;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .dp-scan { flex-direction: column; }
}

.dp-sos { margin-bottom: .5rem; }
.dp-sos__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.85rem;
  border: 0;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(185, 28, 28, .28);
}
.dp-sos__btn:disabled { opacity: .65; cursor: wait; }

.dp-notif {
  position: relative;
}
.dp-notif__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #fff;
  color: #0369a1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(14, 165, 233, .12);
}
.dp-notif__badge {
  position: absolute;
  top: -.2rem;
  right: -.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .28rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}
.dp-notif__panel {
  position: absolute;
  top: calc(100% + .45rem);
  right: 0;
  z-index: 40;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.dp-notif__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem .85rem;
  border-bottom: 1px solid #e2e8f0;
}
.dp-notif__head strong { font-size: .92rem; color: #0A192F; }
.dp-notif__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dp-notif__item a {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem .85rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f1f5f9;
}
.dp-notif__item.is-unread a { background: #f0f9ff; }
.dp-notif__item-ico {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .55rem;
  background: #e2e8f0;
  color: #0f172a;
}
.dp-notif__item.is-unread .dp-notif__item-ico { background: #bae6fd; color: #0369a1; }
.dp-notif__item-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  flex: 1 1 auto;
}
.dp-notif__item-title { font-size: .82rem; font-weight: 800; color: #0f172a; }
.dp-notif__item-msg { font-size: .78rem; color: #475569; line-height: 1.35; }
.dp-notif__item-time { font-size: .68rem; color: #94a3b8; }
.dp-notif__empty { padding: 1rem .85rem; }
.dp-notif__footer {
  display: block;
  padding: .75rem .85rem;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
}

.dp-chatbox {
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.dp-chatbox--page { min-height: 28rem; }
.dp-chatbox__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.dp-chatbox__head-main {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.dp-chatbox__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  flex-shrink: 0;
}
.dp-chatbox__head strong {
  display: block;
  font-size: .98rem;
  color: #0A192F;
}
.dp-chatbox__head p,
.dp-chatbox__status {
  margin: .2rem 0 0;
  font-size: .78rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.dp-chatbox__dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #94a3b8;
}
.dp-chatbox__dot.is-online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}
.dp-chatbox__head-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.dp-chatbox__call {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.dp-chatbox__thread,
.dp-chatbox__thread.max-h-96,
.dp-chatbox__thread.max-h-\[500px\],
.dp-chatbox__thread.overflow-y-auto {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem .9rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, .06), transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(15, 23, 42, .04), transparent 35%);
}
.max-h-\[500px\] { max-height: 500px; }
.overflow-y-auto { overflow-y: auto; }
.dp-linkish {
  border: 0;
  background: transparent;
  color: #0284c7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.dp-chatbox__row {
  display: flex;
  width: 100%;
}
.dp-chatbox__row.is-out { justify-content: flex-end; }
.dp-chatbox__row.is-in { justify-content: flex-start; }
.dp-bubble {
  max-width: min(88%, 22rem);
  padding: .55rem 1rem;
  border-radius: 1rem;
  font-size: .875rem;
  line-height: 1.4;
}
.dp-bubble.rounded-2xl { border-radius: 1rem; }
.dp-bubble.px-4 { padding-left: 1rem; padding-right: 1rem; }
.dp-bubble.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.dp-bubble.text-sm { font-size: .875rem; }
.dp-bubble p { margin: 0; }
.dp-bubble small { display: block; margin-top: .28rem; opacity: .7; font-size: .68rem; }
.dp-bubble__who {
  display: block;
  margin-bottom: .15rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .8;
}
.dp-bubble__tag {
  display: inline-block;
  margin-bottom: .25rem;
  font-size: .72rem;
}
.dp-bubble.is-driver,
.dp-bubble.bg-sky-600 {
  background: #0284c7;
  color: #fff;
  border-bottom-right-radius: .35rem;
}
.dp-bubble.is-fleet,
.dp-bubble.is-dispatcher,
.dp-bubble.is-system,
.dp-bubble.bg-gray-100 {
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: .35rem;
}
.dp-bubble.is-route {
  border-color: #7dd3fc;
  background: #e0f2fe;
  color: #0c4a6e;
}
.dp-chatbox__compose,
.dp-compose {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem .85rem .9rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.dp-compose input {
  flex: 1;
  padding: .75rem .85rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font: inherit;
}
.dp-compose button {
  border-radius: 999px !important;
  min-width: 2.85rem;
  min-height: 2.85rem;
}
.dp-chatbox__send-label {
  display: none;
}
@media (min-width: 640px) {
  .dp-chatbox__send-label { display: inline; }
  .dp-compose button { padding-inline: .95rem; }
}

.dp-modal--chat {
  align-items: flex-end;
  justify-content: flex-end;
  padding: .85rem;
}
@media (min-width: 720px) {
  .dp-modal--chat {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
  }
}
.dp-modal__panel--chat {
  width: min(26rem, 100%);
  max-height: min(88vh, 40rem);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.dp-modal__panel--chat .dp-modal__head {
  margin: 0;
  padding: .9rem 1rem .75rem;
  border-bottom: 1px solid #e2e8f0;
}
.dp-chatbox--modal {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.dp-chatbox--modal .dp-chatbox__head {
  display: none;
}
.dp-chatbox--modal .dp-chatbox__thread {
  flex: 1;
  max-height: none;
  min-height: 16rem;
}
.dp-chatbox--modal .dp-chatbox__compose {
  flex-shrink: 0;
}

.dp-chat-fab.fixed,
.dp-chat-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1100;
  width: 3.55rem;
  height: 3.55rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #0ea5e9, #0369a1);
  color: #fff;
  box-shadow: 0 14px 32px rgba(3, 105, 161, .35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.dp-chat-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 36px rgba(3, 105, 161, .42);
}
.dp-chat-fab .gmao-ico {
  width: 1.35rem;
  height: 1.35rem;
}
.dp-chat-fab__badge {
  position: absolute;
  top: -.15rem;
  right: -.1rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1.2rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.driver-portal-v2 .dp-wrap { padding-bottom: 5.5rem; }

.dp-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: .85rem;
}
@media (min-width: 720px) {
  .dp-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.dp-kpi > div {
  padding: .8rem .85rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.dp-kpi small { display: block; color: #64748b; font-size: .72rem; font-weight: 650; }
.dp-kpi strong { display: block; margin-top: .2rem; font-size: 1.05rem; color: #0A192F; }
.dp-progress {
  height: .45rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: .75rem;
}
.dp-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.dp-sig {
  border: 1px dashed #7dd3fc;
  border-radius: 1rem;
  padding: .55rem;
  background: #f8fafc;
}
.dp-sig__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .35rem;
  font-size: .84rem;
  font-weight: 700;
}
.dp-sig__canvas {
  width: 100%;
  height: 8.5rem;
  touch-action: none;
  border-radius: .75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}

/* Purge totale — aucune navbar / dock / sheet bas */
.dp2-bottom,
.driver-portal__sheet,
.dp2-sheet { display: none !important; }

/* ===== Fleet chat hub ===== */
.fleet-chat-page .fleet-chat {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 0;
  min-height: min(72vh, 42rem);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
@media (max-width: 900px) {
  .fleet-chat-page .fleet-chat { grid-template-columns: 1fr; min-height: auto; }
}
.fleet-chat__sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  min-height: 28rem;
}
.fleet-chat__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .75rem; }
.fleet-chat__tabs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fleet-chat__sidebar-actions { padding: 0 .75rem .55rem; }
.fleet-chat__new-group { width: 100%; justify-content: center; }
.fleet-chat__avatar.is-group {
  background: #ecfeff; color: #0e7490; font-size: 1rem;
}
.fleet-chat__modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.fleet-chat__modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .45);
}
.fleet-chat__modal-panel {
  position: relative; z-index: 1; width: min(34rem, 100%);
  max-height: min(88vh, 40rem); overflow: auto;
  background: #fff; border-radius: 1rem; box-shadow: 0 24px 60px rgba(15, 23, 42, .2);
  display: flex; flex-direction: column;
}
.fleet-chat__modal-head,
.fleet-chat__modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1rem; border-bottom: 1px solid #e2e8f0;
}
.fleet-chat__modal-foot { border-bottom: 0; border-top: 1px solid #e2e8f0; justify-content: flex-end; }
.fleet-chat__modal-head h3 { margin: 0; font-size: 1.05rem; }
.fleet-chat__modal-body { padding: 1rem; display: flex; flex-direction: column; gap: .85rem; }
.fleet-chat__field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 650; color: #334155; }
.fleet-chat__field input {
  padding: .7rem .85rem; border: 1px solid #cbd5e1; border-radius: .75rem; font: inherit; font-weight: 500;
}
.fleet-chat__field-hint { margin: 0; color: #64748b; font-size: .8rem; }
.fleet-chat__member-grid {
  display: grid; grid-template-columns: 1fr; gap: .85rem;
}
@media (min-width: 640px) {
  .fleet-chat__member-grid { grid-template-columns: 1fr 1fr; }
}
.fleet-chat__member-grid h4 { margin: 0 0 .4rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.fleet-chat__checks {
  max-height: 14rem; overflow: auto; border: 1px solid #e2e8f0; border-radius: .75rem; padding: .35rem;
  background: #f8fafc;
}
.fleet-chat__check {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .45rem .5rem; border-radius: .55rem; font-size: .85rem; font-weight: 500; cursor: pointer;
}
.fleet-chat__check:hover { background: #fff; }
.fleet-chat__check input { margin-top: .15rem; }
.dp-chat-threads {
  display: flex; gap: .45rem; overflow-x: auto; padding: 0 0 .85rem; margin-bottom: .35rem;
  -webkit-overflow-scrolling: touch;
}
.dp-chat-threads__item {
  display: inline-flex; align-items: center; gap: .55rem;
  min-width: min(70vw, 13.5rem); padding: .65rem .75rem;
  border: 1px solid #e2e8f0; border-radius: .9rem; background: #fff;
  text-decoration: none; color: inherit; position: relative; flex-shrink: 0;
}
.dp-chat-threads__item.is-active {
  border-color: #0ea5e9; background: #f0f9ff; box-shadow: 0 0 0 1px rgba(14, 165, 233, .2);
}
.dp-chat-threads__item strong { display: block; font-size: .84rem; }
.dp-chat-threads__item small { color: #64748b; font-size: .72rem; }
.dp-chat-threads__ico {
  width: 2.1rem; height: 2.1rem; border-radius: 999px; background: #e0f2fe;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dp-chat-threads__ico.is-group { background: #ecfeff; }
.dp-chat-threads__badge {
  position: absolute; top: .35rem; right: .4rem;
  min-width: 1.1rem; height: 1.1rem; padding: 0 .28rem; border-radius: 999px;
  background: #dc2626; color: #fff; font-size: .65rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.dp-chatbox__avatar.is-group {
  background: #ecfeff; font-size: 1.05rem;
}
.fleet-chat__tab {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .55rem .45rem; border-radius: .7rem; border: 1px solid #e2e8f0;
  background: #fff; color: #475569; font-size: .78rem; font-weight: 700; text-decoration: none;
}
.fleet-chat__tab.is-active { background: #0A192F; color: #fff; border-color: #0A192F; }
.fleet-chat__search { padding: 0 .75rem .65rem; }
.fleet-chat__search input {
  width: 100%; padding: .55rem .7rem; border: 1px solid #cbd5e1; border-radius: .65rem; font: inherit;
}
.fleet-chat__list { overflow: auto; flex: 1; padding: 0 .45rem .75rem; }
.fleet-chat__item {
  display: flex; gap: .65rem; padding: .65rem .55rem; border-radius: .75rem;
  text-decoration: none; color: inherit; margin-bottom: .25rem;
}
.fleet-chat__item:hover { background: #eef2ff; }
.fleet-chat__item.is-active { background: #e0f2fe; }
.fleet-chat__avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 999px; background: #0A192F; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.fleet-chat__avatar.is-staff { background: #0369a1; }
.fleet-chat__item-body { min-width: 0; flex: 1; }
.fleet-chat__item-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.fleet-chat__item-body strong { font-size: .88rem; }
.fleet-chat__item-body small { color: #64748b; font-size: .72rem; }
.fleet-chat__item-body p {
  margin: .15rem 0 0; color: #64748b; font-size: .75rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fleet-chat__badge {
  min-width: 1.15rem; height: 1.15rem; padding: 0 .28rem; border-radius: 999px;
  background: #dc2626; color: #fff; font-size: .68rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.fleet-chat__main { display: flex; flex-direction: column; min-height: 28rem; background: #fff; }
.fleet-chat__placeholder {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; color: #64748b; padding: 2rem; text-align: center;
}
.fleet-chat__head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1rem; border-bottom: 1px solid #e2e8f0;
}
.fleet-chat__head h2 { margin: 0; font-size: 1.05rem; }
.fleet-chat__head p { margin: .2rem 0 0; color: #64748b; font-size: .8rem; }
.fleet-chat__thread {
  flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
  max-height: min(52vh, 28rem);
}
.fleet-chat__bubble {
  max-width: min(78%, 28rem); padding: .65rem .8rem; border-radius: 1rem;
  border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.fleet-chat__bubble.is-in { align-self: flex-start; border-bottom-left-radius: .3rem; }
.fleet-chat__bubble.is-out {
  align-self: flex-end; background: #0A192F; color: #fff; border-color: #0A192F;
  border-bottom-right-radius: .3rem;
}
.fleet-chat__meta {
  display: flex; justify-content: space-between; gap: .75rem;
  font-size: .7rem; opacity: .8; margin-bottom: .25rem;
}
.fleet-chat__text { font-size: .9rem; line-height: 1.4; word-break: break-word; }
.fleet-chat__attach { display: block; margin-top: .45rem; }
.fleet-chat__attach img {
  max-width: 100%; max-height: 11rem; border-radius: .65rem; object-fit: cover;
}
.fleet-chat__quick {
  display: flex; flex-wrap: wrap; gap: .35rem; padding: .45rem .85rem 0;
}
.fleet-chat__dock,
.dp-chatbox__dock {
  position: relative;
  min-height: 3.85rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.fleet-chat__composer {
  display: flex; align-items: flex-end; gap: .45rem; padding: .7rem .85rem .85rem;
}
.fleet-chat__composer textarea {
  flex: 1; min-height: 2.55rem; max-height: 7rem; resize: vertical;
  padding: .65rem .75rem; border: 1px solid #cbd5e1; border-radius: 1.25rem; font: inherit;
}
.fleet-chat__file {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid #e2e8f0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: #f8fafc;
}
.fleet-chat__file input { display: none; }
.fleet-chat__file-name { margin: 0 .85rem .75rem; color: #64748b; font-size: .75rem; }
.fleet-chat__file-name.is-error,
.dp-chatbox__hint.is-error { color: #b91c1c; }
.fleet-chat__attach-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 0 .85rem .65rem; max-width: calc(100% - 1.7rem);
  padding: .4rem .55rem .4rem .65rem;
  border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc;
  font-size: .8rem; color: #0f172a;
}
.fleet-chat__attach-ico { flex-shrink: 0; line-height: 1; }
.fleet-chat__attach-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}
.fleet-chat__attach-clear {
  width: 1.55rem; height: 1.55rem; border: 0; border-radius: 999px;
  background: transparent; color: #94a3b8; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.fleet-chat__attach-clear:hover { background: #fee2e2; color: #dc2626; }
.dp-chatbox__file { flex-shrink: 0; }
.fleet-chat__mic,
.dp-chatbox__mic {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid #e2e8f0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; background: #f8fafc; font-size: 1.05rem; line-height: 1;
  flex-shrink: 0; transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.fleet-chat__mic:hover,
.dp-chatbox__mic:hover { background: #eff6ff; border-color: #bfdbfe; }
.fleet-chat__mic:disabled,
.dp-chatbox__mic:disabled { opacity: .45; cursor: not-allowed; }

/* Barre vocale type WhatsApp — remplace le composer */
.fleet-chat__voicebar,
.dp-chatbox__voicebar {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.85rem;
  padding: .55rem .75rem .65rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.fleet-chat__voice-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #f1f5f9;
}
.fleet-chat__recdot {
  width: .55rem; height: .55rem; border-radius: 999px; background: #ef4444; flex-shrink: 0;
  animation: fleet-recdot 1.15s ease-out infinite;
}
@keyframes fleet-recdot {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); opacity: 1; }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); opacity: .85; }
}
.fleet-chat__voice-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 1rem;
  flex-shrink: 0;
}
.fleet-chat__voice-wave i {
  display: block;
  width: 2.5px;
  border-radius: 99px;
  background: #94a3b8;
  animation: fleet-voice-wave 900ms ease-in-out infinite;
}
.fleet-chat__voice-wave i:nth-child(1) { height: 40%; animation-delay: 0ms; }
.fleet-chat__voice-wave i:nth-child(2) { height: 70%; animation-delay: 120ms; }
.fleet-chat__voice-wave i:nth-child(3) { height: 100%; animation-delay: 240ms; }
.fleet-chat__voice-wave i:nth-child(4) { height: 55%; animation-delay: 360ms; }
.fleet-chat__voice-wave i:nth-child(5) { height: 80%; animation-delay: 480ms; }
@keyframes fleet-voice-wave {
  0%, 100% { transform: scaleY(.55); opacity: .55; }
  50% { transform: scaleY(1); opacity: 1; }
}
.fleet-chat__voice-time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: .02em;
  color: #0f172a;
  line-height: 1;
}
.fleet-chat__voice-btn {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s ease, color .18s ease, transform .15s ease, box-shadow .18s ease;
}
.fleet-chat__voice-btn--cancel {
  color: #94a3b8;
  background: transparent;
}
.fleet-chat__voice-btn--cancel:hover {
  color: #ef4444;
  background: #fef2f2;
}
.fleet-chat__voice-btn--send {
  color: #fff;
  background: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, .28);
}
.fleet-chat__voice-btn--send:hover {
  background: #047857;
  transform: scale(1.05);
}
.fleet-chat__voice-btn--send:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.fleet-chat__voice-btn .gmao-ico {
  width: 1.05rem;
  height: 1.05rem;
}
.fleet-voice-enter { transition: opacity .18s ease, transform .18s ease; }
.fleet-voice-enter-start { opacity: 0; transform: translateY(6px); }
.fleet-voice-enter-end { opacity: 1; transform: translateY(0); }
.fleet-voice-leave { transition: opacity .14s ease, transform .14s ease; }
.fleet-voice-leave-start { opacity: 1; transform: translateY(0); }
.fleet-voice-leave-end { opacity: 0; transform: translateY(6px); }

.fleet-chat__voice,
.dp-bubble__voice {
  margin-top: .4rem;
}
.fleet-chat__voice audio,
.dp-bubble__voice audio {
  width: min(100%, 16rem); height: 2.2rem; border-radius: 999px;
}
.fleet-chat__bubble.is-out .fleet-chat__voice audio,
.dp-bubble.is-driver .dp-bubble__voice audio {
  filter: contrast(1.05);
}
.dp-chatbox__hint { margin: 0 .85rem .35rem; color: #b45309; font-size: .75rem; }
.dp-chatbox__dock .dp-compose {
  border-top: 0;
  padding: .7rem .85rem .85rem;
}
.dp-bubble.has-voice { min-width: min(88%, 16.5rem); }
.dp-bubble__attach {
  display: inline-block; margin-top: .35rem; font-size: .8rem; font-weight: 700; color: inherit; text-decoration: underline;
}
.fleet-chat__bubble {
  animation: fleet-bubble-in .28s ease-out;
}
.dp-chatbox__row {
  animation: fleet-bubble-in .28s ease-out;
}
@keyframes fleet-bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.fleet-chat__bubble.is-live,
.dp-chatbox__row.is-live .dp-bubble {
  box-shadow: 0 0 0 1px rgba(14, 165, 233, .18);
}
