﻿
:root {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    background: white;
    
}

a {
    color: #4154f1;
    text-decoration: none;
}

    a:hover {
        color: #717ff5;
        text-decoration: none;
    }

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Nunito", sans-serif;
}
/* Card + layout */
.login-wrap {
    max-width: 920px;
    margin: auto !important;
    padding: 18px;
}

.login-card {
    background: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    overflow: hidden;
    display: block;
    position: relative;
    left: 40%;
    transform: translateX(-50%);
}

/* Header */
.login-header {
    color: #91222a;
    font-weight: 600;
    margin: 18px 24px;
    font-size: 20px;
}

/* Inner two columns */
.login-inner {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 240px;
}

.login-left {
    flex: 1 1 50%;
    padding: 28px 34px;
    background: #f6f6f6;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center */
    align-items: center; /* horizontal center */
}

    /* keep labels aligned properly */
    .login-left form {
        width: 100%;
        max-width: 320px;
    }

/* Right nav (inverse color) */
.login-right {
    flex: 1 1 50%;
    padding: 28px 34px;
    border-left: 1px solid rgba(0,0,0,0.06);
    background: #f6f6f6;
}

/* Form styles */
.form-label {
    color: #6b2a2a;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

/* Input fields shorter */
.form-control.rounded-pill {
    border-radius: 26px !important;
    padding: 10px 16px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: none;
    width: 90%;
    max-width: 280px;
}

/* Remember me */
.form-check-label {
    font-size: 13px;
    color: #444;
}

/* Login button */
.btn-login {
    background: #7a0a0a;
    color: #fff;
    border-radius: 28px;
    padding: 10px 20px;
    border: none;
    font-weight: 700;
    width: 220px;
    align-self: center; /* centers inside flex container */
    display: block;
    margin: 10px auto;
}

    .btn-login:hover {
        background: #c00000;
    }

    .btn-login:focus {
        box-shadow: none;
        outline: none;
    }

/* Right side list */
.login-right h5 {
    margin: 0 0 12px 0;
    color: #6a4a4a;
    font-size: 15px;
    font-weight: 700;
}

.portal-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

    .portal-list li {
        padding: 12px 8px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        display: flex;
        align-items: center;
    }

        .portal-list li a {
            color: #91222a;
            text-decoration: none;
            font-weight: 600;
            width: 250px;
        }

            .portal-list li a:hover {
                text-decoration: underline;
                color: #6d1616;
            }

        .portal-list li .chev {
            color: #91222a;
            font-size: 14px;
            width: 18px;
            text-align: center;
            margin-left: 6px;
        }
/* Responsive: stack columns */
@media (max-width: 768px) {
    .login-inner {
        flex-direction: column;
    }

    .login-left, .login-right {
        padding: 18px;
    }

    .btn-login {
        width: 100%;
    }
}
/* Responsive: ensure login card and inner form are centered */
@media (max-width: 991.98px) {
    .login-card {
        /* override earlier left:40% + translateX(-50%) issues */
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 18px auto !important;
        max-width: 420px !important; /* reasonable width on small screens */
        width: calc(100% - 40px) !important; /* keep small side gutters */
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    /* keep header aligned to the card */
    .login-header {
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center;
    }
    /* Ensure the login header is centered inside the login card */
    .login-card .login-header {
        position: relative !important;
        left: auto !important; /* undo any earlier left offset */
        transform: none !important; /* undo translateX */
        display: block !important;
        margin: 18px auto !important; /* center horizontally */
        text-align: center !important;
        width: auto !important;
        max-width: calc(100% - 48px) !important; /* respect card padding */
        box-sizing: border-box !important;
    }

    /* ensure the left column's form is full-width and centered inside the card */
    .login-left form {
        margin: 0 auto;
        max-width: 360px;
        width: 100%;
        box-sizing: border-box;
    }

    /* small padding adjustments */
    .login-left,
    .login-right {
        padding: 18px !important;
    }
}

/* outer highlighted background behind the card */
.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* two-column inner area */
.login-inner {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 240px;
}

/* left & right pane styling */
.login-left,
.login-right {
    padding: 28px 34px;
}

}

/* right pane slight tint and divider */
.login-right {
    background: transparent;
    border-left: 1px solid rgba(0,0,0,0.06);
}

/* header spacing */

.login-header {
    color: #91222a;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    left: 40%;
    transform: translateX(-50%);
    text-align: left;
    width: 100%;
}


.form-group p span {
    color: black;
}

.main-header {
    color: #91222a;
    font-weight: 600;
    font-size: 20px;
    padding: 20px 30px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

/* single login center */
.single-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.login-title {
    color: #91222a;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.single-login form {
    width: 320px;
}

.login-btn-wrap {
    width: 300px; /* same width as input */
    margin: 15px auto;
    text-align: center;
}

    .login-btn-wrap button {
        display: block;
        margin: 0 auto;
    }
/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
    margin-top: 60px !important;
    padding: 25px 57px !important;
}

/*    #main a {
        display: block;
        margin: 12px 0;
        font-size: 14.5px;
        color: #4a4a4a;
        background-color: transparent;
        border-color: transparent;
    }

        #main a:hover {
            color: #b30000;
            text-decoration: underline;
        }*/

@media (max-width: 1199px) {
    #main {
        padding: 20px;
    }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
    margin-bottom: 10px;
}

    .pagetitle h1 {
        font-size: 24px;
        margin-bottom: 0;
        font-weight: 600;
        color: #012970;
    }

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: #4154f1;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

    .back-to-top i {
        font-size: 24px;
        color: #fff;
        line-height: 0;
    }

    .back-to-top:hover {
        background: #6776f4;
        color: #fff;
    }

    .back-to-top.active {
        visibility: visible;
        opacity: 1;
    }

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
    border-radius: 4px;
    padding: 10px 0;
    animation-name: dropdown-animate;
    animation-duration: 0.2s;
    animation-fill-mode: both;
    border: 0;
    box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

    .dropdown-menu .dropdown-header,
    .dropdown-menu .dropdown-footer {
        text-align: center;
        font-size: 15px;
        padding: 10px 25px;
    }

        .dropdown-menu .dropdown-footer a {
            color: #444444;
            text-decoration: underline;
        }

            .dropdown-menu .dropdown-footer a:hover {
                text-decoration: none;
            }

    .dropdown-menu .dropdown-divider {
        color: #a5c5fe;
        margin: 0;
    }

    .dropdown-menu .dropdown-item {
        font-size: 14px;
        padding: 10px 15px;
        transition: 0.3s;
    }

        .dropdown-menu .dropdown-item i {
            margin-right: 10px;
            font-size: 18px;
            line-height: 0;
        }

        .dropdown-menu .dropdown-item:hover {
            background-color: #f6f9ff;
        }

