:root {
    --gray-1: #f6f8f9;
    --gray-2: #eaeaea;
    --gray-3: #606060;
    --gray-4: #777777;
    --white-1: #ffffff;
    --white-2: #f4f8fb;
    --dark-1: #12181c;
    --dark-2: #141c1f;
    --dark-3: #1e2a2e;
    --dark-4: #2d3e43;
    --shadow-1: rgba(0, 0, 0, 0.1);
    --blue-1: #112739;
    --blue-2: #285d87;
    --blue-3: #3a7caf;
    --blue-4: #e1effd;
    --bule-5: #e7f1f9;
    --blue-6: #103f6a;
    --blue-7: #3a7caf14;
    --blue-8: #f1f8fe;
    --blue-9: #0070cc;
    --blue-10: #0070cc1a;
    --blue-11: #0a416d;
    --red-1: #dd0417;
    --red-2: #fa142b;
    --red-4: #fa10241a;
    --red-5: #fdeeee;
    --green-1: #1a9f58;
    --green-3: #405048;
    --green-3-5: #10a6921a;
    --green-4: #03302c;
    --green-5: #ebf9f2;
    --yellow-2: #f2960c1a;
    --yellow-3: #a96908;
    --font-family: Cairo, sans-serif;
    --main-font-size: 14px;
}

::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 0.675rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

* {
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family), serif;
    font-size: var(--main-font-size);
    line-height: 1.2;
    transition: all 0.2s ease;
}

*::-webkit-scrollbar {
    display: none !important;
}

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family), serif;
    font-size: var(--main-font-size);
    line-height: 1.2;
    scrollbar-width: thin;
    transition: all 0.2s ease;
} */

body {
    background-color: var(--gray-1);
    /* display: flex; */
    transition: all ease 0.2s;
}

main {
    width: 100%;
    height: 100vh;
    margin-right: auto;
}

ul {
    list-style: none;
    padding: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.body-content {
    padding: 2rem 1rem;
}

.theme-color {
    color: var(--blue-1);
}

.text-blue {
    color: var(--blue-3) !important;
}

/* buttons start */
.btn-blue {
    font-size: var(--main-font-size) !important;
    color: var(--white-1) !important;
    font-weight: bold;
    position: relative;
    transition: background-color ease-in-out 0.2s;
    border: thin solid transparent;
    padding: 10px 16px 10px 60px !important;
}

/* buttons start */
.btn-blue,
.btn-blue:hover,
.btn-blue:active,
.btn-blue:focus {
    background-color: var(--blue-3) !important;
    border-color: var(--blue-3) !important;
}

.btn-blue.danger,
.btn-blue.danger:hover,
.btn-blue.danger:active,
.btn-blue.danger:focus {
    background-color: var(--red-1) !important;
    border-color: var(--red-1) !important;
}

.btn-blue.btn-icon-none {
    padding: 10px 16px !important;
}

.btn-blue .btn-icon {
    width: max-content;
    aspect-ratio: 1 / 1;
    background-color: var(--blue-3);
    border-radius: 2rem;
    border: solid 6px var(--gray-1);
    padding: 10px;
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-30%, -50%);
    transition: all ease 0.2s;
}

.btn-blue .btn-icon.danger {
    background-color: var(--red-1);
}

.btn-blue .btn-icon svg path:not(.circle-inside) {
    fill: var(--white-1);
}

.btn-blue .btn-icon svg path.circle-inside {
    fill: var(--blue-1) !important;
}

.btn-link {
    text-decoration: none;
    cursor: pointer;
}

.btn-custom,
.btn-custom:hover,
.btn-custom:active,
.btn-custom:focus {
    border: none !important;
    background-color: transparent;
    font-weight: 500 !important;
    color: var(--blue-1);
}

.btn-custom.blue {
    background-color: var(--bule-5);
}

.btn-custom.red {
    background-color: var(--red-5);
}

.btn-custom.orange {
    background-color: #EF53501A;
}

.btn-custom.green {
    background-color: var(--green-5);
}

.btn-custom.primary {
    background-color: var(--blue-3);
}

.btn-custom.white {
    background-color: var(--white-1);
    color: var(--blue-3);
}

.btn svg,
.btn span {
    pointer-events: none;
}

