:root {
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --primary: #1677ff;
    --primary-dark: #095fcf;
    --primary-light: #eaf3ff;
    --success: #18bb6b;
    --success-bg: #b3ffe2;
    --danger: #f04444;
    --warning: #f59e0b;
    --sidebar-bg: #082f5b;
    --sidebar-bg-dark: #06264a;
    --sidebar-hover: rgba(255, 255, 255, .08);
    --sidebar-active: #1677ff;
    --body-bg: #f3f6fa;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --muted-color: #8b95a7;
    --border-color: #e7edf5;
    --radius: 16px;
    --border: #e8edf5;
    --transition: .25s ease;
}

/* ========================= GLOBAL ========================= */
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-dark) 100%);
    font-family: "IranSansXFaNum", sans-serif;
    overflow-x: hidden;
    overflow: hidden;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}

i {
    display: contents;
}

.tnum {
    -moz-font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    font-feature-settings: "ss03";
    letter-spacing: -0.025rem;
}

.ltr-tnum {
    unicode-bidi: isolate-override;
    direction: ltr;
    -moz-font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    font-feature-settings: "ss03";
    letter-spacing: -0.025rem;
}

/* ========================= APP WRAPPER ========================= */
.app-wrapper {
    min-height: 100vh;
}

/* ========================= SIDEBAR ========================= */
.app-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-dark) 100%);
    transition: width var(--transition), transform var(--transition);
}

/* ========================= SIDEBAR HEADER ========================= */
.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 18px;
    flex-shrink: 0;
}

.sidebar-brand {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    overflow: hidden;
}

.sidebar-logo {
    width: 46px;
    min-width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    white-space: nowrap;
}

.sidebar-brand-text strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
}

.sidebar-brand-text span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
}

.sidebar-close-btn {
    display: none;
}

/* ========================= SIDEBAR CONTENT ========================= */
.sidebar-content {
    flex: 1;
    padding: 0 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(255, 255, 255, .15);
}

.sidebar-label {
    padding: 14px 12px 8px;
    color: rgba(255, 255, 255, .38);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-menu,
.submenu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-item {
    margin-bottom: 4px;
}

/* ========================= MAIN MENU LINK ========================= */
.menu-link {
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    padding: 0 13px;
    color: rgba(255, 255, 255, .72);
    border-radius: 12px;
    transition: var(--transition);
    white-space: nowrap;
}

.menu-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
}

.menu-link.active,
.menu-link.menu-open {
    color: #fff;
    background: linear-gradient(90deg, rgba(22, 119, 255, .95), rgba(22, 119, 255, .68));
}

/* ========================= MENU ICON ========================= */
.menu-icon {
    width: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.menu-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-arrow {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.menu-link.menu-open>.menu-arrow {
    transform: rotate(-90deg);
}

/* ========================= SUBMENU ========================= */
.submenu {
    display: none;
    padding: 5px 12px 5px 0;
    margin: 4px 10px 4px 0;
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.submenu.show {
    display: block;
}

.submenu-link {
    min-height: 35px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    color: rgba(255, 255, 255, .58);
    border-radius: 9px;
    font-size: 12px;
    transition: var(--transition);
    white-space: nowrap;
}

.submenu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.submenu-link.active {
    color: #fff;
    background: rgba(22, 119, 255, .35);
}

.submenu-icon {
    width: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ========================= LEVEL 3 ========================= */
.level-3 {
    margin-right: 12px;
    border-right-color: rgba(255, 255, 255, .07);
}

.level-3 .submenu-link {
    min-height: 38px;
    font-size: 11px;
}

/* ========================= SIDEBAR FOOTER ========================= */
.sidebar-footer {
    padding: 14px 12px;
    font-size: .7rem;
    color: #abbac1;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-footer #date,
.sidebar-footer #time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #eeeeee0d;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;

}

.sidebar-footer i {
    line-height: 1;
}

.sidebar-logout {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    color: rgba(255, 255, 255, .65);
    border-radius: 12px;
    white-space: nowrap;
    transition: var(--transition);
}

.sidebar-logout:hover {
    color: #fff;
    background: rgba(220, 53, 69, .16);
}

/* ========================= HEADER ========================= */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: calc(100% - var(--sidebar-width));
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    color: #fff;
    background: linear-gradient(90deg, var(--sidebar-bg-dark), var(--sidebar-bg));
    border-radius: 0;
    box-shadow: 0 6px 25px rgba(5, 35, 70, .08);
    transition: width var(--transition);
}

/* ========================= HEADER SIDES ========================= */
.header-right,
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-toggle-btn,
.header-action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 11px;
    background: rgba(255, 255, 255, .06);
    transition: var(--transition);
}

.header-toggle-btn:hover,
.header-action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.header-toggle-btn i {
    font-size: 22px;
}

/* ========================= PAGE INFO ========================= */
.header-page-info h1 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
}

.header-breadcrumb a {
    color: rgba(255, 255, 255, .5);
}

.header-breadcrumb i {
    font-size: 9px;
}

/* ========================= FISCAL YEAR ========================= */
.fiscal-year-box {
    min-width: 78px;
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, .10);
    text-align: center;
}

.fiscal-year-box span {
    color: rgba(255, 255, 255, .45);
    font-size: 9px;
}

.fiscal-year-box strong {
    margin-top: 2px;
    color: #fff;
    font-size: 11px;
}

/* ========================= NOTIFICATION ========================= */
.notification-dot {
    position: absolute;
    top: 8px;
    left: 9px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--sidebar-bg);
    border-radius: 50%;
    background: #ff5b5b;
}

/* ========================= USER DROPDOWN ========================= */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    color: #fff;
    border: 0;
    background: transparent;
}

.user-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #56a5ff);
    box-shadow: 0 6px 18px rgba(22, 119, 255, .25);
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-info strong {
    max-width: 130px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info span {
    margin-top: 2px;
    color: rgba(255, 255, 255, .45);
    font-size: 9px;
}

.user-chevron {
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
}

.dashboard-dropdown {
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    box-shadow: 0 15px 40px rgba(16, 24, 40, .12);
}

.dashboard-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
}

