/* ════════════════════════════════════════════════════════════
   Ayiti Law — Design system v2
   Clair, sobre, professionnel. Typographie Inter (self-hosted).
   ════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;

  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #eff6ff;
  --primary-soft-text: #1d4ed8;

  --red: #dc2626;    --red-soft: #fef2f2;    --red-border: #fecaca;
  --green: #16a34a;  --green-soft: #f0fdf4;  --green-border: #bbf7d0;
  --amber: #d97706;  --amber-soft: #fffbeb;  --amber-border: #fde68a;
  --blue: #2563eb;   --blue-soft: #eff6ff;
  --violet: #7c3aed; --violet-soft: #f5f3ff;
  --gray: #52525b;   --gray-soft: #f4f4f5;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,.18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: #dbeafe; }

/* ── Structure ─────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-content { flex: 1; padding: 32px 40px 80px; max-width: 1240px; width: 100%; margin: 0 auto; }

/* ── Sidebar (claire) ──────────────────────────────────────── */
.sidebar {
  width: 232px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; }
.sidebar-brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: -.5px;
}
.sidebar-brand .brand-name { font-size: 14px; font-weight: 650; letter-spacing: -.2px; line-height: 1.2; }
.sidebar-brand .brand-ws {
  font-size: 11.5px; color: var(--text-muted); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px;
}
.sidebar nav { flex: 1; padding: 4px 10px 16px; }
.sidebar nav .nav-section {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-muted); padding: 16px 10px 5px;
}
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; margin-bottom: 1px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  transition: background .1s, color .1s;
}
.sidebar nav a:hover { background: var(--gray-soft); color: var(--text); text-decoration: none; }
.sidebar nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sidebar nav a svg { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.8; }
.sidebar-foot {
  padding: 12px 16px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.sidebar-foot svg { width: 13px; height: 13px; }

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; height: 54px; position: sticky; top: 0; z-index: 20;
}
.topbar-search { flex: 1; max-width: 420px; position: relative; }
.topbar-search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-muted); pointer-events: none;
}
.topbar-search input {
  width: 100%; padding: 7px 12px 7px 34px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-family: inherit; background: var(--bg); color: var(--text);
  transition: border-color .12s, background .12s;
}
.topbar-search input:focus { outline: none; background: var(--surface); border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(29,78,216,.08); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-user { display: flex; align-items: center; gap: 9px; }
.topbar-user .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 650;
}
.topbar-user .u-name { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.topbar-user .u-role { font-size: 11px; color: var(--text-muted); line-height: 1.2; }
.topbar .menu-sep { width: 1px; height: 22px; background: var(--border); }

/* ── En-tête de page ───────────────────────────────────────── */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-header h2 { font-size: 21px; font-weight: 700; letter-spacing: -.4px; line-height: 1.25; }
.page-header .subtitle { color: var(--text-secondary); font-size: 13px; margin-top: 4px; max-width: 640px; }
.page-header .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Cartes ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px 22px; }
.card h3 { font-size: 13.5px; font-weight: 650; margin-bottom: 14px; letter-spacing: -.1px; }
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
}
.card-head h3 { margin: 0; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { grid-template-columns: 1.9fr 1fr; align-items: start; }
@media (max-width: 1000px) { .grid-2, .grid-3, .grid-4, .grid-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .grid-main { grid-template-columns: 1fr; } }

/* Statistiques */
.stat { display: block; padding: 16px 18px; transition: border-color .12s, box-shadow .12s; }
a.stat:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.stat .stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat .stat-label { font-size: 12px; font-weight: 550; color: var(--text-secondary); }
.stat .stat-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--gray-soft); color: var(--text-secondary); }
.stat .stat-icon svg { width: 15px; height: 15px; stroke-width: 1.8; }
.stat .stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat .stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat .stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat .stat-icon.amber { background: var(--amber-soft); color: var(--amber); }
.stat .stat-value { font-size: 22px; font-weight: 700; letter-spacing: -.6px; line-height: 1.1; color: var(--text); }
.stat .stat-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

/* ── Boutons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 13px; font-weight: 550; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  background: var(--text); color: #fff;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: #3f3f46; text-decoration: none; }
.btn svg { width: 14px; height: 14px; stroke-width: 2; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--gray-soft); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--gray-soft); color: var(--text); }
.btn-danger { background: var(--surface); color: var(--red); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red-border); }
.btn-sm { padding: 4.5px 10px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Badges (point de statut + texte) ──────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 550; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.badge-blue::before { background: var(--blue); }
.badge-green::before { background: var(--green); }
.badge-red::before { background: var(--red); }
.badge-amber::before { background: var(--amber); }
.badge-purple::before { background: var(--violet); }
.badge-slate::before { background: var(--text-muted); }
.badge-plain, .badge-outline { border: 1px solid var(--border); background: var(--surface); }
.badge-plain::before, .badge-outline::before { display: none; }

/* ── Tableaux ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 9px 16px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafafa; }
.table .row-link { cursor: pointer; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .cell-main { font-weight: 550; color: var(--text); }
.table .cell-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ── Formulaires ───────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 550; margin-bottom: 5px; color: var(--text); }
.field .hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="url"], select, textarea {
  width: 100%; padding: 7.5px 11px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
input[type="file"] { padding: 6px; font-size: 12.5px; }
input[readonly] { background: var(--gray-soft); color: var(--text-secondary); }
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
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 24 24' fill='none' stroke='%2352525b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.checkbox-line input { width: 15px; height: 15px; accent-color: var(--primary); }

/* Barre filtres */
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input[type="text"] { max-width: 300px; }
.toolbar select { width: auto; min-width: 150px; }

