/* ==========================================================================
   Green Trade Medical — ERP Design System
   Enterprise financial UI. Brand: pine / emerald / medical teal.
   ========================================================================== */

:root {
  --pine-900: #04291c;
  --pine-800: #063c28;
  --pine-700: #085134;
  --pine-600: #0a6641;
  --brand-500: #00a85f;
  --brand-400: #16c377;
  --brand-100: #def7ea;
  --brand-050: #f1fbf6;

  --teal-600: #0d7f8a;
  --gold-500: #b8860b;

  --ink-900: #0d1b16;
  --ink-700: #2a3a33;
  --ink-500: #5a6b63;
  --ink-400: #7b8a83;
  --line: #e2e8e5;
  --line-strong: #cdd7d2;
  --surface: #ffffff;
  --surface-2: #f6f9f7;
  --canvas: #f1f4f2;

  --pos: #0a7f4b;
  --neg: #c0392b;
  --warn: #b8860b;
  --info: #0d7f8a;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(6, 60, 40, .06), 0 1px 3px rgba(6, 60, 40, .04);
  --shadow-2: 0 4px 12px rgba(6, 60, 40, .08);
  --shadow-3: 0 12px 32px rgba(6, 60, 40, .12);
  --sidebar-w: 254px;
  --topbar-h: 56px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] { font-family: var(--font-ar); }

a { color: var(--pine-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Numeric discipline — every figure in a table is a tabular figure. */
.num, .money, td.num, .kpi-value, .stat-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.money { white-space: nowrap; }
.money::before { content: ""; }

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

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, var(--pine-800) 0%, var(--pine-900) 100%);
  color: #d7e6de;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body[dir="rtl"] .sidebar { order: 2; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  background: var(--pine-800);
  z-index: 2;
}
.brand-logo { flex: 0 0 auto; display: block; }
.brand-text { min-width: 0; }
.brand-name {
  font-weight: 700; font-size: 14px; color: #fff; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: 10.5px; color: var(--brand-400); letter-spacing: .8px;
  text-transform: uppercase; font-weight: 600;
}

.nav { padding: 10px 8px 40px; }
.nav-group-label {
  font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase;
  color: #6f8d80; padding: 14px 10px 6px; font-weight: 700;
}
.nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: #c6d8cf; font-size: 13.5px; font-weight: 500;
  text-decoration: none; margin-bottom: 1px;
  border-left: 2px solid transparent;
}
body[dir="rtl"] .nav a { border-left: none; border-right: 2px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.active {
  background: rgba(0,168,95,.18);
  color: #fff;
  border-left-color: var(--brand-500);
  font-weight: 600;
}
body[dir="rtl"] .nav a.active { border-right-color: var(--brand-500); }
.nav a .ico { width: 16px; text-align: center; opacity: .9; flex: 0 0 16px; }
.nav a .pill {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: var(--brand-500); color: #fff; border-radius: 999px;
  padding: 1px 7px;
}
body[dir="rtl"] .nav a .pill { margin-left: 0; margin-right: auto; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 15.5px; margin: 0; font-weight: 650; letter-spacing: -.1px; }
.topbar .crumb { font-size: 12px; color: var(--ink-400); }
.searchbox {
  margin-left: auto; position: relative; width: 340px; max-width: 40vw;
}
body[dir="rtl"] .searchbox { margin-left: 0; margin-right: auto; }
.searchbox input {
  width: 100%; height: 34px; border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 0 12px 0 32px; font-size: 13px;
  background: var(--surface-2); font-family: var(--font);
}
body[dir="rtl"] .searchbox input { padding: 0 32px 0 12px; }
.searchbox input:focus { outline: 2px solid var(--brand-500); outline-offset: -1px; background: #fff; }
.searchbox .si { position: absolute; left: 10px; top: 9px; color: var(--ink-400); font-size: 13px; }
body[dir="rtl"] .searchbox .si { left: auto; right: 10px; }
.search-results {
  position: absolute; top: 40px; left: 0; right: 0; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow-3);
  max-height: 420px; overflow: auto; z-index: 40; display: none;
}
.search-results.open { display: block; }
.search-results .sr-group { font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-400); padding: 8px 12px 4px; font-weight: 700; }
.search-results a { display: block; padding: 7px 12px; font-size: 13px; color: var(--ink-900); }
.search-results a:hover { background: var(--brand-050); text-decoration: none; }
.search-results .sr-meta { color: var(--ink-400); font-size: 11px; }

