:root{
    --color_Blue: #3f93f1;
    --color_Dark1: #1e1e1e;
    --color_Dark2: #252527;
    --color_Light1: #dfdfdf;
    --color_Light2: #c4c4c4;
    --portal-header-height: 100px;
    --sidebar-toggle-height: 54px;
}

/* =============== Sidebar =============== */
body.sidebar-initializing .sidebar-nav,
body.sidebar-initializing .sidebar-nav *,
body.sidebar-initializing #content,
body.sidebar-initializing #footer,
body.sidebar-initializing .merchant-footer-block,
body.sidebar-initializing .top-section,
body.sidebar-initializing .topHeader,
body.sidebar-initializing .top-navbar {
    transition: none !important;
}

body.sidebar-collapsed #content,
body.sidebar-collapsed #footer,
body.sidebar-collapsed .merchant-footer-block,
body.sidebar-collapsed .top-section,
body.sidebar-collapsed .topHeader {
    margin-left: 47px;
}

body.sidebar-expanded #content,
body.sidebar-expanded #footer,
body.sidebar-expanded .merchant-footer-block,
body.sidebar-expanded .top-section,
body.sidebar-expanded .topHeader {
    margin-left: 220px;
}

body.sidebar-collapsed .top-navbar {
    left: 47px;
}

body.sidebar-expanded .top-navbar {
    left: 220px;
}

body.sidebar-expanded,
body.sidebar-collapsed,
html:has(body.sidebar-expanded),
html:has(body.sidebar-collapsed) {
    scrollbar-width: none !important;
    -ms-overflow-style: none;
}

body.sidebar-expanded::-webkit-scrollbar,
body.sidebar-collapsed::-webkit-scrollbar,
html:has(body.sidebar-expanded)::-webkit-scrollbar,
html:has(body.sidebar-collapsed)::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.sidebar-nav-list::-webkit-scrollbar {
    display: none;
}

.sidebar-nav {
    position: fixed;
    left: 0;
    height: 100%;
    width: 220px;
    background: #fff;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
    border-right: 1px solid #e5e7eb;
    transition: all .3s ease;
    z-index: 1040;
    opacity: 1;
    overflow: hidden;
    scrollbar-width: none !important;
}

.sidebar-nav.close-nav {
    width: 47px;
    overflow: visible;
}

.logo-box,
.sidebar-nav .logo-box,
.sidebar-nav .logo-box.bg-primary {
    height: var(--sidebar-toggle-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10px;
    background: #fff !important;
    color: var(--primaryColor) !important;
    border-bottom: 1px solid #eef1f5;
    transition: all .3s ease;
    text-decoration: none;
}

.logo-box:hover,
.sidebar-nav .logo-box:hover {
    background: #f6f8fb !important;
    color: var(--primaryColor) !important;
}

.logo-box i,
.sidebar-nav .logo-box .sidebar-nav-toggle {
    min-width: 50px;
    height: var(--sidebar-toggle-height);
    line-height: var(--sidebar-toggle-height);
    text-align: center;
    font-size: 24px;
    transition: all .3s ease;
}

.sidebar-nav.close-nav .logo-box i {
    transform: rotate(360deg);
}

.logo-name {
    font-size: 22px;
}

.sidebar-nav-heading {
    color: #1d6df2;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    padding: 18px 14px 14px;
    text-align: center;
}

.sidebar-brand {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eef1f5;
    color: #111827;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 700;
    gap: 6px;
    min-height: 96px;
    justify-content: center;
    line-height: 1.2;
    overflow: hidden;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
    transition: all .3s ease;
}

.sidebar-brand:hover {
    color: var(--primaryColor);
}

.sidebar-brand img {
    display: block;
    height: auto;
    max-height: 48px;
    max-width: 172px;
    object-fit: contain;
    width: 100%;
}

.sidebar-nav-list {
    height: 100%;
    padding: 0 0 80px;
    overflow: visible;
    scrollbar-width: none !important;
    list-style: none;
}

.sidebar-nav-list li {
    border-left: 0;
    border-radius: 8px;
    list-style: none;
    margin: 4px 12px;
    transition: all .3s ease;
}

.sidebar-nav-list li::marker {
    content: "";
}

.sidebar-nav-list li .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s ease;
    cursor: pointer;
}

.sidebar-nav-list li.active .bxs-chevron-down {
    transform: rotate(180deg);
}

