/* =========================================================================
   Attendance Manager — admin dashboard theme
   Clean, professional, low-chrome. Customises Bootstrap 5.
   ========================================================================= */

:root {
    --brand:        #4f46e5;   /* indigo */
    --brand-dark:   #4338ca;
    --brand-soft:   #eef2ff;
    --ink:          #1e293b;   /* slate-800 */
    --ink-soft:     #64748b;   /* slate-500 */
    --line:         #e2e8f0;   /* slate-200 */
    --bg:           #f1f5f9;   /* slate-100 */
    --card:         #ffffff;
    --sidebar-bg:   #0f172a;   /* slate-900 */
    --sidebar-ink:  #cbd5e1;
    --sidebar-muted:#64748b;
    --radius:       12px;
    --shadow:       0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
    --shadow-lg:    0 10px 25px -5px rgba(15,23,42,.15);
    --sidebar-w:    250px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.app { display: flex; min-height: 100vh; }

/* ---------------- Sidebar ---------------- */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    color: var(--sidebar-ink);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1050;
    transition: transform .25s ease;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 20px 18px;
    font-weight: 700; font-size: 15px; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.06);
    line-height: 1.2;
}
.brand-mark {
    display: grid; place-items: center;
    width: 34px; height: 34px; flex: 0 0 34px;
    background: var(--brand); border-radius: 9px; color: #fff; font-size: 17px;
}
.brand-text { overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { padding: 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-nav .nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 9px;
    color: var(--sidebar-ink); text-decoration: none;
    font-weight: 500; font-size: 14px; transition: background .15s, color .15s;
}
.sidebar-nav .nav-link i { font-size: 17px; width: 20px; text-align: center; color: var(--sidebar-muted); }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav .nav-link:hover i { color: #fff; }
.sidebar-nav .nav-link.active { background: var(--brand); color: #fff; }
.sidebar-nav .nav-link.active i { color: #fff; }

.sidebar-footer {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.06);
}
.admin-chip { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.admin-chip .avatar {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
    background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600;
}
.admin-meta { display: flex; flex-direction: column; min-width: 0; }
.admin-name { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-email { color: var(--sidebar-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-link { color: var(--sidebar-muted); font-size: 18px; padding: 6px; border-radius: 8px; text-decoration: none; }
.logout-link:hover { color: #fff; background: rgba(255,255,255,.06); }

.sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.5);
    z-index: 1040; opacity: 0; visibility: hidden; transition: opacity .2s;
}
.sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ---------------- Main ---------------- */
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }

.topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px; min-height: 60px;
}
.topbar-title { font-size: 18px; font-weight: 700; margin: 0; flex: 1; color: var(--ink); }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

.content { padding: 24px; flex: 1; }

/* ---------------- Buttons ---------------- */
.btn { font-weight: 500; border-radius: 9px; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-icon {
    display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--line); background: #fff; border-radius: 9px; color: var(--ink); font-size: 18px;
}
.btn-icon:hover { background: var(--bg); }
.btn-soft { background: var(--brand-soft); color: var(--brand); border: none; }
.btn-soft:hover { background: #e0e7ff; color: var(--brand-dark); }

/* ---------------- Cards ---------------- */
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-header {
    background: transparent; border-bottom: 1px solid var(--line);
    font-weight: 600; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-body { padding: 20px; }

/* ---------------- Stat cards ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
}
.stat-icon {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 11px;
    display: grid; place-items: center; font-size: 22px;
}
.stat-icon.i-brand   { background: var(--brand-soft);  color: var(--brand); }
.stat-icon.i-green   { background: #dcfce7; color: #16a34a; }
.stat-icon.i-amber   { background: #fef3c7; color: #d97706; }
.stat-icon.i-red     { background: #fee2e2; color: #dc2626; }
.stat-icon.i-blue    { background: #dbeafe; color: #2563eb; }
.stat-icon.i-slate   { background: #e2e8f0; color: #475569; }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1; color: var(--ink); }
.stat-label { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; font-weight: 500; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
.table { margin: 0; color: var(--ink); }
.table thead th {
    background: #f8fafc; color: var(--ink-soft); font-weight: 600; font-size: 11.5px;
    text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line);
    padding: 11px 16px; white-space: nowrap;
}
.table-sort {
    appearance: none; border: 0; padding: 0; background: transparent; color: inherit;
    font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none;
    cursor: pointer; white-space: nowrap;
}
.table-sort::after { content: '\2195'; display: inline-block; margin-left: 5px; color: #94a3b8; font-size: 13px; }
.table-sort:hover, .table-sort:focus, .table-sort.is-active { color: var(--brand); }
.table-sort.is-active::after { content: '\2191'; color: var(--brand); }
.table-sort.is-active.is-desc::after { content: '\2193'; }
.table tbody td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fafc; }
.table.sticky-head thead th { position: sticky; top: 0; z-index: 2; }

/* Member cell with avatar */
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; font-weight: 600; font-size: 12.5px;
}
.person .p-name { font-weight: 600; color: var(--ink); }
.person .p-sub { font-size: 12px; color: var(--ink-soft); }

.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--ink-soft); }

/* Clickable last-attendance detail, kept compact for fast table work. */
.last-attendance-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px;
    margin: -5px -8px; border: 0; border-radius: 7px; background: transparent;
    color: var(--brand); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.last-attendance-link:hover, .last-attendance-link:focus-visible,
.last-attendance-link[aria-expanded="true"] { background: var(--brand-soft); }
.last-attendance-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.last-attendance-link .bi { font-size: 12px; opacity: .75; }

.attendance-popover {
    position: fixed; z-index: 1080; width: min(330px, calc(100vw - 24px));
    padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); animation: attendancePop .14s ease-out;
}
.attendance-popover[hidden] { display: none; }
.attendance-popover::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    border-radius: inherit; box-shadow: inset 3px 0 0 var(--brand);
}
.attendance-popover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.attendance-popover-label {
    color: var(--ink-soft); font-size: 10.5px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
}
.attendance-popover-head strong { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-soft); }
.attendance-popover-close {
    display: grid; place-items: center; width: 28px; height: 28px; margin: -5px -5px 0 0;
    border: 0; border-radius: 7px; background: transparent; color: var(--ink-soft);
}
.attendance-popover-close:hover { background: var(--bg); color: var(--ink); }
.attendance-popover-event { margin: 12px 0; font-size: 17px; font-weight: 750; color: var(--ink); line-height: 1.25; }
.attendance-popover-details { display: grid; gap: 9px; padding: 11px 0; border-block: 1px solid var(--line); }
.attendance-popover-details > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.attendance-popover-details > div > .bi { width: 17px; color: var(--brand); text-align: center; }
.attendance-popover-details span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; }
.attendance-popover-details small { color: var(--ink-soft); font-size: 12px; }
.attendance-popover-details strong { color: var(--ink); font-size: 12.5px; text-align: right; overflow-wrap: anywhere; }
.attendance-popover-action {
    display: flex; align-items: center; justify-content: space-between; margin: 10px -6px -6px;
    padding: 8px 9px; border-radius: 8px; color: var(--brand); font-size: 13px;
    font-weight: 700; text-decoration: none;
}
.attendance-popover-action:hover { color: var(--brand-dark); background: var(--brand-soft); }
@keyframes attendancePop {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Badges ---------------- */
.badge { font-weight: 600; padding: .35em .6em; border-radius: 6px; font-size: 11.5px; }
.badge.rounded-pill { border-radius: 999px; }

/* ---------------- Forms ---------------- */
.form-label { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.form-control, .form-select {
    border-radius: 9px; border-color: var(--line); padding: .55rem .8rem; font-size: 14px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.form-text { font-size: 12px; }
.input-group-text { border-radius: 9px; background: #f8fafc; border-color: var(--line); color: var(--ink-soft); }

/* Search box */
.search-box { position: relative; }
.search-box .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 16px; }
.search-box input { padding-left: 40px; }

/* ---------------- Section headers ---------------- */
.page-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title { font-size: 15px; font-weight: 700; margin: 0; }

/* ---------------- Empty state ---------------- */
.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-soft); }
.empty-state .bi { font-size: 42px; color: var(--line); display: block; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }

/* ---------------- Profile ---------------- */
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head .avatar-lg {
    width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; font-size: 26px; font-weight: 700; flex: 0 0 72px;
}
.detail-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { color: var(--ink-soft); font-weight: 500; }
.detail-row .v { font-weight: 600; text-align: right; }

/* =========================================================================
   Live check-in screen
   ========================================================================= */
.checkin-header {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 22px; box-shadow: var(--shadow); margin-bottom: 18px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.checkin-event h2 { font-size: 20px; font-weight: 700; margin: 0 0 2px; }
.checkin-event .meta { color: var(--ink-soft); font-size: 13px; }
.checkin-counter { text-align: right; min-width: 220px; }
.counter-line { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.counter-big { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.counter-total { font-size: 16px; color: var(--ink-soft); font-weight: 600; }
.counter-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.checkin-progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.checkin-progress > span { display: block; height: 100%; background: var(--brand); transition: width .3s ease; }

.checkin-search input {
    font-size: 20px; padding: 16px 16px 16px 52px; height: auto; border-radius: 12px;
    box-shadow: var(--shadow);
}
.checkin-search .bi { font-size: 22px; left: 18px; }

/* Search + floating results dropdown (check-in) */
.checkin-searchbar { position: relative; z-index: 50; }

.result-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); z-index: 1060; padding: 6px;
    max-height: 340px; overflow-y: auto;              /* scrolls, never grows the page */
    overscroll-behavior: contain;
}
.result-dropdown .rd-head {
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ink-soft); font-weight: 700; padding: 6px 10px 4px;
}
.result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; border-radius: 9px; cursor: pointer;
    border: 1px solid transparent;
}
.result-item + .result-item { margin-top: 2px; }
.result-item:hover { background: var(--bg); }
.result-item.active { background: var(--brand-soft); border-color: var(--brand); }
.result-item .avatar {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #fff;
    border: 1px solid var(--line); color: var(--brand);
    display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.result-item .r-main { flex: 1; min-width: 0; }
.result-item .r-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.result-item .r-sub { color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-item .btn-checkin { font-size: 14px; padding: 8px 16px; font-weight: 700; white-space: nowrap; }
.result-item .r-done { color: #16a34a; font-weight: 700; font-size: 13px; white-space: nowrap; }
.result-empty { padding: 18px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* Check-in feedback — FIXED banner so the page layout never shifts */
.checkin-feedback {
    position: fixed; top: 76px; left: 50%; z-index: 1085;
    display: flex; align-items: center; gap: 14px; border-radius: 12px; padding: 14px 20px;
    box-shadow: var(--shadow-lg); min-width: 340px; max-width: 92vw;
    animation: popIn .18s ease;
}
.checkin-feedback.ok  { background: #dcfce7; border: 1px solid #86efac; color: #14532d; }
.checkin-feedback.dup { background: #fef3c7; border: 1px solid #fcd34d; color: #713f12; }
.checkin-feedback .fb-icon { font-size: 28px; }
.checkin-feedback .fb-name { font-weight: 800; font-size: 16px; }
.checkin-feedback .fb-sub { font-size: 12.5px; opacity: .85; }
@keyframes popIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.kbd {
    display: inline-block; padding: 1px 6px; border: 1px solid var(--line);
    border-bottom-width: 2px; border-radius: 5px; background: #f8fafc;
    font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--ink-soft);
}

/* ---------------- Login / setup ---------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
    background: radial-gradient(1200px 500px at 50% -10%, var(--brand-soft), var(--bg)); }
.auth-wrap .auth-card { width: 100%; max-width: 400px; }
.auth-card { background: #fff; border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-lg); padding: 32px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.auth-brand .brand-mark { width: 40px; height: 40px; flex: 0 0 40px; font-size: 20px; }
.auth-brand h1 { font-size: 18px; font-weight: 700; margin: 0; }
.auth-sub { color: var(--ink-soft); margin-bottom: 24px; font-size: 13.5px; }

.auth-body { min-height:100vh; background:#fff; }
.auth-layout { min-height:100vh; display:grid; grid-template-columns:minmax(360px, .9fr) minmax(480px, 1.1fr); }
.auth-story {
    position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between;
    min-height:100vh; padding:42px clamp(34px, 5vw, 76px); color:#fff;
    background:linear-gradient(145deg, var(--brand-dark), var(--brand) 62%, #198d7d);
}
.auth-story::before,.auth-story::after { content:''; position:absolute; border-radius:50%; background:#fff; opacity:.055; }
.auth-story::before { width:360px; height:360px; right:-170px; top:-130px; }
.auth-story::after { width:260px; height:260px; left:-130px; bottom:80px; }
.auth-story-brand,.auth-mobile-brand { position:relative; z-index:1; display:flex; align-items:center; gap:12px; font-size:16px; font-weight:750; line-height:1.2; }
.auth-logo { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:12px; background:#fff; color:var(--brand); font-size:19px; box-shadow:0 8px 20px #083b3428; }
.auth-story-copy { position:relative; z-index:1; max-width:560px; margin-block:auto; padding-block:60px; }
.auth-eyebrow { margin-bottom:16px; color:#d9fff5; font-size:11px; font-weight:800; letter-spacing:.14em; }
.auth-story-copy h1 { margin:0; font-size:clamp(34px,4.2vw,58px); font-weight:780; line-height:1.08; letter-spacing:-1.8px; }
.auth-story-copy > p { max-width:520px; margin:24px 0 26px; color:#e7faf5; font-size:16px; line-height:1.65; }
.auth-feature-row { display:flex; flex-wrap:wrap; gap:9px; }
.auth-feature-row span { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid #ffffff30; border-radius:8px; background:#ffffff12; color:#fff; font-size:12px; font-weight:650; }
.auth-private { position:relative; z-index:1; display:flex; align-items:center; gap:8px; color:#d7f5ed; font-size:12px; }
.auth-signin { display:grid; place-items:center; padding:42px clamp(24px,7vw,110px); background:radial-gradient(650px 300px at 100% 0%, var(--brand-soft), #fff 70%); }
.auth-signin .auth-card { width:100%; max-width:470px; border:0; box-shadow:none; padding:0; }
.auth-mobile-brand { display:none; color:var(--ink); margin-bottom:36px; }
.auth-mobile-brand .auth-logo { background:var(--brand); color:#fff; }
.auth-card-heading { display:flex; align-items:center; gap:14px; margin-bottom:28px; }
.auth-welcome-icon { display:grid; place-items:center; width:48px; height:48px; flex:0 0 48px; border-radius:13px; background:var(--brand-soft); color:var(--brand); font-size:22px; }
.auth-card-heading h2 { margin:0 0 4px; color:var(--ink); font-size:27px; font-weight:760; letter-spacing:-.5px; }
.auth-card-heading p { margin:0; color:var(--ink-soft); font-size:13.5px; }
.auth-alert { display:flex; align-items:flex-start; gap:10px; margin-bottom:20px; padding:11px 13px; border:1px solid; border-radius:9px; font-size:13px; }
.auth-alert.info { color:#155e75; border-color:#bae6fd; background:#f0f9ff; }
.auth-alert.error { color:#991b1b; border-color:#fecaca; background:#fff7f7; }
.auth-form { display:grid; gap:18px; }
.auth-form .form-label { margin-bottom:7px; font-size:13px; }
.auth-input { position:relative; }
.auth-input > .bi { position:absolute; z-index:1; left:14px; top:50%; transform:translateY(-50%); color:var(--ink-soft); font-size:16px; pointer-events:none; }
.auth-input .form-control { min-height:50px; padding-left:42px; border-color:var(--line); font-size:15px; }
.auth-input .form-control::placeholder { color:#97a6a0; }
.auth-password .form-control { padding-right:48px; }
.auth-password button { position:absolute; right:7px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:8px; background:transparent; color:var(--ink-soft); }
.auth-password button:hover { color:var(--brand); background:var(--brand-soft); }
.auth-submit { width:100%; min-height:50px; margin-top:3px; font-size:15px; font-weight:700; }
.auth-submit .bi { margin-left:auto; }
.auth-help { margin:20px 0 0; color:var(--ink-soft); font-size:11.5px; text-align:center; }
.auth-help .bi { margin-right:4px; color:var(--brand); }

@media (max-width: 850px) {
    .auth-layout { grid-template-columns:1fr; }
    .auth-story { display:none; }
    .auth-signin { min-height:100vh; padding:28px 22px; }
    .auth-mobile-brand { display:flex; }
}

/* ---------------- Utilities ---------------- */
.text-muted-2 { color: var(--ink-soft) !important; }
.hr-soft { border-color: var(--line); opacity: 1; }
.gap-tight { gap: 6px; }
.chart-box { position: relative; height: 300px; }
.chart-box-sm { position: relative; height: 240px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main { margin-left: 0; }
    .content { padding: 16px; }
    .topbar { padding: 10px 16px; }
}
