/* SAV-SK - SAP B1 Layout + Sérénité Pastel Theme */

:root {
  /* ── Vivid Color Palette ── */
  --ciel-creme: #EDF2F7;
  --beige-doux: #CBD5E1;
  --blanc-neige: #F8FAFC;

  --bleu-brume: #93C5FD;
  --bleu-poudre: #3B82F6;
  --bleu-ciel-doux: #60A5FA;
  --bleu-pastel: #BFDBFE;

  --bleu-marine-doux: #1D4ED8;
  --bleu-profond: #1E3A5F;
  --bleu-nuit: #172554;

  --rose-poudre: #FDA4AF;
  --rose-pale: #FECDD3;

  --gris-perle: #94A3B8;
  --gris-taupe: #64748B;
  --terre-ombre: #475569;

  --blanc-pur: #FFFFFF;
  --noir-encre: #1E293B;

  /* ── Vivid accents ── */
  --vivid-green: #16A34A;
  --vivid-green-soft: #22C55E;
  --vivid-red: #DC2626;
  --vivid-red-soft: #EF4444;
  --vivid-orange: #EA580C;
  --vivid-orange-soft: #F97316;
  --vivid-purple: #7C3AED;
  --vivid-teal: #0D9488;
  --vivid-pink: #DB2777;
  --vivid-amber: #D97706;

  /* ── Semantic mappings (SAP B1 role → Vivid color) ── */
  --sap-shell: var(--bleu-profond);
  --sap-shell-hover: var(--bleu-nuit);
  --sap-brand: var(--bleu-poudre);
  --sap-brand-hover: var(--bleu-marine-doux);
  --sap-positive: var(--vivid-green);
  --sap-negative: var(--vivid-red);
  --sap-critical: var(--vivid-orange);
  --sap-informative: var(--bleu-poudre);
  --sap-neutral: var(--gris-taupe);
  --sap-bg: var(--blanc-neige);
  --sap-bg-header: var(--ciel-creme);
  --sap-surface: var(--blanc-pur);
  --sap-border: #E2E8F0;
  --sap-border-strong: #CBD5E1;
  --sap-text: var(--noir-encre);
  --sap-text-soft: var(--gris-taupe);
  --sap-text-inv: #FFFFFF;
  --sap-selected: rgba(59, 130, 246, 0.08);
  --sap-hover: rgba(59, 130, 246, 0.05);
  --sap-active: rgba(59, 130, 246, 0.14);
  --sap-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --sap-shadow-lg: 0 4px 14px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
  --sap-radius: 3px;
  --sap-font: "Segoe UI", "72", Arial, Helvetica, sans-serif;
  --transition: 120ms ease;

  /* ── Icon colors ── */
  --icon-nav: var(--bleu-poudre);
  --icon-dashboard: var(--vivid-purple);
  --icon-ticket: var(--vivid-orange);
  --icon-contract: var(--vivid-teal);
  --icon-client: var(--bleu-poudre);
  --icon-system: var(--gris-taupe);
  --icon-download: var(--vivid-green);
  --icon-delete: var(--vivid-red);
  --icon-edit: var(--vivid-amber);
  --icon-add: var(--vivid-green);

  /* Sidebar */
  --sidebar-width: 240px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sap-font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--sap-text);
  background: var(--sap-bg);
}

body::before { display: none; }

a { color: var(--sap-brand); text-decoration: none; }
a:hover { color: var(--sap-brand-hover); text-decoration: none; }

h1, h2, h3, h4 {
  margin-top: 0;
  color: var(--sap-text);
  font-family: var(--sap-font);
  font-weight: 400;
  letter-spacing: normal;
}

/* ═══════════════════════════════════════════
   LAYOUT: Top bar + Left Sidebar
   ═══════════════════════════════════════════ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  order: 2;
}

/* ── Top Header Bar (slim) ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 48px;
  color: var(--sap-text-inv);
  background: var(--sap-shell);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-title::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: var(--bleu-poudre);
}

.header-title h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sap-text-inv);
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--sap-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--sap-text-inv);
  cursor: pointer;
  font-size: 16px;
  transition: background var(--transition);
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Content Area ── */
.app-content {
  flex: 1;
  padding: 0;
}

