/* 
██████╗ ██╗   ██╗██╗      █████╗ ███╗   ██╗   ██████╗ ███████╗██╗   ██╗
██╔══██╗╚██╗ ██╔╝██║     ██╔══██╗████╗  ██║   ██╔══██╗██╔════╝██║   ██║
██║  ██║ ╚████╔╝ ██║     ███████║██╔██╗ ██║   ██║  ██║█████╗  ██║   ██║
██║  ██║  ╚██╔╝  ██║     ██╔══██║██║╚██╗██║   ██║  ██║██╔══╝  ╚██╗ ██╔╝
██████╔╝   ██║   ███████╗██║  ██║██║ ╚████║██╗██████╔╝███████╗ ╚████╔╝ 
╚═════╝    ╚═╝   ╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝╚═════╝ ╚══════╝  ╚═══╝
                                                                                                                                                                                      
Système développer par dylanpointdev.fr | © DylanPointDev tout droit réservé. 
*/

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

:root {
  /* ── Palette personnalisée ── */
  --bg:               #090909;
  --bg-card:          #111111;
  --bg-card-hover:    #161616;
  --bg-input:         #0e0e0e;
  --border:           #0c0c0c;
  --border-hover:     #2a2a2a;
  --text:             #ffffff;
  --text-muted:       #6b6b6b;
  --primary:          #0d6efd;
  --primary-hover:    #0b5ed7;
  --primary-light:    rgba(13, 110, 253, 0.12);
  --danger:           #dc3545;
  --danger-light:     rgba(220, 53, 69, 0.12);
  --warning:          #fd7e14;
  --warning-light:    rgba(253, 126, 20, 0.12);
  --success:          #198754;
  --success-light:    rgba(25, 135, 84, 0.12);
  --discord:          #5865F2;
  --radius:           8px;
  --radius-lg:        12px;
  --font:             'Sora', ui-sans-serif, system-ui, sans-serif;
  --shadow:           0 2px 12px rgba(0, 0, 0, 0.4);

  /* ── Bootstrap overrides ── */
  --bs-body-bg:           var(--bg);
  --bs-body-color:        var(--text);
  --bs-secondary-color:   var(--text-muted);
  --bs-border-color:      var(--border);
  --bs-secondary-bg:      var(--bg-card);
  --bs-tertiary-bg:       var(--bg-card-hover);
  --bs-card-bg:           var(--bg-card);
  --bs-card-border-color: var(--border);
  --bs-body-font-family:  var(--font);
  --bs-box-shadow:        var(--shadow);

  /* Compatibilité variables internes hostrix */
  --hostrix-body-bg-default: var(--bg);
  --avatar-verify-border: 2px solid var(--bg);

  /* Admin layout */
  --sidebar-w: 240px;
  --topbar-h: 62px;
}

html.hx-sidebar-collapsed { --sidebar-w: 72px; }

/* ──────────────────────────────────────────
   BASE
────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ──────────────────────────────────────────
   SIDEBAR
────────────────────────────────────────── */
.hx-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #111111;
  border-right: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  transition: width .2s ease, transform .25s ease;
}
.hx-sidebar::-webkit-scrollbar { display: none; }

/* Logo */
.hx-sidebar-logo {
  display: flex;
  align-items: center;
  min-height: var(--topbar-h);
  padding: 8px 16px;
  flex-shrink: 0;
}
.hx-sidebar-brand {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.hx-logo-img {
  display: block;
  width: 132px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.hx-logo-badge {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.6;
}

/* Section labels */
.hx-sidebar-section-label {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #484848;
  padding: 14px 16px 4px;
}

/* Nav */
.hx-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 4px 8px;
  flex: 1;
  gap: 1px;
}
.hx-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #888;
  font-size: .84rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.hx-nav-item i { font-size: 1.1rem; flex-shrink: 0; }
.hx-nav-item:hover {
  background: #1a1a1a;
  color: #e0e0e0;
}
.hx-nav-item.active {
  background: rgba(13,110,253,.1);
  color: #4d9aff;
  padding-left: 8px;
}
.hx-nav-item.active i { color: #4d9aff; }

/* Badge sidebar */
.hx-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  background: #222;
  color: #666;
}
.hx-badge-warning { background: rgba(253,126,20,.15); color: #fd7e14; }

/* Sidebar toggle (mobile) */
.hx-sidebar-toggle {
  background: none; border: none;
  color: #666; font-size: 1.1rem;
  padding: 4px; cursor: pointer;
}
.hx-sidebar-collapse {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #666;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.hx-sidebar-collapse:hover { background: #1a1a1a; color: #ddd; }
.hx-sidebar-site-icon {
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: contain;
}

html.hx-sidebar-collapsed .hx-sidebar-logo { padding-inline: 20px; }
html.hx-sidebar-collapsed .hx-sidebar-brand { display: none; }
html.hx-sidebar-collapsed .hx-sidebar-collapse { margin: 0 auto; }
html.hx-sidebar-collapsed .hx-sidebar-menu-icon { display: inline-block; }
html.hx-sidebar-collapsed .hx-sidebar-site-icon { display: none; }
html.hx-sidebar-collapsed .hx-sidebar-section-label { display: none; }

.hx-nav-alert-badge {
  --hx-nav-alert-rgb: var(--bs-danger-rgb);
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0 0 1px !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums;
  animation: hx-nav-alert-pulse 1.8s ease-in-out infinite;
}
.hx-nav-alert-badge[hidden]{display:none!important}
html body .hx-sidebar .hx-nav-item>.hx-nav-alert-badge[hidden]{display:none!important}
html.hx-sidebar-collapsed .hx-sidebar:hover .hx-nav-item>.hx-nav-alert-badge[hidden]{display:none!important}
.hx-nav-alert-badge.text-bg-warning { --hx-nav-alert-rgb: var(--bs-warning-rgb); }
.hx-nav-alert-badge.text-bg-primary { --hx-nav-alert-rgb: var(--bs-primary-rgb); }

@keyframes hx-nav-alert-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--hx-nav-alert-rgb), 0); }
  45% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(var(--hx-nav-alert-rgb), 0.14); }
}

