/* ============================================================
   KAI CONNECT LOAN MANAGEMENT SYSTEM
   Brand Stylesheet v2.0
   Colours: Navy #3C3E53 | Pink #E6005F | Steel #44546A
            Charcoal #3C3C3B | White #FFFFFF | Off-White #F7F7F7
   ============================================================ */

/* ── Google Fonts fallback (system Aptos → Inter → system-ui) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --kai-navy:       #3C3E53;
  --kai-pink:       #E6005F;
  --kai-steel:      #44546A;
  --kai-red:        #E6302E;
  --kai-coral:      #EE7459;
  --kai-charcoal:   #3C3C3B;
  --kai-white:      #FFFFFF;
  --kai-off-white:  #F7F7F7;
  --kai-light-grey: #E0E0E0;
  --kai-mid-grey:   #9E9E9E;

  --font-body:      'Aptos', 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 13.5px;
  --line-height:    1.5;

  --sidebar-width:  240px;
  --header-height:  56px;
  --border-radius:  6px;
  --shadow-card:    0 1px 4px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.04);
  --shadow-modal:   0 8px 32px rgba(0,0,0,0.18);
  --transition:     0.18s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size:   1rem;
  color:       var(--kai-charcoal);
  background:  var(--kai-off-white);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--kai-pink); text-decoration: none; transition: color var(--transition); }
a:hover { color: #b3004a; }

/* ── Layout Shell ──────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  min-height: 100vh;
}

/* ── Top Bar ───────────────────────────────────────────────── */
.topbar {
  grid-area: topbar;
  background: var(--kai-white);
  border-bottom: 1px solid var(--kai-light-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--kai-navy);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--kai-steel);
}

.topbar-user .user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--kai-navy);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-user .user-role {
  font-size: 0.75rem;
  color: var(--kai-mid-grey);
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  grid-area: sidebar;
  background: var(--kai-navy);
  color: white;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-logo {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.sidebar-logo img {
  height: 28px;
  width: auto;
}

.sidebar-logo .tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.sidebar-section {
  padding: 1rem 0 0.5rem;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  padding: 0 1.25rem 0.4rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.25rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.sidebar-nav a:hover {
  color: white;
  background: rgba(255,255,255,0.07);
}

.sidebar-nav a.active {
  color: white;
  background: rgba(230,0,95,0.15);
  border-left-color: var(--kai-pink);
  font-weight: 600;
}

.sidebar-nav a .nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
  grid-area: main;
  padding: 1.75rem 2rem;
  overflow-x: auto;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.page-header-left h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kai-navy);
  line-height: 1.2;
}

.page-header-left .page-subtitle {
  color: var(--kai-steel);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.page-header-right {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--kai-mid-grey);
  margin-bottom: 0.75rem;
}

.breadcrumb a { color: var(--kai-steel); }
.breadcrumb a:hover { color: var(--kai-pink); }
.breadcrumb .sep { color: var(--kai-light-grey); }
.breadcrumb .current { color: var(--kai-charcoal); font-weight: 500; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--kai-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--kai-light-grey);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--kai-light-grey);
}

.card-header h2, .card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--kai-navy);
}

.card-header .card-header-actions {
  display: flex;
  gap: 0.5rem;
}

.card-body { padding: 1.25rem; }
.card-body-flush { padding: 0; }
.card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--kai-light-grey);
  background: var(--kai-off-white);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-size: 0.8rem;
  color: var(--kai-steel);
}

