@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
/* @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"); */

:root {
    --ra-primary-set: #4477b6;
    /* --ra-primary-set: #6366f1; */
    --ra-primary-set-bg: 99, 102, 241;
    --ra-primary-hover: #6366f1;
    --ra-link-color: #6366f1;
    --ra-secondary-color: rgba(33, 37, 41, 0.75);
    --ra-dark-color: #1e293b;
    --ra-light-color: #f1f5f9;
    --ra-success-color: #10b981;
    --ra-warning-color: #f59e0b;
    --ra-danger-color: #ef4444;
    --ra-sidebar-width: 300px;
    --ra-sidebar-collapsed-width: 80px;
}

body {
    font-family: "Montserrat", sans-serif;
    /* font-family: "Roboto", sans-serif; */
    background-color: #f8fafc;
    color: #334155;
}
/*
th,
tbody {
    border: 1px solid var(--ra-primary-set);
} */

.text-primary {
    --ra-text-opacity: 1;
    color: var(--ra-primary-set) !important;
}

/* .sidebar {
    width: var(--ra-sidebar-width);
    background: white;
    height: 100vh;
    position: fixed;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: auto;

}
    */

.sidebar {
    width: var(--ra-sidebar-width);
    /* width: var(--ra-sidebar-width); */
    background: white;
    height: 100vh;
    position: fixed;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: auto;
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--ra-primary-set) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
    width: 2px; /* minimum stable width */
    height: 2px; /* for horizontal scrollbar */
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--ra-primary-set);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #2f5e9a;
}

/* font-size: 18px; */

/* .gn {
    font-size: 18px;
}
.db {
    font-size: 20px;
    font-weight: 700;
}
.cardtx {
    font-size: 18px;
} */

.db {
    font-weight: 700;
}

.main-content {
    margin-left: var(--ra-sidebar-width);
    width: calc(100% - var(--ra-sidebar-width));
    transition: all 0.3s ease;
}

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

    .sidebar.active {
        margin-left: 0;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }
}
.badge {
    font-size: 0.6rem;
    padding: 0.2em 0.4em;
}

/* .navbar {
    background: white !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    z-index: 999;
} */

.sidebar .nav-link {
    color: #64748b;
    /* border-radius: 8px; */
    margin-bottom: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar .nav-link:hover {
    color: var(--ra-primary-set);
    position: relative;
}

.sidebar .nav-link:hover::before {
    position: absolute;
    content: "";
    top: 5px;
    left: 0;
    width: 4px;
    height: 30px;
    background-color: var(--ra-primary-set);
}

.sidebar .nav-link.active,
.sidebar-menu .submenu-toggle.active,
.sidebar-menu .submenu .nav-link.active {
    background-color: var(--ra-primary-set);
    color: white !important;
}
/* .sidebar-menu .nav-link:not(.active):hover {
    background-color: rgba(13, 110, 253, 0.1);
} */
/*
.sidebar-menu .nav-link.active i,
.sidebar-menu .submenu-toggle.active i {
    color: white !important;
} */

/* -------------------------------- */

.profilename {
    color: #4b5563;
}

.form-control:focus {
    border-color: var(--ra-primary-set) !important;
    box-shadow: 0 1px 3px var(--ra-primary-set) !important;
}

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.bg-primary-light {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--ra-primary-set);
}

.bg-success-light {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--ra-success-color);
}

.bg-warning-light {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--ra-warning-color);
}

.bg-danger-light {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--ra-danger-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 12px;
    color: #94a3b8;
}

.user-dropdown img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.sidebar-toggle {
    display: none;
}

@media (max-width: 992px) {
    .sidebar-toggle {
        display: block;
    }
}
@media (max-width: 692px) {
    .main-content .bulkprofile {
        position: absolute;
        top: 4px;
        right: 0px;
    }
}
.bulkprofile i {
    color: #4b5563;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ra-primary-set);
    display: grid;
    align-items: center;
    justify-content: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.logo p {
    font-size: 11.5px;
    color: #334155;
}

.nav-item {
    padding: 0 15px;
}

.nav-item .nav-link {
    padding: 10px 15px;
}

.sidebar-menu {
    padding: 15px;
}

.submenu {
    transition: all 0.3s ease;
    overflow: hidden;
}

.submenu-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.submenu-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.sidebar.collapsed {
    width: var(--ra-sidebar-collapsed-width);
}

.main-content.collapsed #sidebarCollapseToggle {
    transform: rotate(-180deg);
}

.main-content.collapsed {
    margin-left: var(--ra-sidebar-collapsed-width);
    width: calc(100% - var(--ra-sidebar-collapsed-width));
}

.sidebar.collapsed .logo p,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed h6,
.sidebar.collapsed .toggle-icon {
    display: none;
}

.sidebar.collapsed .nav-link {
    /* text-align: center; */
    padding: 12px;
    /* justify-content: center; */
    margin-left: -1em;
}

.sidebar.collapsed .nav-link i {
    font-size: 1.3rem;
    margin-left: 7px;

    /* font-size: 1.3rem; */
}

.sidebar.collapsed .submenu {
    display: none !important;
}

.sidebar.collapsed .logo {
    justify-content: center;
    padding: 20px 10px;
}

.sidebar.collapsed .logo i {
    margin-right: 0;
    font-size: 1.8rem;
    /* font-size: 1.8rem; */
}

.sidebar.collapsed .nav-link {
    position: relative;
}

.sidebar.collapsed .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ra-dark-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;

    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.sidebar.collapsed .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
    left: calc(100% + 10px);
}

/* Adjust submenu items */
.submenu {
    list-style: none;
    padding-left: 0;
}

.submenu .nav-link {
    padding-left: 30px !important;
}

.closebtn {
    display: none;
}

@media (max-width: 992px) {
    .closebtn {
        display: block;
        background-color: var(--ra-primary-set);
        color: #fff;
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 1001;
        cursor: pointer;
    }

    .sidebar.active .closebtn {
        display: block;
    }
}

.logoutnav {
    position: absolute;
    bottom: 30px;
}