.dashboard-dropdown .dropdown-item i {
    font-size: 16px;
}

/* ========================= MAIN ========================= */
.app-main {
    min-height: 100vh;
    margin-right: var(--sidebar-width);
    padding-top: var(--header-height);
    transition: margin-right var(--transition);
}

.app-content {
    min-height: calc(100vh - var(--header-height));
    padding: 15px;
    background: aliceblue;
    border-radius: 0 20px 20px 0;
}

/* ========================= FOOTER ========================= */
.app-footer {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    color: var(--muted-color);
    border-top: 1px solid var(--border-color);
    background: #fff;
    font-size: 11px;
}

/* ========================= CUSTOM BOOTSTRAP ========================= */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 5px 25px rgba(16, 24, 40, .035);
}

.card-header {
    padding: 18px 22px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 20px;
}

.form-control,
.form-select {
    min-height: 45px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: .875rem;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(22, 119, 255, .08) !important;
}

.form-control::placeholder {
    color: #b3bbc8;
}

.form-label {
    margin-bottom: 7px;
    color: #566173;
    font-size: 12px;
    font-weight: 700;
}

.btn {
    min-height: 40px;
    padding-right: 16px;
    padding-left: 16px;
    border-radius: 10px;
    font-size: .825rem;
    box-shadow: none;
}

.table {
    margin-bottom: 0;
}

.table> :not(caption)>*>* {
    padding: 6px;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table thead th {
    color: #7d8796;
    background: #f8faff;
    font-size: .875rem;
    font-weight: 700;
}

.table tbody td {
    color: #4b5563;
    font-size: .875rem;
}

.table-hover>tbody>tr:hover>* {
    background: #f9fbfe;
}

/* ========================= CONFIRM ========================= */
#custom-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .4);
    backdrop-filter: blur(3px);
}

.custom-confirm-box {
    width: min(90%, 380px);
    padding: 25px;
    text-align: center;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}

.custom-confirm-box p {
    margin-bottom: 20px;
    font-size: 13px;
}

/* ========================= COLLAPSED SIDEBAR ========================= */
body.sidebar-collapsed {
    --sidebar-width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .sidebar-label,
body.sidebar-collapsed .menu-text,
body.sidebar-collapsed .menu-arrow,
body.sidebar-collapsed .sidebar-logout .menu-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

body.sidebar-collapsed .menu-link,
body.sidebar-collapsed .sidebar-logout {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
}

body.sidebar-collapsed .submenu {
    display: none !important;
}

/* ========================= TOOLTIP-LIKE HOVER ========================= */
@media (min-width: 992px) {
    body.sidebar-collapsed .menu-item {
        position: relative;
    }

    body.sidebar-collapsed .menu-link:hover::after {
        content: attr(data-title);
        position: absolute;
        right: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%);
        z-index: 2000;
        padding: 8px 12px;
        color: #fff;
        border-radius: 8px;
        background: #102f54;
        font-size: 11px;
        white-space: nowrap;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    }
}

/* ========================= MOBILE ========================= */
.sidebar-overlay {
    display: none;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(100%);
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        position: fixed;
        inset: 0;
        z-index: 1045;
        display: block;
        background: rgba(0, 0, 0, .42);
    }

    .app-header {
        width: 100%;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .app-main {
        margin-right: 0;
    }

    .sidebar-close-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: auto;
        color: #fff;
        border: 0;
        border-radius: 9px;
        background: rgba(255, 255, 255, .08);
    }

    body.sidebar-collapsed {
        --sidebar-width: 270px;
    }
}

@media (max-width: 767.98px) {
    .app-header {
        padding: 0 15px;
    }

    .app-content {
        padding: 15px;
        border-radius: 0;
    }

    .header-page-info h1 {
        font-size: 14px;
    }

    .header-breadcrumb {
        display: none;
    }

    .fiscal-year-box {
        display: none;
    }

    .user-info,
    .user-chevron {
        display: none;
    }

    .header-left {
        gap: 8px;
    }

    .header-action-btn,
    .header-toggle-btn {
        width: 39px;
        height: 39px;
    }
}

/* ======================================== GLOBAL TABLE STYLE ======================================== */
table {
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    width: 100%;
}

/* هر سطر مثل یک باکس */
table tbody tr {
    overflow: hidden;
    border-radius: 10px;
}

/* یکی در میان */
table tbody tr:nth-child(odd) td {
    background-color: #f6f6f6;
}

table tbody tr:nth-child(even) td {
    background-color: #fbfbfb;
}

/* فاصله و ظاهر سلول‌ها */
table tbody td {
    border: none !important;
    padding: 12px 12px;
}

/* گوشه‌های سطر */
table tbody tr td:last-child {
    border-radius: 10px 0 0 10px;
}

table tbody tr td:first-child {
    border-radius: 0 10px 10px 0;
}

/* هدر جدول */
table thead th {
    border: none !important;
    background: transparent;
    padding: 10px 12px;
}

/* بوردر دور هر سطر */
table tbody tr td {
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
    height: 55px;
    padding: 10px;
    vertical-align: middle;
}



table tbody tr td:first-child {
    border-right: 1px solid #eee !important;
}

table tbody tr td:last-child {
    border-left: 1px solid #eee !important;
}

.full-height-card:empty {
    display: none;
}

.full-height-card {
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.full-height-card .card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.full-height-card .tab-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.full-height-card .tab-pane {
    flex: 1;
    min-height: 0;
}

.full-height-card .tab-pane.active {
    display: flex;
    flex-direction: column;
}

.table-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 8px;
}

.table-scroll table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-scroll::-webkit-scrollbar {
    width: 10px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #bbb, #888);
    border-radius: 4px;
    transition: 0.2s;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #999, #666);
}

/* =========================
           Tabs
        ========================= */

.custom-tabs {
    display: flex;
    gap: 25px;

    border-bottom: 1px solid var(--border);
}

.custom-tabs .nav-link {
    position: relative;

    padding: 15px 5px;

    color: var(--muted);
    border: 0;
    border-radius: 0;

    font-size: 13px;
    font-weight: 500;
}

.custom-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
}

