/* Stexo layout: dark sidebar + light header + main content */
:root {
    --stexo-sidebar-width: 260px;
    --stexo-sidebar-bg: #ffffff;
    --stexo-sidebar-hover: rgba(2, 6, 23, 0.04);
    --stexo-sidebar-active: rgba(16, 135, 137, 0.12);
    --stexo-topbar-height: 70px;
    --stexo-topbar-bg: #ffffff;
    --stexo-primary: #108789;
    --stexo-primary-dark: #0a3642;
    --stexo-body-bg: #f4f6f9;
    --stexo-card-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.15);
}

.table-light {
    --bs-table-color: #000;
    --bs-table-bg: #0c425236;
    
}
.form-control {
    font-size: 13px;
}
.stexo-page-title {
    font-size: 18px !important;
    font-weight: 600 !important;
}
.btn-primary.stexo-btn-primary, .stexo-btn-primary {
    font-size: 14px !important;
}
button.btn.btn-primary.stexo-btn-primary {
    font-size: 12px !important;
}
a.btn.btn-light {
    font-size: 14px;
}
.stexo-table {
     font-size: 12px !important;
}
.stexo-table thead th
{
    font-size: 11px !important;
    padding: 10px 10px !important;
}

/* Bootstrap tooltip font size */
.tooltip {
    font-size: 11px !important;
}
 
  

/* Bootstrap tooltip theme: light yellow bg + black text */
.tooltip .tooltip-inner {
    background-color: #fff3cd !important; /* Bootstrap warning light */
    color: #000 !important;
    border: 1px solid #ffe69c;
}
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #fff3cd !important;
}
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #fff3cd !important;
}
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #fff3cd !important;
}
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #fff3cd !important;
}
.px-3.py-2.bg-primary.text-white.fw-semibold.small {
    background: var(--stexo-sidebar-bg) !important;
}
button.btn.btn-secondary {
    font-size: 12px;
}
.stexo-sidebar-nav .nav-link.active {
    background: rgba(16, 135, 137, 0.12) !important;
    color: var(--stexo-primary-dark);
    border-left-color: var(--stexo-primary);
}

.marquee_text {
    background: #ece3e3;
    padding: 10px;
}
.allow_days {
    background: #ca515140;
    padding: 10px;
}
.row_data {
    background: #42424254;
    padding: 10px;
}
.stexo-sidebar-brand {
    background: var(--stexo-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.stexo-card .card-body {
    padding: 10px !important;
}
.stexo-table tbody td {
    padding: 10px 10px !important;
    vertical-align: middle ;
}
.form-select {
    font-size: 12px;
}

body.stexo-body {
    background: var(--stexo-body-bg);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 12px;
}

/* Layout wrapper: sidebar + right side */
.stexo-layout {
    display: flex;
    min-height: 100vh;
}

/* ========== LEFT SIDEBAR (dark) ========== */
.stexo-sidebar {
    width: var(--stexo-sidebar-width);
    min-width: var(--stexo-sidebar-width);
    background: var(--stexo-sidebar-bg);
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease, min-width 0.2s ease, transform 0.2s;
    overflow-x: hidden;
}

.stexo-sidebar-brand {
    background: var(--stexo-primary);
    height: var(--stexo-topbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.stexo-sidebar-brand-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
}
.stexo-sidebar-brand-logo {
    display: block;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.stexo-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 14px 6px;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.stexo-sidebar-user__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, rgba(16, 135, 137, 1), rgba(10, 54, 66, 1));
    box-shadow: 0 10px 22px rgba(16, 135, 137, 0.22);
}
.stexo-sidebar-user__name {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}
.stexo-sidebar-user__role {
    margin-top: 2px;
}

.stexo-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}
.stexo-sidebar-nav::-webkit-scrollbar {
    width: 5px;
}
.stexo-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}
.stexo-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}
.stexo-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.75);
}
.stexo-sidebar-nav:hover {
    scrollbar-color: rgba(100, 116, 139, 0.65) transparent;
}

.stexo-sidebar-nav .nav-section {
    margin-bottom: 8px;
}

.stexo-sidebar-nav .nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 12px 24px 8px;
}

.stexo-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    color: #475569;
    padding: 10px 24px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.stexo-sidebar-nav .nav-link span { display: inline-block; }

.stexo-sidebar-nav .nav-link:hover {
    background: var(--stexo-sidebar-hover);
    color: #0f172a;
}

.stexo-sidebar-nav .nav-link.active {
    background: var(--stexo-sidebar-active);
    color: var(--stexo-primary-dark);
    border-left-color: var(--stexo-primary);
}

.stexo-sidebar-nav .nav-link i {
    font-size: 1.1rem;
    margin-right: 12px;
    opacity: 0.9;
    color: var(--stexo-primary);
}

/* Expandable menu */
.stexo-sidebar-nav .nav-section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #475569;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.stexo-sidebar-nav .nav-section-toggle:hover {
    background: var(--stexo-sidebar-hover);
    color: #0f172a;
}

.stexo-sidebar-nav .nav-section-toggle i:first-child {
    margin-right: 12px;
}

.stexo-sidebar-nav .nav-section-toggle .bi-chevron-down {
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.stexo-sidebar-nav .nav-section-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.stexo-sidebar-nav .nav-section-menu {
    list-style: none;
    padding: 0 0 8px 0;
    margin: 0;
}

.stexo-sidebar-nav .nav-section-menu .nav-link {
    padding-left: 48px;
    font-size: 0.875rem;
}

.stexo-sidebar-nav .nav-section-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* ========== RIGHT SIDE: Topbar + Content ========== */
.stexo-right {
    flex: 1;
    margin-left: var(--stexo-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left 0.2s ease;
}

/* Top header bar (light grey) */
.stexo-topbar {
    height: var(--stexo-topbar-height);
    background: var(--stexo-topbar-bg);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.stexo-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stexo-topbar-page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stexo-topbar .btn-sidebar-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
}

.stexo-topbar .btn-sidebar-toggle:hover {
    background: #f9fafb;
    color: #111827;
}

.stexo-topbar-search {
    position: relative;
    width: 280px;
}

.stexo-topbar-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
}

.stexo-topbar-search input::placeholder {
    color: #9ca3af;
}

.stexo-topbar-search .bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

.stexo-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stexo-topbar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    position: relative;
}

.stexo-topbar-icon:hover {
    background: #fff;
    color: #111827;
}

.stexo-topbar-icon .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stexo-topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.stexo-topbar-avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--stexo-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Main content area */
.stexo-main {
    flex: 1;
    padding: 0;
}

.stexo-content {
    padding: 24px;
    background: var(--stexo-body-bg);
    min-height: calc(100vh - var(--stexo-topbar-height));
}

/* Page header: breadcrumb left, actions (e.g. Add button) right */
.stexo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.stexo-page-breadcrumb-wrap {
    order: 1;
}

.stexo-page-header-actions {
    margin-left: auto;
    order: 2;
}

.stexo-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #374151;
    letter-spacing: -0.02em;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stexo-page-breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Filter bar (search + dropdown + Search button) - same style across Client, Media, Display, User, Role, Report */
