/* ============================================================
   BG Audit Central — Design System
   Navy / Gold corporate theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #0F2A44;
  --navy-light:  #1A3A5C;
  --navy-dark:   #091E31;
  --gold:        #C9A24D;
  --gold-light:  #DDB96B;
  --gold-dark:   #A8832A;

  --bg-primary:  #F7F8FA;
  --bg-white:    #FFFFFF;
  --border:      #E2E6EA;
  --border-dark: #C7CDD3;

  --text-primary: #1A2332;
  --text-muted:   #6B7A8E;
  --text-light:   #9AA3AF;

  --red:     #DC2626;
  --red-bg:  #FEF2F2;
  --red-border: #FECACA;
  --amber:   #D97706;
  --amber-bg: #FFFBEB;
  --green:   #16A34A;
  --green-bg: #F0FDF4;
  --blue:    #2563EB;
  --blue-bg: #EFF6FF;
  --purple:  #7C3AED;

  --sidebar-w: 240px;
  --header-h:  64px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ── Layout ── */
#app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  flex-shrink: 0;
}

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-area {
  flex: 1;
  padding: 32px 36px;
  max-width: 1400px;
}

/* ── Sidebar ── */
.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo-icon {
  width: 32px; height: 32px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 900; font-size: 13px; color: var(--navy);
  letter-spacing: -0.5px;
}
.sidebar-logo-text .brand { color: var(--gold); font-weight: 900; font-size: 14px; }
.sidebar-logo-text .app  { color: #fff; font-weight: 600; font-size: 14px; }
.sidebar-logo-text .sub  { color: rgba(255,255,255,0.45); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

.sidebar-nav { flex: 1; padding: 12px 10px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 2px;
  border: none; background: none; width: 100%;
  text-align: left;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-item.active {
  color: var(--gold);
  background: rgba(201,162,77,0.15);
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}
.nav-item svg { flex-shrink: 0; opacity: 0.85; }
.nav-item.active svg { opacity: 1; }

.sidebar-user {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-user-info { padding: 8px 12px; margin-bottom: 4px; }
.sidebar-user-name { color: #fff; font-size: 13px; font-weight: 600; }
.sidebar-user-role { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.sidebar-user-role svg { color: var(--gold); }
.sidebar-user-role span { color: var(--gold); font-size: 11px; }

/* ── Page Header ── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.page-header-text h1 {
  font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.2;
}
.page-header-text p {
  font-size: 13.5px; color: var(--text-muted); margin-top: 4px;
}
.page-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── Cards ── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-p { padding: 24px; }
.card-p-sm { padding: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-light); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover:not(:disabled) { background: var(--gold-light); }
.btn-secondary {
  background: #fff; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg-primary); border-color: var(--border-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #B91C1C; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-primary); color: var(--text-primary); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-icon { padding: 8px; }

/* ── Form Elements ── */
.form-group { margin-bottom: 18px; }
.label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-primary); margin-bottom: 6px;
}
.label .req { color: var(--red); margin-left: 2px; }
.input {
  width: 100%; padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px; color: var(--text-primary);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,77,0.15);
}
.input::placeholder { color: var(--text-light); }
.input:disabled { background: var(--bg-primary); color: var(--text-muted); cursor: not-allowed; }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 80px; }
.input-prefix-wrap { position: relative; }
.input-prefix {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.input-prefix ~ .input { padding-left: 34px; }

/* ── Alerts / Banners ── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13.5px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-error { background: var(--red-bg); border: 1px solid var(--red-border); color: #B91C1C; }
.alert-warn  { background: var(--amber-bg); border: 1px solid #FDE68A; color: var(--amber); }
.alert-success { background: var(--green-bg); border: 1px solid #BBF7D0; color: var(--green); }
.alert-info  { background: var(--blue-bg); border: 1px solid #BFDBFE; color: var(--blue); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; text-align: left; }
.data-table thead tr {
  border-bottom: 1px solid var(--border);
  background: rgba(15,42,68,0.03);
}
.data-table th {
  padding: 11px 16px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.data-table tbody tr:hover { background: rgba(15,42,68,0.02); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table td { padding: 11px 16px; font-size: 13.5px; color: var(--text-primary); }
.data-table td.muted { color: var(--text-muted); }
.data-table td.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); }
.data-table .row-link { color: var(--navy); font-weight: 600; cursor: pointer; transition: color 0.15s; }
.data-table .row-link:hover { color: var(--gold); }
.table-empty { padding: 60px 24px; text-align: center; color: var(--text-muted); }
.table-empty svg { margin: 0 auto 12px; opacity: 0.4; }
.table-empty p { font-size: 14px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/* Risk Badges */
.risk-high   { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.risk-medium { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.risk-low    { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }

/* Status Badges — Engagement */
.status-in_progress { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.status-fieldwork   { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }
.status-report_issued { background: #F5F3FF; color: #6D28D9; border: 1px solid #DDD6FE; }
.status-complete    { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.status-planned     { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }

/* Status Badges — Issue */
.status-open        { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.status-inprogress  { background: #F5F3FF; color: #6D28D9; border: 1px solid #DDD6FE; }
.status-closed      { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.status-overdue     { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.status-implemented { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.status-partially_implemented { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.status-not_implemented { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.status-not_agreed  { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }
.status-no_longer_valid { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }

/* Audit Plan Status Badges */
.status-not_yet_started { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }
.status-commenced   { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.status-fieldwork   { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }

/* Audit Type Badges */
.type-finance       { background: rgba(15,42,68,0.08); color: var(--navy); border: 1px solid rgba(15,42,68,0.15); }
.type-operations    { background: #F0FDFA; color: #0F766E; border: 1px solid #99F6E4; }
.type-compliance    { background: #FAF5FF; color: #7E22CE; border: 1px solid #E9D5FF; }
.type-adhoc         { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }
.type-risk_register { background: #FFF1F2; color: #BE123C; border: 1px solid #FECDD3; }
.type-followup_audit{ background: #EEF2FF; color: #4338CA; border: 1px solid #C7D2FE; }

/* ── KPI Cards ── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.kpi-inner { display: flex; justify-content: space-between; align-items: flex-start; }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-value { font-size: 32px; font-weight: 800; color: var(--navy); margin-top: 6px; line-height: 1; }
.kpi-value.danger { color: var(--red); }
.kpi-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }
.kpi-icon { padding: 10px; border-radius: var(--radius); background: rgba(15,42,68,0.06); }
.kpi-icon.danger-bg { background: var(--red-bg); }

/* ── Charts ── */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.chart-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 0; }
.tab-btn {
  padding: 10px 20px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-muted);
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: flex-end;
  overflow-y: auto;
}
.modal-overlay.center { align-items: center; justify-content: center; }
.modal-panel {
  background: #fff;
  width: 100%; max-width: 560px;
  min-height: 100vh;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--border);
  animation: slideInRight 0.2s ease;
}
.modal-panel.center-panel {
  max-width: 480px;
  min-height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  animation: fadeScaleIn 0.18s ease;
}
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeScaleIn { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 17px; font-weight: 700; color: var(--navy); }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 4px; }
.modal-close:hover { color: var(--text-primary); background: var(--bg-primary); }
.modal-footer { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ── Confirm Dialog ── */
.confirm-desc { font-size: 14px; color: var(--text-muted); margin-top: 8px; line-height: 1.6; }

/* ── Filters Row ── */
.filters-row {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; margin-bottom: 20px;
}
.search-wrap { position: relative; flex: 1; max-width: 320px; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-wrap .input { padding-left: 34px; }
.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.filter-btn {
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: #fff; color: var(--text-muted);
  cursor: pointer; transition: all 0.12s;
}
.filter-btn:hover { border-color: var(--border-dark); color: var(--text-primary); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.year-nav { display: flex; align-items: center; gap: 8px; }
.year-nav-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  cursor: pointer; transition: all 0.12s;
  color: var(--text-muted);
}
.year-nav-btn:hover { background: var(--bg-primary); color: var(--text-primary); }
.year-display { font-size: 18px; font-weight: 700; color: var(--navy); min-width: 56px; text-align: center; }

/* ── Progress Bar ── */
.progress-bar-wrap { background: var(--border); border-radius: 999px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.progress-bar.green { background: var(--green); }
.progress-bar.amber { background: var(--amber); }
.progress-bar.red   { background: var(--red); }
.progress-bar.navy  { background: var(--navy); }
.progress-bar.gold  { background: var(--gold); }

/* ── Checklist ── */
.checklist { space-y: 8px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.check-item:last-child { border-bottom: none; }
.check-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check-icon.pass { background: var(--green-bg); color: var(--green); }
.check-icon.fail { background: var(--red-bg); color: var(--red); }
.check-text { font-size: 13.5px; }

/* ── Divider ── */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Loading Spinner ── */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; align-items: center; justify-content: center; padding: 60px; }

/* ── Activity Feed ── */
.activity-feed { display: flex; flex-direction: column; }
.activity-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-action-tag {
  font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  flex-shrink: 0;
}
.tag-create  { background: var(--green-bg); color: var(--green); }
.tag-update  { background: var(--blue-bg);  color: var(--blue); }
.tag-delete  { background: var(--red-bg);   color: var(--red); }
.activity-text { font-size: 13px; color: var(--text-primary); }
.activity-text strong { font-weight: 600; }
.activity-time { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* ── Detail meta grid ── */
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.meta-item label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 5px; }
.meta-item span { font-size: 14px; color: var(--text-primary); font-weight: 500; }

/* ── Audit Plan Grid ── */
.plan-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.plan-summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.plan-summary-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: var(--text-muted); }
.plan-summary-card .value { font-size: 26px; font-weight: 800; margin-top: 4px; }

/* ── Login page ── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 20px;
}
.login-card {
  background: #fff; border-radius: var(--radius-xl);
  padding: 40px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-brand {
  text-align: center; margin-bottom: 32px;
}
.login-brand-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px; font-weight: 900; color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,162,77,0.35);
}
.login-brand h1 {
  font-size: 22px; font-weight: 800; color: var(--navy);
}
.login-brand h1 .gold-txt { color: var(--gold); }
.login-brand p { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.password-reveal-wrap { position: relative; }
.password-reveal-wrap .input { padding-right: 40px; }
.reveal-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 2px;
}
.reveal-btn:hover { color: var(--text-primary); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .sidebar.open { transform: translateX(0); width: 240px; }
  .main-content { margin-left: 0; }
  .page-area { padding: 20px 16px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  .plan-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { flex-direction: column; }
  .filters-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ── Misc ── */
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Overdue row highlight */
.row-overdue { background: rgba(220,38,38,0.04); }

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 150;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); color: #fff;
  border: none; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md);
}
@media (max-width: 768px) { .mobile-menu-btn { display: flex; } }
