/* ============================================================
   PLCORP Design System — v3.0 (Crystal Network)
   Bleu PLCORP #2F80ED · Bleu Nuit #102A43 · Sora + Inter
   Charte Crystal Network — mis à jour 2026-07-03
   ============================================================ */

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

/* ── Tokens — Crystal Network ────────────────────────────── */
:root {
  /* Couleurs primaires / secondaires (noms inchangés pour compat) */
  --primary:       #2F80ED;
  --primary-light: #5A9DF4;
  --primary-dim:   rgba(47,128,237,.10);
  --secondary:     #102A43;
  --surface-0:     #FFFFFF;
  --surface-1:     #F8FAFC;
  --surface-2:     #E2E8F0;
  --surface-dark:  #0F172A;
  --border:        #E2E8F0;
  --text-main:     #0F172A;
  --text-muted:    #475569;
  --text-light:    #94A3B8;
  --success:       #10B981;
  --success-dim:   rgba(16,185,129,.12);
  --warning:       #F2994A;
  --warning-dim:   rgba(242,153,74,.15);
  --error:         #DC3545;
  --error-dim:     rgba(220,53,69,.12);
  --info:          #56CCF2;

  /* Radius (existants conservés + nouveaux charte) */
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --radius-full:   9999px;
  --radius-btn:    14px;
  --radius-card:   20px;
  --radius-input:  14px;
  --radius-badge:  8px;

  /* Ombres */
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06);
  --shadow-md:     0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 24px rgba(0,0,0,.10);
  --transition:    .18s ease;
  --nav-h:         60px;
  --sidebar-w:     240px;

  /* ── Tokens additionnels — Crystal Network ──────────────── */
  --primary-hover:       #2668C4;
  --primary-ultra-dim:   rgba(47,128,237,.05);
  --secondary-light:     #1A3A5C;
  --secondary-dim:       rgba(16,42,67,.07);
  --text-1:              #0F172A;   /* alias text-main */
  --text-2:              #334155;   /* secondaire */
  --text-3:              #475569;   /* muet */
  --text-4:              #94A3B8;   /* placeholder */
  --border-medium:       rgba(16,42,67,.12);
  --shadow-xs:           0 1px 2px rgba(0,0,0,.04);
  --ease:                cubic-bezier(.4,0,.2,1);

  /* ── Couleurs nommées charte ────────────────────────────── */
  --navy:          #102A43;
  --blue:          #2F80ED;
  --cyan:          #56CCF2;
  --violet:        #7C4DFF;
  --action:        #F2994A;
  --valid:         #10B981;

  /* ── Neutres charte ────────────────────────────────────── */
  --n-50:          #F8FAFC;
  --n-100:         #F1F5F9;
  --n-200:         #E2E8F0;
  --n-300:         #CBD5E1;
  --n-400:         #94A3B8;
  --n-500:         #64748B;
  --n-600:         #475569;
  --n-700:         #334155;
  --n-800:         #1E293B;
  --n-900:         #0F172A;

  /* ── Glassmorphism (digital seulement — PAS sur documents) ── */
  --glass-bg:      rgba(255,255,255,0.14);
  --glass-border:  rgba(255,255,255,0.22);
  --glass-blur:    24px;
  --glass-shadow:  0 8px 40px rgba(8,24,39,0.45);
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ── Reset léger ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--surface-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .8; }
img, svg { display: block; max-width: 100%; }

/* ── Typo — Crystal Network (Sora titres, Inter corps) ──── */
h1,h2,h3,h4,h5,h6 { font-family: 'Sora', sans-serif; font-weight: 700; line-height: 1.25; }
h1 { font-size: 1.75rem; }  /* 28px */
h2 { font-size: 1.375rem; } /* 22px */
h3 { font-size: 1.125rem; } /* 18px */
h4 { font-size: 1rem; font-weight: 600; } /* 16px */
p  { color: var(--text-muted); }

