:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e3e8ef;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #5b6b7f;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eef4ff;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --amber: #b45309;
  --amber-soft: #fff7ed;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --gray-soft: #f1f5f9;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
a { color: var(--blue-dark); }
button { font-family: inherit; }

.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.meta { font-size: 12px; color: var(--muted); }
.hidden { display: none !important; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; background: #0f2744; color: #cdd9ea;
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.brand { color: #fff; font-size: 16px; font-weight: 700; padding: 4px 10px 18px; line-height: 1.25; }
.brand span { display: block; font-size: 11px; font-weight: 500; color: #8ba6c9; letter-spacing: 0.04em; margin-top: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  border-radius: 8px; color: #cdd9ea; text-decoration: none; font-size: 14.5px; font-weight: 500;
  border: none; background: none; width: 100%; text-align: left; cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: var(--blue); color: #fff; }
.nav-item .badge { margin-left: auto; }
.nav-spacer { flex: 1; }
.nav-user { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 12px; margin-top: 8px; font-size: 13px; }
.nav-user .role { color: #8ba6c9; font-size: 12px; text-transform: capitalize; }

.main { flex: 1; min-width: 0; }
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 14px 28px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 19px; }
.content { padding: 24px 28px 64px; max-width: 1180px; }

/* ---------- buttons ---------- */
.btn {
  min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:focus-visible, .nav-item:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4); outline-offset: 1px;
}
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.danger { background: var(--surface); border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--blue-dark); padding: 0 8px; }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card-h h3 { font-size: 15.5px; }
.card-b { padding: 18px 20px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }

/* ---------- portfolio stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.stat .value.blue { color: var(--blue-dark); }

/* ---------- deal cards (dashboard) ---------- */
.deal-list { display: flex; flex-direction: column; gap: 14px; }
.deal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; cursor: pointer; display: grid;
  grid-template-columns: 1fr auto; gap: 14px; align-items: start;
}
.deal-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.deal-card .ref { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.deal-card .title { font-size: 16px; font-weight: 650; margin: 2px 0 4px; }
.deal-card .parties { font-size: 13px; color: var(--muted); }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 20px; margin-top: 14px; }
.fig .k { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.fig .v { font-size: 17px; font-weight: 650; margin-top: 2px; }
.fig .v.big { font-size: 21px; }
.fig .v.blue { color: var(--blue-dark); }
.fig .v.green { color: var(--green); }
.fig .v.red { color: var(--red); }
.next-action {
  align-self: start; text-align: right; min-width: 190px;
  background: var(--blue-soft); border: 1px solid #dbe6ff; border-radius: 8px; padding: 12px 14px;
}
.next-action .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-dark); font-weight: 700; }
.next-action .v { font-size: 14.5px; font-weight: 650; margin-top: 4px; color: var(--text); }
.next-action.attn { background: var(--red-soft); border-color: #f6cccc; }
.next-action.attn .k { color: var(--red); }
.next-action.done { background: var(--green-soft); border-color: #c9ecd3; }
.next-action.done .k { color: var(--green); }

/* progress bar */
.progress { height: 8px; background: var(--gray-soft); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress > span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.progress.over > span { background: var(--amber); }

/* ---------- status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.gray { color: #475569; background: var(--gray-soft); }
.pill.blue { color: var(--blue-dark); background: var(--blue-soft); }
.pill.green { color: var(--green); background: var(--green-soft); }
.pill.amber { color: var(--amber); background: var(--amber-soft); }
.pill.red { color: var(--red); background: var(--red-soft); }
.badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 8px; min-width: 20px; text-align: center; }

/* ---------- deal detail ---------- */
.deal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.deal-head h2 { font-size: 22px; }
.headline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.big-next {
  background: linear-gradient(180deg, #f5f9ff, #eef4ff); border: 1px solid #d7e5ff; border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.big-next.attn { background: linear-gradient(180deg,#fff5f5,#fdecec); border-color: #f6cccc; }
.big-next.done { background: linear-gradient(180deg,#f2fcf5,#ecfdf3); border-color: #c9ecd3; }
.big-next .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-dark); font-weight: 700; }
.big-next.attn .k { color: var(--red); }
.big-next .v { font-size: 20px; font-weight: 700; margin-top: 2px; }

.rowset { display: grid; gap: 1px; background: var(--border); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.rowset .r { background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; }
.rowset .r .k { color: var(--muted); font-size: 13.5px; }
.rowset .r .v { font-weight: 650; font-variant-numeric: tabular-nums; }
.rowset .r .v.red { color: var(--red); }
.rowset .r .v.green { color: var(--green); }
.rowset .r .v.amber { color: var(--amber); }

/* payment journey */
.journey { display: flex; flex-direction: column; gap: 12px; }
.jrow { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.jrow.void { opacity: 0.6; }
.jrow-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.jrow-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px 18px; margin-top: 12px; }
.jrow-figs .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 600; }
.jrow-figs .v { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.jrow-figs .v.blue { color: var(--blue-dark); }

/* tables (kept light, stack on mobile) */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.grid td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.grid tr.void td { opacity: 0.55; }
table.grid .num { text-align: right; font-variant-numeric: tabular-nums; }

/* collapsible */
.collapse-h { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14px; color: var(--blue-dark); background: none; border: none; padding: 6px 0; }
.collapse-h .chev { transition: transform 0.15s; }
.collapse-h.open .chev { transform: rotate(90deg); }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input, select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--border-strong);
  border-radius: 8px; font-size: 14.5px; background: var(--surface); color: var(--text);
}
textarea { min-height: 74px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-box {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin: 6px 0 14px;
}
.calc-box .line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.calc-box .line .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-box .line.total { border-top: 1px dashed var(--border-strong); margin-top: 4px; padding-top: 8px; }
.calc-box .kept { color: var(--green); }
.calc-box .reserved { color: var(--blue-dark); }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 720px; }
.modal-h { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-h h3 { font-size: 17px; }
.modal-b { padding: 20px 22px; }
.modal-f { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.x { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); min-width: 44px; min-height: 44px; }

/* ---------- toast + alerts ---------- */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: #0f2744; color: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); font-size: 14px; max-width: 360px; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
.alert { border-radius: 8px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px; border: 1px solid; }
.alert.warn { background: var(--amber-soft); border-color: #f5d9a8; color: #8a4b00; }
.alert.err { background: var(--red-soft); border-color: #f6cccc; color: var(--red); }
.alert.info { background: var(--blue-soft); border-color: #d7e5ff; color: var(--blue-dark); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg,#0f2744,#1e3a5f); padding: 20px; }
.login-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 380px; padding: 30px 28px; }
.login-card h1 { font-size: 20px; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.login-card .demo { margin-top: 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 6px; }

.tag { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--gray-soft); border-radius: 5px; padding: 2px 7px; }

/* ---------- responsive ---------- */
.menu-btn { display: none; }
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%); transition: transform 0.2s; }
  .sidebar.open { transform: translateX(0); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 55; }
  .menu-btn { display: inline-flex; }
  .content { padding: 18px 16px 60px; }
  .topbar { padding: 12px 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .deal-card { grid-template-columns: 1fr; }
  .next-action { text-align: left; min-width: 0; }
  .form-row { grid-template-columns: 1fr; }
  table.grid, table.grid thead, table.grid tbody, table.grid th, table.grid td, table.grid tr { display: block; }
  table.grid thead { display: none; }
  table.grid tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; padding: 6px 10px; }
  table.grid td { border: none; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; }
  table.grid td::before { content: attr(data-label); font-size: 12px; color: var(--muted); font-weight: 600; }
  table.grid td.num { text-align: right; }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   SIMPLE / INFOGRAPHIC LAYER
   ============================================================ */
:root { --gold: #b7791f; --gold-soft: #fdf6e3; }

/* next-step one-liner */
.nextline { font-size: 14px; color: var(--blue-dark); background: var(--blue-soft);
  display: inline-block; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; font-weight: 600; }
.nextline-k { text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; margin-right: 4px; opacity: 0.8; }

/* money flow: Client -> Us -> Supplier */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin-bottom: 20px; }
.flow-node { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px 18px 16px; text-align: center; }
.flow-node.europa { background: linear-gradient(180deg,#fffdf5,#fdf6e3); border-color: #eddcae; }
.flow-role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.flow-name { font-size: 13.5px; font-weight: 650; margin: 3px 0 10px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-big { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.flow-big.green { color: var(--green); } .flow-big.blue { color: var(--blue-dark); } .flow-big.gold { color: var(--gold); }
.flow-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.flow .progress { margin-top: 12px; height: 10px; }
.progress.blue > span { background: var(--blue); }
.progress.gold > span { background: var(--gold); }
.flow-tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 650; padding: 4px 11px; border-radius: 999px; }
.flow-tag.green { color: var(--green); background: var(--green-soft); }
.flow-tag.amber { color: var(--amber); background: var(--amber-soft); }
.flow-tag.red { color: var(--red); background: var(--red-soft); }
.flow-arrow { display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--border-strong); font-weight: 700; }

/* big quick-action buttons */
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.big-btn { min-height: 54px; font-size: 15.5px; padding: 0 22px; border-radius: 12px; flex: 1; min-width: 200px; }

/* document tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 2px dashed var(--border-strong); border-radius: 14px; padding: 20px 16px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px; transition: border-color .15s, background .15s; }
.tile.has { border-style: solid; border-color: #bfe3c9; background: #fbfefc; }
.tile-icon { font-size: 34px; line-height: 1; }
.tile-title { font-weight: 700; font-size: 14.5px; }
.tile-files { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; max-width: 100%; }
.tile-files a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.tile-btn { margin-top: 6px; }
.details-main { font-size: 15px; }

/* simplified dashboard deal card */
.deal-card { grid-template-columns: 1fr 230px; }
.dc-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.dc-bar-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.dc-bar-top b { font-size: 17px; font-variant-numeric: tabular-nums; }
.dc-bar-top b.green { color: var(--green); } .dc-bar-top b.blue { color: var(--blue-dark); }
.dc-side { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.dc-income { background: var(--gold-soft); border: 1px solid #eddcae; border-radius: 10px; padding: 10px 14px; text-align: right; }
.dc-income .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold); font-weight: 700; }
.dc-income .v { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.dc-income .v.green { color: var(--green); }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
  .tiles { grid-template-columns: 1fr; }
  .deal-card { grid-template-columns: 1fr; }
  .dc-income { text-align: left; }
  .big-btn { flex-basis: 100%; }
}

/* ============================================================
   EUROPA BRAND THEME  (navy + gold) — overrides earlier defaults
   ============================================================ */
:root {
  --bg: #f1eee7;
  --surface: #ffffff;
  --surface-2: #faf8f2;
  --border: #e9e2d2;
  --border-strong: #d9cfb6;
  --text: #16233a;
  --muted: #6c6656;
  --navy: #0f2744;
  --navy-2: #17385f;
  --blue: #17385f;        /* re-map "blue" accents to navy */
  --blue-dark: #0f2744;
  --blue-soft: #eef2f8;
  --gold: #a97e18;
  --gold-bright: #c9a441;
  --gold-soft: #fbf7ee;
}

/* primary actions in navy; links & focus stay legible */
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
a { color: var(--gold); }

/* gold active nav */
.nav-item.active { background: var(--gold); color: #1c1400; }
.nav-item.active:hover { background: var(--gold-bright); color: #1c1400; }

/* progress fills: default gold, navy variant, gold variant */
.progress > span { background: var(--gold); }
.progress.blue > span { background: var(--navy-2); }
.progress.gold > span { background: var(--gold); }

/* value colours */
.stat .value.gold, .fig .v.gold, .pos-v.gold, .flow-big.gold { color: var(--gold); }
.pos-v.navy { color: var(--navy-2); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* sidebar brand with icon */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.brand-tx { display: flex; flex-direction: column; color: #f2e6c6; font-size: 15px; font-weight: 700; line-height: 1.15; }
.brand-tx span { font-size: 10.5px; font-weight: 500; color: #8ba6c9; letter-spacing: 0.05em; margin-top: 2px; }

/* Boran&Co footer in the sidebar */
.boran { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12); }
.boran img { width: 30px; height: auto; flex: none; }
.boran span { font-size: 11px; color: #9db2d0; line-height: 1.25; }
.boran b { color: #d9c48a; font-weight: 700; }

/* login — dark navy card with the full logo */
.login { background: radial-gradient(1200px 600px at 50% -10%, #1c3a63, #0c1f39 60%); }
.login-card { background: #0f2744; border: 1px solid #23406a; color: #e7dcc2; box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.login-logo { width: 100%; max-width: 300px; display: block; margin: 2px auto 6px; border-radius: 10px; }
.login-card .sub { color: #9db2d0; text-align: center; }
.login-card label { color: #cdd9ea; }
.login-card input { background: #0b1e37; border-color: #2c4a72; color: #fff; }
.login-card input:focus-visible { outline-color: rgba(201,164,65,0.5); }
.login-card .btn.primary { background: var(--gold); border-color: var(--gold); color: #1c1400; }
.login-card .btn.primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.login-card .demo { color: #8ea6c6; border-top-color: #23406a; text-align: center; }
.login-boran { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: #9db2d0; font-size: 12px; }
.login-boran img { width: 26px; height: auto; }

/* "Our position" band */
.position { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 26px;
  background: var(--gold-soft); border: 1px solid #ecdcb4; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 18px; }
.pos-group { display: flex; gap: 26px; flex-wrap: wrap; flex: 1; }
.pos-divider { width: 1px; background: #e6d4a8; align-self: stretch; }
.pos-item { min-width: 130px; }
.pos-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 650; }
.pos-v { font-size: 19px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.pos-v.green { color: var(--green); } .pos-v.amber { color: var(--amber); } .pos-v.red { color: var(--red); }
.pos-pct { font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 860px) { .pos-divider { display: none; } .position { gap: 12px 20px; } }

/* ============================================================
   SIDEBAR LUXURY + REPORTS + DELIVERY CARD
   ============================================================ */
/* richer navy with a gold separating stripe on the right edge */
.sidebar {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(201,164,65,0.10), transparent 60%),
    linear-gradient(180deg, #143255 0%, #0f2744 45%, #0b1e36 100%);
  border-right: 2px solid var(--gold);
  box-shadow: inset -6px 0 18px -12px rgba(201,164,65,0.55), 2px 0 0 rgba(201,164,65,0.25);
}
.brand { position: relative; padding-bottom: 16px; margin-bottom: 6px; }
.brand::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,164,65,0.6), transparent); }
.brand-icon { box-shadow: 0 0 0 1px rgba(201,164,65,0.5), 0 4px 10px rgba(0,0,0,0.35); }
.brand-tx { color: #f3e7c6; letter-spacing: 0.01em; }
.nav-item { transition: background .15s, color .15s; letter-spacing: 0.01em; }
.nav-item:hover { background: rgba(201,164,65,0.12); color: #fff; }
.nav-item.active { box-shadow: 0 2px 8px rgba(201,164,65,0.35); font-weight: 700; }
.boran b { color: #e4cf92; }

/* delivery card header */
.dl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dl-big { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dl-big.green { color: var(--green); }
.dl-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* reports page */
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.mchart { display: flex; flex-direction: column; gap: 9px; }
.mrow { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; }
.mlabel { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mbars { display: flex; flex-direction: column; gap: 3px; }
.mbar { height: 8px; border-radius: 4px; min-width: 2px; }
.mbar.in { background: var(--green); }
.mbar.out { background: var(--navy-2); }
.mvals { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mvals .green { color: var(--green); } .mvals .blue { color: var(--navy-2); }
.mlegend { margin-top: 12px; font-size: 12px; color: var(--muted); }
.mlegend .green { color: var(--green); } .mlegend .blue { color: var(--navy-2); }
.rowset .r .v.gold { color: var(--gold); }
.jrow-figs .v.gold { color: var(--gold); }
@media (max-width: 860px) { .rep-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ELEGANCE PASS — refined typography, cards, spacing
   ============================================================ */
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

h1, h2, h3, h4, .card-h h3, .deal-head h2, .topbar h1, .empty h3, .modal-h h3, .brand-tx, .login-card .sub {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.015em;
}
.topbar h1 { font-size: 25px; font-weight: 700; color: var(--navy); }
.card-h h3 { font-size: 19px; font-weight: 700; color: var(--navy); }
.deal-head h2 { font-size: 28px; font-weight: 700; color: var(--navy); }
.brand-tx { font-size: 17px; font-weight: 700; }
.brand-tx span { font-family: 'Inter', sans-serif; }
.modal-h h3 { font-size: 21px; }
.login-card .sub { font-size: 15px; font-style: italic; }
.section-title { color: var(--gold); }

/* softer, warmer surfaces with a subtle gold hairline */
.card { border-radius: 14px; border-color: #ece3d1;
  box-shadow: 0 1px 2px rgba(15,39,68,0.05), 0 16px 40px -30px rgba(15,39,68,0.45); }
.card-h { border-bottom: 1px solid #f0e9d9; }
.stat { border-radius: 14px; border-color: #ece3d1; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold)); opacity: 0.85; }
.stat .value { font-family: 'Inter', sans-serif; }
.topbar { background: linear-gradient(180deg, #ffffff, #fbfaf5); border-bottom-color: #ece3d1; }
.deal-card { border-radius: 14px; border-color: #ece3d1;
  box-shadow: 0 1px 2px rgba(15,39,68,0.05), 0 16px 40px -30px rgba(15,39,68,0.4); }
.deal-card:hover { box-shadow: 0 20px 46px -26px rgba(15,39,68,0.5); border-color: var(--gold); }
.pill { border-radius: 999px; }
.btn { border-radius: 9px; }
.btn.primary { background: linear-gradient(180deg, #17385f, #0f2744); }

/* password controls */
.pw-row { display: flex; gap: 8px; align-items: center; }
.pw-row input { flex: 1; }

/* login refinements */
.login-logo { max-width: 320px; }
.login-card { border-radius: 16px; padding: 34px 30px; }