@media (min-width: 768px) {
    .dropdown-menu-arrow::before {
        content: "";
        width: 13px;
        height: 13px;
        background: #fff;
        position: absolute;
        top: -7px;
        right: 20px;
        transform: rotate(45deg);
        border-top: 1px solid #eaedf1;
        border-left: 1px solid #eaedf1;
    }
}

@keyframes dropdown-animate {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

    0% {
        opacity: 0;
    }
}

/* Light Backgrounds */
.bg-primary-light {
    background-color: #cfe2ff;
    border-color: #cfe2ff;
}

.bg-secondary-light {
    background-color: #e2e3e5;
    border-color: #e2e3e5;
}

.bg-success-light {
    background-color: #d1e7dd;
    border-color: #d1e7dd;
}

.bg-danger-light {
    background-color: #f8d7da;
    border-color: #f8d7da;
}

.bg-warning-light {
    background-color: #fff3cd;
    border-color: #fff3cd;
}

.bg-info-light {
    background-color: #cff4fc;
    border-color: #cff4fc;
}

.bg-dark-light {
    background-color: #d3d3d4;
    border-color: #d3d3d4;
}

/* Card */
/* ----------- MAIN CARD CLEAN LOOK (MATCHES YOUR IMAGE) ----------- */

.card {
    border: none !important;
    background: transparent !important; /* No white box, same as image */
    box-shadow: none !important;
    margin: 0;
    padding: 0;
}

/* Card body spacing corrected */
/*.card-body {
    padding: 0 !important;*/ /* remove unnecessary padding */
    /*margin-top: 10px;
}*/

/* Title styling (already correct, just tightening) */
.card-title {
    padding: 0 0 15px 0;
    font-weight: 500;
    color: #b30000 !important;
    font-size: 17px;
    margin: 0 0 25px 0;
    font-family: "Poppins", sans-serif;
}

.card-body h5.card-title + .btn-secondary {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background-color: #f2f2f2;
    color: #900c1f;
    border: none;
    padding: 0.35rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 1px 1px #bb5b59;
    white-space: nowrap;
}


/* Buttons look like plain text (same as image) */
.card .btn-link {
    padding: 0;
    margin-right: 30px;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #c7c4c4; /* underline for each item */
    width: 25%;
    text-align: left;
}

    .card .btn-link:hover {
        color: #b30000 !important;
        text-decoration: none !important;
    }

/* Move buttons to the top-right area where the DataTables search control appears */
.card-body .dt-buttons {
    position: absolute;
    right: 16px; /* distance from right edge of the card */
    top: 80px; /* adjust this to line up with the search control */
    display: flex;
    gap: 4px;
    z-index: 20;
    white-space: nowrap;
}

    /* Pill button look to match the image */
    .card-body .dt-buttons .dt-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        height: 36px; /* match search control height */
        padding: 6px 14px !important; /* pill padding */
        background: #ffffff !important; /* white pill */
        color: #900c1f !important; /* maroon text */
        border: 1px solid rgba(144, 12, 31, 0.12) !important;
        border-radius: 22px !important; /* pill radius */
        font-weight: 600 !important;
        font-size: 13px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        box-shadow: 0 1px 0 rgba(0,0,0,0.03) !important;
        transition: background-color 120ms ease, transform 80ms ease, box-shadow 120ms ease;
    }

        /* Slight spacing when buttons are adjacent */
        .card-body .dt-buttons .dt-button + .dt-button {
            margin-left: 6px !important;
        }

        /* Subtle hover / focus states (keeps maroon theme) */
        .card-body .dt-buttons .dt-button:hover,
        .card-body .dt-buttons .dt-button:focus {
            background: rgba(144, 12, 31, 0.06) !important;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.06) !important;
            outline: none !important;
        }

        /* Active / pressed feedback */
        .card-body .dt-buttons .dt-button:active {
            transform: translateY(0) !important;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
        }

        /* If DataTables injects <span> inside, ensure spacing aligns */
        .card-body .dt-buttons .dt-button > span {
            display: inline-block;
            vertical-align: middle;
        }

/* Responsive: stack under filter on small screens */
@media (max-width: 767px) {
    .card-body .dt-buttons {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        position: static !important;
        justify-content: flex-end;
    }

        .card-body .dt-buttons .dt-button {
            height: 34px;
            padding: 6px 10px !important;
            font-size: 13px !important;
        }
}

@media (max-width: 576px) {
    .card-body h5.card-title + .btn-secondary {
        position: static;
        margin-top: 0.75rem;
        display: block;
        width: 50%;
        margin-left: auto; /* 🔑 pushes button to right */
        margin-right: 0;
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}


/* When the DataTables wrapper is used, ensure filter is inline so placement looks correct */
.card-body .dataTables_wrapper .dataTables_filter {
    display: inline-flex;
    align-items: center;
}



/* Alerts */
.alert-heading {
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
}

/* Close Button */
.btn-close {
    background-size: 25%;
}

    .btn-close:focus {
        outline: 0;
        box-shadow: none;
    }

/* Accordion */
.accordion-item {
    border: 1px solid #ebeef4;
}

.accordion-button:focus {
    outline: 0;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: #012970;
    background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
    padding: 15px 0;
    background: none;
    border: 0;
}

    .accordion-flush .accordion-button:not(.collapsed) {
        box-shadow: none;
        color: #4154f1;
    }

.accordion-flush .accordion-body {
    padding: 0 0 15px 0;
    color: #3e4f6f;
    font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 14px;
    font-family: "Nunito", sans-serif;
    color: #899bbd;
    font-weight: 600;
}

    .breadcrumb a {
        color: #899bbd;
        transition: 0.3s;
    }

        .breadcrumb a:hover {
            color: #51678f;
        }

    .breadcrumb .breadcrumb-item::before {
        color: #899bbd;
    }

    .breadcrumb .active {
        color: #51678f;
        font-weight: 600;
    }

/* Bordered Tabs */
/* ---------- TAB STRIP ---------- */
.nav-tabs {
    border-bottom: 2px solid #ffffff !important;
    padding-left: 20px;
    margin-bottom: 20px;
}

    /* Each tab */
    .nav-tabs .nav-link {
        border: none !important;
        margin-right: 50px;
        padding: 6px 0;
        background: transparent !important;
        color: #747373 !important;
        font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        position: relative; /* needed for underline */
    }

        /* Hover */
        .nav-tabs .nav-link:hover {
        }

        /* Active tab */
        .nav-tabs .nav-link.active {
            background: transparent !important;
        }

            /* Centered underline */
            .nav-tabs .nav-link.active::after {
                content: "";
                position: absolute;
                bottom: -2px;
                left: 50%;
                transform: translateX(-50%);
                height: 2px;
                width: 90px; /* underline = text width */
                background-color: #b30000;
                border-radius: 2px;
            }


/* Replace .section-row grid with a compact, responsive flex layout */
/* Compact row + shorter centered underline to match image(4.png) */
/* Section row — left aligned (start of line) */
.section-row {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    align-items: flex-start;
    justify-content: flex-start; /* ensure items start at left */
    margin-top: 20px;
}

.section-item {
    font-size: 15px;
    color: #5a0000;
    font-weight: 500;
    position: relative;
    display: inline-block; /* shrink-to-fit */
    padding-bottom: 8px;
    margin-bottom: 6px;
    white-space: normal; /* allow wrapping and start at left */
}

    /* Underline starts at text left and is shorter than full text */
    .section-item::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 180%; /* adjust length as needed */
        height: 1px;
        background: #c7c7c7;
        transform: none;
        pointer-events: none;
    }