/* ── Left Sidebar ── */
.app-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  z-index: 200;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--blanc-pur);
  border-right: 1px solid var(--sap-border);
  box-shadow: 4px 0 16px rgba(45, 74, 90, 0.08);
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.app-sidebar.open {
  left: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(45, 74, 90, 0.25);
  backdrop-filter: blur(2px);
}

.sidebar-overlay.visible {
  display: block;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--sap-shell);
  color: var(--sap-text-inv);
}

.sidebar-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--sap-radius);
  background: rgba(255, 255, 255, 0.12);
  color: var(--sap-text-inv);
  cursor: pointer;
  font-size: 14px;
  transition: background var(--transition);
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0;
  overflow-y: auto;
}

.sidebar-group {
  padding: 0.25rem 0;
}

.sidebar-group-label {
  display: block;
  padding: 0.6rem 1rem 0.3rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sap-text-soft);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 13px;
  color: var(--sap-text);
  border-left: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.sidebar-link:hover {
  background: var(--sap-selected);
  color: var(--bleu-marine-doux);
  border-left-color: var(--bleu-poudre);
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--icon-nav);
  transition: color var(--transition), transform var(--transition);
}

.sidebar-link:hover i {
  color: var(--sap-brand-hover);
  transform: scale(1.1);
}

/* ── Colorful sidebar icons by context ── */
.sidebar-link .fa-tachometer-alt,
.sidebar-link .fa-chart-line,
.sidebar-link .fa-home { color: var(--vivid-purple); }

.sidebar-link .fa-headset,
.sidebar-link .fa-phone-alt,
.sidebar-link .fa-ticket-alt,
.sidebar-link .fa-exclamation-circle { color: var(--vivid-orange); }

.sidebar-link .fa-file-contract,
.sidebar-link .fa-file-signature,
.sidebar-link .fa-handshake { color: var(--vivid-teal); }

.sidebar-link .fa-users,
.sidebar-link .fa-user,
.sidebar-link .fa-user-tie,
.sidebar-link .fa-address-book { color: var(--bleu-poudre); }

.sidebar-link .fa-server,
.sidebar-link .fa-cogs,
.sidebar-link .fa-wrench,
.sidebar-link .fa-tools { color: var(--gris-taupe); }

.sidebar-link .fa-download,
.sidebar-link .fa-cloud-download-alt,
.sidebar-link .fa-box-open { color: var(--vivid-green); }

.sidebar-link .fa-calendar,
.sidebar-link .fa-calendar-alt,
.sidebar-link .fa-clock { color: var(--vivid-amber); }

.sidebar-link .fa-shield-alt,
.sidebar-link .fa-key,
.sidebar-link .fa-lock { color: var(--vivid-pink); }

.sidebar-link .fa-chart-bar,
.sidebar-link .fa-chart-pie,
.sidebar-link .fa-file-export { color: #6366F1; }

.sidebar-footer {
  padding: 0.5rem 0;
  border-top: 1px solid var(--sap-border);
}

.sidebar-link-session {
  color: var(--sap-negative);
}

.sidebar-link-session i {
  color: var(--sap-negative);
}

.sidebar-link-session:hover {
  background: rgba(184, 112, 112, 0.08);
  border-left-color: var(--sap-negative);
  color: var(--sap-negative);
}

/* ── Desktop: sidebar always visible ── */
@media (min-width: 1200px) {
  .app-sidebar {
    position: relative;
    left: 0;
    order: 1;
    flex: 0 0 var(--sidebar-width);
    border-right: 1px solid var(--sap-border);
    border-left: none;
    box-shadow: none;
    transition: none;
  }

  .app-sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    display: none !important;
  }

  .sidebar-close {
    display: none;
  }

  .sidebar-toggle {
    display: none;
  }

  .app-main-area {
    order: 2;
  }
}