/* ── Boutons — Crystal Network ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .9375rem;
  min-height: 48px;
  padding: 10px 24px;
  border: 1.5px solid transparent;
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: all 200ms ease-out;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-dim);
  color: var(--secondary);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid transparent;
}
.btn-ghost:hover {
  background: var(--primary-dim);
  color: var(--primary);
}
.btn-danger {
  background: var(--error);
  color: #fff;
}
.btn-danger:hover {
  opacity: 0.9;
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: var(--valid);
  opacity: 0.9;
}
.btn-warning {
  background: var(--warning);
  color: #fff;
}
.btn-warning:hover {
  background: var(--action);
  opacity: 0.9;
}
.btn-info {
  background: var(--info);
  color: var(--text-main);
}
.btn-info:hover {
  opacity: 0.9;
}
.btn:disabled, .btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}
.btn-sm {
  min-height: 36px;
  padding: 6px 16px;
  font-size: .8125rem;
}
.btn-xs {
  min-height: 28px;
  padding: 4px 12px;
  font-size: .75rem;
}
.btn-pill {
  border-radius: var(--radius-full);
}
.btn-icon {
  padding: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon.btn-sm {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}
.btn-icon.btn-xs {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

/* ── Cartes — Crystal Network ────────────────────────────── */
.card, .bo-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.card-sm { padding: 16px; }
.card-flush { padding: 0; overflow: hidden; }
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: .9375rem;
}
.card-body { padding: 20px 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-1); }