/* ── Stat Cards (Dashboard) ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--kai-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--kai-light-grey);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.stat-card .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kai-steel);
  margin-bottom: 0.35rem;
}

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--kai-navy);
  line-height: 1;
}

.stat-card .stat-value.pink { color: var(--kai-pink); }
.stat-card .stat-value.steel { color: var(--kai-steel); }

.stat-card .stat-sub {
  font-size: 0.75rem;
  color: var(--kai-mid-grey);
  margin-top: 0.25rem;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: var(--kai-navy);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 1rem;
  text-align: left;
  white-space: nowrap;
}

thead th.num { text-align: right; }

tbody tr { border-bottom: 1px solid var(--kai-light-grey); }
tbody tr:nth-child(even) { background: var(--kai-off-white); }
tbody tr:hover { background: #f0f0f5; }

tbody td {
  padding: 0.6rem 1rem;
  color: var(--kai-charcoal);
  vertical-align: middle;
}

tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody td.mono { font-family: 'Courier New', monospace; font-size: 0.82rem; }

tfoot td {
  padding: 0.65rem 1rem;
  font-weight: 700;
  background: var(--kai-navy);
  color: white;
  font-size: 0.82rem;
}

tfoot td.num { text-align: right; }

.table-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--kai-mid-grey);
  font-style: italic;
  font-size: 0.875rem;
}

/* ── Badges & Chips ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-active    { background: #e8f5e9; color: #2e7d32; }
.badge-watch     { background: #fff3e0; color: #e65100; }
.badge-phase1    { background: #fce4ec; color: #c62828; }
.badge-phase2    { background: #fce4ec; color: #880e4f; }
.badge-settled   { background: #e3f2fd; color: #1565c0; }
.badge-written   { background: #f3e5f5; color: #6a1b9a; }
.badge-closed    { background: var(--kai-light-grey); color: var(--kai-steel); }
.badge-pending   { background: #fff8e1; color: #f57f17; }
.badge-success   { background: #e8f5e9; color: #2e7d32; }
.badge-danger    { background: #fce4ec; color: #c62828; }

.badge-stage1    { background: #e8f5e9; color: #2e7d32; }
.badge-stage2    { background: #fff3e0; color: #e65100; }
.badge-stage3    { background: #fce4ec; color: #c62828; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--kai-pink); outline-offset: 2px; }

.btn-primary {
  background: var(--kai-pink);
  color: white;
  border-color: var(--kai-pink);
}
.btn-primary:hover { background: #b3004a; border-color: #b3004a; color: white; }

.btn-secondary {
  background: var(--kai-navy);
  color: white;
  border-color: var(--kai-navy);
}
.btn-secondary:hover { background: #2d2f3e; border-color: #2d2f3e; color: white; }

.btn-outline {
  background: transparent;
  color: var(--kai-navy);
  border-color: var(--kai-light-grey);
}
.btn-outline:hover { border-color: var(--kai-navy); color: var(--kai-navy); background: var(--kai-off-white); }

.btn-ghost {
  background: transparent;
  color: var(--kai-steel);
  border-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.btn-ghost:hover { background: var(--kai-off-white); color: var(--kai-navy); }

.btn-danger {
  background: var(--kai-red);
  color: white;
  border-color: var(--kai-red);
}
.btn-danger:hover { background: #b71c1c; border-color: #b71c1c; color: white; }

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
.btn-lg { padding: 0.65rem 1.4rem; font-size: 0.95rem; }

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem 1.25rem;
}

.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group.span-2 { grid-column: span 2; }
.form-group.span-3 { grid-column: span 3; }
.form-group.span-full { grid-column: 1 / -1; }

label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--kai-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

label .required { color: var(--kai-pink); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--kai-light-grey);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--kai-charcoal);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--kai-pink);
  box-shadow: 0 0 0 3px rgba(230,0,95,0.1);
}

input::placeholder, textarea::placeholder { color: var(--kai-mid-grey); }

textarea { resize: vertical; min-height: 90px; }

.form-hint {
  font-size: 0.75rem;
  color: var(--kai-mid-grey);
  margin-top: 0.15rem;
}

.form-error {
  font-size: 0.75rem;
  color: var(--kai-red);
  margin-top: 0.15rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--kai-pink);
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--kai-light-grey);
  margin-top: 1.25rem;
}

/* Stepped rate rows */
.stepped-rate-row {
  display: grid;
  grid-template-columns: 80px 80px 80px 1fr 36px;
  gap: 0.5rem;
  align-items: end;
}

/* ── Flash Messages ─────────────────────────────────────────── */
.flash-messages { margin-bottom: 1.25rem; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid;
}

