@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root, html {
    --kgp-navy: #0b1e3d;
    --kgp-navy-dark: #071328;
    --kgp-navy-light: #162f5c;
    --kgp-gold: #f59e0b;
    --kgp-gold-light: #fbbf24;
    --kgp-gold-dark: #d97706;
    --kgp-blue: #2563eb;
    --kgp-emerald: #10b981;
    --kgp-rose: #f43f5e;
    --kgp-slate: #f8fafc;
    --kgp-body-bg: #f1f5f9;
    --kgp-text: #1e293b;
    --kgp-card-bg: #ffffff;
    --kgp-border: #e2e8f0;
    --kgp-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --kgp-shadow-md: 0 4px 12px 0 rgba(11, 30, 61, 0.07);
    --kgp-shadow-lg: 0 10px 25px 0 rgba(11, 30, 61, 0.10);
}

html[data-theme="emerald"], body.theme-emerald, html.theme-emerald {
    --kgp-navy: #064e3b;
    --kgp-navy-dark: #022c22;
    --kgp-navy-light: #047857;
    --kgp-gold: #10b981;
    --kgp-gold-light: #34d399;
    --kgp-gold-dark: #059669;
    --kgp-body-bg: #f0fdf4;
    --kgp-text: #064e3b;
    --kgp-card-bg: #ffffff;
    --kgp-border: #bbf7d0;
}

html[data-theme="dark"], body.theme-dark, html.theme-dark {
    --kgp-navy: #1e293b;
    --kgp-navy-dark: #0f172a;
    --kgp-navy-light: #334155;
    --kgp-gold: #f59e0b;
    --kgp-gold-light: #fbbf24;
    --kgp-gold-dark: #d97706;
    --kgp-body-bg: #0f172a;
    --kgp-text: #f8fafc;
    --kgp-card-bg: #1e293b;
    --kgp-border: #334155;
}

html[data-theme="violet"], body.theme-violet, html.theme-violet {
    --kgp-navy: #312e81;
    --kgp-navy-dark: #1e1b4b;
    --kgp-navy-light: #4338ca;
    --kgp-gold: #a855f7;
    --kgp-gold-light: #c084fc;
    --kgp-gold-dark: #9333ea;
    --kgp-blue: #6366f1;
    --kgp-body-bg: #f5f3ff;
    --kgp-text: #1e1b4b;
    --kgp-card-bg: #ffffff;
    --kgp-border: #ddd6fe;
}

html[data-theme="teal"], body.theme-teal, html.theme-teal {
    --kgp-navy: #0f766e;
    --kgp-navy-dark: #042f2e;
    --kgp-navy-light: #115e59;
    --kgp-gold: #06b6d4;
    --kgp-gold-light: #22d3ee;
    --kgp-gold-dark: #0891b2;
    --kgp-blue: #0284c7;
    --kgp-body-bg: #f0fdfa;
    --kgp-text: #042f2e;
    --kgp-card-bg: #ffffff;
    --kgp-border: #99f6e4;
}

html[data-theme="crimson"], body.theme-crimson, html.theme-crimson {
    --kgp-navy: #881337;
    --kgp-navy-dark: #4c0519;
    --kgp-navy-light: #9f1239;
    --kgp-gold: #f59e0b;
    --kgp-gold-light: #fbbf24;
    --kgp-gold-dark: #d97706;
    --kgp-blue: #e11d48;
    --kgp-body-bg: #fff1f2;
    --kgp-text: #4c0519;
    --kgp-card-bg: #ffffff;
    --kgp-border: #fecdd3;
}

html[data-theme="amber"], body.theme-amber, html.theme-amber {
    --kgp-navy: #1c1917;
    --kgp-navy-dark: #0c0a09;
    --kgp-navy-light: #292524;
    --kgp-gold: #f59e0b;
    --kgp-gold-light: #fbbf24;
    --kgp-gold-dark: #d97706;
    --kgp-blue: #ea580c;
    --kgp-body-bg: #fffbeb;
    --kgp-text: #1c1917;
    --kgp-card-bg: #ffffff;
    --kgp-border: #fde68a;
}

html {
    font-size: 15.5px; /* High legibility clean desktop & mobile scale */
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--kgp-body-bg);
    color: var(--kgp-text);
    font-size: 0.90rem;
    line-height: 1.4;
    min-height: 100vh;
    transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.2px;
}

h4 { font-size: 1.18rem; }
h5 { font-size: 1.02rem; }
h6 { font-size: 0.88rem; }