/* ── Badges & statuts — Crystal Network ──────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; font-family: 'Inter', sans-serif;
  padding: 4px 10px; border-radius: var(--radius-badge); letter-spacing: .02em;
}
.badge-success, .badge-valid  { background: rgba(16,185,129,.12);  color: var(--valid); }
.badge-warning  { background: var(--warning-dim);  color: #856404; }
.badge-error    { background: var(--error-dim);    color: var(--error); }
.badge-primary, .badge-blue  { background: var(--primary-dim);  color: var(--blue); }
.badge-neutral  { background: var(--surface-2);    color: var(--text-muted); }
.badge-dark     { background: var(--secondary);    color: #fff; }
.badge-violet   { background: rgba(124,77,255,.12); color: var(--violet); }
.badge-cyan     { background: rgba(86,204,242,.12); color: var(--cyan); }

/* Statuts commandes */
.status-NEW       { background: var(--surface-2);   color: var(--text-muted); border-radius: var(--radius-badge); }
.status-ANALYSIS  { background: #E3F2FD;            color: #1565C0; border-radius: var(--radius-badge); }
.status-QUOTE     { background: #F3E5F5;            color: #7B1FA2; border-radius: var(--radius-badge); }
.status-IN_PROGRESS { background: var(--warning-dim); color: #856404; border-radius: var(--radius-badge); }
.status-DONE      { background: var(--success-dim); color: var(--success); border-radius: var(--radius-badge); }
.status-DESIGN    { background: #F3E5F5;            color: #7B1FA2; border-radius: var(--radius-badge); }
.status-PRODUCTION{ background: var(--warning-dim); color: #856404; border-radius: var(--radius-badge); }
.status-REVIEW    { background: #FFF3E0;            color: #E65100; border-radius: var(--radius-badge); }
.status-READY     { background: var(--success-dim); color: var(--success); border-radius: var(--radius-badge); }
.status-DELIVERED { background: var(--primary-dim); color: var(--primary); border-radius: var(--radius-badge); }
.status-CANCELLED { background: var(--error-dim);   color: var(--error); border-radius: var(--radius-badge); }

/* ── Formulaires — Crystal Network ───────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .875rem; font-weight: 500; color: var(--text-main); }
.form-control, .form-input, .input {
  font-family: 'Inter', sans-serif; font-size: .9375rem;
  padding: 10px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-input); background: var(--surface-0);
  color: var(--text-main); transition: all 200ms ease-out;
  width: 100%;
  height: 48px;
}
.form-control:focus, .form-input:focus, .input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-control::placeholder, .form-input::placeholder, .input::placeholder {
  color: var(--text-light);
}
select.form-control, select.form-input, select.input { appearance: none; cursor: pointer; }
textarea.form-control, textarea.form-input, textarea.input { height: auto; min-height: 100px; }

/* ── Tableaux ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead tr { background: var(--surface-1); }
thead th {
  padding: 12px 16px; text-align: left;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: .8125rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-1); }

/* ── Alertes ─────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: .875rem; display: flex; align-items: flex-start; gap: 10px;
  border-left: 4px solid;
}
.alert-success { background: var(--success-dim); border-color: var(--success); color: #155724; }
.alert-warning { background: var(--warning-dim); border-color: var(--warning); color: #856404; }
.alert-error   { background: var(--error-dim);   border-color: var(--error);   color: #721c24; }
.alert-info    { background: #e8f4f8;             border-color: var(--info);    color: #055160; }

/* ── Divider ─────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Skeleton loader ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── HTMX indicators ─────────────────────────────────────── */
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator  { opacity: 1; }

/* ====================================================
   PORTAL — Portail client public
   ==================================================== */

.portal-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.portal-nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.portal-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1.25rem; color: var(--secondary);
  text-decoration: none;
}
.portal-logo span { color: var(--primary); }
.portal-logo-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
}
.portal-nav-links { display: flex; align-items: center; gap: 8px; }
.portal-nav-link {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  padding: 7px 14px; border-radius: var(--radius-full);
  transition: var(--transition); text-decoration: none;
}
.portal-nav-link:hover { background: var(--surface-1); color: var(--text-main); }
.portal-nav-link.active { color: var(--primary); background: var(--primary-dim); }
.portal-nav-link.btn-nav {
  background: var(--primary); color: #fff; padding: 7px 18px;
}
.portal-nav-link.btn-nav:hover { background: var(--primary-light); color: #fff; }

.portal-main { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }

.portal-hero {
  text-align: center; padding: 80px 24px 64px;
  max-width: 700px; margin: 0 auto;
}
.portal-hero h1 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 16px; }
.portal-hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }
.portal-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.portal-section { margin-bottom: 56px; }
.portal-section-title {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1.375rem; color: var(--secondary); margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.portal-section-title span { color: var(--primary); }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.portal-service-card {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.portal-service-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.portal-service-card h3 { font-size: 1rem; color: var(--secondary); margin-bottom: 8px; }
.portal-service-card .price {
  font-size: 1.25rem; font-weight: 700; color: var(--primary);
  font-family: 'Sora', sans-serif;
}
.portal-service-card .unit { font-size: .8125rem; color: var(--text-muted); margin-top: 4px; }

.portal-branch-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.portal-branch-tab {
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: .875rem; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface-0);
  color: var(--text-muted); transition: var(--transition);
}
.portal-branch-tab:hover,
.portal-branch-tab.htmx-request { background: var(--surface-1); }
.portal-branch-tab[aria-selected="true"] {
  background: var(--primary); border-color: var(--primary);
  color: #fff;
}

.portal-order-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border); gap: 16px;
}
.portal-order-row:last-child { border-bottom: none; }
.portal-order-type { font-weight: 600; font-size: .9375rem; color: var(--secondary); }
.portal-order-meta { font-size: .8125rem; color: var(--text-muted); margin-top: 3px; }

.portal-footer {
  background: var(--secondary); color: rgba(255,255,255,.6);
  text-align: center; padding: 32px 24px; font-size: .8125rem;
  margin-top: 80px;
}
.portal-footer a { color: rgba(255,255,255,.7); }
.portal-footer strong { color: #fff; }

/* ====================================================
   BACK-OFFICE — Admin / Kanban
   ==================================================== */

.bo-layout {
  display: flex; min-height: 100vh;
  color: var(--text-main) !important;
}


.bo-sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: var(--secondary); position: sticky; top: 0;
  display: flex; flex-direction: column; flex-shrink: 0;
  overflow-y: auto;
}
.bo-sidebar-logo {
  height: var(--nav-h); display: flex; align-items: center; gap: 10px;
  padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.bo-sidebar-logo-icon {
  width: 32px; height: 32px; background: var(--primary); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: .9rem; color: #fff;
}
.bo-sidebar-brand {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: .9375rem; color: var(--text-main) !important;
}
.bo-sidebar-brand small { display: block; font-size: .7rem; font-weight: 400; color: var(--text-muted) !important; }
.bo-sidebar-nav { padding: 16px 0; flex: 1; }
.bo-sidebar-section {
  padding: 8px 16px 4px; font-size: .65rem; font-weight: 600;
  color: var(--text-muted) !important; text-transform: uppercase; letter-spacing: .08em;
}
.bo-sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: .875rem; font-weight: 500;
  color: var(--text-muted) !important; text-decoration: none;
  transition: var(--transition); border-left: 3px solid transparent;
}
.bo-sidebar-link:hover { background: rgba(255,255,255,.06); color: var(--text-main) !important; }
.bo-sidebar-link.active {
  background: rgba(47, 128, 237, 0.15); color: #fff !important;
  border-left-color: var(--blue);
}
.bo-sidebar-link svg, .bo-sidebar-link .icon { flex-shrink: 0; }
.bo-sidebar-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-muted) !important;
}