.sidebar-nav-list li .title .link {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.sidebar-nav-list li .title i {
    min-width: 46px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    color: #111827 !important;
    font-size: 15px;
}

.sidebar-nav-list li .title .name {
    color: #111827 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
}

.sidebar-nav-list li .title > .bxs-chevron-down {
    min-width: 34px;
}

.sidebar-nav-list li.active,
.sidebar-nav-list li:has(.clicked),
.sidebar-nav-list li:has(.active) {
    background: transparent !important;
    border-left: 0;
}

.sidebar-nav-list li.dropdown.active {
    background: var(--primaryColor) !important;
    overflow: hidden;
}

.sidebar-nav-list li > .title:hover,
.sidebar-nav-list li.active > .title,
.sidebar-nav-list > li:not(.dropdown):has(.clicked) > .title,
.sidebar-nav-list > li:not(.dropdown):has(.active) > .title,
.sidebar-nav-list li.dropdown:has(.submenu .link.active) > .title,
.sidebar-nav-list li.dropdown:has(.submenu .link.clicked) > .title {
    background: var(--primaryColor) !important;
}

.sidebar-nav-list li > .title:hover .link,
.sidebar-nav-list li.active > .title .link,
.sidebar-nav-list > li:not(.dropdown):has(.clicked) > .title .link,
.sidebar-nav-list > li:not(.dropdown):has(.active) > .title .link,
.sidebar-nav-list li > .title .link.active,
.sidebar-nav-list li > .title .link.clicked {
    background: transparent !important;
}

.sidebar-nav-list li.dropdown:has(.submenu .link.active) > .title,
.sidebar-nav-list li.dropdown:has(.submenu .link.clicked) > .title,
.sidebar-nav.close-nav .sidebar-nav-list li.dropdown:has(.submenu .link.active) > .title,
.sidebar-nav.close-nav .sidebar-nav-list li.dropdown:has(.submenu .link.clicked) > .title {
    background: var(--primaryColor) !important;
}

.sidebar-nav-list li > .title:hover i,
.sidebar-nav-list li > .title:hover .name,
.sidebar-nav-list li > .title:hover .link,
.sidebar-nav-list li > .title:hover .bxs-chevron-down,
.sidebar-nav-list li.active > .title .name,
.sidebar-nav-list li.active > .title i,
.sidebar-nav-list li.active > .title .link,
.sidebar-nav-list li.active > .title .bxs-chevron-down,
.sidebar-nav-list li .clicked,
.sidebar-nav-list li .active,
.sidebar-nav-list li.dropdown:has(.submenu .link.active) > .title i,
.sidebar-nav-list li.dropdown:has(.submenu .link.active) > .title .name,
.sidebar-nav-list li.dropdown:has(.submenu .link.active) > .title .link,
.sidebar-nav-list li.dropdown:has(.submenu .link.active) > .title .bxs-chevron-down,
.sidebar-nav-list li.dropdown:has(.submenu .link.clicked) > .title i,
.sidebar-nav-list li.dropdown:has(.submenu .link.clicked) > .title .name,
.sidebar-nav-list li.dropdown:has(.submenu .link.clicked) > .title .link,
.sidebar-nav-list li.dropdown:has(.submenu .link.clicked) > .title .bxs-chevron-down {
    color: #fff !important;
}

.sidebar-nav-list li .submenu {
    width: 0;
    height: 0;
    opacity: 0;
    transition: all .3s ease;
}

.sidebar-nav-list li.dropdown.active > .title {
    border-radius: 8px 8px 0 0;
}

.sidebar-nav-list li.dropdown.active .submenu {
    width: unset;
    height: unset;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    padding: 8px 10px 12px 18px;
    background: #fff;
    border-left: 0;
    border-radius: 0 0 8px 8px;
}

.submenu .link,
.sidebar-nav-list li.dropdown.active .submenu .link {
    display: flex;
    align-items: center;
    min-height: 34px;
    gap: 10px;
    border-radius: 6px;
    padding: 7px 10px;
    color: #374151 !important;
    font-size: 13px;
    font-weight: 500;
    transition: all .3s ease;
}

.submenu .link:hover,
.sidebar-nav-list li.dropdown.active .submenu .link:hover {
    color: var(--primaryColor) !important;
}

.submenu .link.active,
.submenu .link.clicked,
.sidebar-nav-list li.dropdown.active .submenu .link.active,
.sidebar-nav-list li.dropdown.active .submenu .link.clicked,
.submenu .link.active i,
.submenu .link.clicked i,
.sidebar-nav-list li.dropdown.active .submenu .link.active i,
.sidebar-nav-list li.dropdown.active .submenu .link.clicked i {
    color: var(--primaryColor) !important;
    background: #fff !important;
}

.sidebar-nav:not(.close-nav) .sidebar-nav-list li.dropdown.active .submenu {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sidebar-nav:not(.close-nav) .sidebar-nav-list li.dropdown.active .submenu .link i {
    color: inherit !important;
    flex: 0 0 26px;
    min-width: 26px;
    width: 26px;
    height: auto;
    line-height: 1;
    font-size: 17px;
    text-align: center;
}

.sidebar-nav:not(.close-nav) .sidebar-nav-list li.dropdown.active .submenu .link:not(.active):not(.clicked) i {
    color: #334155 !important;
}

.submenu-title {
    display: none;
    font-weight: bold;
    color: #111827;
}

.sidebar-nav-toggle {
    margin: auto;
}

.sidebar-nav.close-nav .logo-name,
.sidebar-nav.close-nav .title .name,
.sidebar-nav.close-nav .title .bxs-chevron-down,
.sidebar-nav.close-nav .sidebar-nav-heading,
.sidebar-nav.close-nav .sidebar-brand span {
    display: none;
}

.sidebar-nav.close-nav .logo-box {
    justify-content: center;
    padding-left: 0;
}

.sidebar-nav.close-nav .sidebar-brand {
    border-bottom: 0;
    min-height: 58px;
    padding: 8px 5px;
}

.sidebar-nav.close-nav .sidebar-brand img {
    max-height: 34px;
    max-width: 38px;
}

.sidebar-nav.close-nav .sidebar-nav-list {
    overflow: visible;
    padding: 8px 5px 80px;
}

.sidebar-nav.close-nav .sidebar-nav-list li {
    position: relative;
    margin: 6px 0;
}

.sidebar-nav.close-nav .sidebar-nav-list li.dropdown.active {
    overflow: visible;
}

.sidebar-nav.close-nav .sidebar-nav-list li .title {
    width: 37px;
    height: 37px;
    min-height: 37px;
    justify-content: center;
    border-radius: 11px;
}

.sidebar-nav.close-nav .sidebar-nav-list li .title i {
    min-width: 37px;
    height: 37px;
    line-height: 37px;
}

.sidebar-nav.close-nav .sidebar-nav-list li .submenu {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: calc(100% + 3px);
    top: -10px;
    margin-top: 0;
    padding: 5px 7px;
    border: 1px solid #e5e7eb;
    border-radius: 0 7px 7px 0;
    height: max-content;
    width: max-content;
    min-width: 132px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f8 100%);
    box-shadow: 8px 10px 22px rgba(15, 23, 42, 0.1);
    z-index: 1050;
}

.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
}