@media (prefers-reduced-motion: reduce) {
  .hx-nav-alert-badge { animation: none; }
}
html.hx-sidebar-collapsed .hx-sidebar-nav { padding-inline: 12px; padding-top: 12px; }
html.hx-sidebar-collapsed .hx-nav-item {
  position: relative;
  justify-content: center;
  gap: 0;
  width: 48px;
  min-height: 40px;
  padding: 8px;
}
html.hx-sidebar-collapsed .hx-nav-item.active { border-left: 0; padding-left: 8px; }
html.hx-sidebar-collapsed .hx-nav-item > span,
html.hx-sidebar-collapsed .hx-nav-arrow,
html.hx-sidebar-collapsed .hx-nav-group > .collapse { display: none !important; }
html.hx-sidebar-collapsed .hx-nav-item > .hx-nav-alert-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  display: inline-flex !important;
  width: 14px;
  height: 14px;
  min-width: 14px;
  font-size: 0.5rem;
}

@media (min-width: 992px) {
  html.hx-sidebar-collapsed .hx-sidebar:hover {
    width: 240px;
    box-shadow: 12px 0 28px rgba(0, 0, 0, .35);
  }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-sidebar-logo { padding-inline: 16px; }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-sidebar-brand { display: flex; }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-sidebar-collapse { margin: 0; }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-sidebar-menu-icon { display: inline-block; }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-sidebar-site-icon { display: none; }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-sidebar-section-label { display: block; }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-sidebar-nav { padding: 4px 8px; }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-nav-item {
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 0;
    padding: 8px 10px;
  }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-nav-item.active {
    border-left: 2px solid #0d6efd;
    padding-left: 8px;
  }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-nav-item > span,
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-nav-arrow { display: inline !important; }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-nav-item > .hx-nav-alert-badge {
    position: static;
    display: inline-flex !important;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-left: auto !important;
    font-size: 0.56rem;
  }
  html.hx-sidebar-collapsed .hx-sidebar:hover .hx-nav-group > .collapse.show { display: block !important; }
}

/* Utilisateur bas de sidebar */
.hx-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #1a1a1a;
  flex-shrink: 0;
  background: #111;
}
.hx-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #6f42c1);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.hx-avatar-sm { width: 28px; height: 28px; font-size: .7rem; }
.hx-topbar-avatar {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #262626;
  color: #9a9a9a;
  font-size: .75rem;
  font-weight: 500;
}
.hx-user-info { flex: 1; min-width: 0; }
.hx-user-name { font-size: .82rem; font-weight: 600; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-user-role { font-size: .72rem; color: #555; }
.hx-user-logout {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  color: #555;
  transition: color .15s, background .15s;
}
.hx-user-logout:hover { background: rgba(220,53,69,.12); color: #dc3545; }

/* Overlay mobile */
.hx-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 199;
}
.hx-sidebar-overlay.show { display: block; }

/* ──────────────────────────────────────────
   MAIN WRAP
────────────────────────────────────────── */
.hx-main-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--topbar-h);
  transition: margin-left .2s ease;
}