.custom-tabs .nav-link.active::after {
    content: "";

    height: 3px;

    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;

    border-radius: 5px 5px 0 0;

    background: var(--primary);
}

.filter-box {
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #fbfcfe;
}

/* =========================
    Buttons
========================= */

.btn {
    border-radius: 11px;
    font-family: inherit;
    font-weight: 500;

    transition: var(--transition);
}

.btn-soft-primary {
    color: var(--primary);
    border: 1px solid #d8e9ff;
    background: var(--primary-light);
}

.btn-soft-primary:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.btn-soft-danger {
    color: #bb0000;
    border: 1px solid #d8e9ff;
    background: #fff6f6;
}

.btn-soft-danger:hover {
    color: #fff;
    border-color: #bb0000;
    background: #bb0000;
}

.btn-soft {
    color: var(--primary);
    border: 1px solid #d8e9ff;
    background: #fff;
}

.btn-soft:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.btn-icon {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}

/* Components */

.alert {
    box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%);
}


.offcanvas-end {
    width: 300px;
}

/* Background Colors */

.bg-primary {
    background-color: #2439f9 !important;
}

.bg-danger {
    background-color: #f73757 !important;
}

.bg-success {
    background-color: #18bb6b !important;
}

.bg-info {
    background-color: #32bfff !important;
}

.bg-warning {
    background-color: #ffab4d !important;
}

.bg-purple {
    background-color: #8932ff !important;
}

.bg-orange {
    background-color: #ff6632 !important;
}

.bg-bronze {
    background-color: #cc7429 !important;
}

.bg-pink {
    background-color: #e72e7a !important;
}

.bg-tiffany {
    background-color: #3361ff !important;
}

.bg-login {

    background-color: #0259e6 !important;

}

.bg-surface {
    background-color: #f7f8fa !important;
}

.bg-white-1 {
    background-color: rgba(255, 255, 255, 0.16) !important;
}


.bg-light-primary {
    background-color: rgb(146 62 185 / 12%) !important
}

.bg-light-success {
    background-color: rgb(24 187 107 / 12%) !important
}

.bg-light-danger {
    background-color: rgb(247 55 87 / 12%) !important
}

.bg-light-info {
    background-color: rgba(50, 190, 255, 0.12) !important;
}

.bg-light-warning {
    background-color: rgba(255, 204, 50, 0.12) !important;
}

.bg-light-purple {
    background-color: rgba(135, 50, 255, 0.12) !important;
}

.bg-light-orange {
    background-color: rgba(255, 101, 50, 0.12) !important;
}

.bg-light-bronze {
    background-color: rgba(204, 117, 41, 0.12) !important;
}

.bg-light-pink {
    background-color: rgba(231, 46, 123, 0.12) !important;
}

.bg-light-tiffany {
    background-color: rgba(51, 99, 255, 0.12) !important;
}

.bg-light-dark {
    background-color: rgba(33, 37, 41, 0.12) !important;
}


.bg-facebook {
    background-color: #3b5998 !important
}

.bg-twitter {
    background-color: #55acee !important
}

.bg-google {
    background-color: #e52d27 !important
}

.bg-linkedin {
    background-color: #0976b4 !important
}


.bg-gradient-purple {
    background-image: linear-gradient(-310deg, #7928ca, #ff0080);
}


.bg-gradient-success {
    background-image: linear-gradient(-310deg, #17ad37, #98ec2d);
}


.bg-gradient-danger {
    background: linear-gradient(to left, rgb(238, 9, 121), rgb(255, 106, 0));
}


.bg-gradient-info {
    background-image: linear-gradient(to top, rgb(0, 198, 251) 0%, rgb(0, 91, 234) 100%);
}

.bg-gradient-warning {
    background: linear-gradient(to left, rgb(247, 151, 30), rgb(255, 210, 0));
}


.bg-gradient-voilet {
    background: linear-gradient(to left, rgb(52, 148, 230), rgb(236, 110, 173));
}


.bg-gradient-royal {
    background-image: linear-gradient(20deg, rgb(43, 88, 118) 0%, rgb(78, 67, 118) 100%);
}

.bg-gradient-branding {
    background-image: linear-gradient(rgb(42, 245, 152) 0%, rgb(0, 158, 253) 100%);
}

/* Text Colors */

.text-primary {
    color: #2439f9 !important;
}

.text-danger {
    color: #f73757 !important;
}

.text-success {
    color: #18bb6b !important;
}

.text-info {
    color: #32bfff !important;
}

.text-warning {
    color: #ffab4d !important;
}

.text-purple {
    color: #8932ff !important;
}

.text-orange {
    color: #ff6632 !important;
}

.text-bronze {
    color: #cc7429 !important;
}

.text-pink {
    color: #e72e7a !important;
}

.text-tiffany {
    color: #3361ff !important;
}


.text-option {
    color: #32393f !important
}

.text-facebook {
    color: #3b5998 !important
}

.text-twitter {
    color: #55acee !important
}

.text-youtube {
    color: #e52d27 !important
}

.text-sky-light {
    color: #b4d2ff;
}


/* Borders */

.border-primary {
    border-color: #2439f9 !important;
}

.border-danger {
    border-color: #f73757 !important;
}

.border-success {
    border-color: #18bb6b !important;
}

.border-info {
    border-color: #32bfff !important;
}

.border-warning {
    border-color: #ffab4d !important;
}

.border-purple {
    border-color: #8932ff !important;
}

.border-orange {
    border-color: #ff6632 !important;
}

.border-bronze {
    border-color: #cc7429 !important;
}

.border-pink {
    border-color: #e72e7a !important;
}

.border-tiffany {
    border-color: #3361ff !important;
}

.border-light-1 {
    border-color: rgb(255 255 255 / 24%) !important;
}

.btn i {
    vertical-align: middle;
    font-size: 1.rem;
    margin-top: -1em;
    margin-bottom: -1em;
    margin-right: 5px;
}

.btn-white {
    background-color: #fff;
    border-color: #e7eaf3;
}


.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2439f9;
    --bs-btn-border-color: #2439f9;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2032d3;
    --bs-btn-hover-border-color: #2032d3;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2032d3;
    --bs-btn-active-border-color: #2032d3;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #2439f9;
    --bs-btn-disabled-border-color: #2439f9
}

.btn-outline-primary {
    --bs-btn-color: #2439f9;
    --bs-btn-border-color: #2439f9;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2439f9;
    --bs-btn-hover-border-color: #2439f9;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2439f9;
    --bs-btn-active-border-color: #2439f9;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #2439f9;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #2439f9;
    --bs-gradient: none
}


.btn-success,
.btn-primary,
.btn-danger,
.btn-warning {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .08) !important;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5c636a;
    border-color: #565e64
}

