[data-theme-mode=default] {
    --bs-danger: #ef6767 !important;
    --bs-danger-rgb: 239, 103, 103 !important;
    --bs-sidebar-menu-item-active-color: #7a6fbe !important;
}

[data-theme-mode=red] {
    --bs-primary: #d95a6f !important;
    --bs-primary-rgb: 217, 90, 111 !important;
    --bs-danger: #7a6fbe !important;
    --bs-danger-rgb: 122, 111, 190 !important;
    --bs-info: #f5b225 !important;
    --bs-info-rgb: 245, 178, 37 !important;
    --bs-warning: #0dcaf0 !important;
    --bs-warning-rgb: 13, 202, 240 !important;
    --bs-sidebar-menu-item-active-color: #d95a6f !important;
}

[data-theme-mode=red] .btn-danger {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

[data-theme-mode=red] .btn-danger:hover,
[data-theme-mode=red] .btn-danger:focus,
[data-theme-mode=red] .btn-danger:active,
[data-theme-mode=red] .btn-danger.disabled,
[data-theme-mode=red] .btn-danger:disabled {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

[data-theme-mode=red] .btn-danger:hover:focus,
[data-theme-mode=red] .btn-danger:focus:focus,
[data-theme-mode=red] .btn-danger:active:focus,
[data-theme-mode=red] .btn-danger.disabled:focus,
[data-theme-mode=red] .btn-danger:disabled:focus {
    -webkit-box-shadow: 0 0 0 0.15rem var(--bs-danger);
    box-shadow: 0 0 0 0.15rem var(--bs-danger);
}

[data-theme-mode=red] .btn-outline-danger {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
}

[data-theme-mode=red] .btn-outline-danger:hover,
[data-theme-mode=red] .btn-outline-danger:focus,
[data-theme-mode=red] .btn-outline-danger:active,
[data-theme-mode=red] .btn-outline-danger.disabled,
[data-theme-mode=red] .btn-outline-danger:disabled {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    color: #fff;
}

[data-theme-mode=red] .btn-outline-danger:hover:focus,
[data-theme-mode=red] .btn-outline-danger:focus:focus,
[data-theme-mode=red] .btn-outline-danger:active:focus,
[data-theme-mode=red] .btn-outline-danger.disabled:focus,
[data-theme-mode=red] .btn-outline-danger:disabled:focus {
    -webkit-box-shadow: 0 0 0 0.15rem var(--bs-danger);
    box-shadow: 0 0 0 0.15rem var(--bs-danger);
}

[data-theme-mode=teal] {
    --bs-primary: #3eb7ba !important;
    --bs-primary-rgb: 62, 183, 186 !important;
    --bs-info: #36508b !important;
    --bs-info-rgb: 54, 80, 139 !important;
    --bs-sidebar-menu-item-active-color: #3eb7ba !important;
    --bs-link-color-rgb: 62, 183, 186 !important;
    --bs-link-hover-color-rgb: 62, 183, 186 !important;
    --bs-pagination-active-border-color: #3eb7ba !important;
    --bs-pagination-active-bg: #3eb7ba !important;
    --bs-link-color: #3eb7ba !important;
    --bs-link-hover-color: #3eb7ba !important;
    --bs-pagination-active-bg: #3eb7ba !important;
    --bg-primay-lightshadow: rgba(62, 183, 186, 0.25);
    --ag-column-hover-color: #d4f5f6 !important;
}

[data-theme-mode=teal] .ag-theme-balham,
.ag-theme-balham-dark {
    --ag-column-hover-color: transparent !important;
    --ag-row-hover-color: #d4f5f6 !important;
}

[data-theme-mode=red] .ag-theme-balham,
.ag-theme-balham-dark {
    --ag-column-hover-color: transparent !important;
    --ag-row-hover-color: #fbdde3 !important;
}

[data-theme-mode=default] .ag-theme-balham,
.ag-theme-balham-dark {
    --ag-column-hover-color: transparent !important;
    --ag-row-hover-color: #fde5e5 !important;
}

[data-theme-mode=blue] {
    --bs-primary: #1D335B !important;
    --bs-primary-rgb: 29, 51, 91 !important;
    --bs-secondary: #1b886f !important;
    --bs-secondary-rgb: 27, 136, 111 !important;
    --bs-info: #1b886f !important;
    --bs-info-rgb: 27, 136, 111 !important;
    --bs-success: #1b886f !important;
    --bs-success-rgb: 27, 136, 111 !important;
    --bs-sidebar-menu-item-active-color: var(--bs-primary) !important;

    --bs-link-hover-color: var(--bs-primary) !important;
    --bs-link-color-rgb: var(--bs-primary-rgb) !important;
    --bs-link-hover-color-rgb: var(--bs-primary-rgb) !important;
    --bs-pagination-active-border-color: var(--bs-primary) !important;
    --bs-pagination-active-bg: var(--bs-primary) !important;

    --ag-column-hover-color: rgba(var(--bs-primary-rgb), 0.08) !important;
    --ag-row-hover-color: rgba(var(--bs-primary-rgb), 0.12) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Floating Filter Button - Global Dashboard Component */
.floating-filter-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #1D335B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(29, 51, 91, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-filter-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 35px rgba(29, 51, 91, 0.4);
    background: #2b4b84;
}

.floating-filter-btn i {
    transition: transform 0.3s ease;
}

.floating-filter-btn:active {
    transform: scale(0.95);
}

/* --- Shared Dashboard UI Components --- */

/* Card Header Standard */
.dashboard-card-header,
.sales-card-header,
.roi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.dashboard-card-title-group,
.sales-card-title-group {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    gap: 12px;
}

/* Icon Badges */
.header-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.bg-solar-orange {
    background: #fff7ed;
    color: #f97316;
}

.bg-solar-yellow {
    background: #fefce8;
    color: #eab308;
}

.bg-solar-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.bg-solar-navy {
    background: #f1f5f9;
    color: #1D335B;
}

.bg-solar-emerald {
    background: #ecfdf5;
    color: #10b981;
}

.bg-solar-purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

/* Text Styles */
.title-main {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.title-overline {
    font-size: 9px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Expand Button */
.btn-expand-chart {
    background: #f8fafc;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
}

.btn-expand-chart:hover {
    background: #f1f5f9;
    color: #1D335B;
    transform: scale(1.1);
}




[data-theme-mode=blue] .ag-theme-balham,
[data-theme-mode=blue] .ag-theme-balham-dark {
    --ag-column-hover-color: rgba(var(--bs-primary-rgb), 0.08) !important;
    --ag-row-hover-color: rgba(var(--bs-primary-rgb), 0.15) !important;
}


.clsFontRed,
.clsFontRed>*,
.clsFontRed .ag-cell-value {
    color: var(--bs-primary) !important;
    font-weight: 600 !important;
}


a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: none;
    font-weight: 600;
}

.active>.page-link,
.page-link.active {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: var(--bs-pagination-active-bg);
    border-color: var(--bs-pagination-active-border-color);
}

.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 0.8125rem;
    --bs-pagination-color: var(--bs-link-color);
    --bs-pagination-bg: var(--bs-secondary-bg);
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: var(--bs-border-color);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: var(--bs-link-hover-color);
    --bs-pagination-hover-bg: var(--bs-tertiary-bg);
    --bs-pagination-hover-border-color: var(--bs-border-color);
    --bs-pagination-focus-color: var(--bs-link-hover-color);
    --bs-pagination-focus-bg: var(--bs-tertiary-bg);
    --bs-pagination-focus-box-shadow: 0 0 0 0.15rem rgba(122, 111, 190, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-disabled-color: var(--bs-secondary-color);
    --bs-pagination-disabled-bg: var(--bs-secondary-bg);
    --bs-pagination-disabled-border-color: var(--bs-border-color);
}

:root,
[data-bs-theme=light] {
    --bs-primary: #1D335B;
    --bs-body-font-size: 0.94rem;
    --bs-button-font-size: 12px;
    /*--bs-agfont: 17.04px;*/
    --bs-agfont: 12px !important;
    --bs-agheight: 35px;
    --bs-agborder-right: 1px solid #d5cdcd !important;
    --bs-agborder-bottom: 1px solid #d5cdcd !important;
    --ag-font-size-global: var(--bs-agfont);
    --ag-font-family-global: "Poppins", sans-serif !important;
}

.ag-theme-balham .ag-ltr .ag-cell {
    border-right: var(--bs-agborder-right);
    border-bottom: var(--bs-agborder-bottom);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.topnav .navbar-nav .nav-link {
    font-size: var(--bs-body-font-size);
}

.fs-6,
.bi,
.fas,
.fa,
.mdi {
    font-size: var(--bs-body-font-size) !important;
}

.noti-icon i {
    font-size: 22px !important;
    color: var(--bs-header-item-color);
}

div.dataTables_processing>div:last-child {
    position: relative;
    width: 80px;
    height: 15px;
    margin: 1em auto;
    display: none;
}

.dataTables_processing i {
    font-size: 40px !important;
}

.dataTables_processing.card {
    border: none;
    box-shadow: none;
    background: transparent;
}

div.dt-buttons {
    position: unset;
    float: right;
}

.left div.dt-buttons {
    position: unset;
    float: left;
}

.mini-stat .mini-stat-icon i {
    font-size: 30px !important;
}

.ag-theme-balham .ag-body-viewport .ag-cell:not(.ag-edit-cust) {
    padding: 0.45rem;
    font-weight: 400 !important;
    font-size: var(--bs-agfont) !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.ag-theme-balham .ag-body-viewport .ag-cell.clsFontRed:not(.ag-edit-cust) {
    font-weight: 600 !important;
}

.ag-row {
    min-height: var(--bs-agheight) !important;
    max-height: var(--bs-agheight) !important;
    height: var(--bs-agheight) !important;
}

.ag-header-row {
    min-height: var(--bs-agheight) !important;
    max-height: var(--bs-agheight) !important;
    height: var(--bs-agheight) !important;
    line-height: 40px !important;
    text-align: center;
    background-color: #fff !important;
}

ag-header-row,
.ag-header-row-column-group {
    min-height: var(--bs-agheight) !important;
    max-height: var(--bs-agheight) !important;
    height: var(--bs-agheight) !important;
}

.innerAutoCompleteDiv {
    height: var(--bs-agheight) !important;
}

.innerAutoComplete {
    width: 100%;
    height: var(--bs-agheight);
    border: none;
}

.ag-row-focus,
.ag-row-selected {
    background-color: var(--bg-primay-lightshadow) !important;
}

.ag-row-hover {
    background-color: var(--ag-row-hover-color) !important;
}

.ag-row-selected:before {
    content: "";
    background-color: transparent !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ag-row-hover.ag-row-selected:before {
    background-color: transparent;
    background-image: none !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--bs-primary);
}

.select2-container--default .select2-results__option--highlighted[aria-selected]:hover {
    background-color: var(--bs-primary);
}

.btn-close:focus {
    box-shadow: 0 0 0 0.15rem var(--bg-primay-lightshadow);
}

.nav-tabs-custom {
    border-bottom: 2px solid var(--bs-border-color);
    padding: 8px 0px;
}

.mdlSubmitBtn {
    padding: 10px 10px !important;
}

.btnExtend {
    padding: 10px 9px !important;
}

.ag-cell-inline-editing .ag-cell-edit-wrapper,
.ag-cell-inline-editing .ag-cell-editor,
.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,
.ag-cell-inline-editing .ag-cell-editor input,
.ag-cell-inline-editing .ag-cell-wrapper {
    height: var(--bs-agheight) !important;
}

/*#endregion*/

/*Region form login*/

.login-page-bg {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.login-page-bg:before {
    /*    background-color: #00000006;*/
    content: "";
    position: fixed;
    height: 100%;
    width: 100%;
    display: block;
    top: 0;
    z-index: 1;
    left: 0;
}

.account-pages {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

@media (max-width: 991px) {
    .account-pages {
        justify-content: center;
        padding-top: 40px;
    }
}

.login-card-container {
    padding: 40px;
    width: 100%;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .login-card-container {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .login-card-container {
        padding: 15px;
    }
}

/*Region legend form login*/
.page-title {
    color: #54606d;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 9px;
    margin-top: 10px;
    display: inline-block;
}

.form-group {
    margin-bottom: 0.5rem;
}

label {
    margin-bottom: 0;
}

.submit-section {
    text-align: center;
    position: sticky;
    background-color: white;
    margin: 0 -15px -15px -15px;
    bottom: -15px;
    padding: 10px;
}


.required:after {
    content: "*";
    color: red;
}

.add-btn i {
    margin-right: 5px;
    padding: 2px;
}

.dropdown-mega-menu-xl {
    width: 550px;
    padding: 8px;
    background-color: #fff;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow-y: auto;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 999;
    max-height: 310px;
}

.dropdown-mega-menu-xl .col-lg-3 {
    flex: 1 1 25%;
    min-width: 200px;
}

.dropdown-mega-menu-xl .dropdown-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 6px;
    font-size: 16px;
    color: #333;
    border-radius: 4px;
    transition: background 0.2s ease, all 0.2s ease;
    white-space: nowrap;
}

.dropdown-mega-menu-xl .dropdown-item i {
    font-size: 16px;
    color: #6c757d;
}

.dropdown-mega-menu-xl .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #000;
}

.topnav .navbar-nav .nav-link:focus,
.topnav .navbar-nav .nav-link:hover,
.topnav .navbar-nav .dropdown-item.active,
.topnav .navbar-nav .dropdown-item:hover {
    /*    font-weight: bold;*/
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-menu {
    left: 100%;
    top: 0;
    margin-left: 1px;
    position: absolute;
    background: #fff;
    z-index: 1000;
    border-radius: 6px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.12);
}

.dropdown-menu {
    position: absolute;
    z-index: 1050;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.dropdown-item i,
.dropdown-item svg {
    min-width: 16px;
    text-align: center;
    font-size: 16px;
    line-height: 1;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #000;
}

.custom-label-float {
    --half-bg: 53%;
    margin-bottom: 0px;
    position: absolute;
    transform: translate(7px, -5px) scale(0.77);
    transform-origin: 0 0;
    background-color: #fff;
    z-index: 6;
    line-height: 1rem;
    border-radius: 10px;
    padding: 0 7px;
}

.select2-container--default .select2-selection--single {
    height: 37px;
    border-color: #dee2e6;
}

.navbar-header {
    height: 55px;
}

body[data-layout=horizontal] .page-title-content {
    padding: 8px 0;
    padding: 4px 0;
}

.topnav .navbar-nav .nav-link {
    padding: 10px 20px;
    color: #000;
}

.topnav .navbar-nav .nav-item {
    position: relative;
}

/* Short right border */
.topnav .navbar-nav .nav-item::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 0;
    height: 70%;
    width: 1px;
    background-color: black;
}

.page-top {
    background-color: #8d8d8d !important;
}

.topnav .navbar-nav .dropdown.active>a {
    font-weight: bolder
}

body[data-layout=horizontal] .page-content {
    position: relative;
    margin-top: -50px;
    /*padding: calc(180px + 1.5rem) calc(1.5rem / 2) 40px calc(1.5rem / 2);*/
    padding: calc(170px + 1.5rem) calc(1.5rem / 2) 0px calc(1.5rem / 2);
    background: #fff;
}

.btn-filter-toggle {
    z-index: 10;
    background-color: #1D335B;
    color: white !important;
    border: none;
    border-radius: 5px;
    padding: 10px 12px;
    display: flex;
    position: fixed !important;
    top: 4.8rem !important;
    right: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(29, 51, 91, 0.3) !important;
    transition: all 0.3s ease;
}

.btn-filter-toggle:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 5px;
    background: #1D335B;
    z-index: -1;
    opacity: 0;
    animation: filter-live-pulse 2s infinite ease-out;
}

.btn-filter-toggle:hover {
    transform: scale(1.1);
    background: #2b4b84 !important;
    box-shadow: 0 6px 20px rgba(29, 51, 91, 0.45) !important;
}

@keyframes filter-live-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.jvectormap-label {
    background: none !important;
}

/*Region for cards*/
.custom-width {
    flex: 0 0 20%;
}

/*Region end for cards*/

/*.btn-primary {
    padding: 4px 8px;
    font-size: 11px;
}*/

.table> :not(caption)>*>* {
    /*    padding-top: 4px;
    padding-bottom: 4px;*/
    padding: 6px 6px;
    border-right: var(--bs-agborder-right);
    border-bottom: var(--bs-agborder-bottom);
}

.card-body {
    padding: 8px 8px;
}

/*button.dt-button, div.dt-button, a.dt-button {
    padding: 4px 7px;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}*/

button.dt-button:hover:not(.disabled),
div.dt-button:hover:not(.disabled),
a.dt-button:hover:not(.disabled) {
    background-color: var(--bs-primary);
    border-color: transparent !important;
    color: #fff;
    background-image: none;
}

span.eyeIconUtility.fa-eye-slash {
    opacity: 0.4;
}

.eyeIconUtility {
    cursor: pointer;
    margin-right: 1px;
    position: absolute;
    top: 32px;
    right: 25px;
    color: black !important;
    transition: opacity 0.25s ease;
}

.dataTables_scroll {
    margin-top: 5px;
}

body[data-layout=horizontal] .container-fluid {
    max-width: 95%;
}

.card-header {
    padding: 5px;
}

.dash-refreshBtn {
    width: 32px;
    height: 32px;
    margin-right: -17px;
    margin-top: 3px;
}

.btn-xs {
    line-height: 1.2;
    background: transparent;
    border: none;
    margin: 3px;
}

.btnPadding {
    /*padding: 10px 10px !important;*/
    padding: 7px 10px !important;
}

.btnIcon {
    width: 32px;
    height: 32px;
}

.btnIcon i {
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
}

.btn-xs .fa,
.btn-xs .fas,
.btn-xs .mdi,
.btn-xs .bi {
    font-size: 17.04px !important;
}


.btnEye {
    color: #0077ff;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success,
.btn-warning {
    padding: 5px 9px;
    font-size: var(--bs-button-font-size);
    line-height: 1;
    vertical-align: middle;
}

/*.btn-primary{
    padding: 11px 9px;
}
*/


.btn-primary i,
.btn-secondary i,
.btn-danger i,
.btn-success i,
.btn-warning i {
    line-height: 1;
    vertical-align: middle;
}


.shortCut {
    font-size: var(--bs-body-font-size);
    vertical-align: middle;
}

.shortCut:before {
    position: absolute;
    content: '';
    width: 2px;
    height: 22px;
    display: inline-block;
    /*top: 0%;*/
    background-color: #fff;
    /*bottom: 0%;*/
    margin: auto;
    margin-left: -8px;
    /*margin-top: -3px;*/
}

body.report-full-width #page-content {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/*.ag-cell-value {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
*/
.editBtn {
    color: var(--bs-primary);
}

.clockBtn {
    color: #2c2e49;
}

.btnLogin {
    padding: 11px 9px;
}

.input-group> :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border: 1px solid rgba(0, 0, 0, 0.6);
}

.spanSender {
    margin-left: -6px;
    font-size: 12px;
}

.date-select {
    margin-left: -6px;
}

.demo-datatable .card-body {
    padding: 21px !important;
}

.right-bar {
    width: 290px;
}

.filter-section {
    border-bottom: 1px solid #e5e5e5;
}

.filter-section .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

.ag-cell {
    height: var(--bs-agheight) !important;
}

.numeric-input {
    height: var(--bs-agheight) !important;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white !important;
}

.btn.show span {
    color: white;
}

/*Region for logout popup*/

.logout-bootbox {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.3s ease forwards;
    font-family: 'Segoe UI', sans-serif;
}

.logout-bootbox .modal-dialog {
    max-width: 400px;
    margin: 0 auto;
}

.logout-bootbox .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    color: #444;
    padding: 15px 10px 0 10px;
}

.logout-bootbox .bootbox-close-button {
    position: absolute;
    top: 20px;
    right: 17px;
    width: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.logout-bootbox .bootbox-close-button:hover {
    color: #333;
    transform: scale(1.2);
}

.logout-bootbox .modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-top: 1px solid #e0e0e0;
    margin-top: 23px;
    padding: 6px;
    column-gap: 10px;
}

/* Buttons */
.logoutBtn-styled {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    padding: 8px 25px;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 90px;
    font-weight: 500;
    color: #333;
}

/*Region end for logout popup*/


.inputheaderDiv {
    padding-left: 7px;
}

.card-header {
    padding: 11px;
}

/*#region Vehicle */

button[onclick*="fnMapping"] {
    border: none;
    background-color: transparent;
}

/*#endregion */

/*#region Datatable */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:before,
table.dataTable thead .sorting_desc_disabled:after {
    bottom: 4px;
}

.demo-datatable .card-body {
    padding: 4px !important;
}

div.dataTables_wrapper div.dataTables_filter input {
    border-radius: 5px;
    height: 34px;
    margin-left: 0;
    width: 183px;
    margin-top: 2px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 37px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 35px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
}

.daterangepicker td.in-range {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}

.form-control {
    height: 37px;
}

.form-control:focus {
    border-color: var(--bs-primary);
}

/*.form-control.select:hover{
     background-color: var(--bs-primary);
}*/

/*#endregion */


/*.btn-primary {
    padding: 3px 8px;
    font-size: 11px;
    margin-top: 10px;
}

.m-auto {
    margin-bottom: 27px !important;
}*/
/*#region Notification */
.notification-item {
    padding: 12px 16px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background-color: #f2f2f2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification-item .d-flex {
    align-items: center;
}

.notification-item .me-3 {
    margin-right: 16px;
}

.notification-icon {
    width: 35px;
    height: 35px;
    align-items: center;
}

.notification-icon i {
    font-size: 18px;
}

.noty-message {
    line-height: 1.4;
    font-size: 12px;
}

.notification-item {
    padding: 10px 8px;
}

.notification-action {
    font-size: 12px;
    padding: 2px 0px;
}

.notification-item .d-flex {
    padding: 1px 8px;
}

/*#endregion */

/*#region Loading*/
.pos-top-right {
    position: absolute;
    top: -8px;
    right: 9px;
    z-index: 15;
    padding: 2px 4px;
}

.pos-top-right i {
    font-size: 12px !important;
}

.form-switch-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.form-switch-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch-toggle label[data-type="switch"] {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bs-primary);
    border-radius: 100px;
    transition: 0.4s;
}

.form-switch-toggle label[data-type="switch"]::before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.form-switch-toggle input:checked+label[data-type="switch"] {
    background-color: #667085;
}

.form-switch-toggle input:checked+label[data-type="switch"]::before {
    transform: translateX(20px);
}

/*.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within, .ag-ltr .ag-cell-range-single-cell, .ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle, .ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected), .ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group, .ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within, .ag-rtl .ag-cell-range-single-cell, .ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle, .ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected), .ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group {
    border-color: #130857 !important;
    border: 1px solid #130857 !important;
}*/


.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-ltr .ag-cell-range-single-cell,
.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,
.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,
.ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-rtl .ag-cell-range-single-cell,
.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle,
.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group {
    border: 1px solid var(--bs-primary) !important;
    box-shadow: 0 0 0 2px rgba(62, 183, 186, 0.3);
}

/*#endregion Loading*/

/*#region Footer*/
.footer {
    background-color: var(--bs-footer-bg);
    color: var(--bs-footer-color);
    text-align: center;
    padding: 0;
    height: 50px;
    /*height: 10px;*/
    box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, .05);
    width: 100%;
    line-height: 4;
    flex-shrink: 0;
    overflow: hidden;
    display: none;
}

/*#endregion Footer*/

.spnUserName {
    /*    color: #54606d;*/
    color: #000;
    /*color: rgba(161, 165, 169, 0.65);*/
    /*font-weight: 600;*/
    letter-spacing: 0.8px;
}

.topnav .navbar-nav .nav-item .nav-link.active {
    color: var(--bs-sidebar-menu-item-active-color);
    font-weight: 600;
}

/*.table > :not(caption) > * > * {
    padding: .65rem .65rem;
}*/

/*.table-responsive{
    max-height: 760px; 
    overflow-y: auto;
}*/

/*.page-content {
    padding-bottom: 60px;*/
/* space above footer */
/*min-height: 100vh;*/
/* ensure full vertical space */
/*}*/


/*#region Dashboard*/
.mini-stat {
    margin-bottom: 10px;
}

/*.dash-content h6 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}*/
/*#endregion*/





/*#toast-container > div {
    padding: 14px 18px 14px 25px;
    border-radius: 6px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 20px;
    border: 1px solid transparent;
    color: #212529;
}

#toast-container > .toast-success,
#toast-container > .toast-info,
#toast-container > .toast-warning,
#toast-container > .toast-error {
    background-image: none !important;
}

.toast-title {
    font-weight: 600;
    color: inherit;
}

.toast-message {
    margin: 0;
    color: inherit;
}

.toast-top-right {
    top: 60px;
    right: 12px;
}

#toast-container > .toast-success {
    background-color: #def8e6;
    border-color: #97e2b9;
}

#toast-container > .toast-success .toast-title {
    color: #1c4c2b; 
    font-weight: bold;
}

#toast-container > .toast-success .toast-message {
    color: #255d3a; 
    font-weight: 600;
}


#toast-container > .toast-info {
    background-color: #cff4fc;
    border-color: #9eeaf9;
}

#toast-container > .toast-info .toast-title {
    color: #055160;
    font-weight: bold;
}

#toast-container > .toast-info .toast-message {
    color: #055160;
    font-weight: 600;
}


#toast-container > .toast-warning {
    background-color: #fdf0d3;
    border-color: #fbe0a8;
}

#toast-container > .toast-warning .toast-title {
    color: #62470f;
    font-weight: bold;
}

#toast-container > .toast-warning .toast-message {
    color: #62470f;
    font-weight: 600;
}


#toast-container > .toast-error {
    background-color: #f7bac4;
    border-color: #f7bac4;
}

#toast-container > .toast-error .toast-title {
    color: #5e212b;
    font-weight: bold;
}

#toast-container > .toast-error .toast-message {
    color: #5e212b;
    font-weight: 600;
}


#toast-container .toast-close-button {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    font-size: 1.1rem;
    color: #000;
    opacity: 0.5;
}

#toast-container .toast-close-button:hover {
    opacity: 0.8;
}
*/

#toast-container>div {
    position: relative;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    background-repeat: no-repeat;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #212529;
}

#toast-container>.toast-success {
    background-color: #c3f3cf !important;
    border-left: 6px solid #28a745;
    background-image: none !important;
    opacity: 1;
}