.btn {
    width: fit-content;
    min-width: 100px;
    direction: rtl;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
    padding: 7px 10px;
    font-size: var(--main-font-size);
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.btn-fit {
    min-width: unset !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
}

.min-h-40 {
    min-height: 40px !important;
}

.btn-outline-primary svg path {
    transition: all 0.1s ease-in-out;
}

.btn-outline-primary:hover svg path:not(.stroke):not(.stroke-fill),
.btn-outline-primary:active svg path:not(.stroke):not(.stroke-fill) {
    fill: var(--white-1);
}

.btn-outline-primary:hover svg path.stroke,
.btn-outline-primary:active svg path.stroke {
    stroke: var(--white-1);
}

.btn-outline-primary:hover svg path.stroke-fill,
.btn-outline-primary:active svg path.stroke-fill {
    fill: var(--white-1);
    stroke: var(--white-1);
}

.btn-primary-outline {
    background: transparent;
    color: var(--blue-3);
    border: thin solid var(--blue-3);
}

.btn-primary-outline:hover {
    background: var(--blue-3);
    border-color: transparent;
    color: var(--white-1);
}

.btn-primary-outline:hover svg {
    fill: var(--white-1) !important;
}

.btn-light {
    background-color: var(--white-1);
    color: var(--blue-1);
    border: thin solid var(--gray-2);
}

.btn-light:hover,
.btn-light:active,
.btn-light:focus {
    background-color: var(--gray-2);
}

/* buttons end */

/* card start */

.card {
    width: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px 2px var(--shadow-1);
    border: thin solid transparent;
    margin: 1rem 0 !important;
    transition: all 0.2s ease;
}

/* card end */

/* modal start */
.modal .modal-content {
    border-radius: 1rem;
    transition: all ease 0.2s;
}

.modal .modal-content .modal-header {
    padding-bottom: 10px;
    border-bottom: none;
}

.modal .modal-content .modal-header .modal-title {
    width: 100%;
    text-align: center;
}

.modal .modal-content .modal-header .close-btn {
    background: none;
    border: none;
    opacity: 1;
    transition: all 0.2s ease-in-out;
    margin-right: auto;
}

.modal .modal-content .modal-header .close-btn:hover {
    opacity: 100%;
}

.modal .modal-content .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

.modal .modal-footer {
    border: none;
}

.modal .alert {
    font-size: 18px;
    margin: 1rem 0;
    padding: 1.5rem 0;
    border: unset;
    border-radius: 1rem;
}

.modal-taps {
    width: 100%;
    display: flex;
    overflow-x: auto;
    cursor: grab;
    user-select: none;
    scrollbar-color: var(--blue-4) var(--white-1);
    padding: 0.5rem 0 0;
    font-size: var(--main-font-size);
    min-height: 55px;
}
.modal-taps::-webkit-scrollbar {
    height: 8px;
}
.modal-taps::-webkit-scrollbar-track {
    background: var(--blue-4);
    border-radius: 4px;
}
.modal-taps::-webkit-scrollbar-thumb {
    background: var(--blue-4);
    border-radius: 4px;
}
.modal-taps::-webkit-scrollbar-thumb:hover {
    background: var(--blue-4);
}
.modal-taps .tap,
.modal-taps .tap-link {
    min-width: -moz-fit-content;
    min-width: fit-content;
    padding: 0.25rem 0.7rem;
    margin: 0 0.25rem;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    height: min-content;
}
.modal-taps .tap svg,
.modal-taps .tap-link svg {
    fill: var(--gray-3);
    height: 20px;
}
.modal-taps .tap span,
.modal-taps .tap-link span {
    color: var(--gray-3);
    padding: 0 0.25rem;
}
.modal-taps .tap:hover,
.modal-taps .tap.active,
.modal-taps .tap-link.active {
    border-color: var(--blue-3);
}
.modal-taps .tap svg path,
.modal-taps .tap-link svg path {
    fill: var(--gray-4);
}
.modal-taps .tap svg path.stroke,
.modal-taps .tap-link svg path.stroke {
    stroke: var(--gray-4);
}
.modal-taps .tap svg path.stroke-fill,
.modal-taps .tap-link svg path.stroke-fill {
    fill: var(--gray-4);
    stroke: var(--gray-4);
}
.modal-taps .tap:hover svg path,
.modal-taps .tap.active svg path,
.modal-taps .tap-link.active svg path {
    fill: var(--blue-3);
}
.modal-taps .tap:hover svg path.stroke,
.modal-taps .tap.active svg path.stroke,
.modal-taps .tap-link.active svg path.stroke {
    stroke: var(--blue-3);
}
.modal-taps .tap:hover svg path.stroke-fill,
.modal-taps .tap.active svg path.stroke-fill,
.modal-taps .tap-link.active svg path.stroke-fill {
    fill: var(--blue-3);
    stroke: var(--blue-3);
}
.modal-taps .tap:hover span,
.modal-taps .tap.active span,
.modal-taps .tap-link.active span {
    color: var(--blue-3);
}

/* modal end */

/* badge start */

.badge-custom {
    padding: 5px 15px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.bg-primary-light {
    background: #e5eef5;
}

.badge-custom.text-bg-success {
    background-color: var(--green-5) !important;
    color: var(--green-1) !important;
}

.badge-custom.text-bg-danger {
    background-color: var(--red-4) !important;
    color: var(--red-1) !important;
}

.badge-custom.text-bg-warning {
    background-color: var(--yellow-2) !important;
    color: var(--yellow-3) !important;
}

.badge-custom.text-bg-info {
    background-color: var(--green-3-5) !important;
    color: var(--green-4) !important;
}

.badge-custom.text-bg-primary {
    background-color: var(--blue-10) !important;
    color: var(--blue-9) !important;
}

.badge-custom.text-bg-secondary {
    background-color: var(--gray-2) !important;
    color: var(--gray-3) !important;
}

/* badge end */

.text-danger {
    color: var(--red-1);
}

.text-success {
    color: var(--green-1);
}

.text-primary {
    color: var(--blue-3);
}

.text-muted {
    color: var(--gray-4) !important;
}

.dropdown-wrapper {
    display: inline-block;
    position: relative;
}

.dropdown-toggle-dots {
    cursor: pointer;
}

.dropdown-menu {
    min-width: 150px !important;
    padding: 1rem;
    max-width: 100%;
    overflow: auto;
    background: var(--white-1);
    margin-top: 0.25rem !important;
    border: none;
    box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    max-height: 300px;
    transition: none !important;
}

.dropdown-menu a,
.dropdown-menu button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    min-height: 40px;
}

.dropdown-menu a span,
.dropdown-menu button span {
    max-width: 35ch;
    text-overflow: ellipsis;
    text-wrap: wrap;
    text-wrap-mode: wrap;
    overflow: hidden;
    white-space: nowrap;
    color: #112739;
    font-weight: 600;
}

.dropdown-menu li:last-child a,
.dropdown-menu li:last-child button {
    margin-bottom: 0;
}

.dropdown-menu a svg,
.dropdown-menu button svg {
    width: 28px;
}

.dropdown-menu .empty-message {
    padding: 0 1.5rem;
}

.dropdown-menu .empty-message i {
    padding-left: 0.25rem;
}

.rtl {
    direction: rtl !important;
}

.ltr {
    direction: ltr !important;
}

.select2-dropdown {
    z-index: 9999;
}

.text-gray {
    color: var(--gray-3);
}

.text-blue {
    color: var(--blue-1);
}

.bg-blue-light {
    background-color: var(--blue-10);
}

.mb-2rem {
    margin-bottom: 2rem !important;
}

/* progress bar */

.custom-progress {
    background-color: var(--blue-10);
}

.custom-progress.text-bg-success {
    background-color: var(--green-1);
}

.custom-progress.text-bg-warning {
    background-color: var(--yellow-3);
}

.custom-progress.text-bg-danger {
    background-color: var(--red-1);
}

.custom-progress.text-bg-primary {
    background-color: var(--blue-9);
}

.progress-with-knop .progress {
    position: relative;
    overflow: hidden;
    /* height: 1.5rem; */
}

.progress-with-knop .progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    transition: width 0.1s;
}

