:root {
    --bs-border-radius: 10px;
    --color-red: #FF0000;
    --color-gray: #838485;
    --color-lighter: #FAFAFA;
    --color-dark-gray: #BDBDBD;
    --color-green: #1CB707;
    --color-white: #fff;
}

body {
    font-family: 'Cairo', sans-serif;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

a {
    color: inherit;
}

li::marker {
    color: var(--color-red);
}

/* Font fixing */
[dir="rtl"] .h3.fix-line-height,
[dir="rtl"] h3.fix-line-height {
    margin-bottom: 8px;
}

[dir="rtl"] p.fix-line-height {
    margin-bottom: 4px;
}

[dir="rtl"] .form-control {
    padding-bottom: 10px;
}

/* Colors */
.color-red {
    color: var(--color-red);
}

/* Background */
.background-dark {
    background-color: #000;
}

.background-light {
    background-color: #F3F3F3;
}

.background-lighter {
    background-color: var(--color-lighter);
}

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

.background-red-opac {
    background-color: rgba(255, 0, 0, 0.3);
}

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

.background-dark-gray {
    background-color: var(--color-dark-gray);
}

.background-white {
    background-color: var(--color-white);
}

/* Buttons */
.button-dark {
    background-color: #000;
    color: #FFF !important;
    border: none !important;
}

.button-dark:hover,
.button-dark:active,
.button-dark:focus-visible {
    background-color: var(--color-red);
}

.button-red {
    background-color: var(--color-red) !important;
    color: #FFF !important;
    border: none !important;
}

.button-red:hover,
.button-red:active,
.button-red:focus-visible {
    background-color: #000;
}

.button-gray {
    background-color: var(--color-gray);
    color: #FFF !important;
    border: none !important;
}

.button-gray:hover,
.button-gray:active,
.button-gray:focus-visible {
    background-color: var(--color-red);
}

.button-red-border {
    background-color: #fff !important;
    color: initial !important;
    border: 1px solid var(--color-red) !important;
}

.button-red-border:hover,
.button-red-border:active,
.button-red-border:focus-visible {
    background-color: var(--color-red);
}

.border-red {
    border-color: var(--color-red) !important;
}

/* Forms */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

[dir="rtl"] [type=email],
[dir="rtl"] [type=number],
[dir="rtl"] [type=tel],
[dir="rtl"] [type=url] {
    text-align: right;
}

input {
    outline: none;
}

.form-control,
.form-control:focus {
    background-color: var(--color-lighter);
    border: none;
    box-shadow: none;
    outline: none;
}

.form-control.text-white::placeholder {
    color: var(--color-white);
    opacity: 1;
}

select.form-control {
    background-image: url(../images/arrow-down.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-position: 8px center;
    background-size: 10px 10px;
    padding-left: 22px;
}

[dir="ltr"] select.form-control {
    background-position: right center;
    padding-left: 12px !important;
}

.custom-checkbox-input {
    display: none;
}

.custom-checkbox-wrapper {
    width: 18px;
    height: 18px;
    border: 1px solid;
    transition: 0.25s background-color;
}

.custom-checkbox-input:checked+.custom-checkbox-wrapper {
    background-color: var(--color-red);
    border-color: var(--color-red);
}

/* Tooltip */
.tooltip-content {
    opacity: 0;
    transition: opacity 0.5s;
}

.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
}

/* Popup */
.popup {
    background-color: rgba(217, 217, 217, 0.85);
    opacity: 0;
    transition: opacity 0.5s;
}

.popup.show {
    opacity: 1;
}

/* Header */
.back-arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--color-white);
    border-bottom: 3px solid var(--color-white);
    transform: rotate(-45deg);
}

.select2-transparent-wrapper .select2-container--default .select2-selection--single {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto;
}

.select2-transparent-wrapper .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-right: 0;
}

.select2-transparent-wrapper.ltr-content .select2-selection__rendered {
    direction: ltr;
}