.btn-return {
    color: #222;
    background-color: #fff;
    border-color: #a9a9a9;
    /* border-radius: 10px !important; */
}

.btn-return:hover {
    background-color: #f2f2f2;
    border-color: #696969;
}

.btn-check:focus+.btn-secondary,
.btn-secondary:focus {
    color: #fff;
    background-color: #5c636a;
    border-color: #565e64;
    box-shadow: 0 0 0 .25rem rgba(130, 138, 145, .5)
}

.btn-check:active+.btn-secondary,
.btn-check:checked+.btn-secondary,
.btn-secondary.active,
.btn-secondary:active,
.show>.btn-secondary.dropdown-toggle {
    color: #fff;
    background-color: #565e64;
    border-color: #51585e
}

.btn-check:active+.btn-secondary:focus,
.btn-check:checked+.btn-secondary:focus,
.btn-secondary.active:focus,
.btn-secondary:active:focus,
.show>.btn-secondary.dropdown-toggle:focus {
    box-shadow: 0 0 0 .25rem rgba(130, 138, 145, .5)
}

.btn-secondary.disabled,
.btn-secondary:disabled {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d
}

.btn-success {
    color: #fff;
    background-color: #18bb6b;
    border-color: #18bb6b
}

.btn-success:hover {
    color: #fff;
    background-color: #14aa62;
    border-color: #14aa62
}

.btn-check:focus+.btn-success,
.btn-success:focus {
    color: #fff;
    background-color: #14aa62;
    border-color: #14aa62;
    box-shadow: 0 0 0 .25rem rgba(20, 170, 98, 0.5)
}

.btn-check:active+.btn-success,
.btn-check:checked+.btn-success,
.btn-success.active,
.btn-success:active,
.show>.btn-success.dropdown-toggle {
    color: #fff;
    background-color: #14aa62;
    border-color: #14aa62
}

.btn-check:active+.btn-success:focus,
.btn-check:checked+.btn-success:focus,
.btn-success.active:focus,
.btn-success:active:focus,
.show>.btn-success.dropdown-toggle:focus {
    box-shadow: 0 0 0 .25rem rgba(42, 158, 92, 0.5)
}

.btn-success.disabled,
.btn-success:disabled {
    color: #fff;
    background-color: #18bb6b;
    border-color: #18bb6b
}

.btn-info {
    color: #000;
    background-color: #32bfff;
    border-color: #32bfff
}

.btn-info:hover {
    color: #000;
    background-color: #2bc5e4;
    border-color: #2bc5e4
}

.btn-check:focus+.btn-info,
.btn-info:focus {
    color: #000;
    background-color: #2bc5e4;
    border-color: #2bc5e4;
    box-shadow: 0 0 0 .25rem rgba(43, 197, 228, 0.5)
}

.btn-check:active+.btn-info,
.btn-check:checked+.btn-info,
.btn-info.active,
.btn-info:active,
.show>.btn-info.dropdown-toggle {
    color: #000;
    background-color: #2bc5e4;
    border-color: #2bc5e4
}

.btn-check:active+.btn-info:focus,
.btn-check:checked+.btn-info:focus,
.btn-info.active:focus,
.btn-info:active:focus,
.show>.btn-info.dropdown-toggle:focus {
    box-shadow: 0 0 0 .25rem rgba(43, 197, 228, 0.5)
}

.btn-info.disabled,
.btn-info:disabled {
    color: #000;
    background-color: #32bfff;
    border-color: #32bfff
}

.btn-warning {
    color: #000;
    background-color: #ffab4d;
    border-color: #ffab4d
}

.btn-warning:hover {
    color: #000;
    background-color: #f7a548;
    border-color: #f7a548
}

.btn-check:focus+.btn-warning,
.btn-warning:focus {
    color: #000;
    background-color: #f7a548;
    border-color: #f7a548;
    box-shadow: 0 0 0 .25rem rgba(247, 165, 72, 0.5)
}

.btn-check:active+.btn-warning,
.btn-check:checked+.btn-warning,
.btn-warning.active,
.btn-warning:active,
.show>.btn-warning.dropdown-toggle {
    color: #000;
    background-color: #f7a548;
    border-color: #f7a548
}

.btn-check:active+.btn-warning:focus,
.btn-check:checked+.btn-warning:focus,
.btn-warning.active:focus,
.btn-warning:active:focus,
.show>.btn-warning.dropdown-toggle:focus {
    box-shadow: 0 0 0 .25rem rgba(247, 165, 72, 0.5)
}

.btn-warning.disabled,
.btn-warning:disabled {
    color: #000;
    background-color: #ffab4d;
    border-color: #ffab4d
}

.btn-danger {
    color: #fff;
    background-color: #f73757;
    border-color: #f73757
}

.btn-danger:hover {
    color: #fff;
    background-color: #e93452;
    border-color: #e93452
}

.btn-check:focus+.btn-danger,
.btn-danger:focus {
    color: #fff;
    background-color: #e93452;
    border-color: #e93452;
    box-shadow: 0 0 0 .25rem rgba(233, 52, 82, 0.5)
}

.btn-check:active+.btn-danger,
.btn-check:checked+.btn-danger,
.btn-danger.active,
.btn-danger:active,
.show>.btn-danger.dropdown-toggle {
    color: #fff;
    background-color: #e93452;
    border-color: #e93452
}

.btn-check:active+.btn-danger:focus,
.btn-check:checked+.btn-danger:focus,
.btn-danger.active:focus,
.btn-danger:active:focus,
.show>.btn-danger.dropdown-toggle:focus {
    box-shadow: 0 0 0 .25rem rgba(233, 52, 82, 0.5)
}