.progress-with-knop .progress-knob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #6c757d;
    cursor: grab;
    /*box-shadow: 0 0 5px rgba(0,0,0,0.5);*/
    z-index: 10;
    transition: left 0.1s;
}

.progress-with-knop .progress-knob:active {
    cursor: grabbing;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

/*file export*/
.file-export-card {
    display: flex;
    justify-content: center;
    gap: 1rem;
    border: thin solid #ddd;
    padding: 1.5rem;
    border-radius: 1rem;
}

.file-export-card .details {
    font-size: 16px;
    margin-left: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.file-export-card .details .file-name {
    font-weight: bold;
    margin: 0;
}

.file-export-card .details .file-size {
    color: #666;
    margin: 0;
}

/*table actions dropdown*/

.row-actions-dropdown-btn {
    padding: 0 !important;
    min-width: unset !important;
    margin-inline: auto;
    border: none !important;
}

.row-actions-dropdown-btn:after {
    content: unset;
}

.row-actions-dropdown-menu .dropdown-item {
    justify-content: start;
    display: flex;
    align-items: center;
}

.row-actions-dropdown-menu .dropdown-item svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
    flex-shrink: 0;
}

.row-actions-dropdown-menu .dropdown-item:hover {
    background-color: unset;
}
.mini-card {
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #e1effd;
}
.mini-card__title {
    font-weight: 500;
    font-size: 16px;
}

.table-data-flex {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: start;
    gap: 1rem;
}

.outline-dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 1;
}

