@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1e3c; --navy2: #162848; --navy3: #1e3460;
  --accent: #2563eb; --accent-hover: #1d4ed8;
  --success: #16a34a; --warning: #d97706; --danger: #dc2626; --info: #0891b2; --purple: #7c3aed;
  --text: #111827; --text2: #374151; --text3: #6b7280; --text4: #9ca3af;
  --bg: #f3f4f8; --bg2: #eef0f5; --card: #ffffff; --border: #e5e7eb; --border2: #d1d5db;
  --sidebar-w: 230px; --topbar-h: 58px;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
}

body { font-family: 'DM Sans', -apple-system, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; min-height: 100vh; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 10px; }

/* ── Layout ── */
.app-layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: var(--sidebar-w); background: var(--navy); display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden; }
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar { height: var(--topbar-h); background: var(--card); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 12px; flex-shrink: 0; }
.page-content { flex: 1; overflow-y: auto; padding: 24px; }

/* ── Sidebar ── */
.sidebar-logo { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon i { color: white; font-size: 17px; }
.logo-text { color: white; font-size: 14px; font-weight: 500; }
.logo-sub { color: rgba(255,255,255,0.32); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.sidebar-company { padding: 9px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.company-dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; flex-shrink: 0; }
.company-name { color: rgba(255,255,255,0.65); font-size: 12px; flex: 1; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.nav-group-label { padding: 9px 16px 3px; color: rgba(255,255,255,0.27); font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 500; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 16px; color: rgba(255,255,255,0.55); cursor: pointer; transition: all 0.13s; font-size: 12.5px; border-left: 3px solid transparent; text-decoration: none; }
.nav-item:hover { color: rgba(255,255,255,0.88); background: rgba(255,255,255,0.05); }
.nav-item.active { color: white; background: rgba(37,99,235,0.2); border-left-color: var(--accent); }
.nav-item i { font-size: 15px; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--danger); color: white; font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 500; min-width: 18px; text-align: center; }
.nav-badge.success { background: var(--success); }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 9px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: white; flex-shrink: 0; }
.user-name { color: rgba(255,255,255,0.82); font-size: 12px; font-weight: 500; }
.user-role { color: rgba(255,255,255,0.32); font-size: 10px; margin-top: 1px; }

/* ── Topbar ── */
.page-title { font-size: 15px; font-weight: 500; }
.page-breadcrumb { font-size: 11px; color: var(--text3); margin-top: 1px; }
.topbar-spacer { flex: 1; }
.topbar-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; width: 220px; }
.topbar-search input { border: none; background: transparent; font-size: 13px; color: var(--text); outline: none; flex: 1; font-family: 'DM Sans', sans-serif; }
.topbar-search i { color: var(--text3); font-size: 14px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: var(--card); color: var(--text2); font-family: 'DM Sans', sans-serif; transition: all 0.13s; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--bg); border-color: var(--border2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-success { background: var(--success); border-color: var(--success); color: white; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px; }
.notif-btn { position: relative; padding: 7px 10px; }
.notif-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); border: 1.5px solid white; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.card-title { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; }
.card-title i { font-size: 15px; flex-shrink: 0; }
.card-body { padding: 18px; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); display: flex; align-items: center; justify-content: space-between; }

