/* =====================================================================
   TABITHA - feuille de style
   Palette tiree du logo (vitrail bleu) + ambre pour les actions
   ===================================================================== */
:root {
  --navy: #0E2A52;
  --navy-2: #143766;
  --blue: #1F5FAE;
  --blue-d: #184C8C;
  --sky: #E7EFF9;
  --amber: #E9A23B;
  --amber-d: #C9831E;
  --paper: #F4F6FA;
  --ink: #14233C;
  --muted: #5B6B84;
  --line: #DCE3EE;
  --ok: #2F8A5B;
  --bad: #C23B2E;
  --warn: #B7791F;
  --radius: 10px;
  --radius-s: 6px;
  --sidebar-w: 252px;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-num: "Sora", "Segoe UI", system-ui, sans-serif;
  --bs-primary: #1F5FAE;
  --bs-primary-rgb: 31, 95, 174;
  --bs-link-color: #1F5FAE;
  --bs-link-color-rgb: 31, 95, 174;
  --bs-body-font-family: var(--font-ui);
  --bs-body-color: #14233C;
  --bs-border-color: #DCE3EE;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 15.5px; line-height: 1.5; }
h1, h2, h3, h4, .num { font-family: var(--font-num); letter-spacing: -0.01em; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid rgba(233, 162, 59, .7); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 2000; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------------- Structure ---------------- */
.app { min-height: 100vh; }
.main-wrap { min-height: 100vh; display: flex; flex-direction: column; margin-left: var(--sidebar-w); }
.content { flex: 1; padding: 22px 26px 40px; width: 100%; max-width: 1480px; }
.app-footer { padding: 14px 26px; color: var(--muted); font-size: 13px; }

/* ---------------- Barre laterale ---------------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
  background: var(--navy); color: #C9D6EA; display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.sidebar-brand {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px;
  overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08);
}
/* rayons de lumiere du vitrail (element signature) */
.sidebar-brand::before {
  content: ""; position: absolute; inset: -40px -20px auto auto; width: 210px; height: 140px; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 42%, rgba(126,178,240,.20) 43%, transparent 50%),
    linear-gradient(130deg, transparent 52%, rgba(126,178,240,.14) 53%, transparent 61%),
    linear-gradient(145deg, transparent 63%, rgba(126,178,240,.10) 64%, transparent 72%);
}
.sidebar-brand img { width: 40px; height: 40px; border-radius: 8px; background: #fff; object-fit: contain; padding: 2px; position: relative; }
.brand-name { font-family: var(--font-num); font-weight: 700; color: #fff; font-size: 17px; line-height: 1.1; position: relative; }
.brand-sub { font-size: 12.5px; color: #8FA6C8; position: relative; }
.sidebar-close { display: none; margin-left: auto; background: transparent; border: 0; color: #C9D6EA; font-size: 18px; padding: 6px; border-radius: 6px; position: relative; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 10px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-section { font-size: 12px; color: #7F97BB; padding: 14px 10px 6px; font-weight: 600; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 7px;
  color: #D5E0F0; text-decoration: none; font-size: 15px; position: relative;
}
.sidebar-nav a i { font-size: 17px; width: 20px; text-align: center; color: #8FA6C8; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: var(--navy-2); color: #fff; font-weight: 600; }
.sidebar-nav a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); }
.sidebar-nav a.active i { color: var(--amber); }
.sidebar-user { display: flex; align-items: center; gap: 8px; padding: 12px 12px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user .who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1; color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-num); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-text small { font-size: 12.5px; color: #8FA6C8; }
.btn-logout { background: transparent; border: 1px solid rgba(255,255,255,.15); color: #D5E0F0; border-radius: 7px; width: 36px; height: 36px; }
.btn-logout:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.nav-overlay { display: none; }

/* ---------------- Barre du haut ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 10px 26px; background: rgba(244,246,250,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.page-title { font-size: 20px; font-weight: 600; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 8px; }

/* Bouton hamburger */
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  padding: 0; position: relative; flex-shrink: 0; cursor: pointer;
}
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 991.98px) {
  .main-wrap { margin-left: 0; }
  .sidebar { transform: translateX(-100%); box-shadow: none; visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  body.nav-open .sidebar { transform: translateX(0); visibility: visible; box-shadow: 0 0 40px rgba(0,0,0,.35); transition: transform .25s ease; }
  .sidebar-close { display: block; }
  .nav-toggle { display: inline-block; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 1030; background: rgba(10, 20, 40, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .topbar { padding: 10px 14px; }
  .content { padding: 16px 14px 32px; }
  .app-footer { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .nav-toggle span, .nav-overlay { transition: none !important; }
}

/* ---------------- Boutons ---------------- */
.btn { border-radius: var(--radius-s); font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue-d); --bs-btn-hover-border-color: var(--blue-d); --bs-btn-active-bg: var(--blue-d); --bs-btn-disabled-bg: var(--blue); --bs-btn-disabled-border-color: var(--blue); }
.btn-sun { background: var(--amber); border-color: var(--amber); color: #1D1405; }
.btn-sun:hover, .btn-sun:focus { background: var(--amber-d); border-color: var(--amber-d); color: #1D1405; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------------- Panneaux ---------------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; font-weight: 600; margin: 0; }
.panel-head .hint { color: var(--muted); font-size: 13.5px; }
.panel-body { padding: 18px; }
.panel-body.tight { padding: 0; }

/* Barre de filtres */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FAFBFD; border-radius: var(--radius) var(--radius) 0 0; }
.filters .f { display: flex; flex-direction: column; gap: 3px; min-width: 140px; flex: 1 1 140px; max-width: 240px; }
.filters .f.grow { max-width: none; flex: 2 1 220px; }
.filters label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.filters .actions { display: flex; gap: 6px; }

/* Formulaires */
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.form-control, .form-select { border-radius: var(--radius-s); border-color: #CBD5E3; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,174,.15); }
.form-text { color: var(--muted); }
.req::after { content: " *"; color: var(--bad); }

/* ---------------- Tableaux ---------------- */
.table { margin: 0; --bs-table-hover-bg: #F5F8FC; }
.table > thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: #FAFBFD; border-bottom: 1px solid var(--line); white-space: nowrap; padding: 10px 12px; }
.table > tbody td { padding: 10px 12px; vertical-align: middle; border-color: #EDF1F6; }
.table .num, .table td.n, .table th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 700; background: #FAFBFD; padding: 10px 12px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.muted { color: var(--muted); }
.small-meta { font-size: 13px; color: var(--muted); }

/* Tableau empile en cartes sur mobile : <table class="table table-stack"> + data-label */
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border-bottom: 1px solid var(--line); padding: 8px 14px; }
  .table-stack td { border: 0 !important; padding: 4px 0 !important; display: flex; justify-content: space-between; gap: 12px; text-align: right !important; }
  .table-stack td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; font-weight: 600; }
  .table-stack td[data-label=""]::before { content: none; }
  .table-stack td:empty { display: none; }
  .table-stack td.stack-title { font-weight: 600; justify-content: flex-start; text-align: left !important; }
  .table-stack td.stack-title::before { content: none; }
  .table-stack tfoot { display: block; }
  .table-stack tfoot tr { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .table-stack tfoot td { width: auto; }
}

/* Statuts et pastilles */
.badge-st { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-ok { background: #E3F3EA; color: #1E6B43; }
.st-due { background: #FDF0DC; color: #8A5A0F; }
.st-off { background: #EEF0F4; color: #5B6B84; text-decoration: line-through; }
.st-in { background: #E3F3EA; color: #1E6B43; }
.st-out { background: #FBE6E3; color: #9A2A1F; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cat-chip::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--chip); }
.amount-in { color: var(--ok); font-weight: 600; }
.amount-out { color: var(--bad); font-weight: 600; }

/* ---------------- Tableau de bord ---------------- */
.ledger {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--navy); color: #fff;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; position: relative;
}
.ledger::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 40%; pointer-events: none;
  background: linear-gradient(118deg, transparent 50%, rgba(126,178,240,.10) 51%, transparent 60%),
              linear-gradient(132deg, transparent 62%, rgba(126,178,240,.07) 63%, transparent 72%);
}
.ledger .cell { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.10); position: relative; z-index: 1; min-width: 0; }
.ledger .cell:last-child { border-right: 0; }
.ledger .lbl { font-size: 13px; color: #A9BDDA; }
.ledger .val { font-family: var(--font-num); font-size: clamp(17px, 1.55vw, 24px); font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .sub { font-size: 12.5px; color: #A9BDDA; margin-top: 2px; }
.ledger .val.pos { color: #8FE0B3; }
.ledger .val.neg { color: #FFB4A8; }
.ledger .cell.key { background: rgba(233,162,59,.12); }
.ledger .cell.key .val { color: var(--amber); }
.ledger.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .ledger, .ledger.four { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ledger .cell { border-bottom: 1px solid rgba(255,255,255,.10); } }
@media (max-width: 575.98px) { .ledger, .ledger.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ledger .val { font-size: 19px; } .ledger .cell { padding: 14px; } }

.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .lbl { color: var(--muted); font-size: 13.5px; }
.kpi .val { font-family: var(--font-num); font-size: clamp(16px, 1.5vw, 20px); white-space: nowrap; font-weight: 600; margin-top: 2px; }
.kpi .delta { font-size: 12.5px; font-weight: 600; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
@media (max-width: 991.98px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.grid-2 > .panel { margin-bottom: 0; }
.grid-eq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-eq > .panel { margin-bottom: 0; }
.stack-gap { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
@media (max-width: 1199.98px) { .grid-2, .grid-eq { grid-template-columns: minmax(0, 1fr); } }
.chart-box { position: relative; height: 290px; }

/* Barres horizontales simples */
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #E6EBF2; }
.hbar:last-child { border-bottom: 0; }
.hbar .name { font-weight: 600; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .v { font-variant-numeric: tabular-nums; font-size: 14px; }
.hbar .track { display: block; grid-column: 1 / -1; height: 6px; border-radius: 4px; background: #EDF1F6; overflow: hidden; }
.hbar .fill { display: block; height: 100%; border-radius: 4px; background: var(--blue); }

/* Niveau de stock */
.level { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.level .track { display: block; flex: 1; height: 7px; border-radius: 4px; background: #EDF1F6; overflow: hidden; }
.level .fill { display: block; height: 100%; background: var(--ok); }
.level.low .fill { background: var(--warn); }
.level.out .fill { background: var(--bad); }
.stock-num { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.stock-num.low { color: var(--warn); } .stock-num.out { color: var(--bad); }

/* Fil d'activite */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 18px; border-bottom: 1px solid #EDF1F6; }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--sky); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.feed .t { font-size: 14px; }
.feed .m { font-size: 12.5px; color: var(--muted); }

/* ---------------- Vente : saisie produits ---------------- */
.cat-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-picker input { position: absolute; opacity: 0; pointer-events: none; }
.cat-picker label {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 14px; cursor: pointer;
  font-weight: 600; display: inline-flex; align-items: center; gap: 8px; border-left: 4px solid var(--chip);
}
.cat-picker input:checked + label { background: var(--sky); border-color: var(--blue); border-left-color: var(--chip); box-shadow: 0 0 0 1px var(--blue) inset; }
.cat-picker input:focus-visible + label { outline: 3px solid rgba(233,162,59,.7); outline-offset: 2px; }

.prod-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.prod {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
}
.prod.has-qty { border-color: var(--blue); background: #F7FAFE; box-shadow: 0 0 0 1px var(--blue) inset; }
.prod.no-price { opacity: .55; }
.prod img { width: 52px; height: 52px; object-fit: contain; border-radius: 6px; background: #F3F6FA; grid-row: span 2; }
.prod .pname { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.prod .pmeta { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.prod .qty-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.prod .qty-row input { max-width: 110px; text-align: center; font-weight: 600; }
.prod .line-total { margin-left: auto; font-family: var(--font-num); font-weight: 600; font-size: 14px; }
.qty-err { color: var(--bad); font-size: 12.5px; grid-column: 1 / -1; }

.summary-bar {
  position: sticky; bottom: 0; z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; box-shadow: 0 -6px 18px rgba(14,42,82,.08);
}
@media (max-width: 767.98px) { .summary-bar { position: static; box-shadow: none; } .summary-bar .ms-auto { width: 100%; } .summary-bar .ms-auto .btn { width: 100%; } }
.summary-bar .total { font-family: var(--font-num); font-size: 26px; font-weight: 700; color: var(--navy); }
.summary-bar .f { display: flex; flex-direction: column; gap: 3px; }
.summary-bar label { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Fiche facture */
.inv-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.inv-head > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.inv-head > div:last-child { border-right: 0; }
.inv-head .lbl { font-size: 13px; color: var(--muted); }
.inv-head .val { font-family: var(--font-num); font-size: 20px; font-weight: 600; }
@media (max-width: 767.98px) { .inv-head { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inv-head > div:nth-child(2) { border-right: 0; } .inv-head > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Matrice droits / prix */
.matrix th, .matrix td { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; }
.matrix thead th:first-child { background: #FAFBFD; }
.matrix input[type=text] { width: 96px; text-align: right; margin: 0 auto; }
.matrix .grp td { background: #F3F6FA; font-weight: 700; font-size: 13.5px; color: var(--muted); }

/* Etat vide */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state i { font-size: 42px; color: #9FB2CE; }
.empty-state h2 { font-size: 19px; color: var(--ink); margin: 12px 0 6px; }
.empty-row { text-align: center; color: var(--muted); padding: 28px 12px !important; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.pager-info { font-size: 13px; color: var(--muted); }
.page-link { color: var(--blue); }
.active > .page-link { background: var(--blue); border-color: var(--blue); }

/* Alertes */
.alert { border-radius: var(--radius-s); }

/* Journal : JSON */
.json-box { background: #F6F8FB; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 12.5px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* ---------------- Connexion ---------------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; }
.login-art { background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(112deg, transparent 38%, rgba(126,178,240,.16) 39%, transparent 47%),
    linear-gradient(124deg, transparent 50%, rgba(126,178,240,.11) 51%, transparent 60%),
    linear-gradient(136deg, transparent 62%, rgba(126,178,240,.08) 63%, transparent 72%),
    linear-gradient(148deg, transparent 74%, rgba(126,178,240,.06) 75%, transparent 84%);
}
.login-art > * { position: relative; }
.login-art img { width: 64px; height: 64px; border-radius: 12px; background: #fff; padding: 3px; }
.login-art h1 { font-size: 40px; font-weight: 700; margin: 26px 0 10px; max-width: 14ch; line-height: 1.1; }
.login-art p { color: #B9CAE3; max-width: 42ch; font-size: 16.5px; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 28px 24px; min-height: auto; }
  .login-art h1 { font-size: 28px; margin-top: 16px; }
  .login-art .foot { display: none; }
}

/* ---------------- Impression ---------------- */
.print-sheet { max-width: 820px; margin: 0 auto; background: #fff; padding: 32px; }
@media print {
  .sidebar, .topbar, .app-footer, .no-print, .nav-overlay { display: none !important; }
  .main-wrap { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  body { background: #fff; font-size: 13px; }
  .panel { border: 0; }
  .print-sheet { padding: 0; }
}