.bo-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.bo-topbar {
  height: var(--nav-h); background: var(--surface-0);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; gap: 16px; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.bo-topbar-title {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1.125rem; color: var(--secondary);
}
.bo-topbar-actions { display: flex; align-items: center; gap: 10px; }
.bo-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 600; font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}

.bo-content { flex: 1; padding: 28px; overflow-y: auto; }
.bo-content-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.bo-content-header h1 { font-size: 1.5rem; color: var(--secondary); }

/* Stats row */
.bo-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.bo-stat-card {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-sm);
}
.bo-stat-card .stat-label {
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.bo-stat-card .stat-value {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1.75rem; color: var(--secondary); line-height: 1;
}
.bo-stat-card .stat-sub { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.bo-stat-card.accent { border-left: 4px solid var(--primary); }
.bo-stat-card.success { border-left: 4px solid var(--success); }
.bo-stat-card.warning { border-left: 4px solid var(--warning); }

/* Filtre bar */
.bo-filter-bar {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.bo-filter-bar .form-control { width: auto; min-width: 160px; }

/* Kanban */
.kanban-board {
  display: flex; gap: 14px; overflow-x: auto;
  padding-bottom: 16px; align-items: flex-start;
}
.kanban-col {
  flex: 0 0 270px; min-width: 270px;
  background: var(--surface-1); border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.kanban-col-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.kanban-col-title {
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: .875rem; color: var(--secondary); display: flex; align-items: center; gap: 8px;
}
.kanban-col-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.kanban-count {
  font-size: .75rem; font-weight: 600; padding: 2px 8px;
  background: var(--surface-2); border-radius: var(--radius-full);
  color: var(--text-muted);
}
.kanban-cards { padding: 10px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }

/* Kanban card */
.kanban-card {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm);
  cursor: grab; transition: box-shadow var(--transition), transform var(--transition);
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card-id {
  font-size: .7rem; font-weight: 600; color: var(--text-light);
  font-family: 'Sora', sans-serif; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.kanban-card-title {
  font-size: .875rem; font-weight: 600; color: var(--secondary);
  margin-bottom: 4px;
}
.kanban-card-client { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }
.kanban-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.kanban-card-assignee {
  font-size: .75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.kanban-card-form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.kanban-card-form form { display: flex; align-items: center; gap: 6px; }
.kanban-card-form select { font-size: .8rem; padding: 5px 8px; flex: 1; }

/* Dots couleurs par statut Kanban */
.dot-NEW        { background: var(--text-light); }
.dot-ANALYSIS   { background: #1565C0; }
.dot-QUOTE      { background: #7B1FA2; }
.dot-IN_PROGRESS{ background: var(--warning); }
.dot-DONE       { background: var(--success); }
.dot-DESIGN     { background: #7B1FA2; }
.dot-PRODUCTION { background: var(--warning); }
.dot-REVIEW     { background: #E65100; }
.dot-READY      { background: var(--success); }
.dot-DELIVERED  { background: var(--primary); }
.dot-CANCELLED  { background: var(--error); }

/* Detail commande */
.bo-detail-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start;
}
@media (max-width: 900px) { .bo-detail-grid { grid-template-columns: 1fr; } }

.bo-timeline { list-style: none; position: relative; padding-left: 20px; }
.bo-timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 0;
  width: 2px; background: var(--border);
}
.bo-timeline li {
  position: relative; padding: 0 0 20px 20px; font-size: .875rem;
}
.bo-timeline li::before {
  content: ''; position: absolute; left: -4px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--surface-0);
  box-shadow: 0 0 0 2px var(--primary);
}
.bo-timeline .tl-time { font-size: .75rem; color: var(--text-muted); margin-bottom: 2px; }
.bo-timeline .tl-label { font-weight: 600; color: var(--secondary); }
.bo-timeline .tl-by { font-size: .8rem; color: var(--text-muted); }

/* Réseau */
.device-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.device-card {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
}
.device-card-name { font-weight: 600; font-size: .9375rem; color: var(--secondary); }
.device-card-type { font-size: .75rem; color: var(--text-muted); }
.device-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 600;
}
.device-status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
}
.device-status.online  { color: var(--success); }
.device-status.online::before  { background: var(--success); }
.device-status.offline { color: var(--text-muted); }
.device-status.offline::before { background: var(--text-light); }

/* ── Ticket de caisse ──────────────────────────────────────── */
.receipt-wrap {
  max-width: 380px; margin: 48px auto; padding: 24px;
  font-family: 'Inter', monospace; font-size: .875rem;
}
.receipt-header { text-align: center; margin-bottom: 20px; border-bottom: 1px dashed var(--border); padding-bottom: 16px; }
.receipt-header h1 { font-size: 1.25rem; }
.receipt-row { display: flex; justify-content: space-between; padding: 4px 0; }
.receipt-row.total { font-weight: 700; font-size: 1rem; border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 8px; }
.receipt-qr { text-align: center; margin-top: 20px; }
.receipt-footer { text-align: center; margin-top: 16px; font-size: .75rem; color: var(--text-muted); }

/* ── Login allauth ──────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: var(--surface-1); padding: 24px;
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface-0);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.auth-card-header {
  background: var(--secondary); padding: 32px 36px 24px; text-align: center;
}
.auth-card-logo { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.5rem; color: #fff; }
.auth-card-logo span { color: var(--primary); }
.auth-card-body { padding: 32px 36px; }
.auth-card-body h2 { font-size: 1.25rem; margin-bottom: 6px; }
.auth-card-body p.sub { font-size: .875rem; margin-bottom: 24px; }
.auth-card-body .form-group + .form-group { margin-top: 16px; }

/* ── Responsive ─────────────────────────────────────────────── */
/* ── Lisibilité / contraste (correctifs thème sombre) ─────── */
/* Boîtes de sélection : fond et texte contrastés (+ options natives) */
select, select.form-control, select.form-input, select.input {
  background-color: var(--surface-0); color: var(--text-main);
}
select option { background-color: #ffffff; color: #0f172a; }
body.portal-body select, body.bo-dark select { background-color: rgba(15,44,73,.92); color: #F1F5F9; }
body.portal-body select option, body.bo-dark select option { background-color: #0f2c49; color: #F1F5F9; }
/* Liens de contenu (non stylés) : lisibles sur fond sombre (cyan clair au lieu de bleu-sur-navy) */
body.portal-body a:not([class]), body.bo-dark a:not([class]),
body.portal-body a.link, body.bo-dark a.link {
  color: var(--cyan);
}
body.portal-body a:not([class]):hover, body.bo-dark a:not([class]):hover { color: #a5e3fb; }

/* Navigation mobile back-office (drawer) */
.bo-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: transparent;
  color: var(--text-main); cursor: pointer; border-radius: 8px; margin-right: 6px; flex-shrink: 0;
}
.bo-hamburger:hover { background: var(--surface-2); }
.bo-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(8,20,35,.55); z-index: 250; }

/* Navigation mobile basse (Bottom-nav) */
.bo-bottomnav { display: none; }

@media (max-width: 768px) {
  .bo-sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 300;
    transform: translateX(-100%); transition: transform .28s ease;
    box-shadow: 2px 0 24px rgba(0,0,0,.45);
  }
  .bo-sidebar.bo-drawer-open { transform: translateX(0); }
  .bo-drawer-overlay.bo-drawer-open { display: block; }
  .bo-hamburger { display: inline-flex; }
  .bo-topbar { padding: 0 14px; }
  /* Tableaux de données : scroll horizontal au lieu de déborder l'écran */
  .bo-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Confort tactile : cibles ≥ 44px */
  .btn, .form-control, select.form-control, input.form-control { min-height: 44px; }
  .bo-sidebar-link { min-height: 44px; }
  /* M3 — Tableaux denses en cartes empilées sur mobile */
  .bo-content .table-cards { white-space: normal; }
  .bo-content .table-cards thead { display: none; }
  .bo-content .table-cards tr {
    display: block; border: 1px solid var(--border); border-radius: 12px;
    padding: 4px 14px; margin-bottom: 12px; background: var(--surface-0);
  }
  .bo-content .table-cards td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    text-align: right; border: none; border-bottom: 1px solid var(--border); padding: 10px 0; white-space: normal;
  }
  .bo-content .table-cards tr td:last-child { border-bottom: none; }
  .bo-content .table-cards td::before {
    content: attr(data-label); font-weight: 600; color: var(--text-muted); text-align: left; flex-shrink: 0;
  }
  .bo-content .table-cards td[colspan]::before { content: ""; }
  /* M3 — Titres fluides */
  h1 { font-size: clamp(1.4rem, 5.5vw, 2rem); }
  h2 { font-size: clamp(1.15rem, 4.5vw, 1.5rem); }
  /* M4 — Safe-area (encoches) */
  .bo-topbar { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .portal-nav-inner { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .portal-hero h1 { font-size: 1.75rem; }
  .kanban-board { flex-direction: column; }
  .kanban-col { flex: none; width: 100%; min-width: unset; }
  .bo-content { padding: 16px; padding-bottom: 80px; }
  .portal-main { padding: 28px 16px; }

  /* M5 — Bottom nav */
  .bo-bottomnav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-1);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bo-bottomnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    flex: 1;
    min-height: 56px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .bo-bottomnav-item.active {
    color: var(--primary);
  }
  .bo-bottomnav-item svg {
    margin-bottom: 2px;
  }
  /* Bug fix caisse : barre auto-masquée au scroll + lisibilité renforcée (coordination du FAB panier dans pos_cashier.html) */
  .bo-bottomnav {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.14);
  }
  body.bottomnav-hidden .bo-bottomnav { transform: translateY(110%); }
}

/* ── Utilitaires ────────────────────────────────────────────── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.text-muted { color: var(--text-muted); font-size: .875rem; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-full { width: 100%; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ====================================================
   PORTAL — Améliorations v2.0 (standard NEXUS)
   ==================================================== */

/* ── Menu mobile responsive ────────────────────────── */
.portal-mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--radius-md);
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  text-decoration: none; transition: var(--transition);
  border-left: 3px solid transparent;
}
.portal-mobile-link:hover {
  background: var(--primary-ultra-dim);
  color: var(--text-main);
}
.portal-mobile-link.nav-mobile-active {
  border-left-color: var(--primary);
  background: var(--primary-dim);
  color: var(--primary);
  font-weight: 600;
}

/* ── Footer 3 colonnes ─────────────────────────────── */
.portal-footer {
  background: var(--surface-0);
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 0;
}
.portal-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 24px;
}
.portal-footer-grid {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; align-items: flex-start;
}
.portal-footer-bottom {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 8px; font-size: .75rem; color: var(--text-light);
}

/* ── Topbar back-office amélioré ───────────────────── */
.bo-topbar-actions {
  display: flex; align-items: center; gap: 12px;
}

/* ── Conn status (portail + back-office) ───────────── */
.conn-status-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
  background: rgba(40,167,69,.10); color: #28A745;
  transition: var(--transition);
}
.conn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #28A745; flex-shrink: 0;
}

