    /* ================================================================
       SCHOOL ADMIN — M3 ENTERPRISE DESIGN SYSTEM
       Material Design 3 inspired — "Shining White" Theme
       ================================================================ */

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

    /* ── Design Tokens ────────────────────────────────────────────── */
    :root {
        /* Brand */
        --m3-primary: #1e3a5f;
        /* Deep navy / enterprise blue  */
        --m3-primary-10: #0c1f38;
        --m3-primary-30: #2d5a8c;
        --m3-primary-50: #4a7cb8;
        --m3-primary-90: #d6e4f3;
        --m3-primary-95: #ebf2fa;
        --m3-accent: #0ea5e9;
        /* Sky accent                   */
        --m3-accent-hover: #0284c7;

        /* Surface System (white-first) */
        --m3-surface: #ffffff;
        --m3-surface-1: #f8fafc;
        /* Very slight blue-grey tint   */
        --m3-surface-2: #f1f5f9;
        --m3-surface-3: #e2e8f0;
        --m3-background: #f0f4f8;
        /* Page background               */

        /* Typography */
        --m3-on-surface: #1e293b;
        /* Charcoal — primary text       */
        --m3-on-surface-med: #475569;
        /* Slate 600 — secondary text    */
        --m3-on-surface-low: #94a3b8;
        /* Slate 400 — disabled / muted  */
        --m3-on-primary: #ffffff;

        /* Sidebar */
        --m3-sidebar-w: 265px;
        --m3-sidebar-collapsed-w: 0px;
        --m3-sidebar-bg: #ffffff;
        --m3-sidebar-border: rgba(30, 58, 95, 0.08);

        /* Topbar */
        --m3-topbar-h: 64px;
        --m3-topbar-bg: #ffffff;

        /* Elevation shadows (M3 tonal elevation) */
        --m3-shadow-1: 0 1px 3px 0 rgba(30, 58, 95, 0.06), 0 1px 2px -1px rgba(30, 58, 95, 0.06);
        --m3-shadow-2: 0 4px 12px -1px rgba(30, 58, 95, 0.08), 0 2px 6px -2px rgba(30, 58, 95, 0.06);
        --m3-shadow-3: 0 10px 28px -4px rgba(30, 58, 95, 0.10), 0 4px 12px -4px rgba(30, 58, 95, 0.08);
        --m3-shadow-4: 0 20px 48px -8px rgba(30, 58, 95, 0.14), 0 8px 20px -8px rgba(30, 58, 95, 0.10);

        /* Radius tokens (M3 extra-large = 28px) */
        --m3-radius-xs: 6px;
        --m3-radius-sm: 10px;
        --m3-radius-md: 14px;
        --m3-radius-lg: 20px;
        --m3-radius-xl: 28px;
        --m3-radius-full: 9999px;

        /* Status semantic */
        --m3-success: #16a34a;
        --m3-danger: #dc2626;
        --m3-warning: #d97706;
        --m3-info: #0ea5e9;

        /* Legacy aliases — keeps existing child-view selectors working */
        --primary: var(--m3-primary);
        --primary-light: var(--m3-primary-30);
        --secondary: var(--m3-accent);
        --background: var(--m3-background);
        --card-bg: var(--m3-surface);
        --text: var(--m3-on-surface);
        --text-muted: var(--m3-on-surface-low);
        --border: var(--m3-sidebar-border);
        --font-main: 'Inter', sans-serif;
        --radius-sm: var(--m3-radius-xs);
        --radius-md: var(--m3-radius-sm);
        --radius-lg: var(--m3-radius-md);
        --shadow-sm: var(--m3-shadow-1);
        --shadow-md: var(--m3-shadow-2);
        --shadow-lg: var(--m3-shadow-3);
    }

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

    html {
        scroll-behavior: smooth;
    }

    body {
        background: var(--m3-background);
        color: var(--m3-on-surface);
        font-family: var(--font-main);
        font-size: 0.9rem;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
    }

    /* ── Custom scrollbar ─────────────────────────────────────────── */
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--m3-surface-3);
        border-radius: var(--m3-radius-full);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--m3-on-surface-low);
    }


    /* ================================================================
       APP SHELL — two-column layout
       [sidebar | page-wrapper]
       ================================================================ */
    .m3-app-shell {
        display: flex;
        min-height: 100vh;
    }

    /* ================================================================
       M3 SIDEBAR — Floating, White, XL Radius
       ================================================================ */
    .m3-sidebar {
        position: fixed;
        top: 12px;
        left: 12px;
        bottom: 12px;
        width: var(--m3-sidebar-w);
        background: var(--m3-sidebar-bg);
        border-radius: var(--m3-radius-xl);
        box-shadow: var(--m3-shadow-3);
        display: flex;
        flex-direction: column;
        z-index: 1040;
        overflow: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ── Brand header ─────────────────────────────────────────────── */
    .m3-sidebar-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 18px 16px;
        flex-shrink: 0;
        border-bottom: 1px solid var(--m3-surface-2);
    }

    .m3-brand-link {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        flex: 1;
        min-width: 0;
    }

    .m3-brand-icon {
        width: 38px;
        height: 38px;
        border-radius: var(--m3-radius-sm);
        overflow: hidden;
        flex-shrink: 0;
        background: var(--m3-primary-95);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .m3-brand-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .m3-brand-text {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .m3-brand-name {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--m3-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: -0.2px;
    }

    .m3-brand-sub {
        font-size: 0.68rem;
        color: var(--m3-on-surface-low);
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .m3-sidebar-close-btn {
        display: none;
        width: 32px;
        height: 32px;
        border: none;
        background: var(--m3-surface-2);
        border-radius: var(--m3-radius-full);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        color: var(--m3-on-surface-med);
        transition: background 0.15s;
        flex-shrink: 0;
    }

    .m3-sidebar-close-btn:hover {
        background: var(--m3-surface-3);
    }

    .m3-sidebar-close-btn svg {
        width: 16px;
        height: 16px;
    }

    /* ── Scrollable nav body ──────────────────────────────────────── */
    .m3-sidebar-nav {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 10px 10px 6px;
        scrollbar-width: thin;
        scrollbar-color: var(--m3-surface-3) transparent;
    }

    /* ── Nav sections ─────────────────────────────────────────────── */
    .m3-nav-section {
        margin-bottom: 4px;
    }

    .m3-nav-label {
        display: block;
        font-size: 0.625rem;
        font-weight: 700;
        letter-spacing: 1.1px;
        text-transform: uppercase;
        color: var(--m3-on-surface-low);
        padding: 14px 10px 5px;
    }

    .m3-nav-list {
        list-style: none;
    }

    /* ── Nav links ────────────────────────────────────────────────── */
    .m3-nav-link {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 9px 12px;
        border: none;
        background: transparent;
        border-radius: var(--m3-radius-sm);
        color: var(--m3-on-surface-med);
        font-family: var(--font-main);
        font-size: 0.865rem;
        font-weight: 500;
        cursor: pointer;
        text-decoration: none;
        text-align: left;
        transition: background 0.15s, color 0.15s;
        line-height: 1.4;
    }

    .m3-nav-link:hover {
        background: var(--m3-primary-95);
        color: var(--m3-primary);
    }

    .m3-nav-link.m3-active {
        background: var(--m3-primary-90);
        color: var(--m3-primary);
        font-weight: 700;
    }

    .m3-nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        flex-shrink: 0;
        font-size: 1.1rem;
    }

    .m3-nav-icon svg {
        width: 17px;
        height: 17px;
    }

    .m3-nav-icon .mdi {
        font-size: 1.1rem;
        line-height: 1;
    }

    .m3-nav-text {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .m3-nav-chevron {
        display: flex;
        align-items: center;
        margin-left: auto;
        flex-shrink: 0;
        transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .m3-nav-chevron svg {
        width: 14px;
        height: 14px;
    }

    .m3-nav-item-collapsible.m3-open>.m3-collapse-trigger .m3-nav-chevron {
        transform: rotate(180deg);
    }

    /* ── Sub-navigation ───────────────────────────────────────────── */
    .m3-sub-nav {
        list-style: none;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        padding-left: 32px;
    }

    .m3-sub-nav.m3-sub-open {
        max-height: 600px;
    }

    .m3-sub-link {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 6px 10px;
        border-radius: var(--m3-radius-xs);
        color: var(--m3-on-surface-med);
        font-size: 0.825rem;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.13s, color 0.13s;
    }

    .m3-sub-link:hover {
        background: var(--m3-primary-95);
        color: var(--m3-primary);
    }

    .m3-sub-link.m3-active {
        color: var(--m3-primary);
        font-weight: 700;
    }

    .m3-sub-link .mdi {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    /* ── User footer chip ─────────────────────────────────────────── */
    .m3-sidebar-footer {
        flex-shrink: 0;
        padding: 12px 14px;
        border-top: 1px solid var(--m3-surface-2);
    }

    .m3-user-chip {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-radius: var(--m3-radius-sm);
        background: var(--m3-surface-1);
    }

    .m3-user-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .m3-user-name {
        font-size: 0.825rem;
        font-weight: 700;
        color: var(--m3-on-surface);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .m3-user-role {
        font-size: 0.7rem;
        color: var(--m3-on-surface-low);
        text-transform: capitalize;
    }

    /* ── Backdrop (mobile) ────────────────────────────────────────── */
    .m3-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
        z-index: 1039;
        opacity: 0;
        transition: opacity 0.25s;
    }

    .m3-sidebar-backdrop.m3-visible {
        display: block;
        opacity: 1;
    }


    /* ================================================================
       M3 TOP APP BAR
       ================================================================ */
    .m3-topbar {
        position: sticky;
        top: 0;
        z-index: 100;
        height: var(--m3-topbar-h);
        background: var(--m3-topbar-bg);
        border-radius: 0 0 var(--m3-radius-lg) var(--m3-radius-lg);
        box-shadow: var(--m3-shadow-1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        gap: 16px;
        flex-shrink: 0;
    }

    .m3-topbar-left,
    .m3-topbar-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Hamburger toggle */
    .m3-topbar-menu-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        border-radius: var(--m3-radius-full);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--m3-on-surface-med);
        transition: background 0.15s, color 0.15s;
        flex-shrink: 0;
    }

    .m3-topbar-menu-btn:hover {
        background: var(--m3-surface-2);
        color: var(--m3-primary);
    }

    .m3-topbar-menu-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Breadcrumb area */
    .m3-topbar-breadcrumb {
        font-size: 0.875rem;
        color: var(--m3-on-surface-med);
        font-weight: 500;
    }

    .m3-breadcrumb-page {
        color: var(--m3-on-surface);
        font-weight: 700;
    }

    /* Icon buttons in topbar */
    .m3-topbar-icon-btn {
        position: relative;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        border-radius: var(--m3-radius-full);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--m3-on-surface-med);
        transition: background 0.15s;
    }

    .m3-topbar-icon-btn:hover {
        background: var(--m3-surface-2);
    }

    .m3-topbar-icon-btn svg {
        width: 20px;
        height: 20px;
    }

    .m3-notif-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 8px;
        height: 8px;
        background: var(--m3-danger);
        border: 2px solid #fff;
        border-radius: 50%;
    }

    /* ── Profile dropdown ─────────────────────────────────────────── */
    .m3-profile-dropdown {
        position: relative;
    }

    .m3-profile-trigger {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 10px 5px 5px;
        border: 1.5px solid var(--m3-surface-3);
        border-radius: var(--m3-radius-full);
        background: var(--m3-surface-1);
        cursor: pointer;
        transition: border-color 0.15s, box-shadow 0.15s;
    }

    .m3-profile-trigger:hover {
        border-color: var(--m3-primary-50);
        box-shadow: var(--m3-shadow-1);
    }

    .m3-profile-name {
        font-size: 0.825rem;
        font-weight: 600;
        color: var(--m3-on-surface);
    }

    .m3-profile-caret {
        width: 14px;
        height: 14px;
        color: var(--m3-on-surface-low);
        transition: transform 0.2s;
    }

    .m3-profile-dropdown.m3-open .m3-profile-caret {
        transform: rotate(180deg);
    }

    /* dropdown panel */
    .m3-profile-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 240px;
        background: var(--m3-surface);
        border-radius: var(--m3-radius-lg);
        box-shadow: var(--m3-shadow-4);
        border: 1px solid var(--m3-surface-3);
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
        pointer-events: none;
        transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 200;
    }

    .m3-profile-dropdown.m3-open .m3-profile-menu {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .m3-profile-menu-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: linear-gradient(135deg, var(--m3-primary), var(--m3-primary-30));
    }

    .m3-profile-menu-info {
        min-width: 0;
    }

    .m3-pmenu-name {
        font-size: 0.875rem;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .m3-pmenu-email {
        font-size: 0.72rem;
        color: rgba(255, 255, 255, 0.72);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .m3-profile-menu-divider {
        height: 1px;
        background: var(--m3-surface-2);
        margin: 0;
    }

    .m3-profile-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 16px;
        font-size: 0.86rem;
        font-weight: 500;
        color: var(--m3-on-surface);
        text-decoration: none;
        cursor: pointer;
        transition: background 0.12s;
    }

    .m3-profile-menu-item:hover {
        background: var(--m3-surface-1);
        color: var(--m3-primary);
    }

    .m3-profile-menu-item svg {
        width: 16px;
        height: 16px;
        color: var(--m3-on-surface-med);
    }

    .m3-pmenu-logout:hover {
        background: #fef2f2;
        color: var(--m3-danger);
    }

    .m3-pmenu-logout svg {
        color: var(--m3-danger);
    }

    /* ================================================================
       PAGE WRAPPER — right of sidebar
       ================================================================ */
    .m3-page-wrapper {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        margin-left: calc(var(--m3-sidebar-w) + 24px);
        /* sidebar + gutter */
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ── Page content area ────────────────────────────────────────── */
    .m3-page-content {
        flex: 1;
        padding: 20px 20px 28px;
        min-height: calc(100vh - var(--m3-topbar-h));
    }

    .m3-page-content>* {
        animation: m3FadeUp 0.28s ease both;
    }

    @keyframes m3FadeUp {
        from {
            opacity: 0;
            transform: translateY(14px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Keep legacy .page-content selector working */
    .page-content {
        flex: 1;
        padding: 20px 20px 28px;
        min-height: calc(100vh - var(--m3-topbar-h));
        background: var(--m3-background);
    }

    .page-content>* {
        animation: m3FadeUp 0.28s ease both;
    }


    /* ================================================================
       M3 ELEVATED CARDS
       ================================================================ */

    /* Structural rules apply to ALL cards (safe to !important) */
    .card {
        border-radius: var(--m3-radius-lg) !important;
        box-shadow: var(--m3-shadow-1) !important;
        margin-bottom: 1.5rem;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s;
    }

    /* White surface + border ONLY for neutral (non-gradient) cards.
       :not() chain excludes every gradient class AND inline-style gradient cards. */
    .card:not(.grad-blue):not(.grad-gold):not(.grad-red):not(.grad-teal):not(.grad-purple):not(.grad-green):not([style*="gradient"]) {
        background: var(--m3-surface) !important;
        border: 1px solid var(--m3-surface-3) !important;
    }

    /* Hover lift for ALL cards */
    .card:hover {
        box-shadow: var(--m3-shadow-2) !important;
    }

    .card-header {
        background: var(--m3-surface) !important;
        border-bottom: 1px solid var(--m3-surface-2) !important;
        border-radius: var(--m3-radius-lg) var(--m3-radius-lg) 0 0 !important;
        padding: 16px 20px !important;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .card-header .card-title {
        margin: 0 !important;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--m3-on-surface);
        letter-spacing: -0.2px;
    }

    .card-body {
        padding: 20px !important;
    }

    /* Card top accent strips */
    .card-accent-primary {
        border-top: 3px solid var(--m3-primary) !important;
    }

    .card-accent-blue {
        border-top: 3px solid var(--m3-accent) !important;
    }

    /* ── Gradient / coloured stat cards ─────────────────────────────────
       Since the :not() on .card above excludes these, we just need to
       declare their gradient backgrounds and text color normally.
       No !important battles needed — the base rule never touches them.
    ──────────────────────────────────────────────────────────────────── */
    .card.grad-blue,
    .card.grad-gold,
    .card.grad-red,
    .card.grad-teal,
    .card.grad-purple,
    .card.grad-green {
        border: none !important;
        color: #fff !important;
    }

    .card.grad-blue {
        background: linear-gradient(135deg, #010756, #1a35d8);
    }

    .card.grad-gold {
        background: linear-gradient(135deg, #c07800, #F7BC31);
    }

    .card.grad-red {
        background: linear-gradient(135deg, #b91c1c, #ef4444);
    }

    .card.grad-teal {
        background: linear-gradient(135deg, #0369a1, #0ea5e9);
    }

    .card.grad-purple {
        background: linear-gradient(135deg, #6d28d9, #a78bfa);
    }

    .card.grad-green {
        background: linear-gradient(135deg, #15803d, #22c55e);
    }

    /* Inline-style gradient cards (no class) — just remove the border so
       the card shell doesn't add a white border on a coloured card */
    .card[style*="gradient"] {
        border: none !important;
    }

    /* White text cascades into children of gradient cards */
    .card.grad-blue *,
    .card.grad-gold *,
    .card.grad-red *,
    .card.grad-teal *,
    .card.grad-purple *,
    .card.grad-green * {
        color: inherit;
    }

    /* Semi-transparent icon background inside stat cards */
    .icon-bg-white {
        background: rgba(255, 255, 255, 0.2) !important;
    }

    /* Clear backgrounds for inner components of gradient cards */
    .card[class*="grad-"] .card-body,
    .card[style*="gradient"] .card-body {
        background: transparent !important;
    }

    .card[class*="grad-"] .stat-card,
    .card[style*="gradient"] .stat-card {
        background: transparent !important;
    }

    /* Fix for nested elements potentially having backgrounds */
    .card[class*="grad-"] *,
    .card[style*="gradient"] * {
        background-color: transparent !important;
    }

    /* Re-allow background for white icon circle */
    .card[class*="grad-"] .icon-bg-white,
    .card[style*="gradient"] .icon-bg-white {
        background: rgba(255, 255, 255, 0.2) !important;
    }

    /* Ensure text is white in gradient cards */
    .card[class*="grad-"],
    .card[style*="gradient"] {
        color: #ffffff !important;
    }

    .card[class*="grad-"] .stat-value,
    .card[class*="grad-"] .stat-label,
    .card[class*="grad-"] .stat-trend,
    .card[style*="gradient"] .stat-value,
    .card[style*="gradient"] .stat-label,
    .card[style*="gradient"] .stat-trend {
        color: #ffffff !important;
    }


    /* ================================================================
       HIGH-CONTRAST SPACIOUS TABLES — M3 style
       ================================================================ */
    .table-container,
    .card .table-responsive {
        border-radius: 0 0 var(--m3-radius-lg) var(--m3-radius-lg);
        overflow: auto;
    }

    .table {
        color: var(--m3-on-surface) !important;
        background: var(--m3-surface) !important;
        margin-bottom: 0;
        font-size: 0.875rem;
        border-collapse: separate;
        border-spacing: 0;
        width: 100%;
    }

    /* Sticky headers */
    .table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--m3-primary) !important;
        color: #fff !important;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        border: none !important;
        padding: 14px 18px !important;
        white-space: nowrap;
    }

    .table thead th:first-child {
        border-radius: 0 !important;
    }

    .table tbody tr {
        transition: background 0.12s;
        border-bottom: 1px solid var(--m3-surface-2);
    }

    .table tbody tr:hover {
        background: var(--m3-primary-95) !important;
    }

    .table tbody td {
        vertical-align: middle !important;
        border: none !important;
        border-bottom: 1px solid var(--m3-surface-2) !important;
        padding: 13px 18px !important;
        color: var(--m3-on-surface);
    }

    .table tbody tr:last-child td {
        border-bottom: none !important;
    }

    /* Row striping — ultra-light */
    .table-striped tbody tr:nth-of-type(odd) {
        background-color: var(--m3-surface-1) !important;
    }

    .table-striped tbody tr:nth-of-type(even) {
        background-color: var(--m3-surface) !important;
    }

    /* Empty state */
    .table-empty-state {
        text-align: center;
        padding: 3.5rem 1rem !important;
        color: var(--m3-on-surface-low);
    }

    .table-empty-state i {
        font-size: 2.8rem;
        opacity: 0.22;
        display: block;
        margin-bottom: 0.6rem;
    }

    .table-empty-state p {
        font-size: 0.85rem;
        margin: 0;
    }


    /* ================================================================
       BUTTONS — M3 filled / tonal / outlined
       ================================================================ */
    .btn {
        border-radius: var(--m3-radius-sm) !important;
        font-family: var(--font-main);
        font-weight: 600;
        font-size: 0.845rem;
        padding: 0.5rem 1.15rem;
        letter-spacing: 0.15px;
        transition: all 0.2s ease !important;
        line-height: 1.4;
    }

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn-primary {
        background: var(--m3-primary) !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(30, 58, 95, 0.22);
    }

    .btn-primary:hover {
        background: var(--m3-primary-10) !important;
        box-shadow: 0 4px 16px rgba(30, 58, 95, 0.30) !important;
    }

    .btn-secondary {
        background: var(--m3-surface-2) !important;
        border-color: transparent !important;
        color: var(--m3-on-surface) !important;
        font-weight: 700;
    }

    .btn-secondary:hover {
        background: var(--m3-surface-3) !important;
    }

    .btn-success {
        background: linear-gradient(135deg, #15803d, #22c55e) !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(21, 128, 61, 0.22);
    }

    .btn-danger {
        background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(185, 28, 28, 0.22);
    }

    .btn-info {
        background: linear-gradient(135deg, #0369a1, var(--m3-accent)) !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(14, 165, 233, 0.22);
    }

    .btn-warning {
        background: linear-gradient(135deg, #92400e, #d97706) !important;
        border-color: transparent !important;
        color: #fff !important;
    }

    .btn-outline-primary {
        border: 2px solid var(--m3-primary) !important;
        color: var(--m3-primary) !important;
        background: transparent !important;
    }

    .btn-outline-primary:hover {
        background: var(--m3-primary) !important;
        color: #fff !important;
    }

    /* Icon action buttons */
    .btn-icon {
        width: 32px;
        height: 32px;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--m3-radius-xs) !important;
        margin: 0 2px;
        transition: all 0.18s;
        border: none;
        color: #fff !important;
    }

    .btn-icon i {
        font-size: 13px;
    }

    .btn-icon svg {
        width: 13px;
        height: 13px;
    }

    .btn-icon:hover {
        transform: translateY(-2px);
        box-shadow: var(--m3-shadow-2);
    }

    .btn-edit {
        background: linear-gradient(135deg, #0369a1, #3b82f6);
    }

    .btn-delete {
        background: linear-gradient(135deg, #b91c1c, #ef4444);
    }

    .btn-view {
        background: linear-gradient(135deg, #15803d, #22c55e);
    }

    .btn-print {
        background: linear-gradient(135deg, #5b21b6, #a78bfa);
    }


    /* ================================================================
       FORMS
       ================================================================ */
    .form-label,
    label {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--m3-on-surface);
        margin-bottom: 5px;
        display: inline-block;
        letter-spacing: 0.1px;
    }

    .form-control,
    .form-select {
        border: 1.5px solid var(--m3-surface-3) !important;
        border-radius: var(--m3-radius-sm) !important;
        padding: 0.55rem 0.9rem !important;
        font-size: 0.875rem;
        color: var(--m3-on-surface) !important;
        background: var(--m3-surface) !important;
        font-family: var(--font-main);
        transition: border-color 0.18s, box-shadow 0.18s !important;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--m3-primary-50) !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.11) !important;
        outline: none;
    }

    .form-control::placeholder {
        color: var(--m3-on-surface-low) !important;
    }

    .input-group .input-group-text {
        background: var(--m3-surface-1) !important;
        border: 1.5px solid var(--m3-surface-3) !important;
        color: var(--m3-on-surface-med) !important;
        font-size: 0.85rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }


    /* ================================================================
       BADGES
       ================================================================ */
    .badge {
        padding: 0.35em 0.7em;
        font-weight: 700;
        font-size: 0.7rem;
        border-radius: var(--m3-radius-full);
        letter-spacing: 0.3px;
    }

    .badge-primary,
    .badge.bg-primary {
        background: var(--m3-primary) !important;
        color: #fff !important;
    }

    .badge-success,
    .badge.bg-success {
        background: var(--m3-success) !important;
        color: #fff !important;
    }

    .badge-danger,
    .badge.bg-danger {
        background: var(--m3-danger) !important;
        color: #fff !important;
    }

    .badge-warning,
    .badge.bg-warning {
        background: var(--m3-warning) !important;
        color: #fff !important;
    }

    .badge-info,
    .badge.bg-info {
        background: var(--m3-info) !important;
        color: #fff !important;
    }

    .badge-secondary,
    .badge.bg-secondary {
        background: var(--m3-surface-2) !important;
        color: var(--m3-on-surface) !important;
    }


    /* ================================================================
       ALERTS
       ================================================================ */
    .alert {
        border: none !important;
        border-radius: var(--m3-radius-md) !important;
        font-size: 0.875rem;
        font-weight: 500;
        padding: 13px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .alert-success {
        background: #f0fdf4 !important;
        color: #15803d !important;
        border-left: 3px solid #22c55e !important;
    }

    .alert-danger {
        background: #fef2f2 !important;
        color: #b91c1c !important;
        border-left: 3px solid #ef4444 !important;
    }

    .alert-warning {
        background: #fffbeb !important;
        color: #92400e !important;
        border-left: 3px solid #d97706 !important;
    }

    .alert-info {
        background: #f0f9ff !important;
        color: #0369a1 !important;
        border-left: 3px solid var(--m3-accent) !important;
    }


    /* ================================================================
       SELECT2
       ================================================================ */
    .select2-container--default .select2-selection--single,
    .select2-container--default .select2-selection--multiple {
        border: 1.5px solid var(--m3-surface-3) !important;
        border-radius: var(--m3-radius-sm) !important;
        min-height: 38px !important;
        display: flex;
        align-items: center;
        background: var(--m3-surface) !important;
    }

    .select2-dropdown {
        border: 1.5px solid var(--m3-surface-3) !important;
        border-radius: var(--m3-radius-md) !important;
        box-shadow: var(--m3-shadow-3) !important;
    }

    .select2-container--default .select2-results__option--highlighted[aria-selected] {
        background: var(--m3-primary) !important;
    }


    /* ================================================================
       PAGINATION
       ================================================================ */
    .pagination {
        gap: 4px;
    }

    .page-item .page-link {
        border: none !important;
        border-radius: var(--m3-radius-xs) !important;
        color: var(--m3-primary) !important;
        font-weight: 600;
        font-size: 0.82rem;
        padding: 6px 12px;
        background: var(--m3-surface);
        box-shadow: var(--m3-shadow-1);
        transition: all 0.15s;
    }

    .page-item .page-link:hover {
        background: var(--m3-primary) !important;
        color: #fff !important;
        transform: translateY(-1px);
    }

    .page-item.active .page-link {
        background: var(--m3-primary) !important;
        color: #fff !important;
        box-shadow: var(--m3-shadow-2);
    }

    .page-item.disabled .page-link {
        background: var(--m3-surface-1) !important;
        color: var(--m3-on-surface-low) !important;
    }


    /* ================================================================
       MODALS — M3 Elevated Style
       ================================================================ */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1060 !important;
        width: 100%;
        height: 100%;
        overflow: hidden;
        outline: 0;
    }

    .modal.show {
        display: block;
    }

    .modal-backdrop {
        z-index: 1050 !important;
        background-color: var(--m3-primary-10) !important;
        opacity: 0.4 !important;
    }

    .modal-content {
        border: none !important;
        border-radius: var(--m3-radius-lg) !important;
        box-shadow: var(--m3-shadow-4) !important;
        overflow: hidden;
    }

    .modal-header {
        background: linear-gradient(135deg, var(--m3-primary), var(--m3-primary-30)) !important;
        padding: 1.25rem 1.5rem !important;
        border-bottom: none !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .modal-header .modal-title {
        color: #fff !important;
        font-weight: 700;
        font-size: 1.1rem;
        margin: 0;
    }

    .modal-header .close {
        padding: 1rem !important;
        margin: -1rem -1rem -1rem auto !important;
        color: #fff !important;
        text-shadow: none !important;
        opacity: 0.8;
        transition: opacity 0.2s;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .modal-header .close:hover {
        opacity: 1;
    }

    .modal-body {
        padding: 1.5rem !important;
        color: var(--m3-on-surface);
    }

    .modal-footer {
        padding: 1rem 1.5rem !important;
        border-top: 1px solid var(--m3-surface-2) !important;
        background: var(--m3-surface-1);
    }


    /* ================================================================
       PAGE HEADINGS & BREADCRUMB
       ================================================================ */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: var(--m3-on-surface);
    }

    h1 {
        font-size: 1.5rem;
        font-weight: 800;
    }

    h4 {
        font-size: 1rem;
        font-weight: 700;
    }

    .page-breadcrumb {
        margin-bottom: 1.25rem;
    }

    .page-breadcrumb .page-title {
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--m3-primary);
        margin-bottom: 2px;
    }

    .page-breadcrumb .breadcrumb {
        background: transparent !important;
        border: none;
        padding: 0;
        margin: 0;
        font-size: 0.78rem;
    }

    .page-breadcrumb .breadcrumb-item a {
        color: var(--m3-primary-30);
        font-weight: 600;
        text-decoration: none;
    }

    .page-breadcrumb .breadcrumb-item.active {
        color: var(--m3-on-surface-low);
    }

    .page-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
        color: var(--m3-on-surface-low);
    }

    .page-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.4rem;
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-header-row .page-title {
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--m3-primary);
        margin: 0;
    }


    /* ================================================================
       FILTER / SEARCH BAR
       ================================================================ */
    .filter-bar {
        background: var(--m3-surface);
        border: 1px solid var(--m3-surface-3);
        border-radius: var(--m3-radius-md);
        padding: 14px 18px;
        box-shadow: var(--m3-shadow-1);
        margin-bottom: 1.4rem;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }


    /* ================================================================
       LIST GROUPS
       ================================================================ */
    .list-group-item {
        border: none !important;
        border-bottom: 1px solid var(--m3-surface-2) !important;
        padding: 12px 18px !important;
        font-size: 0.875rem;
        color: var(--m3-on-surface);
        transition: background 0.13s;
    }

    .list-group-item:last-child {
        border-bottom: none !important;
    }

    .list-group-item:hover {
        background: var(--m3-surface-1) !important;
    }

    .list-group-item:first-child {
        border-radius: 0 !important;
    }


    /* ================================================================
       STATUS INDICATORS
       ================================================================ */
    .avatar-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-weight: 700;
        color: #fff;
        line-height: 1;
        flex-shrink: 0;
    }

    .status-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-right: 5px;
        flex-shrink: 0;
    }

    .status-dot.active {
        background: #22c55e;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    }

    .status-dot.inactive {
        background: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
    }

    .status-dot.pending {
        background: #d97706;
        box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
    }


    /* ================================================================
       DATATABLES
       ================================================================ */
    div.dataTables_filter input {
        border: 1.5px solid var(--m3-surface-3) !important;
        border-radius: var(--m3-radius-xs) !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.82rem;
        color: var(--m3-on-surface) !important;
    }

    div.dataTables_filter input:focus {
        border-color: var(--m3-primary-50) !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08) !important;
    }

    div.dataTables_wrapper .dataTables_length select {
        border: 1.5px solid var(--m3-surface-3) !important;
        border-radius: var(--m3-radius-xs) !important;
    }

    div.dataTables_info,
    div.dataTables_length label,
    div.dataTables_filter label {
        font-size: 0.78rem !important;
        color: var(--m3-on-surface-low) !important;
    }


    /* ================================================================
       RESPONSIVE — collapse sidebar on mobile
       ================================================================ */
    @media (max-width: 1024px) {
        .m3-sidebar {
            transform: translateX(calc(-100% - 24px));
            opacity: 0;
        }

        .m3-sidebar.m3-sidebar-open {
            transform: translateX(0);
            opacity: 1;
        }

        .m3-sidebar-close-btn {
            display: flex;
        }

        .m3-page-wrapper {
            margin-left: 0;
        }
    }

    @media (min-width: 1025px) {
        .m3-sidebar-close-btn {
            display: none;
        }

        .m3-sidebar-backdrop {
            display: none !important;
        }
    }

    @media (max-width: 768px) {

        .m3-page-content,
        .page-content {
            padding: 12px;
        }

        .m3-topbar {
            padding: 0 12px;
        }

        /* Mobile-stack tables */
        .responsive-table-mobile thead {
            display: none;
        }

        .responsive-table-mobile tr {
            display: block;
            margin-bottom: 1rem;
            border: 1px solid var(--m3-surface-3);
            border-radius: var(--m3-radius-md);
            padding: 12px;
            background: var(--m3-surface);
            box-shadow: var(--m3-shadow-1);
        }

        .responsive-table-mobile td {
            display: block;
            width: 100% !important;
            padding: 5px 0 !important;
            border: none !important;
        }

        .responsive-table-mobile td:before {
            content: attr(data-label);
            font-weight: 700;
            display: block;
            margin-bottom: 2px;
            font-size: 0.7rem;
            color: var(--m3-primary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
    }


    /* ================================================================
       UTILITIES
       ================================================================ */
    .text-primary {
        color: var(--m3-primary) !important;
    }

    a.card:hover {
        text-decoration: none !important;
    }

    /* Navbar partial legacy overrides — ensure old .navbar selector
       doesn't conflict with new .m3-topbar */
    .navbar {
        background: var(--m3-topbar-bg) !important;
        box-shadow: var(--m3-shadow-1) !important;
        border-bottom: 1px solid var(--m3-surface-2) !important;
        padding: 0 1.25rem !important;
        height: var(--m3-topbar-h);
    }
        .ck-editor__editable_inline {
            min-height: 300px;
        }

        /* Constrain images in both editor and rendered content */
        .ck-content img,
        .ck-editor__editable img,
        .rich-content img {
            max-width: 100%;
            height: auto !important;
        }

.auth-body { background: #FAF9E9 !important; color: #32315C !important; }

    /* ===== DASHBOARD PREMIUM STYLES ===== */
    .dash-welcome-banner {
        background: linear-gradient(135deg, #010756 0%, #0a1a8a 50%, #1a2fcc 100%);
        border-radius: 16px;
        padding: 28px 32px;
        color: #fff;
        margin-bottom: 28px;
        position: relative;
        overflow: hidden;
    }

    .dash-welcome-banner::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(247, 188, 49, 0.13);
    }

    .dash-welcome-banner::after {
        content: '';
        position: absolute;
        bottom: -80px;
        right: 120px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(247, 188, 49, 0.08);
    }

    .dash-welcome-banner h2 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .dash-welcome-banner p {
        opacity: 0.85;
        margin-bottom: 0;
        font-size: 0.95rem;
    }

    .dash-welcome-banner .badge-date {
        background: rgba(247, 188, 49, 0.22);
        color: #F7BC31;
        border: 1px solid rgba(247, 188, 49, 0.4);
        border-radius: 20px;
        padding: 4px 14px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* Stat Cards */
    .stat-card {
        border-radius: 16px !important;
        border: none !important;
        padding: 0 !important;
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease;
        cursor: default;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13) !important;
    }

    .stat-card .card-body {
        padding: 22px 24px !important;
    }

    .stat-card .stat-icon {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        margin-bottom: 14px;
    }

    .stat-card .stat-value {
        font-size: 2rem;
        font-weight: 800;
        line-height: 1;
        margin-bottom: 4px;
    }

    .stat-card .stat-label {
        font-size: 0.82rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.75;
    }

    .stat-card .stat-trend {
        font-size: 0.78rem;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        margin-top: 8px;
        padding: 2px 10px;
        border-radius: 20px;
    }

    /* Gradient presets */
    .grad-blue {
        background: linear-gradient(135deg, #010756, #1a35d8);
        color: #fff;
    }

    .grad-gold {
        background: linear-gradient(135deg, #c07800, #F7BC31);
        color: #fff;
    }

    .grad-red {
        background: linear-gradient(135deg, #b91c1c, #ef4444);
        color: #fff;
    }

    .grad-teal {
        background: linear-gradient(135deg, #0369a1, #0ea5e9);
        color: #fff;
    }

    .grad-purple {
        background: linear-gradient(135deg, #6d28d9, #a78bfa);
        color: #fff;
    }

    .grad-green {
        background: linear-gradient(135deg, #15803d, #22c55e);
        color: #fff;
    }

    .icon-bg-white {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Section headers */
    .section-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        letter-spacing: 0.3px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .section-title::after {
        content: '';
        flex: 1;
        height: 2px;
        background: linear-gradient(to right, rgba(1, 7, 86, 0.12), transparent);
        border-radius: 2px;
    }

    /* Activity cards */
    .activity-card {
        border-radius: 14px !important;
        border: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    }

    .activity-card .card-header {
        background: #fff !important;
        border-bottom: 2px solid #f0f0f8 !important;
        border-radius: 14px 14px 0 0 !important;
        padding: 16px 20px !important;
        font-weight: 700 !important;
        font-size: 0.92rem;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .activity-card .card-header .header-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

    /* Fee list items */
    .fee-item {
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #f4f4f8;
        transition: background 0.15s;
    }

    .fee-item:last-child {
        border-bottom: none;
    }

    .fee-item .fee-avatar {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.85rem;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .fee-item .fee-name {
        font-weight: 600;
        font-size: 0.88rem;
        color: #2d2d5e;
    }

    .fee-item .fee-amount {
        margin-left: auto;
        font-weight: 700;
        font-size: 0.9rem;
        background: linear-gradient(135deg, #010756, #1a35d8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Quick links */
    .quick-link-card {
        border-radius: 12px !important;
        border: none !important;
        text-align: center;
        padding: 18px 12px;
        text-decoration: none;
        display: block;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    }

    .quick-link-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
        text-decoration: none;
    }

    .quick-link-card .ql-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin: 0 auto 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
    }

    .quick-link-card .ql-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #2d2d5e;
    }

    /* Today info bar */
    .today-bar {
        background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
        border-radius: 12px;
        padding: 14px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
        border: 1px solid rgba(1, 7, 86, 0.08);
    }

    .today-bar .tb-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: #2d2d5e;
    }

    .today-bar .tb-item strong {
        font-weight: 700;
    }

    .today-bar .tb-sep {
        width: 1px;
        height: 24px;
        background: rgba(1, 7, 86, 0.12);
    }
</style>
    /* ===== TEACHER DASHBOARD PREMIUM STYLES ===== */
    .teacher-banner {
        background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 50%, #2563eb 100%);
        border-radius: 16px;
        padding: 26px 30px;
        color: #fff;
        margin-bottom: 26px;
        position: relative;
        overflow: hidden;
    }

    .teacher-banner::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

    .teacher-banner::after {
        content: '';
        position: absolute;
        bottom: -60px;
        right: 100px;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }

    .teacher-banner h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .teacher-banner p {
        opacity: 0.85;
        margin-bottom: 0;
        font-size: 0.9rem;
    }

    .teacher-banner .role-badge {
        display: inline-block;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        padding: 3px 14px;
        font-size: 0.78rem;
        font-weight: 600;
        margin-bottom: 8px;
        letter-spacing: 0.4px;
    }

    /* Section title */
    .section-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        letter-spacing: 0.3px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .section-title::after {
        content: '';
        flex: 1;
        height: 2px;
        background: linear-gradient(to right, rgba(1, 7, 86, 0.12), transparent);
        border-radius: 2px;
    }

    /* Class card */
    .class-card {
        border-radius: 16px !important;
        border: none !important;
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07) !important;
    }

    .class-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13) !important;
    }

    .class-card .cc-accent {
        height: 5px;
        background: linear-gradient(90deg, #6d28d9, #2563eb);
    }

    .class-card .card-body {
        padding: 20px 22px !important;
    }

    .class-card .class-icon-wrap {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        background: linear-gradient(135deg, #6d28d9, #2563eb);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: #fff;
        margin-bottom: 14px;
    }

    .class-card .class-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: #010756;
        margin-bottom: 2px;
    }

    .class-card .class-section {
        font-size: 0.82rem;
        color: #888;
        margin-bottom: 14px;
    }

    .class-card .action-btn {
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 6px 14px;
        border: none;
        transition: opacity 0.2s;
    }

    .class-card .action-btn:hover {
        opacity: 0.85;
    }

    .btn-purple {
        background: linear-gradient(135deg, #6d28d9, #4f46e5);
        color: #fff;
    }

    .btn-blue {
        background: linear-gradient(135deg, #0369a1, #2563eb);
        color: #fff;
    }

    .btn-gold {
        background: linear-gradient(135deg, #c07800, #F7BC31);
        color: #fff;
    }

    /* Stat mini */
    .mini-stat {
        background: #f5f5ff;
        border-radius: 10px;
        padding: 10px 14px;
        text-align: center;
        flex: 1;
    }

    .mini-stat .ms-val {
        font-size: 1.2rem;
        font-weight: 800;
        color: #010756;
    }

    .mini-stat .ms-lbl {
        font-size: 0.72rem;
        color: #888;
        font-weight: 600;
        text-transform: uppercase;
    }

    /* Notification card */
    .notif-card {
        border-radius: 14px !important;
        border: none !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
    }

    .notif-card .card-header {
        background: #fff !important;
        border-bottom: 2px solid #f0f0f8 !important;
        border-radius: 14px 14px 0 0 !important;
        padding: 14px 20px !important;
        font-weight: 700 !important;
        font-size: 0.9rem;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Today's schedule pill */
    .today-schedule-bar {
        background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
        border-radius: 12px;
        padding: 12px 18px;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 22px;
        border: 1px solid rgba(1, 7, 86, 0.07);
        flex-wrap: wrap;
    }

    .today-schedule-bar .tsb-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        color: #2d2d5e;
    }

    .today-schedule-bar .tsb-item strong {
        font-weight: 700;
    }

    .today-schedule-bar .tsb-sep {
        width: 1px;
        height: 20px;
        background: rgba(1, 7, 86, 0.12);
    }
    /* ===== PARENT DASHBOARD PREMIUM STYLES ===== */
    .parent-banner {
        background: linear-gradient(135deg, #015560 0%, #0369a1 60%, #0ea5e9 100%) !important;
        border-radius: 16px;
        padding: 26px 30px;
        color: #fff;
        margin-bottom: 26px;
        position: relative;
        overflow: hidden;
    }

    .parent-banner::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

    .parent-banner::after {
        content: '';
        position: absolute;
        bottom: -70px;
        right: 100px;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }

    .parent-banner h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .parent-banner p {
        opacity: 0.85;
        margin-bottom: 0;
        font-size: 0.9rem;
    }

    .parent-banner .role-badge {
        display: inline-block;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        padding: 3px 14px;
        font-size: 0.78rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    /* Section title */
    .section-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        letter-spacing: 0.3px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .section-title::after {
        content: '';
        flex: 1;
        height: 2px;
        background: linear-gradient(to right, rgba(1, 7, 86, 0.12), transparent) !important;
        border-radius: 2px;
    }

    /* Child card */
    .child-card {
        border-radius: 16px !important;
        border: none !important;
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07) !important;
    }

    .child-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13) !important;
    }

    .child-card .cc-top-strip {
        height: 5px;
    }

    .child-card .card-body {
        padding: 22px 22px 18px !important;
    }

    .child-card .avatar-initials {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        font-weight: 800;
        color: #fff;
        margin: 0 auto 14px;
    }

    .child-card .child-name {
        font-size: 1.05rem;
        font-weight: 700;
        color: #010756;
        text-align: center;
        margin-bottom: 2px;
    }

    .child-card .child-reg {
        font-size: 0.78rem;
        color: #888;
        text-align: center;
        margin-bottom: 6px;
    }

    .child-card .child-class-badge {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 3px 12px;
        border-radius: 20px;
        margin-bottom: 14px;
    }

    /* Attendance stats */
    .att-stats {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-bottom: 14px;
    }

    .att-box {
        flex: 1;
        border-radius: 10px;
        padding: 10px 8px;
        text-align: center;
    }

    .att-box .att-val {
        font-size: 1.3rem;
        font-weight: 800;
        line-height: 1;
        margin-bottom: 2px;
    }

    .att-box .att-lbl {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        opacity: 0.75;
    }

    .att-present {
        background: #f0fdf4;
    }

    .att-present .att-val {
        color: #15803d;
    }

    .att-present .att-lbl {
        color: #15803d;
    }

    .att-absent {
        background: #fef2f2;
    }

    .att-absent .att-val {
        color: #b91c1c;
    }

    .att-absent .att-lbl {
        color: #b91c1c;
    }

    .att-rate {
        background: #eff6ff;
    }

    .att-rate .att-val {
        color: #0369a1;
    }

    .att-rate .att-lbl {
        color: #0369a1;
    }

    /* Widget card */
    .widget-card {
        border-radius: 14px !important;
        border: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    }

    .widget-card .card-header {
        background: #fff !important;
        border-bottom: 2px solid #f0f0f8 !important;
        border-radius: 14px 14px 0 0 !important;
        padding: 14px 20px !important;
        font-weight: 700 !important;
        font-size: 0.9rem;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .widget-card .card-header .hdr-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
    }

    /* Homework row */
    .hw-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #f4f4f8;
        transition: background 0.15s;
    }

    .hw-row:last-child {
        border-bottom: none;
    }

    .hw-row .hw-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .hw-row .hw-title {
        font-size: 0.87rem;
        font-weight: 600;
        color: #2d2d5e;
    }

    .hw-row .hw-meta {
        font-size: 0.75rem;
        color: #888;
    }

    .hw-row .hw-child {
        font-size: 0.73rem;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 20px;
        margin-left: auto;
    }

    /* Remark item */
    .remark-item {
        padding: 12px 0;
        border-bottom: 1px solid #f4f4f8;
    }

    .remark-item:last-child {
        border-bottom: none;
    }

    .remark-item .ri-name {
        font-size: 0.85rem;
        font-weight: 700;
        color: #010756;
        margin-bottom: 3px;
    }

    .remark-item .ri-text {
        font-size: 0.82rem;
        color: #444;
        margin-bottom: 4px;
        line-height: 1.4;
    }

    .remark-item .ri-time {
        font-size: 0.72rem;
        color: #aaa;
    }

    /* View btn */
    .view-btn {
        background: linear-gradient(135deg, #0369a1, #0ea5e9);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 5px 12px;
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
        transition: opacity 0.2s;
        white-space: nowrap;
    }

    .view-btn:hover {
        opacity: 0.85;
        color: #fff;
    }
    /* ===== STAFF DASHBOARD PREMIUM STYLES ===== */
    .staff-banner {
        background: linear-gradient(135deg, #15803d 0%, #059669 55%, #0d9488 100%);
        border-radius: 16px;
        padding: 26px 30px;
        color: #fff;
        margin-bottom: 26px;
        position: relative;
        overflow: hidden;
    }

    .staff-banner::before {
        content: '';
        position: absolute;
        top: -55px;
        right: -55px;
        width: 190px;
        height: 190px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

    .staff-banner::after {
        content: '';
        position: absolute;
        bottom: -65px;
        right: 90px;
        width: 145px;
        height: 145px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }

    .staff-banner h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .staff-banner p {
        opacity: 0.85;
        margin-bottom: 0;
        font-size: 0.9rem;
    }

    .staff-banner .role-badge {
        display: inline-block;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        padding: 3px 14px;
        font-size: 0.78rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    /* Section title */
    .section-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        letter-spacing: 0.3px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .section-title::after {
        content: '';
        flex: 1;
        height: 2px;
        background: linear-gradient(to right, rgba(1, 7, 86, 0.12), transparent);
        border-radius: 2px;
    }

    /* Module card */
    .module-card {
        border-radius: 16px !important;
        border: none !important;
        text-decoration: none !important;
        display: block;
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07) !important;
    }

    .module-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13) !important;
        text-decoration: none;
    }

    .module-card .mc-strip {
        height: 4px;
    }

    .module-card .mc-body {
        padding: 20px 20px 18px;
    }

    .module-card .mc-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: #fff;
        margin-bottom: 14px;
    }

    .module-card .mc-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #010756;
        margin-bottom: 4px;
    }

    .module-card .mc-desc {
        font-size: 0.78rem;
        color: #888;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .module-card .mc-action {
        font-size: 0.78rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    /* Info strip */
    .info-strip {
        background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
        border-radius: 12px;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 22px;
        border: 1px solid rgba(21, 128, 61, 0.12);
        flex-wrap: wrap;
    }

    .info-strip .is-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: #2d2d5e;
    }

    .info-strip .is-item strong {
        font-weight: 700;
    }

    .info-strip .is-sep {
        width: 1px;
        height: 22px;
        background: rgba(21, 128, 61, 0.18);
    }

    /* Notification card */
    .notif-card {
        border-radius: 14px !important;
        border: none !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
    }

    .notif-card .card-header {
        background: #fff !important;
        border-bottom: 2px solid #f0f0f8 !important;
        border-radius: 14px 14px 0 0 !important;
        padding: 14px 20px !important;
        font-weight: 700 !important;
        font-size: 0.9rem;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    :root {
        --profile-primary: #0369a1;
        --profile-secondary: #0ea5e9;
        --profile-bg: #f8fafc;
        --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    }

    .profile-header {
        background: linear-gradient(135deg, #015560 0%, #0369a1 60%, #0ea5e9 100%);
        border-radius: 20px;
        padding: 40px;
        color: white;
        margin-bottom: 30px;
        position: relative;
        overflow: hidden;
    }

    .profile-header::after {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 150px;
        height: 150px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .student-avatar-large {
        width: 120px;
        height: 120px;
        border-radius: 30px;
        border: 4px solid rgba(255, 255, 255, 0.3);
        object-fit: cover;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .avatar-initials-large {
        width: 120px;
        height: 120px;
        border-radius: 30px;
        border: 4px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        font-weight: 800;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .profile-nav .nav-link {
        color: #64748b;
        font-weight: 600;
        padding: 12px 20px;
        border-radius: 12px;
        transition: all 0.3s;
        margin-bottom: 5px;
        border: none;
    }

    .profile-nav .nav-link.active {
        background: white !important;
        color: var(--profile-primary) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .profile-nav .nav-link i {
        margin-right: 10px;
        font-size: 1.1rem;
    }

    .data-card {
        border: none;
        border-radius: 20px;
        box-shadow: var(--card-shadow);
        background: white;
        overflow: hidden;
    }

    .card-title-premium {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .card-title-premium i {
        color: var(--profile-primary);
    }

    /* Attendance Styles */
    .att-badge {
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 8px;
    }

    .att-Present {
        background: #dcfce7;
        color: #166534;
    }

    .att-Absent {
        background: #fee2e2;
        color: #991b1b;
    }

    .att-Leave {
        background: #fef9c3;
        color: #854d0e;
    }

    /* Fee Table */
    .fee-table th {
        background: #f1f5f9;
        font-weight: 700;
        color: #475569;
        border: none;
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .fee-table td {
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.9rem;
    }

    .status-paid {
        background: #dcfce7;
        color: #166534;
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: 700;
        font-size: 0.75rem;
    }

    .status-default {
        background: #fee2e2;
        color: #991b1b;
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: 700;
        font-size: 0.75rem;
    }

    .status-partial {
        background: #fff7ed;
        color: #9a3412;
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: 700;
        font-size: 0.75rem;
    }

    /* Back button */
    .btn-back {
        position: absolute;
        top: 20px;
        left: 20px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 8px 15px;
        font-weight: 600;
        transition: 0.3s;
        backdrop-filter: blur(5px);
    }

    .btn-back:hover {
        background: rgba(255, 255, 255, 0.3);
        color: white;
    }
@media print {
    body { background-color: white !important; }
    .card { border: 1px solid #eee !important; box-shadow: none !important; }
    .bg-gradient-success, .bg-gradient-danger, .bg-gradient-info { color: black !important; background: white !important; border: 2px solid #ccc !important; }
    .opacity-7, .opacity-3 { opacity: 1 !important; }
    #settingsTabs { display: none !important; }
    .btn-block { display: none !important; }
    input[type="date"] { border: none !important; font-weight: bold; }
}
.bg-gradient-success { background: linear-gradient(45deg, #28a745, #1e7e34); }
.bg-gradient-danger { background: linear-gradient(45deg, #dc3545, #bd2130); }
.bg-gradient-info { background: linear-gradient(45deg, #17a2b8, #117a8b); }
.bg-gradient-warning { background: linear-gradient(45deg, #ffc107, #d39e00); }
.opacity-7 { opacity: 0.7; }
.opacity-3 { opacity: 0.3; }
.badge-outline-danger { border: 1px solid #dc3545; color: #dc3545; background: none; }
    /* Premium Toggle Switch Styles */
    .attendance-toggle-wrapper {
        display: inline-block;
    }

    .attendance-toggle {
        width: 120px;
        height: 44px;
        background: #f1f5f9;
        /* Slate 100 */
        border-radius: 22px;
        position: relative;
        cursor: pointer;
        padding: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        user-select: none;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .toggle-handle {
        width: calc(50% - 4px);
        height: 36px;
        background: #fff;
        border-radius: 18px;
        position: absolute;
        left: 4px;
        top: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        z-index: 2;
    }

    .attendance-toggle.active {
        background: #dcfce7;
        /* Green 100 */
    }

    .attendance-toggle.active .toggle-handle {
        left: calc(50% + 0px);
        background: #22c55e;
        /* Green 500 */
        box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.3);
    }

    .toggle-labels {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        width: 100%;
        position: relative;
        z-index: 1;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    .label-present {
        color: #94a3b8 !important;
        /* Slate 400 */
        padding-left: 2px;
        transition: color 0.3s;
    }

    .label-absent {
        color: #ef4444 !important;
        /* Red 500 */
        padding-right: 2px;
        transition: color 0.3s;
    }

    .attendance-toggle.active .label-present {
        color: #fff;
    }

    .attendance-toggle.active .label-absent {
        color: #94a3b8 !important;
    }

    /* Active Absent State (Defaults to Red if not active) */
    .attendance-toggle:not(.active) {
        background: #fee2e2;
        /* Red 100 */
    }

    .attendance-toggle:not(.active) .toggle-handle {
        background: #ef4444 !important;
        /* Red 500 */
        box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
    }

    .attendance-toggle:not(.active) .label-absent {
        color: #fff;
    }

    .attendance-toggle:not(.active) .label-present {
        color: #94a3b8 !important;
    }
@media print {
    body { background: white !important; }
    .sidebar, .navbar, .d-print-none, .breadcrumb { display: none !important; }
    .card-perf { border: 1px solid #ddd !important; box-shadow: none !important; width: 33% !important; float: left; margin-bottom: 20px; }
    .row { display: block !important; }
    .progress { border: 1px solid #ddd; }
}
.card-perf { transition: transform 0.2s; border-top: 4px solid #4a90e2; }
.card-perf:hover { transform: translateY(-5px); }
.avatar-holder img { border: 3px solid #f8fafc; }
@media print {
    body { background: white !important; }
    .sidebar, .navbar, .d-print-none { display: none !important; }
    .card { border: none !important; box-shadow: none !important; }
    .table-bordered-soft th, .table-bordered-soft td { border: 1px solid #ddd !important; }
    .page-body-wrapper { padding-top: 0 !important; }
    .content-wrapper { padding: 0 !important; }
}
.table-bordered-soft th { border-top: none; }
.badge-soft-info { background: #e1f5fe; color: #0288d1; }
.badge-soft-dark { background: #eceff1; color: #455a64; }
.border-left-primary { border-left: 5px solid #4a90e2 !important; }

/* ================================================================
   MOBILE-FIRST & FORM HARMONIZATION
   ================================================================ */

/* Standard form controls */
.m3-form-control, .form-control, .form-select {
    width: 100%;
}

/* Touch targets & stacking for mobile */
@media (max-width: 768px) {
    .form-control, .form-select, .btn, .select2-selection {
        min-height: 44px !important; /* Minimum touch target size */
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar > * {
        width: 100% !important;
        margin-bottom: 10px;
    }
}

/* 8px Grid Spacing Scale */
.m3-spacing-1 { margin-bottom: 8px !important; }
.m3-spacing-2 { margin-bottom: 16px !important; }
.m3-spacing-3 { margin-bottom: 24px !important; }
.m3-spacing-4 { margin-bottom: 32px !important; }

/* Filter Bar harmonization */
.filter-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

