:root {
    /* Design tokens — Figma "School Admin" mockups */
    --primary: #E8646A;
    --primary-dark: #D4545A;
    --primary-light: #ED8083;
    --primary-soft: #FDEDEE;
    --secondary: #14B8A6;
    --purple: #8B5CF6;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #0EA5E9;
    --bg: #FAF8F5;
    --card: #FFFFFF;
    --sidebar-bg: #2D2D2D;
    --sidebar-card: #3D3D3D;
    --text: #2D2D2D;
    --text-muted: #6B6B6B;
    --border: #EBE8E2;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: none;
    --shadow-lg: 0 16px 48px rgba(67,45,48,.08);
    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    font-size: .875rem;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D6D1C9; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ============ LAYOUT ============ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: 260px;
}

.content-wrap {
    padding: 28px 32px 32px;
    flex: 1;
}

/* ============ SIDEBAR ============ */
.sidebar {
    width: 260px;
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 32px 16px 24px;
    z-index: 1040;
    transition: transform .3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 32px;
    color: #fff;
}
.sidebar-brand img { width: 28px; height: 32px; }
.sidebar-brand span { font-size: 22px; font-weight: 700; line-height: 1; color: #fff; }
.sidebar-brand small { font-size: 22px; font-weight: 700; color: var(--primary); }
.sidebar-brand:hover { color: #fff; }

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.sidebar-menu::-webkit-scrollbar { width: 4px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.sidebar .nav { gap: 4px; flex-wrap: nowrap; }

.sidebar .nav-link {
    color: #A0A0A0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    transition: background .15s ease, color .15s ease;
}

.sidebar .nav-link i { font-size: 18px; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar .nav-link .nav-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 1px 8px;
    border-radius: 20px;
}

.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }

.sidebar .nav-link.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.sidebar .nav-link.active .nav-count { background: rgba(255,255,255,.25); }

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar-user {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--sidebar-card);
    color: #fff;
    text-align: left;
    transition: background .15s;
}
.sidebar-user:hover { background: #474747; }
.sidebar-user .bi { color: #808080; }
.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary);
    color: #fff;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 600;
    flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-user-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035; }

@media (max-width: 991.98px) {
    .main-content { margin-left: 0; }
    .content-wrap { padding: 20px 16px 24px; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
}

/* ============ TOP BAR ============ */
.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 32px 32px 0;
}
.topbar-heading { flex: 1; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.topbar .nav-icon-btn {
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    display: grid; place-items: center;
    font-size: 18px;
    position: relative;
    transition: border-color .15s, color .15s;
}
.topbar .nav-icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.nav-badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid; place-items: center;
    padding: 0 4px;
}
.nav-dot {
    position: absolute;
    top: 8px; right: 9px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 2px #fff;
}

.topbar .search-box {
    width: 260px;
    position: relative;
    margin: 0;
}
.topbar .search-box i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}
.topbar .search-box input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
    color: var(--text);
}
.topbar .search-box input::placeholder { color: var(--text-muted); }
.topbar .search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,100,106,.15);
}

.topbar-avatar {
    width: 40px; height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--primary);
    color: #fff;
    display: grid; place-items: center;
    font-size: 14px; font-weight: 600;
    flex-shrink: 0;
}
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar-avatar:hover { color: #fff; box-shadow: 0 0 0 2px var(--primary-soft); }

.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: .9rem;
}

@media (max-width: 991.98px) {
    .topbar { padding: 16px 16px 0; }
}

/* Page heading inside the top bar (e.g. dashboard greeting) */
.page-greeting { font-size: 28px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.2; }
.page-greeting-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.page-greeting-sub .accent { color: var(--primary); font-weight: 500; }

/* ============ CARDS ============ */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: box-shadow .25s ease, transform .25s ease;
}

.card.hoverable:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-body { padding: 22px; }

.card-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.card.colored-top { position: relative; overflow: hidden; }
.card.colored-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--card-top, var(--primary));
}

/* ============ STAT CARDS ============ */
.stat-card {
    border-radius: var(--radius);
    padding: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all .25s ease;
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    border-radius: 16px;
    display: grid;
    place-items: center;
}