/* ──────────────────────────────────────────
   TOPBAR
────────────────────────────────────────── */
.hx-topbar {
  height: var(--topbar-h);
  background: linear-gradient(180deg, #141414 0%, #111 100%);
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 150;
  transition: left .2s ease;
}
.hx-topbar-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.hx-topbar-right { display: flex; align-items: center; gap: 8px; }

.hx-topbar-toggle {
  width: 38px; height: 38px;
  background: transparent; border: 0; border-radius: 9px;
  color: #777; font-size: 1.15rem;
  padding: 0; cursor: pointer;
  align-items: center; justify-content: center;
  display: none;
}
.hx-topbar-toggle:hover { color: #fff; background: #1c1c1c; }

/* Contexte global */
.hx-topbar-context { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hx-topbar-app {
  max-width: min(42vw, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f7f7f7;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hx-topbar-breadcrumb { display: flex; align-items: center; gap: 4px; }
.hx-breadcrumb-link { color: #555; font-size: .82rem; transition: color .15s; }
.hx-breadcrumb-link:hover { color: #0d6efd; }
.hx-breadcrumb-sep { color: #333; font-size: .75rem; display: flex; align-items: center; }
.hx-breadcrumb-current {
  color: #bbb;
  font-size: .82rem;
  font-weight: 650;
  text-transform: uppercase;
  white-space: nowrap;
}

.hx-topbar-btn {
  width: 38px; height: 38px;
  background: transparent; border: 1px solid transparent;
  color: #858585; font-size: 1.1rem;
  padding: 0; border-radius: 9px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .18s, background .18s, border-color .18s;
  position: relative;
}
.hx-topbar-btn:hover { background: #1c1c1c; border-color: #292929; color: #fff; }

.hx-notif-dot {
  position: absolute;
  top: 7px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0d6efd;
  border: 1.5px solid #131313;
}

.hx-topbar-sep {
  width: 1px;
  height: 24px;
  background: #2a2a2a;
  margin: 0 5px 0 3px;
}

.hx-topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 4px 7px 4px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.hx-topbar-user:hover { background: #1b1b1b; border-color: #292929; }
.hx-topbar-username {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 650;
  color: #f3f3f3;
}
.hx-topbar-chevron { color: #666; font-size: .72rem; transition: transform .18s, color .18s; }
.hx-topbar-user[aria-expanded="true"] .hx-topbar-chevron { color: #aaa; transform: rotate(180deg); }
.hx-dropdown-user { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.hx-dropdown-user strong { color: #f1f1f1; font-size: .82rem; }
.hx-dropdown-user span { color: #666; font-size: .72rem; }

/* ──────────────────────────────────────────
   CONTENT
────────────────────────────────────────── */
.hx-content {
  flex: 1;
  padding: 24px;
  width: 100%;
}

/* ──────────────────────────────────────────
   PAGE HEADER
────────────────────────────────────────── */
.hx-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 4px 0 16px;
  border-bottom: 1px solid #2a2a2a;
  flex-wrap: wrap;
}
.hx-page-header > :first-child { min-width: 0; }
.hx-page-title {
  font-size: 1.42rem;
  font-weight: 750;
  color: #f0f0f0;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.hx-page-subtitle {
  font-size: .79rem;
  color: #656565;
  margin: 5px 0 0;
}
.hx-product-page-header { justify-content: flex-start; }
.hx-product-page-header > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  font-size: 1.2rem;
}
.hx-product-page-header > .btn { margin-left: auto; }
.hx-service-page-header { padding-top: 4px; }

/* ──────────────────────────────────────────
   STATS CARDS
────────────────────────────────────────── */
.hx-stat-card {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, background .2s;
}
.hx-stat-card:hover { background: #181818; border-color: #282828; }
.hx-stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.hx-stat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hx-stat-lbl {
  font-size: .78rem;
  color: #555;
  font-weight: 500;
  margin-top: 2px;
}
.hx-stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #eaeaea;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.hx-stat-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #1c1c1c;
}
.hx-stat-sub {
  font-size: .73rem;
  display: flex;
  gap: 6px;
  align-items: center;
}
.hx-stat-trend {
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}
.hx-stat-trend.up { color: #198754; }
.hx-stat-trend.down { color: #dc3545; }

/* ──────────────────────────────────────────
   CARDS
────────────────────────────────────────── */
.hx-card {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #1e1e1e;
}
.hx-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: #ccc;
}
.hx-card-title i { font-size: 1rem; }

.hx-link-sm {
  font-size: .78rem;
  color: #0d6efd;
  display: flex; align-items: center;
  transition: color .15s;
}
.hx-link-sm:hover { color: #4d9aff; }

/* ──────────────────────────────────────────
   TABLE
────────────────────────────────────────── */
.hx-table-wrap { overflow-x: auto; }
.hx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.hx-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #444;
  border-bottom: 1px solid #1e1e1e;
  background: #111;
}
.hx-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #191919;
  vertical-align: middle;
}
.hx-table tbody tr:last-child td { border-bottom: none; }
.hx-table tbody tr:hover td { background: #181818; }

/* ──────────────────────────────────────────
   TAGS & STATUS
────────────────────────────────────────── */
.hx-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  background: #1e1e1e;
  color: #666;
}
.hx-tag-blue { background: rgba(13,110,253,.12); color: #4d9aff; }

.hx-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}
.hx-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.hx-status-success { background: rgba(25,135,84,.12); color: #28a745; }
.hx-status-success::before { background: #28a745; }
.hx-status-muted { background: #1e1e1e; color: #555; }
.hx-status-muted::before { background: #333; }
.hx-status-warning { background: rgba(253,126,20,.12); color: #fd7e14; }
.hx-status-warning::before { background: #fd7e14; }

/* ──────────────────────────────────────────
   QUICK LINKS
────────────────────────────────────────── */
.hx-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: #1a1a1a;
  font-size: .83rem;
  color: #bbb;
  transition: background .15s, color .15s;
}
.hx-quick-link:hover { background: #202020; color: #fff; }
.hx-quick-link i:first-child { font-size: 1rem; }

/* ──────────────────────────────────────────
   PROGRESS
────────────────────────────────────────── */
.hx-progress {
  height: 5px;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
}
.hx-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width .5s ease;
}

/* ──────────────────────────────────────────
   ACTION BUTTON
────────────────────────────────────────── */
.hx-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: #1e1e1e;
  color: #555;
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.hx-action-btn:hover { background: rgba(13,110,253,.14); color: #0d6efd; }

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.hx-btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: .83rem;
  font-weight: 600;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .15s;
  cursor: pointer;
}
.hx-btn-primary:hover { background: var(--primary-hover); color: #fff; }

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.hx-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-top: 1px solid #1e1e1e;
  font-size: .75rem;
  color: #888;
  flex-shrink: 0;
}
.hx-footer-version { color: #555; }

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 991px) {
  html.hx-sidebar-collapsed { --sidebar-w: 240px; }
  .hx-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .hx-sidebar.open { transform: translateX(0); }
  .hx-main-wrap { margin-left: 0; }
  .hx-topbar { left: 0; padding-inline: 14px; }
  .hx-topbar-toggle { display: flex; }
  .hx-content { padding: 16px; }
}

@media (max-width: 575px) {
  .hx-topbar { padding-inline: 10px; }
  .hx-topbar-left { gap: 7px; }
  .hx-topbar-context { gap: 0; }
  .hx-topbar-right { gap: 2px; }
  .hx-topbar-sep { display: none; }
  .hx-topbar-user { padding-right: 4px; }
  .hx-stat-val { font-size: 1.3rem; }
  .hx-page-header { flex-direction: column; }
}

/* ──────────────────────────────────────────
   FORMS (pages produits)
────────────────────────────────────────── */
.form-label {
  font-size: .8125rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-control, .form-select {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #e1e1e1;
  border-radius: 7px;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  background: #1e1e1e;
  border-color: #0d6efd;
  color: #e1e1e1;
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}
.form-control::placeholder { color: #444; }
.form-select option { background: #1a1a1a; }
.input-group-text { background: #1a1a1a; border: 1px solid #2a2a2a; color: #555; }

/* ──────────────────────────────────────────
   CARDS (pages produits)
────────────────────────────────────────── */
.card { background: #141414; border: 1px solid #1e1e1e; border-radius: 10px; }
.card-section-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 20px;
  border-bottom: 1px solid #1e1e1e;
  font-size: .875rem;
  font-weight: 600;
  color: #c0c0c0;
}
.card-section-header i { font-size: 1.1rem; }
.card-body { padding: 20px; }

/* ──────────────────────────────────────────
   PRICE TYPE SELECTOR
────────────────────────────────────────── */
.price-type-group { display: flex; gap: 10px; }
.price-type-group .pt-option { flex: 1; }
.price-type-group .pt-option input[type="radio"] { display: none; }
.price-type-group .pt-option label {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 10px; background: #1a1a1a; border: 2px solid #2a2a2a;
  border-radius: 8px; cursor: pointer; font-size: .85rem; font-weight: 600;
  color: #777; transition: all .2s; text-align: center;
}
.price-type-group .pt-option label i { font-size: 1.3rem; }
.price-type-group .pt-option input[type="radio"]:checked + label {
  border-color: #0d6efd; background: rgba(13,110,253,.1); color: #6ea8fe;
}

/* ──────────────────────────────────────────
   FEATURES
────────────────────────────────────────── */
.feature-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.feature-row input { flex: 1; }
.feature-drag-handle{display:grid;place-items:center;width:28px;height:34px;padding:0;border:0;background:transparent;color:#6ea8fe;cursor:grab;border-radius:6px}.feature-drag-handle:hover{background:rgba(13,110,253,.12)}.feature-drag-handle:active{cursor:grabbing}.feature-row.is-dragging{opacity:.45}.feature-row.is-dragging input{border-color:#0d6efd}

/* ──────────────────────────────────────────
   MISC FORM
────────────────────────────────────────── */
.required-star { color: #f04e4e; }
small.hint { font-size: .78rem; color: #555; margin-top: 4px; display: block; }
.product-id-chip {
  background: #1e1e1e; border: 1px solid #2a2a2a; color: #666;
  border-radius: 50px; padding: 2px 10px; font-size: .78rem; font-weight: 700;
}

/* ──────────────────────────────────────────
   PRODUCT INFO BANNER
────────────────────────────────────────── */
.product-info-banner {
  background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(13,110,253,.03));
  border: 1px solid rgba(13,110,253,.15); border-radius: 10px;
  padding: 16px 20px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.product-info-banner i { font-size: 1.6rem; color: #6ea8fe; }
.product-info-banner .prod-name { font-size: 1rem; font-weight: 700; color: #fff; }
.product-info-banner .prod-meta { font-size: .8rem; color: #666; margin-top: 2px; }

/* ──────────────────────────────────────────
   PRODUCT LIST BADGES
────────────────────────────────────────── */
.badge-active   { background: rgba(25,135,84,.15); color: #75b798; border: 1px solid rgba(25,135,84,.2); padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.badge-inactive { background: rgba(108,117,125,.1); color: #6c757d; border: 1px solid rgba(108,117,125,.2); padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.badge-popular  { background: rgba(255,193,7,.12); color: #ffc107; border: 1px solid rgba(255,193,7,.2); padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.badge-ptype    { background: rgba(13,110,253,.1); color: #6ea8fe; border: 1px solid rgba(13,110,253,.2); padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.badge-free     { background: rgba(25,135,84,.1); color: #75b798; border: 1px solid rgba(25,135,84,.2); padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }

/* ──────────────────────────────────────────
   ACTION BUTTONS (liste produits)
────────────────────────────────────────── */
.btn-action { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 7px; font-size: .95rem; transition: all .15s; border: 1px solid transparent; text-decoration: none; }
.btn-action-edit { background: rgba(13,110,253,.1); color: #6ea8fe; border-color: rgba(13,110,253,.2); }
.btn-action-edit:hover { background: rgba(13,110,253,.25); color: #6ea8fe; }
.btn-action-del  { background: rgba(220,53,69,.1); color: #ea868f; border-color: rgba(220,53,69,.2); }
.btn-action-del:hover  { background: rgba(220,53,69,.25); color: #ea868f; }
.btn-action-dup  { background: rgba(13,110,253,.08); color: #63e6be; border-color: rgba(32,201,151,.2); }
.btn-action-dup:hover  { background: rgba(13,110,253,.2); color: #63e6be; }

/* ──────────────────────────────────────────
   SEARCH INPUT
────────────────────────────────────────── */
.search-input {
  background: #1a1a1a; border: 1px solid #2a2a2a; color: #e1e1e1;
  border-radius: 7px; padding: 7px 14px; font-size: .875rem; width: 220px;
  outline: none; transition: border-color .2s;
}
.search-input:focus { border-color: #0d6efd; }
.search-input::placeholder { color: #444; }

/* ──────────────────────────────────────────
   EMPTY STATE
────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: #555; }
.empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; }
.empty-state p { font-size: .9rem; }

/* ──────────────────────────────────────────
   STAT CARD (variante liste)
────────────────────────────────────────── */
.stat-card { background: #141414; border: 1px solid #1e1e1e; border-radius: 10px; padding: 18px 20px; }
.stat-card .stat-val { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-card .stat-lbl { font-size: .8rem; color: #666; margin-top: 4px; font-weight: 500; }
.stat-card i.ti { font-size: 1.6rem; opacity: .5; }

/* ──────────────────────────────────────────
   TABLE CARD (liste produits)
────────────────────────────────────────── */
.table-card { background: #141414; border: 1px solid #1e1e1e; border-radius: 10px; overflow: hidden; }
.table-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #1e1e1e; gap: 12px; flex-wrap: wrap; }
.table-card-header-title { font-size: .875rem; font-weight: 600; color: #c0c0c0; display: flex; align-items: center; gap: 8px; }
.table-card-header-title i { color: #0d6efd; }
.table { margin: 0; color: #e1e1e1; }
.table thead th { background: #111; border-bottom: 1px solid #1e1e1e; border-top: none; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #555; padding: 12px 16px; white-space: nowrap; }
.table tbody tr { border-bottom: 1px solid #1a1a1a; transition: background .15s; }
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: #191919; }
.table tbody td { padding: 14px 16px; vertical-align: middle; font-size: .9rem; border: none; }
.product-id-col { color: #555; font-size: .8rem; font-weight: 600; }
.product-category-row td { padding: 14px 16px 10px !important; background: rgba(13,110,253,.055); border-top: 1px solid rgba(13,110,253,.2) !important; }
.product-category-row:first-child td { border-top: 0 !important; }
.product-category-heading { display: flex; align-items: center; gap: 9px; color: #f1f1f1; }
.product-category-heading i { color: #0d6efd; font-size: 1rem; }
.product-category-heading strong { font-size: .9rem; }
.product-category-heading span { padding: 2px 8px; border-radius: 999px; background: #202020; color: #777; font-size: .7rem; font-weight: 700; }
.product-category-drag-handle { display: inline-grid; place-items: center; padding: 0; border: 0; background: transparent; color: #69717d; cursor: grab; font-size: 1.05rem; }
.product-category-drag-handle:active { cursor: grabbing; }
.product-category-row.is-category-dragging td, .product-category-child.is-category-dragging td { opacity: .45; background-color: rgba(13,110,253,.09); }
.product-name-child { padding-left: 28px !important; }
.product-name-child i { margin-right: 9px; color: #3f6fae; font-size: .9rem; }
.product-name-child .product-popular-star { display: inline-block; margin: 0 0 0 7px; color: #ffc107 !important; font-size: 1rem; vertical-align: -1px; }
.product-stock { display: inline-flex; align-items: center; gap: 5px; margin-left: 9px; padding: 3px 8px; border: 1px solid rgba(79,156,255,.28); border-radius: 7px; background: rgba(79,156,255,.09); color: #6ea8fe; font-size: .72rem; font-weight: 700; vertical-align: 1px; }
.product-name-child .product-stock i { margin: 0; color: inherit; font-size: .85rem; }
.product-stock-empty { border-color: rgba(220,53,69,.32); background: rgba(220,53,69,.1); color: #ea868f; }
.product-period-prices { display: flex; align-items: center; gap: 0; white-space: nowrap; }
.product-period-prices > span { display: inline-flex; align-items: baseline; gap: 5px; }
.product-period-prices > span + span::before { content: "|"; margin: 0 9px; color: #343a40; font-weight: 400; }
.product-period-prices small { color: #666; font-size: .66rem; text-transform: uppercase; }
.product-period-prices strong { color: #4f9cff; font-size: .83rem; }
.product-price-discount { margin-left: 2px; color: #75b798; font-size: .68rem; font-style: normal; font-weight: 700; }
.product-list-actions .btn-action,
.product-list-actions .btn-action:hover { background: transparent; }
.product-list-actions .btn-action-dup { color: #ffc107; border-color: rgba(255,193,7,.55); }
.product-list-actions .btn-action-dup:hover { color: #ffda6a; border-color: #ffc107; }
.product-category-child { cursor: pointer; }
.product-category-child td { transition: background-color .16s ease, border-color .16s ease; }
.product-category-child:hover td { background-color: rgba(255,255,255,.035); border-color: rgba(13,110,253,.22); }
.product-category-child:focus-visible { outline: 2px solid rgba(13,110,253,.75); outline-offset: -2px; }
.product-search-empty td { padding: 38px 20px !important; text-align: center; color: #666; }
.product-search-empty i { margin-right: 8px; }
.product-name { font-weight: 600; color: #e1e1e1; }
.price-text { font-weight: 700; color: #6ea8fe; }

/* ──────────────────────────────────────────
   MODALS
────────────────────────────────────────── */
.modal-content { background: #141414; border: 1px solid #2a2a2a; border-radius: 12px; }
.modal-header { border-bottom: 1px solid #1e1e1e; }
.modal-footer { border-top: 1px solid #1e1e1e; }

/* ──────────────────────────────────────────
   TOPBAR DROPDOWN
────────────────────────────────────────── */
.hx-dropdown-menu {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 6px;
  min-width: 210px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.hx-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
  font-size: .83rem; color: #aaa;
  transition: background .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.hx-dropdown-item:hover { background: #222; color: #e0e0e0; }
.hx-dropdown-item i { font-size: 1rem; flex-shrink: 0; }
.hx-dropdown-item.danger { color: #ea868f; }
.hx-dropdown-item.danger:hover { background: rgba(220,53,69,.1); color: #ea868f; }
.hx-dropdown-divider { border-top: 1px solid #252525; margin: 4px 0; }

/* ── Sidebar submenu ── */
.hx-nav-group { position: relative; }
.hx-nav-toggle { background: none; border: none; cursor: pointer; }
.hx-nav-toggle .hx-nav-arrow { transition: transform .2s ease; font-size: .7rem; color: #555; flex-shrink: 0; }
.hx-nav-toggle[aria-expanded='true'] .hx-nav-arrow { transform: rotate(90deg); }
.hx-nav-sub { padding: 4px 0 4px 12px; margin-left: 12px; border-left: 1px solid #2a2a2a; }
.hx-nav-sub-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px;
    font-size: .83rem; color: #888; text-decoration: none; transition: background .15s, color .15s; }
.hx-nav-sub-item i { font-size: 1rem; }
.hx-nav-sub-item:hover { background: rgba(255,255,255,.05); color: #e0e0e0; }
.hx-nav-sub-item.active { background: rgba(13,110,253,.12); color: #4d8fff; }

/* ── Administration clients, commandes et factures ── */
.hx-count{background:#202020;color:#777;border-radius:99px;padding:2px 9px;font-size:.72rem}.hx-filter{width:auto;min-width:150px;background-color:#111;border-color:#2a2a2a;color:#bbb}.hx-table-link{color:#b9d3ff;text-decoration:none}.hx-table-link:hover{color:#fff}.hx-back{color:#777;text-decoration:none;font-size:.82rem}.hx-back:hover{color:#bbb}.hx-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.hx-detail-grid div,.hx-info-list>div{display:flex;flex-direction:column;gap:4px}.hx-detail-grid span,.hx-info-list span{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#5f6772}.hx-detail-grid strong,.hx-info-list strong{font-size:.9rem;color:#d7dbe1}.hx-info-list{display:grid;gap:18px}.hx-invoice-line{padding:12px 0;border-bottom:1px solid #242424}.hx-invoice-line:first-child{padding-top:0}.hx-avatar{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--primary);color:white;font-weight:800;letter-spacing:.05em}.hx-tabs{display:flex;gap:6px;border-bottom:1px solid #242424}.hx-tabs li{list-style:none}.hx-tabs button{background:none;border:0;border-bottom:2px solid transparent;color:#717984;padding:11px 14px;font-size:.85rem}.hx-tabs button.active{color:#e8ebef;border-color:var(--primary)}.hx-tabs span{background:#222;border-radius:99px;padding:1px 7px;margin-left:5px;font-size:.7rem}.hx-card .table{margin-bottom:0}
@media(max-width:767px){.hx-detail-grid{grid-template-columns:1fr 1fr}.table-card-header form{width:100%;flex-wrap:wrap}.table-card-header form .search-input{flex:1;min-width:160px}.hx-page-header{align-items:flex-start}.hx-stat-card .hx-stat-val{font-size:1.35rem}}
.hx-quote-totals>div{display:flex;justify-content:space-between;padding:8px 0;color:#9098a3}.hx-quote-totals>div.total{border-top:1px solid #30343a;margin-top:8px;padding-top:16px;color:#fff;font-size:1.05rem}
.vps-metric canvas{width:100%!important;height:58px!important}.vps-donut{height:58px;display:flex;justify-content:flex-end}.vps-donut canvas{width:58px!important;height:58px!important}.vps-chart-box{height:270px;padding:18px;border:1px solid #292929;border-radius:10px;background:#111}.vps-chart-box>span{display:block;color:#777;font-size:.8rem}.vps-chart-box>strong{display:block;margin:6px 0 12px;color:#eee}.vps-chart-box canvas{height:195px!important;width:100%!important}#vps-console-screen{height:min(72vh,720px);background:#050505;overflow:hidden}#vps-console-screen canvas{margin:auto}.border-start-lg{border-left:1px solid #292929}
.hx-client-header{padding-block:4px;margin-bottom:18px}.hx-client-header .hx-avatar{width:44px;height:44px;border-radius:11px}.hx-client-header .hx-page-title{font-size:1.25rem}.hx-fields-disabled{opacity:.45}.hx-tabs{overflow-x:auto;flex-wrap:nowrap}.hx-tabs button{white-space:nowrap}
.hx-json-editor{min-height:520px;line-height:1.55;font-size:.82rem;tab-size:2}
.vps-os-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#e95420;color:#fff;font-size:1.6rem}.vps-metric{height:100%;min-height:112px;padding:16px;border:1px solid #292929;border-radius:10px;background:#111}.vps-metric span{display:block;color:#777;font-size:.78rem;margin-bottom:8px}.vps-metric strong{display:block;color:#eee;font-size:1rem;margin-bottom:14px}.vps-metric .progress{height:5px;background:#292929}.hx-service-kv{display:grid;gap:0}.hx-service-kv>div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid #242424}.hx-service-kv>div:last-child{border-bottom:0}.hx-service-kv span{color:#777}.hx-service-kv strong{text-align:right;color:#e4e4e4}.vps-spark-bars{height:65px;display:flex;align-items:end;gap:3px}.vps-spark-bars i{display:block;flex:1;background:var(--primary);border-radius:3px 3px 0 0;min-height:3px;opacity:.75}

/* Éditeur de facture : aperçu papier lisible quel que soit le thème admin. */
.invoice-editor{background:#fff!important;color:#17191d!important;border:1px solid #d9dee5!important;box-shadow:0 12px 32px rgba(0,0,0,.2)}
.invoice-editor .inv-sep,.invoice-editor .inv-table th,.invoice-editor .inv-summary .grand{border-color:#d9dee5!important}
.invoice-editor .text-muted,.invoice-editor small,.invoice-editor .inv-table th{color:#68717d!important}
.invoice-editor .inv-dates{border-color:#d9dee5!important;background:#fff!important}
.invoice-editor .inv-date:nth-child(-n+3){background:#eef1f4!important;color:#5f6874!important}
.invoice-editor .inv-row{border-bottom:1px solid #e3e7ec}
.invoice-editor .inv-row td{background:#f8f9fb;padding:8px!important;vertical-align:middle}
.invoice-editor .inv-row input{background:#fff!important;color:#17191d!important;border:1px solid #ccd3dc!important;border-radius:6px!important;min-height:40px}
.invoice-editor .inv-row input:focus{border-color:#0d6efd!important;box-shadow:0 0 0 3px rgba(13,110,253,.13)!important}
.invoice-editor .inv-price-cell{position:relative}.invoice-editor .inv-price-cell .price{padding-right:32px!important}.invoice-editor .inv-price-currency{position:absolute;right:18px;top:50%;transform:translateY(-50%);color:#59616d;font-weight:700;pointer-events:none}
.invoice-editor .inv-description-cell{position:relative;padding-right:48px!important}.invoice-editor .invoice-row-remove{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:1px solid #efb5bb;border-radius:7px;background:#fff;color:#dc3545;display:grid;place-items:center}.invoice-editor .invoice-row-remove:hover{background:#dc3545;color:#fff}
.invoice-editor .line-actions{background:#f5f8ff!important;border-color:#8cb7ff!important}.invoice-editor .inv-summary{color:#343a40}.invoice-editor .inv-summary .grand{color:#17191d}

/* Variante sombre de l'éditeur visuel demandée pour l'administration. */
[data-bs-theme="dark"] .invoice-editor{background:#101010!important;color:#f4f4f4!important;border-color:#303030!important;box-shadow:0 14px 38px rgba(0,0,0,.42)}
[data-bs-theme="dark"] .invoice-editor .inv-sep,[data-bs-theme="dark"] .invoice-editor .inv-table th,[data-bs-theme="dark"] .invoice-editor .inv-summary .grand{border-color:#383838!important}
[data-bs-theme="dark"] .invoice-editor .text-muted,[data-bs-theme="dark"] .invoice-editor small,[data-bs-theme="dark"] .invoice-editor .inv-table th{color:#838b95!important}
[data-bs-theme="dark"] .invoice-editor .inv-dates{border-color:#444!important;background:#101010!important}
[data-bs-theme="dark"] .invoice-editor .inv-date:nth-child(-n+3){background:#171717!important;color:#8f97a1!important}
[data-bs-theme="dark"] .invoice-editor .inv-row{border-color:#303030}
[data-bs-theme="dark"] .invoice-editor .inv-row td{background:#151515!important}
[data-bs-theme="dark"] .invoice-editor .inv-row input,[data-bs-theme="dark"] .invoice-editor .inv-row textarea{background:#0c0c0c!important;color:#f5f5f5!important;border-color:#353535!important}
[data-bs-theme="dark"] .invoice-editor .inv-row input:focus,[data-bs-theme="dark"] .invoice-editor .inv-row textarea:focus{background:#111!important;border-color:#3d83f7!important}
[data-bs-theme="dark"] .invoice-editor .inv-price-currency{color:#9ca3ad}
[data-bs-theme="dark"] .invoice-editor .invoice-row-remove{background:#151515;border-color:#623039;color:#ff6573}
[data-bs-theme="dark"] .invoice-editor .line-actions{background:#111827!important;border-color:#315c9e!important}
[data-bs-theme="dark"] .invoice-editor .inv-summary,[data-bs-theme="dark"] .invoice-editor .inv-summary .grand{color:#e7e7e7!important}
.invoice-editor .inv-row{position:relative;transition:opacity .15s,transform .15s,box-shadow .15s}.invoice-editor .inv-row.is-dragging{opacity:.42;transform:scale(.995)}.invoice-editor .inv-row.drag-target{box-shadow:inset 0 2px #0d6efd}
.invoice-editor .invoice-drag-handle{width:32px;cursor:grab;color:#858d98;text-align:center;user-select:none}.invoice-editor .invoice-drag-handle:active{cursor:grabbing}.invoice-editor .invoice-line-fields{display:grid;gap:6px}.invoice-editor .invoice-line-title{font-weight:750!important}.invoice-editor .invoice-line-description{font-size:.8rem;min-height:44px;resize:vertical}.invoice-editor .invoice-row-actions{width:46px;text-align:right!important}.invoice-editor .invoice-row-actions .invoice-row-remove{position:static!important;transform:none!important;margin-left:auto}.invoice-editor .inv-table th:last-child{padding-right:14px}
.invoice-editor[data-editable="0"] .inv-row input,
.invoice-editor[data-editable="0"] .inv-row textarea{cursor:not-allowed;opacity:.82;box-shadow:none!important}
.invoice-editor[data-editable="0"] .inv-row textarea{resize:none}
.invoice-editor[data-editable="0"] .inv-row.is-locked td{background:rgba(127,127,127,.045)!important}

/* Direction artistique unifiée des badges de l’administration. */
.badge[class*="text-bg-"]:not(.hx-nav-alert-badge){
  --hx-badge-color:#aab2bd;
  --hx-badge-rgb:108,117,125;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:5px 10px!important;
  border:1px solid rgba(var(--hx-badge-rgb),.2)!important;
  border-radius:999px!important;
  background:rgba(var(--hx-badge-rgb),.11)!important;
  color:var(--hx-badge-color)!important;
  font-size:.7rem;
  font-weight:700;
  line-height:1;
  box-shadow:none!important;
}
.badge.text-bg-success:not(.hx-nav-alert-badge){--hx-badge-color:#49df8a;--hx-badge-rgb:25,135,84}
.badge.text-bg-danger:not(.hx-nav-alert-badge){--hx-badge-color:#ff6978;--hx-badge-rgb:220,53,69}
.badge.text-bg-warning:not(.hx-nav-alert-badge){--hx-badge-color:#ffd24a;--hx-badge-rgb:255,193,7}
.badge.text-bg-info:not(.hx-nav-alert-badge){--hx-badge-color:#65d5ec;--hx-badge-rgb:13,202,240}
.badge.text-bg-primary:not(.hx-nav-alert-badge){--hx-badge-color:#73a9ff;--hx-badge-rgb:13,110,253}
.badge.text-bg-secondary:not(.hx-nav-alert-badge){--hx-badge-color:#aab2bd;--hx-badge-rgb:108,117,125}
.badge.text-bg-dark:not(.hx-nav-alert-badge){--hx-badge-color:#c3c8cf;--hx-badge-rgb:80,86,94}
.badge i{display:none!important}

.server-tab .hx-tab-count{
  min-width:20px;
  height:20px;
  padding:0 6px!important;
  border:0!important;
  background:rgba(148,163,184,.18)!important;
  color:#aab2bd!important;
  font-size:.65rem;
}
.server-tab.active .hx-tab-count{
  background:#fff!important;
  color:var(--bs-primary)!important;
}

.hx-nav-alert-badge.text-bg-success{background:rgba(25,135,84,.16)!important;color:#49df8a!important}
.hx-nav-alert-badge.text-bg-danger{background:rgba(220,53,69,.16)!important;color:#ff6978!important}
.hx-nav-alert-badge.text-bg-warning{background:rgba(255,193,7,.16)!important;color:#ffd24a!important}
.hx-nav-alert-badge.text-bg-primary{background:rgba(13,110,253,.16)!important;color:#73a9ff!important}
.badge.text-bg-cancellation{color:#ff9aa6!important;background:rgba(220,53,69,.18)!important;border:1px solid rgba(220,53,69,.42)}
.table-card tbody tr:has(.badge.text-bg-cancellation){background:rgba(220,53,69,.13)!important}
.table-card tbody tr:has(.badge.text-bg-cancellation)>td{background:rgba(220,53,69,.18)!important;border-top-color:rgba(220,53,69,.38)!important;border-bottom-color:rgba(220,53,69,.38)!important}
.table-card tbody tr:has(.badge.text-bg-cancellation):hover>td{background:rgba(220,53,69,.25)!important}