#toast-container>.toast-error {
    background-color: #f3c2c2 !important;
    border-left: 6px solid #dc3545;
    background-image: none !important;
    opacity: 1;
}

#toast-container>.toast-warning {
    background-color: #ffefb1 !important;
    border-left: 6px solid #ffc107;
    background-image: none !important;
    opacity: 1;
}

#toast-container>.toast-info {
    background-color: #cce5ff !important;
    border-left: 6px solid #007bff;
    background-image: none !important;
    opacity: 1;
}

.toast-success .toast-title {
    content: "SUCCESS";
    font-weight: 700;
    color: #333;
}

.toast-error .toast-title {
    content: "ERROR";
    font-weight: 700;
    color: #333;
}

.toast-warning .toast-title {
    content: "WARNING";
    font-weight: 700;
    color: #333;
}

.toast-info .toast-title {
    content: "INFO";
    font-weight: 700;
    color: #333;
}

#toast-container>div {
    flex-direction: column;
    align-items: flex-start;
}

.toast-title {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin: 0 0 4px 0;
    display: block;
    line-height: 1.3;
    min-height: 1em;
}


.toast-message {
    font-weight: 500;
    color: #555;
    margin: 0;
}

#toast-container .toast-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
    color: #000;
    opacity: 0.4;
}