.btn-danger.disabled,
.btn-danger:disabled {
    color: #fff;
    background-color: #f73757;
    border-color: #f73757
}

.btn-light {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa
}

.btn-light:hover {
    color: #000;
    background-color: #f9fafb;
    border-color: #f9fafb
}

.btn-check:focus+.btn-light,
.btn-light:focus {
    color: #000;
    background-color: #f9fafb;
    border-color: #f9fafb;
    box-shadow: 0 0 0 .25rem rgba(211, 212, 213, .5)
}

.btn-check:active+.btn-light,
.btn-check:checked+.btn-light,
.btn-light.active,
.btn-light:active,
.show>.btn-light.dropdown-toggle {
    color: #000;
    background-color: #f9fafb;
    border-color: #f9fafb
}

.btn-check:active+.btn-light:focus,
.btn-check:checked+.btn-light:focus,
.btn-light.active:focus,
.btn-light:active:focus,
.show>.btn-light.dropdown-toggle:focus {
    box-shadow: 0 0 0 .25rem rgba(211, 212, 213, .5)
}

.btn-light.disabled,
.btn-light:disabled {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa
}

.btn-dark {
    color: #fff;
    background-color: #212529;
    border-color: #212529
}

.btn-dark:hover {
    color: #fff;
    background-color: #1c1f23;
    border-color: #1a1e21
}

.btn-check:focus+.btn-dark,
.btn-dark:focus {
    color: #fff;
    background-color: #1c1f23;
    border-color: #1a1e21;
    box-shadow: 0 0 0 .25rem rgba(66, 70, 73, .5)
}

.btn-check:active+.btn-dark,
.btn-check:checked+.btn-dark,
.btn-dark.active,
.btn-dark:active,
.show>.btn-dark.dropdown-toggle {
    color: #fff;
    background-color: #1a1e21;
    border-color: #191c1f
}

.btn-check:active+.btn-dark:focus,
.btn-check:checked+.btn-dark:focus,
.btn-dark.active:focus,
.btn-dark:active:focus,
.show>.btn-dark.dropdown-toggle:focus {
    box-shadow: 0 0 0 .25rem rgba(66, 70, 73, .5)
}

.btn-dark.disabled,
.btn-dark:disabled {
    color: #fff;
    background-color: #212529;
    border-color: #212529
}

.btn-outline-primary {
    color: #2439f9;
    border-color: #2439f9
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #2439f9;
    border-color: #2439f9
}

.btn-check:focus+.btn-outline-primary,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 .25rem rgb(84, 55, 145, 0.5)
}

.btn-check:active+.btn-outline-primary,
.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
    color: #fff;
    background-color: #2439f9;
    border-color: #2439f9
}

.btn-check:active+.btn-outline-primary:focus,
.btn-check:checked+.btn-outline-primary:focus,
.btn-outline-primary.active:focus,
.btn-outline-primary.dropdown-toggle.show:focus,
.btn-outline-primary:active:focus {
    box-shadow: 0 0 0 .25rem rgba(84, 55, 145, 0.5)
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
    color: #2439f9;
    background-color: transparent
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d
}

.btn-check:focus+.btn-outline-secondary,
.btn-outline-secondary:focus {
    box-shadow: 0 0 0 .25rem rgba(108, 117, 125, .5)
}

.btn-check:active+.btn-outline-secondary,
.btn-check:checked+.btn-outline-secondary,
.btn-outline-secondary.active,
.btn-outline-secondary.dropdown-toggle.show,
.btn-outline-secondary:active {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d
}

.btn-check:active+.btn-outline-secondary:focus,
.btn-check:checked+.btn-outline-secondary:focus,
.btn-outline-secondary.active:focus,
.btn-outline-secondary.dropdown-toggle.show:focus,
.btn-outline-secondary:active:focus {
    box-shadow: 0 0 0 .25rem rgba(108, 117, 125, .5)
}

.btn-outline-secondary.disabled,
.btn-outline-secondary:disabled {
    color: #6c757d;
    background-color: transparent
}

.btn-outline-success {
    color: #18bb6b;
    border-color: #18bb6b
}

.btn-outline-success:hover {
    color: #fff;
    background-color: #18bb6b;
    border-color: #18bb6b
}

.btn-check:focus+.btn-outline-success,
.btn-outline-success:focus {
    box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .5)
}

.btn-check:active+.btn-outline-success,
.btn-check:checked+.btn-outline-success,
.btn-outline-success.active,
.btn-outline-success.dropdown-toggle.show,
.btn-outline-success:active {
    color: #fff;
    background-color: #18bb6b;
    border-color: #18bb6b
}

.btn-check:active+.btn-outline-success:focus,
.btn-check:checked+.btn-outline-success:focus,
.btn-outline-success.active:focus,
.btn-outline-success.dropdown-toggle.show:focus,
.btn-outline-success:active:focus {
    box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .5)
}

.btn-outline-success.disabled,
.btn-outline-success:disabled {
    color: #18bb6b;
    background-color: transparent
}

.btn-outline-info {
    color: #32bfff;
    border-color: #32bfff
}

.btn-outline-info:hover {
    color: #000;
    background-color: #32bfff;
    border-color: #32bfff
}

.btn-check:focus+.btn-outline-info,
.btn-outline-info:focus {
    box-shadow: 0 0 0 .25rem rgba(13, 202, 240, .5)
}

.btn-check:active+.btn-outline-info,
.btn-check:checked+.btn-outline-info,
.btn-outline-info.active,
.btn-outline-info.dropdown-toggle.show,
.btn-outline-info:active {
    color: #000;
    background-color: #32bfff;
    border-color: #32bfff
}

.btn-check:active+.btn-outline-info:focus,
.btn-check:checked+.btn-outline-info:focus,
.btn-outline-info.active:focus,
.btn-outline-info.dropdown-toggle.show:focus,
.btn-outline-info:active:focus {
    box-shadow: 0 0 0 .25rem rgba(13, 202, 240, .5)
}

.btn-outline-info.disabled,
.btn-outline-info:disabled {
    color: #32bfff;
    background-color: transparent
}