.userchip {
  display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px;
  border-radius: 999px; border: 1px solid var(--line);
}
body[dir="rtl"] .userchip { padding: 4px 4px 4px 10px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-500);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 11.5px;
  flex: 0 0 28px;
}
.userchip .un { font-size: 12.5px; font-weight: 600; line-height: 1.15; }
.userchip .ur { font-size: 10.5px; color: var(--ink-400); line-height: 1.15; }

.langbtn, .iconbtn {
  height: 32px; min-width: 32px; padding: 0 10px; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--ink-700); font-family: var(--font);
}
.langbtn:hover, .iconbtn:hover { background: var(--brand-050); border-color: var(--brand-500); color: var(--pine-700); }

.content { padding: 20px; flex: 1; }
.content-inner { max-width: 1560px; margin: 0 auto; }

/* ------------------------------------------------------------- page head */
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.page-head p { margin: 3px 0 0; color: var(--ink-500); font-size: 13px; }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
body[dir="rtl"] .page-actions { margin-left: 0; margin-right: auto; }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.card-head {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.card-head .sub { font-size: 11.5px; color: var(--ink-400); }
.card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
body[dir="rtl"] .card-head .right { margin-left: 0; margin-right: auto; }
.card-body { padding: 14px 16px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
@media (max-width: 1400px) { .g5 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 1180px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 820px) {
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ------------------------------------------------------------------ KPI */
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-500); opacity: .85;
}
.kpi.k-neg::after { background: var(--neg); }
.kpi.k-warn::after { background: var(--warn); }
.kpi.k-info::after { background: var(--teal-600); }
.kpi-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--ink-400); font-weight: 700; display: flex; align-items: center; gap: 5px;
}
.kpi-value { font-size: 23px; font-weight: 700; letter-spacing: -.6px; margin-top: 5px; }
.kpi-value.sm { font-size: 19px; }
.kpi-sub { font-size: 11.5px; color: var(--ink-500); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kpi-drill {
  position: absolute; right: 8px; bottom: 7px; font-size: 10.5px; color: var(--brand-500);
  font-weight: 700; opacity: 0; transition: opacity .12s;
}
.kpi:hover .kpi-drill { opacity: 1; }
.kpi.k-link { cursor: pointer; }
.kpi.k-link:hover { box-shadow: var(--shadow-2); border-color: var(--brand-400); }

.delta { font-weight: 700; font-size: 11.5px; }
.delta.up { color: var(--pos); }
.delta.down { color: var(--neg); }
.delta.flat { color: var(--ink-400); }

/* ---------------------------------------------------------------- tables */
table.data {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
table.data thead th {
  text-align: left; font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--ink-400); font-weight: 700; padding: 9px 12px;
  border-bottom: 1px solid var(--line-strong); background: var(--surface-2);
  position: sticky; top: 0; z-index: 1; white-space: nowrap;
}
body[dir="rtl"] table.data thead th { text-align: right; }
table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:hover { background: var(--brand-050); }
table.data td.num, table.data th.num { text-align: right; }
body[dir="rtl"] table.data td.num, body[dir="rtl"] table.data th.num { text-align: left; }
table.data tfoot td {
  padding: 9px 12px; font-weight: 700; border-top: 2px solid var(--line-strong);
  background: var(--surface-2);
}
table.data tr.total-row td { font-weight: 700; background: var(--surface-2); }
table.data td.pos { color: var(--pos); }
table.data td.neg { color: var(--neg); }
tbody tr.clickable { cursor: pointer; }

.table-wrap { overflow: auto; max-height: 620px; }

/* ----------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-500); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip.c-green { background: var(--brand-100); color: var(--pine-700); border-color: #bfe8d2; }
.chip.c-red { background: #fdeceb; color: #8e2c20; border-color: #f5cfcb; }
.chip.c-amber { background: #fdf6e3; color: #7c5b06; border-color: #f0e0b0; }
.chip.c-blue { background: #e8f3f5; color: #0a5f68; border-color: #c4e0e4; }
.chip.c-grey { background: #eef1f0; color: var(--ink-500); border-color: var(--line-strong); }
.chip.c-purple { background: #f0ecfa; color: #503d8f; border-color: #ddd4f2; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-700);
  cursor: pointer; font-family: var(--font); white-space: nowrap;
}
.btn:hover { background: var(--brand-050); border-color: var(--brand-400); color: var(--pine-700); text-decoration: none; }
.btn-primary { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.btn-primary:hover { background: var(--pine-600); border-color: var(--pine-600); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-500); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* --------------------------------------------------------------- filters */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow-1);
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-400); font-weight: 700; }
.field select, .field input {
  height: 32px; border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 0 9px; font-size: 13px; background: #fff; font-family: var(--font); color: var(--ink-900);
  min-width: 130px;
}
.field select:focus, .field input:focus { outline: 2px solid var(--brand-500); outline-offset: -1px; }