/* KGP BRANDING COLORS & UTILITIES */
.text-navy { color: var(--kgp-navy) !important; }
.bg-navy { background-color: var(--kgp-navy) !important; color: #ffffff; }
.bg-navy-dark { background-color: var(--kgp-navy-dark) !important; }
.text-gold { color: var(--kgp-gold) !important; }
.bg-gold { background-color: var(--kgp-gold) !important; color: #0b1e3d; }
.btn-warning {
    background: linear-gradient(135deg, var(--kgp-gold) 0%, var(--kgp-gold-dark) 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.20);
}
.btn-warning:hover {
    background: linear-gradient(135deg, var(--kgp-gold-light) 0%, var(--kgp-gold) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.30);
}

.btn-navy {
    background-color: var(--kgp-navy);
    color: #ffffff;
    border: none;
    transition: all 0.2s ease;
}
.btn-navy:hover {
    background-color: var(--kgp-navy-light);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-navy {
    border: 1.5px solid var(--kgp-navy);
    color: var(--kgp-navy);
    background: transparent;
    transition: all 0.2s ease;
}
.btn-outline-navy:hover {
    background-color: var(--kgp-navy);
    color: #ffffff;
}

.btn-sm {
    font-size: 0.72rem !important;
    padding: 0.18rem 0.45rem !important;
    border-radius: 0.32rem !important;
}

/* NAVBAR HEADER */
.kgp-header {
    background: linear-gradient(135deg, var(--kgp-navy-dark) 0%, var(--kgp-navy) 50%, var(--kgp-navy-light) 100%) !important;
    border-bottom: 2.5px solid var(--kgp-gold) !important;
    box-shadow: var(--kgp-shadow-md);
    padding-top: 0.30rem !important;
    padding-bottom: 0.30rem !important;
    transition: background 0.2s ease;
}

.kgp-logo-glow {
    border: 2px solid var(--kgp-gold);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
    transition: transform 0.3s ease;
}
.kgp-logo-glow:hover {
    transform: rotate(5deg) scale(1.05);
}

/* SIDEBAR NAVIGATION */
.kgp-sidebar {
    width: 215px;
    min-width: 215px;
    max-width: 215px;
    background: var(--kgp-card-bg, #ffffff);
    border-right: 1px solid var(--kgp-border, #e2e8f0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--kgp-shadow-sm);
    position: sticky;
    top: 50px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    z-index: 99;
}

/* Report navigation pills */
.custom-report-pills .nav-link {
    font-size: 0.76rem !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 6px !important;
    color: var(--kgp-navy) !important;
    background: #ffffff !important;
    border: 1px solid var(--kgp-border) !important;
    transition: all 0.15s ease-in-out;
}
.custom-report-pills .nav-link.active {
    background: var(--kgp-navy) !important;
    color: #ffffff !important;
    border-color: var(--kgp-navy) !important;
}
.custom-report-pills .nav-link:hover:not(.active) {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.kgp-sidebar .nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.42rem 0.65rem;
    border-radius: 0.40rem;
    margin-bottom: 0.15rem;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.kgp-sidebar .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.90rem;
    color: #94a3b8;
    transition: color 0.18s ease;
}

.kgp-sidebar .nav-link:hover {
    color: var(--kgp-navy);
    background-color: #f1f5f9;
}
.kgp-sidebar .nav-link:hover i {
    color: var(--kgp-gold-dark);
}

.kgp-sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0b1e3d 0%, #162f5c 100%);
    box-shadow: 0 3px 10px rgba(11, 30, 61, 0.18);
}
.kgp-sidebar .nav-link.active i {
    color: var(--kgp-gold);
}

/* MAIN CONTENT AREA */
main.flex-grow-1 {
    padding: 0.85rem 1.0rem !important;
}

/* CARDS & PANELS */
.card-clean {
    border-radius: 0.50rem;
    box-shadow: var(--kgp-shadow-sm);
    background: #ffffff;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card {
    border-radius: 0.50rem;
    border: 1px solid #e2e8f0;
}

.card-header {
    padding: 0.42rem 0.75rem !important;
}

.card-body {
    padding: 0.70rem !important;
}

/* SLEEK HIGH-DENSITY METRICS GRID CONTAINER */
.kgp-metrics-grid {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    align-items: stretch;
    width: 100%;
}

@media (min-width: 1400px) {
    .kgp-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
        gap: 0.30rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .kgp-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.25rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .kgp-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
        gap: 0.30rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .kgp-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .kgp-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
    }
}

/* SLEEK COMPACT HIGH-DENSITY METRIC CARDS */
.kgp-metric-card, .kpi-card-modern, .kpi-card {
    padding: 0.75rem 0.95rem;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 84px;
    height: 100%;
    transition: all 0.2s ease;
    overflow: hidden;
}
.kgp-metric-card:hover, .kpi-card-modern:hover, .kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.kgp-metric-card .text-uppercase, 
.kgp-metric-card .metric-label,
.kpi-card-modern .kpi-label,
.kpi-card .metric-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #64748b;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.kgp-metric-card .fs-2, 
.kgp-metric-card .metric-value,
.kpi-card-modern .kpi-value,
.kpi-card .metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--kgp-navy);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.15rem;
}

.kgp-metric-card small, 
.kgp-metric-card .metric-sub,
.kpi-card-modern .kpi-sub,
.kpi-card .metric-sub {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

/* MINI-GRID ULTRA COMPACT OVERRIDES (Only inside .kgp-metrics-grid) */
.kgp-metrics-grid .kgp-metric-card {
    padding: 0.30rem 0.45rem !important;
    border-radius: 0.35rem !important;
    border-left-width: 3px !important;
    min-height: 52px !important;
}
.kgp-metrics-grid .kgp-metric-card .text-uppercase,
.kgp-metrics-grid .kgp-metric-card .metric-label {
    font-size: 0.60rem !important;
    margin-bottom: 0.05rem !important;
}
.kgp-metrics-grid .kgp-metric-card .fs-2,
.kgp-metrics-grid .kgp-metric-card .metric-value {
    font-size: 1.12rem !important;
    margin-bottom: 0.05rem !important;
}
.kgp-metrics-grid .kgp-metric-card small,
.kgp-metrics-grid .kgp-metric-card .metric-sub {
    font-size: 0.56rem !important;
}

/* COMPACT HIGH-DENSITY NO-BREAK TABLE LAYOUT & RESPONSIVE SCROLL */
.table-kgp, .table-clean, .table {
    margin-bottom: 0;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.40rem;
    width: 100% !important;
}

.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table-scroll-container {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.table-kgp th, .table-clean th, .table th {
    background-color: #0b1e3d !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.68rem !important;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    padding: 0.30rem 0.45rem !important;
    border-bottom: 2px solid #f59e0b !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    white-space: nowrap !important;
    vertical-align: middle;
    position: sticky;
    top: 0;
    z-index: 2;
}
.table-kgp th:last-child, .table-clean th:last-child, .table th:last-child {
    border-right: none !important;
}

.table-kgp td, .table-clean td, .table td {
    padding: 0.22rem 0.45rem !important;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    font-size: 0.77rem !important;
    color: #1e293b;
    background-color: #ffffff;
    white-space: nowrap !important;
    line-height: 1.18 !important;
}
.table-kgp td:last-child, .table-clean td:last-child, .table td:last-child {
    border-right: none !important;
}

.table-kgp .badge, .table-clean .badge, .badge {
    font-size: 0.66rem !important;
    padding: 0.12rem 0.38rem !important;
    border-radius: 0.25rem !important;
}

.table-kgp .btn-sm, .table-clean .btn-sm, .btn-sm {
    font-size: 0.70rem !important;
    padding: 0.12rem 0.38rem !important;
    border-radius: 0.25rem !important;
    line-height: 1.15;
}

.table-kgp tbody tr:nth-child(even) td, .table-clean tbody tr:nth-child(even) td, .table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

.table-kgp tbody tr:hover td, .table-clean tbody tr:hover td, .table tbody tr:hover td {
    background-color: #f1f5f9 !important;
}

/* FORM CONTROLS DENSITY & SIZING */
.form-control, .form-select {
    font-size: 0.85rem !important;
    padding: 0.42rem 0.65rem !important;
    min-height: 38px !important;
    border-radius: 0.38rem !important;
}
.form-control-sm, .form-select-sm {
    font-size: 0.78rem !important;
    padding: 0.28rem 0.50rem !important;
    border-radius: 0.32rem !important;
}
.kgp-login-card .form-label {
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #0b1e3d !important;
    margin-bottom: 0.25rem !important;
}

.kgp-login-card .form-control, 
.kgp-login-card .form-select {
    font-size: 0.88rem !important;
    padding: 0.42rem 0.75rem !important;
    min-height: 38px !important;
    border-radius: 0.45rem !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.kgp-login-card .form-control::placeholder,
.kgp-login-card ::placeholder {
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
    opacity: 0.9 !important;
    font-weight: 400 !important;
}

.kgp-login-card .input-group-text {
    font-size: 0.95rem !important;
    color: #f59e0b !important;
    border: 1.5px solid #cbd5e1 !important;
    border-right: none !important;
    background: linear-gradient(135deg, #071328 0%, #0b1e3d 100%) !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.kgp-login-card .input-group .form-control,
.kgp-login-card .input-group .form-select {
    border: 1.5px solid #cbd5e1 !important;
    border-left: none !important;
}

/* PASSWORD VISIBILITY TOGGLE BUTTON */
.toggle-password-btn {
    cursor: pointer;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-left: none;
    color: #64748b;
    padding: 0.42rem 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    border-top-right-radius: 0.38rem;
    border-bottom-right-radius: 0.38rem;
    user-select: none;
    font-size: 0.90rem;
    z-index: 4;
}

.toggle-password-btn:hover {
    color: #0b1e3d;
    background-color: #f8fafc;
}

.toggle-password-btn:active,
.toggle-password-btn:focus {
    box-shadow: none !important;
    outline: none !important;
    color: #2563eb;
}

.toggle-password-btn.is-active,
.toggle-password-btn.is-active i {
    color: #2563eb !important;
}

.input-group .form-control.border-end-0,
.input-group:has(.toggle-password-btn) .form-control {
    border-right: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.kgp-login-card .input-group .toggle-password-btn {
    border: 1.5px solid #cbd5e1 !important;
    border-left: none !important;
    background-color: #ffffff !important;
    color: #64748b !important;
    border-top-right-radius: 0.45rem !important;
    border-bottom-right-radius: 0.45rem !important;
    font-size: 0.95rem !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

.kgp-login-card .input-group .toggle-password-btn:hover {
    color: #0b1e3d !important;
    background-color: #f1f5f9 !important;
}

.kgp-login-card .form-control:focus,
.kgp-login-card .form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* STYLISH LOGIN & REGISTRATION PAGE DESIGN */
.kgp-login-body {
    background: url('../images/campus_bright.jpg?v=2.5') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.kgp-login-overlay {
    background: linear-gradient(135deg, rgba(12, 27, 51, 0.25) 0%, rgba(15, 23, 42, 0.48) 100%);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.kgp-login-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-top: 5px solid #f59e0b;
    width: 100%;
    max-width: 500px;
    padding: 2.25rem 2.25rem;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .kgp-login-overlay {
        padding: 1.25rem 0.75rem;
    }
    .kgp-login-card {
        max-width: 100%;
        width: 100%;
        padding: 1.75rem 1.35rem !important;
        border-radius: 1.15rem;
    }
}

/* ==========================================================================
   AUTHENTICATION & 2FA DISPATCH PROCESSING SPINNER & OVERLAY
   Prevents user from feeling stuck while credentials verify and SMTP sends OTP
   ========================================================================== */
.auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 30, 61, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.auth-loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-loading-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.25rem 2rem;
    max-width: 420px;
    width: calc(100% - 2.5rem);
    text-align: center;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-top: 5px solid #f59e0b;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-loading-overlay.is-active .auth-loading-card {
    transform: scale(1) translateY(0);
}

.auth-loading-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    background: #f1f5f9;
    color: #0b1e3d;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

.auth-spinner-wrapper {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 1.35rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(245, 158, 11, 0.18);
    border-top-color: #f59e0b;
    border-right-color: #0b1e3d;
    border-radius: 50%;
    animation: authSpin 1.1s cubic-bezier(0.4, 0.1, 0.2, 1) infinite;
}

.auth-spinner-inner-pulse {
    position: absolute;
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 50%;
    animation: authPulse 1.8s ease-in-out infinite;
}

.auth-spinner-icon {
    position: relative;
    font-size: 1.85rem;
    color: #0b1e3d;
    z-index: 2;
    animation: authIconBounce 1.8s ease-in-out infinite;
}

@keyframes authSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes authPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; background: rgba(245, 158, 11, 0.22); }
}

@keyframes authIconBounce {
    0%, 100% { transform: scale(1); color: #0b1e3d; }
    50% { transform: scale(1.1); color: #d97706; }
}

.auth-loading-card .progress {
    height: 6px;
    border-radius: 999px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.auth-loading-subtext {
    font-size: 0.86rem;
    min-height: 2.6em;
    line-height: 1.45;
    color: #475569;
}

.kgp-role-tab {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.85rem 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.kgp-role-tab:hover {
    border-color: var(--kgp-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.kgp-role-tab.active {
    border-color: var(--kgp-navy);
    background: linear-gradient(135deg, #0b1e3d 0%, #162f5c 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(11, 30, 61, 0.25);
}
.kgp-role-tab.active i {
    color: var(--kgp-gold) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--kgp-navy);
    box-shadow: 0 0 0 3px rgba(11, 30, 61, 0.12);
}

/* SLEEK ULTRA-COMPACT DARK FOOTER */
.kgp-footer {
    background: linear-gradient(135deg, #071328 0%, #0b1e3d 100%) !important;
    border-top: 2px solid #f59e0b !important;
    color: #ffffff !important;
    padding: 0.35rem 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   MOBILE OPTIMIZATION & TOUCH-FIRST RESPONSIVE STYLES
   ========================================================================== */

/* Mobile Offcanvas Sidebar Drawer */
.kgp-mobile-sidebar {
    width: 280px !important;
    background-color: #ffffff;
}

.kgp-mobile-sidebar .offcanvas-header {
    background: linear-gradient(135deg, #071328 0%, #0b1e3d 100%);
    border-bottom: 3px solid var(--kgp-gold);
}

.kgp-mobile-sidebar .nav-link {
    color: #334155;
    font-weight: 600;
    padding: 0.85rem 1.1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.kgp-mobile-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
}

.kgp-mobile-sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0b1e3d 0%, #162f5c 100%);
    box-shadow: 0 4px 12px rgba(11, 30, 61, 0.25);
}

.kgp-mobile-sidebar .nav-link.active i {
    color: var(--kgp-gold);
}

/* Chart Canvas Responsiveness Container */
.chart-container-responsive {
    position: relative;
    width: 100%;
    max-height: 320px;
}

@media (max-width: 767.98px) {
    /* Touch Target Sizing */
    .btn, .form-control, .form-select, .dropdown-item {
        min-height: 40px;
    }
    
    .btn-sm {
        min-height: 32px;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Main Content Edge Padding on Mobile */
    main.flex-grow-1 {
        padding: 0.75rem !important;
    }

    /* Mobile Table Scroll & Column Auto-fit */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto !important;
        border-radius: 0.5rem;
        box-shadow: var(--kgp-shadow-sm);
        margin-bottom: 0.85rem;
    }

    .table-kgp, .table-clean {
        table-layout: auto !important;
        min-width: 600px;
    }

    .table-kgp th, .table-clean th {
        font-size: 0.72rem;
        padding: 0.55rem 0.45rem;
        white-space: nowrap;
    }

    .table-kgp td, .table-clean td {
        font-size: 0.78rem;
        padding: 0.55rem 0.45rem;
        white-space: normal;
    }

    /* Mobile Metric Cards Optimization */
    .kgp-metric-card {
        padding: 0.65rem 0.75rem !important;
    }
    .kgp-metric-card .fs-2 {
        font-size: 1.4rem !important;
    }

    /* Mobile Button Stacking */
    .btn-mobile-block {
        width: 100% !important;
        display: block !important;
        margin-bottom: 0.5rem;
    }

    .kgp-header-brand-sub {
        font-size: 0.70rem !important;
        display: block !important;
    }

    /* Chart Canvas Height on Mobile */
    .chart-container-responsive {
        max-height: 230px;
    }

    .kgp-login-card {
        padding: 1.5rem 1.15rem !important;
    }
}

@media (max-width: 575.98px) {
    .kgp-header {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .session-timer-pill {
        font-size: 0.70rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    h4 {
        font-size: 1.15rem;
    }

    .badge {
        font-size: 0.70rem;
    }

    .kgp-metric-card {
        padding: 0.55rem 0.65rem !important;
        border-radius: 0.5rem !important;
    }
    .kgp-metric-card .fs-2 {
        font-size: 1.25rem !important;
        margin-top: 0.15rem !important;
    }

    .card-header {
        padding: 0.65rem 0.85rem !important;
    }

    .alert {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.80rem;
    }
}

/* WORKFLOW STEPPER COMPONENT */
.workflow-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0.35rem 0;
    margin: 0;
    width: 100%;
}

.workflow-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.stepper-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stepper-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    max-width: 140px;
}

.stepper-step.completed .stepper-circle {
    background: #10b981;
    border-color: #059669;
    color: #ffffff;
}

.stepper-step.completed .stepper-label {
    color: #065f46;
    font-weight: 700;
}

.stepper-step.active .stepper-circle {
    background: #d97706;
    border-color: #b45309;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.stepper-step.active .stepper-label {
    color: #92400e;
    font-weight: 700;
}

@media (max-width: 576px) {
    .workflow-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
    .workflow-stepper::before {
        display: none;
    }
    .stepper-step {
        flex-direction: row;
        gap: 0.65rem;
        text-align: left;
        width: 100%;
    }
    .stepper-label {
        max-width: none;
    }
}

/* ENHANCED MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS */
@media (max-width: 768px) {
    /* Prevent iOS Safari auto-zoom on input focus while maintaining clean typography */
    .form-control, .form-select, input[type="text"], input[type="email"], input[type="password"], input[type="search"], select {
        min-height: 40px;
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }
    
    .btn-sm {
        min-height: 34px;
        padding: 0.35rem 0.65rem !important;
        font-size: 0.80rem !important;
    }

    /* Swipeable smooth horizontal tab pills on mobile */
    .custom-report-pills, .nav-pills.flex-wrap {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none; /* Firefox */
    }
    .custom-report-pills::-webkit-scrollbar, .nav-pills.flex-wrap::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .custom-report-pills .nav-item, .nav-pills.flex-wrap .nav-item {
        flex-shrink: 0;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
    .modal-content {
        border-radius: 0.85rem !important;
    }
    .modal-body {
        padding: 1.15rem !important;
    }

    .table-responsive {
        border-radius: 0.5rem;
        border: 1px solid #e2e8f0;
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .table th, .table td {
        padding: 0.55rem 0.65rem !important;
        font-size: 0.80rem !important;
    }

    .kgp-header .navbar-brand {
        max-width: 210px;
    }

    .kgp-header .navbar-brand div .fw-bold {
        font-size: 0.84rem !important;
    }

    /* Floating bar safe area padding for modern iPhones & Androids */
    .floating-action-bar, .sticky-bottom {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
    }
}

/* ===================================================
   MENTEE PRIORITY STATUS BADGES (High Contrast & Legible)
   =================================================== */
.badge.badge-priority-ontrack,
.badge-priority-ontrack,
button.badge-priority-ontrack,
a.badge-priority-ontrack,
.btn.badge-priority-ontrack {
    background-color: #dcfce7 !important;
    background: #dcfce7 !important;
    color: #14532d !important;
    border: 1px solid #22c55e !important;
    font-weight: 800 !important;
    font-size: 0.70rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 1px 2px rgba(34,197,94,0.15) !important;
}

.badge.badge-priority-critical,
.badge-priority-critical,
button.badge-priority-critical,
a.badge-priority-critical,
.btn.badge-priority-critical {
    background-color: #fee2e2 !important;
    background: #fee2e2 !important;
    color: #7f1d1d !important;
    border: 1px solid #ef4444 !important;
    font-weight: 800 !important;
    font-size: 0.70rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 1px 2px rgba(239,68,68,0.15) !important;
}

.badge.badge-priority-attention,
.badge-priority-attention,
button.badge-priority-attention,
a.badge-priority-attention,
.btn.badge-priority-attention {
    background-color: #fef3c7 !important;
    background: #fef3c7 !important;
    color: #78350f !important;
    border: 1px solid #f59e0b !important;
    font-weight: 800 !important;
    font-size: 0.70rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 1px 2px rgba(245,158,11,0.15) !important;
}

.badge.badge-priority-monitor,
.badge-priority-monitor,
button.badge-priority-monitor,
a.badge-priority-monitor,
.btn.badge-priority-monitor {
    background-color: #e0f2fe !important;
    background: #e0f2fe !important;
    color: #0c4a6e !important;
    border: 1px solid #0ea5e9 !important;
    font-weight: 800 !important;
    font-size: 0.70rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 1px 2px rgba(14,165,233,0.15) !important;
}

/* Review Next Queue Action Cards */
.review-queue-card {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe !important;
    border-left: 5px solid #4f46e5 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-queue-card:hover {
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.16) !important;
}
.review-queue-all-done {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd !important;
    border-left: 5px solid #0284c7 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-review-next {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    border: 1px solid #3730a3 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.6rem 1.35rem !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}
.btn-review-next:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45) !important;
}
.btn-review-next:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3) !important;
}
.btn-review-dashboard {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 0.6rem 1.15rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
}
.btn-review-dashboard:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
}
body.theme-dark .review-queue-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
    border: 1px solid #4338ca !important;
    border-left: 5px solid #818cf8 !important;
}
body.theme-dark .review-queue-card .text-navy {
    color: #e0e7ff !important;
}
body.theme-dark .review-queue-card .text-dark {
    color: #f1f5f9 !important;
}
body.theme-dark .review-queue-card .text-muted {
    color: #c7d2fe !important;
}
body.theme-dark .review-queue-all-done {
    background: #1e293b !important;
    border-color: #334155 !important;
    border-left: 5px solid #38bdf8 !important;
}
body.theme-dark .btn-review-dashboard {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}
body.theme-dark .btn-review-dashboard:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* ===================================================
   THEME STYLES ACROSS ALL MODULES
   =================================================== */
/* Theme 2: Emerald Green & Slate */
body.theme-emerald {
    --kgp-navy: #064e3b;
    --kgp-navy-dark: #022c22;
    --kgp-navy-light: #047857;
    --kgp-gold: #10b981;
    --kgp-gold-light: #34d399;
    --kgp-gold-dark: #059669;
    background-color: #f0fdf4;
}
body.theme-emerald .kgp-header {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%) !important;
    border-bottom: 2.5px solid #10b981 !important;
}
body.theme-emerald .bg-navy {
    background-color: #064e3b !important;
    color: #ffffff !important;
}
body.theme-emerald .text-navy {
    color: #064e3b !important;
}
body.theme-emerald .btn-navy {
    background-color: #064e3b !important;
}
body.theme-emerald .btn-navy:hover {
    background-color: #047857 !important;
}

/* Theme 4: Royal Violet (Amethyst Luxe) */
body.theme-violet {
    --kgp-navy: #312e81;
    --kgp-navy-dark: #1e1b4b;
    --kgp-navy-light: #4338ca;
    --kgp-gold: #a855f7;
    --kgp-gold-light: #c084fc;
    --kgp-gold-dark: #9333ea;
    background-color: #f5f3ff;
}
body.theme-violet .kgp-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%) !important;
    border-bottom: 2.5px solid #a855f7 !important;
}
body.theme-violet .bg-navy {
    background-color: #312e81 !important;
    color: #ffffff !important;
}
body.theme-violet .text-navy {
    color: #312e81 !important;
}
body.theme-violet .btn-navy {
    background-color: #312e81 !important;
}
body.theme-violet .btn-navy:hover {
    background-color: #4338ca !important;
}

/* Theme 5: Ocean Nordic (Teal & Cyan) */
body.theme-teal {
    --kgp-navy: #0f766e;
    --kgp-navy-dark: #042f2e;
    --kgp-navy-light: #115e59;
    --kgp-gold: #06b6d4;
    --kgp-gold-light: #22d3ee;
    --kgp-gold-dark: #0891b2;
    background-color: #f0fdfa;
}
body.theme-teal .kgp-header {
    background: linear-gradient(135deg, #042f2e 0%, #0f766e 50%, #0d9488 100%) !important;
    border-bottom: 2.5px solid #06b6d4 !important;
}
body.theme-teal .bg-navy {
    background-color: #0f766e !important;
    color: #ffffff !important;
}
body.theme-teal .text-navy {
    color: #0f766e !important;
}
body.theme-teal .btn-navy {
    background-color: #0f766e !important;
}
body.theme-teal .btn-navy:hover {
    background-color: #115e59 !important;
}

/* Theme 6: Sunset Ruby (Crimson & Amber Gold) */
body.theme-crimson {
    --kgp-navy: #881337;
    --kgp-navy-dark: #4c0519;
    --kgp-navy-light: #9f1239;
    --kgp-gold: #f59e0b;
    --kgp-gold-light: #fbbf24;
    --kgp-gold-dark: #d97706;
    background-color: #fff1f2;
}
body.theme-crimson .kgp-header {
    background: linear-gradient(135deg, #4c0519 0%, #881337 50%, #9f1239 100%) !important;
    border-bottom: 2.5px solid #f59e0b !important;
}
body.theme-crimson .bg-navy {
    background-color: #881337 !important;
    color: #ffffff !important;
}
body.theme-crimson .text-navy {
    color: #881337 !important;
}
body.theme-crimson .btn-navy {
    background-color: #881337 !important;
}
body.theme-crimson .btn-navy:hover {
    background-color: #9f1239 !important;
}

/* Theme 7: Executive Amber (Warm Bronze & Gold) */
body.theme-amber {
    --kgp-navy: #1c1917;
    --kgp-navy-dark: #0c0a09;
    --kgp-navy-light: #292524;
    --kgp-gold: #f59e0b;
    --kgp-gold-light: #fbbf24;
    --kgp-gold-dark: #d97706;
    background-color: #fffbeb;
}
body.theme-amber .kgp-header {
    background: linear-gradient(135deg, #0c0a09 0%, #1c1917 50%, #292524 100%) !important;
    border-bottom: 2.5px solid #f59e0b !important;
}
body.theme-amber .bg-navy {
    background-color: #1c1917 !important;
    color: #ffffff !important;
}
body.theme-amber .text-navy {
    color: #1c1917 !important;
}
body.theme-amber .btn-navy {
    background-color: #1c1917 !important;
}
body.theme-amber .btn-navy:hover {
    background-color: #292524 !important;
}

/* Theme 3: Dark Mode Pro (Night & High Contrast) */
body.theme-dark {
    --kgp-navy: #1e293b;
    --kgp-navy-dark: #0f172a;
    --kgp-navy-light: #334155;
    --kgp-card-bg: #1e293b;
    --kgp-border: #334155;
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}
body.theme-dark .card,
body.theme-dark .card-clean,
body.theme-dark .kgp-metric-card,
body.theme-dark .kgp-sidebar {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
body.theme-dark .kgp-header {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%) !important;
    border-bottom: 2.5px solid #f59e0b !important;
}
body.theme-dark .table {
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}
body.theme-dark .table th {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
body.theme-dark .table td {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.theme-dark .table-hover tbody tr:hover td {
    background-color: #273549 !important;
}
body.theme-dark .text-navy {
    color: #93c5fd !important;
}
body.theme-dark .text-dark {
    color: #f8fafc !important;
}
body.theme-dark .text-muted {
    color: #94a3b8 !important;
}
body.theme-dark .bg-light {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}
body.theme-dark .form-control,
body.theme-dark .form-select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.theme-dark .dropdown-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.theme-dark .dropdown-item {
    color: #e2e8f0 !important;
}
body.theme-dark .dropdown-item:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}
body.theme-dark .list-group-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Workflow Stage Badge Utilities */
.badge-draft {
    background-color: #64748b !important;
    color: #ffffff !important;
    font-weight: 700;
}
.badge-under-review {
    background-color: #f59e0b !important;
    color: #1e293b !important;
    font-weight: 700;
}
.badge-final-approved {
    background-color: #16a34a !important;
    color: #ffffff !important;
    font-weight: 700;
}
.badge-revision-needed {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 700;
}

/* Form Validation Highlight & Scroll Focus Styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border: 2px solid #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25) !important;
}

body.theme-dark .form-control.is-invalid,
body.theme-dark .form-select.is-invalid {
    border: 2px solid #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.15) !important;
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.3) !important;
}

.field-error-feedback {
    display: block;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

@keyframes pulseInvalid {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse-invalid-field {
    animation: pulseInvalid 0.35s ease-in-out 2;
}

/* EXECUTIVE MODERN KPI CARDS */
.kpi-card-modern {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1.15rem 1.25rem !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(11, 30, 61, 0.05) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.kpi-card-modern:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 24px rgba(11, 30, 61, 0.10) !important;
    border-color: #cbd5e1 !important;
}
.kpi-card-modern .kpi-icon-badge {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 0.65rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.kpi-card-modern .kpi-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748b !important;
    margin-bottom: 0.25rem !important;
}
.kpi-card-modern .kpi-value {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--kgp-navy) !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.5px !important;
}
.kpi-card-modern .kpi-sub {
    font-size: 0.76rem !important;
    color: #64748b !important;
    margin-top: 0.75rem !important;
    padding-top: 0.55rem !important;
    border-top: 1px solid #f1f5f9 !important;
}

/* SIDE PANEL VERTICAL PIPELINE STEPPER */
.pipeline-vertical-stepper {
    position: relative;
    padding-left: 0.5rem;
}
.pipeline-step-item {
    position: relative;
    padding-left: 1.75rem;
    padding-bottom: 1rem;
}
.pipeline-step-item:last-child {
    padding-bottom: 0;
}
.pipeline-step-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 22px;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0;
}
.pipeline-step-item:last-child::before {
    display: none;
}
.pipeline-step-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #94a3b8;
    z-index: 2;
    transition: all 0.2s ease;
}
.pipeline-step-item.active .pipeline-step-dot {
    border-color: #f59e0b;
    background-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.pipeline-step-item.current-user .pipeline-step-dot {
    border-color: #10b981;
    background-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.30);
}

/* EXTENDED UTILITIES & BUTTONS */
.btn-xs {
    padding: 0.20rem 0.50rem !important;
    font-size: 0.70rem !important;
    border-radius: 0.30rem !important;
    line-height: 1.2 !important;
}

.shadow-xs {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.bg-danger-subtle-light {
    background-color: #fff1f2 !important;
}

/* 4-TIER PIPELINE FLOW COMPONENT */
.pipeline-flow-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.pipeline-tier-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem;
    transition: all 0.2s ease;
    position: relative;
}

.pipeline-tier-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pipeline-tier-card.is-active-role {
    border: 1.5px solid #f59e0b !important;
    background: #fffdfa !important;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.12) !important;
}

.pipeline-tier-card.is-active-role::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f59e0b;
    border-top-left-radius: 0.65rem;
    border-bottom-left-radius: 0.65rem;
}

.pipeline-arrow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.65rem;
    margin: -0.15rem 0;
    z-index: 1;
}

/* SIDE PANEL WIDGET ENHANCEMENTS */
.sidepanel-widget-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(11, 30, 61, 0.04);
    overflow: hidden;
}

.sidepanel-widget-header {
    background: linear-gradient(135deg, #071328 0%, #0b1e3d 100%);
    color: #ffffff;
    padding: 0.60rem 0.90rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f59e0b;
}

.sidepanel-widget-body {
    padding: 0.75rem 0.90rem;
}

.sidepanel-metric-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.50rem 0.70rem;
    border-radius: 0.40rem;
    margin-bottom: 0.30rem;
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.sidepanel-metric-item:last-child {
    margin-bottom: 0;
}

.sidepanel-metric-item:hover {
    background-color: #f1f5f9;
}

.sidepanel-metric-item.highlight-danger {
    background-color: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
    font-weight: 600;
}

.sidepanel-metric-item.highlight-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
    font-weight: 600;
}

/* DARK MODE SUPPORT */
body.theme-dark .kpi-card-modern,
body.theme-dark .sidepanel-card,
body.theme-dark .sidepanel-widget-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
body.theme-dark .kpi-card-modern .kpi-sub {
    border-top-color: #334155 !important;
    color: #94a3b8 !important;
}
body.theme-dark .kpi-card-modern .kpi-value {
    color: #f8fafc !important;
}
body.theme-dark .sidepanel-card .card-header,
body.theme-dark .sidepanel-widget-header {
    background: #0f172a !important;
    border-bottom-color: #f59e0b !important;
    color: #f8fafc !important;
}
body.theme-dark .pipeline-tier-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.theme-dark .pipeline-tier-card.is-active-role {
    border-color: #f59e0b !important;
    background: #1e293b !important;
}
body.theme-dark .sidepanel-metric-item {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.theme-dark .sidepanel-metric-item.highlight-danger {
    background-color: rgba(225, 29, 72, 0.15) !important;
    border-color: rgba(225, 29, 72, 0.3) !important;
    color: #fda4af !important;
}
body.theme-dark .sidepanel-metric-item.highlight-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #6ee7b7 !important;
}

/* =========================================================
   PREMIUM EXECUTIVE DASHBOARD PIPELINE & KPI DESIGN TOKENS
   ========================================================= */

/* Interactive Stepper Pipeline Header */
.workflow-pipeline-wrapper {
    background: #ffffff;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.workflow-pipeline-header {
    background: linear-gradient(135deg, #071328 0%, #0e2447 100%);
    padding: 0.65rem 1rem;
    border-bottom: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.workflow-step-box {
    position: relative;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.workflow-step-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.08);
}

.workflow-step-box.step-mentor {
    border-top: 3.5px solid #3b82f6;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}


.workflow-step-box.step-hod {
    border-top: 3.5px solid #f59e0b;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.workflow-step-box.step-principal {
    border-top: 3.5px solid #ef4444;
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.workflow-step-box.is-active-desk {
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.20), 0 8px 20px -4px rgba(15, 23, 42, 0.12) !important;
}

.workflow-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    margin-right: 0.4rem;
}

/* EXECUTIVE HIGH-IMPACT KPI CARDS */
.exec-kpi-card {
    background: #ffffff;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.exec-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.10);
    border-color: #cbd5e1;
}

.exec-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
}

.exec-kpi-card.card-blue::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.exec-kpi-card.card-cyan::before { background: linear-gradient(90deg, #0891b2, #38bdf8); }
.exec-kpi-card.card-green::before { background: linear-gradient(90deg, #059669, #34d399); }
.exec-kpi-card.card-amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.exec-kpi-card.card-rose::before { background: linear-gradient(90deg, #dc2626, #f87171); }

.exec-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.exec-kpi-icon.icon-blue { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.exec-kpi-icon.icon-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%); }
.exec-kpi-icon.icon-green { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.exec-kpi-icon.icon-amber { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.exec-kpi-icon.icon-rose { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }

.exec-kpi-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.exec-kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0b1e3d;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.4px;
}

.exec-kpi-footer {
    padding-top: 0.6rem;
    margin-top: 0.6rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* MODERN REVIEW STAGES STRIP TILES */
.review-stage-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.7rem 0.85rem;
    transition: all 0.22s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    height: 100%;
}

.review-stage-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
}


.review-stage-tile.tile-hod {
    border-left: 3.5px solid #06b6d4;
    background: linear-gradient(90deg, #f4fcfe 0%, #ffffff 100%);
}

.review-stage-tile.tile-principal {
    border-left: 3.5px solid #ef4444;
    background: linear-gradient(90deg, #fff8f8 0%, #ffffff 100%);
}

.review-stage-tile.tile-approved {
    border-left: 3.5px solid #10b981;
    background: linear-gradient(90deg, #f4fdf8 0%, #ffffff 100%);
}

.review-stage-tile.tile-revisions {
    border-left: 3.5px solid #64748b;
    background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

/* EXECUTIVE DASHBOARD CARDS & TILES WITH CRISP BORDERS */
.executive-kpi-card {
    background: #ffffff;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 12px;
    padding: 1rem 1.15rem 0.90rem 1.15rem;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.08), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.executive-kpi-card:hover {
    border-color: #64748b !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
    transform: translateY(-2px);
}

.executive-kpi-card.kpi-blue {
    border-top: 4.5px solid #2563eb !important;
}

.executive-kpi-card.kpi-teal {
    border-top: 4.5px solid #0891b2 !important;
}

.executive-kpi-card.kpi-cyan {
    border-top: 4.5px solid #0284c7 !important;
}

.executive-kpi-card.kpi-indigo {
    border-top: 4.5px solid #4f46e5 !important;
}

.executive-kpi-card.kpi-purple {
    border-top: 4.5px solid #7c3aed !important;
}

.executive-kpi-card.kpi-red {
    border-top: 4.5px solid #dc2626 !important;
}

.executive-kpi-card.kpi-emerald {
    border-top: 4.5px solid #059669 !important;
}

.executive-kpi-card.kpi-amber {
    border-top: 4.5px solid #d97706 !important;
}

.executive-kpi-card .kpi-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #475569;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.executive-kpi-card .kpi-value {
    font-size: 1.70rem;
    font-weight: 800;
    line-height: 1.15;
    font-family: 'Outfit', sans-serif;
    color: #0b1e3d;
}

.executive-kpi-card .kpi-icon-pill {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.executive-kpi-card .kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.55rem;
    margin-top: 0.55rem;
    border-top: 1.5px solid #e2e8f0;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.executive-kpi-card .kpi-footer .badge {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 0.28rem 0.55rem !important;
    line-height: 1.25 !important;
    display: inline-flex !important;
    align-items: center !important;
    letter-spacing: 0.2px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.executive-kpi-card .kpi-footer a {
    text-decoration: none !important;
    display: inline-flex;
}

.executive-kpi-card .kpi-footer a:hover .badge {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    filter: brightness(0.95);
}

/* EXECUTIVE 7-TILE SINGLE-ROW FLEX SYSTEM (ALL 7 TILES IN ONE LINE ON DESKTOP) */
.executive-kpi-row {
    --bs-gutter-x: 0.40rem;
    --bs-gutter-y: 0.40rem;
}

@media (min-width: 900px) {
    .executive-kpi-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.35rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .executive-kpi-row > .executive-kpi-col,
    .executive-kpi-row > [class*="col-"] {
        flex: 1 1 0% !important;
        max-width: 14.285714% !important;
        width: 14.285714% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .executive-kpi-row .executive-kpi-card {
        padding: 0.65rem 0.55rem 0.55rem 0.55rem !important;
        border-radius: 10px !important;
    }
    .executive-kpi-row .executive-kpi-card .kpi-label {
        font-size: 0.63rem !important;
        letter-spacing: 0.15px !important;
        margin-bottom: 0.15rem !important;
    }
    .executive-kpi-row .executive-kpi-card .kpi-value {
        font-size: 1.50rem !important;
        line-height: 1.1 !important;
    }
    .executive-kpi-row .executive-kpi-card .kpi-icon-pill {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.88rem !important;
        border-radius: 8px !important;
    }
    .executive-kpi-row .executive-kpi-card .kpi-footer {
        padding-top: 0.40rem !important;
        margin-top: 0.40rem !important;
        gap: 0.18rem !important;
    }
    .executive-kpi-row .executive-kpi-card .kpi-footer .badge {
        font-size: 0.65rem !important;
        padding: 0.18rem 0.38rem !important;
        letter-spacing: 0 !important;
    }
}

.dashboard-panel-card {
    background: #ffffff;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.08), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.dashboard-panel-card .card-header {
    background: #0b1e3d;
    color: #ffffff;
    border-bottom: 2.5px solid #f59e0b;
    padding: 0.60rem 1rem;
}

/* Dark mode overrides for executive cards */
html[data-theme="dark"] .executive-kpi-card,
body.theme-dark .executive-kpi-card,
html[data-theme="dark"] .dashboard-panel-card,
body.theme-dark .dashboard-panel-card {
    background: #1e293b !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .executive-kpi-card .kpi-label,
body.theme-dark .executive-kpi-card .kpi-label {
    color: #94a3b8;
}

html[data-theme="dark"] .executive-kpi-card .kpi-value,
body.theme-dark .executive-kpi-card .kpi-value {
    color: #f8fafc;
}

html[data-theme="dark"] .executive-kpi-card .kpi-footer,
body.theme-dark .executive-kpi-card .kpi-footer {
    border-top-color: #334155;
}

/* ==========================================================================
   PWA iOS Floating Prompt & Installation Styles
   ========================================================================== */
.kgp-ios-floating-prompt {
    position: fixed;
    bottom: 18px;
    left: 14px;
    right: 14px;
    max-width: 440px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0b1e3d 0%, #162f5c 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 1rem;
    padding: 10px 14px;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: kgpSlideUpPrompt 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kgpSlideUpPrompt {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#kgpPwaIosInstallModal .modal-content,
#kgpPwaGenericInstallModal .modal-content {
    box-shadow: 0 20px 40px rgba(11, 30, 61, 0.35) !important;
}

.pwa-install-trigger {
    transition: all 0.2s ease-in-out;
}

.pwa-install-trigger:hover {
    transform: translateY(-1px);
}





/* ===================================================
   MOBILE VIEWPORT & HORIZONTAL OVERFLOW PREVENTION
   =================================================== */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

body {
    -webkit-text-size-adjust: 100%;
}

.d-flex {
    min-width: 0;
}

main.flex-grow-1 {
    min-width: 0;
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .kgp-header {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        overflow-x: clip;
    }
    .kgp-header .container-fluid {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        max-width: 100vw;
    }
    .kgp-header .navbar-brand {
        max-width: calc(100vw - 110px) !important;
    }
    .kgp-header .navbar-brand div .fw-bold {
        font-size: 0.82rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .kgp-header-brand-sub {
        font-size: 0.68rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .table th, .table td {
        white-space: nowrap;
    }
    .table td.wrap-cell, .table th.wrap-cell {
        white-space: normal;
    }
}

/* Responsive Header Brand (Prevents Phone Screen Cropping) */
.kgp-header-title {
    font-size: 0.82rem;
    line-height: 1.18;
    letter-spacing: -0.2px;
}
.kgp-header-brand-sub {
    font-size: 0.70rem !important;
    line-height: 1.1;
    letter-spacing: 0.25px;
}
@media (min-width: 768px) {
    .kgp-header-title {
        font-size: 0.96rem;
    }
    .kgp-header-brand-sub {
        font-size: 0.75rem !important;
    }
}
@media (max-width: 575.98px) {
    .kgp-header .navbar-brand {
        max-width: none !important;
    }
    .kgp-header-title {
        font-size: 0.76rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .kgp-header-brand-sub {
        font-size: 0.68rem !important;
    }
}
@media (max-width: 380px) {
    .kgp-header-title {
        font-size: 0.72rem !important;
    }
}