/* ── Animate slide-down ────────────────────────────── */
@keyframes plSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-slide-down { animation: plSlideDown .2s var(--ease) forwards; }

/* ============================================================
   PORTAL DIGITAL GLASS SYSTEM (Phase 3)
   ============================================================ */
body.portal-body {
  background: linear-gradient(160deg, #122F4E 0%, #183A5E 55%, #0F2C49 100%) !important;
  background-attachment: fixed !important;
  color: #E2E8F0 !important;
  min-height: 100vh;
  position: relative;
}

body.portal-body, body.bo-dark .bo-layout, body.bo-dark .bo-content {
  --surface-0: rgba(255,255,255,0.06);
  --surface-1: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.14);
  --text-main: #F1F5F9;
  --text-muted: #C0CBDA;
  --text-light: #93A2B8;
}


/* Background system with ambient halos and crystal motif */
.portal-bg-ambient {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -999;
  pointer-events: none;
  overflow: hidden;
}
.portal-crystal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("/static/images/brand/services/crystal.5098edd1c334.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.015;
  mix-blend-mode: overlay;
}
.portal-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.10;
}
.portal-halo-1 {
  top: -10%; left: -10%;
  width: 45vw; height: 45vw;
  background: var(--blue);
}
.portal-halo-2 {
  top: 40%; right: -10%;
  width: 40vw; height: 40vw;
  background: var(--violet);
}
.portal-halo-3 {
  bottom: -10%; left: 20%;
  width: 35vw; height: 35vw;
  background: var(--cyan);
}