/* ------------------------------------------------------------------ misc */
.bar {
  height: 7px; background: var(--surface-2); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
}
.bar > span { display: block; height: 100%; background: var(--brand-500); }
.bar.warn > span { background: var(--warn); }
.bar.neg > span { background: var(--neg); }

.pbar-wrap { display: flex; align-items: center; gap: 10px; }
.pbar { flex: 1; height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.pbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-400)); }

.stepper { display: flex; gap: 0; flex-wrap: wrap; }
.step {
  flex: 1 1 120px; padding: 10px 12px; border: 1px solid var(--line); margin: -1px 0 0 -1px;
  background: var(--surface); position: relative; min-width: 118px;
}
.step .sn { font-size: 10px; color: var(--ink-400); font-weight: 700; letter-spacing: .6px; }
.step .st { font-size: 12.5px; font-weight: 650; margin-top: 2px; }
.step .ss { font-size: 10.5px; color: var(--ink-400); margin-top: 3px; }
.step.done { background: var(--brand-050); border-color: #bfe8d2; }
.step.done .sn { color: var(--brand-500); }
.step.active { background: #fff; border-color: var(--brand-500); box-shadow: inset 0 0 0 1px var(--brand-500); z-index: 1; }
.step.error { background: #fdeceb; border-color: #f5cfcb; }

.empty { text-align: center; padding: 44px 20px; color: var(--ink-400); }
.empty .big { font-size: 30px; opacity: .35; }

.note {
  background: var(--brand-050); border: 1px solid #c9e9d8; border-left: 3px solid var(--brand-500);
  border-radius: var(--radius-sm); padding: 10px 13px; font-size: 12.5px; color: var(--ink-700);
}
.note.warn { background: #fdf9ee; border-color: #f0e0b0; border-left-color: var(--warn); }
.note.err { background: #fdeceb; border-color: #f5cfcb; border-left-color: var(--neg); }

.muted { color: var(--ink-400); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mono { font-family: var(--mono); font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wrap { flex-wrap: wrap; }
.gap4 { gap: 4px; } .gap16 { gap: 16px; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-500); }
.legend .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

/* ---------------------------------------------------------------- charts */
.chart-box { position: relative; width: 100%; }
canvas { max-width: 100%; }

.spark { display: block; width: 100%; height: 34px; }

/* ------------------------------------------------------------ statements */
.stmt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.stmt td { padding: 6px 10px; }
.stmt td.num { text-align: right; }
.stmt tr.hdr td { font-weight: 700; text-transform: uppercase; font-size: 11px;
  letter-spacing: .7px; color: var(--ink-400); padding-top: 14px; border-bottom: 1px solid var(--line); }
.stmt tr.sub td { font-weight: 650; border-top: 1px solid var(--line); }
.stmt tr.tot td { font-weight: 700; border-top: 2px solid var(--line-strong); border-bottom: 2px solid var(--line-strong); background: var(--surface-2); }
.stmt tr.grand td { font-weight: 800; font-size: 15px; border-top: 2px solid var(--pine-700); background: var(--brand-050); }
.stmt tr.drillable:hover { background: var(--brand-050); cursor: pointer; }
.stmt tr.indent td:first-child { padding-left: 26px; }
.stmt tr.indent2 td:first-child { padding-left: 42px; }

/* ---------------------------------------------------------------- drawer */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(4,41,28,.42); z-index: 60; display: none;
}
.drawer-mask.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(940px, 96vw);
  background: var(--surface); z-index: 61; box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; transform: translateX(102%);
  transition: transform .18s ease-out;
}
body[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-102%); }
.drawer.open { transform: none; }
.drawer-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 12px;
}
.drawer-head h3 { margin: 0; font-size: 16px; }
.drawer-head .sub { font-size: 12px; color: var(--ink-400); margin-top: 2px; }
.drawer-body { padding: 16px 18px; overflow: auto; flex: 1; }
.drawer-close {
  margin-left: auto; border: none; background: var(--surface-2); width: 30px; height: 30px;
  border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--ink-500);
}
body[dir="rtl"] .drawer-close { margin-left: 0; margin-right: auto; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button {
  border: none; background: none; padding: 9px 14px; font-size: 13px; font-weight: 600;
  color: var(--ink-400); cursor: pointer; border-bottom: 2px solid transparent; font-family: var(--font);
}
.tabs button.on { color: var(--pine-700); border-bottom-color: var(--brand-500); }

/* ---------------------------------------------------------------- login */
.login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
}
.login-hero {
  background: linear-gradient(150deg, var(--pine-800), var(--pine-900) 55%, #032018);
  color: #dbe9e2; padding: 48px 52px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.login-hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,95,.28), transparent 68%);
  right: -140px; top: -110px;
}
.login-hero h1 { font-size: 30px; margin: 26px 0 8px; color: #fff; letter-spacing: -.7px; line-height: 1.18; }
.login-hero p { color: #9fbeaf; max-width: 460px; font-size: 14px; line-height: 1.6; }
.login-feats { margin-top: auto; display: grid; gap: 11px; }
.login-feat { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.login-feat .fi {
  width: 26px; height: 26px; border-radius: 7px; background: rgba(0,168,95,.18);
  color: var(--brand-400); display: grid; place-items: center; flex: 0 0 26px; font-size: 13px;
}
.login-feat b { color: #eaf5ef; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.login-card { width: 100%; max-width: 396px; }
.login-card h2 { margin: 0 0 4px; font-size: 21px; }
.login-card .lead { color: var(--ink-400); font-size: 13px; margin-bottom: 20px; }
.form-row { margin-bottom: 13px; }
.form-row label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--ink-400); font-weight: 700; margin-bottom: 5px; }
.form-row input {
  width: 100%; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 0 12px; font-size: 14px; font-family: var(--font); background: #fff;
}
.form-row input:focus { outline: 2px solid var(--brand-500); outline-offset: -1px; }
.demo-users { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.demo-users .du-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--ink-400); font-weight: 700; margin-bottom: 8px; }
.du-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.du {
  border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; cursor: pointer;
  background: var(--surface-2); text-align: left; font-family: var(--font);
}
.du:hover { border-color: var(--brand-500); background: var(--brand-050); }
.du b { display: block; font-size: 12px; color: var(--ink-900); }
.du span { font-size: 10px; color: var(--ink-400); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-hero { display: none; } }

/* --------------------------------------------------------------- banner */
.ribbon {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: var(--radius);
  font-size: 12.5px; margin-bottom: 14px; border: 1px solid;
}
.ribbon.ok { background: var(--brand-050); border-color: #bfe8d2; color: var(--pine-700); }
.ribbon.info { background: #eef6f8; border-color: #c4e0e4; color: #0a5f68; }
.ribbon.warn { background: #fdf9ee; border-color: #f0e0b0; color: #7c5b06; }
.ribbon.err { background: #fdeceb; border-color: #f5cfcb; color: #8e2c20; }

/* -------------------------------------------------------------- text/ar */
body[dir="rtl"] .nav-group-label { text-align: right; }
.ar-text { font-family: var(--font-ar); }

@media print {
  .sidebar, .topbar, .page-actions, .filters, .btn { display: none !important; }
  .content { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
}
