/* Composants métier réclamations — tokens Lotus V5 via lotus-core.css */

/* Shell plein écran — supprime la bande verte/noire au-dessus du contenu */
html, body {
  margin: 0;
  padding: 0;
}

.lotus-app-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body:not(.auth-shell) {
  background: var(--surface) !important;
  overflow: hidden;
}

body:not(.auth-shell) .layout {
  flex: 1;
  height: 100%;
  min-height: 0;
  margin: 0;
}

body:not(.auth-shell) .main,
body:not(.auth-shell) .page-content {
  background: var(--surface);
}

.guest-main {
  flex: 1;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Auth shell (pages non connectées) */
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--surface);
}
html:not(.dark) .auth-shell {
  background: var(--surface) !important;
}
.auth-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 24px;
}
.auth-flash-messages {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { color: var(--accent); background: var(--surface-2); }

.auth-card {
  max-width: 480px;
  width: 100%;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  width: 100%;
  max-width: 920px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-split-brand {
  padding: 36px 32px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--green-bg) 70%, var(--surface)) 0%, var(--surface) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.auth-split-form { padding: 32px; }
@media (max-width: 768px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-split-brand { border-right: none; border-bottom: 1px solid var(--border); }
}

.login-choice {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.login-choice:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.login-choice strong { display: block; margin-bottom: 6px; font-size: 1.05rem; font-family: var(--font-display); }
.login-choice small { color: var(--text-muted); line-height: 1.35; }

.action-tile {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.action-tile:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.action-tile h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 6px; }

.icon-square {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #fff;
  background: linear-gradient(165deg, var(--brand), var(--accent-dark));
  margin-bottom: 14px;
}
.icon-square svg { width: 20px; height: 20px; }

/* Badges priorité / statut */
.priority-basse, .status-resolu { background: var(--green-bg); color: var(--green); }
.priority-moyenne, .status-en_cours { background: var(--orange-bg); color: var(--orange); }
.priority-haute { background: color-mix(in srgb, var(--orange-bg) 60%, var(--red-bg)); color: var(--red); }
.priority-critique { background: var(--red-bg); color: var(--red); }
.status-en_attente { background: var(--blue-bg); color: var(--blue); }
.status-ferme { background: var(--surface-2); color: var(--text-muted); }

/* Upload & médias */
.media-file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.media-attach {
  position: relative;
}
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.media-attach-actions .btn.is-recording {
  background: var(--red-bg);
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 35%, var(--border));
}
.media-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.media-attach-drop {
  margin-top: 0;
}
.media-attach-drop.is-dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--green-bg) 65%, var(--surface));
}
.upload-zone {
  position: relative;
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  background: color-mix(in srgb, var(--green-bg) 35%, var(--surface));
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover { border-color: var(--accent); background: color-mix(in srgb, var(--green-bg) 55%, var(--surface)); }
.upload-zone .upload-hint { pointer-events: none; }

.file-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bg);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin: 4px;
  font-size: 13px;
}
.file-preview .remove-file {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.media-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.media-preview {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-bg);
}
.media-preview img,
.media-preview video { width: 100%; max-height: 220px; object-fit: cover; }
.media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  font-size: 13px;
}
.media-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Kanban admin */
.trello-column {
  min-height: 480px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--green-bg) 40%, var(--surface));
}
.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 12px;
}
.trello-card {
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.kanban-card-title {
  font-size: 13px;
  line-height: 1.35;
  min-width: 0;
}
.kanban-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Ticket print */
.ticket-print {
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}
.ticket-print-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.ticket-print-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.ticket-print dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ticket-print dt { color: var(--text-muted); font-size: 12px; text-transform: uppercase; }
.ticket-print dd { margin: 0; font-weight: 600; }

/* Spinner (script.js) */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lotus-spin 0.75s linear infinite;
  vertical-align: -0.15em;
}
.btn.is-loading { pointer-events: none; opacity: 0.75; }

.lgi-brand-logo--auth {
  max-width: 220px;
  margin: 0 auto 14px;
  display: block;
}
.auth-split-brand .lgi-brand-logo--auth {
  margin-left: 0;
  margin-right: auto;
}