body.portal-body .portal-nav {
  background: rgba(8, 24, 39, 0.6) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
}

body.portal-body .portal-logo {
  color: #FFFFFF !important;
}

body.portal-body .portal-logo-icon {
  background: var(--blue) !important;
}

body.portal-body .portal-nav-link {
  color: #CBD5E1 !important;
}

body.portal-body .portal-nav-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #FFFFFF !important;
}

body.portal-body .portal-nav-link.nav-active {
  color: #FFFFFF !important;
  background: var(--blue) !important;
}

body.portal-body .portal-section-title {
  color: #FFFFFF !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

/* Category Cards in Catalogue page */
.portal-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.portal-category-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
}

.portal-category-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(47, 128, 237, 0.2);
}

.portal-category-card.active {
  background: rgba(47, 128, 237, 0.2) ;
  border-color: var(--blue);
  box-shadow: 0 0 25px rgba(47, 128, 237, 0.35);
}

.portal-category-icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.portal-category-card:hover .portal-category-icon {
  transform: scale(1.1);
}

.portal-category-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

/* Service cards with glassmorphism */
body.portal-body .portal-service-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  border-radius: var(--radius-card) !important;
  padding: 24px !important;
  box-shadow: var(--glass-shadow) !important;
  transition: all var(--transition);
  color: #E2E8F0 !important;
  display: flex;
  flex-direction: column;
}