/* ── KPI Cards ── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.kpi-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.kpi-label { font-size: 10.5px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 9px; font-weight: 500; }
.kpi-value { font-size: 22px; font-weight: 500; color: var(--text); font-family: 'DM Mono', monospace; letter-spacing: -0.5px; line-height: 1; }
.kpi-footer { display: flex; align-items: center; gap: 5px; margin-top: 9px; font-size: 11px; color: var(--text3); }
.kpi-change.up { color: var(--success); font-weight: 500; }
.kpi-change.down { color: var(--danger); font-weight: 500; }

/* ── Tables ── */
.table-container { overflow-x: auto; overflow-y: visible; }
.voucher-lines { overflow: visible; }
.voucher-lines td { overflow: visible; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text3); padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 500; white-space: nowrap; background: var(--bg); }
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f8f9fb; }
tbody tr.tr-new td { background: #eff6ff; animation: fadeInRow 0.3s ease; }
@keyframes fadeInRow { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.mono { font-family: 'DM Mono', monospace; font-size: 12px; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge-posted  { background: #dcfce7; color: #15803d; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-draft   { background: #fef9c3; color: #a16207; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-approved{ background: #dbeafe; color: #1d4ed8; }
.badge-rejected{ background: #fee2e2; color: #b91c1c; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-secondary{ background: #f1f5f9; color: #475569; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-purple  { background: #f3e8ff; color: #6d28d9; }
.badge-checked { background: #fae8ff; color: #86198f; }
.amount-credit { color: var(--success); }
.amount-debit  { color: var(--danger); }

/* ── Forms ── */
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.form-full   { grid-column: 1 / -1; }
.form-group  { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--text2); }
.required { color: var(--danger); margin-left: 2px; }
.form-control { padding: 8px 11px; border: 1px solid var(--border2); border-radius: var(--radius-sm); font-size: 13px; color: var(--text); background: var(--card); font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.13s; width: 100%; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-control:disabled { background: var(--bg); color: var(--text3); cursor: not-allowed; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 72px; }
.form-hint { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ── Page Layout ── */
.page-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-header-title { font-size: 18px; font-weight: 500; }
.page-header-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }
.page-header-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mt-4 { margin-top: 16px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; gap: 0; }
.tab { padding: 10px 18px; font-size: 13px; color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.13s; white-space: nowrap; }
.tab:hover { color: var(--text2); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

/* ── Filters Bar ── */
.filters-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters-bar .form-control { width: auto; }

/* ── Progress Bar ── */
.progress-bar-bg { height: 5px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 3px; transition: width 0.7s ease; }

/* ── Alert ── */
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-overlay.hidden { display: none; }
.modal { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; max-width: 700px; max-height: 90vh; display: flex; flex-direction: column; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.modal-title { font-size: 15px; font-weight: 500; flex: 1; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 13px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); }

/* ── Voucher Lines ── */
.voucher-lines { width: 100%; border-collapse: collapse; }
.voucher-lines th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text3); padding: 8px 10px; background: var(--bg); border: 1px solid var(--border); font-weight: 500; }
.voucher-lines td { padding: 5px 7px; border: 1px solid var(--border); }
.voucher-lines td input, .voucher-lines td select { border: none; background: transparent; width: 100%; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--text); outline: none; padding: 2px 4px; }
.voucher-lines td input:focus, .voucher-lines td select:focus { background: #eff6ff; border-radius: 3px; }
.voucher-lines tfoot td { padding: 9px 10px; background: var(--bg); font-weight: 500; border: 1px solid var(--border); }
.voucher-balanced td { background: #f0fdf4 !important; }

/* ── COA Tree ── */
.coa-tree-wrap { overflow-y: auto; max-height: 540px; }
.coa-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--border); transition: background 0.1s; font-size: 13px; }
.coa-row:hover { background: var(--bg); }
.coa-row-new { background: #eff6ff !important; animation: fadeInRow 0.3s ease; }
.coa-code { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text3); min-width: 70px; }
.coa-name { flex: 1; }
.coa-l0 { font-weight: 500; color: var(--text); }
.coa-l1 { font-weight: 500; color: var(--text2); }
.coa-bal { font-family: 'DM Mono', monospace; font-size: 11px; margin-right: 8px; min-width: 90px; text-align: right; }
.coa-actions { display: flex; gap: 3px; opacity: 0; transition: opacity 0.13s; }
.coa-row:hover .coa-actions { opacity: 1; }
.coa-children { border-left: 1.5px solid var(--border); margin-left: 14px; }
.coa-section-header { background: var(--bg2); font-weight: 500; border-left: 3px solid var(--accent); }
.coa-row.coa-section-header { padding-left: 10px !important; }

/* ── Workflow Steps ── */
.workflow-steps { display: flex; align-items: center; margin-bottom: 20px; }
.workflow-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.workflow-step:not(:last-child)::after { content: ''; position: absolute; right: -50%; top: 14px; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.workflow-step.done::after { background: var(--success); }
.step-circle { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: white; display: flex; align-items: center; justify-content: center; font-size: 12px; position: relative; z-index: 1; }
.workflow-step.done  .step-circle { background: var(--success); border-color: var(--success); color: white; }
.workflow-step.active .step-circle { background: var(--accent); border-color: var(--accent); color: white; }
.step-label { font-size: 10px; color: var(--text3); margin-top: 4px; text-align: center; }
.workflow-step.active .step-label { color: var(--accent); font-weight: 500; }
.workflow-step.done  .step-label { color: var(--success); }

/* ── Project Cards ── */
.project-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.14s; cursor: pointer; }
.project-card:hover { box-shadow: var(--shadow-md); }
.project-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.project-stat { background: var(--bg); border-radius: 6px; padding: 9px; text-align: center; }
.project-stat-val { font-size: 17px; font-weight: 500; font-family: 'DM Mono', monospace; }
.project-stat-lbl { font-size: 10px; color: var(--text3); margin-top: 2px; }

/* ── Unit Grid ── */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 7px; }
.unit-cell { border: 1px solid var(--border); border-radius: 6px; padding: 9px 7px; text-align: center; cursor: pointer; transition: all 0.13s; font-size: 11px; }
.unit-cell:hover { border-color: var(--accent); background: #eff6ff; }
.unit-cell.available { border-color: #bbf7d0; background: #f0fdf4; }
.unit-cell.booked    { border-color: #bfdbfe; background: #eff6ff; }
.unit-cell.sold      { border-color: #e9d5ff; background: #faf5ff; }
.unit-cell.reserved  { border-color: #fde68a; background: #fffbeb; }
.unit-no   { font-weight: 500; font-size: 13px; }
.unit-size { color: var(--text3); font-size: 10px; margin-top: 2px; }

/* ── Installment ── */
.installment-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.installment-row:last-child { border-bottom: none; }
.install-no { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; flex-shrink: 0; }
.install-info { flex: 1; }
.install-date { font-size: 13px; font-weight: 500; }
.install-desc { font-size: 11px; color: var(--text3); margin-top: 1px; }
.install-amount { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; }

/* ── Activity / Approval ── */
.apq-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.apq-item:last-child { border-bottom: none; }
.apq-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.apq-info { flex: 1; min-width: 0; }
.apq-title { font-size: 12px; font-weight: 500; }
.apq-sub { font-size: 11px; color: var(--text3); margin-top: 1px; }
.apq-amount { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.apq-actions { display: flex; gap: 5px; flex-shrink: 0; }
.activity-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-icon-wrap { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-time { font-size: 11px; color: var(--text3); margin-top: 1px; }
.activity-amount { font-size: 12px; font-weight: 500; font-family: 'DM Mono', monospace; text-align: right; flex-shrink: 0; }

/* ── Bar Chart ── */
.bar-chart { display: flex; align-items: flex-end; gap: 5px; height: 130px; padding-bottom: 20px; }
.bar-col { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 2px; height: 100%; }
.bar-group { display: flex; align-items: flex-end; gap: 2px; flex: 1; width: 100%; }
.bar-unit { border-radius: 3px 3px 0 0; min-height: 3px; cursor: pointer; transition: opacity 0.13s; }
.bar-unit:hover { opacity: 0.75; }
.bar-month { font-size: 10px; color: var(--text3); margin-top: 4px; }
.chart-legend { display: flex; gap: 12px; margin-top: 7px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text2); }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }

/* ── Donut ── */
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-list { flex: 1; }
.donut-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.donut-row:last-child { border-bottom: none; }
.donut-label-wrap { display: flex; align-items: center; gap: 7px; color: var(--text2); }
.donut-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.donut-amount { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; }

/* ── Toast ── */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 7px; }
.toast { background: white; border: 1px solid var(--border); border-radius: 9px; padding: 11px 14px; display: flex; align-items: center; gap: 9px; font-size: 13px; box-shadow: var(--shadow-md); min-width: 240px; animation: toastIn 0.2s ease; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Report Cards ── */
.report-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 14px; text-align: center; cursor: pointer; transition: all 0.13s; box-shadow: var(--shadow); }
.report-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); transform: translateY(-1px); }
.report-icon { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 22px; }

/* ── Responsive ── */
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  :root { --sidebar-w: 54px; }
  .nav-item span, .nav-group-label, .logo-text, .logo-sub, .user-name, .user-role, .company-name, .nav-badge { display: none; }
  .sidebar-logo { padding: 12px 8px; justify-content: center; }
  .nav-item { justify-content: center; padding: 11px 0; border-left: none; }
  .sidebar-footer { justify-content: center; padding: 10px 0; }
}

/* ── PROJECT MODULE ADDITIONS ── */
.tab-bar { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 12px; }
.tab-btn { padding: 8px 16px; border: none; background: none; font-size: 13px; color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ledger searchable autocomplete */
.ledger-option:hover { background: var(--accent) !important; color: #fff !important; }
.ledger-option:hover span { color: #fff !important; }
.ledger-autocomplete input[data-role="ledger-search"]:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }

/* Executive Dashboard */
.exec-card { background:var(--card);border:1px solid var(--border);border-radius:10px;padding:16px 18px;box-shadow:var(--shadow); }
.exec-card-title { font-size:13px;font-weight:700;color:var(--text1);margin-bottom:4px;display:flex;align-items:center;gap:6px; }
@media print {
  .sidebar, .page-header, #exec-entity, button { display:none!important; }
  .exec-card { break-inside:avoid; box-shadow:none;border:1px solid #ddd; }
  body { background:#fff; }
}