.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu .link {
    white-space: nowrap;
    min-height: 32px;
    padding: 5px 7px;
    color: #111827 !important;
    font-size: 13px;
    gap: 5px;
}

.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu .link:hover {
    color: #fff !important;
    background: var(--primaryColor) !important;
}

.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu .link.active,
.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu .link.clicked,
.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu .submenu-title.active,
.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu .submenu-title.clicked {
    background: transparent !important;
    color: var(--primaryColor) !important;
}

.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu .link.active i,
.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu .link.clicked i {
    color: var(--primaryColor) !important;
}

.sidebar-nav.close-nav .sidebar-nav-list li:hover .submenu .link i {
    color: inherit !important;
    flex: 0 0 18px;
    min-width: 18px;
    width: 18px;
    height: auto;
    line-height: 1;
    font-size: 14px;
    text-align: center;
}

.sidebar-nav.close-nav .submenu-title {
    display: block;
    border-radius: 6px;
    font-size: 13px;
    color: #111827;
    margin: 0;
    min-height: 32px;
    padding: 6px 7px;
    white-space: nowrap;
}

.sidebar-nav.close-nav .sidebar-nav-list li.dropdown .submenu-title {
    display: none;
}

@media (min-width: 481px) and (max-width: 1024px) {
    .sidebar-nav {
        width: 260px;
        z-index: 1040;
    }

    .sidebar-nav.close-nav {
        width: 47px;
    }

    .sidebar-nav.mobile-open {
        width: min(260px, 86vw);
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    body.sidebar-mobile-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(15, 23, 42, 0.28);
    }

    .sidebar-nav.mobile-open .logo-name,
    .sidebar-nav.mobile-open .title .name,
    .sidebar-nav.mobile-open .title .bxs-chevron-down {
        display: inline-block;
    }

    .sidebar-nav.mobile-open .sidebar-nav-list {
        overflow: visible;
    }

    .sidebar-nav.mobile-open .sidebar-nav-list li .submenu {
        position: static;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
        box-shadow: none;
    }

    .sidebar-nav.mobile-open .sidebar-nav-list li.dropdown.active .submenu {
        width: unset;
        height: unset;
        opacity: 1;
        pointer-events: auto;
        gap: 8px;
        padding: 8px 12px 14px 40px;
    }

    body.sidebar-collapsed #content,
    body.sidebar-collapsed #footer,
    body.sidebar-collapsed .merchant-footer-block,
    body.sidebar-collapsed .top-section,
    body.sidebar-collapsed .topHeader,
    body.sidebar-expanded.sidebar-mobile-open #content,
    body.sidebar-expanded.sidebar-mobile-open #footer,
    body.sidebar-expanded.sidebar-mobile-open .merchant-footer-block,
    body.sidebar-expanded.sidebar-mobile-open .top-section,
    body.sidebar-expanded.sidebar-mobile-open .topHeader {
        margin-left: 47px !important;
    }

    body.sidebar-expanded #content,
    body.sidebar-expanded #footer,
    body.sidebar-expanded .merchant-footer-block,
    body.sidebar-expanded .top-section,
    body.sidebar-expanded .topHeader {
        margin-left: 260px !important;
    }

    body.sidebar-collapsed .top-navbar,
    body.sidebar-expanded.sidebar-mobile-open .top-navbar {
        left: 47px !important;
    }

    body.sidebar-expanded .top-navbar {
        left: 260px !important;
    }

    .header-section {
        padding: 0 14px;
        gap: 12px;
    }

    .header-section .formSelect {
        min-width: 0;
        max-width: min(260px, 45vw);
    }

    .profile-dropdown-menu {
        max-width: calc(100vw - 80px);
    }
}