#toast-container .toast-close-button:hover {
    opacity: 0.8;
}

.toast-top-right {
    top: 60px;
    right: 15px;
}


.btn-pdf {
    color: #a65f24;
}


.btn-teal {
    background-color: #20c997;
    border: none;
}

.btn-teal:hover {
    background-color: #17b79f;
}

.form-check-input {
    cursor: pointer;
    border-radius: 0.35rem;
    transition: all 0.2s ease-in-out;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}


.info-animate {
    animation: subtleGlow 3s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 6px;
    position: relative;
    width: 32px;
    height: 32px;
}

.info-animate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes subtleGlow {

    0%,
    100% {
        box-shadow: 0 0 0px rgba(var(--bs-primary-rgb), 0.2);
    }

    50% {
        box-shadow: 0 0 8px rgba(var(--bs-primary-rgb), 0.4);
    }
}

.bootboxBtn-styled {
    margin: 2px;
    padding: 8px 8px;
    box-shadow: none;
    font-weight: 500;
}

.bootboxBtn-confirm {
    color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}

.bootboxBtn-confirm:hover {
    color: white;
    background-color: var(--bs-primary);
    border: 1px solid #F46A6A;
}

.bootboxBtn-cancel {
    /*color: #F46A6A;*/
    color: #dc3545;
    border: 1px solid #F46A6A;
}