.select2-transparent-wrapper .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
    left: -4px;
}

.select2-transparent-wrapper .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-left: 16px;
}

.select2-container--open .select2-dropdown--below {
    border-top: 1px solid #aaa;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--color-red);
    color: var(--color-white);
}

/* Toggle */
.toggle {
    height: 40px;
    width: 72px;
    background-color: var(--color-dark-gray);
}

.toggle div {
    height: 28px;
    width: 28px;
    transform: translateX(-100%);
    transition: transform 0.25s;
}

.toggle.active {
    background-color: var(--color-green);
}

.toggle.active div {
    transform: translateX(0%);
}


/* Tables */

.cell {
    min-width: 140px;
}

.custom-table-header-1 {
    margin-bottom: 16px;
}

.custom-table-header-1 .cell {
    background-color: var(--color-red);
    color: var(--color-white);
    font-size: 20px;
}

.custom-table-header-1 .cell:first-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.custom-table-header-1 .cell:last-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.custom-table-body-1 .row {
    margin-bottom: 16px;
}

.custom-table-body-1 .cell {
    padding-top: 16px;
    padding-bottom: 16px;
}

.custom-table-body-1 .cell:first-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.custom-table-body-1 .cell:last-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.custom-table-header-2 .cell {
    background-color: var(--color-white);
}

.custom-table-header-2 .cell:not(:first-child),
.custom-table-body-2 .cell:not(:first-child) {
    border-right: 1px solid #f1f1f1;
}

.custom-table-body-2 {
    margin-bottom: 16px;
}

.custom-table-body-2 .cell {
    border-top: 1px solid #f1f1f1;
    padding-top: 4px;
    padding-bottom: 4px;
}

.custom-table-body-2 .row:last-child .cell:first-child {
    border-bottom-right-radius: 10px;
}

.custom-table-body-2 .row:last-child .cell:last-child {
    border-bottom-left-radius: 10px;
}

/* Datepicker */
.flatpickr-months .flatpickr-month {
    height: 50px;
}

.flatpickr-day {
    max-width: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.flatpickr-day.today {
    font-weight: bold;
}

.flatpickr-day.hover-week {
    background: var(--color-lighter) !important;
}

.flatpickr-day.active-week {
    background: var(--color-red) !important;
    color: var(--color-white) !important;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    color: inherit;
}

.flatpickr-day.today.nextMonthDay:hover,
.flatpickr-day.today.prevMonthDay:hover {
    color: rgba(57, 57, 57, 0.3);
}

/* Swiper */
.swiper-pagination {
    position: relative;
    top: 0 !important;
}

.swiper-pagination-bullet-active {
    background: var(--color-red);
}

/* Misc */
.side-red-border {
    width: 4px;
    height: 100%;
    background-color: var(--color-red);
    position: absolute;
    right: 0;
    top: 0;
}

.side-red-border.left {
    right: auto;
    left: 0;
}

[dir="ltr"] .side-red-border {
    left: 0;
    right: auto;
}

[dir="ltr"] .side-red-border.left {
    right: 0;
    left: auto;
}

/* User header */
.user-container {
    max-width: 700px;
}

.header-height {
    height: 70px;
}

.header-padding {
    padding-top: 70px;
}

.side-menu {
    width: 280px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

[dir="ltr"] .side-menu {
    transform: translateX(-100%);
}

.side-menu.active {
    transform: translateX(0%);
}

/* Notifications */
.notification-delete-button {
    background-size: 12px 12px;
}

/* Home boxes */
.home-box-svg,
.home-box-svg [fill="#FF0000"],
.home-box-svg [stroke="white"] {
    transition: 0.5s all;
}

.home-box-svg:hover {
    background-color: var(--color-red);
    color: var(--color-white);
}

.home-box-svg:hover [fill="#FF0000"] {
    fill: var(--color-white);
}

.home-box-svg:hover [stroke="white"] {
    stroke: var(--color-red);
}