@media (max-width: 480px) {
    .sidebar-nav {
        width: min(260px, 86vw);
        z-index: 1040;
    }

    .sidebar-nav.close-nav {
        width: 47px;
    }

    .sidebar-nav.mobile-open {
        width: min(260px, 86vw);
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    body.sidebar-mobile-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(15, 23, 42, 0.28);
    }

    .sidebar-nav.mobile-open .logo-name,
    .sidebar-nav.mobile-open .title .name,
    .sidebar-nav.mobile-open .title .bxs-chevron-down {
        display: inline-block;
    }

    .sidebar-nav.mobile-open .sidebar-nav-list {
        overflow: visible;
    }

    .sidebar-nav.mobile-open .sidebar-nav-list li .submenu {
        position: static;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
        box-shadow: none;
    }

    .sidebar-nav.mobile-open .sidebar-nav-list li.dropdown.active .submenu {
        width: unset;
        height: unset;
        opacity: 1;
        pointer-events: auto;
        gap: 8px;
        padding: 8px 12px 14px 40px;
    }

    body.sidebar-collapsed #content,
    body.sidebar-collapsed #footer,
    body.sidebar-collapsed .merchant-footer-block,
    body.sidebar-collapsed .top-section,
    body.sidebar-collapsed .topHeader {
        margin-left: 47px !important;
    }

    body.sidebar-expanded #content,
    body.sidebar-expanded #footer,
    body.sidebar-expanded .merchant-footer-block,
    body.sidebar-expanded .top-section,
    body.sidebar-expanded .topHeader,
    body.sidebar-mobile-open #content,
    body.sidebar-mobile-open #footer,
    body.sidebar-mobile-open .merchant-footer-block,
    body.sidebar-mobile-open .top-section,
    body.sidebar-mobile-open .topHeader {
        margin-left: 47px !important;
    }

    body.sidebar-collapsed .top-navbar {
        left: 47px !important;
    }

    body.sidebar-expanded .top-navbar,
    body.sidebar-mobile-open .top-navbar {
        left: 47px !important;
    }

    .top-navbar {
        left: 47px !important;
        height: 44px;
    }

    .header-section {
        height: 44px;
        padding: 0 8px;
        gap: 8px;
    }

    .header-section .formSelect {
        min-width: 0;
        max-width: 170px;
        width: 170px;
        height: 36px;
        padding: 6px 28px 6px 10px;
        font-size: 13px;
    }

    .header-actions {
        gap: 8px;
    }

    .profile-dropdown-menu {
        min-width: 160px;
        max-width: calc(100vw - 70px);
        margin-top: 8px !important;
    }

    #content {
        margin-left: 47px !important;
    }

    .logo-box i {
        min-width: 46px;
        font-size: 23px;
    }

    .logo-box,
    .header-section {
        height: 44px;
    }
}

#content {
    padding-bottom: 20px;
    background: #f1f4f9;
    overflow: hidden;
    transition: margin-left .5s ease, filter 1s ease !important;
    -webkit-filter: none;
    -moz-filter: none;
    filter: none;
}

.top-navbar {
    /* position: absolute; */
    bottom: auto;
    right: 0;
    z-index: 1030;
    left: 70px;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: visible;
}


.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    gap: 16px;
    min-width: 0;
}

.header-section .brand-img {
    position: relative;
    min-width: 0;
}

.header-section .formSelect {
    appearance: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    max-width: min(280px, 52vw);
}

.header-actions {
    gap: 12px;
    flex: 0 0 auto;
    min-width: max-content;
}

.header-actions .logOutMenu {
    margin-top: 0;
}

.header-actions #dropdownMenuButton {
    width: 40px;
    height: 40px;
}

.profile-dropdown {
    position: relative;
}