/* ═══════════════════════════════════════════
   PAGE CONTAINER
   ═══════════════════════════════════════════ */

.container {
  width: calc(100% - 1.5rem);
  max-width: none;
  margin: 0.75rem auto 1rem;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--sap-radius);
  border: 1px solid var(--sap-border);
  box-shadow: var(--sap-shadow);
  background: var(--sap-surface);
}

.container::before { display: none; }

/* ── Sections / Panels ── */
section {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 1rem;
  border-radius: var(--sap-radius);
  background: var(--sap-surface);
  border: 1px solid var(--sap-border);
  box-shadow: none;
}

section::after { display: none; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.625rem;
  height: 32px;
  border-radius: var(--sap-radius);
  border: 1px solid transparent;
  font-family: var(--sap-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: none; text-decoration: none; }
.btn i { margin-right: 0; font-size: 13px; }

.btn-primary {
  background: var(--sap-brand);
  color: var(--sap-text-inv);
  border-color: var(--sap-brand);
}
.btn-primary:hover {
  background: var(--sap-brand-hover);
  border-color: var(--sap-brand-hover);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.btn-success {
  background: var(--vivid-green);
  color: var(--sap-text-inv);
  border-color: var(--vivid-green);
}
.btn-success:hover {
  background: #15803D;
  border-color: #15803D;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
.btn-success i { color: #BBF7D0; }

.btn-danger {
  background: var(--vivid-red);
  color: var(--sap-text-inv);
  border-color: var(--vivid-red);
}
.btn-danger:hover {
  background: #B91C1C;
  border-color: #B91C1C;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}
.btn-danger i { color: #FECACA; }

.btn-edit,
.btn-warning {
  background: var(--vivid-orange);
  color: var(--sap-text-inv);
  border-color: var(--vivid-orange);
}
.btn-edit:hover,
.btn-warning:hover {
  background: #C2410C;
  border-color: #C2410C;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}
.btn-edit i,
.btn-warning i { color: #FED7AA; }

.btn-info {
  background: var(--vivid-teal);
  color: var(--sap-text-inv);
  border-color: var(--vivid-teal);
}
.btn-info:hover {
  background: #0F766E;
  border-color: #0F766E;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.btn-secondary,
.btn-outline-secondary {
  background: var(--sap-surface);
  color: var(--sap-text);
  border-color: var(--sap-border-strong);
}
.btn-secondary:hover,
.btn-outline-secondary:hover {
  background: var(--sap-bg-header);
  border-color: var(--gris-perle);
}

.btn-outline-primary {
  background: transparent;
  color: var(--sap-brand);
  border-color: var(--sap-brand);
}
.btn-outline-primary:hover {
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.15);
}

.btn-sm { height: 26px; padding: 0 0.4rem; font-size: 12px; }
.btn-sm.p-1 { padding: 0 0.35rem !important; line-height: 1; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: var(--sap-radius); }
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */

form {
  padding: 1rem;
  border-radius: var(--sap-radius);
  border: 1px solid var(--sap-border);
  box-shadow: none;
  background: var(--sap-surface);
}

section form,
.container form,
.login-form,
.actions-header form {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

form div { margin-bottom: 0.5rem; }

form label,
.form-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--sap-text);
}

form label i,
.form-label i {
  margin-right: 0.3rem;
}

form input[type="text"],
form input[type="email"],
form input[type="datetime-local"],
form input[type="password"],
form input[type="date"],
form input[type="number"],
form textarea,
form select,
.form-control,
.form-select {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 0.5rem;
  font-family: var(--sap-font);
  font-size: 13px;
  color: var(--sap-text);
  border-radius: var(--sap-radius);
  border: 1px solid var(--sap-border-strong);
  background: var(--sap-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

form textarea {
  height: auto;
  min-height: 88px;
  padding: 0.375rem 0.5rem;
  resize: vertical;
}

form input:focus,
form textarea:focus,
form select:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--bleu-poudre);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
  background: #FAFCFF;
}

form input:hover:not(:focus),
form select:hover:not(:focus),
form textarea:hover:not(:focus),
.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
  border-color: var(--bleu-ciel-doux);
}

form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sap-border);
}

label span,
.required,
.text-danger { color: var(--sap-negative) !important; }

select,
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.75rem;
}

/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */

.table-responsive { overflow-x: auto; border-radius: var(--sap-radius); }

table,
.table {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 12px;
}

table th,
.table th {
  padding: 7px 10px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--sap-text);
  background: var(--sap-bg-header);
  border-bottom: 2px solid var(--sap-border-strong);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

table th:first-child,
.table th:first-child { border-top-left-radius: 0; }
table th:last-child,
.table th:last-child { border-top-right-radius: 0; }

table td,
.table td {
  padding: 6px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--sap-border);
  background: var(--sap-surface);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background var(--transition);
}

table tbody tr:nth-child(even) td,
.table tbody tr:nth-child(even) td { background: var(--blanc-neige); }

table tr:hover td,
.table tr:hover td { background: var(--sap-selected); }

table tr:last-child td:first-child { border-bottom-left-radius: 0; }
table tr:last-child td:last-child { border-bottom-right-radius: 0; }

table td.actions {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.table-success td { border-left: 3px solid var(--vivid-green); }
.table-warning td { border-left: 3px solid var(--vivid-orange); }
.table-danger td { border-left: 3px solid var(--vivid-red); }
.table-secondary td { border-left: 3px solid var(--gris-perle); color: var(--sap-text-soft); }
.table-light { background: transparent !important; }

/* ═══════════════════════════════════════════
   ALERTS / MESSAGES
   ═══════════════════════════════════════════ */

.message,
.alert {
  padding: 0.625rem 1rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
  font-size: 14px;
  border-radius: var(--sap-radius);
  border-left: 4px solid transparent;
  border-top: 1px solid var(--sap-border);
  border-right: 1px solid var(--sap-border);
  border-bottom: 1px solid var(--sap-border);
  box-shadow: none;
}

.message.success,
.alert-success {
  background: rgba(22, 163, 74, 0.06);
  color: #15803D;
  border-left-color: var(--vivid-green);
}

.message.error,
.alert-danger {
  background: rgba(220, 38, 38, 0.06);
  color: #B91C1C;
  border-left-color: var(--vivid-red);
}

.alert-info {
  background: rgba(59, 130, 246, 0.06);
  color: var(--bleu-marine-doux);
  border-left-color: var(--bleu-poudre);
}

.alert-warning {
  background: rgba(234, 88, 12, 0.06);
  color: #C2410C;
  border-left-color: var(--vivid-orange);
}

/* ═══════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════ */

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  background: var(--sap-bg);
}

.login-container {
  width: min(420px, 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--sap-radius);
  border: 1px solid var(--sap-border);
  box-shadow: var(--sap-shadow-lg);
  background: var(--sap-surface);
}

.login-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bleu-poudre);
  border-radius: 0;
}