body.portal-body .portal-service-card:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(47, 128, 237, 0.25) !important;
}

body.portal-body .portal-service-card h3 {
  color: #FFFFFF !important;
  font-size: 1.125rem !important;
  margin-bottom: 8px !important;
}

body.portal-body .portal-service-card p {
  color: #94A3B8 !important;
  line-height: 1.5;
}

body.portal-body .portal-service-card .price {
  color: var(--cyan) !important;
  font-size: 1.35rem !important;
  margin-top: auto;
  padding-top: 12px;
}

body.portal-body .portal-service-card .unit {
  color: #64748B !important;
}

body.portal-body .card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--glass-shadow) !important;
  color: #E2E8F0 !important;
}

body.portal-body .card-header {
  border-bottom: 1px solid var(--glass-border) !important;
  color: #FFFFFF !important;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  background: transparent !important;
}

body.portal-body .card-body {
  color: #CBD5E1 !important;
}

body.portal-body .form-control,
body.portal-body .form-input,
body.portal-body .input {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  color: #FFFFFF !important;
}

body.portal-body .form-control:focus,
body.portal-body .form-input:focus,
body.portal-body .input:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.25) !important;
}

body.portal-body h1,
body.portal-body h2,
body.portal-body h3,
body.portal-body h4 {
  color: #FFFFFF !important;
}