.bootboxBtn-cancel:hover {
    color: white;
    background-color: #F46A6A;
    border: 1px solid #F46A6A;
}

.search-result-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.main-arrow-icon {
    margin-bottom: 0 !important;
    margin-left: 4px;
    font-size: 10px !important;
}

.form-control:disabled {
    background-color: #e9ecef;
}

.bootbox-close-button.close {
    float: right;
    position: relative;
    margin: 0;
}

.form-control.disabled {
    /*background-color: #e9ecef;*/
    background-color: #f6f7f8;
    opacity: 1;
    pointer-events: none;
}

td,
th {
    vertical-align: middle;
}

.ag-cell {
    display: flex !important;
    align-items: center !important;
}

@media (max-width: 768px) {
    .custom-width {
        flex: 0 0 50%;
    }
}

@media (min-width: 426px) and (max-width: 768px) {
    .navbar-header {
        height: 125px;
    }
}

@media (max-width: 425px) {
    .custom-width {
        flex: 0 0 100%;
    }
}


.custom-dropdown {
    position: relative;
    width: 220px;
}

.dropdown-header.filter-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    height: 35px;
    padding: 7px 10px;
}

.filter-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-dropdown.active .dropdown-content {
    display: block;
}

.search-box-container {
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-search-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    font-size: 13px;
}