.login-container h2 { margin-bottom: 1.25rem; font-size: 1.25rem; font-weight: 700; }
.login-form .form-group { margin-bottom: 1rem; text-align: left; }
.login-form .form-actions { margin-top: 1rem; padding-top: 0; border-top: none; }

/* ═══════════════════════════════════════════
   FILTERS & PAGE HEADING
   ═══════════════════════════════════════════ */

.filters-form {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--sap-radius);
  border: 1px solid var(--sap-border);
  box-shadow: none;
  background: var(--sap-bg-header);
}

.filters-form .form-control,
.filters-form .form-select,
.form-select-sm,
.form-control-sm {
  height: 26px;
  min-height: 26px;
  padding: 0 0.4rem;
  font-size: 12px;
}

.actions-container { display: flex; gap: 0.25rem; }

.actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.page-heading {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sap-border);
}

.page-heading p {
  max-width: 720px;
}

/* ═══════════════════════════════════════════
   CARDS & SUMMARY
   ═══════════════════════════════════════════ */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
}

.summary-grid-tight {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 116px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sap-border);
  border-left: 3px solid var(--bleu-poudre);
  border-radius: var(--sap-radius);
  background: linear-gradient(135deg, var(--blanc-pur) 0%, var(--blanc-neige) 100%);
  transition: border-left-color var(--transition), box-shadow var(--transition);
}