@media (max-width: 991.98px) {
    /* make main/content stack vertically and fill width */
    .main-content,
    .tab-content,
    .tab-pane,
    .card,
    .card-body {
        width: 100% !important;
        box-sizing: border-box;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* stack bootstrap grid columns used in forms */
    form.row.g-3 {
        flex-direction: column !important;
    }

        form.row.g-3 > [class*="col-"] {
            flex: 0 0 100% !important;
            max-width: 100% !important;
            padding-left: 0.5rem !important;
            padding-right: 0.5rem !important;
        }

    /* make the card action links behave like block items in order */
    .card .btn-link,
    .tab-pane a {
        display: block !important;
        width: 100% !important;
        margin: 8px 0 !important;
        padding: 10px 12px !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    }

    /* datatable tools flow under content */
    .card-body .dt-buttons {
        position: static !important;
        margin-top: 8px !important;
        right: auto !important;
        top: auto !important;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* reduce sidebar impact on small screens */

}

@media (max-width: 575.98px) {
    /* further tighten spacing and stack everything one-by-one */
    .main-content,
    .card,
    .card-body {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .nav-tabs .nav-link {
        margin-right: 18px !important;
        font-size: 13px !important;
        padding: 8px 0 !important;
    }

    .card .btn-link,
    .tab-pane a {
        padding: 10px 8px !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    /* ensure datatable horizontal scrolling still available */
    .datatable-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* make small interactive elements easier to tap */
    .card .btn-link,
    .tab-pane a,
    .card-body .dt-buttons .dt-button {
        border-radius: 6px !important;
        padding: 10px 12px !important;
    }
}
/* -------------------- HEADER BASE -------------------- */
.header {
    background: #800001 !important;
    height: 50px !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    z-index: 999 !important;
}

    /* ----------- LOGO LEFT SECTION ----------- */
    .header .logo img {
        height: 44px !important;
        width: auto !important;
    }

    .header .logo span {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #fff !important;
        margin-left: 8px !important;
    }

.toggle-sidebar-btn {
    font-size: 26px !important;
    color: #fff !important;
    margin-left: 16px !important;
}

/* -------------------- SEARCH BAR -------------------- */
/* -------------------- SEARCH BAR (FULLY FORCED) -------------------- */
/* -----------------------------------
   RESET UL / LI DOTS
----------------------------------- */
.header-nav ul,
.header-nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* -----------------------------------
   FIX THE TOP HEADER
----------------------------------- */
.header.fixed-top {
    background: rgb(128, 0, 0) !important;
    height: 59px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    z-index: 2000 !important;
}

/* -----------------------------------
   LEFT LOGO + TITLE
----------------------------------- */
.header .logo img {
    height: 48px !important;
    width: auto !important;
}

.header .logo span {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    white-space: nowrap !important;
}

.toggle-sidebar-btn {
    font-size: 26px !important;
    color: white !important;
    margin-left: 14px !important;
    display: none !important;
}

/* -----------------------------------
   SEARCH BAR — EXACT MATCH
----------------------------------- */
.header .search,
header .search {
    display: none !important;
}

/* Centered pill-style search bar */
.header .search,
header .search {
    display: none !important;
}
/* hide legacy .search from _Layout */

.search-bar {
    flex: 1 1 auto;
    min-width: 0; /* allow shrinking on small screens */
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 12px;
    box-sizing: border-box;
    z-index: 1500; /* keep above other header elements if needed */
}

    .search-bar .search-form {
        width: 100%;
        max-width: 720px; /* desktop width */
        height: 35px;
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,0.08);
        display: flex;
        align-items: center;
        padding: 0 12px;
        gap: 10px;
        box-sizing: border-box;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }

        .search-bar .search-form input[type="text"],
        .search-bar .search-form input[type="search"] {
            flex: 1 1 auto;
            min-width: 0;
            border: none;
            outline: none;
            background: transparent;
            font-size: 14px;
            color: #222;
            padding: 6px 0;
        }

        /* submit button: icon-only round button */
        .search-bar .search-form button {
            background: transparent;
            border: none;
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #7A0000;
            border-radius: 50%;
            cursor: pointer;
            padding: 0;
        }

            /* use bootstrap-icons if available; fallback to visible <i> inside button */
            .search-bar .search-form button::after {
                content: "\F52A";
                font-family: "bootstrap-icons";
                font-size: 16px;
                color: #7A0000;
            }

/* hover feedback */


/* Hide the mobile-only icon that creates the duplicate search (nav-item in header) */
.header-nav .search-bar-toggle,
.nav-item.d-block.d-lg-none {
    display: none !important;
}


/* -----------------------------------
   RIGHT NAV ICONS
----------------------------------- */
.header-nav {
    /* remove the bootstrap ms-auto push on the container */
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap;
}

    .header-nav ul {
        display: flex;
        gap: 10px;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .header-nav .nav-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-nav .nav-item,
    .header-nav .nav-link,
    .icon-btn {
        margin-left: 6px;
        margin-right: 6px;
    }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.header-nav .nav-icon {
    color: #fff !important;
    font-size: 22px !important;
}

.header-nav .badge-number {
    position: absolute !important;
    top: -6px !important;
    right: -10px !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
    border-radius: 50% !important;
}

/* Push only the profile/avatar to the far right, creating space between icons and avatar */
.header-nav .nav-profile {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}
    /* Optional: small visual tweak so avatar never touches the right edge */
    .header-nav .nav-profile .avatar-small {
        margin-right: 5px;
    }
/* -----------------------------------
   USER AVATAR + TEXT
----------------------------------- */
.nav-profile .avatar-small {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #fff !important;
    font-weight: 700 !important;
    color: #7A0000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 17px !important;
}

/* Remove underline + fix alignment */
.nav-profile {
    display: flex !important;
    align-items: center !important;
    gap: 0px !important;
    color: #fff !important;
}

    .nav-profile .dropdown-toggle {
        color: #fff !important;
    }
/* ---------- PROFILE DROPDOWN CONTAINER ---------- */
.login-menu {
    width: 260px;
    border: none !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.18) !important;
    margin-top: 12px !important;
}

    /* ---------- RED HEADER AREA ---------- */
    .login-menu .menu-header {
        background: #900000 !important; /* Deep Red */
        color: #fff !important;
        padding: 20px 10px !important;
    }

    /* ---------- BIG CIRCLE AVATAR ---------- */
    .login-menu .avatar-large {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        color: #900000 !important;
        font-size: 40px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 10px auto !important;
    }

    /* ---------- NAME + EMAIL ---------- */
    .login-menu .menu-username {
        color: #fff !important;
        font-size: 1.1rem !important;
        margin-bottom: 3px !important;
    }

    .login-menu .menu-email {
        color: #f1f1f1 !important;
        font-size: .85rem !important;
    }

    /* ---------- WHITE BUTTON AREA ---------- */
    .login-menu .menu-actions {
        background: #ffffff !important;
        padding: 15px !important;
        text-align: center !important;
        border-top: 1px solid #e7e7e7 !important;
    }

    /* Style Sign Out button */
    .login-menu button.btn-danger {
        background: #900000 !important;
        border: none !important;
        color: white;
    }

/* -----------------------------------
   RESPONSIVE FIXES
----------------------------------- */
@media (max-width: 1024px) {
    .search-bar .search-form {
        max-width: 560px;
    }
}

@media (max-width: 991px) {


    .search-bar .search-form {
        max-width: 60%;
    }

    .header .logo span {
        max-width: 160px;
    }
}

@media (max-width: 800px) {
    .search-bar {
        margin: 0 8px;
    }

        .search-bar .search-form {
            max-width: none;
            width: calc(100% - 16px); /* small left/right gutters inside header */
            height: 36px;
            border-radius: 20px;
            padding: 0 10px;
            gap: 8px;
        }

    /* keep mobile icon hidden so only pill is shown */
    .header-nav .search-bar-toggle,
    .nav-item.d-block.d-lg-none {
        display: none !important;
    }
    /* keep notifications next to search on mobile too */
    .header-nav,
    .header-nav > ul {
        gap: 8px;
    }

        /* ensure avatar still moves to the right edge */
        .header-nav .nav-profile {
            margin-left: auto !important;
        }
}

/* hides old/desktop search */

@media (min-width: 801px) {
    .nift-topbar .search {
        display: none !important;
    }
    /* hides mobile search on desktop */
}

@media (max-width: 640px) {
    .search-bar {
        display: none !important;
    }

    .header .logo span {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .search-bar .search-form {
        width: calc(100% - 12px);
        height: 34px;
        border-radius: 18px;
    }

        .search-bar .search-form button {
            width: 32px;
            height: 32px;
        }

        .search-bar .search-form input {
            font-size: 13px;
        }
}


/* Profile dropdown alignment */
.login-menu {
    margin-top: 12px !important;
    width: 230px !important;
}

/* Larger avatar inside dropdown */
.avatar-large {
    width: 70px !important;
    height: 70px !important;
    background: #8b0000 !important;
    color: #fff !important;
    font-size: 34px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* -------------------- RESPONSIVE RULES -------------------- */

@media (max-width: 992px) {
    .search-bar {
        max-width: 100% !important;
    }

    .toggle-sidebar-btn {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .search-bar {
        display: flex !important; /* keep visible */
        width: 100% !important;
        justify-content: center !important;
    }

        .search-bar .search-form {
            width: 90% !important; /* auto fit */
            height: 38px !important;
        }

    .header {
        padding: 0 12px !important;
        overflow: visible;
        align-items: center;
    }

    .header-nav > ul {
        gap: 14px !important;
    }

    .header .logo span {
        display: inline-block;
        max-width: 220px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .avatar-small {
        width: 30px !important;
        height: 30px !important;
        font-size: 15px !important;
    }
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
    background-color: #f6f5f5;
}

@media (max-width: 1199px) {
    .sidebar {
        left: -300px;
    }
}

.sidebar::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

@media (min-width: 1200px) {

    #main,
    #footer {
        margin-left: 300px;
    }

    .sidebar {
        left: 0 !important;
        transform: none !important;
        transition: left 240ms ease, transform 240ms ease !important;
    }

    /* Ensure content reserves space for the sidebar */
    #main, main, .content-area {
        margin-left: 300px !important; /* match .sidebar width */
        transition: margin-left 240ms ease !important;
    }

    /* If body has mobile toggle class, do not collapse desktop layout */
    .toggle-sidebar #main,
    .toggle-sidebar main,
    .toggle-sidebar .content-area,
    .toggle-sidebar #footer {
        margin-left: 300px !important;
    }

    /* Hide mobile overlay on desktop */
    .sidebar-overlay {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Clear no-scroll on desktop */
    body.no-scroll {
        overflow: visible !important;
        touch-action: auto !important;
    }
}

@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

    .sidebar-nav li {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .sidebar-nav .nav-item {
        margin-bottom: 5px;
    }

    .sidebar-nav .nav-heading {
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 600;
        margin: 10px 0 5px 15px;
    }

    .sidebar-nav .nav-link {
        display: flex;
        align-items: center;
        font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        transition: 0.3s;
        padding: 10px 15px;
        color: #747373 !important;
        border-radius: 14px;
        overflow: hidden; /* clip inner backgrounds to the rounded corners */
        position: relative
    }

        .sidebar-nav .nav-link i {
            font-size: 16px;
            margin-right: 10px;
        }

        .sidebar-nav .nav-link.collapsed {
            color: #5f5f5f;
        }

            .sidebar-nav .nav-link.collapsed i {
                color: black;
            }

        .sidebar-nav .nav-link:hover {
            color: white !important;
            background: #7f3f3f !important;
            border-radius: 14px !important;
        }

        .sidebar-nav .nav-link .pill,
        .sidebar-nav .nav-link .nav-item-bg {
            border-radius: 14px;
            background-clip: padding-box; /* prevent background bleed on corners */
        }

        .sidebar-nav .nav-link:hover .pill,
        .sidebar-nav .nav-link:hover .nav-item-bg {
            background: transparent !important;
        }

        .sidebar-nav .nav-link:hover i {
            color: white;
            border-radius: 14px;
        }

        .sidebar-nav .nav-link .bi-caret-down-fill {
            margin-right: 0;
            transition: transform 0.2s ease-in-out;
        }

        .sidebar-nav .nav-link:not(.collapsed) .bi-caret-down-fill {
            transform: rotate(180deg);
        }

    .sidebar-nav .nav-content {
        padding: 5px 0 0 0;
        margin: 0;
        list-style: none;
    }

        .sidebar-nav .nav-content a {
            display: flex;
            align-items: center;
            font-size: 14px;
            font-weight: 600;
            color: #012970;
            transition: 0.3s;
            padding: 10px 0 10px 40px;
            transition: 0.3s;
        }

            .sidebar-nav .nav-content a i {
                font-size: 6px;
                margin-right: 8px;
                line-height: 0;
                border-radius: 50%;
            }

            .sidebar-nav .nav-content a:hover,
            .sidebar-nav .nav-content a.active {
                color: #4154f1;
            }

                .sidebar-nav .nav-content a.active i {
                    background-color: #4154f1;
                }
    /* Sidebar collapse caret: left -> down */
    .sidebar-nav .nav-link .bi-caret-left-fill {
        transition: transform 220ms ease;
        transform-origin: 50% 50%;
        transform: rotate(0deg); /* initial: points left */
    }

    /* rotate to point down when expanded */
    .sidebar-nav .nav-link[aria-expanded="true"] .bi-caret-left-fill,
    .sidebar-nav .nav-link:not(.collapsed) .bi-caret-left-fill {
        transform: rotate(-90deg); /* down */
    }
/* ------------------------------
   ACTIVE DROPDOWN
------------------------------ */
.nav-content a {
    padding: 8px 30px !important;
    font-size: 13px !important;
    color: #555 !important;
}

    .nav-content a:hover {
        background: #ececec !important;
        color: #000 !important;
    }

    /* Remove the dot icon next to sub-items (bi-circle) */
    .nav-content a i {
        display: none !important;
    }

/* Divider fix */
.nav-content .dropdown-divider {
    margin: 4px 0 !important;
}



/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
    position: absolute;
    right: 0px;
    top: 15px;
}

    .dashboard .filter .icon {
        color: #aab7cf;
        padding-right: 20px;
        padding-bottom: 5px;
        transition: 0.3s;
        font-size: 16px;
    }

        .dashboard .filter .icon:hover,
        .dashboard .filter .icon:focus {
            color: #4154f1;
        }

    .dashboard .filter .dropdown-header {
        padding: 8px 15px;
    }

        .dashboard .filter .dropdown-header h6 {
            text-transform: uppercase;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 1px;
            color: #aab7cf;
            margin-bottom: 0;
            padding: 0;
        }

    .dashboard .filter .dropdown-item {
        padding: 8px 15px;
    }

/* Info Cards */
.dashboard .info-card {
    padding-bottom: 10px;
}

    .dashboard .info-card h6 {
        font-size: 28px;
        color: #012970;
        font-weight: 700;
        margin: 0;
        padding: 0;
    }

.dashboard .card-icon {
    font-size: 32px;
    line-height: 0;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    flex-grow: 0;
}

.dashboard .sales-card .card-icon {
    color: #4154f1;
    background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
    color: #2eca6a;
    background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
    color: #ff771d;
    background: #ffecdf;
}

/* Activity */
.dashboard .activity {
    font-size: 14px;
}

    .dashboard .activity .activity-item .activite-label {
        color: #888;
        position: relative;
        flex-shrink: 0;
        flex-grow: 0;
        min-width: 64px;
    }

        .dashboard .activity .activity-item .activite-label::before {
            content: "";
            position: absolute;
            right: -11px;
            width: 4px;
            top: 0;
            bottom: 0;
            background-color: #eceefe;
        }

    .dashboard .activity .activity-item .activity-badge {
        margin-top: 3px;
        z-index: 1;
        font-size: 11px;
        line-height: 0;
        border-radius: 50%;
        flex-shrink: 0;
        border: 3px solid #fff;
        flex-grow: 0;
    }

    .dashboard .activity .activity-item .activity-content {
        padding-left: 10px;
        padding-bottom: 20px;
    }

    .dashboard .activity .activity-item:first-child .activite-label::before {
        top: 5px;
    }

    .dashboard .activity .activity-item:last-child .activity-content {
        padding-bottom: 0;
    }

/* News & Updates */
.dashboard .news .post-item + .post-item {
    margin-top: 15px;
}

.dashboard .news img {
    width: 80px;
    float: left;
    border-radius: 5px;
}

.dashboard .news h4 {
    font-size: 15px;
    margin-left: 95px;
    font-weight: bold;
    margin-bottom: 5px;
}

    .dashboard .news h4 a {
        color: #012970;
        transition: 0.3s;
    }

        .dashboard .news h4 a:hover {
            color: #4154f1;
        }

.dashboard .news p {
    font-size: 14px;
    color: #777777;
    margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
    font-size: 14px;
}

    .dashboard .recent-sales .table thead {
        background: #f6f6fe;
    }

        .dashboard .recent-sales .table thead th {
            border: 0;
        }

    .dashboard .recent-sales .dataTable-top {
        padding: 0 0 10px 0;
    }

    .dashboard .recent-sales .dataTable-bottom {
        padding: 10px 0 0 0;
    }

/* Top Selling */
.dashboard .top-selling {
    font-size: 14px;
}

    .dashboard .top-selling .table thead {
        background: #f6f6fe;
    }

        .dashboard .top-selling .table thead th {
            border: 0;
        }

    .dashboard .top-selling .table tbody td {
        vertical-align: middle;
    }

    .dashboard .top-selling img {
        border-radius: 5px;
        max-width: 60px;
    }

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
    display: grid;
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    padding-top: 15px;
}

    .iconslist .icon {
        background-color: #fff;
        border-radius: 0.25rem;
        text-align: center;
        color: #012970;
        padding: 15px 0;
    }

    .iconslist i {
        margin: 0.25rem;
        font-size: 2.5rem;
    }

    .iconslist .label {
        font-family: var(--bs-font-monospace);
        display: inline-block;
        width: 100%;
        overflow: hidden;
        padding: 0.25rem;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #666;
    }

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
    max-width: 120px;
}

.profile .profile-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c384e;
    margin: 10px 0 0 0;
}

.profile .profile-card h3 {
    font-size: 18px;
}

.profile .profile-card .social-links a {
    font-size: 20px;
    display: inline-block;
    color: rgba(1, 41, 112, 0.5);
    line-height: 0;
    margin-right: 10px;
    transition: 0.3s;
}

    .profile .profile-card .social-links a:hover {
        color: #012970;
    }

.profile .profile-overview .row {
    margin-bottom: 20px;
    font-size: 15px;
}

.profile .profile-overview .card-title {
    color: #012970;
}

.profile .profile-overview .label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
    max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
    font-size: 18px;
    font-weight: 600;
    color: #4154f1;
}

.faq .basic p {
    color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
    padding: 28px 30px;
}

    .contact .info-box i {
        font-size: 38px;
        line-height: 0;
        color: #4154f1;
    }

    .contact .info-box h3 {
        font-size: 20px;
        color: #012970;
        font-weight: 700;
        margin: 20px 0 10px 0;
    }

    .contact .info-box p {
        padding: 0;
        line-height: 24px;
        font-size: 14px;
        margin-bottom: 0;
    }

.contact .php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact .php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact .php-email-form .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

    .contact .php-email-form .loading:before {
        content: "";
        display: inline-block;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        margin: 0 10px -6px 0;
        border: 3px solid #18d26e;
        border-top-color: #eee;
        animation: animate-loading 1s linear infinite;
    }

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
    padding: 30px;
}

    .error-404 h1 {
        font-size: 180px;
        font-weight: 700;
        color: #4154f1;
        margin-bottom: 0;
        line-height: 150px;
    }

    .error-404 h2 {
        font-size: 24px;
        font-weight: 700;
        color: #012970;
        margin-bottom: 30px;
    }

    .error-404 .btn {
        background: #51678f;
        color: #fff;
        padding: 8px 30px;
    }

        .error-404 .btn:hover {
            background: #3e4f6f;
        }

