::selection {
    background: #d0b358;
    color: #fff;
}

::-moz-selection {
    background: #d0b358;
    color: #fff;
}

#mobile-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#mobile-sidebar .flex-grow-1 {
    overflow-y: auto;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.dashboard-container {
    width: 100%;
    height: 100%;
}

html, body {
    margin: 0;
    padding: 0;
}

.profile-text{
    height: 15px;
    overflow:hidden;
}

@media (prefers-reduced-motion: no-preference) {
    : root {
        overflow: hidden !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F9FAFB;
    color: #111827;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.full-width-header {
    background: white;
    border-bottom: 1px solid #a1a1a1;
    height: 42px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-btn .fas.fa-caret-down {
    transition: transform 0.3s ease;
}

.profile-btn.open .fas.fa-caret-down {
    transform: rotate(180deg);
}

.dashboard-container {
    display: flex;
    flex: 1;
    margin: 0px;
}

.form-control {
    padding: 3px 0.75rem;
    font-size: 12px;
}

.filter-area {
    display: flex;
    position: relative;
    align-items: center;
    padding: 0px 15px;
}

.input-group-sm > .btn, .input-group-sm > .form-control {
    font-size: 12px;
    border-radius: .2rem;
    padding: 3px 10px;
}

.btn-group-sm > .btn, .btn-sm {
    /*    padding: 2px 3px !important;*/
    border-radius: .2rem !important;
    font-size: 12px;
}
.theme-caret {
    transition: transform 0.3s ease;
}

.theme-caret.rotated {
    transform: rotate(90deg);
}
.profile-dropdown {
    position: absolute;
    min-width: 243px;
    border-radius: 3px;
    overflow: hidden;
    animation: popup 0.2s ease-out;
    bottom: 31px;
    padding: 0px;
    left: -7px;
}
.theme-toggle-switch {
    position: relative;
    width: 60px;
    height: 28px;
}

    .theme-toggle-switch input {
        display: none;
    }

    .theme-toggle-switch label {
        display: block;
        width: 100%;
        height: 100%;
        background-color: #e0e0e0;
        border-radius: 50px;
        position: relative;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .theme-toggle-switch label .sun-icon,
        .theme-toggle-switch label .moon-icon {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 14px;
            transition: color 0.3s;
            z-index: 99;
        }

        .theme-toggle-switch label .sun-icon {
            left: 6px;
        }

        .theme-toggle-switch label .moon-icon {
            right: 6px;
        }

        .theme-toggle-switch label .toggle-ball {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 24px;
            height: 24px;
            background-color: #fff;
            border-radius: 50%;
            transition: transform 0.3s;
        }

    .theme-toggle-switch input:checked + label {
        background-color: #333;
    }

        .theme-toggle-switch input:checked + label .toggle-ball {
            transform: translateX(32px);
        }

.sun-icon{
    color: #000;
}
.moon-icon{
    color: #000;
}

.dropdown-item {
    font-size: 14px;
    color: #333 !important;
    cursor: pointer;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.number-notification {
    top: 0px;
    left: 4px;
}

.linkStyle {
    text-decoration: none !important;
    color: inherit;
}

    .linkStyle:hover {
        text-decoration: none !important;
        color: #9ca3af;
    }

.bg-secoundary2 {
    --bs-bg-opacity: 1;
    background-color: rgb(201 201 201) !important;
}

.bell-dropdown {
    top: 25px;
    right: 4px;
}

.notification-list .dropdown-item:hover {
    background-color: #f8f9fa;
    border-radius: 6px;
}
.tree-node-selected {
    background: #ffe48d;
    color: #000000 !important;
}

.sidebar {
/*    width: 26rem;*/
    background: white;
    border-right: 1px solid #a1a1a1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
/*    position: fixed;*/
    top: 0px;
    z-index: 3;
    transition: width 0.3s ease;
}

.sidebar .menu-search {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 10;
    padding: 5px 8px;
}

.sidebar .menu-area {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 5px 8px;
    margin-bottom: 66px;
    scrollbar-width: thin;
}

.sidebar .sidebar-footer {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    background: transparent;
    border-top: 1px solid #ddd;
    text-align: center;
    z-index: 10;
}

.sidebar .nav-link.active, .sidebar .nav-link:hover {
    background-color: #f3f4f6;
    color: #111827;
    font-weight: 600;
}

.sidebar .nav-link i {
    min-width: 1.25rem;
    text-align: center;
    color: #6b7280;
}

.sidebar .nav-link.active i {
    color: #d0b358;
}

.sidebar .upgrade-btn {
    margin-top: 1rem;
    width: 100%;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 1.25rem;
    color: #9ca3af;
    text-align: center;
    user-select: none;
}

.logo-area {
    position: relative;
    padding: 5px;
}
/*.logo-area::after {
    content: "";
    position: absolute;
    top: -29px;
    right: 0;
    width: 1px;
    height: calc(100% + 29px);
    background-color: #a1a1a1;
}*/

/*.header-area::after {
    content: "";
    position: absolute;
    top: -15px;
    right: 0px;
    width: 1px;
    background-color: #a1a1a1;
    height: 66px;
}
.header-buttons-area::after {
    content: "";
    position: absolute;
    top: -16px;
    right: 0px;
    width: 1px;
    height: 66px;
    background-color: #a1a1a1;
}*/
.profile-area {
    padding: 2px 8px;
    border-bottom: 1px solid #a1a1a1;
    background: #ffffff;
    margin-bottom: 2px;
    height: 33px;
    justify-content: space-between;
}

.header-title {
    min-width: 150px;
    max-width: 170px;
}

.divider {
    width: 1px;
    height: 20px;
    background-color: #a1a1a1;
    padding: 1px;
}

@media (max-width: 522px) {
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #a1a1a1;
        padding: 0px;
    }

    .logo-area {
        width: auto;
        padding: 8px;
    }

    .header-logo {
        padding: 2px !important;
    }

    .logo-area::after {
        display: none;
    }
}

@media (max-width: 591.98px) {
    .header-logo img {
        height: 35px !important;
    }
}

@media (max-width: 767.98px) {
    .filter-area {
        padding: 0px;
    }
}

.header-content {
    flex: 1;
    position: relative;
    padding-left: 10px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
/*    padding: 5px 20px;*/
    background: #fff;
    width: 238px;
    justify-content: center;
    transition: width 0.5s ease;
}

    .header-logo img {
        width: auto;
        height: 45px;
    }

    .header-logo .brand {
        color: #d0b358;
        font-weight: 600;
        font-size: 1.125rem;
    }

.tab-area {
    position: absolute;
    top: -12px;
}

.sidebar-sales {
    background-color: #ea580c;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    user-select: none;
}

.sidebar-sales-container {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    user-select: none;
}

    .sidebar-sales-container i {
        font-size: 0.75rem;
    }

.main-content {
    flex-grow: 1;
    overflow-y: auto;
    width: 100%;
    margin-top: 0px;
/*    margin-left: 256px;*/
    margin-bottom: 0px;
    transition: margin-left 0.3s ease;
}

.expanded {
/*    margin-left: 44px !important;*/
    transition: margin-left 0.3s ease;
}

.main-content-inner {
    height: calc(100vh - 46px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    margin-top: 46px;
    margin-left: 4px;
    position: fixed;
    width: calc(100% - 262px);
}

.expanded .main-content-inner {
    width: calc(100% - 48px) !important;
}

.header-logo-small {
    display: none;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
    padding: 0px;
    background: #fff;
    width: 43px;
    justify-content: center;
}

.main-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

    .main-header h1 {
        font-weight: 800;
        font-size: 1.125rem;
        margin-bottom: 0.125rem;
    }

    .main-header p {
        font-size: 0.75rem;
        color: #6b7280;
        margin-bottom: 0;
    }

.btn-outline-secondary {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #000000;
    border-color: #d1d5db;
    background: #ffffff;
}

.crud-dropdown, .business-dropdown, .export-dropdown {
    margin-top: 3px;
}

.btn-without-border {
    font-size: 0.75rem;
    /*    padding: 0.25rem 0.75rem;*/
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #000000;
    border-color: transparent;
    background-color: transparent;
}

a.btn-without-border.icon-add {
    background: url(../img/icons/Add.png) no-repeat left center;
    background-size: 16px 16px;
    padding-left: 24px;
}

.btn-with-border {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #000000;
    border-color: #242424;
    background: #eaf2ff;
}

.input-group .btn {
    z-index: 0;
}

.btn-hover-outline:hover {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #000000 !important;
    border-color: #b7d2ff !important;
    background-color: #eaf2ff !important;
}

.btn-hover:hover {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #16a34a !important;
    border-color: #16a34a !important;
}

.btn-outline-secondary:hover {
    background-color: #f9fafb;
    color: #111827;
    border-color: #9ca3af;
}

.btn-outline-primary {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #2563eb;
    border-color: #2563eb;
}

    .btn-outline-primary:hover {
        background-color: #1d4ed8;
        border-color: #1e40af;
    }

    .btn-outline-primary i {
        font-size: 0.75rem;
    }

.profile-btn {
    border-radius: 0.375rem;
    padding: 0px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.theme-btn {
    border: 1px solid #d1d5db;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
}

.bell-btn {
    border: 1px solid #d1d5db;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
}

.profile-btn img {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
}

.profile-info {
    font-size: 0.75rem;
    line-height: 1.1;
    color: #374151;
    min-width: 85px;
}

    .profile-info .name {
        font-weight: 600;
        color: #111827;
        margin-bottom: 0;
    }

    .profile-info .role {
        color: #9ca3af;
        margin-bottom: 0;
    }

.card-stats {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    height: auto;
}

    .card-stats:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    }

.icon-container {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-orange {
    background: linear-gradient(135deg, #FF9A3D, #FF6B6B);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(255, 154, 61, 0.25);
}

.icon-container i {
    font-size: 1.5rem;
    color: white;
}

.icon-red {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}

.icon-purple {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.25);
}

.icon-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
}

.card-content {
    padding: .25rem;
    padding-left: 0;
}

.desc {
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    height: 26px;
}

.number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
}


.l-btn-icon {
    margin-right: 2px;
}

.l-btn-left {
    display: inline-flex;
    align-items: center;
}

    .l-btn-left .l-btn-text {
        order: 1;
    }

    .l-btn-left .l-btn-icon {
        order: 0;
        margin-right: 5px;
    }

@media (max-width: 578.98px) {
    .icon-container {
        margin-bottom: 0.5rem;
    }

    .number {
        font-size: 1rem;
    }

    .header-search-input {
        max-width: 80px !important;
        font-size: 10px !important;
        border-radius: .2rem !important;
        padding: 0px !important;
    }

    .btn-without-border {
        font-size: 10px !important;
        /*        padding: 0px !important;*/
        border-radius: 0.375rem;
        gap: 0px !important;
        color: #000000;
    }

    .btn-group-sm > .btn, .btn-sm {
        /*        padding: 0px !important;*/
        border-radius: .2rem !important;
        font-size: 10px !important;
    }

    .btn-dark-theme {
        font-size: 10px !important;
    }
}

@media (max-width: 1399.98px) {
    .icon-container {
        margin-bottom: 0;
    }

    .number {
        font-size: 1rem;
    }
}

.card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    padding: 5px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

    .card-header h2 {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0;
        color: #111827;
    }

    .card-header button {
        background: none;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        font-size: 1rem;
        padding: 0;
    }

        .card-header button:hover {
            color: #6b7280;
        }

.circle-chart-container {
    position: relative;
    width: 9rem;
    height: 9rem;
    margin: 0 auto;
}

    .circle-chart-container img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.circle-chart-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #111827;
    font-size: 1.5rem;
    line-height: 1.1;
    text-align: center;
    user-select: none;
}

    .circle-chart-text small {
        font-size: 0.75rem;
        font-weight: 400;
    }

.header-search-input {
    max-width: 150px;
}

.circle-chart-legend {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
    padding: 0 1rem;
}

    .circle-chart-legend div {
        text-align: center;
        user-select: none;
    }

    .circle-chart-legend .number {
        font-weight: 600;
        font-size: 0.875rem;
    }

    .circle-chart-legend .label {
        font-size: 0.75rem;
        color: #6b7280;
    }

.text-purple {
    color: #7c3aed;
}

.text-orange {
    color: #f97316;
}

.text-yellow {
    color: #eab308;
}

.bar-chart {
    width: 100%;
    height: 10rem;
    object-fit: contain;
    user-select: none;
}

.bar-chart-legend {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    user-select: none;
}

    .bar-chart-legend span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .bar-chart-legend .red {
        color: #ef4444;
    }

    .bar-chart-legend .yellow {
        color: #fbbf24;
    }

    .bar-chart-legend .purple {
        color: #7c3aed;
    }

.line-chart-container {
    position: relative;
    width: 100%;
    height: 10rem;
    user-select: none;
}

    .line-chart-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.line-chart-tooltip {
    position: absolute;
    top: 44%;
    left: 46%;
    transform: translate(-50%, -50%);
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
    user-select: none;
    white-space: nowrap;
}

.line-chart-line {
    position: absolute;
    top: 50%;
    left: 46%;
    width: 1px;
    height: 1.5rem;
    background-color: #ef4444;
    transform: translateX(-50%);
    user-select: none;
}

.status-pending {
    color: #f59e0b;
    font-weight: 600;
}

.status-approved {
    color: #22c55e;
    font-weight: 600;
}

@media (max-width: 1399.98px) {
    .tab-area {
        display: none;
    }

    .header-area {
        display: none;
    }

        .header-area::after {
            display: none;
        }
}

@media (max-width: 991.98px) {
    .filter-area {
        display: none;
    }

    .header-area {
        display: none;
    }

    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #a1a1a1;
        padding: 0px;
    }

    .menu-search {
        padding: 0px 8px 0px 0px;
    }

    .sidebar .nav-link {
        flex: 0 0 auto;
        margin-right: 0.5rem;
        margin-bottom: 0;
        border-radius: 0.375rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .sidebar-footer {
        display: block;
        font-size: 12px;
    }

    .submenu-level-2 {
        padding-right: 12px !important;
    }

    .nav-item {
        width: 100%;
    }

    .main-content {
        margin-left: 48px !important;
    }
}

@media (max-width: 838.98px) {

    .profile-btn {
        padding: 0px;
        width: auto;
    }
}

@media (max-width: 767.98px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-area {
        width: auto;
        padding: 8px;
    }

    .header-logo {
        padding: 2px !important;
    }

    .logo-area::after {
        display: none;
    }

    .header-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn-outline-secondary {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu .nav-link {
        display: flex;
        align-items: center;
        padding: 4px;
        color: #374151;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.2s ease-in-out;
        gap: 1px;
        cursor: pointer;
    }

.form-select-sm {
    padding: 2px 0.75rem;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
    background-color: #f3f4f6;
    color: #111827;
    font-weight: 600;
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

    .arrow.rotate {
        transform: rotate(90deg);
    }

.submenu {
    list-style: none;
    display: none;
    padding-left: 8px;
    padding-right: 0px;
    border-left: 1px dashed #e5e7eb;
    margin: 0;
}

    .submenu .active {
        background-color: #f3f4f6;
        color: #d0b358;
        font-weight: 600;
        margin-top: 3px;
    }

    .submenu li {
        margin: 0;
    }

        .submenu li a {
            display: block;
            padding: 4px 6px;
            color: #555;
            font-size: 0.85rem;
            border-radius: 4px;
            text-decoration: none;
            transition: all 0.2s ease-in-out;
        }

            .submenu li a:hover {
                color: #d0b358;
                background-color: #f8f9fa;
                border-radius: 4px;
            }

    .submenu .submenu {
        padding-left: 8px;
    }

        .submenu .submenu .submenu {
            padding-left: 8px;
        }

            .submenu .submenu .submenu .submenu {
                padding-left: 8px;
            }

.submenu-level-3 {
    padding-right: 0px;
}

.sidebar.collapsed {
    width: 43px;
    border-right: 1px solid #a1a1a1;
}

.sidebar-menu .nav-link:hover {
    background-color: #f1f1f1;
}

.menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

    .menu-title .arrow {
        margin-left: auto;
        font-size: 12px;
        transition: transform 0.3s ease;
    }

        .menu-title .arrow.rotate {
            transform: rotate(90deg);
        }

.modal-body {
    padding: 5px 10px;
}

.modal-header {
    padding: 5px 10px;
}

.modal-footer {
    padding: 5px 10px;
}

p {
    margin-bottom: 0;
    padding: 0;
    font-size: 12px;
}

.modal-header .btn-close {
    padding: 5px;
    margin: 0px;
    font-size: 12px;
}

.footer {
    position: fixed !important;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 30px !important;
    background: #ffffff !important;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        max-width: 870px;
    }
}

.table-responsive {
    height: 100%;
}

.ag-body-vertical-scroll-viewport {
    scrollbar-width: thin;
}

.ag-body-horizontal-scroll-viewport {
    scrollbar-width: thin;
}

.autocomplete-box {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    z-index: 1050;
    display: none;
    width: 100%;
}

.suggestion-item {
    padding: 5px 10px;
    cursor: pointer;
}

    .suggestion-item.active {
        background: #797a7b;
        color: #fff;
        cursor: pointer;
    }

    .suggestion-item:hover {
        background: #797a7b;
    }

.dropdown-menu {
    max-height: 305px;
    max-width: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dropdown-item.active, .dropdown-item:active {
    color: #16a34a;
    background-color: #f3f4f6;
}

.dropdown-item:hover {
    color: #000000 !important;
    background-color: #f3f4f6;
}

/* ---------- Common base for icon anchors ---------- */
a.btn.icon-save,
a.btn.icon-cancel {
    display: inline-flex; /* better vertical alignment */
    align-items: center;
    justify-content: center;
    gap: 0; /* we use background icon, so no gap */
    line-height: 1.25;
    white-space: nowrap; /* no wrapping */
    text-decoration: none !important;
    background-repeat: no-repeat;
    background-position: 0.5rem 50%; /* icon sits nicely on the left */
    background-color: transparent; /* respect outline button look */
    transition: transform .06s ease, filter .12s ease, box-shadow .12s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: middle;
    /* padding-left must cover icon width + left inset */
    padding-left: calc(0.5rem + 20px);
    /* keep your width constraint but avoid ugly clipping */
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Small size tweaks (works with .btn-sm) */
a.btn.btn-sm.icon-save,
a.btn.btn-sm.icon-cancel {
    min-height: 28px; /* consistent hit area */
    background-size: 16px 16px; /* ensure crisp sizing */
}

/* ---------- Individual icons ---------- */
a.btn-outline-primary.icon-save {
    background-image: url(../img/icons/save.png);
    /* Optional: crisp on HiDPI if you have @2x assets */
    /* background-image: image-set(url(../img/icons/save.png) 1x,
                                 url(../img/icons/save@2x.png) 2x); */
}

a.btn-outline-secondary.icon-cancel {
    background-image: url(../img/icons/cancel.png);
    /* Optional HiDPI:
  background-image: image-set(url(../img/icons/cancel.png) 1x,
                               url(../img/icons/cancel@2x.png) 2x); */
}

/* ---------- Interaction states ---------- */
a.btn.icon-save:hover,
a.btn.icon-cancel:hover {
    filter: brightness(0.97);
}

a.btn.icon-save:active,
a.btn.icon-cancel:active {
    transform: translateY(1px);
    filter: brightness(0.95);
}

/* Accessible focus ring without changing your HTML */
a.btn.icon-save:focus-visible,
a.btn.icon-cancel:focus-visible {
    outline: 2px solid rgba(13,110,253,.6); /* Bootstrap primary hue */
    outline-offset: 2px;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* Disabled look if you toggle the Bootstrap .disabled class */
a.btn.icon-save.disabled,
a.btn.icon-cancel.disabled,
a.btn.icon-save[aria-disabled="true"],
a.btn.icon-cancel[aria-disabled="true"] {
    opacity: .6;
    pointer-events: none;
    filter: none;
    transform: none;
}

/* ---------- Optional: dark background support ---------- */
@media (prefers-color-scheme: dark) {
    a.btn.icon-save:hover,
    a.btn.icon-cancel:hover {
        filter: brightness(1.05);
    }
}

.ag-theme-alpine .ag-cell {
    border-right: 1px solid #ccc;
}

.btn-outline-primary:hover {
    background-color: #fff;
    color: #2563eb;
    border-color: #1e40af;
}

.form-select {
    padding: 2px 10px;
    font-size: 13px;
    line-height: 1;
}

.form-control-sm {
    min-height: calc(1.5em + .5rem + 2px);
    padding: 0px .5rem !important;
    font-size: 12px !important;
    border-radius: 5px;
    border: 1px solid;
}

.disabled-grid {
    pointer-events: none; /* Disable mouse interactions */
    opacity: 0.5; /* Make it semi-transparent */
}

.table-forms {
    border: none !important;
    margin-bottom: 0px !important;
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0px 5px !important;
}

    .table-forms tbody, .table-forms td, .table-forms tfoot, .table-forms th, .table-forms thead, .table-forms tr {
        border: none !important;
    }

        .table-forms tbody tr {
            background: transparent !important;
            box-shadow: none !important;
            border-radius: 0px;
        }

            .table-forms tbody tr td:first-child {
                font-weight: 600;
                padding-left: 0px !important;
                width: 100px;
            }

            .table-forms tbody tr td:last-child {
                padding-right: 0px;
            }

    .table-forms > :not(caption) > * > * {
        padding: 0px 5px;
    }

.datebox-calendar-inner {
    height: 195px !important;
}

.combo-p {
    width: 222px !important;
}

.datebox-button table {
    border-collapse: collapse !important;
    font-size: 0.75rem;
    color: #374151;
    border-spacing: 0rem !important;
    width: 100%;
}

.calendar-dtable {
    border-collapse: collapse !important;
    font-size: 0.75rem;
    color: #374151;
    border-spacing: 0rem !important;
    width: 100%;
}

.datebox-button {
    padding: 0px !important;
}

    .datebox-button table tbody tr td {
        padding: 0px !important;
    }

#sidebar-area.collapsed .header-logo {
    display: none !important;
    transition: width 0.3s ease;
}

#sidebar-area.collapsed .header-logo-small {
    display: block !important;
    transition: width 0.3s ease;
}

fieldset {
    display: block;
    padding: 3px;
    border: 1px solid #ccc;
    margin: 3px !important;
}

.autocomplete-suggestions {
    max-height: 200px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1px solid #999 !important;
    background: #FFF !important;
    cursor: default;
    z-index: 9999 !important;
    box-shadow: inherit !important;
    accent-color: #170041 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.autocomplete-suggestion {
    padding: 0px 0px 0px 10px;
}

    .autocomplete-suggestion:hover {
        background: #d0b358;
    }

    .autocomplete-suggestion:focus {
        background: #d0b358;
    }

.autocomplete-selected {
    background: #d0b358;
    border: 1px solid #d0b358;
    border-radius: 3px;
    padding: 0px 0px 0px 10px !important;
}


legend {
    all: unset;
    display: block;
    font-weight: bold;
    padding: 0 4px;
}

.maxH80 .panel-body {
    max-height: 80vh !important;
    overflow-y: auto;
}
input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: normal;
}
#lblUserName{
    max-width: 120px;
    overflow:hidden;
    height: 15px;
}
.datagrid-body{
    scrollbar-width:thin;
}
