@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap");

:root {
    --primary-color: #435ebe;
    --text-color: #333;
    --bg-color: #f6f6f6;
    --border-color: #e5e5e5;
    --light-color: #e5e5e5;
    --border-radius: 8px;
    --sideBar-width: 270px;
    font-size: 16px;
}

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

input {
    box-shadow: none !important;
    -moz-appearance: textfield;
}

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

input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration {
    display: none;
}

.overflow {
    overflow: hidden !important;
}

* {
    outline: none !important;
}

.container {
    --bs-gutter-x: 30px;
}

@media (min-width: 1500px) {
    .container {
        max-width: 1120px;
    }
}

.container-fluid {
    --bs-gutter-x: 30px;
}

select {
    background-image: url(../images/arrow.svg);
    background-repeat: no-repeat;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

html[dir=rtl] select {
    background-position: left 12px center;
}

html[dir=ltr] select {
    background-position: right 12px center;
}

body {
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-color);
    --bs-body-color: $text;
}

body ::-webkit-scrollbar {
    background-color: var(--bg-color);
    width: 7px;
    height: 5px;
}

body ::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

.btn {
    outline: none !important;
    box-shadow: none !important;
    height: 38px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 500;

}

.btn.btn-primary {
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.btn.btn-primary:focus {
    background-color: var(--primary-color);
}

.btn.btn-primary:hover {
    background-color: var(--primary-color);
    opacity: 0.8;
}

.btn.btn-defult {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.btn-icon {
    min-width: 45px;
    width: 45px;
}

.search-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .search-line {
        flex-direction: column;
        justify-content: center;
    }
}

.search-form {
    width: 100%;
    position: relative;
}

@media (max-width: 991px) {
    .search-form {
        margin-bottom: 15px;
    }
}

.search-input {
    width: 100%;
    height: 45px;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 500;
    border: 2px solid var(--border-color);
    padding: 0 23px;
    color: var(--text-color);
    -webkit-padding-start: 40px;
    padding-inline-start: 40px;
    transition: all 0.3s ease-in-out;
}

.search-input::-moz-placeholder {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 15px;
    font-weight: 400;
}

.search-input::placeholder {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 15px;
    font-weight: 400;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 15px;
    padding: 0;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.search-btn:hover {
    color: var(--primary-color);
}

.search-filter {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 15px;
    padding: 0;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.search-filter:hover {
    color: var(--primary-color);
}

.listing-tools {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.listing-tool {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-margin-start: 15px;
    margin-inline-start: 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease-in-out;
}

.listing-tool:hover {
    background-color: var(--primary-color);
    opacity: 0.8;
}

.table {
    --bs-table-bg: #fff;
    margin: 0;
    border: 1px solid var(--border-color);
}

.table> :not(caption)>*>* {
    padding: 10px 20px;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.table-action {
    font-size: 18px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.table-action~.table-action {
    -webkit-margin-start: 15px;
    margin-inline-start: 15px;
}

.table-action:hover {
    color: var(--primary-color);
}

.table-action[role=button] {
    color: var(--text-color);
    cursor: not-allowed;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 30px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.status.active {
    background-color: var(--primary-color);
}

.status.inactive {
    background-color: #333;
}

table.table.dataTable {
    margin: 0 !important;
    border: none;
}

table.table.dataTable>thead>tr>th {
    text-align: start;
    -webkit-padding-start: 10px;
    padding-inline-start: 10px;
    -webkit-padding-end: 10px;
    padding-inline-end: 10px;
    border: none;
    white-space: nowrap;
}

table.table.dataTable>thead>tr>th:before {
    display: none;
}

table.table.dataTable>thead>tr>th:after {
    position: relative;
    inset: unset;
    display: inline-flex;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--text-color);
    opacity: 0.5;
    -webkit-margin-start: 5px;
    margin-inline-start: 5px;
    content: "";
}

table.table.dataTable>thead>tr>th.sorting_asc::after {
    content: "\f078";
}

table.table.dataTable>thead>tr>th.sorting_desc::after {
    content: "\f077";
}

table.table.dataTable tbody td {
    border: none;
}

.cke_editable p strong {
    margin: 0;
    padding: 0;
}

.dataTables_wrapper .top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .dataTables_wrapper .top {
        flex-direction: column;
        justify-content: center;
    }
}

.dataTables_wrapper .dataTables_filter {
    width: 100%;
}

@media (max-width: 991px) {
    .dataTables_wrapper .dataTables_filter {
        margin-bottom: 15px;
    }
}

.dataTables_wrapper .dataTables_filter label {
    width: 100%;
    position: relative;
}

.dataTables_wrapper .dataTables_filter label::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f002";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 15px;
    color: var(--text-color);
}

.dataTables_wrapper .dataTables_filter .form-control {
    width: 100%;
    margin: 0;
    padding: 0 23px;
    -webkit-padding-start: 40px;
    padding-inline-start: 40px;
}

.dataTables_wrapper .dt-buttons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .dataTables_wrapper .dt-buttons {
        justify-content: center;
    }
}

.dataTables_wrapper .dt-buttons .btn {
    width: 45px;
    height: 45px;
    flex: unset;
    border-radius: var(--border-radius) !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-margin-start: 15px;
    margin-inline-start: 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease-in-out;
}

.dataTables_wrapper .dt-buttons .btn:hover {
    background-color: var(--primary-color);
    opacity: 0.8;
}

@media (max-width: 991px) {
    .dataTables_wrapper .dt-buttons .btn:first-of-type {
        margin: 0;
    }
}

.dataTables_wrapper .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .dataTables_wrapper .bottom {
        flex-wrap: wrap;
        margin-top: 30px;
    }
}

@media (max-width: 1199px) {
    .dataTables_wrapper .bottom div.dataTables_paginate {
        order: 3;
        width: 100%;
        margin-top: 20px;
    }
}

.dataTables_wrapper .bottom div.dataTables_paginate>ul.pagination {
    background-color: transparent;
    margin: 0;
}

@media (max-width: 991px) {
    .dataTables_wrapper .bottom div.dataTables_paginate>ul.pagination {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

.dataTables_wrapper .bottom div.dataTables_paginate>ul.pagination>.page-item {
    margin: 0 2px;
}

.dataTables_wrapper .bottom div.dataTables_paginate>ul.pagination>.page-item>.page-link {
    background-color: transparent;
    border: none;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 400;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: all 0.3s ease-in-out;
}

.dataTables_wrapper .bottom div.dataTables_paginate>ul.pagination>.page-item>.page-link:hover {
    color: var(--primary-color);
}

.dataTables_wrapper .bottom div.dataTables_paginate>ul.pagination>.page-item.disabled {
    opacity: 0.4;
}

.dataTables_wrapper .bottom div.dataTables_paginate>ul.pagination>.page-item.active>.page-link {
    background-color: var(--primary-color);
    color: #fff;
}

.dataTables_wrapper .bottom div.dataTables_info {
    padding: 0;
}

@media (max-width: 991px) {
    .dataTables_wrapper .bottom div.dataTables_info {
        order: 1;
    }
}

@media (max-width: 991px) {
    .dataTables_wrapper .bottom div.dataTables_length {
        order: 2;
    }
}

.dataTables_wrapper .bottom div.dataTables_length>label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.dataTables_wrapper .bottom div.dataTables_length>label>label {
    font-weight: 400;
    margin: 0;
    padding: 0;
    -webkit-margin-end: 10px;
    margin-inline-end: 10px;
}

@media (max-width: 991px) {
    .dataTables_wrapper .bottom div.dataTables_length>label>label {
        display: none;
    }
}

.dataTables_wrapper .bottom div.dataTables_length>label>select {
    width: 70px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0 10px;
    background-color: #fff;
    box-shadow: none;
}

html[dir=rtl] .dataTables_wrapper .bottom div.dataTables_length>label>select {
    background-position: left 10px center;
}

html[dir=ltr] .dataTables_wrapper .bottom div.dataTables_length>label>select {
    background-position: right 10px center;
}

/* Global Fix for Phone Input Layout in RTL Dashboard */
/* Force flag to left (separate container look) and text to right */
.iti {
    width: 100%;
    display: block;
    direction: ltr !important;
    /* Force LTR container to allow absolute positioning to work predictably */
}

.iti__flag-container {
    left: 0 !important;
    right: auto !important;
    border-right: 1px solid var(--border-color);
    /* Add visible separator */
}

.iti__selected-flag {
    background-color: rgba(0, 0, 0, 0.05);
    /* Slight background to separate it */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    padding: 0 8px 0 10px !important;
    /* height: 100%; */
    height: 45px !important;
}

.iti input {
    text-align: right !important;
    /* Text and placeholder on the right */
    padding-left: 60px !important;
    /* Space for flag */
    padding-right: 12px !important;
    /* Normal padding */
    direction: ltr !important;
    /* Keep LTR for phone number formatting */
    border-radius: var(--border-radius);
}