@media (min-width: 992px) {
    .error-404 img {
        max-width: 50%;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    padding: 20px 0;
    font-size: 14px;
    transition: all 0.3s;
    border-top: 1px solid #cddfff;
}

    .footer .copyright {
        text-align: center;
        color: #012970;
    }

    .footer .credits {
        padding-top: 5px;
        text-align: center;
        font-size: 13px;
        color: #012970;
    }

.panel {
    width: 100% !important; /* make this panel full width */
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block;
    box-sizing: border-box;
}

    .panel form {
        width: 100% !important; /* ensure form inside also spans full width */
    }

form.row.g-3 {
    display: flex; /* restore bootstrap */
    flex-wrap: wrap;
}

/* =========================
   LABELS
========================= */
.card .card-body .control-label {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    color: #444;
}

/* =========================
   INPUTS & SELECTS
========================= */
/*.form-control {
    height: 38px !important;
    border-radius: 4px !important;
}

.control-label {
    font-weight: 600 !important;
    font-size: 10px !important;     
}

.card-title {
    color: #8b0000 !important;
}*/
/* TARGET NICEADMIN FORM INSIDE CARD */
/*.card .card-body form {
    max-width: 900px !important;
    margin: auto !important;
}*/

/* FORM LABEL */
/*.card .card-body label.control-label {
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #444 !important;
}*/

/* INPUT FIELDS */
/*.card .card-body input.form-control,
.card .card-body select.form-control,
.card .card-body textarea.form-control {
    border-radius: 6px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
}*/

/* TEXTAREA */
/*.card .card-body textarea.form-control {
    resize: vertical !important;
}*/

/* CARD TITLE */
/*.card .card-body .card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #8b0000 !important;
}*/

/* BUTTON CENTER */
/*.card .card-body .text-center {
    text-align: center !important;
}*/

/* SUBMIT BUTTON */
/*.card .card-body .btn-info {
    background-color: #8b0000 !important;
    border-color: #8b0000 !important;
    padding: 8px 30px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}*/

/* =========================
   DEPARTMENT CHECKBOX GRID
========================= */
.card .card-body .row.g-3 > .col-md-4 {
    display: flex;
    align-items: center;
}

.form-check {
    padding-left: 1.5em;
    font-size: 13px;
}

.form-check-input {
    margin-top: 0.2em;
}

/* =========================
   TABLE STYLES
========================= */
.card .card-body .table-responsive {
    overflow-x: auto;
    margin-top: 8px;
}



.card .card-body table.table th,
.card .card-body table.table td {
    border: 1px solid #e9ecef;
    padding: 10px;
    vertical-align: top;
}

.card .card-body table.table th {
    background: #f7f7f7;
    font-weight: 700;
    white-space: nowrap;
    font-size: 13px;
}

    /* Sl.No column */
    .card .card-body table.table th:first-child,
    .card .card-body table.table td:first-child {
        width: 50px;
        text-align: center;
        
        font-size: 13px;
    }

/* =========================
   BUTTONS
========================= */
.card .card-body .btn-primary {
    background-color: transparent !important;
    border-color: transparent !important;
    color: limegreen;
    padding: 4px 6px !important;
    font-weight: 600;
}

.text-center .btn-primary {
    background-color: #de4a7b;
    border-color: #00acd6;
}

.card .card-body .btn-primary:hover {
    background: #487d04;
    border-color: #487d04;
}

/*.btn-danger {
    background-color: transparent !important;
    border-color: transparent !important;
    padding: 4px 6px !important;
    font-weight: 600;
}

    .btn-danger .bi-trash-fill {
        background-color: transparent !important;
        border-color: black!important;
        color: red !important;
        padding: 4px 0px !important;
        font-weight: 600;
    }*/
/* =========================
   SPACING FIX (MATCH IMAGE)
========================= */
.card .card-body .col-md-12 {
    margin-top: 8px;
}


/* =========================
   Submit / Cancel buttons
   Align side-by-side (right)
========================= */
.card .card-body .text-center {
    text-align: left !important;
}

    .card .card-body .text-center .btn {
        display: inline-block;
        margin-left: 8px;
    }

/* Desktop (≥ 992px) → 3 columns */
@media (min-width: 992px) {
    form.row.g-3 > .col-md-6 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
/* ============================= */
/* PROFILE DROPDOWN – CUSTOM UI */
/* ============================= */

/* Dropdown container */
.profile.dropdown-menu {
    width: 280px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: linear-gradient(#8b0000 0px, #8b0000 110px, #ffffff 110px) !important;
}

    .profile.dropdown-menu > img {
        display: block;
        margin: 15px auto 10px auto;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        border: 3px solid #ffffff;
    }

.dropdown-menu-arrow::before {
    border-bottom-color: #8b0000 !important;
}

.profile.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ============================= */
/* HEADER (MAROON AREA) */
/* ============================= */
.profile .dropdown-header {
    background: #8b0000 !important;
    color: #ffffff !important;
    padding: 20px 15px !important;
    text-align: center !important;
}

    /* Username */
    .profile .dropdown-header h6 {
        color: #ffffff !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
        text-transform: lowercase !important;
    }

    /* Role text */
    .profile .dropdown-header span {
        font-size: 13px !important;
        color: #f2f2f2 !important;
    }

/* ============================= */
/* PROFILE IMAGE */
/* ============================= */
.nav-profile img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover !important;
}

.nav-item.dropdown {
    position: relative !important;
}


    .nav-item.dropdown .profile.dropdown-menu {
        right: -8px !important; /* move dropdown slightly right */
        left: auto !important;
        top: 100% !important;
        margin-top: 10px !important;
    }
/* ===================================== */
/* PROFILE IMAGE INSIDE DROPDOWN */
/* ===================================== */

.dropdown-profile-img {
    width: 64px !important; /* small size */
    height: 64px !important; /* same as width */
    border-radius: 50% !important;
    object-fit: cover !important; /* crops image properly */
    display: block !important;
    margin: 0 auto 10px auto !important;
    border: 3px solid #ffffff !important;
    background-color: #ffffff !important;
}
/* ================================================= */
/* FORCE SMALL PROFILE IMAGE INSIDE DROPDOWN */
/* ================================================= */

.profile .dropdown-header img,
.profile .dropdown-header .dropdown-profile-img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 8px auto !important;
    border: 3px solid #ffffff !important;
    background: #ffffff !important;
}

.header .nav-link::after {
    display: none !important;
    content: none !important;
}
/* Make header extend to cover image space */
.profile.dropdown-menu img.rounded-circle {
    display: block;
    margin: 15px auto 5px auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    position: relative;
    z-index: 2;
}

/* Create red background behind the image */

/* ============================= */
/* DIVIDERS */
/* ============================= */
.profile .dropdown-divider {
    margin: 0 !important;
    opacity: 0.2 !important;
}

/* ============================= */
/* DROPDOWN ITEMS */
/* ============================= */
.profile .dropdown-item {
    padding: 12px 15px !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: background 0.2s ease !important;
}

    /* Icons */
    .profile .dropdown-item i {
        font-size: 18px !important;
        margin-right: 10px !important;
        color: #8b0000 !important;
    }

    /* Hover effect */
    .profile .dropdown-item:hover {
        background: #f6f6f6 !important;
        color: #000 !important;
    }

    /* ============================= */
    /* SIGN OUT BUTTON STYLE */
    /* ============================= */
    .profile .dropdown-item .bi-box-arrow-right {
        color: #8b0000 !important;
    }

.nav-item.dropdown > a {
    pointer-events: auto !important;
}

.nav-item.dropdown .profile.dropdown-menu {
    position: absolute !important;
    inset: auto auto auto auto !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    transform: none !important;
    will-change: auto !important;
    margin-top: 8px !important;
}



/* ============================= */
/* MOBILE FIX */
/* ============================= */
@media (max-width: 576px) {
    .profile.dropdown-menu {
        width: 100% !important;
    }
}

/* ===== FORMS / REPORTS HEADING STYLE ===== */
h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    color: #222 !important;
}
/* ===============================
   TITLE STYLING
=================================*/
.card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #c00000 !important;
    margin-bottom: 15px !important;
}