.summary-card:hover {
  box-shadow: var(--sap-shadow);
}

/* Vivid accent colors on summary cards by position */
.summary-card:nth-child(1) { border-left-color: var(--vivid-purple); }
.summary-card:nth-child(2) { border-left-color: var(--vivid-orange); }
.summary-card:nth-child(3) { border-left-color: var(--vivid-teal); }
.summary-card:nth-child(4) { border-left-color: var(--vivid-green); }
.summary-card:nth-child(5) { border-left-color: var(--vivid-pink); }
.summary-card:nth-child(6) { border-left-color: var(--vivid-amber); }
.summary-card:nth-child(7) { border-left-color: #6366F1; }
.summary-card:nth-child(8) { border-left-color: var(--bleu-poudre); }

.summary-card-label {
  color: var(--sap-text-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.summary-card-value {
  color: var(--sap-text);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.summary-card-helper {
  color: var(--sap-text-soft);
  font-size: 12px;
}

/* ── Priority Banners ── */
.priority-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.priority-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 6px;
  border: 2px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

.priority-banner:hover {
  transform: translateY(-1px);
  box-shadow: var(--sap-shadow-lg);
  text-decoration: none;
  color: inherit;
}

.priority-banner--tickets {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-color: var(--vivid-orange);
}

.priority-banner--notifications {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  border-color: var(--bleu-poudre);
}

.priority-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.priority-banner--tickets .priority-banner__icon {
  background: var(--vivid-orange);
  color: #fff;
}

.priority-banner--notifications .priority-banner__icon {
  background: var(--bleu-poudre);
  color: #fff;
}

.priority-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.priority-banner__count {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--noir-encre);
}

.priority-banner__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--noir-encre);
}

.priority-banner__sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--vivid-red);
  margin-top: 0.15rem;
}

.priority-banner--notifications .priority-banner__sub {
  color: var(--vivid-orange);
}

.priority-banner__arrow {
  color: var(--sap-text-soft);
  font-size: 1rem;
  flex-shrink: 0;
}

.priority-banner__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  color: var(--sap-text-soft);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.priority-banner__action:hover {
  background: rgba(255,255,255,0.9);
  color: var(--bleu-poudre);
}

/* ── Notification Ticker ── */
.notification-ticker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 6px;
  padding: 0.75rem;
  background: var(--blanc-pur);
  border: 1px solid var(--sap-border);
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--sap-radius);
  border-left: 4px solid var(--bleu-poudre);
  background: var(--blanc-neige);
}

.notification-item--info { border-left-color: var(--bleu-poudre); }
.notification-item--success { border-left-color: var(--vivid-green); background: #F0FDF4; }
.notification-item--warning { border-left-color: var(--vivid-orange); background: #FFFBEB; }
.notification-item--error { border-left-color: var(--vivid-red); background: #FEF2F2; }

.notification-item__icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 0.15rem;
}

.notification-item--info .notification-item__icon { color: var(--bleu-poudre); }
.notification-item--success .notification-item__icon { color: var(--vivid-green); }
.notification-item--warning .notification-item__icon { color: var(--vivid-orange); }
.notification-item--error .notification-item__icon { color: var(--vivid-red); }

.notification-item__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.notification-item__text strong {
  font-size: 0.9rem;
}

.notification-item__body {
  font-size: 0.82rem;
  color: var(--sap-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-item__date {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--sap-text-soft);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .priority-banners {
    grid-template-columns: 1fr;
  }
}

/* ── View Layouts (contract, system, vault …) ── */
.contract-view-layout,
.view-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0.85rem;
  align-items: start;
}

.contract-view-main,
.view-layout-main {
  min-width: 0;
}

.contract-view-aside,
.view-layout-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contract-view-aside .section-card,
.view-layout-aside .section-card {
  margin-bottom: 0;
}

.contract-view-layout {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 1rem;
}

.contract-showcase {
  padding: 1.1rem 1.15rem 1.15rem;
}

.contract-showcase__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--sap-border);
}