.stat-card .stat-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.stat-card .stat-label { color: var(--text-muted); font-size: .78rem; font-weight: 600; }
.stat-card .stat-value { font-size: 36px; font-weight: 700; line-height: 1.1; }
.stat-card .stat-trend { font-size: .72rem; font-weight: 600; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

.stat-card .stat-mini {
    position: absolute;
    right: -20px; bottom: -20px;
    opacity: .08;
    font-size: 8rem;
    transform: rotate(-12deg);
}

/* gradient icon variants (legacy) */
.grad-indigo { background: linear-gradient(135deg, #4F46E5, #818CF8); }
.grad-cyan { background: linear-gradient(135deg, #06B6D4, #67E8F9); }
.grad-purple { background: linear-gradient(135deg, #8B5CF6, #C084FC); }
.grad-green { background: linear-gradient(135deg, #22C55E, #86EFAC); }
.grad-amber { background: linear-gradient(135deg, #F59E0B, #FCD34D); }
.grad-red { background: linear-gradient(135deg, #EF4444, #FCA5A5); }
.grad-pink { background: linear-gradient(135deg, #EC4899, #F9A8D4); }
.grad-blue { background: linear-gradient(135deg, #3B82F6, #93C5FD); }

/* Soft stat icon circles */
.soft-pink   { background: #FDE8E8; color: #E8646A; }
.soft-purple { background: #EDE9FE; color: #7C3AED; }
.soft-teal   { background: #CCFBF1; color: #0F766E; }
.soft-blue   { background: #DBEAFE; color: #1D4ED8; }
.soft-amber  { background: #FEF3C7; color: #D97706; }
.soft-green  { background: #DCFCE7; color: #15803D; }

.stat-card .stat-icon.soft {
    border-radius: 50%;
    width: 64px; height: 64px;
    font-size: 1.6rem;
}

/* Dashboard page header */
.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.dash-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9CA3AF;
    margin-bottom: 4px;
}
.dash-breadcrumb .dash-dot {
    width: 14px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    display: inline-block;
}
.dash-greeting { font-size: 1.7rem; font-weight: 800; color: #1A1A1A; margin: 0; }
.dash-greeting-sub { color: #9CA3AF; font-size: .85rem; margin: 2px 0 0; }

.dash-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-export {
    display: flex; align-items: center; gap: 6px;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    color: #374151;
    border-radius: 12px;
    padding: 9px 16px;
    font-size: .83rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all .18s;
}
.btn-export:hover { border-color: #D1D5DB; background: #F9F9F9; }
.btn-add-student {
    display: flex; align-items: center; gap: 6px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 9px 18px;
    font-size: .83rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    text-decoration: none;
    transition: all .18s;
}
.btn-add-student:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232,100,106,.25); }

/* Dashboard recent payments */
.dash-section-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #F0F0EE;
    overflow: hidden;
}
.dash-section-head {
    padding: 20px 22px 16px;
    border-bottom: 1px solid #F5F5F3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.dash-section-title { font-size: 1rem; font-weight: 700; color: #1A1A1A; margin: 0; }
.dash-section-sub { font-size: .75rem; color: #9CA3AF; margin: 2px 0 0; }
.dash-view-all {
    display: flex; align-items: center; gap: 4px;
    font-size: .78rem;
    font-weight: 600;
    color: #6B7280;
    text-decoration: none;
    transition: color .15s;
    flex-shrink: 0;
}
.dash-view-all:hover { color: var(--primary); }

/* Payment table */
.pay-table { width: 100%; border-collapse: collapse; }
.pay-table th {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9CA3AF;
    padding: 10px 22px;
    border-bottom: 1px solid #F5F5F3;
    text-align: left;
    background: #FAFAFA;
}
.pay-table td { padding: 13px 22px; border-bottom: 1px solid #F5F5F3; vertical-align: middle; }
.pay-table tbody tr:last-child td { border-bottom: none; }
.pay-table tbody tr:hover td { background: #FAFAFA; }

.pay-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: .8rem;
    color: #fff;
    flex-shrink: 0;
}
.pay-student-name { font-size: .85rem; font-weight: 600; color: #1A1A1A; }
.pay-student-id { font-size: .72rem; color: #9CA3AF; }
.pay-amount { font-size: .9rem; font-weight: 700; color: #0F766E; }
.pay-method { font-size: .82rem; color: #6B7280; }
.pay-date { font-size: .82rem; color: #9CA3AF; }

/* Notice board */
.notice-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid #F5F5F3;
    transition: background .15s;
}
.notice-row:last-child { border-bottom: none; }
.notice-row:hover { background: #FAFAFA; }
.notice-icon-wrap {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #FEF2F2;
    display: grid; place-items: center;
    color: var(--primary);
    font-size: .95rem;
    flex-shrink: 0;
}
.notice-title { font-size: .85rem; font-weight: 600; color: #1A1A1A; }
.notice-date { font-size: .72rem; color: #9CA3AF; }
.notice-tag {
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.notice-tag.school  { background: #F5F5F3; color: #6B7280; }
.notice-tag.academic { background: #EDE9FE; color: #7C3AED; }
.notice-tag.event   { background: #DCFCE7; color: #15803D; }
.notice-tag.reminder { background: #FEF3C7; color: #D97706; }

.notice-updates-badge {
    background: var(--primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ============ BUTTONS ============ */
.btn {
    border-radius: 12px;
    font-weight: 600;
    font-size: .85rem;
    padding: 10px 18px;
    transition: all .22s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
    border: none;
}

.btn-gradient:hover {
    color: #fff;
    box-shadow: 0 8px 20px rgba(79,70,229,.35);
    transform: translateY(-1px);
}

.btn-soft-primary { background: #EEF2FF; color: var(--primary); border: none; }
.btn-soft-primary:hover { background: #E0E7FF; color: var(--primary-dark); }
.btn-soft-success { background: #ECFDF5; color: #059669; border: none; }
.btn-soft-success:hover { background: #D1FAE5; }
.btn-soft-danger { background: #FEF2F2; color: #DC2626; border: none; }
.btn-soft-danger:hover { background: #FEE2E2; }
.btn-soft-warning { background: #FFFBEB; color: #D97706; border: none; }
.btn-soft-warning:hover { background: #FEF3C7; }

.btn .btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    transform: scale(0);
    animation: ripple .6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

.btn-icon {
    width: 38px; height: 38px;
    padding: 0;
    display: inline-grid; place-items: center;
    border-radius: 10px;
    font-size: .95rem;
}

/* action buttons in tables */
.btn-action { width: 32px; height: 32px; padding: 0; font-size: .85rem; border-radius: 9px; display: inline-grid; place-items: center; margin: 2px; border: none; transition: all .2s; }
.btn-action:hover { transform: translateY(-2px); }

/* ============ TABLES ============ */
.table-card .table-responsive { max-height: 560px; }

.data-table {
    width: 100%;
    font-size: .85rem;
}

.data-table thead th {
    background: var(--bg);
    color: var(--text-muted);
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 12px 14px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 5;
}

.data-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #F9FAFB; }

.student-cell { display: flex; align-items: center; gap: 10px; }
.student-cell .student-avatar {
    width: 38px; height: 38px;
    border-radius: 12px;
    object-fit: cover;
    background: #EEF2FF;
    color: var(--primary);
    display: grid; place-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============ BADGES ============ */
.badge { font-weight: 600; padding: 5px 10px; border-radius: 8px; font-size: .72rem; }
.badge-soft-success { background: #ECFDF5; color: #059669; }
.badge-soft-danger { background: #FEF2F2; color: #DC2626; }
.badge-soft-warning { background: #FFFBEB; color: #D97706; }
.badge-soft-primary { background: #EEF2FF; color: var(--primary); }
.badge-soft-purple { background: #F5F3FF; color: #7C3AED; }
.badge-soft-cyan { background: #ECFEFF; color: #0891B2; }
.badge-soft-gray { background: #F3F4F6; color: #4B5563; }

/* ============ FORMS ============ */
.form-control, .form-select {
    border-radius: 12px;
    border: 1.5px solid var(--border);
    padding: 10px 14px;
    font-size: .875rem;
    font-family: var(--font);
    font-weight: 500;
    transition: all .2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}

.form-label { font-weight: 600; font-size: .78rem; color: var(--text); margin-bottom: 6px; }

.form-floating > .form-control, .form-floating > .form-select {
    border-radius: 12px;
    height: calc(3.2rem + 2px);
}

.form-floating > label { font-weight: 500; font-size: .8rem; color: var(--text-muted); }

.input-group-text {
    border-radius: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}

/* ============ AUTH / LOGIN ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
}

/* ---- Left brand panel ---- */
.auth-left {
    flex: 2;
    background: #2D2D2D;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 36px 44px 32px;
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.auth-blob.b1 { width: 380px; height: 380px; background: #4A2828; top: -120px; right: -100px; opacity: .8; }
.auth-blob.b2 { width: 280px; height: 280px; background: #3D2020; bottom: -80px; left: -60px; opacity: .8; }
.auth-blob.b3 { width: 160px; height: 160px; background: #3D2424; bottom: 12%; right: 10%; opacity: .4; }

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: auto;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
}

.auth-brand-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .65rem;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.45);
}
.auth-brand-tag .dash {
    display: inline-block;
    width: 18px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.auth-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: .68rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
}
.auth-status-pill .status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 2px rgba(34,197,94,.25);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 48px 0 16px;
    position: relative;
    z-index: 2;
}
.auth-logo img { width: 38px; height: 38px; }
.auth-logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.3px;
}
.auth-logo-tld { font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.5); }

.auth-welcome-label {
    font-size: .6rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.auth-headline {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.auth-subline {
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 380px;
    position: relative;
    z-index: 2;
}

.auth-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 13px 14px;
}

.auth-feature .af-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: rgba(255,255,255,.1);
    display: grid; place-items: center;
    font-size: .95rem;
    color: rgba(255,255,255,.8);
    flex-shrink: 0;
}

.auth-feature strong {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.auth-feature small {
    font-size: .67rem;
    color: rgba(255,255,255,.45);
    line-height: 1.4;
}

.auth-secure-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 12px 16px;
    position: relative;
    z-index: 2;
}

.auth-secure-badge .sb-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(232,100,106,.2);
    display: grid; place-items: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-secure-badge strong { display: block; font-size: .8rem; color: #fff; }
.auth-secure-badge small { font-size: .68rem; color: rgba(255,255,255,.4); }

/* ---- Right login panel ---- */
.auth-right {
    flex: 3;
    background: #F5F5F3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-right-blob {
    position: absolute;
    top: -120px; right: -120px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: #F4C5C5;
    opacity: .25;
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 24px;
    padding: 40px 40px 32px;
    box-shadow: 0 4px 32px rgba(0,0,0,.07);
    position: relative;
    z-index: 1;
}

.auth-card-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.auth-card-sub {
    font-size: .85rem;
    color: #9CA3AF;
    margin-bottom: 0;
}

/* Custom inputs */
.auth-field {
    display: flex;
    align-items: center;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 12px 14px;
    gap: 12px;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}

.auth-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232,100,106,.08);
}

.auth-field-icon { color: #9CA3AF; font-size: 1rem; flex-shrink: 0; }

.auth-field-body { flex: 1; min-width: 0; }
.auth-field-body label {
    display: block;
    font-size: .65rem;
    font-weight: 600;
    color: #9CA3AF;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.auth-field-body input {
    border: none;
    outline: none;
    font-size: .9rem;
    font-weight: 500;
    color: #1A1A1A;
    background: transparent;
    width: 100%;
    font-family: var(--font);
    padding: 0;
}
.auth-field-body input::placeholder { color: #D1D5DB; }

.auth-eye-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    display: grid; place-items: center;
    transition: color .15s;
}
.auth-eye-btn:hover { color: #374151; }

/* Checkbox */
.auth-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.auth-check-label input[type="checkbox"] {
    display: none;
}

.auth-checkmark {
    width: 18px; height: 18px;
    border-radius: 6px;
    border: 2px solid #D1D5DB;
    display: grid; place-items: center;
    transition: all .15s;
    flex-shrink: 0;
}

.auth-check-label input:checked + .auth-checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.auth-check-label input:checked + .auth-checkmark::after {
    content: '\F270';
    font-family: 'bootstrap-icons';
    color: #fff;
    font-size: .65rem;
    font-weight: 900;
}

.auth-forgot {
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; }

/* Submit button */
.auth-submit-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 24px;
    font-size: .95rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232,100,106,.3);
}
.auth-submit-btn:disabled {
    opacity: .75;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 4px 0 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: #E5E7EB;
}
.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: .73rem;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Alert */
.auth-alert {
    background: #FEF2F2;
    color: #DC2626;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .83rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

/* Footer */
.auth-footer-text {
    text-align: center;
    font-size: .72rem;
    color: #9CA3AF;
}
.auth-support-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-support-link:hover { text-decoration: underline; }

.auth-login-box { width: 100%; }

@media (max-width: 1024px) {
    .auth-left { display: none; }
    .auth-right { flex: 1; }
}

/* ---- Demo login buttons ---- */
.demo-login-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.demo-login-btn {
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    padding: 12px 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all .18s ease;
}

.demo-login-btn .dlb-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #F5F5F3;
    display: grid; place-items: center;
    font-size: 1.05rem;
    color: #6B7280;
    transition: all .18s;
}

.demo-login-btn .dlb-label {
    font-size: .6rem;
    font-weight: 600;
    color: #4B5563;
    line-height: 1.2;
    text-align: center;
}

.demo-login-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232,100,106,.1);
}

.demo-login-btn:hover .dlb-icon {
    background: rgba(232,100,106,.1);
    color: var(--primary);
}

.demo-login-btn.active {
    border-color: var(--primary);
    background: rgba(232,100,106,.04);
}

.demo-login-btn.active .dlb-icon {
    background: rgba(232,100,106,.12);
    color: var(--primary);
}

.demo-login-btn.active .dlb-label { color: var(--primary); }

/* ============ WELCOME CARD ============ */
.welcome-card {
    border-radius: var(--radius);
    background: linear-gradient(120deg, #4F46E5 0%, #8B5CF6 100%);
    color: #fff;
    padding: 26px 28px;
    position: relative;
    overflow: hidden;
}

.welcome-card::after {
    content: '\f14a';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 24px; bottom: -30px;
    font-size: 10rem;
    opacity: .12;
}

.welcome-card h3 { font-weight: 700; margin-bottom: 4px; }
.welcome-card p { color: rgba(255,255,255,.85); margin: 0; }

.quick-action-btn {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}

.quick-action-btn:hover { background: rgba(255,255,255,.25); color: #fff; transform: translateY(-2px); }

/* ============ CHARTS ============ */
.chart-box { height: 300px; position: relative; }
.chart-box-sm { height: 240px; }

/* ============ ACTIVITY TIMELINE ============ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 9px; top: 4px; bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-light), var(--purple));
    opacity: .3;
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(79,70,229,.15);
}
.timeline-item.success::before { border-color: var(--success); box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.timeline-item.warning::before { border-color: var(--warning); box-shadow: 0 0 0 4px rgba(245,158,11,.15); }
.timeline-item.purple::before { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }

.timeline-item h6 { font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.timeline-item p { font-size: .75rem; color: var(--text-muted); margin: 0; }
.timeline-item small { font-size: .68rem; color: var(--text-muted); }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}
.empty-state .empty-icon {
    width: 88px; height: 88px;
    border-radius: 28px;
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    display: grid; place-items: center;
    margin: 0 auto 18px;
    font-size: 2.4rem;
    color: var(--primary);
}
.empty-state h5 { font-weight: 700; }
.empty-state p { color: var(--text-muted); font-size: .85rem; max-width: 340px; margin: 0 auto; }

/* ============ SKELETON ============ */
.skeleton {
    background: linear-gradient(90deg, #EEF2FF 25%, #F8FAFC 50%, #EEF2FF 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 10px;
}
@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* ============ ANIMATIONS ============ */
.fade-in { animation: fadeIn .5s ease; }
.slide-up { animation: slideUp .5s ease; }
.scale-in { animation: scaleIn .35s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

.stagger > * { opacity: 0; animation: slideUp .5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .1s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .2s; }
.stagger > *:nth-child(5) { animation-delay: .25s; }
.stagger > *:nth-child(6) { animation-delay: .3s; }

/* ============ PAGINATION ============ */
.pagination .page-link {
    border: none;
    color: var(--text);
    font-weight: 600;
    border-radius: 10px !important;
    margin: 0 3px;
    padding: 8px 14px;
    font-size: .8rem;
}
.pagination .page-item.active .page-link { background: linear-gradient(135deg, var(--primary), var(--purple)); color: #fff; }

/* ============ MODAL ============ */
.modal-content { border: none; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 18px 22px; }
.modal-footer { border-top: 1px solid var(--border); padding: 14px 22px; }

/* ============ MISC ============ */
.page-title { font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--text); margin: 0; }
.page-subtitle { color: var(--text-muted); font-size: 13px; margin: 4px 0 0; }

.breadcrumb { margin: 0; font-size: .78rem; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--primary); font-weight: 600; }

.section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }

.divider-gradient { height: 3px; border: 0; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--purple), var(--secondary)); opacity: .4; }

.filter-bar {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

@media (max-width: 576px) {
    .stat-card .stat-value { font-size: 26px; }
    .content-wrap { padding: 12px; }
    .topbar { padding: 0 12px; }
}

.book-cover {
    width: 56px;
    height: 72px;
    border-radius: 8px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    overflow: hidden;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

.notice-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F3E8FF, #E9D5FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 20px;
}

.download-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.report-card { transition: transform .2s ease, box-shadow .2s ease; cursor: pointer; border: 1px solid var(--border) !important; }
.report-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(79,70,229,.08); text-decoration: none; }
.report-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}

.demo-login-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-login-btn {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    color: var(--dc);
}
.demo-login-btn i { font-size: 1.15rem; background: var(--dbg); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.demo-login-btn span { font-size: .62rem; font-weight: 600; color: #334155; line-height: 1.1; }
.demo-login-btn:hover {
    transform: translateY(-2px);
    border-color: var(--dc);
    box-shadow: 0 6px 14px rgba(79,70,229,.12);
}
.demo-login-btn:active { transform: translateY(0); }
.form-control.demo-filled { border-color: var(--dc, #4F46E5) !important; box-shadow: 0 0 0 3px rgba(79,70,229,.12) !important; }
@media (max-width: 460px) { .demo-login-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============ STAT SUB TEXT ============ */
.stat-card .stat-sub { font-size: .7rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }

/* ============ APP FOOTER ============ */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: .72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--card);
}

/* ============ SIDEBAR CHEVRON ============ */
.school-chevron { margin-left: auto; font-size: .7rem; opacity: .5; }
.sidebar-help {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    border-top: 1px solid rgba(255,255,255,.07);
    transition: color .2s ease;
    text-decoration: none;
    margin-top: auto;
}
.sidebar-help:hover { color: rgba(255,255,255,.75); }

/* ============ TOPBAR SEARCH KBD ============ */
.kbd-hint { display: flex; gap: 3px; align-items: center; margin-left: 4px; }
.kbd-hint kbd {
    background: rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 5px;
    padding: 1px 5px;
    font-size: .68rem;
    font-family: inherit;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =====================================================================
   DESIGN SYSTEM — components from the Figma "School Admin" mockups.
   Reused by every redesigned page (prefix ds-).
   ===================================================================== */
.ds-stack { display:flex; flex-direction:column; gap:20px; }
.ds-card { background:#fff; border:1px solid var(--border); border-radius:16px; }
.ds-muted { color:var(--text-muted); }

/* KPI cards */
.ds-kpis { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:20px; }
.ds-kpi { padding:20px; display:flex; flex-direction:column; gap:16px; box-shadow:0 4px 6px rgba(0,0,0,.02); }
.ds-kpi-head { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; font-weight:600; color:var(--text-muted); }
.ds-kpi-icon { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; color:var(--primary); font-size:18px; flex-shrink:0; background:#F5E6E8; }
.ds-kpi-value { font-size:28px; font-weight:700; color:var(--text); line-height:1.2; }
.ds-kpi-sub { margin-top:4px; font-size:12px; color:var(--text-muted); }
.ds-kpi-trend { display:flex; align-items:center; gap:6px; font-size:12px; }
.ds-kpi-trend strong { font-weight:600; }
.ds-up { color:#2ECC71; } .ds-down { color:#E74C3C; }

/* Sections */
.ds-section { padding:24px; display:flex; flex-direction:column; gap:16px; min-width:0; }
.ds-section h2, .ds-section-title { font-size:16px; font-weight:700; color:var(--text); margin:0; }
.ds-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ds-section-sub { margin:4px 0 0; font-size:12px; color:var(--text-muted); }
.ds-link { font-size:12px; font-weight:600; color:var(--primary); }
.ds-link:hover { color:var(--primary-dark); text-decoration:underline; }
.ds-empty { display:flex; flex-direction:column; align-items:center; gap:8px; padding:32px 12px; color:var(--text-muted); font-size:13px; text-align:center; }
.ds-empty i { font-size:26px; opacity:.6; }
.ds-split { display:grid; grid-template-columns:minmax(0,1fr) 420px; gap:20px; align-items:start; }

/* Tags / status pills */
.ds-tag { display:inline-block; padding:4px 8px; border-radius:6px; font-size:11px; font-weight:600; line-height:1.2; white-space:nowrap; }
.ds-tag-success { background:#EAF9EE; color:#27AE60; }
.ds-tag-warning { background:#FEF9E7; color:#D4AC0D; }
.ds-tag-danger  { background:#FDECEE; color:#E74C3C; }
.ds-tag-info    { background:#EBF5FB; color:#3498DB; }
.ds-tag-primary { background:#FDECEE; color:var(--primary); }
.ds-tag-neutral { background:#F4F6F7; color:var(--text-muted); }

/* Buttons */
.ds-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:40px; padding:0 16px; border-radius:8px; border:1px solid transparent;
    font-size:14px; font-weight:600; line-height:1; white-space:nowrap; cursor:pointer; transition:background .15s, border-color .15s, color .15s; }
.ds-btn-primary { background:var(--primary); color:#fff; }
.ds-btn-primary:hover { background:var(--primary-dark); color:#fff; }
.ds-btn-light { background:#fff; border-color:var(--border); color:var(--text); }
.ds-btn-light:hover { border-color:var(--text); color:var(--text); }
.ds-btn-outline { background:#fff; border:1.5px solid var(--primary); color:var(--primary); border-radius:10px; }
.ds-btn-outline:hover { background:var(--primary); color:#fff; }

/* Filter bar: "Label: Value" selects + search */
.ds-filters { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ds-filter-group { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.ds-select { position:relative; display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 34px 0 12px; background:#fff; border:1px solid var(--border); border-radius:8px; }
.ds-select:hover { border-color:#D6D1C9; }
.ds-select:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(232,100,106,.15); }
.ds-select > span { font-size:12px; color:var(--text-muted); white-space:nowrap; }
.ds-select select { appearance:none; border:0; background:transparent; font:inherit; font-size:13px; font-weight:600; color:var(--text); padding:0; cursor:pointer; outline:none; max-width:160px; }
.ds-select::after { content:""; position:absolute; right:13px; top:50%; width:7px; height:7px; margin-top:-5px; border-right:1.5px solid var(--text); border-bottom:1.5px solid var(--text); transform:rotate(45deg); pointer-events:none; }
.ds-search { position:relative; width:280px; max-width:100%; }
.ds-search i { position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:13px; color:var(--text-muted); }
.ds-search input { width:100%; height:34px; padding:0 12px 0 32px; background:var(--bg); border:1px solid var(--border); border-radius:8px; font-size:12px; color:var(--text); }
.ds-search input:focus { outline:none; border-color:var(--primary); background:#fff; box-shadow:0 0 0 3px rgba(232,100,106,.15); }

/* Tables */
.ds-table-wrap { border:1px solid var(--border); border-radius:8px; overflow-x:auto; }
.ds-table { width:100%; border-collapse:collapse; font-size:13px; }
.ds-table thead th { background:#F4F6F7; padding:12px; font-size:12px; font-weight:700; color:var(--text); text-align:left; white-space:nowrap; border-bottom:1px solid var(--border); }
.ds-table tbody td { padding:10px 12px; color:var(--text-muted); vertical-align:middle; border-bottom:1px solid var(--border); }
.ds-table tbody tr:nth-child(even) td { background:var(--bg); }
.ds-table tbody tr:last-child td { border-bottom:0; }
.ds-table tbody tr:hover td { background:#FDF6F6; }
.ds-table .ds-strong { font-weight:600; color:var(--text); }
.ds-person { display:flex; align-items:center; gap:10px; min-width:0; }
.ds-person a, .ds-person strong { font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ds-person a:hover { color:var(--primary); }
.ds-avatar { width:28px; height:28px; border-radius:50%; object-fit:cover; flex-shrink:0; background:#F5E6E8; color:var(--primary); display:grid; place-items:center; font-size:11px; font-weight:700; }
.ds-progress { display:flex; align-items:center; gap:8px; min-width:110px; }
.ds-progress-track { flex:1; height:6px; border-radius:3px; background:#F4F6F7; overflow:hidden; }
.ds-progress-track > span { display:block; height:100%; border-radius:3px; }
.ds-progress strong { width:36px; font-size:12px; font-weight:600; color:var(--text); }
.ds-row-actions { display:flex; align-items:center; justify-content:center; gap:4px; }
.ds-icon-btn { width:28px; height:28px; border:0; border-radius:6px; background:transparent; color:var(--text); display:inline-grid; place-items:center; font-size:14px; }
.ds-icon-btn:hover { background:#F5E6E8; color:var(--primary); }

/* Pagination */
.ds-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-top:4px; }
.ds-pager-info { font-size:13px; color:var(--text-muted); }
.ds-pager-links { display:flex; gap:8px; flex-wrap:wrap; }
.ds-pager-links a, .ds-pager-links span { min-width:30px; height:30px; padding:0 10px; display:inline-grid; place-items:center; border:1px solid var(--border); border-radius:6px; font-size:12px; font-weight:600; color:var(--text); background:#fff; }
.ds-pager-links .nav { color:var(--text-muted); }
.ds-pager-links a:hover { border-color:var(--primary); color:var(--primary); }
.ds-pager-links .current { background:var(--primary); border-color:var(--primary); color:#fff; }
.ds-pager-links .disabled { opacity:.5; }

/* Horizontal bars (distribution charts) */
.ds-bars { display:flex; flex-direction:column; gap:12px; }
.ds-bar-row { display:grid; grid-template-columns:72px minmax(0,1fr) 40px; align-items:center; gap:12px; font-size:13px; color:var(--text); }
.ds-bar-row a { color:var(--text); font-weight:500; }
.ds-bar-row a:hover { color:var(--primary); }
.ds-bar-track { height:8px; border-radius:4px; background:#F4F6F7; overflow:hidden; }
.ds-bar-track > span { display:block; height:100%; border-radius:4px; }
.ds-bar-row strong { text-align:right; font-weight:600; }

@media (max-width: 1399.98px) { .ds-split { grid-template-columns:minmax(0,1fr) 360px; } }
@media (max-width: 1199.98px) {
    .ds-kpis { grid-template-columns:repeat(2, minmax(0,1fr)); }
    .ds-split { grid-template-columns:1fr; }
}
@media (max-width: 575.98px) {
    .ds-kpis { grid-template-columns:1fr; }
    .ds-search { width:100%; }
}