/* ===============================
   DATATABLE SEARCH BOX
=================================*/
.dataTables_filter input {
    height: 38px !important;
    font-size: 14px !important;
    border-radius: 20px !important;
    border: 1px solid #ddd !important;
    padding: 6px 14px !important;
    outline: none !important;
}

.dataTables_filter label {
    font-weight: 500;
    font-size: 14px;
}

/* ===============================
   SHOW ENTRIES DROPDOWN
=================================*/
.dataTables_length select {
    height: 34px !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
}

/* ===============================
   ADD NEW BUTTON
=================================*/
.btn-info {
    background-color: white !important;
    color: #c00000 !important;
    border: 1px solid #c00000 !important;
    border-radius: 20px !important;
    padding: 6px 18px !important;
    font-size: 13px !important;
    font-weight: 500;
    transition: 0.3s ease;
}

    .btn-info:hover {
        background-color: #c00000 !important;
        color: #fff !important;
    }
/* Reset for all submit buttons */
input[type="submit"].btn.btn-primary {
    -webkit-appearance: none;
    -moz-appearance: none; 
    appearance: none; 
    background-color: white !important;
    color: #c00000 !important;
    border: 1px solid #c00000 !important; 
    border-radius: 20px !important;
    padding: 6px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: none !important; /* remove focus shadow */
    outline: none !important; /* remove outline */
    cursor: pointer;
}

    /* Hover */
    input[type="submit"].btn.btn-primary:hover {
        background-color: #c00000 !important;
        color: #fff !important;
        border: 2px solid #c00000 !important;
    }

    /* Focus/active */
    input[type="submit"].btn.btn-primary:focus,
    input[type="submit"].btn.btn-primary:active {
        border: 1px solid #c00000 !important;
        box-shadow: none !important;
        outline: none !important;    
    }
