/* Views body Wrapper*/

.body-wrapper .container-fluid, .body-wrapper .container-sm, .body-wrapper .container-md, .body-wrapper .container-lg, .body-wrapper .container-xl, .body-wrapper .container-xxl {
    padding-top: 75px !important;
}
/* ===================== HEADER & SIDEBAR POSITIONING ===================== */

.app-header {
    top: 0px !important;
}

#main-wrapper[data-layout=vertical][data-sidebar-position=fixed] .left-sidebar {
    top: 0px !important;
    position: fixed;
    bottom: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* sidebar itself doesn't scroll */
    z-index: 1000;
}
/* ===================== ACTIVE SIDEBAR LINK STYLES ===================== */

.sidebar-item > .sidebar-link {
    background: transparent !important;
    color: #222 !important;
    border-radius: 8px;
    transition: background 0.2s;
}

    .sidebar-item.active > .sidebar-link, .sidebar-item > .sidebar-link.active {
        background: #2563eb !important;
        color: #fff !important;
    }

    .sidebar-item:not(.active) > .sidebar-link, .sidebar-item > .sidebar-link:not(.active) {
        background: transparent !important;
        color: #222 !important;
    }

.sidebar-item.has-arrow.active > .sidebar-link {
    background: #2563eb !important;
    color: #fff !important;
}

.collapse .sidebar-item > .sidebar-link {
    background: transparent !important;
    color: #222 !important;
}

.collapse .sidebar-item.active > .sidebar-link {
    background: #2563eb !important;
    color: #fff !important;
}
/* ===================== SIDEBAR SCROLL FIX ===================== */ /* This is the actual scrollable container */

.left-sidebar nav.sidebar-nav.scroll-sidebar {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 64px); /* adjust if header is different height */
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

    .left-sidebar nav.sidebar-nav.scroll-sidebar::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    /* Make sure UL fits tight */

    .left-sidebar nav.sidebar-nav.scroll-sidebar > ul {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
        /* Last item flush */

        .left-sidebar nav.sidebar-nav.scroll-sidebar > ul > li:last-child {
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }
    /* ===================== MISC CLEANUP ===================== */ /* Remove accidental padding from Simplebar content */

    .left-sidebar nav.sidebar-nav.scroll-sidebar > .simplebar-content, .left-sidebar nav.sidebar-nav.scroll-sidebar > .simplebar-content-wrapper {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
    }
/* ===================== OPTIONAL FOOTER AREA ===================== */ /* .left-sidebar .sidebar-footer { margin-top: auto; padding: 1rem; border-top: 1px solid #e5e7eb; } */ /* custom override (must load AFTER layouts.css or layouts.scss compiled file) */ /*.body-wrapper .container-fluid, .body-wrapper .container-sm, .body-wrapper .container-md, .body-wrapper .container-lg, .body-wrapper .container-xl, .body-wrapper .container-xxl { max-width: 100% !important; }*/ /*FASTDeatils internal notes*/

.edit-highlight {
    background-color: #fff3cd;
    transition: background-color 1.5s ease;
}

.page-content h1, .page-content h2, .page-content h3 {
    margin-top: 0;
}

/* ===================== BRAND LOGO BLUE HEADER ONLY ===================== */

.left-sidebar .brand-logo {
    background-color: #2f6fb2 !important;
    padding: 0 24px !important;
    min-height: 70px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    /* Make close icon white on mobile */
    .left-sidebar .brand-logo .ti {
        color: #ffffff !important;
    }

    /* ===== FORCE LOGO SIZE FIX ===== */

    .left-sidebar .brand-logo img {
        height: 38px !important;
        width: auto !important;
        display: block;
    }

    /* ===== BRAND LOGO + TEXT INLINE FIX ===== */

    .left-sidebar .brand-logo .logo-img {
        display: flex !important;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        font-size: 18px;
        color: #ffffff !important;
        text-decoration: none;
    }

    .left-sidebar .brand-logo img {
        height: 38px !important;
        width: auto !important;
    }

    .left-sidebar .brand-logo .logo-img img {
        width: 26px;
        height: 26px;
        display: inline-block;
    }

    .left-sidebar .brand-logo .brand-text {
        font-weight: 700;
        font-size: 14px;
        line-height: 1;
        color: #ffffff;
    }

    .left-sidebar .brand-logo .logo-img {
        color: #ffffff !important;
        text-decoration: none;
    }

/* ===================== LOGIN PAGE OVERRIDE ===================== */

html, body {
    background-color: #ffffff !important;
    min-height: 100vh;
}
    /* Center login card */
    body .card {
        border-radius: 20px !important;
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18) !important;
        border: none !important;
        padding: 40px 32px !important;
    }

        /* Heading */
        body .card h2 {
            font-weight: 600 !important;
            font-size: 26px !important;
            letter-spacing: 0.4px;
            color: #1f2937 !important;
        }

        /* Subtext */
        body .card p {
            color: #6b7280 !important;
            font-size: 14px !important;
        }

        /* Inputs */
        body .card .form-control {
            border-radius: 12px !important;
            border: 1px solid #d1d5db !important;
            padding: 12px 14px !important;
        }

            body .card .form-control:focus {
                border-color: #2f5ea7 !important;
                box-shadow: 0 0 0 3px rgba(47, 94, 167, 0.15) !important;
            }

        /* Primary button */
        body .card .btn-primary {
            background-color: #2f5ea7 !important;
            border: none !important;
            border-radius: 12px !important;
            padding: 12px !important;
            font-weight: 600 !important;
            transition: all 0.2s ease;
        }

            body .card .btn-primary:hover {
                background-color: #1f3f73 !important;
                transform: translateY(-2px);
            }

        /* Checkbox */
        body .card .form-check-input:checked {
            background-color: #2f5ea7 !important;
            border-color: #2f5ea7 !important;
        }

.page-wrapper {
    background-color: #ffffff !important;
}

.body-wrapper,
.body-wrapper-inner {
    background-color: #ffffff !important;
}