/* Étapes numérotées (configuration guidée) */
.step-head { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--text); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
}
.step-num.done { background: var(--green); }
.step-desc { font-size: 12.5px; color: var(--text-secondary); margin: 2px 0 14px 32px; line-height: 1.5; }
.step-body { margin-left: 32px; }
@media (max-width: 640px) { .step-body, .step-desc { margin-left: 0; } }
.form-narrow { max-width: 640px; }
.form-actions { display: flex; gap: 8px; margin-top: 4px; }

/* ── Modales ───────────────────────────────────────────────── */
dialog.modal {
  border: none; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0; width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
}
dialog.modal::backdrop { background: rgba(24,24,27,.4); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 14px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 14.5px; font-weight: 650; }
.modal-body { padding: 20px 22px; overflow-y: auto; max-height: calc(100vh - 220px); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 22px; border-top: 1px solid var(--border); background: #fafafa; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.modal-close { background: none; border: none; font-size: 18px; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 4px; border-radius: 4px; }
.modal-close:hover { color: var(--text); background: var(--gray-soft); }

/* ── Flash ─────────────────────────────────────────────────── */
.flash {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px; border-radius: var(--radius);
  margin-bottom: 20px; font-size: 13px; font-weight: 500;
  border: 1px solid;
}
.flash-success { background: var(--green-soft); color: #166534; border-color: var(--green-border); }
.flash-error { background: var(--red-soft); color: #991b1b; border-color: var(--red-border); }

/* ── États vides ───────────────────────────────────────────── */
.empty { text-align: center; padding: 44px 20px; color: var(--text-muted); font-size: 13px; }
.empty svg { width: 28px; height: 28px; margin-bottom: 10px; color: var(--border-strong); stroke-width: 1.5; }
.empty .empty-title { font-weight: 600; color: var(--text-secondary); font-size: 13.5px; margin-bottom: 2px; }

/* ── Listes d'items ────────────────────────────────────────── */
.item-list { display: flex; flex-direction: column; }
.item-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.item-row:last-child { border-bottom: none; }
.item-row .grow { flex: 1; min-width: 0; }
.item-row .title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .meta { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.date-chip {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--gray-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.date-chip .d { font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: -.3px; }
.date-chip .m { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-top: 2px; }

/* ── Chronologie ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -20px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--primary);
}
.timeline-item .t-date { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.timeline-item .t-title { font-weight: 600; font-size: 13px; margin-top: 1px; }
.timeline-item .t-desc { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; white-space: pre-wrap; line-height: 1.5; }

/* ── Chat assistant ────────────────────────────────────────── */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 420px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 4px 2px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 76%; padding: 10px 14px; border-radius: 14px; font-size: 13px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.55; }
.msg-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: var(--gray-soft); border-bottom-left-radius: 4px; }
.msg-bot.thinking { color: var(--text-muted); font-style: italic; }
.chat-input { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.chat-input textarea { flex: 1; min-height: 42px; max-height: 140px; border-radius: var(--radius-lg); }

/* ── Divers ────────────────────────────────────────────────── */
.muted { color: var(--text-secondary); font-size: 13px; }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 12px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.right { text-align: right; }
.pre-wrap { white-space: pre-wrap; }
.inline-form { display: inline; }
hr.sep { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span {
  min-width: 30px; text-align: center; padding: 5px 9px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12.5px; background: var(--surface); color: var(--text-secondary);
}
.pagination a:hover { border-color: var(--border-strong); text-decoration: none; color: var(--text); }
.pagination .current { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }

.progress { height: 6px; background: var(--gray-soft); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); border-radius: 999px; }

.kbd-code {
  display: inline-block; padding: 8px 16px;
  background: var(--text); color: #fff;
  border-radius: var(--radius);
  font-family: ui-monospace, Menlo, monospace; font-size: 16px; letter-spacing: 2px; font-weight: 600;
}

.doc-preview {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px; line-height: 1.65;
  background: var(--gray-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; white-space: pre-wrap;
  max-height: 480px; overflow-y: auto;
}

/* ── Authentification ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 24px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  width: 100%; max-width: 400px; padding: 36px 36px 30px;
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-brand .logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.auth-brand h1 { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.auth-brand p { font-size: 11px; color: var(--text-muted); }
.auth-card h2 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 4px; }
.auth-card .lead { color: var(--text-secondary); font-size: 13px; margin-bottom: 22px; line-height: 1.5; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--text-secondary); }
.otp-input { text-align: center; font-size: 20px; letter-spacing: 8px; font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.backup-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 20px; }
.backup-codes code {
  background: var(--gray-soft); border: 1px solid var(--border);
  padding: 8px 10px; border-radius: var(--radius-sm);
  text-align: center; font-size: 12.5px; font-weight: 550;
}

/* ── Responsive ────────────────────────────────────────────── */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; }
.burger:hover { background: var(--gray-soft); }
.burger svg { width: 20px; height: 20px; color: var(--text); }
@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 50; left: -240px; transition: left .18s ease; box-shadow: none; }
  .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
  .burger { display: block; }
  .app-content { padding: 20px 16px 60px; }
  .topbar { padding: 0 14px; }
  .topbar-user .u-role { display: none; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(24,24,27,.35); z-index: 40; }
  .sidebar-overlay.show { display: block; }
}

@media print {
  .sidebar, .topbar, .btn, .toolbar, .page-header .actions, .burger { display: none !important; }
  .app-content { padding: 0; max-width: none; }
  .card { box-shadow: none; }
  body { background: #fff; }
}