/* When dropdown is open, increase z-index */
.outline-dropdown-wrapper:has(.outline-dropdown-menu[style*="display: block"]),
.outline-dropdown-wrapper:has(.outline-dropdown-trigger.open) {
    z-index: 1050 !important;
}

.outline-dropdown-wrapper .outline-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--blue-3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
    min-height: 40px;
    position: relative;
    z-index: 1;
}

.outline-dropdown-wrapper .outline-dropdown-trigger.disabled {
    background: #f6f8f9;
    border: none;
    box-shadow: none !important;
    cursor: not-allowed;
}

.outline-dropdown-wrapper.color-primary .outline-dropdown-trigger {
    background: var(--blue-3);
    border: 1px solid var(--blue-3);
}

.outline-dropdown-wrapper .outline-dropdown-trigger strong {
    color: var(--blue-3);
}

.outline-dropdown-wrapper.color-primary .outline-dropdown-trigger strong {
    color: var(--white-1);
}

.outline-dropdown-wrapper .outline-dropdown-trigger .current-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.outline-dropdown-wrapper .outline-dropdown-trigger .current-status svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.outline-dropdown-wrapper .outline-dropdown-trigger .current-status span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outline-dropdown-wrapper .outline-dropdown-trigger:hover {
    border-color: #0070cc;
    box-shadow: 0 2px 4px rgba(0, 112, 204, 0.15);
}

.outline-dropdown-wrapper .outline-dropdown-trigger svg {
    flex-shrink: 0;
    color: #606060;
    transition: transform 0.2s;
}

.outline-dropdown-wrapper .outline-dropdown-trigger.open svg:not(.filter-icon) {
    transform: rotate(180deg);
}

/* Dropdown menu - works both inside wrapper and when moved to body */
.outline-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 9999 !important;
    overflow: hidden;
    min-width: 200px;
    max-height: 350px;
    overflow-y: auto;
    transform: translateZ(0);
}

.outline-dropdown-wrapper.color-primary .outline-dropdown-menu {
    right: unset;
}

.outline-dropdown-item {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    background: white;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.15s;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.outline-dropdown-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.outline-dropdown-item span {
    flex: 1;
    color: #112739;
    font-weight: 500;
}

.outline-dropdown-item:last-child {
    border-bottom: none;
}

.outline-dropdown-item:hover {
    background: #f8f9fa75;
}

.outline-dropdown-item.active {
    background: #e7f3ff;
    border-left: 3px solid #0070cc;
}

.outline-dropdown-item .badge {
    margin: 0 !important;
    width: 100%;
}

/* Scrollbar styling */
.outline-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.outline-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.outline-dropdown-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.outline-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.clr-picker.clr-polaroid {
    z-index: 10000;
}
/* End of scrollbar styling */
.min-h-0 {
    min-height: unset !important;
}
#filterModal .form-group {
    margin-bottom: 1.5rem !important;
}
#filterModal .modal-body .col-12:last-child .form-group {
    margin-bottom: 0 !important;
}
#filterModal .form-group .select2 .select2-selection {
    border: 1px solid #eaeaea !important;
}
#filterModal .form-group .form-control {
    border: 1px solid #eaeaea !important;
}

.profile-image {
    width: 58px;
    height: 58px;
    object-fit: cover;
}

.profile-icon {
    width: 58px;
    height: 58px;
    border: 2px solid var(--blue-3);
    background-color: #F1F1F1;
    color: #606060;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8f4fc;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0070CC1A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .title {
    color: #606060;
    font-size: 16px;
    font-weight: bold;
}

.stat-card .value {
    color: #112739;
    font-size: 24px;
    font-weight: bold;
}

.stat-card .percentage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card .percentage .name {
    color: #8E8E8E;
}

.stat-card .percentage.up .num {
    color: #1A9F58;
}

.stat-card .percentage.up svg path {
    fill: #1A9F58;
}

.stat-card .percentage.down .num {
    color: #DD0417;
}

.stat-card .percentage.down svg path {
    fill: #DD0417;
}