.options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.options-list li {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.options-list li:hover,
.options-list li.kd-highlight {
    background-color: #e5efff;
    color: #000;
}

.options-list li.selected {
    background-color: #3751a1 !important;
    color: white !important;
}

.logout-bootbox .modal-dialog {
    max-width: 420px;
}

.logout-bootbox .modal-content {
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    position: relative;
    margin: 20px;
}

.logout-close {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    color: #6c757d;
    cursor: pointer;
}

.logout-icon {
    width: 65px;
    height: 65px;
    background: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px auto 15px;
}

.logout-icon i {
    font-size: 20px !important;
    color: #fff;
}

.logout-modal h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2a44;
    margin-bottom: 10px;
}

.logout-modal p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.logout-bootbox .modal-footer {
    border-top: none;
    margin-top: 25px;
    display: flex;
    align-items: center;
}

.btn-logout-cancel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #1f2a44;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-logout-cancel:hover,
.btn-logout-cancel:focus,
.btn-logout-cancel:active,
.btn-logout-cancel:focus-visible {
    background: #e9ecef !important;
    border-color: #ced4da !important;
}

.btn-logout-confirm {
    background: #7a0000;
    color: #fff;
    border-radius: 8px;
    padding: 8px 22px;
    border: none;
    font-weight: 500;
}