/* Grille utilitaire (remplace Bootstrap grid) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}
.row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
  width: 100%;
}
.g-3 { gap: 12px; }
.g-4 { gap: 16px; }
.g-3.row, .g-4.row { margin-left: 0; margin-right: 0; }
.g-3.row > [class*="col-"], .g-4.row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.col-6 { width: 50%; }
.col-12 { width: 100%; }
.col-sm-6 { width: 100%; }
.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9 { width: 100%; }
.col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9 { width: 100%; }
@media (min-width: 576px) {
  .col-sm-6 { width: 50%; }
}
@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666%; }
  .col-md-9 { width: 75%; }
}
@media (min-width: 992px) {
  .col-lg-5 { width: 41.666%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333%; }
  .col-lg-8 { width: 66.666%; }
  .col-lg-9 { width: 75%; }
}
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-lg-row { flex-direction: column; }
.align-items-lg-center { align-items: stretch; }
.align-items-start { align-items: flex-start; }
.align-content-start { align-content: flex-start; }
@media (min-width: 992px) {
  .flex-lg-row { flex-direction: row; }
  .align-items-lg-center { align-items: center; }
}

/* Formulaires Bootstrap → Lotus */
.form-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 5px; }
.form-control, .form-select, .form-input, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="file"] {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
}
.form-control-lg { padding: 11px 14px; font-size: 15px; }
.fw-semibold { font-weight: 600; }
.text-muted, .muted { color: var(--text-muted); }
.text-danger { color: var(--red); }
.h2, .h3, .h4, .h5 { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.h2 { font-size: 1.5rem; }
.h3 { font-size: 1.25rem; }
.h4 { font-size: 1.1rem; }
.h5 { font-size: 1rem; }
.small { font-size: 12px; }
.btn-lg { padding: 11px 20px; font-size: 14px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn.btn-primary, .btn-primary { background: var(--accent); color: #fff !important; border: 1px solid var(--accent); }
.btn.btn-outline-primary, .btn-outline-primary { background: transparent; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); }
.btn.btn-outline-secondary, .btn-outline-secondary, .btn.btn-secondary, .btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.btn-outline-danger, .btn-outline-danger { background: var(--red-bg); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.btn.btn-success, .btn-success { background: var(--green-bg); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); }
.btn-close { border: none; background: transparent; opacity: 0.6; cursor: pointer; }
.table-responsive { overflow-x: auto; }
.table-hover tbody tr:hover td { background: color-mix(in srgb, var(--accent-light) 35%, var(--surface)); }
.bg-secondary { background: var(--surface-2); color: var(--text-muted); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.p-4 { padding: 16px; }
.p-lg-5 { padding: 20px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
@media (min-width: 992px) { .p-lg-5 { padding: 28px; } }

/* En-têtes de page hérités */
.page-shell { max-width: 1200px; }
.page-hero {
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, color-mix(in srgb, var(--green-bg) 55%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-sm);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text); }
.hero-copy { color: var(--text-muted); max-width: 56ch; }
.metric-label { display: block; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.glass-panel {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, var(--green-bg));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.stat-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  background: var(--surface);
  border-top: 3px solid var(--accent, var(--brand));
}
.stat-card small { display: block; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.stat-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0; color: var(--text); }
.card-body { padding-top: 4px; }
.card-header h4, .card-header h5 { margin: 0; font-family: var(--font-display); color: var(--text); }

/* Utilitaires Bootstrap complémentaires */
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.align-items-end { align-items: flex-end; }
.align-items-start { align-items: flex-start; }
.text-end { text-align: right; }
.text-start { text-align: left; }
.ms-2 { margin-left: 8px; }
.ms-auto { margin-left: auto; }
.me-2 { margin-right: 8px; }
.mb-1 { margin-bottom: 4px; }
.mb-5, .mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.g-1 { gap: 4px; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.rounded-pill { border-radius: 99px; }
.fw-bold { font-weight: 700; }
.small { font-size: 12px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check-input { width: auto; }
.form-check-label { margin: 0; text-transform: none; font-weight: 500; letter-spacing: 0; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 28%, transparent); padding: 12px 16px; border-radius: var(--radius-sm); }

/* Compatibilité minimale Bootstrap restante */
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.d-none { display: none !important; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.h-100 { height: 100%; }
/* Grille Bootstrap résiduelle (kanban, etc.) */
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row.g-3, .row.g-4 { gap: 16px; }
.col-md-3 { flex: 1 1 calc(25% - 12px); min-width: 220px; }
.col-md-4 { flex: 1 1 calc(33.333% - 11px); min-width: 240px; }
.col-md-6 { flex: 1 1 calc(50% - 8px); min-width: 280px; }
.col-md-8 { flex: 2 1 60%; min-width: 300px; }
.col-lg-4 { flex: 1 1 calc(33.333% - 11px); min-width: 240px; }
.col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9 { flex: 1 1 100%; }
.col-6 { flex: 1 1 calc(50% - 8px); }
.col-12 { flex: 1 1 100%; }
.col-sm-6 { flex: 1 1 calc(50% - 8px); min-width: 200px; }
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 calc(33.333% - 11px); }
  .col-lg-5 { flex: 0 0 calc(41.666% - 10px); }
  .col-lg-6 { flex: 0 0 calc(50% - 8px); }
  .col-lg-7 { flex: 0 0 calc(58.333% - 7px); }
  .col-lg-8 { flex: 0 0 calc(66.666% - 6px); }
  .col-lg-9 { flex: 0 0 calc(75% - 5px); }
}
.container-fluid { width: 100%; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-lg-row { flex-direction: row; }
.align-items-lg-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-content-start { align-content: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.me-2 { margin-right: 8px; }
.small { font-size: 12px; }
.lead { font-size: 1.1rem; }
.display-4 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; }
.fw-bold { font-weight: 700; }
.card-body { padding: 0; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.table-responsive { overflow-x: auto; }
.red { color: var(--red); }
.flex-wrap { display: flex; flex-wrap: wrap; }

.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.border-bottom { border-bottom: 1px solid var(--border); }

/* Formulaires auth / détail */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
}

/* Détail ticket (client + admin) */
.ticket-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.ticket-detail-main,
.ticket-detail-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
@media (max-width: 960px) {
  .ticket-detail-grid { grid-template-columns: 1fr; }
}

.info-list { margin: 0; }
.info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.info-list > div:last-child { border-bottom: none; }
.info-list dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.info-list dd { margin: 0; text-align: right; font-weight: 600; }

.history-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.history-item:last-child { border-bottom: none; padding-bottom: 0; }

/* Timeline statut */
.status-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  flex-shrink: 0;
}
.status-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-2);
}
.status-step.active .status-step-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.status-step.done .status-step-dot {
  border-color: var(--green);
  background: var(--green);
}
.status-step-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-align: center;
}
.status-step.active .status-step-label,
.status-step.done .status-step-label { color: var(--text); }
.status-step-line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  background: var(--border);
  margin-bottom: 22px;
}
.status-step-line.done { background: var(--green); }

/* FAQ navigation latérale */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.faq-nav-list { display: flex; flex-direction: column; }
.faq-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: background 0.15s;
}
.faq-nav-item:hover { background: var(--surface-2); color: var(--text); }
.faq-nav-item.active {
  background: color-mix(in srgb, var(--green-bg) 60%, var(--surface));
  border-left: 3px solid var(--accent);
  font-weight: 600;
}
.faq-nav-index {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.faq-nav-item.active .faq-nav-index {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
}

/* Kanban Sortable.js */
.sortable-ghost {
  opacity: 0.45;
  background: color-mix(in srgb, var(--accent-light) 50%, var(--surface)) !important;
  border-style: dashed !important;
}
.sortable-drag {
  opacity: 0.95;
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
}

.comment-bubble { line-height: 1.5; }

@media print {
  .sidebar, .topbar, .btn, .flash-container { display: none !important; }
  .page-content { padding: 0 !important; }
  .ticket-print { border: 1px solid var(--accent); box-shadow: none; }
}