.stexo-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.stexo-filter-bar .form-control,
.stexo-filter-bar .form-select {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    min-height: 38px;
    width: auto;
    min-width: 200px;
}
.stexo-filter-bar .form-control:focus,
.stexo-filter-bar .form-select:focus {
    border-color: var(--stexo-primary, #0d9488);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}
.stexo-filter-bar .btn.stexo-btn-primary {
    min-height: 38px;
    border-radius: 6px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Report request: multiple-choice dropdowns */
.stexo-multiselect {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    padding: 6px 10px !important;
    min-height: 100px !important;
    font-size: 13px !important;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.stexo-multiselect:hover {
    border-color: #cbd5e1 !important;
    background-color: #fff !important;
}
.stexo-multiselect:focus {
    border-color: var(--stexo-primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(12, 66, 82, 0.2) !important;
    outline: none !important;
}
.stexo-multiselect option {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 2px 0;
}
.stexo-multiselect option:hover {
    background-color: rgba(12, 66, 82, 0.08);
}
.stexo-multiselect option:checked {
    background: linear-gradient(0deg, rgba(12, 66, 82, 0.15), rgba(12, 66, 82, 0.12));
    color: var(--stexo-primary-dark);
    font-weight: 500;
}
/* Scrollbar for multiselect (WebKit) */
.stexo-multiselect::-webkit-scrollbar {
    width: 8px;
}
.stexo-multiselect::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.stexo-multiselect::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.stexo-multiselect::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cards */
.stexo-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--stexo-card-shadow);
    border: 1px solid #eff2f7;
}

/* Dashboard: hero strip */
.stexo-dashboard-hero {
    border: none !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 45%, #fffbeb 100%) !important;
    box-shadow: 0 12px 40px rgba(16, 135, 137, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    position: relative;
    overflow: hidden;
}
.stexo-dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stexo-primary) 0%, #2dd4bf 40%, var(--stexo-topbar-bg) 100%);
    border-radius: 16px 16px 0 0;
}
.stexo-dashboard-hero .card-body {
    position: relative;
    z-index: 1;
}
.stexo-dashboard-hero .bg-light {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 135, 137, 0.12) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* Dashboard: activity panels (tables) */
.stexo-dashboard-panel {
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    overflow: hidden;
}
.stexo-dashboard-panel:hover {
    box-shadow: 0 16px 40px rgba(16, 135, 137, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}
.stexo-dashboard-panel .card-header {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%) !important;
    border-bottom: 1px solid rgba(16, 135, 137, 0.1) !important;
    font-size: 0.9rem;
}

/* Dashboard stat cards */
.stexo-dashboard-cards .stexo-stat-card {
    min-height: 124px;
    padding: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 14px !important;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%) !important;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.2s ease;
}
.stexo-dashboard-cards .stexo-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stexo-primary), #5eead4, var(--stexo-topbar-bg));
    opacity: 0.95;
    border-radius: 14px 14px 0 0;
}
.stexo-dashboard-cards .stexo-stat-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(16, 135, 137, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.stexo-dashboard-cards .stexo-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(16, 135, 137, 0.14), 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(16, 135, 137, 0.18) !important;
}
.stexo-dashboard-cards .stexo-stat-card .card-body {
    padding: 1.35rem 1.25rem 1.15rem !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 1;
}
.stexo-dashboard-cards .stexo-stat-card a.small {
    color: var(--stexo-primary) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.15s ease, transform 0.15s ease;
}
.stexo-dashboard-cards .stexo-stat-card a.small:hover {
    color: var(--stexo-primary-dark) !important;
}
.stexo-stat-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.stexo-stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.stexo-stat-subtitle {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #94a3b8;
}
.stexo-stat-pct {
    font-weight: 500;
    color: #6b7280;
}
/* Circular icon — gradient + glow */
.stexo-stat-icon {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}
.stexo-dashboard-cards .stexo-stat-card:hover .stexo-stat-icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}
.stexo-stat-icon-primary {
    background: linear-gradient(145deg, #1ba8ac 0%, var(--stexo-primary) 45%, #0a5c62 100%);
    box-shadow: 0 10px 24px rgba(16, 135, 137, 0.4);
}
.stexo-stat-icon-success {
    background: linear-gradient(145deg, #34d399 0%, #10b981 50%, #047857 100%);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.38);
}
.stexo-stat-icon-warning {
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.38);
}
.stexo-stat-icon-danger {
    background: linear-gradient(145deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}
.stexo-stat-icon-info {
    background: linear-gradient(145deg, #38bdf8 0%, #0ea5e9 50%, #0369a1 100%);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}
.stexo-stat-icon-indigo {
    background: linear-gradient(145deg, #818cf8 0%, #6366f1 50%, #4338ca 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}
.stexo-stat-icon-teal {
    background: linear-gradient(145deg, #2dd4bf 0%, #14b8a6 50%, #0f766e 100%);
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.35);
}
/* Highlighted academy card on dashboard */
.stexo-dashboard-cards .stexo-stat-card.border-primary {
    border-color: rgba(16, 135, 137, 0.25) !important;
    background: linear-gradient(160deg, #ffffff 0%, #ecfeff 40%, #ffffff 100%) !important;
}
.stexo-dashboard-cards .stexo-stat-card.border-primary::before {
    height: 4px;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .stexo-dashboard-cards .stexo-stat-card,
    .stexo-dashboard-cards .stexo-stat-icon,
    .stexo-dashboard-panel {
        transition: none !important;
    }
    .stexo-dashboard-cards .stexo-stat-card:hover {
        transform: none !important;
    }
    .stexo-dashboard-cards .stexo-stat-card:hover .stexo-stat-icon {
        transform: none !important;
    }
}

/* Progress bar in stat cards */
.stexo-stat-progress {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
}
.stexo-stat-progress .progress-bar {
    border-radius: 3px;
    background: var(--stexo-primary);
}

.stexo-card .card-body { padding: 24px; }
.stexo-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eff2f7;
    padding: 16px 24px;
    font-weight: 600;
    color: #495057;
    
}

/* Buttons - blue like image */
a.btn.btn-primary.stexo-btn-primary {
    font-size:13px;
}
.btn-primary.stexo-btn-primary,
.stexo-btn-primary {
    background: var(--stexo-primary);
    border-color: var(--stexo-primary);
    border-radius: 6px;
}
.btn-primary.stexo-btn-primary:hover,
.stexo-btn-primary:hover {
    background: var(--stexo-primary-dark);
    border-color: var(--stexo-primary-dark);
}

/* Pagination - theme-aligned Previous/Next and page links (Bootstrap 5 markup) */
.pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    gap: 4px;
}
.pagination .page-item {
    display: inline-block;
}
.pagination .page-link {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    text-decoration: none;
    min-width: 2.25rem;
    text-align: center;
}
.pagination .page-link:hover {
    background: #f8fafc;
    border-color: var(--stexo-primary, #0d9488);
    color: var(--stexo-primary, #0d9488);
}
.pagination .page-item.active .page-link {
    background: var(--stexo-primary, #0d9488);
    border-color: var(--stexo-primary, #0d9488);
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* User dropdown */
.stexo-user-dropdown .dropdown-toggle::after { margin-left: 8px; color:white;}
.stexo-user-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
}
.stexo-user-dropdown .dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Tables */
.stexo-table { margin-bottom: 0; }
.stexo-table thead th {
    border-bottom: 1px solid #eff2f7;
    color: #495057;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
}
.stexo-table tbody td {
    padding: 16px 24px;
    vertical-align: middle;
}
.stexo-table tbody tr:hover { background: #f8f9fa; }

/* Alerts */
.stexo-alert { border: none; border-radius: 8px; }

/* Badges */
.badge.bg-soft-success { background: rgba(40, 199, 111, 0.15); color: #28a745; }
.badge.bg-soft-secondary { background: rgba(108, 117, 125, 0.15); color: #6c757d; }
.badge.bg-soft-danger { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.badge.bg-soft-primary { background: rgba(74, 123, 255, 0.15); color: var(--stexo-primary); }

/* Sidebar collapse on mobile */
@media (max-width: 991.98px) {
    .stexo-sidebar {
        transform: translateX(-100%);
    }
    .stexo-sidebar.show {
        transform: translateX(0);
    }
    .stexo-right {
        margin-left: 0;
    }
}

/* Vertical menu toggle (desktop): collapsed sidebar */
.stexo-sidebar-collapsed .stexo-sidebar {
    width: 72px;
    min-width: 72px;
    overflow: hidden;
}
.stexo-sidebar-collapsed .stexo-right {
    margin-left: 72px;
}
.stexo-sidebar-collapsed .stexo-sidebar-brand {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
}
.stexo-sidebar-collapsed .stexo-sidebar-brand a,
.stexo-sidebar-collapsed .stexo-erp-brand__link {
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.stexo-sidebar-collapsed .stexo-sidebar-brand img {
    max-height: 32px;
    width: auto !important;
    max-width: 100%;
    margin: 0 auto;
}
.stexo-sidebar-collapsed .stexo-erp-brand__title,
.stexo-sidebar-collapsed .stexo-erp-brand__sub,
.stexo-sidebar-collapsed .stexo-erp-brand__link > span:not(.stexo-erp-brand__icon) {
    display: none !important;
}
.stexo-sidebar-collapsed .stexo-erp-brand__icon {
    margin: 0;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav {
    overflow-x: hidden;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-title {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link {
    padding: 0 !important;
    margin: 4px auto !important;
    width: 48px;
    min-height: 44px;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
    white-space: nowrap;
    color: transparent;
    gap: 0 !important;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link i {
    margin: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    flex-shrink: 0;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link span,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link .nav-section-badge {
    display: none !important;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle {
    padding: 0 !important;
    margin: 4px auto !important;
    width: 48px !important;
    min-height: 44px;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
    color: transparent;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle > span {
    font-size: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    flex: 0 0 auto;
    min-width: 0;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle > span i,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle > i:first-child {
    font-size: 1.2rem !important;
    margin: 0 !important;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle .bi-chevron-down {
    display: none !important;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .collapse,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-menu {
    display: none !important;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-menu .nav-link {
    padding-left: 0;
}
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section {
    margin-bottom: 2px;
}
.stexo-sidebar-collapsed .stexo-sidebar-footer {
    padding: 12px 8px;
}
.stexo-sidebar-collapsed .stexo-erp-sidebar-user__info,
.stexo-sidebar-collapsed .stexo-erp-sidebar-user__toggle::after {
    display: none !important;
}
.stexo-sidebar-collapsed .stexo-erp-sidebar-user__toggle {
    justify-content: center;
    padding: 4px 0;
}
.stexo-sidebar-collapsed .stexo-erp-sidebar-user__avatar {
    margin: 0 auto;
}

/* ========== Dashboard (Edudash-like) ========== */
.stexo-dashboard-wrap { width: 100%; }

.stexo-stat-card {
    position: relative;
    padding: 18px 18px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.stexo-stat-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.stexo-stat-card .stexo-stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.stexo-stat-card .stexo-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    margin: 0;
}
.stexo-stat-card .stexo-stat-sub {
    margin-top: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.stexo-stat-card .stexo-stat-pct {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 600;
}
.stexo-stat-card .stexo-stat-icon {
    position: static;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}
.stexo-stat-card--peach { background: linear-gradient(135deg, #ffffff 0%, #fff7ed 55%, #ffffff 100%); }
.stexo-stat-card--blue { background: linear-gradient(135deg, #ffffff 0%, #eff6ff 55%, #ffffff 100%); }
.stexo-stat-card--purple { background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 55%, #ffffff 100%); }
.stexo-stat-card--mint { background: linear-gradient(135deg, #ffffff 0%, #ecfeff 55%, #ffffff 100%); }
.stexo-stat-card--amber { background: linear-gradient(135deg, #ffffff 0%, #fffbeb 55%, #ffffff 100%); }
.stexo-stat-card--rose { background: linear-gradient(135deg, #ffffff 0%, #fff1f2 55%, #ffffff 100%); }
.stexo-stat-card--amber .stexo-stat-icon { background: linear-gradient(145deg, #fbbf24, #f59e0b); }
.stexo-stat-card--rose .stexo-stat-icon { background: linear-gradient(145deg, #f87171, #ef4444); }
.stexo-stat-card--peach .stexo-stat-icon { background: linear-gradient(145deg, #fb923c, #f97316); }
.stexo-stat-number--sm { font-size: 1.25rem !important; }
.stexo-stat-pct--down { color: #dc2626 !important; }
.stexo-dot--danger { background: #ef4444; }
.stexo-stat-card--blue .stexo-stat-icon { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.stexo-stat-card--purple .stexo-stat-icon { background: linear-gradient(145deg, #a78bfa, #6d28d9); }
.stexo-stat-card--mint .stexo-stat-icon { background: linear-gradient(145deg, #34d399, #0ea5a4); }

.stexo-panel {
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06) !important;
}
.stexo-panel__header {
    background: #fff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px !important;
}
.stexo-panel__title { font-weight: 700; color: #0f172a; }
.stexo-panel__meta { font-size: 0.85rem; color: #64748b; margin-top: 2px; }
.stexo-panel__actions .btn { border-radius: 10px; }

.stexo-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
.stexo-dot--primary { background: var(--stexo-primary); }
.stexo-dot--warning { background: #f59e0b; }
.stexo-dot--success { background: #10b981; }
.stexo-dot--purple { background: #8b5cf6; }
.stexo-dot--teal { background: #14b8a6; }

.stexo-chart-placeholder {
    background: #fff;
    border: 1px dashed rgba(148, 163, 184, 0.8);
    border-radius: 14px;
    padding: 18px;
}
.stexo-chart-bars {
    height: 220px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 6px 2px 0;
}
.stexo-chart-bars span {
    flex: 1;
    border-radius: 10px 10px 8px 8px;
    background: linear-gradient(180deg, rgba(16, 135, 137, 0.85) 0%, rgba(16, 135, 137, 0.35) 100%);
}
.stexo-chart-bars span:nth-child(even) {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.9) 0%, rgba(245, 158, 11, 0.35) 100%);
}
.stexo-chart-labels {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    font-size: 0.75rem;
    color: #94a3b8;
}
.stexo-chart-labels span { text-align: center; }

.stexo-att-row {
    display: grid;
    grid-template-columns: 110px 1fr 44px;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}
.stexo-att-label { font-weight: 600; color: #334155; font-size: 0.85rem; }
.stexo-att-val { text-align: right; font-weight: 700; color: #0f172a; font-size: 0.85rem; }
.stexo-att-bar {
    height: 12px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}
.stexo-att-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #10b981;
}
.stexo-att-bar--warning span { background: #f59e0b; }
.stexo-att-bar--purple span { background: #8b5cf6; }
.stexo-att-bar--teal span { background: #14b8a6; }

.stexo-calendar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 135, 137, 0.07);
    border: 1px solid rgba(16, 135, 137, 0.12);
    border-radius: 999px;
    padding: 8px 10px;
    margin-bottom: 12px;
}
.stexo-calendar__month { font-weight: 700; color: #0f172a; font-size: 0.9rem; }
.stexo-cal-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.stexo-cal-btn:hover { background: #f8fafc; color: #0f172a; }
.stexo-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.stexo-calendar__dow {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 600;
    padding: 6px 0;
}
.stexo-calendar__day {
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.8rem;
}
.stexo-calendar__day--muted { background: transparent; border-color: transparent; }
.stexo-calendar__day.is-today {
    background: rgba(16, 135, 137, 0.12);
    border-color: rgba(16, 135, 137, 0.22);
    color: var(--stexo-primary-dark);
}

@media (max-width: 575.98px) {
    .stexo-att-row { grid-template-columns: 92px 1fr 40px; }
}

/* Admin dashboard (school admin layout) */
.stexo-admin-dashboard .stexo-chart-canvas-wrap {
    position: relative;
    min-height: 220px;
}
.stexo-notice-list .stexo-notice-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.stexo-notice-list .stexo-notice-item:last-child { border-bottom: none; padding-bottom: 0; }
.stexo-notice-item__date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--stexo-primary);
    margin-bottom: 4px;
}
.stexo-notice-item__title { font-weight: 700; color: #0f172a; font-size: 0.9rem; }
.stexo-notice-item__text { font-size: 0.8rem; color: #64748b; margin-top: 4px; }

.stexo-att-summary li {
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
}

.stexo-exam-stats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.stexo-exam-stats li:last-child { border-bottom: none; }
.stexo-exam-stats__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #334155;
    font-size: 0.88rem;
}
.stexo-exam-stats__val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.stexo-top-student {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stexo-top-student__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #e0f2fe, #cffafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--stexo-primary-dark);
    flex-shrink: 0;
}
.stexo-top-student__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stexo-top-student__info { flex: 1; min-width: 0; }
.stexo-top-student__name { font-weight: 700; font-size: 0.9rem; color: #0f172a; }
.stexo-top-student__score {
    font-weight: 700;
    color: #10b981;
    font-size: 0.95rem;
}

.stexo-event-list .stexo-event-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.stexo-event-list .stexo-event-item:last-child { border-bottom: none; }
.stexo-event-item__date {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    background: rgba(16, 135, 137, 0.08);
    border-radius: 10px;
    padding: 8px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--stexo-primary-dark);
    line-height: 1.2;
}
.stexo-event-item__title { font-weight: 700; font-size: 0.88rem; color: #0f172a; }

.stexo-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}
.stexo-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #334155;
    padding: 12px 8px;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.stexo-quick-action:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-2px);
}
.stexo-quick-action__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}
.stexo-quick-action__icon--blue { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.stexo-quick-action__icon--green { background: linear-gradient(145deg, #34d399, #10b981); }
.stexo-quick-action__icon--purple { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.stexo-quick-action__icon--teal { background: linear-gradient(145deg, #2dd4bf, #0d9488); }
.stexo-quick-action__icon--orange { background: linear-gradient(145deg, #fb923c, #ea580c); }
.stexo-quick-action__icon--indigo { background: linear-gradient(145deg, #818cf8, #4f46e5); }
.stexo-quick-action__icon--pink { background: linear-gradient(145deg, #f472b6, #db2777); }
.stexo-quick-action__icon--slate { background: linear-gradient(145deg, #94a3b8, #475569); }
.stexo-quick-action__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}

.stexo-transport-stats { font-size: 0.88rem; }

/* Impersonation banner */
.stexo-impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #78350f;
    border-bottom: 1px solid #f59e0b !important;
}

/* ========== Teacher portal (mobile app style) ========== */
.stexo-teacher-portal {
    background: #f1f5f9;
}
.stexo-teacher-layout {
    display: flex;
    min-height: 100vh;
}
.stexo-teacher-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    flex-direction: column;
    padding: 16px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.stexo-teacher-sidebar__brand {
    text-align: center;
    margin-bottom: 16px;
}
.stexo-teacher-sidebar__logo {
    max-height: 48px;
    max-width: 100%;
    margin-bottom: 8px;
}
.stexo-teacher-sidebar__school {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
}
.stexo-teacher-profile-card {
    background: linear-gradient(160deg, #ecfeff 0%, #fff 100%);
    border: 1px solid rgba(16, 135, 137, 0.15);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}
.stexo-teacher-profile-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--stexo-primary), #0d9488);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.stexo-teacher-profile-card__name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}
.stexo-teacher-profile-card__role,
.stexo-teacher-profile-card__id {
    font-size: 0.78rem;
    color: #64748b;
}
.stexo-teacher-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.stexo-teacher-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
}
.stexo-teacher-nav__link:hover {
    background: #f8fafc;
    color: #0f172a;
}
.stexo-teacher-nav__link.active {
    background: rgba(16, 135, 137, 0.12);
    color: var(--stexo-primary-dark);
    font-weight: 600;
}
.stexo-teacher-sidebar__session {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.stexo-teacher-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.stexo-teacher-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.stexo-teacher-topbar__menu {
    font-size: 1.4rem;
    color: #334155;
    padding: 0;
}
.stexo-teacher-topbar__search {
    flex: 1;
    max-width: 420px;
    position: relative;
}
.stexo-teacher-topbar__search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.stexo-teacher-topbar__search .form-control {
    padding-left: 36px;
    border-radius: 999px;
    background: #f8fafc;
    border-color: transparent;
}
.stexo-teacher-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.stexo-teacher-topbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: #f8fafc;
    text-decoration: none;
}
.stexo-teacher-topbar__user {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.stexo-teacher-topbar__avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--stexo-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.stexo-teacher-topbar__name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
}
.stexo-teacher-topbar__sub {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
}

.stexo-teacher-content {
    padding: 16px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 992px) {
    .stexo-teacher-content {
        padding: 20px 24px 24px;
        padding-bottom: 24px;
    }
}

.stexo-teacher-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}
.stexo-teacher-bottomnav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    max-width: 80px;
}
.stexo-teacher-bottomnav__item i {
    font-size: 1.25rem;
}
.stexo-teacher-bottomnav__item.active {
    color: var(--stexo-primary);
}
.stexo-teacher-bottomnav__item.active i {
    color: var(--stexo-primary);
}

.stexo-teacher-drawer {
    position: fixed;
    inset: 0;
    z-index: 1060;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.2s;
}
.stexo-teacher-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}
.stexo-teacher-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.2s;
}
.stexo-teacher-drawer.is-open .stexo-teacher-drawer__backdrop {
    opacity: 1;
}
.stexo-teacher-drawer__panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 88vw);
    background: #fff;
    padding: 20px 16px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
}
.stexo-teacher-drawer.is-open .stexo-teacher-drawer__panel {
    transform: translateX(0);
}

.stexo-teacher-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.stexo-teacher-hero__avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--stexo-primary), #0d9488);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stexo-teacher-hero__greeting {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}
.stexo-teacher-greeting__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.stexo-teacher-kpis-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px 8px;
}
@media (min-width: 992px) {
    .stexo-teacher-kpis-scroll {
        margin: 0;
        padding: 0;
        overflow: visible;
    }
}
.stexo-teacher-kpis {
    display: flex;
    gap: 12px;
    min-width: min-content;
}
@media (min-width: 992px) {
    .stexo-teacher-kpis {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-width: 0;
    }
}
.stexo-teacher-kpi {
    flex: 0 0 148px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 992px) {
    .stexo-teacher-kpi { flex: none; }
}
.stexo-teacher-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    color: inherit;
}
.stexo-teacher-kpi__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 10px;
}
.stexo-teacher-kpi--blue .stexo-teacher-kpi__icon { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.stexo-teacher-kpi--green .stexo-teacher-kpi__icon { background: linear-gradient(145deg, #34d399, #10b981); }
.stexo-teacher-kpi--teal .stexo-teacher-kpi__icon { background: linear-gradient(145deg, #2dd4bf, #0d9488); }
.stexo-teacher-kpi--orange .stexo-teacher-kpi__icon { background: linear-gradient(145deg, #fb923c, #ea580c); }
.stexo-teacher-kpi--purple .stexo-teacher-kpi__icon { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.stexo-teacher-kpi__val {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.stexo-teacher-kpi__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}
.stexo-teacher-kpi__link {
    font-size: 0.7rem;
    color: var(--stexo-primary);
    font-weight: 600;
    margin-top: 6px;
}

.stexo-teacher-composer {
    display: flex;
    gap: 12px;
    align-items: center;
}
.stexo-teacher-composer__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #3b82f6, var(--teacher-primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.stexo-teacher-composer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stexo-teacher-timeline__item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.stexo-teacher-timeline__item:last-child { border-bottom: none; }
.stexo-teacher-timeline__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stexo-teacher-timeline__icon--success { background: #d1fae5; color: #059669; }
.stexo-teacher-timeline__icon--primary { background: #dbeafe; color: #2563eb; }
.stexo-teacher-timeline__icon--info { background: #e0f2fe; color: #0284c7; }
.stexo-teacher-timeline__text { font-size: 0.88rem; font-weight: 500; color: #334155; }
.stexo-teacher-timeline__meta { font-size: 0.75rem; color: #94a3b8; }

.stexo-teacher-timetable__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.stexo-teacher-timetable__row:last-child { border-bottom: none; }
.stexo-teacher-timetable__time {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    width: 72px;
    flex-shrink: 0;
}
.stexo-teacher-timetable__body { flex: 1; min-width: 0; }
.stexo-teacher-status {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
}
.stexo-teacher-status--completed { background: #d1fae5; color: #047857; }
.stexo-teacher-status--ongoing { background: #dbeafe; color: #1d4ed8; }
.stexo-teacher-status--upcoming { background: #f1f5f9; color: #475569; }

.stexo-teacher-quicklinks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}
.stexo-teacher-quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease;
}
.stexo-teacher-quicklink:hover {
    color: #fff;
    transform: translateY(-2px);
}
.stexo-teacher-quicklink i { font-size: 1.35rem; }
.stexo-teacher-quicklink--teal { background: linear-gradient(145deg, #14b8a6, #0d9488); }
.stexo-teacher-quicklink--blue { background: linear-gradient(145deg, #3b82f6, #2563eb); }
.stexo-teacher-quicklink--purple { background: linear-gradient(145deg, #8b5cf6, #6d28d9); }
.stexo-teacher-quicklink--green { background: linear-gradient(145deg, #22c55e, #16a34a); }
.stexo-teacher-quicklink--indigo { background: linear-gradient(145deg, #6366f1, #4338ca); }
.stexo-teacher-quicklink--orange { background: linear-gradient(145deg, #f97316, #ea580c); }
.stexo-teacher-quicklink--pink { background: linear-gradient(145deg, #ec4899, #db2777); }
.stexo-teacher-quicklink--slate { background: linear-gradient(145deg, #64748b, #475569); }

.stexo-teacher-profile-panel__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--stexo-primary), #0d9488);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stexo-teacher-mini-stat {
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 4px;
}

/* Teacher portal v2 — Edudash-style (royal blue) */
.stexo-teacher-portal {
    --teacher-primary: #2563eb;
    --teacher-primary-dark: #1d4ed8;
    --teacher-primary-soft: #eff6ff;
    font-family: 'Inter', 'Poppins', system-ui, sans-serif;
}
.stexo-teacher-btn-primary {
    background: var(--teacher-primary) !important;
    border-color: var(--teacher-primary) !important;
}
.stexo-teacher-btn-primary:hover {
    background: var(--teacher-primary-dark) !important;
    border-color: var(--teacher-primary-dark) !important;
}

.stexo-teacher-global-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.stexo-teacher-global-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    max-width: 100%;
}
@media (min-width: 992px) {
    .stexo-teacher-global-header__inner { padding: 10px 20px; }
}
.stexo-teacher-global-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.stexo-teacher-global-header__logo {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}
.stexo-teacher-global-header__school {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    display: none;
}
@media (min-width: 576px) {
    .stexo-teacher-global-header__school { display: block; }
}
.stexo-teacher-global-header__search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.stexo-teacher-global-header__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.stexo-teacher-global-header__search .form-control {
    padding: 10px 14px 10px 40px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid transparent;
    font-size: 0.875rem;
}
.stexo-teacher-global-header__nav {
    gap: 4px;
}
.stexo-teacher-global-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}
.stexo-teacher-global-header__nav-link:hover {
    background: #f8fafc;
    color: #0f172a;
}
.stexo-teacher-global-header__nav-link.active {
    background: var(--teacher-primary-soft);
    color: var(--teacher-primary);
    font-weight: 600;
}
.stexo-teacher-global-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.stexo-teacher-global-header__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: #f8fafc;
    text-decoration: none;
    position: relative;
}
.stexo-teacher-global-header__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #ef4444;
    color: #fff;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stexo-teacher-global-header__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 4px 8px 4px 4px;
    border-radius: 10px;
}
.stexo-teacher-global-header__profile:hover { background: #f8fafc; }
.stexo-teacher-global-header__profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, #3b82f6, var(--teacher-primary));
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.stexo-teacher-global-header__profile-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}
.stexo-teacher-global-header__profile-sub {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
}

.stexo-teacher-portal .stexo-teacher-layout {
    min-height: calc(100vh - 58px);
}
.stexo-teacher-portal .stexo-teacher-sidebar {
    width: 268px;
    top: 0;
    height: calc(100vh - 58px);
    position: sticky;
    background: #fff;
    padding: 20px 16px;
}
.stexo-teacher-portal .stexo-teacher-profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.stexo-teacher-portal .stexo-teacher-profile-card__avatar {
    width: 88px;
    height: 88px;
    font-size: 2rem;
    background: linear-gradient(145deg, #3b82f6, var(--teacher-primary));
    overflow: hidden;
}
.stexo-teacher-portal .stexo-teacher-profile-card__name {
    font-size: 1rem;
    margin-top: 4px;
}
.stexo-teacher-portal .stexo-teacher-profile-card__name .bi-patch-check-fill {
    color: var(--teacher-primary) !important;
}
.stexo-teacher-profile-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0;
    text-align: center;
}
.stexo-teacher-profile-card__stats strong {
    display: block;
    font-size: 1rem;
    color: #0f172a;
}
.stexo-teacher-profile-card__stats span {
    font-size: 0.68rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.stexo-teacher-session-card {
    margin-top: auto;
    padding: 12px 14px;
    background: var(--teacher-primary-soft);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
}
.stexo-teacher-portal .stexo-teacher-nav__link.active {
    background: var(--teacher-primary-soft);
    color: var(--teacher-primary-dark);
    border-left: 3px solid var(--teacher-primary);
    padding-left: 9px;
}
.stexo-teacher-nav__badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
}
.stexo-teacher-portal .stexo-teacher-bottomnav__item.active {
    color: var(--teacher-primary);
}

.stexo-teacher-page-head__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.stexo-teacher-page-head__sub {
    color: #64748b;
    font-size: 0.9rem;
}
.stexo-teacher-portal .stexo-teacher-kpi {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}
.stexo-teacher-portal .stexo-teacher-kpi__icon {
    margin-bottom: 0;
    flex-shrink: 0;
}
.stexo-teacher-kpi--pink .stexo-teacher-kpi__icon { background: linear-gradient(145deg, #f472b6, #db2777); }
.stexo-teacher-portal .stexo-teacher-kpi__link {
    color: var(--teacher-primary);
}
.stexo-teacher-composer-card .card-body { padding: 16px 18px; }
.stexo-teacher-composer__input {
    border-radius: 10px;
    background: #f8fafc;
    border-color: #e2e8f0;
    padding: 12px 14px;
}
.stexo-teacher-composer__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    text-decoration: none;
}
.stexo-teacher-composer__chip.disabled {
    opacity: 0.55;
    pointer-events: none;
}
.stexo-teacher-composer__chip:not(.disabled):hover {
    background: #e2e8f0;
    color: #0f172a;
}
.stexo-teacher-date-badge {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 600;
}
.stexo-teacher-portal .stexo-teacher-timetable__time {
    width: auto;
    min-width: 118px;
    font-size: 0.72rem;
    line-height: 1.3;
}
.stexo-teacher-event {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.stexo-teacher-event:last-child { border-bottom: none; }
.stexo-teacher-event__date {
    width: 48px;
    text-align: center;
    background: var(--teacher-primary-soft);
    border-radius: 10px;
    padding: 6px 4px;
    flex-shrink: 0;
}
.stexo-teacher-event__mon {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--teacher-primary);
    text-transform: uppercase;
}
.stexo-teacher-event__day {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}
.stexo-teacher-event__title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #0f172a;
}
.stexo-teacher-event__meta {
    font-size: 0.78rem;
    color: #64748b;
}
.stexo-teacher-donut {
    width: 160px;
    height: 160px;
}
.stexo-teacher-chart-wrap {
    height: 240px;
}
.stexo-teacher-announcement {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.stexo-teacher-announcement:last-child { border-bottom: none; }
.stexo-teacher-announcement__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stexo-teacher-announcement__title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #0f172a;
}
.stexo-teacher-announcement__meta {
    font-size: 0.75rem;
    color: #94a3b8;
}
.stexo-teacher-portal .stexo-teacher-quicklinks {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.stexo-teacher-quicklink--cyan { background: linear-gradient(145deg, #22d3ee, #0891b2); }
.stexo-teacher-portal .stexo-panel {
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}
.stexo-teacher-portal .stexo-topbar-page-title { display: none; }
.stexo-teacher-portal .stexo-page-header {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

/* Impersonate modal */
.stexo-impersonate-modal .modal-content {
    border-radius: 14px;
}
.stexo-impersonate-modal__avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stexo-impersonate-modal__user {
    border: 1px solid #e2e8f0 !important;
}

/* Teacher profile photo */
.stexo-teacher-profile-card__avatar img,
.stexo-teacher-global-header__profile-avatar img,
.stexo-teacher-composer__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.stexo-teacher-portal .stexo-teacher-profile-card__avatar img {
    border-radius: 50%;
}
.stexo-teacher-global-header__profile-avatar img {
    border-radius: 10px;
}
.stexo-teacher-composer__avatar img {
    border-radius: 12px;
}
.stexo-teacher-profile-upload__preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.stexo-teacher-profile-upload__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Login page — School ERP split card */
.stexo-auth-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #eef2f7;
    color: #334155;
}
.stexo-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.stexo-auth-card {
    display: flex;
    width: 100%;
    max-width: 980px;
    min-height: 580px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
}
.stexo-auth-visual {
    flex: 0 0 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #002b5b 0%, #0a4a8a 38%, #3b8fd9 100%);
    color: #fff;
    overflow: hidden;
}
.stexo-auth-visual__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 85% 15%, rgba(126, 200, 255, 0.15) 0%, transparent 35%);
    pointer-events: none;
}
.stexo-auth-visual__brand {
    position: relative;
    z-index: 2;
    padding: 36px 36px 0;
}
.stexo-auth-visual__logo {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
}
.stexo-auth-visual__logo svg {
    width: 100%;
    height: 100%;
    display: block;
}
.stexo-auth-visual__title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.stexo-auth-visual__title-accent {
    color: #4da3ff;
}
.stexo-auth-visual__subtitle {
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
}
.stexo-auth-visual__divider {
    width: 42px;
    height: 3px;
    margin-top: 18px;
    border-radius: 999px;
    background: #1a73e8;
}
.stexo-auth-visual__copy {
    position: relative;
    z-index: 2;
    padding: 28px 36px 0;
}
.stexo-auth-visual__headline {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
}
.stexo-auth-visual__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 320px;
}
.stexo-auth-visual__scene {
    position: relative;
    z-index: 1;
    flex: 1;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
}
.stexo-auth-scene {
    width: 100%;
    height: auto;
    display: block;
}
.stexo-auth-main {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
    background: #fff;
    min-width: 0;
}
.stexo-auth-main__inner {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}
.stexo-auth-form-wrap {
    width: 100%;
}
.stexo-auth-header {
    margin-bottom: 28px;
}
.stexo-auth-heading {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.stexo-auth-heading-line {
    width: 48px;
    height: 4px;
    margin: 10px 0 12px;
    border-radius: 999px;
    background: #1a73e8;
}
.stexo-auth-lead {
    margin: 0;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
}
.stexo-auth-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}
.stexo-auth-input-wrap {
    position: relative;
}
.stexo-auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}
.stexo-auth-input-wrap .stexo-auth-input {
    padding: 12px 14px 12px 42px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #0f172a;
    background: #fff;
    box-shadow: none;
}
.stexo-auth-input-wrap .stexo-auth-input::placeholder {
    color: #94a3b8;
}
.stexo-auth-input-wrap .stexo-auth-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
.stexo-auth-input-wrap--password .stexo-auth-input {
    padding-right: 46px;
}
.stexo-auth-toggle-pw {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 8px 10px;
    border-radius: 8px;
    line-height: 1;
}
.stexo-auth-toggle-pw:hover {
    color: #64748b;
    background: #f1f5f9;
}
.stexo-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.stexo-auth-remember .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.15em;
    border-color: #cbd5e1;
    border-radius: 4px;
}
.stexo-auth-remember .form-check-input:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}
.stexo-auth-remember .form-check-label {
    font-size: 0.88rem;
    color: #64748b;
    margin-left: 4px;
}
.stexo-auth-forgot {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a73e8;
    text-decoration: none;
}
.stexo-auth-forgot:hover {
    color: #1557b0;
    text-decoration: underline;
}
.stexo-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #1a73e8;
    border: none;
    border-radius: 10px;
    transition: background 0.15s ease;
}
.stexo-auth-submit:hover,
.stexo-auth-submit:focus {
    color: #fff;
    background: #1557b0;
}
.stexo-auth-divider {
    position: relative;
    margin: 22px 0;
    text-align: center;
}
.stexo-auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e2e8f0;
}
.stexo-auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 14px;
    font-size: 0.82rem;
    color: #94a3b8;
    background: #fff;
}
.stexo-auth-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #334155;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.stexo-auth-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
.stexo-auth-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.stexo-auth-copyright {
    margin: 28px 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}
.stexo-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}
.stexo-auth-back-link:hover {
    color: #1a73e8;
}
.stexo-auth-status,
.stexo-auth-alert {
    width: 100%;
    font-size: 0.88rem;
    line-height: 1.45;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.stexo-auth-status {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.stexo-auth-alert {
    border: none;
}
@media (max-width: 991.98px) {
    .stexo-auth-card {
        flex-direction: column;
        max-width: 520px;
        min-height: 0;
    }
    .stexo-auth-visual,
    .stexo-auth-main {
        flex: 1 1 auto;
        width: 100%;
    }
    .stexo-auth-visual {
        min-height: 320px;
    }
    .stexo-auth-visual__brand {
        padding: 28px 28px 0;
    }
    .stexo-auth-visual__copy {
        padding: 20px 28px 0;
    }
    .stexo-auth-visual__scene {
        max-height: 180px;
        overflow: hidden;
    }
    .stexo-auth-main {
        padding: 36px 28px 32px;
    }
}
@media (max-width: 575.98px) {
    .stexo-auth-page {
        padding: 12px;
    }
    .stexo-auth-card {
        border-radius: 12px;
    }
    .stexo-auth-main {
        padding: 28px 22px 24px;
    }
    .stexo-auth-heading {
        font-size: 1.55rem;
    }
}

/* ========== School ERP Admin Theme ========== */
.stexo-erp-admin {
    --stexo-sidebar-bg: #002b7a;
    --stexo-sidebar-hover: rgba(255, 255, 255, 0.1);
    --stexo-sidebar-active: #1a73e8;
    --stexo-body-bg: #f0f4f8;
    --stexo-topbar-bg: #f8fafc;
    --stexo-primary: #1a73e8;
    font-family: 'Inter', system-ui, sans-serif;
}
.stexo-erp-admin.stexo-body { background: var(--stexo-body-bg); }
.stexo-erp-admin .stexo-sidebar {
    background: linear-gradient(180deg, #002b7a 0%, #003d8f 55%, #00408f 100%);
    border-right: none;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(0, 20, 60, 0.15);
}
.stexo-erp-admin .stexo-sidebar-brand {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px 18px;
}
.stexo-erp-brand__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}
.stexo-erp-brand__icon {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stexo-erp-brand__icon-book {
    font-size: 1.65rem;
    color: #fff;
    line-height: 1;
}
.stexo-erp-brand__icon-cap {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1;
    transform: rotate(-8deg);
}
.stexo-erp-brand__title {
    display: block;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.01em;
}
.stexo-erp-brand__accent {
    font-weight: 700;
    color: #7ec8ff;
}
.stexo-erp-brand__sub {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 3px;
    font-weight: 400;
}
.stexo-erp-admin .stexo-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.stexo-erp-admin .stexo-sidebar-nav::-webkit-scrollbar {
    width: 5px;
}
.stexo-erp-admin .stexo-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}
.stexo-erp-admin .stexo-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    transition: background 0.15s ease;
}
.stexo-erp-admin .stexo-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.42);
}
.stexo-erp-admin .stexo-sidebar-nav:hover {
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
/* ---- ERP sidebar: main & sub menu ---- */
.stexo-erp-admin .stexo-sidebar-nav .nav-section {
    margin-bottom: 4px;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-title {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 14px 6px;
    margin: 0;
    display: block;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-title:first-child {
    padding-top: 4px;
}

/* Top-level links (Dashboard, etc.) */
.stexo-erp-admin .stexo-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    border-left: none;
    border-radius: 10px;
    margin: 2px 6px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-link i {
    color: rgba(255, 255, 255, 0.75);
    width: 1.25rem;
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-right: 0 !important;
    opacity: 1;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-link:hover {
    background: var(--stexo-sidebar-hover);
    color: #fff;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-link:hover i {
    color: #fff;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-link.active {
    background: var(--stexo-sidebar-active) !important;
    color: #fff !important;
    border-left: none;
    box-shadow: 0 2px 10px rgba(26, 115, 232, 0.4);
    font-weight: 600;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-link.active i {
    color: #fff !important;
}

/* Main menu (collapsible parents) */
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 12px);
    margin: 2px 6px;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle > span {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle > span i {
    width: 1.25rem;
    font-size: 1.05rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.75);
    margin-right: 0 !important;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle .bi-chevron-down {
    font-size: 0.8rem;
    opacity: 0.65;
    transition: transform 0.2s ease, opacity 0.15s ease;
    flex-shrink: 0;
    margin-left: 6px;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle:hover {
    background: var(--stexo-sidebar-hover);
    color: #fff;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle:hover .bi-chevron-down {
    opacity: 1;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
    opacity: 0.9;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle.is-parent-active {
    background: var(--stexo-sidebar-active) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(26, 115, 232, 0.4);
    font-weight: 600;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle.is-parent-active > span i,
.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle.is-parent-active .bi-chevron-down {
    color: #fff;
    opacity: 1;
}

/* Sub-menu */
.stexo-erp-admin .stexo-sidebar-nav .nav-section-menu {
    list-style: none;
    padding: 4px 6px 8px 10px;
    margin: 0 6px 4px;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-menu .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 9px 12px 9px 14px;
    margin: 2px 0;
    border-radius: 10px;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-menu .nav-link i {
    font-size: 1rem;
    width: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-menu .nav-link:hover i {
    color: #fff;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-menu .nav-link.active {
    background: var(--stexo-sidebar-active) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
}
.stexo-erp-admin .stexo-sidebar-nav .nav-section-menu .nav-link.active i {
    color: #fff !important;
}

/* Submenu group labels (main menu → grouped sub items) */
.stexo-erp-admin .stexo-sidebar-nav .nav-submenu-group {
    list-style: none;
    margin: 0;
    padding: 0;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-submenu-group__label {
    display: block;
    padding: 10px 14px 4px;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    user-select: none;
    pointer-events: none;
}
.stexo-erp-admin .stexo-sidebar-nav .nav-submenu-group:first-child .nav-submenu-group__label {
    margin-top: 0;
    padding-top: 4px;
}

/* Desktop flyout submenus — open beside sidebar, no long scroll inside nav */
@media (min-width: 992px) {
    body.stexo-erp-admin .stexo-sidebar-nav .nav-section > .collapse.stexo-nav-flyout {
        position: fixed !important;
        z-index: 1100;
        min-width: 240px;
        max-width: 300px;
        max-height: min(75vh, 520px);
        overflow-x: hidden;
        overflow-y: auto;
        background: #0c2d52;
        border-radius: 12px;
        padding: 8px 6px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
        border: 1px solid rgba(255, 255, 255, 0.12);
        margin: 0 !important;
    }
    body.stexo-erp-admin .stexo-sidebar-nav .nav-section > .collapse.stexo-nav-flyout.collapsing {
        transition: none !important;
        height: auto !important;
    }
    body.stexo-erp-admin:not(.stexo-sidebar-collapsed) .stexo-sidebar-nav .nav-section > .collapse.stexo-nav-flyout:not(.show) {
        display: none !important;
    }
    body.stexo-erp-admin.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section > .collapse.stexo-nav-flyout.show {
        display: block !important;
    }
    body.stexo-erp-admin .stexo-sidebar-nav .nav-section-toggle[aria-expanded="true"] .bi-chevron-right {
        transform: rotate(90deg);
    }
    body.stexo-erp-admin .stexo-sidebar-nav .nav-section > .collapse.stexo-nav-flyout .nav-section-menu {
        padding: 4px;
        margin: 0;
    }
}

/* Collapsed sidebar: icon-only (ERP theme overrides section titles) */
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav {
    padding: 8px 6px;
    overflow-x: hidden;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-title {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    border: 0 !important;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section {
    margin-bottom: 2px;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link {
    width: 48px;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 10px;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link i {
    color: rgba(255, 255, 255, 0.88) !important;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link:hover i,
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link.active i {
    color: #fff !important;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link.active {
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.45);
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle {
    width: 48px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 10px;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle > span i {
    color: rgba(255, 255, 255, 0.88) !important;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle:hover > span i,
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle.is-parent-active > span i {
    color: #fff !important;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle.is-parent-active {
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.45);
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-brand {
    padding: 16px 10px !important;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-erp-brand__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}
body.stexo-erp-admin .stexo-sidebar-collapsed .stexo-sidebar-footer {
    padding: 12px 8px 16px;
}

.stexo-sidebar-footer {
    padding: 14px 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}
.stexo-erp-sidebar-user__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    width: 100%;
    padding: 6px 4px;
}
.stexo-erp-sidebar-user__toggle::after { margin-left: auto; }
.stexo-erp-sidebar-user__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.stexo-erp-sidebar-user__info { min-width: 0; text-align: left; }
.stexo-erp-sidebar-user__name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stexo-erp-sidebar-user__role {
    display: block;
    font-size: 0.72rem;
    opacity: 0.7;
}
.stexo-erp-topbar {
    height: auto;
    min-height: 76px;
    padding: 16px 24px;
    background: var(--stexo-topbar-bg);
    border-bottom: 1px solid #e8edf3;
    box-shadow: none;
    gap: 16px;
}
.stexo-erp-topbar .stexo-topbar-left {
    flex: 1;
    min-width: 0;
}
.stexo-erp-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.stexo-erp-welcome__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.stexo-erp-welcome__sub {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
}
.stexo-erp-topbar-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.84rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stexo-erp-topbar-select:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.stexo-erp-topbar-select i:first-child {
    color: #64748b;
    font-size: 0.95rem;
}
.stexo-erp-topbar-select__chev {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 2px;
}
.stexo-erp-topbar-bell {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.1rem;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.stexo-erp-topbar-bell:hover {
    border-color: #cbd5e1;
    background: #fff;
}
.stexo-erp-topbar .btn-sidebar-toggle {
    border-radius: 8px;
    border-color: #e2e8f0;
    color: #475569;
}
.stexo-erp-topbar .btn-sidebar-toggle:hover {
    background: #fff;
    border-color: #cbd5e1;
    color: #0f172a;
}
.stexo-erp-topbar-bell__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stexo-erp-admin .stexo-main { background: var(--stexo-body-bg); min-width: 0; }
.stexo-erp-admin .stexo-content { padding: 20px 24px 28px; min-width: 0; overflow-x: auto; }

/* Dashboard widgets */
.stexo-erp-kpi {
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 8px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
    height: 100%;
}
.stexo-erp-kpi__body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.stexo-erp-kpi__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.stexo-erp-kpi--blue .stexo-erp-kpi__icon { background: #dbeafe; color: #2563eb; }
.stexo-erp-kpi--green .stexo-erp-kpi__icon { background: #d1fae5; color: #059669; }
.stexo-erp-kpi--purple .stexo-erp-kpi__icon { background: #ede9fe; color: #7c3aed; }
.stexo-erp-kpi--orange .stexo-erp-kpi__icon { background: #ffedd5; color: #ea580c; }
.stexo-erp-kpi__label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}
.stexo-erp-kpi__value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-top: 2px;
}
.stexo-erp-kpi__value--sm { font-size: 1.25rem; }
.stexo-erp-kpi__sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}
.stexo-erp-kpi__spark {
    width: 100% !important;
    height: 48px !important;
    display: block;
    margin-top: 8px;
}
.stexo-erp-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}
.stexo-erp-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.stexo-erp-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.stexo-erp-card__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
}
.stexo-erp-card__link:hover { text-decoration: underline; }
.stexo-erp-card__body { padding: 18px 20px 20px; }
.stexo-erp-card__foot-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
}
.stexo-erp-donut-center-wrap { position: relative; }
.stexo-erp-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}
.stexo-erp-donut-center strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}
.stexo-erp-donut-center span {
    font-size: 0.68rem;
    color: #64748b;
    max-width: 80px;
    margin-top: 4px;
}
.stexo-erp-legend li,
.stexo-erp-fee-legend li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #475569;
    padding: 4px 0;
}
.stexo-erp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.stexo-erp-dot--green { background: #10b981; }
.stexo-erp-dot--red { background: #ef4444; }
.stexo-erp-dot--yellow { background: #fbbf24; }
.stexo-erp-schedule-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.stexo-erp-schedule-item:last-child { border-bottom: none; padding-bottom: 0; }
.stexo-erp-schedule-item__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.stexo-erp-schedule-item__icon--blue { background: #dbeafe; color: #2563eb; }
.stexo-erp-schedule-item__icon--green { background: #d1fae5; color: #059669; }
.stexo-erp-schedule-item__icon--purple { background: #ede9fe; color: #7c3aed; }
.stexo-erp-schedule-item__icon--orange { background: #ffedd5; color: #ea580c; }
.stexo-erp-schedule-item__icon--teal { background: #ccfbf1; color: #0d9488; }
.stexo-erp-schedule-item__time {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}
.stexo-erp-schedule-item__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
}
.stexo-erp-schedule-item__meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}
.stexo-erp-mini-stat {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 12px;
    height: 100%;
}
.stexo-erp-mini-stat span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 4px;
}
.stexo-erp-mini-stat strong {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 700;
}
.stexo-erp-mini-stat__name { font-size: 0.82rem !important; }
.stexo-erp-announce-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.stexo-erp-announce-item:last-child { border-bottom: none; }
.stexo-erp-announce-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stexo-erp-announce-item__icon--danger { background: #fee2e2; color: #dc2626; }
.stexo-erp-announce-item__icon--primary { background: #dbeafe; color: #2563eb; }
.stexo-erp-announce-item__icon--success { background: #d1fae5; color: #059669; }
.stexo-erp-announce-item__icon--warning { background: #fef3c7; color: #d97706; }
.stexo-erp-announce-item__title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
}
.stexo-erp-announce-item__text {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}
.stexo-erp-announce-item__time {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 4px;
}
.stexo-erp-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.stexo-erp-quick-btn {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.stexo-erp-quick-btn i { color: #1a73e8; font-size: 1.05rem; }
.stexo-erp-quick-btn:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    color: #0f172a;
}
@media (max-width: 991.98px) {
    .stexo-erp-welcome__title { font-size: 1.1rem; }
    .stexo-erp-welcome__sub { display: none; }
    .stexo-erp-topbar-select { display: none !important; }
}

/* Exam setup flow (types → schedule → marks) */
.stexo-exam-setup-flow {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}
.stexo-exam-setup-flow .letter-spacing { letter-spacing: 0.06em; }
.stexo-exam-setup-flow__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.stexo-exam-setup-flow__step {
    position: relative;
    flex: 1 1 160px;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 0.88rem;
}
.stexo-exam-setup-flow__step.is-active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}
.stexo-exam-setup-flow__step.is-done {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}
.stexo-exam-setup-flow__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    flex-shrink: 0;
}
.stexo-exam-setup-flow__step.is-active .stexo-exam-setup-flow__num {
    background: #1a73e8;
    color: #fff;
}
.stexo-exam-setup-flow__step.is-done .stexo-exam-setup-flow__num {
    background: #22c55e;
    color: #fff;
}
.stexo-exam-setup-flow__label { font-weight: 600; }
.stexo-exam-setup-flow__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 10px;
}