.btn-logout-confirm:hover,
.btn-logout-confirm:focus,
.btn-logout-confirm:active,
.btn-logout-confirm:focus-visible {
    background-color: #5a0000 !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.ag-theme-balham,
.ag-theme-alpine {
    --ag-header-height-fix: var(--bs-agheight);
}

.ag-theme-balham .ag-header-row,
.ag-theme-alpine .ag-header-row {
    height: auto !important;
    min-height: var(--bs-agheight) !important;
    max-height: none !important;
    line-height: normal !important;
    display: flex;
    align-items: center;
}

.ag-theme-balham .ag-header-row.ag-header-row-column-group,
.ag-theme-alpine .ag-header-row.ag-header-row-column-group {
    height: var(--bs-agheight) !important;
}

.ag-theme-balham .ag-header-row.ag-header-row-column,
.ag-theme-alpine .ag-header-row.ag-header-row-column {
    height: var(--bs-agheight) !important;
}

.ag-theme-balham .ag-header-cell-label,
.ag-theme-alpine .ag-header-cell-label,
.ag-theme-balham .ag-header-group-cell-label,
.ag-theme-alpine .ag-header-group-cell-label {
    justify-content: center !important;
    align-items: center !important;
}

.ag-theme-balham .ag-header-cell-text,
.ag-theme-alpine .ag-header-cell-text {
    width: 100%;
    text-align: center !important;
}

.ag-header-row-column-group {
    min-height: var(--bs-agheight) !important;
    max-height: unset !important;
    height: var(--bs-agheight) !important;
}

.ag-theme-balham .ag-row,
.ag-theme-alpine .ag-row {
    height: var(--bs-agheight) !important;
    display: flex;
    align-items: center;
}

.ag-theme-balham .ag-cell,
.ag-theme-alpine .ag-cell {
    display: flex !important;
    align-items: center !important;
}

.ag-theme-balham .ag-right-aligned-cell,
.ag-theme-alpine .ag-right-aligned-cell {
    justify-content: flex-end !important;
    text-align: right !important;
}

/* APPLY TO BOTH THEMES */
.ag-theme-balham,
.ag-theme-alpine {
    font-family: var(--ag-font-family-global) !important;
    font-size: var(--ag-font-size-global) !important;
}

.ag-theme-balham .ag-header,
.ag-theme-alpine .ag-header {
    font-family: var(--ag-font-family-global) !important;
    font-size: var(--ag-font-size-global) !important;
    font-weight: 600;
}

.ag-theme-balham .ag-cell,
.ag-theme-alpine .ag-cell {
    font-family: var(--ag-font-family-global) !important;
    font-size: var(--ag-font-size-global) !important;
}

.ag-theme-balham .ag-header-cell-text,
.ag-theme-alpine .ag-header-cell-text {
    font-size: var(--ag-font-size-global) !important;
    font-weight: 600;
}

.ag-theme-balham .ag-header-group-cell,
.ag-theme-alpine .ag-header-group-cell {
    font-size: calc(var(--ag-font-size-global) + 0.05rem) !important;
    font-weight: 700;
}

.ag-theme-balham .ag-header-group-cell,
.ag-theme-alpine .ag-header-group-cell {
    font-family: var(--ag-font-family-global) !important;
    font-size: var(--ag-font-size-global) !important;
}

.ag-theme-balham .ag-header-group-text,
.ag-theme-alpine .ag-header-group-text {
    font-family: var(--ag-font-family-global) !important;
    font-size: var(--ag-font-size-global) !important;
    font-weight: 700;
}

.ag-theme-balham .ag-header-group-cell-label,
.ag-theme-alpine .ag-header-group-cell-label {
    font-family: var(--ag-font-family-global) !important;
}

.ag-theme-balham .ag-row-even,
.ag-theme-alpine .ag-row-even {
    background-color: rgba(0, 0, 0, 0.02);
}

.ag-theme-balham .ag-row-odd,
.ag-theme-alpine .ag-row-odd {
    background-color: transparent;
}

/* Fix for daterangepicker inside or on top of offcanvas */
.daterangepicker {
    z-index: 1100 !important;
}

.filter-panel-offcanvas {
    /*    background: rgba(248, 250, 252, 0.95) !important;*/
    backdrop-filter: blur(10px);
}

.overline-text {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #6366f1;
    display: block;
    margin-bottom: 2px;
}

.precision-block {
    margin-bottom: 32px;
}

.precision-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.precision-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.precision-pill:hover {
    background: #f8fafc;
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.12);
}