/* Helper overrides for inline styles and elements in portal */
body.portal-body [style*="background: var(--surface-0)"],
body.portal-body [style*="background:var(--surface-0)"] {
  background: var(--glass-bg) !important;
  border-color: var(--glass-border) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%) !important;
  color: #FFFFFF !important;
}
body.portal-body [style*="color: var(--text-main)"],
body.portal-body [style*="color:var(--text-main)"] {
  color: #CBD5E1 !important;
}
body.portal-body [style*="background:var(--surface-1)"],
body.portal-body [style*="background: var(--surface-1)"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--glass-border) !important;
}
body.portal-body [style*="border:1.5px solid var(--border)"] {
  border-color: var(--glass-border) !important;
  background: var(--glass-bg) !important;
}
body.portal-body [style*="border:1.5px solid var(--primary)"] {
  border-color: var(--blue) !important;
  background: rgba(47, 128, 237, 0.1) !important;
}

/* ── Back-office styling overrides (Phase 5 / Dark Glass) ──────────────── */
.bo-topbar, .bo-sidebar {
  background: var(--glass-panel-bg) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(150%) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-highlight) !important;
}

.bo-sidebar {
  border-right: 1px solid var(--glass-border) !important;
}

.bo-topbar-title {
  color: var(--text-main) !important;
}
.bo-content-header h1 {
  color: var(--text-main) !important;
}

.bo-card, .bo-stat-card, .bo-filter-bar, .kanban-col, .kanban-card, .device-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(150%) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%) !important;
  box-shadow: var(--glass-shadow), var(--glass-highlight) !important;
  color: var(--text-main) !important;
  transition: all var(--transition);
}

.bo-card:hover, .bo-stat-card:hover, .kanban-card:hover, .device-card:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 12px 40px rgba(47, 128, 237, 0.3), var(--glass-highlight) !important;
}

.bo-stat-card .stat-value { color: var(--text-main) !important; }
.bo-stat-card .stat-label { color: var(--text-muted) !important; }

/* Sidebar */
.bo-sidebar-link.active {
  background: var(--active-link-bg) !important;
  color: var(--active-link-color) !important;
  border-left-color: var(--primary) !important;
  box-shadow: var(--active-link-shadow) !important;
}

/* Titles and labels */
.kanban-col-title, .kanban-card-title, .device-card-name {
  color: var(--text-main) !important;
}
.kanban-card-client, .kanban-card-assignee, .device-card-type, .text-muted, .bo-timeline .tl-time, .bo-timeline .tl-by {
  color: var(--text-muted) !important;
}
.bo-timeline .tl-label { color: var(--text-main) !important; }

/* Kanban columns */
.kanban-col-header {
  border-bottom: 1px solid var(--glass-border) !important;
}

body.bo-dark .bo-content thead tr {
  background: rgba(16, 42, 67, 0.6) !important;
}
body.bo-dark .bo-content thead th {
  color: #FFFFFF !important;
  border-bottom: 2px solid var(--blue) !important;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  padding: 14px 16px !important;
}
body.bo-dark .bo-content tbody td {
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-main) !important;
}
body.bo-dark .bo-content tbody tr:hover td {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Accents pour Kanban dots */
.dot-ANALYSIS { background: var(--cyan) !important; }
.dot-QUOTE    { background: var(--violet) !important; }
.dot-IN_PROGRESS { background: var(--warning) !important; }
.dot-DONE     { background: var(--valid) !important; }
.dot-DESIGN   { background: var(--violet) !important; }
.dot-READY    { background: var(--valid) !important; }
.dot-DELIVERED { background: var(--blue) !important; }

/* Badge warning and error customization */
.badge-warning {
  background: rgba(242, 153, 74, 0.12) !important;
  color: var(--action) !important;
}
.badge-error {
  background: rgba(220, 53, 69, 0.12) !important;
  color: var(--error) !important;
}