.alert-success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.alert-danger   { background: #fff1f2; border-color: var(--kai-red); color: #991b1b; }
.alert-warning  { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.alert-info     { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--kai-light-grey);
  margin-bottom: 1.25rem;
  gap: 0;
}

.tab-nav a {
  padding: 0.6rem 1.1rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--kai-steel);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.tab-nav a:hover { color: var(--kai-navy); }
.tab-nav a.active { color: var(--kai-pink); border-bottom-color: var(--kai-pink); }

/* ── Info Rows (loan detail view) ───────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.info-item {}
.info-item dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kai-steel);
  margin-bottom: 0.2rem;
}
.info-item dd {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--kai-charcoal);
}

/* ── Callout / Alert Box ────────────────────────────────────── */
.callout {
  background: var(--kai-off-white);
  border-left: 3px solid var(--kai-pink);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.callout.callout-warning { border-left-color: #f59e0b; background: #fffbeb; }
.callout.callout-danger  { border-left-color: var(--kai-red); background: #fff1f2; }
.callout.callout-info    { border-left-color: #3b82f6; background: #eff6ff; }

.callout strong { color: var(--kai-navy); }

/* ── Recovery Task List ─────────────────────────────────────── */
.task-list { list-style: none; }

.task-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--kai-light-grey);
  font-size: 0.875rem;
}

.task-item:last-child { border-bottom: none; }

.task-item.complete { opacity: 0.55; }

.task-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--kai-light-grey);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-checkbox.done { border-color: #22c55e; background: #22c55e; }
.task-checkbox.done::after { content: '✓'; color: white; font-size: 0.65rem; font-weight: 700; }

.task-name { flex: 1; }
.task-due  { font-size: 0.78rem; color: var(--kai-mid-grey); white-space: nowrap; }
.task-due.overdue { color: var(--kai-red); font-weight: 600; }

/* ── IFRS 9 Stage Indicator ─────────────────────────────────── */
.stage-indicator {
  display: flex;
  gap: 0.25rem;
}

.stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kai-light-grey);
}

.stage-dot.s1 { background: #22c55e; }
.stage-dot.s2 { background: #f59e0b; }
.stage-dot.s3 { background: var(--kai-red); }

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--kai-light-grey);
  color: var(--kai-steel);
  background: white;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.filter-chip:hover { border-color: var(--kai-navy); color: var(--kai-navy); }
.filter-chip.active { background: var(--kai-navy); color: white; border-color: var(--kai-navy); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--kai-light-grey);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--kai-navy);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--kai-mid-grey);
  font-size: 1.25rem;
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover { color: var(--kai-charcoal); }

.modal-body { padding: 1.25rem; }

.modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--kai-light-grey);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ── Login Page ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--kai-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: white;
  border-radius: 10px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-modal);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo img { height: 36px; width: auto; }

.login-logo .login-subtitle {
  font-size: 0.78rem;
  color: var(--kai-mid-grey);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-form .form-group { margin-bottom: 1rem; }

.login-form .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

.login-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--kai-mid-grey);
  margin-top: 1.5rem;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
}

.pagination a, .pagination span {
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  color: var(--kai-steel);
  border: 1px solid var(--kai-light-grey);
}

.pagination a:hover { border-color: var(--kai-navy); color: var(--kai-navy); background: var(--kai-off-white); }
.pagination .current { background: var(--kai-navy); color: white; border-color: var(--kai-navy); }

/* ── Utilities ──────────────────────────────────────────────── */
.text-pink    { color: var(--kai-pink); }
.text-navy    { color: var(--kai-navy); }
.text-steel   { color: var(--kai-steel); }
.text-muted   { color: var(--kai-mid-grey); }
.text-danger  { color: var(--kai-red); }
.text-success { color: #22c55e; }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.text-sm      { font-size: 0.8rem; }
.text-xs      { font-size: 0.72rem; }
.font-bold    { font-weight: 700; }
.font-mono    { font-family: 'Courier New', monospace; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

/* amount formatting */
.amount     { font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount-pos { color: #166534; font-weight: 600; }
.amount-neg { color: var(--kai-red); font-weight: 600; }
.loan-ref   { font-family: 'Courier New', monospace; font-size: 0.82rem; font-weight: 600; color: var(--kai-navy); }