.contract-showcase__eyebrow {
  margin-bottom: 0.35rem;
  color: var(--sap-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-showcase__title {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--sap-text);
}

.contract-showcase__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.contract-showcase__lede {
  max-width: 70ch;
  margin-bottom: 1rem;
  color: var(--sap-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.contract-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.contract-pill--muted {
  color: var(--sap-text-soft);
  background: var(--sap-bg-header);
  border-color: var(--sap-border);
}

.contract-pill--status-active {
  color: #0f5132;
  background: #dcfce7;
  border-color: #86efac;
}

.contract-pill--status-suspended,
.contract-pill--status-expired {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.contract-pill--status-terminated {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.contract-pill--status-draft {
  color: #475569;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.contract-pill--billing-to_invoice {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}

.contract-pill--billing-invoiced {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.contract-pill--billing-paid {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.contract-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.contract-fact {
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--sap-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.contract-fact__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--sap-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-fact__value {
  display: block;
  color: var(--sap-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.contract-note-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sap-border);
}

.contract-note-panel__label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--sap-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-note-panel__body {
  padding: 0.95rem 1rem;
  border: 1px solid var(--sap-border);
  border-radius: 12px;
  background: var(--sap-bg-header);
  white-space: pre-wrap;
  line-height: 1.7;
}

.contract-side-stack {
  gap: 1rem;
}

.contract-side-stack .card-body {
  padding: 1rem;
}

.contract-side-card__title {
  margin-bottom: 0.8rem;
  color: var(--sap-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.contract-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contract-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--bleu-marine-doux);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contract-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contract-usage-item {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--sap-border);
  background: var(--sap-bg-header);
}

.contract-usage-item span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--sap-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-usage-item strong {
  color: var(--sap-text);
  font-size: 1.2rem;
  font-weight: 700;
}

.contract-billing-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.contract-billing-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

/* Detail grid rows inside view pages */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--sap-border);
}

.detail-grid:last-of-type {
  border-bottom: none;
}

.detail-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.detail-row {
  padding: 0.15rem 0;
  font-size: 13px;
}

.detail-row strong {
  color: var(--sap-text-soft);
  font-weight: 600;
  font-size: 12px;
}

@media (max-width: 960px) {
  .contract-view-layout,
  .view-layout {
    grid-template-columns: 1fr;
  }

  .contract-showcase__hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .contract-showcase__pills {
    justify-content: flex-start;
  }

  .contract-facts-grid,
  .contract-usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .contract-facts-grid,
  .contract-usage-grid {
    grid-template-columns: 1fr;
  }

  .contract-billing-actions {
    grid-template-columns: 1fr;
  }

  .contract-showcase {
    padding: 1rem;
  }
}

.section-card {
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
}

.section-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--sap-bg-header);
  border-bottom: 1px solid var(--sap-border);
}

.section-card .card-body {
  padding: 1rem;
}

.section-helper {
  color: var(--sap-text-soft);
  font-size: 12px;
}

.section-grid {
  display: grid;
  gap: 0.85rem;
}

.section-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Wide desktop: 3-col layout for section-grid-2 when enough space */
@media (min-width: 1600px) {
  .section-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.client-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 1rem;
}

.client-details.compact {
  padding: 0;
  border: none;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--sap-border);
  border-radius: var(--sap-radius);
  background: var(--blanc-neige);
}

.summary-list-label {
  color: var(--sap-text-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-list-item strong {
  font-size: 14px;
  color: var(--sap-text);
}

.summary-list-item small {
  color: var(--sap-text-soft);
}

.list-group {
  display: flex;
  flex-direction: column;
}

.list-group-item {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--sap-border);
  color: var(--sap-text);
  background: var(--sap-surface);
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item-action:hover {
  background: var(--sap-selected);
}

/* ── Detail Views ── */
.client-details {
  padding: 1rem;
  border-radius: var(--sap-radius);
  border: 1px solid var(--sap-border);
  background: var(--sap-surface);
}

.detail-row {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sap-border);
}

.detail-row:last-child { border-bottom: none; }

.detail-row strong {
  flex: 0 0 180px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--sap-text-soft);
}

.detail-row span,
.detail-row div { flex: 1; }

.infos-box {
  padding: 0.75rem;
  border-radius: var(--sap-radius);
  border: 1px solid var(--sap-border);
  background: var(--sap-bg-header);
  white-space: pre-wrap;
}

/* ── Footer ── */
footer {
  padding: 0.75rem 1rem 1.5rem;
  text-align: center;
  font-size: 12px;
  color: var(--sap-text-soft);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--sap-bg); }
::-webkit-scrollbar-thumb { background: var(--gris-perle); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gris-taupe); }

/* ── Utilities ── */
/* Note: .row/.col are handled by Bootstrap – do not override */
.py-4 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.gap-2 { gap: 0.5rem; }
.d-flex { display: flex; }
.ms-auto { margin-left: auto; }
.me-3 { margin-right: 0.75rem; }

/* ═══════════════════════════════════════════
   ATTACHMENTS
   ═══════════════════════════════════════════ */

.attachments-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sap-border);
}