.btn-outline-warning {
    color: #ffab4d;
    border-color: #ffab4d
}

.btn-outline-warning:hover {
    color: #000;
    background-color: #ffab4d;
    border-color: #ffab4d
}

.btn-check:focus+.btn-outline-warning,
.btn-outline-warning:focus {
    box-shadow: 0 0 0 .25rem rgba(255, 193, 7, .5)
}

.btn-check:active+.btn-outline-warning,
.btn-check:checked+.btn-outline-warning,
.btn-outline-warning.active,
.btn-outline-warning.dropdown-toggle.show,
.btn-outline-warning:active {
    color: #000;
    background-color: #ffab4d;
    border-color: #ffab4d
}

.btn-check:active+.btn-outline-warning:focus,
.btn-check:checked+.btn-outline-warning:focus,
.btn-outline-warning.active:focus,
.btn-outline-warning.dropdown-toggle.show:focus,
.btn-outline-warning:active:focus {
    box-shadow: 0 0 0 .25rem rgba(255, 193, 7, .5)
}

.btn-outline-warning.disabled,
.btn-outline-warning:disabled {
    color: #ffab4d;
    background-color: transparent
}

.btn-outline-danger {
    color: #f73757;
    border-color: #f73757
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #f73757;
    border-color: #f73757
}

.btn-check:focus+.btn-outline-danger,
.btn-outline-danger:focus {
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .5)
}

.btn-check:active+.btn-outline-danger,
.btn-check:checked+.btn-outline-danger,
.btn-outline-danger.active,
.btn-outline-danger.dropdown-toggle.show,
.btn-outline-danger:active {
    color: #fff;
    background-color: #f73757;
    border-color: #f73757
}

.btn-check:active+.btn-outline-danger:focus,
.btn-check:checked+.btn-outline-danger:focus,
.btn-outline-danger.active:focus,
.btn-outline-danger.dropdown-toggle.show:focus,
.btn-outline-danger:active:focus {
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .5)
}

.btn-outline-danger.disabled,
.btn-outline-danger:disabled {
    color: #f73757;
    background-color: transparent
}

.btn-outline-light {
    color: #f8f9fa;
    border-color: #f8f9fa
}

.btn-outline-light:hover {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa
}

.btn-check:focus+.btn-outline-light,
.btn-outline-light:focus {
    box-shadow: 0 0 0 .25rem rgba(248, 249, 250, .5)
}

.btn-check:active+.btn-outline-light,
.btn-check:checked+.btn-outline-light,
.btn-outline-light.active,
.btn-outline-light.dropdown-toggle.show,
.btn-outline-light:active {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa
}

.btn-check:active+.btn-outline-light:focus,
.btn-check:checked+.btn-outline-light:focus,
.btn-outline-light.active:focus,
.btn-outline-light.dropdown-toggle.show:focus,
.btn-outline-light:active:focus {
    box-shadow: 0 0 0 .25rem rgba(248, 249, 250, .5)
}

.btn-outline-light.disabled,
.btn-outline-light:disabled {
    color: #f8f9fa;
    background-color: transparent
}

.btn-outline-dark {
    color: #212529;
    border-color: #212529
}

.btn-outline-dark:hover {
    color: #fff;
    background-color: #212529;
    border-color: #212529
}

.btn-check:focus+.btn-outline-dark,
.btn-outline-dark:focus {
    box-shadow: 0 0 0 .25rem rgba(33, 37, 41, .5)
}

.btn-check:active+.btn-outline-dark,
.btn-check:checked+.btn-outline-dark,
.btn-outline-dark.active,
.btn-outline-dark.dropdown-toggle.show,
.btn-outline-dark:active {
    color: #fff;
    background-color: #212529;
    border-color: #212529
}

.btn-check:active+.btn-outline-dark:focus,
.btn-check:checked+.btn-outline-dark:focus,
.btn-outline-dark.active:focus,
.btn-outline-dark.dropdown-toggle.show:focus,
.btn-outline-dark:active:focus {
    box-shadow: 0 0 0 .25rem rgba(33, 37, 41, .5)
}

.btn-outline-dark.disabled,
.btn-outline-dark:disabled {
    color: #212529;
    background-color: transparent
}

.btn-link {
    font-weight: 400;
    color: #2439f9;
    text-decoration: underline
}

.btn-link:hover {
    color: #0a58ca
}

/* Tables */

.color-table .table {
    color: #ffffff;
    border-color: rgb(255 255 255 / 22%);
}

.info-table .table,
.warning-table .table {
    color: #16191d;
    border-color: rgb(0 0 0 / 12%);
}

/*Forms */

.form-control:focus {
    background-color: #fff;
    border-color: #c27be4;
}


.page-link:hover,
.page-link {
    color: #2439f9;
}

.page-link:focus {
    color: #2439f9;
    border-color: #c27be4;
    box-shadow: 0 0 0 .25rem rgba(146, 62, 185, 0.3)
}

.active>.page-link,
.page-link.active,
.page-link.active:hover {
    color: #fff;
    background-color: #2439f9;
    border-color: #2439f9;
}


.form-check-input:focus {
    border-color: #b962e1;
    outline: 0;
    background-color: rgba(146, 62, 185, 0.25);
    box-shadow: 0 0 0 .25rem rgba(146, 62, 185, 0.25);
}

.form-check-input:checked {
    background-color: #2439f9;
    border-color: #2439f9;
}

.form-check-input[type=checkbox]:indeterminate {
    background-color: #2439f9;
    border-color: #2439f9;
}

/* =========================
    Cards
========================= */

.custom-card {
    overflow: hidden;

    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: 0 5px 25px rgba(16, 24, 40, .035);
}

.custom-card-header {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    border-bottom: 1px solid var(--border);
}

.custom-card-title {
    margin: 0;

    font-size: 15px;
    font-weight: 700;
}

.custom-card-subtitle {
    margin-top: 4px;

    color: var(--muted);
    font-size: 11px;
}

.custom-card-body {
    padding: 22px;
}

/* =========================
           Badges
        ========================= */
.financial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 700;
    color: #32443f;
    background: #f2f2f2;
}

.financial-badge.success {
    color: #42683e;
    background: #68ffb8 !important;
}