.profile-dropdown-menu {
    right: 0 !important;
    left: auto !important;
    min-width: 180px;
    margin-top: 10px !important;
    padding: 8px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
    z-index: 9999;
}

.profile-dropdown-menu.show {
    display: block;
}

.profile-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border-radius: 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.profile-dropdown-menu .dropdown-item i {
    font-size: 18px;
}

.profile-dropdown-menu .dropdown-item:hover {
    background: #f3f6fb;
    color: var(--primaryColor);
}

.header-section .formSelect:hover {
    border-color: #57709b;
    box-shadow: 0 2px 8px rgba(87, 112, 155, 0.1);
}

.header-section .formSelect:focus {
    outline: none;
    border-color: #57709b;
    box-shadow: 0 0 0 3px rgba(87, 112, 155, 0.1);
}

.profile-content {
	display: flex;
	justify-content: end;
	padding: 0.5rem;
	align-items: center;
	font-size: 15px;
	height: 60px;
	gap: 10px;
	cursor: pointer;
    margin-right: 8px;
}
/* ===== PREMIUM USER PROFILE SYSTEM ===== */
/* ===== SIMPLE AVATAR PROFILE ===== */

/* ===== MESSAGE COUNT BADGE IN DROPDOWN ===== */
.premium-menu-item {
	position: relative;
}

.message-count-badge {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 22px;
	height: 22px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 7px;
	box-shadow: 0 2px 6px rgba(255, 107, 107, 0.35);
	animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
	0%, 100% {
		transform: translateY(-50%) scale(1);
	}
	50% {
		transform: translateY(-50%) scale(1.08);
	}
}

.simple-avatar-trigger {
	width: 40px;
	height: 40px;
	background: #57709b;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	border: 2px solid #fff;
}

.simple-avatar-trigger:hover {
	box-shadow: 0 3px 8px rgba(87, 112, 155, 0.3);
	transform: translateY(-1px);
}

.avatar-initials {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.5px;
}

/* ===== PREMIUM DROPDOWN MENU ===== */

.dropdown-menu.premium-dropdown-menu {
	min-width: 240px !important;
	max-width: 260px !important;
	border: none !important;
	border-radius: 16px !important;
	padding: 0 !important;
	margin-top: 8px !important;
	background: #ffffff !important;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06) !important;
	animation: slideInDown 0.3s ease;
	overflow: visible;
	right: 0 !important;
	left: auto !important;
	top: 100% !important;
	transform: none !important;
	position: absolute !important;
}

@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Ensure dropdown stays within viewport */
.dropdown-menu.premium-dropdown-menu.show {
	right: 0 !important;
	left: auto !important;
}

/* Dropdown Header Card */
.dropdown-header-card {
	position: relative;
	padding: 12px 16px;
	background: linear-gradient(135deg, #57709b 0%, #34425A 100%);
	overflow: hidden;
}

.header-bg-pattern {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
	opacity: 0.5;
}

.header-content-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 1;
}

.header-avatar-large {
	position: relative;
	width: 38px;
	height: 38px;
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(8px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.5px;
	border: 2px solid rgba(255,255,255,0.3);
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	flex-shrink: 0;
}

.verified-badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 18px;
	height: 18px;
	background: #10b981;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(16,185,129,0.3);
}

.verified-badge i {
	font-size: 10px;
	color: #fff;
}

.header-user-info {
	flex: 1;
}

