/* ============================================================
   شهم التقنية — نظام التصميم
   ============================================================ */

:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --surface-2: #FBFBFA;
  --ink: #1B1F24;
  --muted: #5A6370;
  --line: #E2E4E8;
  --soft: #EFF1F4;
  --accent: #1F5FA8;
  --accent-hover: #174A84;
  --on-accent: #FFFFFF;
  --accent-soft: #E8F0FA;
  --accent-text: #174A84;
  --ok-bg: #E6F4EC;
  --ok: #1F6B44;
  --warn-bg: #FFF4E5;
  --warn: #8A4B08;
  --crit-bg: #FDE7E7;
  --crit: #9B1C1C;
  --side: #1B1F24;
  --side-2: #242A31;
  --side-ink: #D5D8DD;
  --side-hover: #2B323B;
  --frame: #1B1F24;
  --idle: #22303F;
  --idle-ink: #C9D3E0;
  --t1: #C9DAEE;
  --t2: #E9DCC8;
  --t3: #D8E6D9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 31, 36, .05);
  --shadow: 0 12px 30px -18px rgba(27, 31, 36, .35);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.35; }
h1 { font-size: 26px; margin: 0; }
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 17px; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--accent-text); }

.icon { flex: 0 0 auto; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1 1 auto; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g-wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 12px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.hide { display: none !important; }

/* ---------- brand ---------- */
.mark,
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text b { font-size: 17px; font-weight: 700; }
.brand-text small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .mark { background: #fff; color: var(--side); }
.brand-light .brand-text small { color: var(--side-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
  background: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2B323B; color: #fff; }
.btn-danger { background: var(--surface); color: var(--crit); border-color: #F3C9C9; }
.btn-danger:hover { background: var(--crit-bg); color: var(--crit); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); }
.btn-soft:hover { background: #D9E7F8; color: var(--accent-text); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; gap: 6px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  color: var(--ink); flex: 0 0 auto;
}
.icon-btn:hover { background: var(--soft); }

/* ---------- tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--soft); color: var(--muted);
}
.t-ok { background: var(--ok-bg); color: var(--ok); }
.t-warn { background: var(--warn-bg); color: var(--warn); }
.t-crit { background: var(--crit-bg); color: var(--crit); }
.t-info { background: var(--accent-soft); color: var(--accent-text); }
.t-off { background: var(--soft); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}
.card-tight { padding: 14px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.card-flat { box-shadow: none; }
.card-accent { border-color: #CFE0F5; background: linear-gradient(180deg, #F6FAFF, #fff); }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); }
.kpi b { font-size: 27px; line-height: 1.3; letter-spacing: -.01em; }
.kpi-hint { color: var(--muted); font-size: 12.5px; }
.kpi.ok .kpi-icon { background: var(--ok-bg); color: var(--ok); }
.kpi.warn .kpi-icon { background: var(--warn-bg); color: var(--warn); }

/* ---------- forms ---------- */
.fld, .field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.fld > span, .field > label, .fld > label { font-weight: 500; }
.input, .select, .textarea,
.fld input, .fld select, .fld textarea,
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 14.5px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea, .fld textarea, .field textarea { min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus,
.fld input:focus, .fld select:focus, .fld textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 95, 168, .12);
}
.input::placeholder, .fld input::placeholder, .field input::placeholder { color: #9AA1AA; }
.hint { color: var(--muted); font-size: 12.5px; }
.error-text { color: var(--crit); font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
fieldset { border: 0; margin: 0; padding: 0; }
.form-card { display: flex; flex-direction: column; gap: 16px; }

/* ---------- tables ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.table th {
  text-align: start; font-weight: 600; color: var(--muted); font-size: 12.5px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FAFAF8; white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FCFCFB; }
.table .cell-main { font-weight: 600; color: var(--ink); }
.table .cell-sub { color: var(--muted); font-size: 12.5px; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-num { font-variant-numeric: tabular-nums; }
.table-empty { padding: 40px; text-align: center; color: var(--muted); }
.table-compact td, .table-compact th { padding: 9px 12px; }
.table-striped tbody tr:nth-child(even) { background: #FCFCFB; }

/* ---------- progress ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s ease; }
.bar.ok > i { background: var(--ok); }
.bar.warn > i { background: var(--warn); }
.progress-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- flash / alerts ---------- */
.flash {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 14px; margin-bottom: 14px;
  border: 1px solid transparent;
}
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--crit-bg); color: var(--crit); }
.flash-warn { background: var(--warn-bg); color: var(--warn); }
.flash .icon { margin-top: 2px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.alert-info { background: var(--accent-soft); color: var(--accent-text); }
.alert-danger { background: var(--crit-bg); color: var(--crit); }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.page-link {
  min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 14px;
}
.page-link:hover { background: var(--soft); color: var(--ink); }
.page-link.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- empty / loading ---------- */
.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-state .icon { color: #A6ADB7; margin-bottom: 10px; }
.empty-state h3 { margin: 0 0 6px; color: var(--ink); }
.empty-state p { max-width: 44ch; margin: 0 auto 14px; }

/* ---------- public header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 246, 244, .88);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header-in {
  max-width: 1220px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 18px;
}
.site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.site-nav > a {
  padding: 8px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500;
}
.site-nav > a:hover, .site-nav > a.active { color: var(--ink); background: #ECEDEA; }
.site-nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: 8px; }
.nav-toggle { display: none; margin-inline-start: auto; }

/* ---------- public hero ---------- */
.public-body { background: var(--bg); }
.container { max-width: 1220px; margin: 0 auto; padding-inline: 22px; }
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 420px at 15% -10%, #E7F0FB 0%, transparent 60%),
    radial-gradient(700px 380px at 90% 10%, #EEF3E9 0%, transparent 55%);
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; color: var(--accent-text);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 12px;
  font-size: 12.5px; font-weight: 600;
}
.hero h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.22; margin: 16px 0 16px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 17.5px; line-height: 1.85; color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* kiosk mock */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 6% 4%; border-radius: 40px;
  background: linear-gradient(160deg, #D9E6F5, #E8E1D2);
  filter: blur(28px); opacity: .75;
}
.kiosk-mock {
  position: relative; width: 300px; aspect-ratio: 10 / 17; border-radius: 34px;
  background: var(--frame); padding: 12px; box-shadow: 0 30px 60px -30px rgba(27, 31, 36, .55);
}
.kiosk-mock-screen {
  height: 100%; border-radius: 24px; overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column;
}
.kiosk-mock-idle {
  flex: 0 0 44%; background: linear-gradient(150deg, #22303F, #2C4462 60%, #3A5A7E);
  color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
}
.kiosk-mock-idle small { color: #BFD0E4; font-size: 11px; }
.kiosk-mock-idle b { font-size: 16px; line-height: 1.4; }
.kiosk-mock-body { padding: 16px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.kiosk-mock-body b { font-size: 14px; }
.kiosk-mock-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; }
.kiosk-mock-amounts span {
  height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.kiosk-mock-btn { height: 44px; border-radius: 9px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.hero-badge {
  position: absolute; inset-inline-start: -8px; bottom: 34px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600;
}
.hero-badge .kpi-icon { width: 30px; height: 30px; border-radius: 9px; }

/* ---------- sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 10px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.feature .num { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.segment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.segment { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.segment .segment-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.segment p { color: var(--muted); font-size: 14px; line-height: 1.75; flex: 1; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 18px 10px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.order-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.track-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.track-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.track-list li { position: relative; padding-top: 26px; font-size: 12px; color: var(--muted); text-align: center; }
.track-list li::before {
  content: ""; position: absolute; top: 6px; inset-inline: 0; height: 2px; background: var(--line);
}
.track-list li::after {
  content: ""; position: absolute; top: 1px; inset-inline-start: calc(50% - 6px); width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--line);
}
.track-list li.done { color: var(--ink); font-weight: 600; }
.track-list li.done::before, .track-list li.now::before { background: var(--accent); }
.track-list li.done::after { background: var(--accent); border-color: var(--accent); }
.track-list li.now::after { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.track-list li:first-child::before { inset-inline-start: 50%; }

/* ---------- footer ---------- */
.site-footer { background: var(--side); color: var(--side-ink); margin-top: 20px; }
.site-footer-in {
  max-width: 1220px; margin: 0 auto; padding: 48px 22px 30px;
  display: grid; grid-template-columns: 1.5fr .8fr .8fr .9fr; gap: 36px;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .mark { background: #fff; color: var(--side); }
.footer-brand b { color: #fff; font-size: 17px; }
.footer-brand p { margin-top: 8px; font-size: 13.5px; line-height: 1.8; max-width: 38ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.footer-col b { color: #fff; margin-bottom: 4px; font-size: 14px; }
.footer-col a { color: var(--side-ink); }
.footer-col a:hover { color: #fff; }
.site-footer-bottom {
  border-top: 1px solid #2E343C; max-width: 1220px; margin: 0 auto; padding: 16px 22px 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.5px;
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app-body { background: #F3F4F2; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: 262px; z-index: 50;
  background: var(--side); color: var(--side-ink); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 14px; }
.sidebar-brand .brand { flex: 1; }
.sidebar-close { display: none; color: var(--side-ink); background: transparent; border-color: #343B45; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 13px;
  border-radius: 10px; color: var(--side-ink); font-size: 14.5px; font-weight: 500;
}
.sidebar-nav a:hover { background: var(--side-hover); color: #fff; }
.sidebar-nav a.active { background: var(--side-hover); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #5B9BE0; }
.sidebar-nav .icon { color: #9AA5B4; }
.sidebar-nav a.active .icon { color: #8FBEF0; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #2E343C; display: flex; flex-direction: column; gap: 2px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 9px; color: var(--side-ink); font-size: 13.5px; }
.sidebar-link:hover { background: var(--side-hover); color: #fff; }
.sidebar-link.danger:hover { background: #3A1F1F; color: #F4A3A3; }
.app-main { margin-inline-start: 262px; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px 26px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.page-heading { min-width: 0; }
.page-heading .eyebrow { background: transparent; padding: 0; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.page-heading h1 { font-size: 21px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-heading p { font-size: 12.5px; margin-top: 1px; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.user-menu { display: flex; align-items: center; gap: 9px; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.user-meta b { font-size: 13px; }
.user-meta small { font-size: 11.5px; color: var(--muted); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.menu-toggle { display: none; }
.app-content { padding: 22px 26px 52px; max-width: 1480px; width: 100%; margin: 0 auto; flex: 1; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-bottom: 14px; }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(15, 18, 21, .45); z-index: 45; }

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  min-height: 40px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.tab:hover { background: var(--soft); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* steps */
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.steps li { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; }
.steps li.done { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.steps li.now { background: var(--accent); color: #fff; border-color: transparent; font-weight: 600; }

/* pipeline */
.pipeline-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.pipe-col { background: var(--soft); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.pipe-col-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 2px 4px 6px; }
.pipe-item { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px; font-size: 13px; line-height: 1.5; }
.pipe-item b { display: block; font-size: 13px; }
.pipe-item span { color: var(--muted); font-size: 11.5px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 26px 18px 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 5px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line);
}
.timeline li.done::after { background: var(--accent); border-color: var(--accent); }
.timeline li strong { display: block; font-size: 13.5px; }
.timeline li span { color: var(--muted); font-size: 12.5px; }

/* device list */
.device-serial { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-weight: 600; font-size: 13px; direction: ltr; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.status-pill.online { color: var(--ok); }
.status-pill.offline { color: var(--muted); }
.status-pill .dot { background: currentColor; }
.status-pill.online .dot { box-shadow: 0 0 0 3px var(--ok-bg); }

/* campaign cards */
.campaign-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.campaign-cover { height: 132px; background: linear-gradient(150deg, var(--t1), #EEF3F9); position: relative; }
.campaign-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.campaign-cover .tag { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.94); }
.campaign-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.campaign-body h3 { font-size: 16px; }
.campaign-body p { color: var(--muted); font-size: 13px; line-height: 1.6; flex: 1; }
.campaign-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* detail list */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0; }
.dl > div { min-width: 0; }
.dl dt { color: var(--muted); font-size: 12.5px; margin-bottom: 3px; }
.dl dd { margin: 0; font-weight: 600; font-size: 14px; }

/* modal */
dialog.modal {
  border: 0; border-radius: 16px; padding: 0; width: min(520px, 92vw); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(15, 18, 21, .45); background: var(--surface);
}
dialog.modal::backdrop { background: rgba(15, 18, 21, .5); }
.modal-head { padding: 18px 20px 0; }
.modal-body { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-body { background: var(--surface); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  background: linear-gradient(160deg, #1B1F24, #22303F 55%, #1F3B55);
  color: #fff; padding: 36px; display: flex; flex-direction: column; gap: 30px; position: relative; overflow: hidden;
}
.auth-aside::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 155, 224, .22), transparent 65%); inset-inline-end: -120px; bottom: -120px;
}
.auth-aside-body { margin-top: auto; max-width: 44ch; }
.auth-aside-body h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.35; margin-bottom: 16px; }
.auth-aside-body p { color: #B9C6D6; font-size: 15px; line-height: 1.85; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 9px; color: #DCE6F1; font-size: 14px; }
.check-list .icon { color: #7FD3A3; }
.auth-aside-foot { color: #8FA1B5; font-size: 12.5px; position: relative; z-index: 1; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.auth-card { width: min(430px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 27px; margin: 0; }
.auth-card > p { color: var(--muted); }
.auth-copy { color: var(--muted); font-size: 12.5px; margin-top: 28px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.demo-box { border: 1px dashed #C9D3E0; border-radius: 12px; padding: 12px; background: #FAFBFD; }
.demo-box b { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 8px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 9px; font-size: 11.5px; cursor: pointer; color: var(--ink); }
.demo-chip:hover { background: var(--accent-soft); border-color: #CFE0F5; }

/* ============================================================
   DEVICE KIOSK
   ============================================================ */
.kiosk-body {
  margin: 0; background: #0F1215; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 18px; font-family: var(--font); color: var(--ink);
}
.kiosk-frame {
  width: min(430px, 100vw - 24px); height: min(860px, 100vh - 24px); background: var(--frame);
  border-radius: 32px; padding: 10px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); position: relative;
}
.kiosk-screen {
  height: 100%; border-radius: 24px; overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column; position: relative;
}
.kiosk-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.kiosk-charity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.kiosk-charity .mark { width: 34px; height: 34px; font-size: 14px; }
.kiosk-charity b { display: block; font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kiosk-charity small { display: block; color: var(--muted); font-size: 10.5px; }
.kiosk-live { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-size: 10.5px; font-weight: 600; }
.kiosk-live.offline { color: var(--crit); }
.kiosk-live .dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.kiosk-body-in { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; position: relative; }
.kiosk-screen.idle-mode .kiosk-head { display: none; }
.kiosk-screen.idle-mode .kiosk-body-in { height: 100%; overflow: hidden; }
.kiosk-idle-full {
  position: absolute; inset: 0; display: block; overflow: hidden; cursor: pointer;
  background: linear-gradient(155deg, #1B2634, #22303F 50%, #2C4462);
}
.kiosk-idle-full .kiosk-idle-bg,
.kiosk-idle-full .kiosk-idle-video,
.kiosk-idle-full video {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  object-fit: cover !important; object-position: center center !important;
  background-size: cover !important; background-position: center center !important;
  display: block !important; max-width: none !important; max-height: none !important;
}
.kiosk-idle-full .kiosk-idle-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,18,21,.02) 0%, rgba(15,18,21,.06) 60%, rgba(15,18,21,.42) 100%); }
.kiosk-idle-touch-hint {
  position: absolute; inset-inline: 0; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: rgba(255,255,255,.92); font-size: 13px; font-weight: 600; letter-spacing: .1px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5); animation: hintPulse 2.4s ease-in-out infinite;
}
.kiosk-touch-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
@keyframes hintPulse { 0%,100% { opacity: .62; } 50% { opacity: 1; } }
.kiosk-idle { flex: 1; display: flex; flex-direction: column; background: linear-gradient(155deg, #1B2634, #22303F 50%, #2C4462); color: #fff; position: relative; overflow: hidden; }
.kiosk-idle::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 155, 224, .28), transparent 65%); top: -90px; inset-inline-end: -90px;
}
.kiosk-idle-bg,
.kiosk-idle-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kiosk-idle-bg { background-size: cover; background-position: center; }
.kiosk-idle-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(15,18,21,.08) 0%, rgba(15,18,21,.35) 55%, rgba(15,18,21,.72) 100%); }
.kiosk-idle.has-media::before { display: none; }
.kiosk-idle.has-media .kiosk-idle-media { text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.kiosk-idle-media { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; position: relative; z-index: 1; }
.kiosk-idle-media .tag { background: rgba(255,255,255,.14); color: #DCE6F1; align-self: flex-start; margin-bottom: auto; }
.kiosk-idle-media h2 { font-size: 24px; line-height: 1.35; margin: 0 0 8px; }
.kiosk-idle-media p { color: #BFD0E4; font-size: 13px; line-height: 1.7; }
.kiosk-idle-card { background: var(--surface); color: var(--ink); border-radius: 20px 20px 0 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.kiosk-idle-card .row-between { font-size: 11px; color: var(--muted); }
.kiosk-cta {
  min-height: 58px; border: 0; border-radius: 14px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.kiosk-cta:hover { background: var(--accent-hover); }
.kiosk-screen-pad { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 13px; }
.kiosk-title { font-size: 20px; margin: 0; }
.kiosk-sub { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.kiosk-back { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; min-height: 34px; padding: 0 12px; font-size: 12px; cursor: pointer; }
.kiosk-project {
  display: flex; gap: 12px; align-items: center; text-align: start; width: 100%;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 10px; cursor: pointer;
}
.kiosk-project:hover { border-color: var(--accent); }
.kiosk-project .thumb { width: 58px; height: 58px; border-radius: 11px; flex: 0 0 auto; }
.kiosk-project .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kiosk-project .meta b { font-size: 14px; }
.kiosk-project .meta span { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kiosk-project .bar { height: 5px; }
.kiosk-cover { height: 116px; border-radius: 14px; background: var(--t1); position: relative; overflow: hidden; flex: 0 0 auto; }
.kiosk-cover img { width: 100%; height: 100%; object-fit: cover; }
.kiosk-cover .tag { position: absolute; top: 10px; inset-inline-start: 10px; }
.kiosk-amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; }
.kiosk-amount {
  min-height: 62px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 17px; cursor: pointer;
}
.kiosk-amount:hover { border-color: var(--accent); background: var(--accent-soft); }
.kiosk-amount.other { font-size: 13px; font-weight: 600; }
.kiosk-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kiosk-key { min-height: 54px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 19px; cursor: pointer; }
.kiosk-key:hover { background: var(--soft); }
.kiosk-display { min-height: 54px; border-radius: 12px; border: 2px solid var(--accent); background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; direction: ltr; }
.kiosk-total { text-align: center; }
.kiosk-total span { color: var(--muted); font-size: 12px; display: block; }
.kiosk-total b { font-size: 34px; letter-spacing: -.02em; }
.kiosk-pay { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 20px; }
.nfc-ring {
  width: 128px; height: 128px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; animation: nfcPulse 1.8s infinite;
}
@keyframes nfcPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,95,168,.25); } 50% { box-shadow: 0 0 0 22px rgba(31,95,168,0); } }
.kiosk-success { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px; gap: 10px; }
.success-mark { width: 74px; height: 74px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.kiosk-success h2 { font-size: 24px; margin: 4px 0 0; }
.kiosk-success p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.kiosk-success .kiosk-actions { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.kiosk-ghost { min-height: 46px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; }
.kiosk-foot { text-align: center; color: var(--muted); font-size: 10.5px; padding: 8px 12px; }
.kiosk-frame-note { position: fixed; inset-block-end: 10px; inset-inline: 0; text-align: center; color: #7B8492; font-size: 11px; }

/* ============================================================
   REPORT / PRINT
   ============================================================ */
.report-page { max-width: 900px; margin: 0 auto; padding: 30px 20px 60px; }
.report-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 22px; }
.report-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.report-metric { background: var(--soft); border-radius: 12px; padding: 14px; }
.report-metric b { display: block; font-size: 25px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
.report-table th, .report-table td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: start; }
.report-table th { color: var(--muted); font-weight: 600; }

/* ---------- maps ---------- */
.map-box { width: 100%; height: 420px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.map-box.map-tall { height: 560px; }
.map-box .leaflet-container { font-family: var(--font); }
.leaflet-tooltip.device-tip {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px -18px rgba(27,31,36,.5); padding: 10px 12px; direction: rtl; text-align: start;
  font-size: 12px; line-height: 1.7; min-width: 190px; white-space: normal;
}
.leaflet-tooltip.device-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.leaflet-tooltip.device-tip .muted { color: var(--muted); }
.leaflet-tooltip.device-tip::before { border-top-color: #fff; }
.map-marker-online { color: #1F6B44; }
.map-marker-offline { color: #9B1C1C; }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

@media (max-width: 760px) {
  .map-box { height: 340px; }
}

/* error page */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); }
.error-card { max-width: 440px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.error-card .brand-mark { margin: 0 auto 14px; width: 46px; height: 46px; font-size: 20px; }
.error-card h1 { font-size: 24px; margin-bottom: 8px; }
.error-card p { color: var(--muted); margin-bottom: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 40px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .site-footer-in { grid-template-columns: 1fr 1fr; }
  .feature-grid, .segment-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; }
  .pipeline-board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .sidebar { transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 0 50px rgba(0,0,0,.25); }
  [dir="ltr"] .sidebar { transform: translateX(-105%); }
  .sidebar.open { transform: none; }
  .sidebar-close, .menu-toggle { display: inline-flex; }
  .app-main { margin-inline-start: 0; }
  .app-topbar { padding: 12px 16px; }
  .app-content { padding: 18px 16px 44px; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  /* أي شبكة مقسّمة بأعمدة داخلية تتحول لعمود واحد على الشاشات المتوسطة */
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tab { flex: 0 0 auto; }
}

@media (max-width: 760px) {
  .site-header-in { padding: 10px 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; inset-inline: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 12px 16px; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    box-shadow: 0 20px 40px -25px rgba(0,0,0,.3);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 11px 12px; }
  .site-nav-actions { margin: 8px 0 0; }
  .site-nav-actions .btn { flex: 1; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 33px; }
  .hero-lead { font-size: 16px; }
  .section { padding: 48px 0; }
  .feature-grid, .segment-grid { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: 1fr; gap: 24px; }
  .track-list { grid-template-columns: repeat(3, 1fr); gap: 10px; row-gap: 16px; }
  .track-list li:nth-child(4)::before { display: none; }
  .site-footer-in { grid-template-columns: 1fr; gap: 24px; }
  .site-footer-bottom { flex-direction: column; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .feature-grid { gap: 12px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .report-card { padding: 20px; }
  .report-metrics { grid-template-columns: 1fr; }
  .report-head { flex-direction: column; }
  .hide-sm { display: none !important; }
  .page-heading h1 { font-size: 18px; }
  .app-topbar { gap: 8px; }
  .pipeline-board { grid-template-columns: 1fr; }
  .kiosk-body { padding: 0; }
  .kiosk-frame { width: 100vw; height: 100dvh; border-radius: 0; padding: 0; }
  .kiosk-screen { border-radius: 0; }
  .kiosk-frame-note { display: none; }
}

@media (max-width: 480px) {
  .card { padding: 16px; }
  .hero h1 { font-size: 29px; }
  .btn { padding: 0 14px; }
  .kpi b { font-size: 23px; }
  .table { min-width: 560px; }
}

@media print {
  body { background: #fff; }
  .sidebar, .app-topbar, .site-header, .site-footer, .no-print, .page-actions, .flash { display: none !important; }
  .app-main { margin: 0 !important; }
  .app-content { padding: 0 !important; max-width: none; }
  .report-page { padding: 0; max-width: none; }
  .report-card { border: 0; padding: 0; }
  .card, .table-wrap { break-inside: avoid; }
}