.attachments-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 700;
}

.attachment-counter {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.5rem;
  border-radius: var(--sap-radius);
  background: var(--sap-bg-header);
  color: var(--sap-text-soft);
  font-size: 12px;
}

.upload-zone,
.upload-zone-static {
  padding: 1.25rem;
  text-align: center;
  border-radius: var(--sap-radius);
  border: 2px dashed var(--sap-border-strong);
  background: var(--sap-bg);
  transition: border-color var(--transition), background var(--transition);
}

.upload-zone { cursor: pointer; }

.upload-zone:hover,
.upload-zone-static:hover {
  border-color: var(--sap-brand);
  background: var(--sap-selected);
}

.upload-zone.dragover {
  border-style: solid;
  border-color: var(--sap-brand);
  background: var(--sap-active);
  transform: none;
}

.upload-zone i.fa-cloud-upload-alt,
.upload-zone-static i {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--sap-brand);
}

.upload-hint { color: var(--sap-text-soft) !important; font-size: 12px !important; }

.attachment-dropzone {
  position: relative;
  display: block;
  cursor: pointer;
  outline: none;
}

.attachment-dropzone-panel {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.3rem 1.1rem 1.15rem;
  border-radius: calc(var(--sap-radius) + 2px);
  border: 2px dashed color-mix(in srgb, var(--sap-brand) 28%, var(--sap-border-strong));
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 58%),
    linear-gradient(180deg, #fcfdff 0%, #f6f9fc 100%);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.attachment-dropzone:hover .attachment-dropzone-panel,
.attachment-dropzone:focus-visible .attachment-dropzone-panel,
.attachment-dropzone.dragover .attachment-dropzone-panel {
  border-color: var(--sap-brand);
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.attachment-dropzone-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: var(--sap-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attachment-dropzone-panel i.fa-cloud-arrow-up {
  font-size: 1.75rem;
  color: var(--sap-brand);
}

.attachment-dropzone-panel h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sap-text);
}

.attachment-dropzone-panel p {
  margin: 0;
  text-align: center;
  color: var(--sap-text-soft);
}

.attachment-dropzone-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--sap-text);
  font-size: 12px;
  font-weight: 700;
}

.attachment-dropzone-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.attachment-dropzone-empty {
  padding: 0.8rem 0.9rem;
  border-radius: var(--sap-radius);
  border: 1px dashed var(--sap-border);
  background: var(--sap-bg);
  color: var(--sap-text-soft);
  font-size: 12px;
}