.financial-badge.danger {
    color: #ffffff !important;
    background: #f75f5f !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 10px;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 700;
}



.status-badge.success {
    color: #099268;
    background: var(--success-bg);
}

.status-badge.success::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--success);
}

.status-badge.warning {
    color: #b77905;
    background: #fff7e6;
}

.status-badge.warning::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--warning);
}

.status-badge.danger {
    color: #d92d20;
    background: #fff0ef;
}

.status-badge.danger::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--danger);
}

/* =========================
           Pagination
        ========================= */

.pagination {
    gap: 5px;
}

.page-link {
    min-width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #667085;

    border: 1px solid var(--border);
    border-radius: 9px !important;

    font-size: 12px;
}

.page-link:hover {
    color: var(--primary);
    border-color: #cfe3ff;
    background: var(--primary-light);
}

.page-item.active .page-link {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.btn-modern {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    color: #495057;
    font-weight: 500;
    border-radius: 10px;
    padding: 5px 10px;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-modern i {
    display: flex;
    font-size: .775rem !important;
    align-items: center;
}

.modern-sm {
    font-size: 10px;
}

.modern-md {
    font-size: 12px;
}

.modern-sm i {
    font-size: .775rem !important;
}

.modern-md i {
    font-size: 1rem !important;
}

.btn-modern:hover {
    transform: translateY(-0.1px);
    box-shadow:
        0 1px 1px rgba(0, 0, 0, .03),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    color: #212529;
}

.btn-modern:active {
    transform: translateY(0);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, .05),
        inset 0 2px 4px rgba(0, 0, 0, .06);
}

.extra-dropdown {
    position: relative;
    z-index: 1;
}

.extra-dropdown:has(.extra-dropdown-menu.show) {
    z-index: 999999 !important;
}

.extra-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0% !important;
    right: auto !important;
    transform: translateY(0%) !important;
    margin: 0 !important;

    min-width: 185px;
    padding: 5px;

    border: 1px solid #e9ecef;
    border-radius: 10px;

    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);

    z-index: 999999 !important;
}

.extra-dropdown-menu .dropdown-item {
    padding: 10px 20px;
}

.extra-dropdown-menu .dropdown-item:not(:last-child) {
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 2px;
}

.search-box {
    width: 20%;
}

@media (max-width: 767.98px) {
    .search-box {
        width: 33%;
    }
}

.custom-radio {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    min-height: 45px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    box-sizing: border-box;
    font-size: 0.775rem;
    overflow: hidden;
}

.custom-radio .radio {
    flex: 1 1 auto;
    text-align: center;
}

.custom-radio .radio:not(:last-child) {
    border-left: 1px solid #dee2e6;
}

.custom-radio .radio input {
    display: none;
}

.custom-radio .radio .name {
    display: flex;
    min-height: 45px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: #fdfdfd;
    padding: 0.45rem 0;
    color: rgba(51, 65, 85, 1);
    transition: all .15s ease-in-out;
    border: none;
    box-sizing: border-box;
}

/* اولین گزینه */
.custom-radio .radio:first-child .name {
    border-radius: 0 10px 10px 0;
}

/* آخرین گزینه */
.custom-radio .radio:last-child .name {
    border-radius: 10px 0 0 10px;
}

.custom-radio .radio input:checked+.name {
    background-color: #18bb6b;
    font-weight: 700;
    color: #fff;
}

.custom-radio .radio input[value="present"]:checked+.name {
    background-color: #28a745;
    font-weight: 700;
    color: #fff;
}

.custom-radio .radio input[value="absent"]:checked+.name {
    background-color: #c92e4f;
    color: #fff;
    font-weight: 700;
}

.custom-radio .radio input[value="leave"]:checked+.name {
    background-color: #dce738;
    font-weight: 700;
}

.custom-radio .radio input:checked+.blue {
    background-color: #4373f8;
}

.custom-radio .radio input:checked+.purple {
    background-color: #8657bd;
}

ul.custom-checkbox {
    display: flow;
    list-style: none;
    padding: 0;
}

ul.custom-checkbox li {
    display: inline;
}

ul.custom-checkbox li label {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #555;
    border-radius: 0.375rem;
    white-space: nowrap;
    margin: 3px 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all .2s;
}

ul.custom-checkbox li label {
    font-size: .775rem;
    padding: 5px 10px;
    cursor: pointer;
}

ul.custom-checkbox li input[type="checkbox"]:checked+label {
    border: 1px solid #18bb6b;
    background-color: #18bb6b;
    color: #fff;
    transition: all .2s;
}

ul.custom-checkbox li input[type="checkbox"] {
    display: absolute;
}

ul.custom-checkbox li input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.datepicker-plot-area {
    font-family: "IRANSansXFaNum" !important;
}


.modal {
    --bs-modal-border-width: 0
}

.modal-backdrop {
    background: #080c17
}

.modal-backdrop.show {
    opacity: .72;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px)
}

.modal-dialog {
    transition: transform .25s ease-out
}

.modal-content {
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .18), 0 8px 25px rgba(0, 0, 0, .08);
    overflow: hidden
}

.modal-header {
    min-height: 65px;
    padding: 15px 20px;
    border-bottom: 0px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px
}

.modal-title {
    font-size: .9rem;
    font-weight: 700;
    color: #20242d;
    margin: 0
}

.modal-header .btn-close {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background-color: #f4f5f7;
    background-size: 11px;
    opacity: 1;
    transition: background-color .2s ease, transform .2s ease
}

.modal-header .btn-close:hover {
    background-color: #e9ebef;
    transform: rotate(90deg)
}

.modal-header .btn-close:focus {
    box-shadow: none
}

.modal-body {
    padding: 24px;
    color: #454b57
}

.modal-footer {
    padding: 10px 20px;
    border-top: 1px solid #eee;
    gap: 9px
}

.modal .btn {
    min-height: 40px;
    border-radius: 11px;
    font-size: .82rem;
    font-weight: 700;
    padding: 8px 16px;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease
}

.modal .btn:hover {
    transform: translateY(-1px)
}

.modal .btn:active {
    transform: translateY(0)
}