/* Fully override Bootstrap for button borders */
.row .btn.btn-primary {
    background-color: white !important;
    color: #c00000 !important;
    border: 1px solid #c00000 !important;
    border-radius: 20px !important;
    padding: 6px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: none !important; 
    outline: none !important;
    cursor: pointer;
    transition: 0.3s ease !important;
}

    /* Hover */
    .row .btn.btn-primary:hover {
        background-color: #c00000 !important;
        color: #fff !important;
        border: 1px solid #c00000 !important;
    }

    /* Focus / active */
    .row .btn.btn-primary:focus,
    .row .btn.btn-primary:active,
    .row .btn.btn-primary.focus,
    .row .btn.btn-primary.active {
        border: 1px solid #c00000 !important;
        box-shadow: none !important;
        outline: none !important;
    }
    /* ===============================
   DATATABLE PAGINATION
=================================*/
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        margin: 0 4px !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #0d6efd !important;
        color: #fff !important;
        border-radius: 5px;
    }

/* ===============================
   TABLE RESPONSIVE IMPROVEMENTS
=================================*/
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* =====================================
   TOP BAR ALIGNMENT (Entries + Search)
===================================== */

.dataTables_wrapper .dataTables_length {
    float: left !important;
}

.dataTables_wrapper .dataTables_filter {
    float: left !important;
    margin-left: 40px;
}

    .dataTables_wrapper .dataTables_filter input {
        width: 200px !important;
        border-radius: 20px;
    }

