/* ===== THEME =====
   These are the only colours a department needs to change, and they are set at
   page load from config/organisation.json by js/boot.js. The values here are
   fallbacks, so the pages still look right if the config cannot be reached.
   Everything below this block is deliberately literal - it is the approved
   design and should not drift per deployment. */
:root {
  --navbar-bg: #0f3460;
  --navbar-text: #94a3b8;
  --navbar-text-active: #ffffff;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --logo-from: #ea580c;
  --logo-to: #f97316;
  --login-gradient-from: #0f3460;
  --login-gradient-mid: #1a56db;
  --login-gradient-to: #312e81;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== TEXT SIZE - THE ONE KNOB =====
   Every font-size in this project is expressed in rem, so this single value
   scales all of them together and keeps the design's proportions exactly as
   they were approved. It was 14px until 19 Aug 2026, when the department asked
   for larger text; 1rem here is what every other size was originally chosen
   against. Change this number alone to retune - do not reintroduce px sizes,
   or that part of the page will stop responding to this knob. */
html { font-size: 15px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; background: #f1f5f9; color: #1e293b; font-size: 1rem; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar { background: var(--navbar-bg); color: white; height: 62px; display: flex; align-items: center; padding: 0 24px; position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 12px rgba(0,0,0,0.25); gap: 20px; }
.navbar-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--logo-from), var(--logo-to)); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.0714rem; color: white; letter-spacing: -0.5px; }
.brand-text .app-name { font-size: 1.0714rem; font-weight: 700; color: white; line-height: 1.2; }
.brand-text .org-name { font-size: 0.75rem; color: #93c5fd; letter-spacing: 0.2px; }
.nav-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.12); margin: 0 4px; }
.navbar-nav { display: flex; gap: 2px; flex: 1; }
.nav-link { padding: 7px 14px; border-radius: 7px; font-size: 0.9643rem; color: var(--navbar-text); transition: all 0.15s; font-weight: 500; }
.nav-link:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }
.nav-link.active { background: rgba(255,255,255,0.14); color: var(--navbar-text-active); }
.navbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Notification Bell */
.notif-wrapper { position: relative; }
.notif-btn { position: relative; background: none; border: none; color: var(--navbar-text); width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2857rem; transition: all 0.15s; }
.notif-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.notif-badge { position: absolute; top: 4px; right: 4px; background: var(--accent); color: white; font-size: 0.6429rem; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; padding: 0 3px; border: 2px solid var(--navbar-bg); }
.notif-dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 340px; background: white; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); border: 1px solid #e2e8f0; z-index: 999; display: none; overflow: hidden; }
.notif-dropdown.show { display: block; }
.notif-header { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.notif-header h4 { font-size: 1rem; font-weight: 600; color: #0f172a; }
.notif-mark-all { font-size: 0.8571rem; color: #2563eb; background: none; border: none; cursor: pointer; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid #f8fafc; display: flex; gap: 10px; cursor: pointer; transition: background 0.1s; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #eff6ff; }
.notif-item.unread:hover { background: #dbeafe; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.notif-dot.blue { background: #2563eb; }
.notif-dot.red { background: #dc2626; }
.notif-dot.green { background: #16a34a; }
.notif-dot.gray { background: #cbd5e1; }
.notif-dot.amber { background: #d97706; }
.notif-content .notif-text { font-size: 0.9286rem; color: #334155; line-height: 1.45; }
.notif-content .notif-time { font-size: 0.7857rem; color: #94a3b8; margin-top: 3px; }
.notif-footer { padding: 10px 16px; border-top: 1px solid #f1f5f9; text-align: center; }
.notif-footer a { font-size: 0.8571rem; color: #2563eb; }

/* User Info */
.user-pill { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 9px; cursor: pointer; transition: background 0.15s; }
.user-pill:hover { background: rgba(255,255,255,0.1); }
.user-avatar { width: 34px; height: 34px; background: linear-gradient(135deg, #2563eb, #7c3aed); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8571rem; color: white; flex-shrink: 0; }
.user-name { font-size: 0.9286rem; font-weight: 600; color: white; line-height: 1.2; }
.user-desig { font-size: 0.7857rem; color: #93c5fd; }

/* ===== PAGE LAYOUT ===== */
.page-wrapper { max-width: 1180px; margin: 0 auto; padding: 28px 24px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.page-subtitle { font-size: 0.9286rem; color: #64748b; margin-top: 3px; }
.page-actions { display: flex; gap: 10px; align-items: center; }

/* ===== CARDS ===== */
.card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; }
/* A card clips its content so tables sit inside the rounded corners. A card
   holding a pop-out - the assignee type-ahead - must not, or the results are
   cut off at the card edge. The explicit class carries browsers without :has(). */
.card.card-overflow-visible,
.card:has(.assignee-results) { overflow: visible; }
.card.card-overflow-visible .card-body,
.card:has(.assignee-results) .card-body { border-radius: 0 0 12px 12px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 1rem; font-weight: 600; color: #1e293b; }
.card-body { padding: 20px; }

/* ===== STAT CARDS ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5714rem; flex-shrink: 0; }
.stat-icon.blue { background: #eff6ff; }
.stat-icon.red { background: #fef2f2; }
.stat-icon.green { background: #f0fdf4; }
.stat-icon.amber { background: #fffbeb; }
.stat-value { font-size: 2.1429rem; font-weight: 800; color: #0f172a; line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 0.8571rem; color: #64748b; margin-top: 5px; font-weight: 500; }
.stat-change { font-size: 0.7857rem; margin-top: 4px; }
.stat-change.up { color: #16a34a; }
.stat-change.down { color: #dc2626; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { background: #f8fafc; padding: 11px 16px; text-align: left; font-size: 0.8214rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.6px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
tbody td { padding: 13px 16px; font-size: 0.9286rem; color: #334155; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.1s; }
tbody tr:hover td { background: #f8fafc; }
.td-title { font-weight: 500; color: #0f172a; max-width: 260px; }
.td-title a { color: #2563eb; }
.td-title a:hover { text-decoration: underline; }

/* ===== STATUS BADGES ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.8214rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-pending::before { background: #ca8a04; }
.badge-in-progress { background: #eff6ff; color: #1d4ed8; }
.badge-in-progress::before { background: #2563eb; }
.badge-completed { background: #f0fdf4; color: #15803d; }
.badge-completed::before { background: #16a34a; }
.badge-overdue { background: #fef2f2; color: #b91c1c; }
.badge-overdue::before { background: #dc2626; }
.badge-closed { background: #f1f5f9; color: #475569; }
.badge-closed::before { background: #94a3b8; }

/* Priority badges */
.priority-badge { display: inline-flex; padding: 2px 9px; border-radius: 4px; font-size: 0.7857rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.priority-urgent { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.priority-high { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.priority-normal { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Role badges */
.role-badge { display: inline-flex; padding: 2px 9px; border-radius: 4px; font-size: 0.7857rem; font-weight: 600; }
.role-admin { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.role-officer { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.role-staff { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Active / Inactive */
.status-active { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8571rem; color: #15803d; font-weight: 500; }
.status-active::before { content: ''; width: 7px; height: 7px; background: #16a34a; border-radius: 50%; display: inline-block; }
.status-inactive { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8571rem; color: #94a3b8; font-weight: 500; }
.status-inactive::before { content: ''; width: 7px; height: 7px; background: #cbd5e1; border-radius: 50%; display: inline-block; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: 8px; font-size: 0.9286rem; font-weight: 500; border: none; transition: all 0.15s; line-height: 1; cursor: pointer; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; color: #334155; }
.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-warning { background: #d97706; color: white; }
.btn-warning:hover { background: #b45309; }
.btn-outline { background: transparent; color: #475569; border: 1px solid #d1d5db; }
.btn-outline:hover { background: #f9fafb; }
.btn-sm { padding: 5px 12px; font-size: 0.8571rem; border-radius: 6px; }
.btn-lg { padding: 11px 24px; font-size: 1rem; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 8px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: 0.9286rem; font-weight: 500; color: #374151; margin-bottom: 7px; }
.required { color: #dc2626; }
.form-control { width: 100%; padding: 9px 13px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.9286rem; color: #1e293b; background: white; outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit; }
.form-control:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.form-control::placeholder { color: #9ca3af; }
.form-control:disabled { background: #f9fafb; color: #9ca3af; cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 38px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-hint { font-size: 0.8214rem; color: #94a3b8; margin-top: 5px; }

/* Search/Assignee */
.search-wrapper { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 1.0714rem; pointer-events: none; }
.search-wrapper .form-control { padding-left: 36px; }
.assignee-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: white; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); z-index: 100; max-height: 210px; overflow-y: auto; display: none; }
.assignee-results.show { display: block; }
.assignee-item { padding: 10px 14px; display: flex; align-items: center; gap: 11px; cursor: pointer; transition: background 0.1s; }
.assignee-item:hover { background: #f8fafc; }
.assignee-item + .assignee-item { border-top: 1px solid #f8fafc; }
.assignee-avatar { width: 34px; height: 34px; border-radius: 50%; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 0.7857rem; font-weight: 700; flex-shrink: 0; }
.assignee-name { font-size: 0.9286rem; font-weight: 500; color: #1e293b; }
.assignee-desig { font-size: 0.8214rem; color: #64748b; }
.selected-assignee-box { display: flex; align-items: center; gap: 11px; padding: 10px 14px; background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 9px; margin-top: 8px; }
.selected-assignee-box .s-name { font-size: 0.9286rem; font-weight: 600; color: #1e40af; }
.selected-assignee-box .s-desig { font-size: 0.8571rem; color: #3b82f6; }
.selected-assignee-box .clear-btn { margin-left: auto; background: none; border: none; color: #94a3b8; font-size: 1.2857rem; line-height: 1; cursor: pointer; }
.selected-assignee-box .clear-btn:hover { color: #dc2626; }

/* ===== TABS ===== */
.tab-bar { display: flex; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 9px; margin-bottom: 20px; width: fit-content; border: 1px solid #e2e8f0; }
.tab-btn { padding: 7px 22px; border-radius: 7px; font-size: 0.9286rem; font-weight: 500; border: none; background: transparent; color: #64748b; cursor: pointer; transition: all 0.15s; }
.tab-btn.active { background: white; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.tab-btn:hover:not(.active) { color: #334155; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; padding: 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.filter-bar .form-control { width: auto; font-size: 0.9286rem; }
.filter-label { font-size: 0.8571rem; font-weight: 600; color: #64748b; white-space: nowrap; }
.filter-search { min-width: 200px; }
.filter-spacer { flex: 1; }

/* ===== PAGINATION ===== */
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #e2e8f0; background: #fafafa; }
.pagination-info { font-size: 0.8571rem; color: #64748b; }
.pagination-nav { display: flex; gap: 4px; }
.page-btn { min-width: 32px; height: 32px; border: 1px solid #e2e8f0; background: white; border-radius: 7px; font-size: 0.8571rem; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #374151; padding: 0 8px; font-family: inherit; }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:hover:not(.active) { background: #f1f5f9; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 1000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.modal-overlay.show { display: flex; }
.modal { background: white; border-radius: 14px; width: 500px; max-width: 95vw; box-shadow: 0 24px 80px rgba(0,0,0,0.25); animation: slideUp 0.2s ease; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { padding: 20px 24px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.1429rem; font-weight: 700; color: #0f172a; }
.modal-close { background: none; border: none; font-size: 1.5714rem; color: #94a3b8; cursor: pointer; line-height: 1; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 7px; }
.modal-close:hover { background: #f1f5f9; color: #475569; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #f1f5f9; display: flex; justify-content: flex-end; gap: 10px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: #2563eb; border: 2px solid white; box-shadow: 0 0 0 2px #2563eb; flex-shrink: 0; margin-top: 3px; }
.timeline-dot.gray { background: #94a3b8; box-shadow: 0 0 0 2px #94a3b8; }
.timeline-dot.green { background: #16a34a; box-shadow: 0 0 0 2px #16a34a; }
.timeline-dot.red { background: #dc2626; box-shadow: 0 0 0 2px #dc2626; }
/* Work sent back for revision - amber, so it reads as a setback in the history
   without looking like an error. */
.timeline-dot.amber { background: #d97706; box-shadow: 0 0 0 2px #d97706; }
.timeline-line { width: 2px; background: #e2e8f0; flex: 1; margin-top: 4px; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-action { font-size: 0.9286rem; font-weight: 500; color: #334155; }
.timeline-meta { font-size: 0.8571rem; color: #94a3b8; margin-top: 3px; }

/* ===== DELEGATION CHAIN ===== */
.chain-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chain-node { display: flex; flex-direction: column; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 14px; }
.chain-node.current { background: #eff6ff; border-color: #bfdbfe; }
.chain-node-name { font-size: 0.8571rem; font-weight: 600; color: #334155; }
.chain-node.current .chain-node-name { color: #1d4ed8; }
.chain-node-desig { font-size: 0.7857rem; color: #94a3b8; }
.chain-arrow { font-size: 1.1429rem; color: #cbd5e1; }

/* ===== ACTION SECTION ===== */
.action-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 20px; margin-top: 20px; }
.action-box-title { font-size: 0.8214rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px; }
.action-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== DETAIL META ===== */
.detail-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.meta-item { background: #f8fafc; border-radius: 9px; padding: 12px 16px; border: 1px solid #f1f5f9; }
.meta-label { font-size: 0.7857rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.meta-value { font-size: 0.9643rem; font-weight: 500; color: #1e293b; }

/* ===== GREETING BAR ===== */
.greeting-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.greeting-text { font-size: 1.5714rem; font-weight: 700; color: #0f172a; }
.greeting-date { font-size: 0.9286rem; color: #64748b; margin-top: 3px; }
.greeting-badge { background: #eff6ff; color: #1d4ed8; padding: 5px 14px; border-radius: 20px; font-size: 0.8929rem; font-weight: 600; border: 1px solid #bfdbfe; }

/* ===== SECTION SPACING ===== */
.section { margin-bottom: 24px; }

/* ===== LOGIN PAGE ===== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--login-gradient-from) 0%, var(--login-gradient-mid) 60%, var(--login-gradient-to) 100%); position: relative; overflow: hidden; }
.login-page::before { content: ''; position: absolute; top: -20%; right: -10%; width: 500px; height: 500px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.login-page::after { content: ''; position: absolute; bottom: -20%; left: -10%; width: 400px; height: 400px; background: rgba(255,255,255,0.03); border-radius: 50%; }
.login-card { background: white; border-radius: 18px; padding: 44px 40px; width: 400px; box-shadow: 0 30px 80px rgba(0,0,0,0.35); position: relative; z-index: 1; }
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo-icon { width: 62px; height: 62px; background: linear-gradient(135deg, var(--navbar-bg), var(--primary)); border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5714rem; color: white; margin-bottom: 16px; letter-spacing: -1px; box-shadow: 0 8px 24px rgba(37,99,235,0.4); }
.login-title { font-size: 1.5714rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; letter-spacing: -0.5px; }
.login-subtitle { font-size: 0.9286rem; color: #64748b; }
.login-divider { border: none; border-top: 1px solid #e2e8f0; margin: 24px 0; }
.login-btn { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 9px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; letter-spacing: 0.2px; }
.login-btn:hover { background: #1d4ed8; box-shadow: 0 4px 14px rgba(37,99,235,0.4); transform: translateY(-1px); }
.login-footer { text-align: center; margin-top: 24px; font-size: 0.8214rem; color: #94a3b8; line-height: 1.6; }
.login-version { display: inline-block; margin-top: 10px; font-size: 0.7857rem; color: #cbd5e1; background: #f8fafc; border: 1px solid #e2e8f0; padding: 2px 10px; border-radius: 20px; }

/* ===== REPORTS ===== */
.export-buttons { display: flex; gap: 10px; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.report-summary-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; padding: 14px 16px; text-align: center; }
.report-summary-item .rs-value { font-size: 1.5714rem; font-weight: 700; color: #0f172a; }
.report-summary-item .rs-label { font-size: 0.7857rem; color: #64748b; margin-top: 3px; }

/* ===== ADMIN ===== */
.admin-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.admin-stat { background: white; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.admin-stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4286rem; flex-shrink: 0; }
.admin-stat-icon.purple { background: #faf5ff; }
.admin-stat-icon.blue { background: #eff6ff; }
.admin-stat-icon.green { background: #f0fdf4; }
.admin-stat-value { font-size: 1.8571rem; font-weight: 800; color: #0f172a; line-height: 1; }
.admin-stat-label { font-size: 0.8571rem; color: #64748b; margin-top: 4px; }

/* ===== MISC ===== */
.text-muted { color: #94a3b8; }
.text-danger { color: #dc2626; font-weight: 500; }
.text-success { color: #16a34a; }
.text-small { font-size: 0.8571rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.divider { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.w-full { width: 100%; }

/* Overdue row highlight */
tr.overdue-row td { background: #fff7f7; }
tr.overdue-row:hover td { background: #fef2f2; }