.header-user-name {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px 0;
	text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.header-user-type {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 3px 10px;
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(8px);
	border-radius: 12px;
	font-size: 10px;
	font-weight: 600;
	color: #fff;
	border: 1px solid rgba(255,255,255,0.2);
}

.header-user-type i {
	font-size: 11px;
	color: #fca5a5;
}

/* Menu Section */
.menu-section {
	padding: 8px 6px;
}

.section-title {
	font-size: 9px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 6px;
	padding: 0 8px;
}

/* Premium Menu Item */
.premium-dropdown-menu .premium-menu-item,
.premium-dropdown-menu a.premium-menu-item {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 8px 6px !important;
	margin: 2px 0 !important;
	border-radius: 10px !important;
	text-decoration: none !important;
	transition: all 0.25s ease !important;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	color: #1e293b !important;
	background: transparent !important;
}

.premium-dropdown-menu .premium-menu-item::before,
.premium-dropdown-menu a.premium-menu-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, #57709b 0%, #34425A 100%);
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.premium-dropdown-menu .premium-menu-item:hover::before,
.premium-dropdown-menu a.premium-menu-item:hover::before {
	transform: scaleY(1);
}

.premium-dropdown-menu .premium-menu-item:hover,
.premium-dropdown-menu a.premium-menu-item:hover {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
	transform: translateX(4px) !important;
	color: #1e293b !important;
}

/* Icon Wrapper */
.item-icon-wrapper {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.item-icon-wrapper::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,0.2);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.premium-menu-item:hover .item-icon-wrapper::before {
	transform: translateY(0);
}

.item-icon-wrapper i {
	font-size: 16px;
	color: #fff;
	position: relative;
	z-index: 1;
}

.premium-menu-item:hover .item-icon-wrapper {
	transform: rotate(8deg) scale(1.05);
}

.blue-gradient {
	background: linear-gradient(135deg, #57709b 0%, #405a7f 100%);
	box-shadow: 0 4px 16px rgba(87,112,155,0.3);
}

.purple-gradient {
	background: linear-gradient(135deg, #6b7fa5 0%, #57709b 100%);
	box-shadow: 0 4px 16px rgba(87,112,155,0.3);
}

.green-gradient {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}

.red-gradient {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}

/* Item Content */
.premium-dropdown-menu .item-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.premium-dropdown-menu .item-arrow {
	font-size: 16px !important;
	color: #94a3b8 !important;
	margin-left: auto;
	flex-shrink: 0;
	transition: all 0.3s ease !important;
}

.premium-dropdown-menu .premium-menu-item:hover .item-arrow {
	color: #57709b !important;
	transform: translateX(3px);
}

.premium-dropdown-menu .item-title {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
	line-height: 1.3;
}

.premium-dropdown-menu .item-subtitle {
	font-size: 12px !important;
	font-weight: 500 !important;
	color: #94a3b8 !important;
	line-height: 1.2;
}

/* Item Arrow */
.item-arrow {
	font-size: 20px;
	color: #cbd5e1;
	transition: all 0.3s ease;
}

.premium-menu-item:hover .item-arrow {
	color: #64748b;
	transform: translateX(4px);
}

/* Menu Divider */
.menu-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
	margin: 12px 24px;
}

/* Logout Item Special Styling */
.premium-dropdown-menu .logout-item:hover,
.premium-dropdown-menu a.logout-item:hover {
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
}

.premium-dropdown-menu .logout-item:hover .item-title {
	color: #dc2626 !important;
}

.premium-dropdown-menu .logout-item:hover .item-arrow {
	color: #dc2626 !important;
}

/* Responsive */
@media (max-width: 768px) {
	.premium-dropdown-menu {
		min-width: 220px !important;
		max-width: 240px !important;
		right: -10px !important;
	}
	
	.simple-avatar-trigger {
		width: 36px;
		height: 36px;
	}
	
	.avatar-initials {
		font-size: 13px;
	}
}

/* Old p-img for backward compatibility */
.p-img {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: linear-gradient(135deg, #57709b 0%, #405a7f 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(87,112,155,0.3);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-header {
    padding: 0px 15px;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.link,.submenu-title {
    text-decoration:none;
}
.select-wrap::after {
    content: none !important;
}
.selectBorderColor:hover {
    border-color: var(--primaryColor);
    border-radius: 5px;
}
.selectField {
    padding: 12px;
    font-size: 14px;
    border: 1px solid #c6c6c6;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 1)!important;
}
option:checked,option:hover {
    box-shadow: 0 0 10px 100px #9264cb inset;
    color: white;
    border-radius: 3px;
}

.top-navbar .header-section {
    padding-left: 12px;
    padding-right: 12px;
}

.top-navbar .brand-img {
    margin-left: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
}

.top-navbar .brand-img form {
    margin: 0;
}

.top-navbar .brand-img .select2-container,
.top-navbar .header-section .formSelect {
    width: clamp(180px, 24vw, 260px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.top-navbar .brand-img .select2-selection--single {
    height: 42px !important;
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    position: relative;
}

.top-navbar .brand-img .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 12px !important;
    padding-right: 28px !important;
}

.top-navbar .brand-img .select2-selection__arrow {
    top: 50% !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: 0 !important;
    transform: translateY(-50%);
}

.top-navbar .brand-img .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-left: -4px !important;
    margin-top: -2px !important;
}

.top-navbar .brand-img .select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent #6b7280 transparent !important;
    border-width: 0 4px 5px 4px !important;
    margin-top: -3px !important;
}

.top-navbar .header-actions {
    gap: 8px;
    margin-left: auto;
}

.top-navbar .message-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.top-navbar .message-icon {
    display: block;
    width: 32px;
    max-width: none;
    height: 25px;
    flex-shrink: 0;
}

.top-navbar .profile-dropdown {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 auto;
}

.top-navbar .header-actions #dropdownMenuButton {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .top-navbar .header-section {
        padding-left: 10px;
        padding-right: 10px;
        gap: 8px;
    }

    .top-navbar .brand-img .select2-container,
    .top-navbar .header-section .formSelect {
        width: clamp(170px, 36vw, 230px) !important;
    }

    .top-navbar .header-actions {
        gap: 6px;
    }

    .top-navbar .header-actions #dropdownMenuButton {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .top-navbar .header-section {
        padding-left: 6px;
        padding-right: 6px;
        gap: 6px;
    }

    .top-navbar .brand-img .select2-container,
    .top-navbar .header-section .formSelect {
        width: clamp(145px, calc(100vw - 210px), 220px) !important;
    }

    .top-navbar .brand-img .select2-selection--single {
        height: 38px !important;
    }

    .top-navbar .brand-img .select2-selection__rendered {
        line-height: 36px !important;
        padding-left: 10px !important;
    }

    .top-navbar .brand-img .select2-selection__arrow {
        right: 8px !important;
        width: 20px !important;
        height: 20px !important;
    }

    .top-navbar .header-actions #dropdownMenuButton {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .top-navbar .profile-dropdown-menu {
        min-width: 128px;
        max-width: 150px;
        padding: 6px !important;
        border-radius: 8px !important;
        margin-top: 6px !important;
    }

    .top-navbar .profile-dropdown-menu .dropdown-item {
        gap: 8px;
        min-height: 32px;
        border-radius: 6px;
        font-size: 11px;
        padding: 6px 8px;
    }

    .top-navbar .profile-dropdown-menu .dropdown-item i {
        font-size: 13px;
    }
}