/* Keep both in same line */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 15px !important;
}
/*csv,excel,print*/
.card .card-body .dt-buttons {
    position: static !important;
    float: right !important;
    display: flex !important;
    gap: 8px !important;
    margin: 6px 0 12px 0 !important;
    z-index: 2 !important; /* keep above other flow items but not on top of rows */
    clear: both !important;
}

/* 2) Ensure top controls area (entries + buttons + search) lays out cleanly */
.dataTables_wrapper .row:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px;
}

    /* Left side (length + buttons) aligned to left, right side (search) aligned to right */
    .dataTables_wrapper .row:first-child .col-sm-12.col-md-6:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        order: 1;
        width: auto !important;
    }

    .dataTables_wrapper .row:first-child .col-sm-12.col-md-6:last-child {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        order: 2;
        width: auto !important;
    }

/* 3) Keep table content below controls (prevents visual overlap) */
.dataTables_wrapper table {
    clear: both;
    margin-top: 8px !important;
}

/* 4) Small safeguard: ensure dt-buttons pills keep their pill layout */
.dataTables_wrapper .dt-buttons .dt-button {
    white-space: nowrap !important;
}
/* Fix congested form / title: restore padding, prevent columns collapsing */
/*.card-body {
    padding: 24px !important;
    box-sizing: border-box;
}*/

    /* Reset any odd centering/transform applied earlier */
    /*.card-body h5.card-title {
        position: static !important;
        left: auto !important;
        transform: none !important;
        margin-bottom: 1rem !important;
        line-height: 1.2;
    }*/

    /* Use CSS Grid but protect columns from shrinking too small */
    /*.card-body form .row {
        display: grid !important;*/
        /* ensure each column has a practical minimum so labels/inputs don't wrap badly */
        /*grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
        gap: 1.25rem 1.5rem !important;
        align-items: start;
    }*/

    /* Make bootstrap column children behave correctly inside grid */
    /*.card-body form .col-md-4 {
        min-width: 0 !important;*/ /* allow flex children to shrink properly */
        /*width: 100% !important;
    }*/

    /* Slightly larger label spacing and prevent overly small inputs */
    /*.card-body .form-group {
        margin: 0 0 0.875rem 0;
    }

        .card-body .form-group label {
            display: block;
            margin-bottom: 0.4rem;
            font-size: 0.83rem;
            font-weight: 600;
            white-space: normal;*/ /* allow wrap only if absolutely necessary */
        /*}*/

    /* Inputs full width and comfortable height */
    /*.card-body .form-control,
    .card-body select,
    .card-body textarea {
        width: 100%;
        min-width: 0;*/