.precision-pill.active {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    border-color: #6366f1;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

/* 3-Column Monthly Grid */
.monthly-distribution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.precision-pill.variant-outline.active {
    background: #eff6ff;
    border-color: #6366f1;
    color: #6366f1;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Weekly Precision List */
.weekly-precision-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
    margin-right: -8px;
}

.weekly-precision-card {
    background: white !important;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.weekly-precision-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.weekly-precision-card.active {
    border-color: #6366f1;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.week-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selection-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.weekly-precision-card.active .selection-dot {
    background: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
    transform: scale(1.4);
}

.week-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.week-dates {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.selection-indicator {
    color: #6366f1;
    font-size: 18px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.weekly-precision-card.active .selection-indicator {
    opacity: 1;
    transform: scale(1);
}

/* Dropdown Wrapper & Content Positioning */
.dropdown-year {
    position: relative;
    width: 100%;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    display: none;
    background: white;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    overflow: hidden;
}

/* Dropdown Pill Styling */
.dropdown-precision-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-precision-pill:hover {
    border-color: #6366f1;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
}

/* Footer Buttons */
.btn-apply-precision {
    background: #284370 !important;
    color: #fff !important;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-apply-precision:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.btn-clear-precision {
    background: #f1f5f9 !important;
    color: var(--ls-primary) !important;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-clear-precision:hover {
    background: #e2e8f0 !important;
    transform: translateY(-1px);
}

.btn-icon-precision {
    background: #fff !important;
    color: #64748b;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-export-precision {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-export-precision:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.clear-all-link {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clear-all-link:hover {
    color: #1e293b;
}

.btn-close-precision {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.btn-close-precision:hover {
    background: #e2e8f0;
    color: #1e293b;
}