/* ERP Dashboard – Sunrise International School mockup */

body.erp-admin-page,
body.erp-admin-page .main-sidebar.erp-main-sidebar,
body.erp-admin-page .erp-main-sidebar,
body.erp-admin-page .main-header,
body.erp-admin-page .content-wrapper,
body.erp-admin-page .erp-dash-topbar,
body.erp-admin-page .sunrise-dash,
body.erp-admin-page .sidebar-menu,
body.erp-admin-page .erp-sb-brand,
body.erp-admin-page .erp-sb-bottom,
body.erp-admin-page .box,
body.erp-admin-page .sun-kpi,
body.erp-admin-page .sun-card {
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keep Poppins on all sidebar text (main + sub menu) */
body.erp-admin-page .erp-main-sidebar,
body.erp-admin-page .erp-main-sidebar .erp-sb-scroll,
body.erp-admin-page .erp-main-sidebar .sidebar,
body.erp-admin-page .erp-main-sidebar .sidebar-menu,
body.erp-admin-page .erp-main-sidebar .sidebar-menu li,
body.erp-admin-page .erp-main-sidebar .sidebar-menu li a,
body.erp-admin-page .erp-main-sidebar .sidebar-menu li span,
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu,
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu li,
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu li a,
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu li span,
body.erp-admin-page .erp-main-sidebar .erp-sb-menu-text,
body.erp-admin-page .erp-main-sidebar .erp-sb-submenu-text,
body.erp-admin-page .erp-main-sidebar .erp-sb-menu-divider span,
body.erp-admin-page .erp-main-sidebar .erp-sb-section-label,
body.erp-admin-page .erp-main-sidebar .erp-sb-sc-label,
body.erp-admin-page .erp-main-sidebar .erp-sb-sys-label,
body.erp-admin-page .erp-main-sidebar .erp-sb-sys-date,
body.erp-admin-page .erp-main-sidebar .erp-sb-sys-clock,
body.erp-admin-page .erp-main-sidebar .erp-sb-school-name,
body.erp-admin-page .erp-main-sidebar .erp-sb-school-meta {
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif !important;
}

/* Sidebar – always crisp, never glass blur */
body.erp-admin-page .erp-main-sidebar,
body.erp-admin-page .erp-main-sidebar *,
body.erp-admin-page .main-sidebar.erp-main-sidebar,
body.erp-admin-page .main-sidebar.erp-main-sidebar * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-menu-text,
body.erp-admin-page .erp-main-sidebar .erp-sb-submenu-text,
body.erp-admin-page .erp-main-sidebar .erp-sb-school-name,
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Icon fonts must stay FontAwesome / Ionicons */
body.erp-admin-page .erp-main-sidebar .fa,
body.erp-admin-page .erp-main-sidebar .ftlayer,
body.erp-admin-page .erp-main-sidebar [class^="fa-"],
body.erp-admin-page .erp-main-sidebar [class*=" fa-"],
body.erp-admin-page .erp-main-sidebar .ion {
    font-family: FontAwesome !important;
}
body.erp-admin-page .erp-main-sidebar .ion {
    font-family: Ionicons !important;
}

/* ── Light background with soft mesh (glass canvas) ── */
body.erp-admin-page {
    position: relative !important;
    background: #eef3ff !important;
    background-image:
        radial-gradient(ellipse 720px 480px at 8% 12%, rgba(99, 102, 241, 0.11), transparent 70%),
        radial-gradient(ellipse 640px 420px at 92% 88%, rgba(59, 130, 246, 0.10), transparent 70%),
        radial-gradient(ellipse 520px 360px at 55% 45%, rgba(139, 92, 246, 0.06), transparent 65%),
        linear-gradient(180deg, #eef4ff 0%, #f8faff 45%, #f3f6ff 100%) !important;
    background-attachment: fixed !important;
}
body.erp-admin-page::before { display: none; }
body.erp-admin-page .wrapper {
    background: transparent !important;
    position: relative;
    z-index: auto;
    overflow: visible !important;
    min-height: 100vh !important;
    height: auto !important;
}

/* Bootstrap modals – backdrop sits on body; keep dialog above sidebar + overlay */
body.erp-admin-page .modal-backdrop {
    z-index: 1090 !important;
}
body.erp-admin-page .modal {
    z-index: 1100 !important;
}
body.erp-admin-page.modal-open .erp-sidebar-overlay {
    display: none !important;
    pointer-events: none !important;
}
body.erp-admin-page.modal-open .main-sidebar.erp-main-sidebar {
    z-index: 1095 !important;
}
body.skin-blue.erp-admin-page .content-wrapper,
body.erp-admin-page .content-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    position: relative;
}
body.erp-admin-page .content-wrapper .content-wrapper {
    background: transparent !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

/* Glass cards – frosted white (dashboard + all modules) */
body.erp-admin-page .sun-kpi,
body.erp-admin-page .sun-card,
body.erp-admin-page .sun-top-bar,
body.erp-admin-page .box,
body.erp-admin-page .panel,
body.erp-admin-page .panel-default,
body.erp-admin-page .nav-tabs-custom,
body.erp-admin-page .info-box,
body.erp-admin-page .small-box,
body.erp-admin-page .well,
body.erp-admin-page .callout,
body.erp-admin-page .modal-content {
    background: var(--erp-glass-bg) !important;
    backdrop-filter: var(--erp-glass-blur) !important;
    -webkit-backdrop-filter: var(--erp-glass-blur) !important;
    border: 1px solid var(--erp-glass-border) !important;
    box-shadow: var(--erp-glass-shadow), var(--erp-glass-inset) !important;
    border-radius: var(--erp-glass-radius) !important;
}
body.erp-admin-page .box.box-primary,
body.erp-admin-page .box.box-info,
body.erp-admin-page .box.box-success,
body.erp-admin-page .box.box-warning,
body.erp-admin-page .box.box-danger {
    border-top: none !important;
}

/* Module KPI widgets – keep AdminLTE colors (glass white breaks small-box/info-box) */
body.erp-admin-page .small-box.bg-green,
body.erp-admin-page .small-box.bg-red,
body.erp-admin-page .small-box.bg-blue,
body.erp-admin-page .small-box.bg-yellow,
body.erp-admin-page .small-box.bg-aqua,
body.erp-admin-page .small-box.bg-purple,
body.erp-admin-page .small-box.bg-orange,
body.erp-admin-page .small-box.bg-navy,
body.erp-admin-page .small-box.bg-teal,
body.erp-admin-page .small-box.bg-olive,
body.erp-admin-page .small-box.bg-maroon,
body.erp-admin-page .small-box.bg-lime,
body.erp-admin-page .small-box.bg-fuchsia {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12) !important;
    border-radius: 12px !important;
    overflow: hidden;
    position: relative;
}
body.erp-admin-page .small-box.bg-green { background: #00a65a !important; }
body.erp-admin-page .small-box.bg-red { background: #dd4b39 !important; }
body.erp-admin-page .small-box.bg-blue { background: #0073b7 !important; }
body.erp-admin-page .small-box.bg-yellow { background: #f39c12 !important; }
body.erp-admin-page .small-box.bg-aqua { background: #00c0ef !important; }
body.erp-admin-page .small-box.bg-purple { background: #605ca8 !important; }
body.erp-admin-page .small-box.bg-orange { background: #ff851b !important; }
body.erp-admin-page .small-box.bg-navy { background: #001f3f !important; }
body.erp-admin-page .small-box.bg-teal { background: #39cccc !important; }
body.erp-admin-page .small-box.bg-olive { background: #3d9970 !important; }
body.erp-admin-page .small-box.bg-maroon { background: #d81b60 !important; }
body.erp-admin-page .small-box.bg-lime { background: #01ff70 !important; }
body.erp-admin-page .small-box.bg-fuchsia { background: #f012be !important; }
body.erp-admin-page .small-box .inner h3,
body.erp-admin-page .small-box .inner p {
    color: rgba(255, 255, 255, 0.96) !important;
}
body.erp-admin-page .small-box .small-box-footer {
    background: rgba(0, 0, 0, 0.08) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: none !important;
}
body.erp-admin-page .small-box .icon {
    color: rgba(0, 0, 0, 0.12) !important;
}
body.erp-admin-page .info-box {
    min-height: 90px;
    display: flex !important;
    align-items: stretch;
    overflow: hidden;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.erp-admin-page .info-box-icon {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 90px;
    min-width: 90px;
    height: auto !important;
    min-height: 90px;
    align-self: stretch;
    margin: 0 !important;
    border-radius: 12px 0 0 12px;
    font-size: 28px;
    line-height: 1;
}
body.erp-admin-page .info-box-icon i {
    line-height: 1;
}
body.erp-admin-page .info-box-content {
    flex: 1;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 0 !important;
    padding: 14px 16px !important;
    height: auto !important;
}
body.erp-admin-page .info-box-icon.bg-aqua { background: #00c0ef !important; color: #fff !important; }
body.erp-admin-page .info-box-icon.bg-green { background: #00a65a !important; color: #fff !important; }
body.erp-admin-page .info-box-icon.bg-yellow { background: #f39c12 !important; color: #fff !important; }
body.erp-admin-page .info-box-icon.bg-red { background: #dd4b39 !important; color: #fff !important; }
body.erp-admin-page .info-box-icon.bg-blue { background: #0073b7 !important; color: #fff !important; }
body.erp-admin-page .info-box-icon.bg-purple { background: #605ca8 !important; color: #fff !important; }
body.erp-admin-page .info-box-icon.bg-teal { background: #14b8a6 !important; color: #fff !important; }
body.erp-admin-page .info-box-icon.bg-maroon { background: #d81b60 !important; color: #fff !important; }
body.erp-admin-page .info-box-icon.bg-orange { background: #ff851b !important; color: #fff !important; }
body.erp-admin-page .info-box-content .info-box-text {
    color: #64748b !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
    white-space: normal;
}
body.erp-admin-page .info-box-content .info-box-number {
    color: #0f172a !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

/* ── Sunrise mockup sidebar colors ── */
body.erp-admin-page {
    --erp-sb-gradient: linear-gradient(180deg, #0c3478 0%, #0a2e6e 18%, #072456 52%, #04153b 100%);
    --erp-sb-bg: #04153b;
    --erp-sb-active: #0056ff;
    --erp-sb-label: #a0aec0;
    --erp-glass-bg: rgba(255, 255, 255, 0.72);
    --erp-glass-bg-strong: rgba(255, 255, 255, 0.88);
    --erp-glass-header: rgba(248, 250, 252, 0.55);
    --erp-glass-border: rgba(255, 255, 255, 0.72);
    --erp-glass-border-soft: rgba(226, 232, 240, 0.65);
    --erp-glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
    --erp-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    --erp-glass-blur: blur(18px);
    --erp-glass-radius: 16px;
}
body.erp-admin-page .main-sidebar.erp-main-sidebar,
body.erp-admin-page .erp-main-sidebar,
body.skin-blue.erp-admin-page .main-sidebar.erp-main-sidebar,
body.skin-blue.erp-admin-page .wrapper .main-sidebar.erp-main-sidebar {
    background: var(--erp-sb-gradient) !important;
    background-color: var(--erp-sb-bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: 260px !important;
    box-shadow: 4px 0 28px rgba(2, 8, 23, 0.35) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    z-index: 1050 !important;
    display: flex !important;
    flex-direction: column !important;
}
body.erp-admin-page .erp-main-sidebar.erp-sidebar {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: var(--erp-sb-gradient) !important;
    background-color: var(--erp-sb-bg) !important;
}
.erp-sb-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.65) rgba(255, 255, 255, 0.04);
    padding-bottom: 16px;
    background: transparent !important;
    position: relative;
}
.erp-sb-scroll::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    height: 28px;
    margin-top: -28px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 21, 59, 0) 0%, rgba(4, 21, 59, 0.72) 100%);
    opacity: 0.85;
}
.erp-sb-bottom {
    flex-shrink: 0;
    margin-top: 0;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    background: linear-gradient(180deg, rgba(4, 21, 59, 0) 0%, #031228 24%, #020d1f 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px 20px 0 0;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-tree {
    padding: 0;
    overflow: visible;
    min-height: min-content;
}
body.erp-admin-page .erp-main-sidebar .erp-tree-menu,
body.erp-admin-page .erp-main-sidebar .sidebar-menu.erp-tree-menu {
    list-style: none;
    margin: 0;
    padding: 0 10px 20px;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-menu-divider {
    list-style: none;
    margin: 6px 2px 10px;
    padding: 0;
    pointer-events: none;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-dash-item > a {
    margin-bottom: 4px;
    border-radius: 12px !important;
    padding: 11px 14px !important;
    font-weight: 600;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-dash-item.active > a,
body.erp-admin-page .erp-main-sidebar .erp-sb-dash-item > a:hover {
    background: var(--erp-sb-active) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 86, 255, 0.42) !important;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-dash-item > a > .ftlayer {
    background: rgba(255, 255, 255, 0.2) !important;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-dash-item.active > a > .ftlayer,
body.erp-admin-page .erp-main-sidebar .erp-sb-dash-item > a:hover > .ftlayer {
    background: rgba(255, 255, 255, 0.28) !important;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-menu-divider span {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(160, 174, 192, 0.85);
    padding: 0 4px;
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif !important;
}
body.erp-admin-page .erp-main-sidebar #sibe-box,
body.erp-admin-page .erp-main-sidebar .sidebar {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
.erp-sb-scroll::-webkit-scrollbar {
    width: 6px;
}
.erp-sb-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    margin: 4px 0;
}
.erp-sb-scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.55);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.erp-sb-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.75);
}
body.erp-admin-page .erp-main-sidebar .slimScrollDiv,
body.erp-admin-page .erp-main-sidebar .slimScrollBar,
body.erp-admin-page .erp-main-sidebar .slimScrollRail {
    display: none !important;
}
body.erp-admin-page .main-sidebar,
body.erp-admin-page .main-sidebar .sidebar {
    padding-top: 0 !important;
}
body.erp-admin-page .content-wrapper,
body.erp-admin-page .main-footer {
    margin-left: 260px !important;
    padding-top: 72px !important;
    overflow: visible !important;
    max-height: none !important;
}
body.erp-admin-page.sidebar-open .content-wrapper,
body.erp-admin-page.sidebar-open .main-footer,
body.erp-admin-page.sidebar-open .main-header {
    transform: none !important;
    -webkit-transform: none !important;
}
@media (max-width: 991px) {
    body.erp-admin-page .content-wrapper,
    body.erp-admin-page .main-footer {
        margin-left: 0 !important;
    }
    body.erp-admin-page.sidebar-open .content-wrapper,
    body.erp-admin-page.sidebar-open .main-footer {
        margin-left: 0 !important;
    }
    body.erp-admin-page {
        overflow-x: hidden !important;
    }
    body.erp-admin-page .main-header {
        left: 0 !important;
        width: 100% !important;
    }
    body.erp-admin-page .main-header > .navbar {
        margin-left: 0 !important;
        width: 100% !important;
    }
    body.erp-admin-page .main-sidebar.erp-main-sidebar {
        transform: translateX(-100%) !important;
        transition: transform .3s ease !important;
        z-index: 1080 !important;
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        isolation: isolate;
    }
    body.erp-admin-page.sidebar-open .main-sidebar.erp-main-sidebar {
        transform: translateX(0) !important;
        box-shadow: 8px 0 32px rgba(2, 8, 23, 0.45) !important;
    }
    body.erp-admin-page.sidebar-open .content-wrapper,
    body.erp-admin-page.sidebar-open .main-footer,
    body.erp-admin-page.sidebar-open .main-header {
        transform: none !important;
        -webkit-transform: none !important;
    }
    body.erp-admin-page.sidebar-collapse .main-sidebar.erp-main-sidebar,
    body.erp-admin-page.sidebar-mini.sidebar-collapse .main-sidebar.erp-main-sidebar {
        transform: translateX(-100%) !important;
    }
    body.erp-admin-page.sidebar-open.sidebar-collapse .main-sidebar.erp-main-sidebar,
    body.erp-admin-page.sidebar-open .main-sidebar.erp-main-sidebar {
        transform: translateX(0) !important;
    }
}
@media (max-width: 767px) {
    body.erp-admin-page .content-wrapper,
    body.erp-admin-page .main-footer { margin-left: 0 !important; }
    body.erp-admin-page.sidebar-open .content-wrapper,
    body.erp-admin-page.sidebar-open .main-footer { margin-left: 0 !important; }
}

/* Lock sidebar width — no AdminLTE mini/collapse shrink */
body.erp-admin-page.sidebar-collapse .main-sidebar,
body.erp-admin-page.sidebar-collapse .erp-main-sidebar,
body.erp-admin-page.sidebar-mini.sidebar-collapse .main-sidebar,
body.erp-admin-page.sidebar-expanded-on-hover .main-sidebar {
    width: 260px !important;
    transform: none !important;
}
body.erp-admin-page.sidebar-collapse .content-wrapper,
body.erp-admin-page.sidebar-collapse .main-footer,
body.erp-admin-page.sidebar-mini.sidebar-collapse .content-wrapper,
body.erp-admin-page.sidebar-expanded-on-hover .content-wrapper {
    margin-left: 260px !important;
}
body.erp-admin-page.sidebar-collapse .erp-sb-label,
body.erp-admin-page.sidebar-collapse .erp-sb-brand-text,
body.erp-admin-page.sidebar-collapse .erp-sb-section-label,
body.erp-admin-page.sidebar-collapse .erp-sb-bottom,
body.erp-admin-page.sidebar-collapse .erp-sb-shortcuts-panel,
body.erp-admin-page.sidebar-collapse .erp-sb-sysinfo {
    display: block !important;
}
@media (max-width: 767px) {
    body.erp-admin-page.sidebar-collapse .content-wrapper,
    body.erp-admin-page.sidebar-collapse .main-footer { margin-left: 0 !important; }
}

/* Brand block – dynamic school name/logo from settings */
a.erp-sb-brand,
.erp-sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 68px;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    text-decoration: none !important;
    color: inherit !important;
    transition: background .15s ease;
}
a.erp-sb-brand:hover {
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none !important;
    color: inherit !important;
}
.erp-sb-logo-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.erp-sb-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.erp-sb-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    text-transform: uppercase;
}
.erp-sb-brand-text { line-height: 1.3; min-width: 0; flex: 1; }
.erp-sb-school-name {
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif !important;
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.erp-sb-school-meta {
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif !important;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 400;
    display: block;
    margin-top: 3px;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Sidebar menu search */
.erp-sb-menu-search-wrap {
    position: relative;
    flex-shrink: 0;
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.erp-sb-menu-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    pointer-events: none;
}
.erp-sb-menu-search {
    width: 100%;
    height: 34px;
    padding: 0 34px 0 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
    font-size: 12px;
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif !important;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.erp-sb-menu-search::placeholder {
    color: rgba(255, 255, 255, 0.42);
}
.erp-sb-menu-search:focus {
    border-color: rgba(99, 102, 241, 0.65);
    background: rgba(15, 23, 42, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.erp-sb-menu-search-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 10px;
}
.erp-sb-menu-search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.erp-sb-menu-search-empty {
    padding: 0 14px 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}
body.erp-admin-page .erp-main-sidebar .erp-tree-menu li.erp-sb-search-match > a {
    background: rgba(99, 102, 241, 0.18) !important;
}
body.erp-admin-page.sidebar-collapse .erp-sb-menu-search-wrap,
body.erp-admin-page.sidebar-collapse .erp-sb-menu-search-empty {
    display: none !important;
}

/* Section labels */
.erp-sb-section-label {
    color: var(--erp-sb-label); font-size: 9px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; padding: 10px 16px 6px;
}

/* Main menu */
.erp-sb-menu { list-style: none; margin: 0; padding: 0 10px; }
.erp-sb-item { margin-bottom: 1px; }
.erp-sb-item a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px; text-decoration: none !important;
    transition: background .15s;
}
.erp-sb-item a:hover { background: rgba(255, 255, 255, 0.08); }
.erp-sb-item.active a {
    background: var(--erp-sb-active) !important;
    box-shadow: 0 4px 16px rgba(0, 86, 255, 0.42);
}
.erp-sb-ico {
    width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #fff;
}
.erp-sb-item.active .erp-sb-ico { background: rgba(255,255,255,.2) !important; }
.ico-blue   { background: #3b82f6; }
.ico-green  { background: #22c55e; }
.ico-purple { background: #8b5cf6; }
.ico-orange { background: #f97316; }
.ico-teal   { background: #14b8a6; }
.ico-indigo { background: #6366f1; }
.ico-cyan   { background: #06b6d4; }
.ico-pink   { background: #ec4899; }
.ico-red    { background: #ef4444; }
.ico-gray   { background: #64748b; }
.erp-sb-label {
    flex: 1; color: #ffffff; font-size: 12px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.erp-sb-item.active .erp-sb-label { color: #fff; font-weight: 600; }
.erp-sb-arrow { color: rgba(148, 163, 184, 0.55); font-size: 11px; flex-shrink: 0; }
.erp-sb-item.active .erp-sb-arrow { color: rgba(255,255,255,.85); }

/* Reset theme/skin sidebar styles on ERP menu */
body.erp-admin-page .erp-sidebar .erp-sb-menu .erp-sb-item > a {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 9px 12px !important;
}
body.erp-admin-page .erp-sidebar .erp-sb-menu .erp-sb-item > a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #ffffff !important;
}
body.erp-admin-page .erp-sidebar .erp-sb-menu .erp-sb-item.active > a {
    background: var(--erp-sb-active) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 86, 255, 0.42) !important;
}
body.erp-admin-page .erp-sidebar .erp-sb-menu .erp-sb-item.active .erp-sb-label {
    color: #fff !important;
}

/* Dynamic tree menu inside ERP sidebar */
body.erp-admin-page .erp-main-sidebar .sessionul.fixedmenu {
    display: none !important;
}

/* Session bar */
body.erp-admin-page .erp-main-sidebar .erp-sb-session {
    list-style: none;
    margin: 0;
    padding: 6px 10px 2px;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-session > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1.3;
    text-decoration: none !important;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-session > li > a:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-session > li > a > span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-session > li > a > .fa-calendar {
    color: #60a5fa;
    font-size: 12px;
    width: auto;
}
body.erp-admin-page .erp-main-sidebar .erp-sb-session-edit {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 10px;
    width: auto !important;
}

body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    border: none !important;
    border-left: none !important;
    border-radius: 10px !important;
    padding: 9px 12px !important;
    margin: 1px 0;
    background: transparent !important;
    box-shadow: none !important;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a > span,
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a > .erp-sb-menu-text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff !important;
    position: relative;
    z-index: 1;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li > a > .erp-sb-submenu-text {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.78) !important;
    position: relative;
    z-index: 1;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li > a:after,
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a:after {
    display: none !important;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li > a {
    overflow: visible !important;
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 11px;
    font-weight: 500;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li > a > .erp-sb-submenu-text {
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li.active > a,
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li.menu-open > a {
    background: var(--erp-sb-active) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 86, 255, 0.42) !important;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a > .ftlayer,
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a > i.ftlayer {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    line-height: 28px !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    box-shadow: none !important;
    margin-right: 0 !important;
    font-size: 12px !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li:nth-child(6n+1) > a > .ftlayer { background: #3b82f6 !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li:nth-child(6n+2) > a > .ftlayer { background: #22c55e !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li:nth-child(6n+3) > a > .ftlayer { background: #8b5cf6 !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li:nth-child(6n+4) > a > .ftlayer { background: #f97316 !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li:nth-child(6n+5) > a > .ftlayer { background: #14b8a6 !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li:nth-child(6n+6) > a > .ftlayer { background: #6366f1 !important; }

body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a > .fa:not(.ftlayer):not(.fa-angle-left):not(.pull-right),
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a > .glyphicon:not(.pull-right),
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a > .ion {
    color: #fff !important;
    width: 28px !important;
    min-width: 28px;
    height: 28px;
    line-height: 28px !important;
    text-align: center;
    font-size: 12px;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu.erp-tree-menu > li:nth-child(6n+1) > a > i:first-child:not(.fa-angle-left) { background: #3b82f6 !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu.erp-tree-menu > li:nth-child(6n+2) > a > i:first-child:not(.fa-angle-left) { background: #22c55e !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu.erp-tree-menu > li:nth-child(6n+3) > a > i:first-child:not(.fa-angle-left) { background: #8b5cf6 !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu.erp-tree-menu > li:nth-child(6n+4) > a > i:first-child:not(.fa-angle-left) { background: #f97316 !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu.erp-tree-menu > li:nth-child(6n+5) > a > i:first-child:not(.fa-angle-left) { background: #14b8a6 !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu.erp-tree-menu > li:nth-child(6n+6) > a > i:first-child:not(.fa-angle-left) { background: #6366f1 !important; }
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a > .fa-angle-left,
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a > .pull-right {
    color: rgba(148, 163, 184, 0.75) !important;
    transition: transform .2s ease;
    margin-left: auto !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: 12px !important;
    position: static !important;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li.menu-open > a > .fa-angle-left {
    transform: rotate(-90deg);
    color: rgba(255, 255, 255, 0.9) !important;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li.treeview > a {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu {
    display: none !important;
    list-style: none;
    margin: 4px 0 6px;
    padding: 6px 6px 6px 8px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu li.treeview.menu-open > .treeview-menu,
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu.menu-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li {
    margin: 2px 0;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li > a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78) !important;
    padding: 8px 10px 8px 12px !important;
    font-size: 11px;
    font-weight: 500;
    border-radius: 8px;
    background: transparent !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li > a > .fa {
    color: rgba(148, 163, 184, 0.85) !important;
    font-size: 10px;
    width: 14px;
    transition: color .18s ease, transform .18s ease;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li > a:hover {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(0, 86, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    border-left-color: #60a5fa !important;
    transform: translateX(3px);
    box-shadow: 0 2px 10px rgba(0, 86, 255, 0.18);
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li > a:hover > .fa {
    color: #93c5fd !important;
    transform: translateX(2px);
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li.active > a {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(0, 86, 255, 0.55) 0%, rgba(0, 86, 255, 0.22) 100%) !important;
    border-left-color: #0056ff !important;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 86, 255, 0.25);
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu .treeview-menu > li.active > a > .fa {
    color: #fff !important;
}

/* Main menu + dashboard hover */
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li > a {
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
    border-left: 3px solid transparent !important;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li.treeview > a:hover,
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li:not(.treeview) > a:hover {
    background: linear-gradient(90deg, rgba(0, 86, 255, 0.4) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    color: #fff !important;
    transform: translateX(3px);
    box-shadow: 0 2px 12px rgba(0, 86, 255, 0.22);
    border-left-color: #60a5fa !important;
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li.treeview > a:hover > i:first-child:not(.fa-angle-left),
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li:not(.treeview) > a:hover > i:first-child:not(.fa-angle-left) {
    transform: scale(1.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li.active > a:hover,
body.erp-admin-page .erp-main-sidebar .sidebar-menu > li.menu-open > a:hover {
    background: var(--erp-sb-active) !important;
    border-left-color: #93c5fd !important;
}
body.erp-admin-page .erp-main-sidebar .erp-dash-link > li > a:hover {
    background: rgba(0, 86, 255, 0.45) !important;
    box-shadow: 0 4px 14px rgba(0, 86, 255, 0.35);
    border-left-color: #93c5fd !important;
}

/* Quick shortcuts panel */
.erp-sb-shortcuts-panel {
    flex-shrink: 0;
    margin: 2px 10px 4px;
    padding: 8px 10px 10px;
    background: rgba(2, 13, 31, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.erp-sb-section-label--panel {
    color: rgba(255, 255, 255, 0.72) !important;
    padding: 0 2px 8px !important;
    font-size: 9px !important;
}
.erp-sb-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 6px;
    padding: 0;
}
.erp-sb-sc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    padding: 2px 2px 0;
    min-height: 52px;
    text-decoration: none !important;
    transition: transform .2s ease, opacity .2s ease;
    background: transparent;
    border: none;
}
.erp-sb-sc:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
    opacity: 0.92;
}
.erp-sb-sc-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.erp-sb-sc-ico i { font-size: 14px; color: #fff; }
.erp-sb-sc-label {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    line-height: 1.25;
    display: block;
}
.sc-blue   { background: linear-gradient(135deg, #3b82f6, #0056ff); }
.sc-green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.sc-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.sc-teal   { background: linear-gradient(135deg, #10b981, #059669); }
.sc-red    { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.sc-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }

/* System Info – bottom widget (mockup) */
.erp-sb-sysinfo {
    margin: 0 10px 6px;
    padding: 10px 12px 8px;
    background: rgba(2, 13, 31, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    flex-shrink: 0;
    min-height: 0;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
}
.erp-sb-sys-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.erp-sb-sys-body {
    display: flex;
    gap: 12px;
    align-items: center;
}
.erp-sb-sys-shield {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}
.erp-sb-sys-shield i { color: #22c55e; font-size: 20px; }
.erp-sb-sys-text { flex: 1; min-width: 0; }
.erp-sb-sys-date {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
}
.erp-sb-sys-clock {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 2px;
    letter-spacing: 0.3px;
}
.erp-sb-online-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding-bottom: 4px;
}
.erp-sb-sys-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #ecfdf5;
    font-size: 10px;
    font-weight: 600;
    width: auto;
}
.erp-sb-sys-online i {
    color: #4ade80;
    font-size: 7px;
    margin-right: 6px;
    text-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

/* Block theme skin from recoloring ERP sidebar on any admin page */
body.skin-blue.erp-admin-page .sidebar-menu,
body.skin-blue.erp-admin-page .main-sidebar.erp-main-sidebar .sidebar-menu {
    background: transparent !important;
}
body.skin-blue.erp-admin-page .main-sidebar.erp-main-sidebar,
body.skin-blue.erp-admin-page .left-side.erp-main-sidebar {
    background: var(--erp-sb-gradient) !important;
    background-color: var(--erp-sb-bg) !important;
    box-shadow: 4px 0 28px rgba(2, 8, 23, 0.35) !important;
}
body.erp-admin-page .erp-sb-brand,
body.erp-admin-page .erp-sb-scroll,
body.erp-admin-page .erp-sb-bottom,
body.erp-admin-page .erp-sb-shortcuts-panel,
body.erp-admin-page .erp-sb-sysinfo {
    background-color: transparent;
}
body.erp-admin-page .erp-sb-brand {
    background: rgba(255, 255, 255, 0.04) !important;
}
body.erp-admin-page .erp-sb-bottom {
    background: linear-gradient(180deg, rgba(4, 21, 59, 0) 0%, #031228 24%, #020d1f 100%) !important;
}
body.erp-admin-page .erp-sb-shortcuts-panel,
body.erp-admin-page .erp-sb-sysinfo {
    background: rgba(2, 13, 31, 0.55) !important;
}

/* Hide default sidebar elements on ERP page */
body.erp-admin-page .search-form2 { display: none !important; }

/* Unified ERP header (dashboard + all admin pages) */
body.erp-admin-page .main-header {
    height: auto !important;
    min-height: 72px !important;
    max-height: none !important;
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(20px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65) !important;
    overflow: visible !important;
}
body.erp-admin-page .main-header > .navbar {
    display: flex !important;
    align-items: center !important;
    min-height: 72px !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
}
body.erp-admin-page .erp-dash-topbar {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px 16px;
    flex: 1;
    width: 100%;
    min-height: 72px;
    padding: 8px 20px 8px 12px;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
body.erp-admin-page .sun-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}
body.erp-admin-page .sun-top-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}
body.erp-admin-page .sun-top-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    text-decoration: none !important;
}
body.erp-admin-page .sun-top-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}
body.erp-admin-page .sun-top-brand-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
}
body.erp-admin-page .sun-top-welcome {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding-right: 4px;
}
body.erp-admin-page .sun-top-greeting {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.erp-admin-page .sun-top-greet-label {
    font-weight: 500;
    color: #64748b;
    margin-right: 4px;
}
body.erp-admin-page .sun-top-school {
    color: #1d4ed8;
    font-weight: 700;
    margin-right: 5px;
}
body.erp-admin-page .sun-top-user {
    color: #0f172a;
    font-weight: 700;
}
body.erp-admin-page .sun-top-sub {
    margin: 2px 0 0;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.erp-admin-page .sun-top-brand-logo,
body.erp-admin-page .sun-top-welcome {
    display: none !important;
}
body.erp-admin-page .sun-top-session {
    flex-shrink: 0;
    margin: 0;
    position: relative;
}
body.erp-admin-page .sun-top-session::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, transparent, #dbe3ef 20%, #dbe3ef 80%, transparent);
}
body.erp-admin-page .sun-session-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 7px 12px 7px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #c7d9f8;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
    color: inherit !important;
    text-decoration: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body.erp-admin-page .sun-session-card:hover {
    border-color: #93b8f7;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
    text-decoration: none !important;
    color: inherit !important;
}
body.erp-admin-page .sun-session-card--static {
    cursor: default;
}
body.erp-admin-page .sun-session-card--static:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}
body.erp-admin-page .sun-session-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}
body.erp-admin-page .sun-session-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    line-height: 1.2;
}
body.erp-admin-page .sun-session-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}
body.erp-admin-page .sun-session-value {
    font-size: 13px;
    font-weight: 700;
    color: #1e3a8a;
    white-space: nowrap;
}
body.erp-admin-page .sun-session-edit {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #bfdbfe;
    color: #2563eb !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-left: 2px;
}
body.erp-admin-page .sun-session-card:hover .sun-session-edit {
    background: #fff;
    border-color: #93c5fd;
}
body.erp-admin-page .sun-top-plan {
    flex-shrink: 0;
    margin: 0;
    position: relative;
}
body.erp-admin-page .sun-plan-card--active {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #86efac;
}
body.erp-admin-page .sun-plan-card--active .sun-session-icon {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28);
}
body.erp-admin-page .sun-plan-card--active .sun-session-value { color: #14532d; }
body.erp-admin-page .sun-plan-card--trial,
body.erp-admin-page .sun-plan-card--expiring {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}
body.erp-admin-page .sun-plan-card--trial .sun-session-icon,
body.erp-admin-page .sun-plan-card--expiring .sun-session-icon {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28);
}
body.erp-admin-page .sun-plan-card--expired {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
    animation: saasPlanPulse 1.6s ease infinite;
}
body.erp-admin-page .sun-plan-card--expired .sun-session-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}
body.erp-admin-page .sun-plan-status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #334155;
    background: rgba(255,255,255,.75);
    border-radius: 999px;
    padding: 3px 7px;
    white-space: nowrap;
}
@keyframes saasPlanPulse {
    0%, 100% { box-shadow: 0 1px 2px rgba(220, 38, 38, 0.08); }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); }
}
body.erp-admin-page .sun-top-search {
    flex: 1 1 240px;
    width: auto;
    max-width: 380px;
    min-width: 160px;
    margin: 0;
    transition: flex 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body.erp-admin-page .sun-top-search.is-expanded,
body.erp-admin-page .sun-top-search:focus-within {
    flex: 1 1 320px;
    width: auto;
    min-width: 240px;
    max-width: min(560px, 42vw);
    margin-left: 0;
}
body.erp-admin-page .erp-dash-topbar.search-expanded .sun-top-left {
    flex: 0 1 200px;
    max-width: 200px;
    transition: max-width 0.35s ease;
}
body.erp-admin-page .erp-dash-topbar.search-expanded .sun-top-intro {
    gap: 8px;
}
body.erp-admin-page .erp-dash-topbar.search-expanded .sun-top-welcome {
    max-width: 120px;
}
body.erp-admin-page .erp-dash-topbar.search-expanded .sun-top-greeting {
    font-size: 13px;
}
body.erp-admin-page .erp-dash-topbar.search-expanded .sun-top-sub,
body.erp-admin-page .erp-dash-topbar.search-expanded .sun-top-session {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease;
}
body.erp-admin-page .erp-dash-topbar.search-expanded .sun-top-session::before {
    display: none;
}
body.erp-admin-page .sun-top-search .sun-search-input {
    width: auto;
    opacity: 1;
    pointer-events: auto;
}
body.erp-admin-page .sun-top-search:not(.is-expanded):not(:focus-within) .sun-search-wrap {
    padding: 0 16px 0 14px;
    cursor: pointer;
}
.sun-search-icon {
    flex-shrink: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    margin-right: 8px;
}
.sun-search-wrap:focus-within .sun-search-icon,
body.erp-admin-page .sun-top-search.is-expanded .sun-search-icon {
    color: #0062ff;
}
body.erp-admin-page .sun-top-actions {
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto;
}
body.erp-admin-page .sun-top-hamburger {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 1px solid #e2e8f0; background: #fff;
    font-size: 17px; color: #475569; cursor: pointer; flex-shrink: 0;
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
@media (min-width: 992px) {
    body.erp-admin-page .sun-top-hamburger {
        display: none !important;
    }
}
.erp-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 260px;
    width: auto;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1045;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.erp-sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
body.erp-admin-page .sun-top-hamburger:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1d4ed8;
}
body.erp-admin-page .erp-dash-link {
    padding-top: 4px !important;
    padding-bottom: 2px !important;
}
body.erp-admin-page .erp-dash-link > li > a > .ftlayer {
    background: #3b82f6 !important;
}

/* Dashboard page: Sunrise header + content */
body.erp-dashboard-page { background: #f8faff !important; overflow-x: hidden !important; overflow-y: auto !important; height: auto !important; min-height: 100vh; }
body.erp-dashboard-page .wrapper {
    overflow: visible !important;
    min-height: 100vh;
    height: auto !important;
}
body.erp-dashboard-page .content-wrapper {
    background: #f8faff !important;
    min-height: calc(100vh - 72px) !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 32px !important;
}
body.erp-dashboard-page .content { padding: 0 !important; min-height: 0 !important; overflow: visible !important; }
body.erp-dashboard-page .sunrise-dash {
    display: block !important;
    visibility: visible !important;
    padding: 10px 16px 20px !important;
    overflow: visible !important;
    min-height: auto;
}
body.erp-dashboard-page .main-footer {
    position: relative !important;
    clear: both;
    margin-top: 0 !important;
    background: #f8faff !important;
    border-top: none !important;
    padding: 8px 15px !important;
    font-size: 10px !important;
}

/* Clean header – glass */
body.erp-admin-page .main-header {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(20px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65) !important;
    position: fixed !important;
    top: 0 !important;
    left: 260px !important;
    right: 0 !important;
    width: calc(100% - 260px) !important;
    z-index: 1040 !important;
    margin: 0 !important;
    min-height: 72px !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}
body.erp-admin-page .main-header .logo { display: none !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
body.erp-admin-page .main-header > .navbar {
    margin-left: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    min-height: 72px !important;
    max-height: none !important;
    height: auto !important;
    align-items: center !important;
}
@media (min-width: 992px) {
    body.erp-admin-page .main-header,
    body.erp-admin-page .main-header > .navbar {
        max-height: none !important;
        height: auto !important;
        min-height: 72px !important;
    }
    body.erp-admin-page .erp-dash-topbar {
        min-height: 72px !important;
        max-height: none !important;
        height: auto !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
}
/* Laptop – compact header like main dashboard */
@media (min-width: 992px) and (max-width: 1366px) {
    body.erp-admin-page .sun-top-sub {
        display: none !important;
    }
    body.erp-admin-page .sun-top-intro {
        gap: 10px;
    }
    body.erp-admin-page .sun-top-welcome {
        max-width: 220px;
    }
    body.erp-admin-page .sun-top-greeting {
        font-size: 13px;
    }
    body.erp-admin-page .sun-top-search {
        flex: 1 1 180px;
        max-width: 280px;
        min-width: 140px;
    }
    body.erp-admin-page .sun-session-card {
        min-height: 40px;
        padding: 5px 10px 5px 6px;
        gap: 8px;
    }
    body.erp-admin-page .sun-session-value {
        font-size: 11px;
    }
    body.erp-admin-page .sun-top-actions {
        gap: 6px;
    }
    body.erp-admin-page .sun-top-profile .pinfo {
        display: none;
    }
}
/* Wide desktop – balanced 3-zone header */
@media (min-width: 1367px) {
    body.erp-admin-page .erp-dash-topbar {
        gap: 16px 24px;
        padding-right: 24px;
    }
    body.erp-admin-page .sun-top-left {
        flex: 0 1 auto;
        max-width: min(640px, 46vw);
    }
    body.erp-admin-page .sun-top-search {
        flex: 1 1 300px;
        max-width: 420px;
    }
}
/* Medium laptop – session moves below welcome if cramped */
@media (min-width: 992px) and (max-width: 1199px) {
    body.erp-admin-page .sun-top-intro {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 6px;
        max-width: 280px;
    }
    body.erp-admin-page .sun-top-welcome {
        flex: 1 1 100%;
        max-width: 100%;
    }
    body.erp-admin-page .sun-top-session {
        flex: 1 1 100%;
    }
    body.erp-admin-page .sun-top-session::before {
        display: none;
    }
}
body.erp-admin-page .sun-top-bar,
body.erp-admin-page .sun-top-actions,
body.erp-admin-page .sun-top-profile-dropdown {
    overflow: visible !important;
}
body.erp-admin-page .main-header .navbar .sidebar-toggle { color: #475569 !important; }
body.erp-admin-page .main-header .navbar .nav > li > a { color: #334155 !important; }
body.erp-admin-page .sidebar-session { display: none !important; }

/* Header logo + school name (top bar) */
.erp-header-brand {
    float: left;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 12px 0 4px;
    max-width: 280px;
}
.erp-header-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: inherit;
}
.erp-header-brand img {
    width: 38px; height: 38px; border-radius: 10px; object-fit: contain;
    background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.6);
    flex-shrink: 0; padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    backdrop-filter: blur(4px);
}
.erp-header-brand span {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 991px) {
    .erp-header-brand span { max-width: 140px; }
}
@media (max-width: 767px) {
    .erp-header-brand { max-width: calc(100% - 60px); padding-left: 8px; }
    .erp-header-brand span { font-size: 12px; max-width: 120px; }
}

/* ERP uses sun-top-hamburger – hide default AdminLTE toggle */
body.erp-admin-page .main-header .sidebar-toggle {
    display: none !important;
}

.sunrise-dash { padding: 16px 18px 24px; font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif; }

/* Welcome top bar – glass */
.sun-top-bar {
    border-radius: 16px; padding: 14px 18px; margin-bottom: 16px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    justify-content: space-between;
}
.sun-top-welcome { flex: 1; min-width: 200px; }
.sun-top-welcome h3 { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; }
.sun-top-welcome p { margin: 3px 0 0; font-size: 12px; color: #64748b; }

/* Dashboard header search */
.sun-top-search { flex: 1; min-width: 240px; max-width: 520px; }
.sun-search-form { margin: 0; width: 100%; }
.sun-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 999px;
    padding: 0 18px 0 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, height .25s ease;
}
.sun-search-wrap:focus-within,
body.erp-admin-page .sun-top-search.is-expanded .sun-search-wrap {
    background: rgba(255, 255, 255, 0.88);
    border-color: #0062ff;
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.12);
    height: 46px;
}
.sun-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    transition: opacity 0.25s ease;
}
.sun-search-input::placeholder { color: #94a3b8; font-weight: 400; }
.sun-search-submit {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
    padding: 0;
}
.sun-search-submit:hover,
.sun-search-submit:focus {
    color: #0062ff;
    background: rgba(0, 98, 255, 0.08);
    outline: none;
}
.sun-search-wrap:focus-within .sun-search-submit { color: #0062ff; }
.sun-search-submit i { font-size: 15px; }

/* Legacy search styles (non-dashboard) */
.sun-top-search .input-group { width: 100%; }
.sun-top-search input.form-control {
    border: 1px solid #e2e8f0; background: #f8fafc !important;
    border-radius: 10px 0 0 10px !important; height: 38px; font-size: 12px; box-shadow: none;
    color: #334155;
}
.sun-top-search input.form-control::placeholder { color: #94a3b8; }
.sun-top-search button.btn {
    border: 1px solid #e2e8f0; border-left: 0;
    background: #f1f5f9 !important;
    border-radius: 0 10px 10px 0 !important; height: 38px; color: #475569;
}

@media (max-width: 991px) {
    body.erp-admin-page .main-header,
    body.erp-admin-page .main-header > .navbar,
    body.erp-admin-page .erp-dash-topbar {
        height: auto !important;
        min-height: 72px !important;
        max-height: none !important;
        align-items: flex-start !important;
    }
    body.erp-admin-page .content-wrapper,
    body.erp-admin-page .main-footer,
    body.erp-dashboard-page .content-wrapper {
        padding-top: 138px !important;
    }
    body.erp-admin-page .erp-dash-topbar {
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 14px 12px 10px;
        gap: 10px;
    }
    body.erp-admin-page .sun-top-left {
        flex: 1 1 auto;
        max-width: calc(100% - 190px);
        order: 1;
        min-width: 0;
    }
    body.erp-admin-page .sun-top-intro {
        flex-wrap: nowrap;
        gap: 10px;
        min-width: 0;
    }
    body.erp-admin-page .sun-top-welcome { max-width: 100%; flex: 1 1 auto; min-width: 0; }
    body.erp-admin-page .sun-top-session::before { display: none; }
    body.erp-admin-page .sun-top-session {
        display: none;
    }
    body.erp-admin-page .sun-top-search {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        order: 3;
    }
    body.erp-admin-page .sun-top-search.is-expanded,
    body.erp-admin-page .sun-top-search:focus-within {
        min-width: 0;
        max-width: 100%;
    }
    body.erp-admin-page .sun-top-actions {
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
        gap: 8px;
    }
    body.erp-admin-page .sun-top-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .sun-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sun-row-main > [class*="col-"] { margin-bottom: 12px; }
}
@media (max-width: 767px) {
    body.erp-admin-page .content-wrapper,
    body.erp-admin-page .main-footer,
    body.erp-dashboard-page .content-wrapper {
        padding-top: 124px !important;
    }
    body.erp-admin-page .sun-top-profile .pinfo { display: none; }
    body.erp-admin-page .sun-top-search { min-width: 0; }
    body.erp-admin-page .sun-top-sub { display: none; }
    body.erp-admin-page .sun-top-greeting { font-size: 13px; }
    body.erp-admin-page .sun-top-user { font-size: 13px; }
    body.erp-admin-page .erp-dash-topbar { padding: 8px 10px 10px; }
    body.erp-admin-page .sun-top-left { max-width: calc(100% - 168px); }
    body.erp-admin-page .sun-top-actions { gap: 4px; }
    body.erp-admin-page .sun-top-profile-caret { display: none; }
    body.erp-dashboard-page .sunrise-dash,
    body.erp-admin-page .sunrise-dash {
        padding: 12px 10px 28px !important;
    }
    .sun-kpi-grid { grid-template-columns: 1fr; gap: 10px; }
    .sun-kpi { min-height: 96px; }
    .sun-kpi-top { padding: 14px 12px 12px; }
    .sun-kpi-info { padding-right: 52px; }
    .sun-kpi-value { font-size: 22px; }
    .sun-kpi-spark { width: 54px; height: 24px; right: 8px; bottom: 10px; }
    .sun-row-main > [class*="col-"],
    .sun-bottom-grid > * { margin-bottom: 10px; }
    .sun-card-head { font-size: 12px; padding: 10px 12px; }
    .sun-card-body { padding: 10px 12px !important; }
}
@media (max-width: 480px) {
    body.erp-admin-page .content-wrapper,
    body.erp-admin-page .main-footer,
    body.erp-dashboard-page .content-wrapper {
        padding-top: 116px !important;
    }
    body.erp-admin-page .sun-top-school { display: none; }
    body.erp-admin-page .sun-top-greet-label { display: none; }
    body.erp-admin-page .sun-top-left { max-width: calc(100% - 150px); }
    body.erp-admin-page .sun-top-icon { width: 32px; height: 32px; font-size: 17px; }
    body.erp-admin-page .sun-top-icon .badge-count {
        min-width: 18px !important;
        min-height: 18px !important;
        font-size: 9px !important;
        padding: 2px 4px !important;
    }
}
.sun-top-actions { display: flex; align-items: center; gap: 16px; }
.sun-top-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #64748b;
    font-size: 20px;
    text-decoration: none !important;
    overflow: visible;
}
.sun-top-icon:hover { color: #2563eb; }
body.erp-admin-page .sun-top-icon .badge-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    padding: 4px 6px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45) !important;
    z-index: 5 !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    box-sizing: border-box !important;
}
.sun-top-profile { display: flex; align-items: center; gap: 8px; text-decoration: none !important; color: inherit !important; cursor: pointer; }
.sun-top-profile:hover,
.sun-top-profile:focus { text-decoration: none !important; color: inherit !important; background: #f8fafc; border-radius: 12px; }
.sun-top-profile img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; }
.sun-top-profile .pinfo strong { display: block; font-size: 12px; color: #0f172a; }
.sun-top-profile .pinfo small { color: #64748b; font-size: 10px; }
.sun-top-profile-caret {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 2px;
    transition: transform .15s ease;
}
.sun-top-profile-dropdown.open .sun-top-profile-caret,
.sun-top-profile-dropdown.show .sun-top-profile-caret {
    transform: rotate(180deg);
}
.sun-top-profile-dropdown {
    position: relative;
    flex-shrink: 0;
}
body.erp-admin-page .erp-profile-menu,
body.erp-user-page .erp-profile-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    float: none !important;
    min-width: 220px;
    max-width: 280px;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14) !important;
    background: #fff !important;
    z-index: 1200 !important;
    display: none;
}
body.erp-admin-page .sun-top-profile-dropdown.open > .erp-profile-menu,
body.erp-admin-page .sun-top-profile-dropdown.open .dropdown-menu,
body.erp-user-page .sun-top-profile-dropdown.open > .erp-profile-menu,
body.erp-user-page .sun-top-profile-dropdown.open .dropdown-menu {
    display: block !important;
}
body.erp-admin-page .erp-profile-menu .erp-profile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 8px !important;
    margin: 0 !important;
    list-style: none;
}
body.erp-admin-page .erp-profile-menu .erp-profile-head-img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border: 2px solid #e2e8f0 !important;
}
body.erp-admin-page .erp-profile-menu .erp-profile-head-text {
    min-width: 0;
    flex: 1;
}
body.erp-admin-page .erp-profile-menu .erp-profile-head-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.erp-admin-page .erp-profile-menu .erp-profile-head-text span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    margin-top: 1px;
}
body.erp-admin-page .erp-profile-menu .erp-profile-head-text small {
    display: block;
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.erp-admin-page .erp-profile-menu .erp-profile-divider {
    margin: 4px 0 !important;
    background: #eef2f7 !important;
}
body.erp-admin-page .erp-profile-menu .erp-profile-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    clear: none !important;
    white-space: nowrap;
}
body.erp-admin-page .erp-profile-menu .erp-profile-link i {
    width: 16px;
    text-align: center;
    color: #64748b;
}
body.erp-admin-page .erp-profile-menu .erp-profile-link:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    text-decoration: none !important;
}
body.erp-admin-page .erp-profile-menu .erp-logout-link {
    color: #dc2626 !important;
    font-weight: 600 !important;
}
body.erp-admin-page .erp-profile-menu .erp-logout-link i {
    color: #dc2626 !important;
}
body.erp-admin-page .erp-profile-menu .erp-logout-link:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}
body.erp-admin-page .erp-profile-menu .sstopuser,
body.erp-admin-page .erp-profile-menu .ssuserleft,
body.erp-admin-page .erp-profile-menu .sspass {
    display: none !important;
}

/* KPI Cards */
.sun-kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1400px) { .sun-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) { .sun-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.sun-kpi {
    padding: 0 !important;
    overflow: hidden !important;
    border-top: none !important;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    min-height: 112px;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid #edf1f7 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
}
.sun-kpi-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px 16px;
    position: relative;
    z-index: 2;
}
.sun-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: none;
    overflow: hidden;
}
.sun-kpi-icon.sun-kpi-icon-img-wrap {
    background: transparent !important;
    padding: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.sun-kpi-icon-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    display: block;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.sun-kpi-info { flex: 1; min-width: 0; padding-right: 58px; }
.sun-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1) !important;
}
.sun-kpi-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
    line-height: 1.35;
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
}
.sun-kpi-value {
    font-size: clamp(20px, 1.45vw, 26px);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 8px;
    overflow: visible;
    white-space: nowrap;
    word-break: normal;
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
}
.sun-kpi.kpi-pink .sun-kpi-value {
    font-size: clamp(17px, 1.25vw, 22px);
    letter-spacing: -0.02em;
}
.sun-kpi-trend {
    display: block;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
}
.sun-kpi-trend.trend-green { color: #16a34a; }
.sun-kpi-trend.trend-red { color: #dc2626; }
.sun-kpi-spark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 78px;
    height: 32px;
    opacity: .85;
    z-index: 1;
    pointer-events: none;
}

/* ── Glass Cards ── */
.sun-card {
    border-radius: 16px;
    margin-bottom: 16px; height: calc(100% - 16px);
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.sun-card:hover { box-shadow: 0 6px 20px rgba(15,23,42,.10) !important; }
.sun-card-head {
    padding: 12px 16px;
    border-bottom: 1px solid #e8edf3;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px 16px 0 0;
    font-size: 13px; font-weight: 700;
    color: #1e293b; display: flex; align-items: center; justify-content: space-between;
}
.sun-card-body { color: #334155; padding: 12px 14px; flex: 1; }
.sun-card-head i { color: #3b82f6; margin-right: 6px; }
.sun-chart-box { position: relative; height: 300px; width: 100%; }
.sun-card-chart .sun-card-body { padding: 6px 14px 14px; }
.sun-chart-legend {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 2px 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}
.sun-leg-item { display: inline-flex; align-items: center; gap: 7px; }
.sun-leg-line {
    display: inline-block;
    width: 20px;
    height: 3px;
    border-radius: 999px;
}
.sun-leg-line.blue { background: #2563eb; }
.sun-leg-line.orange { background: #f97316; }
.sun-card-chart .sun-card-head span:first-child { font-size: 13px; }
.sun-chart-filter {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    padding: 4px 28px 4px 10px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.sun-row-main { margin-left: -7px; margin-right: -7px; }
.sun-row-main > [class*="col-"] { padding-left: 7px; padding-right: 7px; }
.sun-donut-box { position: relative; height: 190px; width: 100%; }
.sun-donut-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%);
    text-align: center; pointer-events: none;
}
.sun-donut-center .num { font-size: 20px; font-weight: 800; color: #0f172a; line-height: 1; }
.sun-donut-center .lbl { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.sun-dist-legend {
    display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center;
    margin-top: 6px; font-size: 11px; font-weight: 600; color: #475569;
}
.sun-dist-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sun-dist-legend span i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; font-style: normal; }
.sun-notif:last-child { border-bottom: 0; }
.sun-notif-ico {
    width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px;
}
.sun-notif-time { font-size: 10px; color: #94a3b8; margin-top: 3px; }
.sun-notif-ico.red { background: #ef4444; }
.sun-notif-ico.orange { background: #f97316; }
.sun-notif-ico.blue { background: #3b82f6; }
.sun-notif-ico.purple { background: #8b5cf6; }
.sun-notif-ico.green { background: #22c55e; }
.sun-mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 15px; }
@media (max-width: 1400px) { .sun-mini-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .sun-mini-grid { grid-template-columns: 1fr 1fr; } }

.sun-notif-list .sun-notif-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.sun-notif-list .sun-notif-item:last-child { border-bottom: 0; }
.sun-notif-list .sun-notif-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; color: #fff; }
.sun-notif-list .sun-notif-ico.red { background: #ef4444; }
.sun-notif-list .sun-notif-ico.orange { background: #f97316; }
.sun-notif-list .sun-notif-ico.purple { background: #8b5cf6; }
.sun-notif-list .sun-notif-ico.blue { background: #3b82f6; }
.sun-notif-list .sun-notif-text strong { display: block; font-size: 12px; color: #1e293b; }
.sun-notif-list .sun-notif-msg { font-size: 11px; color: #64748b; margin: 2px 0 0; line-height: 1.35; }
.sun-attendance-ring { position: relative; width: 95px; height: 95px; margin: 0 auto 8px; }
.sun-attendance-ring canvas { width: 95px !important; height: 95px !important; }
.sun-attendance-pct {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 17px; font-weight: 800; color: #3b82f6;
}
.sun-present-absent { display: flex; justify-content: center; gap: 12px; font-size: 11px; font-weight: 600; }
.sun-pay-split { display: flex; gap: 6px; margin-top: 10px; }
.sun-pay-split div { flex: 1; border-radius: 8px; padding: 8px 4px; text-align: center; font-size: 10px; font-weight: 700; }
.sun-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 10px; }
.sun-cal-grid .dd.today { background: #3b82f6; color: #fff !important; }
.sun-cal-grid .dd.has-event::after {
    content: ''; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: #ef4444;
}
.sun-cal-grid .dd.has-holiday::after { background: #22c55e; }
.sun-cal-legend span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 3px; }
.sun-cal-legend .le-exam::before { background: #ef4444; }
.sun-cal-legend .le-holiday::before { background: #22c55e; }
.sun-cal-legend .le-event::before { background: #3b82f6; }
.sun-bottom-grid { display: grid; grid-template-columns: 2fr 3fr 1.5fr 2fr; gap: 14px; margin-bottom: 16px; align-items: stretch; }
@media (max-width: 1200px) { .sun-bottom-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .sun-bottom-grid { grid-template-columns: 1fr; } }
body.erp-dashboard-page .sun-bottom-grid { margin-bottom: 20px; }
body.erp-dashboard-page .sun-bottom-grid .sun-card {
    height: auto !important;
    min-height: 0;
    margin-bottom: 0;
}
body.erp-dashboard-page .sun-bottom-grid .sun-card-body {
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
}
body.erp-dashboard-page .sun-bottom-grid .sun-card-body.sun-gender-body {
    justify-content: center;
    align-items: center;
    padding: 8px 12px 14px;
}
.sun-gender-donut {
    height: 170px !important;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}
.sun-gender-legend {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 10px;
}
.sun-gender-legend .boys { color: #3b82f6; }
.sun-gender-legend .girls { color: #ec4899; }
.sun-gender-legend .sep { color: #94a3b8; margin: 0 4px; }
body.erp-dashboard-page .sun-banners {
    margin-top: 4px;
    margin-bottom: 24px;
    padding-bottom: 8px;
}
.sun-class-item { margin-bottom: 10px; }
.sun-class-item .top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; margin-bottom: 4px; color: #1e293b; }
.sun-class-item .bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.sun-class-item .bar i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #6366f1); border-radius: 3px; }
.sun-activity { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; align-items: center; }
.sun-activity:last-child { border-bottom: 0; }
.sun-act-ico {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px;
}
.sun-act-ico.green { background: #22c55e; }
.sun-act-ico.orange { background: #f97316; }
.sun-act-ico.blue { background: #3b82f6; }
.sun-act-ico.purple { background: #8b5cf6; }
.sun-act-body { flex: 1; min-width: 0; }
.sun-act-title { font-size: 12px; font-weight: 600; color: #1e293b; line-height: 1.4; }
.sun-act-time { font-size: 10px; color: #94a3b8; white-space: nowrap; padding-top: 2px; flex-shrink: 0; }
.sun-top-actions { display: flex; align-items: center; gap: 16px; }
.sun-notif-empty { text-align: center; padding: 55px 15px; color: #94a3b8; }
.sun-notif-empty i { font-size: 30px; display: block; margin-bottom: 10px; color: #3b82f6; opacity: .6; }
.sun-notif-empty p { margin: 0; font-size: 12px; color: #64748b; }
.sun-notif { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.sun-notif-title { font-size: 12px; font-weight: 700; color: #1e293b; }
.sun-notif-msg { font-size: 11px; color: #64748b; margin-top: 2px; line-height: 1.4; }

.sun-class-fee-list { padding-top: 4px !important; }
.sun-class-fee-row { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.sun-class-fee-row:last-child { border-bottom: 0; }
.sun-class-fee-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sun-class-fee-name { font-size: 12px; color: #1e293b; font-weight: 700; }
.sun-class-fee-students { font-size: 10px; font-weight: 700; color: #dc2626; background: #fef2f2; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.sun-class-fee-amounts { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 11px; margin-bottom: 6px; }
.sun-class-fee-amounts .paid { color: #16a34a; font-weight: 600; }
.sun-class-fee-amounts .unpaid { color: #dc2626; font-weight: 600; }
.sun-class-fee-amounts i { margin-right: 3px; }
.sun-class-fee-bar { height: 6px; background: #fee2e2; border-radius: 999px; overflow: hidden; }
.sun-class-fee-bar .paid-fill { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 999px; min-width: 0; }
.sun-attendance-pct { font-size: 17px; font-weight: 800; color: #3b82f6; }
.sun-present-absent .p { color: #16a34a; }
.sun-present-absent .a { color: #ef4444; }
.sun-stat-val { font-size: 22px; font-weight: 800; color: #0f172a; text-align: center; }
.sun-stat-val.red { color: #ef4444; }
.sun-stat-sub { font-size: 10px; color: #64748b; text-align: center; margin-top: 4px; text-transform: uppercase; font-weight: 600; }
.sun-pay-split .cash {
    background: #dcfce7; color: #15803d;
    border: 1px solid #bbf7d0;
}
.sun-pay-split .online {
    background: #dbeafe; color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.sun-cal-head { margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #1e293b; }
.sun-cal-grid .dh { color: #94a3b8; font-weight: 700; padding: 2px 0; }
.sun-cal-grid .dd { padding: 4px 0; border-radius: 6px; position: relative; color: #475569; font-weight: 600; }
.sun-cal-grid .dd.sunday { color: #ef4444; }
.sun-cal-legend { display: flex; gap: 10px; justify-content: center; margin-top: 8px; font-size: 9px; color: #64748b; }
body.erp-admin-page .text-muted { color: #94a3b8 !important; }
body.erp-admin-page .box-body { color: #334155; }

/* Quick links grid */
.sun-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sun-quick-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 14px 6px; border-radius: 14px; text-decoration: none !important;
    min-height: 72px; transition: all .2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.sun-quick-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.18); text-decoration: none !important; }
.sun-quick-tile i { font-size: 22px; color: #fff; margin-bottom: 6px; }
.sun-quick-tile span { font-size: 10px; font-weight: 700; color: #fff; text-align: center; line-height: 1.2; }
.sun-q1 { background: linear-gradient(135deg, #22c55e, #16a34a); }
.sun-q2 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.sun-q3 { background: linear-gradient(135deg, #f97316, #ea580c); }
.sun-q4 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.sun-q5 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.sun-q6 { background: linear-gradient(135deg, #ec4899, #db2777); }
.sun-q7 { background: linear-gradient(135deg, #eab308, #ca8a04); }
.sun-q8 { background: linear-gradient(135deg, #6366f1, #4f46e5); }

/* Footer banner – full width mockup style */
.sun-banners { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 8px; }
.sun-banner {
    border-radius: 12px; color: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}
.sun-banner.b1 {
    background: linear-gradient(120deg, #6366f1 0%, #7c3aed 38%, #4f46e5 62%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 32px 36px;
    border-radius: 16px;
    min-height: 160px;
}
@media (max-width: 1100px) {
    .sun-banner.b1 { flex-wrap: wrap; justify-content: center; text-align: center; }
    .sun-banner-left { justify-content: center; }
    .sun-banner-apps { justify-content: center; }
}
.sun-banner-left { display: flex; align-items: center; gap: 18px; flex: 1.2; min-width: 260px; }
.sun-banner-illus { font-size: 52px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); flex-shrink: 0; }
.sun-banner-features { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; opacity: .95; }
.sun-banner-features li { margin-bottom: 5px; }
.sun-banner-features i { color: #86efac; margin-right: 6px; }
.sun-banner-apps {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    flex: 1.1;
    min-width: 280px;
    justify-content: flex-end;
}
.sun-banner p { margin: 0; font-size: 12px; opacity: .92; line-height: 1.45; }
.sun-app-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sun-banner-apps-text p { margin: 0; font-size: 11px; opacity: .9; line-height: 1.4; }
.sun-banner.b1 h4 { font-size: 19px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.sun-banner-mid { text-align: center; flex: 0.8; min-width: 180px; }
.sun-banner-mid h4 { font-size: 17px; margin-bottom: 4px; }
.sun-banner .btn-support {
    margin-top: 10px;
    background: #ffffff;
    color: #2563eb;
    border: 0;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.sun-banner .btn-support:hover { background: #f8fafc; }
.sun-phone-mock {
    width: 80px;
    height: 140px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 14px;
    padding: 6px 5px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.12);
    flex-shrink: 0;
}
.sun-phone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 6px;
    overflow: hidden;
}
.sun-phone-bar {
    height: 6px;
    width: 36%;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 0 auto 8px;
}
.sun-phone-card {
    height: 22px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 4px;
    margin-bottom: 6px;
    opacity: .9;
}
.sun-phone-card.short {
    height: 14px;
    width: 70%;
    background: #e2e8f0;
}
.sun-banner-apps-text h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.sun-app-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    padding: 7px 14px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}
.sun-app-btn i { font-size: 16px; }

/* Admin page boxes */
body.erp-admin-page .content-header {
    background: transparent !important;
}
body.erp-admin-page .content {
    padding: 14px 16px 22px !important;
}
body.erp-admin-page .content-header > h1 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}
body.erp-admin-page .box-header {
    background: var(--erp-glass-header) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--erp-glass-border-soft) !important;
    border-radius: var(--erp-glass-radius) var(--erp-glass-radius) 0 0 !important;
    color: #1e293b !important;
    padding: 12px 16px !important;
}
body.erp-admin-page .box-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}
body.erp-admin-page .box-title .fa,
body.erp-admin-page .box-title .ion {
    color: #3b82f6;
    margin-right: 6px;
}
body.erp-admin-page .box-body {
    padding: 14px 16px !important;
    color: #334155;
}
body.erp-admin-page .box-footer {
    background: rgba(248, 250, 252, 0.45) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--erp-glass-border-soft) !important;
    border-radius: 0 0 var(--erp-glass-radius) var(--erp-glass-radius) !important;
}
body.erp-admin-page .content-header > h1,
body.erp-admin-page .content-header > h1 small {
    color: #0f172a !important;
}
body.erp-admin-page .main-footer a { color: #475569 !important; }

/* ═══ Dashboard: full page visible on login ═══ */
body.erp-dashboard-page.fixed .content-wrapper,
body.erp-dashboard-page .content-wrapper {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #f8faff !important;
    padding-bottom: 48px !important;
}
body.erp-dashboard-page .sun-card {
    height: auto !important;
    min-height: 0 !important;
}
body.erp-dashboard-page .sun-bottom-grid,
body.erp-dashboard-page .sun-banners,
body.erp-dashboard-page #sunDashboardBottom {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}
body.erp-dashboard-page .sun-mini-grid .sun-card,
body.erp-dashboard-page .sun-row-main .sun-card {
    height: auto !important;
}
body.erp-dashboard-page .sun-kpi-grid {
    margin-bottom: 16px;
}
body.erp-dashboard-page .control-sidebar-bg {
    display: none !important;
}

/* Dashboard compact – bottom row fully visible */
body.erp-dashboard-page .sun-kpi-grid {
    gap: 10px;
    margin-bottom: 10px !important;
}
body.erp-dashboard-page .sun-kpi {
    min-height: 86px;
}
body.erp-dashboard-page .sun-kpi-top {
    padding: 11px 12px 9px;
    gap: 10px;
}
body.erp-dashboard-page .sun-kpi-icon,
body.erp-dashboard-page .sun-kpi-icon-img {
    width: 42px;
    height: 42px;
}
body.erp-dashboard-page .sun-kpi-info {
    padding-right: 48px;
}
body.erp-dashboard-page .sun-kpi-label {
    font-size: 11px;
    margin-bottom: 3px;
}
body.erp-dashboard-page .sun-kpi-value {
    font-size: clamp(17px, 1.25vw, 22px);
    margin-bottom: 3px;
}
body.erp-dashboard-page .sun-kpi-spark {
    width: 60px;
    height: 24px;
    right: 8px;
    bottom: 7px;
}
body.erp-dashboard-page .sun-row-main {
    align-items: flex-start;
}
body.erp-dashboard-page .sun-row-main > [class*="col-"] {
    margin-bottom: 8px;
}
body.erp-dashboard-page .sun-chart-box {
    height: 210px;
}
body.erp-dashboard-page .sun-donut-box {
    height: 148px;
}
body.erp-dashboard-page .sun-donut-center .num {
    font-size: 17px;
}
body.erp-dashboard-page .sun-card {
    margin-bottom: 8px;
}
body.erp-dashboard-page .sun-card-head {
    padding: 7px 12px;
    font-size: 12px;
}
body.erp-dashboard-page .sun-card-body {
    padding: 8px 12px !important;
}
body.erp-dashboard-page .sun-mini-grid {
    gap: 10px;
    margin-bottom: 10px;
}
body.erp-dashboard-page .sun-attendance-ring,
body.erp-dashboard-page .sun-attendance-ring canvas {
    width: 70px !important;
    height: 70px !important;
}
body.erp-dashboard-page .sun-attendance-pct {
    font-size: 14px;
}
body.erp-dashboard-page .sun-stat-val {
    font-size: 18px;
}
body.erp-dashboard-page .sun-stat-sub {
    margin-top: 2px;
}
body.erp-dashboard-page .sun-pay-split {
    margin-top: 6px;
}
body.erp-dashboard-page .sun-bottom-grid {
    gap: 10px;
    margin-bottom: 10px !important;
    align-items: start;
}
body.erp-dashboard-page .sun-gender-donut {
    height: 120px !important;
    max-width: 150px;
}
body.erp-dashboard-page .sun-gender-legend {
    margin-top: 6px;
    font-size: 10px;
}
body.erp-dashboard-page .sun-notif-empty {
    padding: 24px 12px;
}
body.erp-dashboard-page .sun-notif-empty i {
    font-size: 22px;
    margin-bottom: 6px;
}
body.erp-dashboard-page .sun-activity {
    padding: 7px 0;
}
body.erp-dashboard-page .sun-quick-grid {
    gap: 8px;
}
body.erp-dashboard-page .sun-quick-tile {
    padding: 10px 4px;
    min-height: 58px;
    border-radius: 12px;
}
body.erp-dashboard-page .sun-quick-tile i {
    font-size: 18px;
    margin-bottom: 4px;
}
body.erp-dashboard-page .sun-banners {
    margin-top: 0;
    margin-bottom: 10px;
}
body.erp-dashboard-page .sun-banner.b1 {
    min-height: 96px;
    padding: 16px 22px;
    gap: 14px;
}
body.erp-dashboard-page .sun-banner-illus {
    font-size: 34px;
}
body.erp-dashboard-page .sun-banner.b1 h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

/* ═══ Glassmorphism – forms, tables, tabs (all ERP modules) ═══ */
body.erp-admin-page label,
body.erp-admin-page .control-label {
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 12px !important;
}
body.erp-admin-page .form-control,
body.erp-admin-page select.form-control,
body.erp-admin-page textarea.form-control,
body.erp-admin-page .input-group-addon {
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    border-radius: 10px !important;
    color: #1e293b !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
body.erp-admin-page .input-group-addon {
    border-radius: 10px 0 0 10px !important;
}
body.erp-admin-page .input-group .form-control {
    border-radius: 0 10px 10px 0 !important;
}
body.erp-admin-page .form-control:focus,
body.erp-admin-page select.form-control:focus,
body.erp-admin-page textarea.form-control:focus {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14), inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    outline: none !important;
}
body.erp-admin-page .select2-container--default .select2-selection--single,
body.erp-admin-page .select2-container--default .select2-selection--multiple {
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    border-radius: 10px !important;
    min-height: 34px;
}
body.erp-admin-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    line-height: 32px !important;
    padding-left: 10px !important;
}
body.erp-admin-page .select2-dropdown {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
    overflow: hidden;
}
body.erp-admin-page .btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    transition: transform .15s, box-shadow .15s, background .15s;
}
body.erp-admin-page .btn-primary,
body.erp-admin-page .btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: 1px solid rgba(37, 99, 235, 0.35) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
    color: #fff !important;
}
body.erp-admin-page .btn-primary:hover,
body.erp-admin-page .btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px);
}
body.erp-admin-page .btn-default,
body.erp-admin-page .btn.btn-default {
    background: rgba(255, 255, 255, 0.62) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    color: #475569 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}
body.erp-admin-page .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}
body.erp-admin-page .nav-tabs-custom {
    margin-bottom: 0 !important;
    overflow: hidden;
}
body.erp-admin-page .nav-tabs-custom > .nav-tabs {
    border-bottom: 1px solid var(--erp-glass-border-soft) !important;
    background: rgba(248, 250, 252, 0.42) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 6px 10px 0 !important;
    margin: 0 !important;
}
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li > a {
    border-radius: 10px 10px 0 0 !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border: 1px solid transparent !important;
    padding: 8px 14px !important;
    margin-right: 4px !important;
    background: transparent !important;
}
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.active > a,
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.active > a:focus,
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.active > a:hover {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-color: var(--erp-glass-border-soft) !important;
    border-bottom-color: transparent !important;
    color: #2563eb !important;
}
body.erp-admin-page .nav-tabs-custom > .tab-content {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 12px 14px 14px !important;
    border-radius: 0 0 var(--erp-glass-radius) var(--erp-glass-radius);
}
body.erp-admin-page .nav-tabs-custom.border0,
body.erp-admin-page .nav-tabs-custom.navnoshadow {
    box-shadow: var(--erp-glass-shadow), var(--erp-glass-inset) !important;
}
body.erp-admin-page .table {
    background: transparent !important;
    margin-bottom: 0 !important;
}
body.erp-admin-page .table > thead > tr > th,
body.erp-admin-page .table > thead > tr > td {
    background: rgba(248, 250, 252, 0.72) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border-color: rgba(226, 232, 240, 0.65) !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}
body.erp-admin-page .table > tbody > tr > td,
body.erp-admin-page .table > tbody > tr > th {
    border-color: rgba(241, 245, 249, 0.85) !important;
    color: #334155 !important;
    font-size: 12px !important;
    vertical-align: middle !important;
    background: rgba(255, 255, 255, 0.28) !important;
}
body.erp-admin-page .table-striped > tbody > tr:nth-of-type(odd) > td,
body.erp-admin-page .table-striped > tbody > tr:nth-of-type(odd) > th {
    background: rgba(248, 250, 252, 0.48) !important;
}
body.erp-admin-page .table-hover > tbody > tr:hover > td,
body.erp-admin-page .table-hover > tbody > tr:hover > th {
    background: rgba(219, 234, 254, 0.42) !important;
}
body.erp-admin-page .table-bordered {
    border: 1px solid rgba(226, 232, 240, 0.55) !important;
    border-radius: 12px;
    overflow: hidden;
}
body.erp-admin-page .dataTables_wrapper .dataTables_filter input,
body.erp-admin-page .dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.62) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
}
body.erp-admin-page .dataTables_wrapper .dataTables_info,
body.erp-admin-page .dataTables_wrapper .dataTables_length label,
body.erp-admin-page .dataTables_wrapper .dataTables_filter label {
    color: #64748b !important;
    font-size: 12px !important;
}
body.erp-admin-page .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(226, 232, 240, 0.75) !important;
    border-radius: 8px !important;
    color: #475569 !important;
    margin: 0 2px !important;
}
body.erp-admin-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.erp-admin-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: transparent !important;
    color: #fff !important;
}
body.erp-admin-page .dataTables_empty {
    padding: 36px 16px !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
}
body.erp-admin-page .alert {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    border-width: 1px !important;
    font-size: 13px !important;
}
body.erp-admin-page .alert-success {
    background: rgba(220, 252, 231, 0.78) !important;
    border-color: rgba(134, 239, 172, 0.55) !important;
    color: #166534 !important;
}
body.erp-admin-page .alert-danger,
body.erp-admin-page .alert-error {
    background: rgba(254, 226, 226, 0.78) !important;
    border-color: rgba(252, 165, 165, 0.55) !important;
    color: #991b1b !important;
}
body.erp-admin-page .alert-warning {
    background: rgba(254, 243, 199, 0.78) !important;
    border-color: rgba(252, 211, 77, 0.55) !important;
    color: #92400e !important;
}
body.erp-admin-page .alert-info {
    background: rgba(219, 234, 254, 0.78) !important;
    border-color: rgba(147, 197, 253, 0.55) !important;
    color: #1e40af !important;
}
body.erp-admin-page .dropdown-menu {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(226, 232, 240, 0.75) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12) !important;
    padding: 6px !important;
}
body.erp-admin-page .dropdown-menu > li > a {
    border-radius: 8px !important;
    color: #334155 !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
}
body.erp-admin-page .dropdown-menu > li > a:hover {
    background: rgba(219, 234, 254, 0.55) !important;
    color: #1d4ed8 !important;
}
body.erp-admin-page .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    overflow: hidden;
}
body.erp-admin-page .modal-header {
    background: var(--erp-glass-header) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--erp-glass-border-soft) !important;
}
body.erp-admin-page .modal-footer {
    background: rgba(248, 250, 252, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    border-top: 1px solid var(--erp-glass-border-soft) !important;
}
body.erp-admin-page .pagination > li > a,
body.erp-admin-page .pagination > li > span {
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(226, 232, 240, 0.75) !important;
    border-radius: 8px !important;
    color: #475569 !important;
    margin: 0 2px;
}
body.erp-admin-page .pagination > .active > a,
body.erp-admin-page .pagination > .active > span {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: transparent !important;
    color: #fff !important;
}
body.erp-admin-page .text-muted,
body.erp-admin-page small.text-muted {
    color: #94a3b8 !important;
}
body.erp-admin-page .main-footer {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.65) !important;
    color: #64748b !important;
}
body.erp-admin-page .sun-card-head {
    background: var(--erp-glass-header) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--erp-glass-border-soft) !important;
}
body.erp-dashboard-page .content-wrapper {
    background: transparent !important;
}

/* ═══ Mobile / Tablet responsive (header + dashboard) ═══ */
@media (max-width: 991px) {
    body.erp-admin-page .main-header,
    body.erp-admin-page .main-header > .navbar {
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 64px !important;
        align-items: flex-start !important;
    }
    body.erp-admin-page .erp-dash-topbar {
        flex-wrap: wrap !important;
        align-items: center !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 8px 10px 10px !important;
        gap: 8px !important;
    }
    body.erp-admin-page .sun-top-left {
        flex: 1 1 auto !important;
        max-width: calc(100% - 180px) !important;
        min-width: 0 !important;
        order: 1 !important;
    }
    body.erp-admin-page .sun-top-actions {
        order: 2 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        gap: 6px !important;
    }
    body.erp-admin-page .sun-top-search {
        order: 3 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    body.erp-admin-page .sun-top-session {
        display: none !important;
    }
    body.erp-admin-page .sun-top-sub {
        display: none !important;
    }
    body.erp-admin-page .content-wrapper,
    body.erp-admin-page .main-footer,
    body.erp-dashboard-page .content-wrapper {
        margin-left: 0 !important;
        padding-top: 130px !important;
    }
    body.erp-admin-page .sun-top-hamburger {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }
    .sun-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .sun-row-main > [class*="col-lg-"],
    .sun-row-main > [class*="col-md-"] {
        width: 100% !important;
        float: none !important;
    }
    .sun-mini-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .sun-bottom-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    body.erp-dashboard-page .sun-chart-box {
        height: 200px !important;
    }
    body.erp-dashboard-page .sun-donut-box {
        height: 140px !important;
    }
    body.erp-dashboard-page .sunrise-dash {
        padding: 10px 12px 24px !important;
    }
    body.erp-admin-page .content {
        padding: 10px 12px 18px !important;
    }
}

@media (max-width: 767px) {
    body.erp-admin-page .content-wrapper,
    body.erp-admin-page .main-footer,
    body.erp-dashboard-page .content-wrapper {
        padding-top: 126px !important;
    }
    body.erp-admin-page .sun-top-greeting {
        font-size: 12px !important;
    }
    body.erp-admin-page .sun-top-school {
        max-width: 110px;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }
    body.erp-admin-page .sun-top-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 17px !important;
    }
    body.erp-admin-page .sun-top-profile img {
        width: 32px !important;
        height: 32px !important;
    }
    body.erp-admin-page .sun-top-left {
        max-width: calc(100% - 168px) !important;
    }
    .sun-search-wrap {
        height: 40px !important;
    }
    body.erp-dashboard-page .sun-kpi {
        min-height: 76px !important;
    }
    body.erp-dashboard-page .sun-kpi-top {
        padding: 10px 10px 8px !important;
        gap: 8px !important;
    }
    body.erp-dashboard-page .sun-kpi-icon,
    body.erp-dashboard-page .sun-kpi-icon-img {
        width: 36px !important;
        height: 36px !important;
    }
    body.erp-dashboard-page .sun-kpi-info {
        padding-right: 42px !important;
    }
    body.erp-dashboard-page .sun-kpi-value {
        font-size: 17px !important;
        margin-bottom: 2px !important;
    }
    body.erp-dashboard-page .sun-kpi-label {
        font-size: 10px !important;
        margin-bottom: 2px !important;
        line-height: 1.25 !important;
    }
    body.erp-dashboard-page .sun-kpi-trend {
        font-size: 9px !important;
        line-height: 1.3 !important;
    }
    body.erp-dashboard-page .sun-kpi-spark {
        width: 46px !important;
        height: 18px !important;
        right: 6px !important;
        bottom: 6px !important;
    }
    body.erp-dashboard-page .sun-chart-box {
        height: 175px !important;
    }
    body.erp-dashboard-page .sun-card-head {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
    body.erp-dashboard-page .sun-banner.b1 {
        flex-wrap: wrap !important;
        min-height: 0 !important;
        padding: 14px 16px !important;
    }
    body.erp-dashboard-page .sun-banner-apps,
    body.erp-dashboard-page .sun-banner-left,
    body.erp-dashboard-page .sun-banner-mid {
        min-width: 0 !important;
        flex: 1 1 100% !important;
    }
}

@media (max-width: 480px) {
    body.erp-admin-page .content-wrapper,
    body.erp-admin-page .main-footer,
    body.erp-dashboard-page .content-wrapper {
        padding-top: 118px !important;
    }
    body.erp-admin-page .sun-top-greet-label,
    body.erp-admin-page .sun-top-user {
        display: none !important;
    }
    body.erp-admin-page .sun-top-left {
        max-width: calc(100% - 152px) !important;
    }
    body.erp-admin-page .sun-top-actions {
        gap: 2px !important;
    }
    body.erp-admin-page .sun-top-icon .badge-count {
        min-width: 16px !important;
        min-height: 16px !important;
        font-size: 8px !important;
        top: -4px !important;
        right: -6px !important;
    }
    .sun-kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    body.erp-dashboard-page .sun-mini-grid {
        grid-template-columns: 1fr !important;
    }
    body.erp-dashboard-page .sun-kpi {
        min-height: 70px !important;
    }
    body.erp-dashboard-page .sun-chart-box {
        height: 160px !important;
    }
    body.erp-dashboard-page .sun-quick-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body.erp-admin-page .box {
        border-radius: 12px !important;
    }
    body.erp-admin-page .table-responsive {
        border: none !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 360px) {
    body.erp-admin-page .sun-top-search {
        display: none !important;
    }
    body.erp-admin-page .content-wrapper,
    body.erp-admin-page .main-footer,
    body.erp-dashboard-page .content-wrapper {
        padding-top: 68px !important;
    }
}

/* ═══ ERP Sub-pages – clean professional layout (all modules) ═══ */
body.erp-admin-page section.content {
    padding: 12px 16px 24px !important;
}
body.erp-admin-page .content-wrapper .content-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}
body.erp-admin-page section.content > .row {
    margin-left: -10px !important;
    margin-right: -10px !important;
}
body.erp-admin-page section.content > .row > [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 12px;
}

/* Page cards – crisp white (no table blur) */
body.erp-admin-page section.content .box,
body.erp-admin-page .content .box {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e8edf3 !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    overflow: hidden;
}
body.erp-admin-page section.content .box-header,
body.erp-admin-page .content .box-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 14px 18px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 54px;
}
body.erp-admin-page section.content .box-title,
body.erp-admin-page .content .box-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.erp-admin-page section.content .box-body,
body.erp-admin-page .content .box-body {
    padding: 16px 18px 18px !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Criteria / filter forms – 2-col grid on desktop */
body.erp-admin-page .box-body .row.form-group,
body.erp-admin-page .box-body form.class_search_form .row {
    margin-left: -8px;
    margin-right: -8px;
}
body.erp-admin-page .box-body .form-group {
    margin-bottom: 14px !important;
}

/* Tables – sharp & readable */
body.erp-admin-page .table-responsive {
    border: 1px solid #eef2f7 !important;
    border-radius: 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    background: #fff !important;
    margin-bottom: 0 !important;
}
body.erp-admin-page .mailbox-messages,
body.erp-admin-page .download_label {
    padding: 0 !important;
}
body.erp-admin-page .download_label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
}
body.erp-admin-page .table > thead > tr > th,
body.erp-admin-page .table > thead > tr > td {
    background: #f1f5f9 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 11px 12px !important;
    border-color: #e2e8f0 !important;
    white-space: nowrap;
    vertical-align: middle !important;
}
body.erp-admin-page .table > tbody > tr > td,
body.erp-admin-page .table > tbody > tr > th {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #334155 !important;
    font-size: 12px !important;
    padding: 10px 12px !important;
    border-color: #f1f5f9 !important;
    vertical-align: middle !important;
    line-height: 1.45 !important;
}
body.erp-admin-page .table-striped > tbody > tr:nth-of-type(odd) > td,
body.erp-admin-page .table-striped > tbody > tr:nth-of-type(odd) > th {
    background: #f8fafc !important;
}
body.erp-admin-page .table-hover > tbody > tr:hover > td,
body.erp-admin-page .table-hover > tbody > tr:hover > th {
    background: #eff6ff !important;
}
body.erp-admin-page .table-bordered {
    border: none !important;
    border-radius: 0 !important;
}
body.erp-admin-page table.dataTable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* DataTables toolbar */
body.erp-admin-page .dataTables_wrapper {
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif !important;
}
body.erp-admin-page .dataTables_wrapper > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.erp-admin-page .dataTables_wrapper > .row:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px !important;
    padding: 2px 0;
}
body.erp-admin-page .dataTables_wrapper .dataTables_filter {
    text-align: right !important;
    float: none !important;
    flex: 1 1 200px;
    margin: 0 !important;
}
body.erp-admin-page .dataTables_wrapper .dataTables_filter label {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin: 0 !important;
    font-size: 0 !important;
}
body.erp-admin-page .dataTables_wrapper .dataTables_filter input {
    flex: 1 1 auto;
    max-width: 280px;
    min-width: 140px;
    height: 38px !important;
    padding: 8px 14px !important;
    background: #f8fafc !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    box-shadow: none !important;
}
body.erp-admin-page .dataTables_wrapper .dataTables_filter input:focus {
    background: #fff !important;
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
    outline: none !important;
}
body.erp-admin-page div.dt-buttons,
body.erp-admin-page .dt-buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px !important;
    float: none !important;
    margin: 0 !important;
}
body.erp-admin-page .dt-button,
body.erp-admin-page button.dt-button,
body.erp-admin-page a.dt-button {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    margin: 0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: background .15s, border-color .15s, color .15s;
}
body.erp-admin-page .dt-button:hover,
body.erp-admin-page button.dt-button:hover,
body.erp-admin-page a.dt-button:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}
body.erp-admin-page .dataTables_wrapper > .row:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid #f1f5f9;
}
body.erp-admin-page .dataTables_wrapper .dataTables_info {
    font-size: 12px !important;
    color: #64748b !important;
    padding: 0 !important;
}
body.erp-admin-page .dataTables_wrapper .dataTables_paginate {
    margin: 0 !important;
}
body.erp-admin-page .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 5px 11px !important;
    font-size: 12px !important;
    min-width: 34px;
    text-align: center;
}
body.erp-admin-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.erp-admin-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* Status badges */
body.erp-admin-page .label {
    display: inline-block;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    border: none !important;
    line-height: 1.3 !important;
}
body.erp-admin-page .label-danger {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}
body.erp-admin-page .label-warning {
    background: #fef3c7 !important;
    color: #d97706 !important;
}
body.erp-admin-page .label-success {
    background: #dcfce7 !important;
    color: #16a34a !important;
}
body.erp-admin-page .label-info {
    background: #dbeafe !important;
    color: #2563eb !important;
}
body.erp-admin-page .label-primary {
    background: #e0e7ff !important;
    color: #4338ca !important;
}
body.erp-admin-page .label-default {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

/* Table action buttons */
body.erp-admin-page .table .btn-xs,
body.erp-admin-page .table .btn-sm {
    border-radius: 8px !important;
    padding: 4px 8px !important;
    margin: 1px 2px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.erp-admin-page .table .fa,
body.erp-admin-page .table .glyphicon {
    font-size: 13px;
}
body.erp-admin-page .text-right.noExport,
body.erp-admin-page .table th.text-right {
    text-align: right !important;
}
body.erp-admin-page .white-space-nowrap {
    white-space: nowrap !important;
}

/* Nav tabs inside box */
body.erp-admin-page .nav-tabs-custom > .nav-tabs {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #f8fafc !important;
}
body.erp-admin-page .nav-tabs-custom > .tab-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #fff !important;
}

@media (max-width: 991px) {
    body.erp-admin-page section.content {
        padding: 10px 12px 20px !important;
    }
    body.erp-admin-page section.content .box-body,
    body.erp-admin-page .content .box-body {
        padding: 12px 14px 14px !important;
    }
    body.erp-admin-page .dataTables_wrapper > .row:first-child {
        flex-direction: column;
        align-items: stretch;
    }
    body.erp-admin-page .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
        width: 100%;
    }
    body.erp-admin-page .dataTables_wrapper .dataTables_filter label {
        justify-content: flex-start;
    }
    body.erp-admin-page .dataTables_wrapper .dataTables_filter input {
        max-width: 100%;
    }
    body.erp-admin-page div.dt-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    body.erp-admin-page .table > thead > tr > th,
    body.erp-admin-page .table > tbody > tr > td {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }
}

@media (max-width: 767px) {
    body.erp-admin-page section.content .box-header,
    body.erp-admin-page .content .box-header {
        padding: 12px 14px !important;
    }
    body.erp-admin-page section.content .box-title,
    body.erp-admin-page .content .box-title {
        font-size: 14px !important;
    }
    body.erp-admin-page .dataTables_wrapper > .row:last-child {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Student / Parent user panel */
body.erp-user-page .erp-user-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.erp-user-page .erp-user-welcome-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
body.erp-user-page .erp-user-welcome-photo {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
body.erp-user-page .erp-user-welcome-sub {
    color: #64748b;
    margin: 0 0 12px;
    font-size: 14px;
}
body.erp-user-page .erp-user-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.erp-user-page .sun-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}
body.erp-user-page .sun-quick-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}
body.erp-user-page .sun-list-body .sun-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.erp-user-page .sun-list-body .sun-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
body.erp-user-page .sun-list-body .sun-list li:last-child {
    border-bottom: none;
}
body.erp-user-page .sun-list-body .sun-list a {
    display: block;
    color: inherit;
    text-decoration: none;
}
body.erp-user-page .sun-list-title {
    display: block;
    font-weight: 600;
    color: #0f172a;
    font-size: 13px;
}
body.erp-user-page .sun-list-meta {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}
body.erp-user-page .sun-list-avatar li {
    display: flex;
    gap: 10px;
    align-items: center;
}
body.erp-user-page .sun-list-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
body.erp-user-page .sun-empty {
    text-align: center;
    color: #94a3b8;
    padding: 28px 12px;
    margin: 0;
}
body.erp-user-page .sun-card-link {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 600;
}
body.erp-user-page .erp-user-progress-item {
    margin-bottom: 12px;
}
body.erp-user-page .erp-user-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}
body.erp-user-page .erp-user-lang-currency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}
body.erp-user-page .erp-user-lang-select,
body.erp-user-page .erp-user-currency-select {
    width: auto !important;
    min-width: 88px;
    height: 32px;
    font-size: 11px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
body.erp-user-parent-page .sun-kpi.kpi-blue {
    border-top: 3px solid #8b5cf6;
}
body.erp-user-student-page .sun-kpi.kpi-blue {
    border-top: 3px solid #3b82f6;
}
@media (max-width: 1199px) {
    body.erp-user-page .erp-user-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    body.erp-user-page .erp-user-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.erp-user-page .erp-user-welcome-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Staff profile tab actions + header icons visibility on ERP */
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.erp-tab-action,
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.erp-tab-action i {
    color: #475569 !important;
    opacity: 1 !important;
    visibility: visible !important;
}
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.erp-tab-action--key,
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.erp-tab-action--key i {
    color: #16a34a !important;
}
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.erp-tab-action--edit,
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.erp-tab-action--edit i {
    color: #2563eb !important;
}
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.text-red,
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.text-red i {
    color: #dc2626 !important;
}
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.text-green,
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a.text-green i {
    color: #16a34a !important;
}
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid #e2e8f0 !important;
}
body.erp-admin-page .nav-tabs-custom > .nav-tabs > li.pull-right > a:hover {
    background: #f8fafc !important;
}
body.erp-admin-page .sun-top-icon,
body.erp-admin-page .sun-top-icon i {
    color: #475569 !important;
    opacity: 1 !important;
    visibility: visible !important;
}
body.erp-admin-page .sun-top-icon:hover,
body.erp-admin-page .sun-top-icon:hover i {
    color: #2563eb !important;
}

/* Staff directory card view — visible action buttons (replaces broken hover overlay) */
body.erp-admin-page .staffinfo-box {
    overflow: visible !important;
    border-radius: 12px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}
body.erp-admin-page .staffinfo-box .erp-staff-card-overlay {
    display: none !important;
}
body.erp-admin-page .erp-staff-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    clear: both;
    padding: 8px 10px 10px;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(248, 250, 252, 0.65);
    position: relative;
    z-index: 5;
}
body.erp-admin-page .erp-staff-action-btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    border-radius: 8px !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
    line-height: 1.3 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.erp-admin-page .erp-staff-action-btn i {
    margin-right: 4px;
}
body.erp-admin-page .erp-staff-action-btn.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    color: #fff !important;
}
body.erp-admin-page .erp-staff-action-btn.btn-default {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.erp-admin-page .erp-staff-action-btn:hover,
body.erp-admin-page .erp-staff-action-btn:focus {
    text-decoration: none !important;
    opacity: 1 !important;
    transform: translateY(-1px);
}

/* Staff create/edit form – visible validation + save button */
body.erp-admin-page .erp-form-validation-alert {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 14px !important;
}
body.erp-admin-page .text-danger,
body.erp-admin-page .form-group .text-danger {
    color: #dc2626 !important;
    font-size: 12px !important;
    display: block !important;
    visibility: visible !important;
}
body.erp-admin-page .erp-form-actions {
    position: relative;
    z-index: 4;
    pointer-events: auto !important;
}
body.erp-admin-page .erp-form-submit-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    min-width: 110px;
}

/* Keep add-form + list side-by-side so saved rows stay visible after submit */
@media (min-width: 992px) {
    body.erp-admin-page section.content > .row {
        display: flex !important;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    body.erp-admin-page section.content > .row > .col-md-4 {
        width: 33.33333333% !important;
        float: none !important;
    }
    body.erp-admin-page section.content > .row > .col-md-8 {
        width: 66.66666667% !important;
        float: none !important;
    }
}

/* Native <select> lists are trapped inside modals: an open dialog uses
   transform + backdrop-filter, and .modal-content overflow:hidden then
   clips the popup to a single highlighted row. */
body.erp-admin-page .modal.fade.in .modal-dialog,
body.erp-admin-page .modal.in .modal-dialog {
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
}
body.erp-admin-page .modal-content,
body.erp-admin-page .modal-body,
body.erp-admin-page .modal-header,
body.erp-admin-page .modal-footer {
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.erp-admin-page .modal-content {
    background: #ffffff !important;
}
body.erp-admin-page select.form-control,
body.erp-admin-page select.form-control:focus,
body.erp-admin-page .dataTables_wrapper .dataTables_length select {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
}
body.erp-admin-page select.form-control option,
body.erp-admin-page select option {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
}