.modal .form-label {
    color: #343943;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 7px
}

.modal .form-control,
.modal .form-select {
    min-height: 43px;
    border: 1px solid #e1e4e8;
    border-radius: 11px;
    background-color: #fafbfc;
    color: #252a33;
    font-size: .875rem;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease
}

.modal .form-control:focus,
.modal .form-select:focus {
    background-color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1)
}

.modal .form-control::placeholder {
    color: #a2a8b3
}

.modal textarea.form-control {
    min-height: 90px;
    resize: vertical
}

.modal .form-check-input {
    border-color: #cfd4db
}

.modal .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb
}

.modal .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1)
}

.modal .alert {
    border: none;
    border-radius: 11px;
    font-size: .8rem;
    padding: 10px 13px
}

.modal-dialog-scrollable .modal-body {
    scrollbar-width: thin;
    scrollbar-color: #d5d9df transparent
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
    width: 5px
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
    background: transparent
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
    background: #d5d9df;
    border-radius: 10px
}

@keyframes modernModalShow {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.modal.show .modal-content {
    animation: modernModalShow .22s ease-out
}

@media(max-width:575px) {
    .modal-dialog {
        margin: 12px
    }

    .modal-content {
        border-radius: 17px
    }

    .modal-header {
        padding: 10px 15px
    }

    .modal-body {
        padding: 18px
    }

    .modal-footer {
        padding: 10px 15px
    }
}

.selected-row td {
    background-color: #eff6ff !important;
    border-top: 1px solid #60a5fa !important;
    border-bottom: 1px solid #60a5fa !important;
}

.selected-row td:first-child {
    border-right: 1px solid #60a5fa !important;
    border-radius: 0 10px 10px 0;

}

.selected-row td:last-child {
    border-left: 1px solid #60a5fa !important;
    border-radius: 10px 0 0 10px;
}

.financial-summary {
    display: flex;
    align-items: stretch;
    padding: 0;
    background: #fafbfc;
    border-top: 1px solid #edf0f3;
    direction: rtl;
}

.financial-stat {
    flex: 1;
    min-width: 0;
    padding: 13px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-left: 1px solid #e9ecf0;
    transition: background-color .18s ease;
}

.financial-stat:hover {
    background: #f4f7fa;
}

.financial-label {
    color: #8a929e;
    font-size: .68rem;
    font-weight: 700;
}

.financial-stat strong {
    color: #303641;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.financial-stat .text-danger {
    color: #dc3545 !important;
}

.financial-stat .text-success {
    color: #198754 !important;
}

.financial-balance {
    background: #f7f9fb;
}

.financial-balance strong {
    font-size: .9rem;
}

.footer-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    direction: rtl;
    position: relative;
    padding-right: 10px;
}

.footer-summary::before {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 4px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
}

.footer-summary span {
    color: #8a929e;
    font-size: .675rem;
    font-weight: 700;
}

.footer-summary strong {
    color: #303641;
    font-size: .825rem;
    font-weight: 700;
}

.footer-summary small {
    color: #a5abb4;
    font-size: .625rem;
    font-weight: 500;
}

.loading {
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 12px auto 2px;
    padding: 6px 12px;
    color: #6b7280;
    font-size: .8rem;
    font-weight: 500;
}
.loading .spinner-border {
    width: 13px;
    height: 13px;
    border-width: 2px;
    color: #2388d9;
}
.loading span:last-child {
    line-height: 1;
}

@media(max-width:991px) {
    .financial-summary {
        flex-wrap: wrap;
    }

    .financial-stat {
        flex: 0 0 33.333%;
        border-bottom: 1px solid #e9ecf0;
    }

    .financial-stat:nth-child(3n) {
        border-left: 0;
    }
}

@media(max-width:575px) {
    .financial-stat {
        flex: 0 0 50%;
    }

    .financial-stat:nth-child(3n) {
        border-left: 1px solid #e9ecf0;
    }

    .financial-stat:nth-child(even) {
        border-left: 0;
    }
}

.select2-container {
    width: 100% !important;
    font-family: inherit !important;
}

.select2-container * {
    font-family: inherit !important
}

.select2-container--default .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection--single {
    height: 44px !important;
    min-height: 44px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease !important
}

.select2-container--default .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection--single {
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: normal !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}



.select2-container--default .select2-selection__placeholder,
.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #b3bbc8 !important;
    opacity: 1 !important
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    top: 0 !important;
    left: 10px !important;
    right: auto !important;
    width: 32px !important;
    height: 42px !important
}

.select2-container--open .select2-selection--single,
.select2-container--focus .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px #1677ff14 !important
}

.select2-container--default .select2-selection--multiple,
.select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: 44px !important;
    padding: 10px 20px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    box-shadow: none !important
}

.select2-container--open .select2-selection--multiple,
.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px #1677ff14 !important
}

.select2-selection__rendered {
    font-family: inherit !important
}

.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    margin: 2px !important;
    padding: 4px 8px !important;
    color: #0f5fc0 !important;
    border: 1px solid #1677ff2e !important;
    border-radius: 10px !important;
    background-color: var(--primary-light) !important;
    font-size: .825rem !important
}

.select2-dropdown {
    overflow: hidden !important;
    margin-top: 6px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 12px 35px #0f172a1f !important
}

.select2-search--dropdown {
    padding: 10px !important;
    background: #f8faff !important;
    border-bottom: 1px solid var(--border-color) !important
}

.select2-search--dropdown .select2-search__field {
    height: 38px !important;
    padding: 0 10px !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px #1677ff14 !important
}

.select2-results {
    padding: 6px !important
}

.select2-results__option {
    min-height: 40px !important;
    align-items: center !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    color: var(--text-color) !important;
    font-size: .875rem !important
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--selectable {
    color: var(--text-color) !important;
    background-color: #f0f6ff !important
}

.select2-container--default .select2-results__option--selected,
.select2-container--bootstrap-5 .select2-results__option--selected {
    color: #0f5fc0 !important;
    background-color: var(--primary-light) !important
}

.select2-container--disabled .select2-selection {
    opacity: .65 !important;
    background-color: #f3f5f7 !important;
    cursor: not-allowed !important
}