:root {
  --green: #0b6b3a;
  --green-700: #09552e;
  --green-900: #063a20;
  --green-050: #eef7f1;
  --gold: #c9a227;
  --gold-soft: #fbf4dc;
  --ink: #17241d;
  --muted: #6c7a72;
  --line: #e2eae5;
  --bg: #f4f7f5;
  --danger: #b42318;
  --warning: #b54708;
  --info: #175cd3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 40, 24, .04), 0 8px 24px rgba(12, 40, 24, .05);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-700); text-decoration: none; }

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Application shell ---------- */
.app-body { display: flex; min-height: 100vh; }

.sidebar {
  width: 264px;
  flex: 0 0 264px;
  background: linear-gradient(180deg, #073d24 0%, #052f1c 100%);
  color: #dbe9e1;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 4px; }

.sidebar-brand { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-link { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand-link:hover { color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #e6c35c);
  color: #17351f; font-weight: 800; font-size: 23px;
  box-shadow: 0 4px 14px rgba(201,162,39,.35);
}
.brand-mark.large { width: 68px; height: 68px; border-radius: 18px; font-size: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: .01em; }
.brand-text small { font-size: 10.5px; color: #9db9a8; letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }

.sidebar-nav { padding: 8px 10px 20px; flex: 1; }
.nav-heading {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #7fa590; padding: 18px 12px 7px;
}
.sidebar .nav-link {
  display: flex; align-items: center; gap: 10px;
  color: #cfe1d6; padding: 8px 12px; border-radius: 9px;
  font-size: 13.4px; line-height: 1.25; margin-bottom: 1px;
  transition: background .15s, color .15s;
}
.sidebar .nav-link i { font-size: 16px; width: 19px; text-align: center; color: #8fb4a0; transition: color .15s; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link:hover i { color: var(--gold); }
.sidebar .nav-link.active { background: rgba(201,162,39,.14); color: #ffe9a8; font-weight: 600; }
.sidebar .nav-link.active i { color: var(--gold); }
.sidebar-foot {
  padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11.5px; color: #8fae9e; display: flex; align-items: center; gap: 7px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #38b76e; box-shadow: 0 0 0 3px rgba(56,183,110,.18); }

.app-main { margin-left: 264px; width: calc(100% - 264px); display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  height: 70px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px;
  padding: 0 26px; position: sticky; top: 0; z-index: 1020;
}
.topbar-title { min-width: 0; flex: 1; }
.topbar-title h1 { font-size: 18px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-search { width: 220px; }
.topbar-search .form-control { border-radius: 999px; background: #fff; }
.btn-icon {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 17px;
}
.btn-icon:hover { background: var(--green-050); color: var(--green); border-color: #cfe2d6; }
.school-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--green-050); border: 1px solid #d6e8dd; color: var(--green-700);
  font-size: 12.5px; font-weight: 600; max-width: 260px;
}
.school-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school-chip:hover { background: #e3f2e8; color: var(--green-900); }
.school-chip.static { cursor: default; }
.user-chip {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 5px 9px 5px 5px; color: var(--ink);
}
.avatar {
  width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 700; font-size: 14px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.user-meta strong { font-size: 12.5px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.user-chip > i { font-size: 11px; color: var(--muted); }

.app-content { padding: 24px 26px 64px; flex: 1; }
.app-footer {
  padding: 14px 26px; border-top: 1px solid var(--line); color: var(--muted);
  font-size: 11.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff;
}

.sidebar-overlay { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
  .app-main { margin-left: 0; width: 100%; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(8,24,14,.45); z-index: 1035; }
  .topbar { padding: 0 16px; height: 64px; }
  /* The extra bottom space keeps the last card clear of the fixed vendor credit on phones. */
  .app-content { padding: 18px 16px 68px; }
  .user-meta { display: none; }
  .school-chip { max-width: 160px; }
}
/* On a phone the page title and the school selector compete for space. Collapse the selector to
   its icon so the page title stays readable. */
@media (max-width: 575.98px) {
  .topbar { gap: 8px; }
  .topbar-title h1 { font-size: 15.5px; }
  .school-chip { padding: 7px 9px; max-width: 44px; gap: 0; }
  .school-chip span, .school-chip > .bi-chevron-down { display: none; }
  .user-chip { padding: 4px; }
  .user-chip > .bi-chevron-down { display: none; }
}

/* ---------- Cards & metrics ---------- */
.card-surface {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-surface .card-head {
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-surface .card-head h2, .card-surface .card-head h3 { font-size: 14.5px; margin: 0; }
.card-surface .card-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.card-surface .card-body { padding: 18px; }
.card-surface .card-body.tight { padding: 12px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; margin: 0 0 3px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; max-width: 720px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpi-grid { 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: 16px 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green); opacity: .85;
}
.kpi.gold::after { background: var(--gold); }
.kpi.red::after { background: var(--danger); }
.kpi.blue::after { background: #175cd3; }
.kpi .kpi-label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .075em; font-weight: 600; }
.kpi .kpi-value { font-size: 23px; font-weight: 750; letter-spacing: -.02em; margin-top: 5px; line-height: 1.15; }
.kpi .kpi-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.kpi .kpi-icon {
  position: absolute; right: 14px; top: 14px; font-size: 22px; color: #cfe2d6;
}
.kpi.gold .kpi-icon { color: #f0e2b4; }
.kpi.red .kpi-icon { color: #f4d3cf; }
.kpi.blue .kpi-icon { color: #d5e2fb; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
/* The track must stay at minmax(0, 1fr): a plain 1fr keeps a min-content floor, so a wide chart
   or table forces the whole page sideways instead of scrolling inside its own card. */
@media (max-width: 1199.98px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) { .kpi-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table-app { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.2px; }
.table-app thead th {
  background: #f7faf8; color: #56665c; font-size: 10.8px; font-weight: 700;
  letter-spacing: .075em; text-transform: uppercase; padding: 10px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.table-app tbody td { padding: 11px 12px; border-bottom: 1px solid #eef3ef; vertical-align: middle; }
.table-app tbody tr:hover { background: #fbfdfc; }
.table-app tbody tr:last-child td { border-bottom: none; }
.table-app .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Reference numbers and student numbers must not break mid-value when a table scrolls sideways. */
.table-app td .mono { white-space: nowrap; }
.table-app .actions { text-align: right; white-space: nowrap; }
.table-app tfoot td { padding: 11px 12px; font-weight: 700; border-top: 2px solid var(--line); background: #fafcfb; }
.table-empty { padding: 32px 18px; text-align: center; color: var(--muted); }
.table-empty i { display: block; font-size: 30px; color: #b9cbc0; margin-bottom: 8px; }

.student-photo-preview {
  display: block; width: 132px; height: 156px; object-fit: cover;
  border: 1px solid var(--line); border-radius: 10px; background: #f4f7f5;
}
.student-photo-frame {
  width: 132px; height: 156px; object-fit: cover; border: 1px solid var(--line);
  border-radius: 10px; background: #f4f7f5; display: grid; place-items: center;
  color: #a9bdb2; font-size: 34px;
}

.brand-preview { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 260px; background: #fff; }
.brand-preview-band { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #0B5D3B; color: #fff; }
.brand-preview-dot { width: 9px; height: 9px; border-radius: 50%; background: #C8A24A; flex: none; }
.brand-preview-title { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview-body { display: flex; align-items: center; gap: 9px; padding: 9px 10px; }
.brand-preview-photo { width: 34px; height: 42px; border-radius: 4px; background: #eef3ef; border: 1px solid var(--line); flex: none; }
.brand-preview-name { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.brand-preview-line { font-size: 10px; color: var(--muted); margin-top: 2px; }
.table-compact tbody td, .table-compact thead th { padding: 8px 10px; }

/* ---------- Badges & status ---------- */
.badge-soft {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: #eef2f0; color: #4b5b52;
}
.badge-soft.green { background: #e7f6ec; color: #146c37; }
.badge-soft.gold { background: var(--gold-soft); color: #7a5c05; }
.badge-soft.red { background: #fdeceb; color: #9f261d; }
.badge-soft.blue { background: #eaf1fd; color: #1d4ea8; }
.badge-soft.grey { background: #eff1f0; color: #5d6962; }
.status-line { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; }
.status-line .dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa8a0; }
.status-line.ok .dot { background: #1c9c54; }
.status-line.warn .dot { background: #d92d20; }

/* ---------- Forms ---------- */
.form-label { font-size: 12.5px; font-weight: 600; color: #33453a; margin-bottom: 5px; }
.form-control, .form-select {
  border-radius: 9px; border-color: #dbe5df; padding: 8px 11px; font-size: 13.5px; color: var(--ink);
  min-height: 39px;
}
.form-control:focus, .form-select:focus {
  border-color: #8fc3a4; box-shadow: 0 0 0 3px rgba(11,107,58,.1);
}
.form-text { font-size: 11.5px; color: var(--muted); }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.input-group-text { background: #f7faf8; border-color: #dbe5df; color: var(--muted); font-size: 12.5px; border-radius: 9px; }

.btn { border-radius: 9px; font-size: 13.2px; font-weight: 600; padding: 7px 13px; }
.btn-primary { background: var(--green); border-color: var(--green); }
.btn-primary:hover, .btn-primary:focus { background: var(--green-700); border-color: var(--green-700); }
.btn-outline-primary { color: var(--green); border-color: #bcd6c7; }
.btn-outline-primary:hover { background: var(--green); border-color: var(--green); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #2d2508; }
.btn-gold:hover { background: #b8931f; border-color: #b8931f; color: #1f1a05; }
.btn-outline-secondary { color: #4f5e55; border-color: #d7e1db; }
.btn-outline-secondary:hover { background: #eef3f0; color: var(--ink); border-color: #c8d6ce; }
.btn-danger-soft { color: #a22a20; background: #fdeceb; border-color: #f6d5d1; }
.btn-danger-soft:hover { background: #f9dcd9; color: #8d1f17; }
.btn-sm { padding: 5px 9px; font-size: 12px; border-radius: 7px; }

.filter-bar {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.filter-bar .form-group { min-width: 150px; }
.filter-bar .form-control, .filter-bar .form-select { min-height: 36px; }
.filter-bar .search { flex: 1; min-width: 200px; }
/* Filters that sit in a card header are part of the heading row, not a card inside a card. */
.card-head > .filter-bar {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding: 0; margin: 0; align-items: center; flex: 0 1 auto;
}
.card-head > .filter-bar .form-control,
.card-head > .filter-bar .form-select { width: auto; min-width: 140px; }
@media (max-width: 767.98px) {
  .card-head > .filter-bar { width: 100%; align-items: stretch; }
  .card-head > .filter-bar .form-control,
  .card-head > .filter-bar .form-select { flex: 1 1 140px; }
}

/* ---------- Tables/pagination ---------- */
.pagination-app { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 0; flex-wrap: wrap; }
.pagination-app .page-link { border-radius: 8px; margin: 0 2px; border-color: var(--line); color: var(--green); font-size: 12.5px; }
.pagination-app .page-item.active .page-link { background: var(--green); border-color: var(--green); }
.pagination-app .page-meta { color: var(--muted); font-size: 12px; }

/* ---------- Auth ---------- */
.auth-body {
  background: radial-gradient(circle at 12% 12%, rgba(201,162,39,.16), transparent 36%),
              linear-gradient(135deg, #063a20 0%, #0b6b3a 58%, #0f7c45 100%);
  min-height: 100vh;
}
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.auth-brand { color: #eaf5ee; display: flex; align-items: center; padding: 56px 6vw; }
.auth-brand-inner { max-width: 520px; }
.auth-crest { display: block; width: 112px; height: 112px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .28)); }
.auth-brand h1 { color: #fff; font-size: 38px; margin: 20px 0 6px; letter-spacing: -.02em; }
.auth-brand .tagline { color: #b8d5c4; font-size: 15px; margin-bottom: 28px; }
.auth-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 9px; color: #d6e9de; font-size: 13.8px; }
.auth-points i { color: var(--gold); font-size: 16px; margin-top: 1px; }
.auth-foot { color: #8fb4a0; font-size: 12px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
.auth-vendor-logo { display: block; width: 210px; height: auto; margin-top: 18px; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 5vw; min-width: 0; }
.auth-card { width: 100%; max-width: 430px; background: #fff; border-radius: 18px; padding: 34px 32px; box-shadow: 0 24px 70px rgba(3,26,15,.35); }
.auth-card h2 { font-size: 22px; margin: 0 0 4px; }
.auth-card .lead { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-card .form-control { min-height: 44px; }
.auth-card .btn { padding: 10px 14px; font-size: 14px; }
.auth-copyright { color: #9fc0ae; font-size: 11.5px; margin-top: 18px; }
/* Small crest used inside the sign-in card on compact screens. */
.auth-crest-sm { width: 44px; height: 44px; filter: none; flex: 0 0 auto; }
@media (max-width: 900px) {
  /* minmax(0, 1fr) lets the column shrink below its content's intrinsic width, which stops
     long form controls from pushing the sign-in card past the edge of a phone screen. */
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 34px 24px 10px; min-width: 0; }
  .auth-brand-inner { min-width: 0; max-width: 100%; }
  .auth-panel { padding: 18px 16px 36px; }
  .auth-card { padding: 26px 22px; max-width: 100%; }
  /* The card carries the crest on compact screens, so the brand panel shows only the title. */
  .auth-brand .auth-crest { display: none; }
  .auth-vendor-logo { width: 168px; margin-top: 14px; }
  .auth-brand h1 { font-size: 27px; }
  .auth-points, .auth-foot, .auth-brand .tagline { display: none; }
  .auth-panel { padding: 18px 16px 36px; }
  .auth-card { padding: 26px 22px; }
}

/* ---------- Misc ---------- */
.list-clean { list-style: none; margin: 0; padding: 0; }
/* Rows flow as normal text; a row that really needs two ends opts in with .d-flex. */
.list-clean li { padding: 10px 0; border-bottom: 1px solid #eef3ef; }
.list-clean li:last-child { border-bottom: none; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid #e4ede7; margin-left: 4px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.timeline .time { font-size: 11px; color: var(--muted); }
.timeline .what { font-size: 13px; font-weight: 600; }
.timeline .who { font-size: 11.5px; color: var(--muted); }

.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.negative { color: var(--danger); }
.amount.positive { color: var(--green-700); }
.text-muted-sm { font-size: 12px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.empty-state { text-align: center; padding: 46px 20px; }
.empty-state i { font-size: 38px; color: #b9cbc0; }
.empty-state h3 { font-size: 16px; margin: 12px 0 4px; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

.chart-box { position: relative; height: 260px; }
.chart-box.small { height: 210px; }

.alert { border-radius: 10px; font-size: 13px; border: none; }
.alert-success { background: #e7f6ec; color: #146c37; }
.alert-danger { background: #fdeceb; color: #9f261d; }
.alert-warning { background: #fdf6e3; color: #8a5a00; }
.alert-info { background: #eaf1fd; color: #1d4ea8; }

.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 22px 0 10px; }

.class-pill { display: inline-block; padding: 2px 7px; border-radius: 6px; background: #eef3f0; color: #405247; font-size: 11.5px; font-weight: 600; }
.mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: inline-block; }

/* ---------- Vendor contact badge ---------- */
.vendor-badge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: var(--shadow);
  text-align: right;
}
.vendor-powered {
  color: #d0021b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.vendor-name {
  color: #d0021b;
  font-weight: 800;
}
/* Below the desktop breakpoint the badge would cover charts and tables, so it becomes a
   normal footer strip at the end of the page instead of a floating panel. */
@media (max-width: 991.98px) {
  body.app-body { flex-wrap: wrap; }
  .vendor-badge {
    position: static; flex: 1 0 100%; width: 100%;
    align-items: flex-end; text-align: right; border: 0; border-top: 1px solid var(--line);
    border-radius: 0; box-shadow: none; padding: 10px 16px; background: #fff;
  }
}
@media (min-width: 992px) {
  .app-footer { padding-right: 250px; }
}

@media print {
  .sidebar, .topbar, .app-footer, .page-actions, .filter-bar, .no-print, .vendor-badge { display: none !important; }
  .app-main { margin: 0; width: 100%; }
  .app-content { padding: 0; }
  body { background: #fff; }
  .card-surface { box-shadow: none; border: none; }
}