/*        padding: 0.55rem 0.75rem;*/
        /*height: 42px;
        border-radius: 6px;
    }*/

    /* Make textareas a bit taller */
    /*.card-body textarea {
        min-height: 76px;
        resize: vertical;
    }*/

/* Responsive: reduce columns on medium / small screens */
@media (max-width: 991.98px) {
    .card-body form .row {
        grid-template-columns: repeat(2, minmax(200px, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    .card-body form .row {
        grid-template-columns: 1fr !important;
    }
}


/* Small screens: stack controls but keep them centered and add vertical gaps */
@media (max-width: 600px) {
    .dataTables_wrapper .row:first-child {
        gap: 10px !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dt-buttons {
        width: 100% !important;
        justify-content: center !important;
        padding: 6px 12px !important;
    }

    .card-body .dt-buttons .dt-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        height: 36px; /* match search control height */
        padding: 6px 14px !important; /* pill padding */
        background: #ffffff !important; /* white pill */
        color: #900c1f !important; /* maroon text */
        border: 1px solid rgba(144, 12, 31, 0.12) !important;
        border-radius: 22px !important; /* pill radius */
        font-weight: 600 !important;
        font-size: 13px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        box-shadow: 0 1px 0 rgba(0,0,0,0.03) !important;
        transition: background-color 120ms ease, transform 80ms ease, box-shadow 120ms ease;
    }

        /* Slight spacing when buttons are adjacent */
        .card-body .dt-buttons .dt-button + .dt-button {
            margin-left: 6px !important;
        }

        /* Subtle hover / focus states (keeps maroon theme) */
        .card-body .dt-buttons .dt-button:hover,
        .card-body .dt-buttons .dt-button:focus {
            background: rgba(144, 12, 31, 0.06) !important;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.06) !important;
            outline: none !important;
        }

        /* Active / pressed feedback */
        .card-body .dt-buttons .dt-button:active {
            transform: translateY(0) !important;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
        }

        /* If DataTables injects <span> inside, ensure spacing aligns */
        .card-body .dt-buttons .dt-button > span {
            display: inline-block;
            vertical-align: middle;
        }

    .dataTables_wrapper .dt-buttons .dt-button {
        width: auto !important;
        padding: 8px 10px !important;
    }
}

/* Remove background from action buttons */
table .btn-warning,
table .btn-danger,
table .btn-info,
table .btn-primary {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: red !important;
}

    /* Keep icon colors */
    table .btn-warning i {
        color: forestgreen !important; /* edit icon */
        font-size: 18px;
    }

    table .btn-danger i {
        color: #dc3545 !important; /* delete icon */
        font-size: 18px;
    }
.content-header h1 {
    font-size: 14px;
    font-weight: 600;
   
}