.logOutBtn:hover {
    color: red;
}

#pchooseMerchantId .select2-container .select2-selection--single {
    height: 54px ; 
    padding: 12px;
}

#pchooseMerchantId .select2-container .select2-selection--single .select2-selection__rendered {
    text-align: left;
    line-height: 28px; 
}

#dchooseMerchantId .select2-container .select2-selection--single {
    height: 54px ; 
    padding: 12px;
}

#dchooseMerchantId .select2-container .select2-selection--single .select2-selection__rendered {
    text-align: left;
    line-height: 28px; 
}
.settingsBtn:active,
.logOutBtn:active {
    background-color: unset !important;
}

/* Top section */
.top-section {
    display: grid;
    grid-template-columns: 2fr 12fr 0fr;
    margin-left: 70px;
    background: #e9edf2;
    padding: 8px 0px 12px 0px;
    border-bottom: 1px solid #dee2e8;
    transition: 0.5s !important;
}

.top-section #patient-details-card {
    justify-self: center;
}

ul.dropdown-menu.show:not(.profile-dropdown-menu){
    transform: translate3d(-125px, 51px, 0px) !important;
}

.topHeader {
    margin-left: 70px;
    z-index: 0;
    transition: 0.5s !important;
    overflow: visible;
}

@media (max-width: 1024px) {
	.footer{
		margin-left: 5% !important;
	}
}

@media (max-width: 768px) {
	.formSelect + .select2-container .select2-selection--single {
		height: 46px !important;
		padding: 6px !important;
	}
	.footer{
		font-size: 14px !important;
		margin-left: 9% !important;
	}
	.footer-content {
		font-size: 14px;
	}
	.footer-img{
		width:170px;
	}
	h4,
	.h4 {
		font-size: 19px !important;
	}
}

@media (max-width: 480px) {
	/* .breadcrumb-header{
		margin-left: 37px;
		margin-top: -14px;
    } */
	.cardAlign{
		margin-top: 31px !important;
	}
	h4,
	.h4 {
		font-size:12px !important;
		margin: 0px !important;
	}
	.p-img{
		font-size: 10px;
		width: 25px;
		height: 25px;
	}
	.logOutMenu {
		margin-top: 0%;
	}
	.small, small {
		font-size: 0.55em !important;
	}
	#rdisplayMerchantName{
		margin-bottom: 0% !important
	}
	#displaypatients{
		margin-top: 4% !important;
		font-size:xx-small;
		justify-content:center !important;
	}
	.sentpatient  {
		width: 35px;
		height: 35px;
		padding: 0px 0px 0px 0px !important;
		margin: 0px;
	}
	.formSelect + .select2-container .select2-selection--single .select2-selection__rendered{
		font-size: 12px !important;
	}
	.formSelect + .select2-container .select2-selection--single {
		height: 36px !important;
		padding: 6px !important;
		width: 166px;
	}
	thead,
	tbody,
	h5 {
		font-size: 12px !important;
	}
	.footer-content {
		font-size: 10px;
	}
	.invoiceTable {
		height: 25px !important;
	}
	table.dataTable>thead>tr>th, table.dataTable>thead>tr>td {
		padding: 4px !important;
	}
	table.dataTable thead th{
		font-weight:200 !important;
	}
	.footer{
		font-size: 10px !important;
	}
	.footer-img{
		width:103px;
	}
}