.attachment-dropzone-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--sap-radius);
  border: 1px solid var(--sap-border);
  background: var(--sap-surface);
}

.attachment-dropzone-thumb {
  flex: 0 0 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sap-radius);
  background: var(--sap-bg-header);
  color: var(--sap-brand);
}

.attachment-dropzone-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.attachment-dropzone-meta strong {
  font-size: 13px;
  color: var(--sap-text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.attachment-dropzone-meta span {
  font-size: 12px;
  color: var(--sap-text-soft);
}

.attachment-dropzone-remove {
  width: 32px;
  height: 32px;
  border: 1px solid var(--sap-border);
  border-radius: 999px;
  background: var(--sap-surface);
  color: var(--sap-text-soft);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.attachment-dropzone-remove:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--sap-negative);
  border-color: rgba(239, 68, 68, 0.35);
}

.attachment-list { display: flex; flex-direction: column; gap: 0.25rem; }

.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--sap-radius);
  border: 1px solid var(--sap-border);
  background: var(--sap-surface);
  transition: background var(--transition);
}

.attachment-item:hover {
  background: var(--sap-selected);
  border-color: var(--sap-brand);
}

.attachment-item.attachment-loading { opacity: 0.5; }

.attachment-icon {
  flex: 0 0 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sap-radius);
  background: var(--sap-bg-header);
  overflow: hidden;
}

.attachment-icon i { font-size: 1rem; color: var(--sap-text-soft); }
.attachment-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: var(--sap-radius); }
.attachment-info { flex: 1; min-width: 0; }
.attachment-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--sap-text);
}

.attachment-meta { font-size: 12px; color: var(--sap-text-soft); }
.attachment-delete { flex: 0 0 auto; }

/* ── Toast ── */
.upload-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  max-width: 360px;
  padding: 0.75rem 1rem;
  border-radius: var(--sap-radius);
  background: var(--sap-surface);
  border: 1px solid var(--sap-border);
  box-shadow: var(--sap-shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.upload-toast.show { transform: translateY(0); opacity: 1; }
.upload-toast-error { border-left: 4px solid var(--sap-negative); color: #8a5050; }

/* ── Animation ── */
@keyframes pageRise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.container,
section { animation: pageRise 180ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE (desktop-optimized, SAV-SK = PC only)
   ═══════════════════════════════════════════ */

/* Compact desktop / laptop screens */
@media (max-width: 1100px) {
  .section-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-form { flex-wrap: wrap !important; }
}

/* Narrow desktop fallback */
@media (max-width: 900px) {
  .section-grid-2,
  .section-grid-3,
  .client-overview-grid { grid-template-columns: 1fr; }

  .priority-banners { grid-template-columns: 1fr; }

  .filters-form > div:not(.actions-container) { flex: 1 1 45%; min-width: 140px; }
}

/* Table: ensure horizontal scroll on very narrow viewports instead of card layout */
.table-responsive,
table { overflow-x: auto; }

/* Wide desktop enhancements */
@media (min-width: 1600px) {
  .container {
    padding: 1.5rem 2rem;
  }

  .summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .priority-banners {
    gap: 1.25rem;
  }

  .priority-banner {
    padding: 1.25rem 1.5rem;
  }

  .priority-banner__count {
    font-size: 2.4rem;
  }
}

@media (min-width: 1920px) {
  .container {
    padding: 1.5rem 2.5rem;
  }

  .section-grid-2 {
    gap: 1.25rem;
  }

  .section-grid-3 {
    gap: 1.25rem;
  }
}

/* ═══════════════════════════════════════════
   LEGACY NAV COMPAT (hidden, replaced by sidebar)
   ═══════════════════════════════════════════ */

.header-nav,
.nav-groups,
.nav-group,
.nav-group-label,
.nav-list,
.nav-pill,
.nav-list-session,
.nav-pill-session {
  display: none;
}

header {
  background: none;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
  padding: 0;
}