/* Responsive Image Styles */
.responsive-header-img,
.responsive-footer-img {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* PracticeManager-style patient page header */
:root {
    --patient-shell-left: 5px;
}

.top-section.patient-page-header {
    align-items: stretch;
    background: #eef3f9;
    border-bottom: 1px solid #dbe3ee;
    display: flex;
    grid-template-columns: none;
    margin: -24px -10px 0 -10px;
    padding: 42px 10px 14px var(--patient-shell-left);
    row-gap: 12px;
}

.patient-page-header > [class*="col-"]:first-child {
    padding-left: 0;
}

.patient-page-header__meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.patient-page-header__patient {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    min-width: 0;
}

.patientProvider {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-width: 0;
}

.patient-page-header__title {
    min-width: 0;
}

.patientProvider .title {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.patient-page-header .breadcrumbs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
}

.patient-page-header .breadcrumbs li,
.patient-page-header .breadcrumbs li a {
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
}

.patient-page-header .breadcrumbs .divider {
    color: #64748b;
}

#displaypatients.patient-summary {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 0 !important;
    max-width: 100%;
    min-height: 82px;
    padding: 10px 14px;
    min-width: 0;
}

.patient-summary__actions {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.patient-summary__message {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    color: #1f2937;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 38px;
}

.patient-summary__message:hover {
    background: #eef6ff;
    border-color: var(--primaryColor);
    color: var(--primaryColor);
}

#displaypatients .patient-summary__avatar {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

#displaypatients .patient-summary__button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    color: #1f2937;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 38px;
}

#displaypatients .patient-summary__button:hover {
    background: #eef6ff;
    border-color: var(--primaryColor);
    color: var(--primaryColor);
}

#displaypatients .profileImage {
    aspect-ratio: 1;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #ccd6e3;
    object-fit: cover;
}

#displaypatients .patient-summary__request .patient-summary__button {
    background: #ecfdf5;
    border-color: #b7ebcf;
    color: #047857;
}

#displaypatients .patient-summary__content {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
}

#displaypatients .patient-summary__identity {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 105px;
}

#displaypatients .patientHeaderName {
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
}

#displaypatients .patientMRN {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

#displaypatients .patientLine {
    align-self: stretch;
    background: #d7dee8;
    display: block;
    flex: 0 0 1px;
    margin: 3px 0;
    width: 1px;
}

#displaypatients .patientLine.d-none {
    display: none !important;
}

#displaypatients .patient-summary__facts {
    display: grid;
    flex: 0 1 auto;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, auto));
    min-width: 0;
}

#displaypatients .patient-summary__fact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    min-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 8px;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .patient-page-header__patient {
        flex: 0 0 47%;
        max-width: 47%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .top-section.patient-page-header {
        margin: -18px -8px 0 -8px;
        padding: 24px 10px 12px var(--patient-shell-left);
    }

    .patient-page-header__meta {
        flex: 0 0 36%;
        max-width: 36%;
    }

    .patient-page-header__patient {
        flex: 0 0 64%;
        max-width: 64%;
    }

    #displaypatients.patient-summary {
        gap: 8px;
        min-height: 76px;
        padding: 9px 14px;
    }

    #displaypatients .patient-summary__facts {
        grid-template-columns: repeat(2, minmax(0, auto));
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .top-section.patient-page-header {
        margin: -14px -6px 0 -6px;
        padding: 20px 8px;
    }

    .patient-page-header__meta,
    .patient-page-header__patient {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0 !important;
    }

    .patient-page-header__patient {
        justify-content: stretch;
    }

    .patient-summary__actions {
        align-self: center;
    }

    .patientProvider .title {
        font-size: 18px !important;
        line-height: 1.15;
    }

    .patient-page-header .breadcrumbs {
        gap: 5px;
        margin-top: 8px;
    }

    .patient-page-header .breadcrumbs li,
    .patient-page-header .breadcrumbs li a {
        font-size: 10px;
        line-height: 0.2;
    }

    #displaypatients.patient-summary {
        align-items: flex-start;
        flex: 1 1 auto;
        flex-wrap: wrap;
        justify-content: flex-start !important;
        min-height: 0;
        padding: 10px;
        width: auto;
    }

    #displaypatients .profileImage {
        height: 46px;
        width: 46px;
    }

    #displaypatients .patient-summary__content {
        align-items: stretch;
        flex: 1 1 calc(100% - 58px);
        flex-direction: column;
        gap: 8px;
    }

    #displaypatients .patient-summary__identity {
        min-width: 0;
    }

    #displaypatients .patientLine {
        display: none !important;
    }

    #displaypatients .patient-summary__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        width: 100%;
    }

    #displaypatients .patient-summary__fact {
        font-size: 11px;
        min-height: 27px;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    #displaypatients .patient-summary__facts {
        grid-template-columns: 1fr;
    }
}


