﻿/* RTL fix: Bootstrap modal scrollbar compensation */
html {
    scrollbar-gutter: stable;
}

body[style*="padding-right"] {
    padding-right: 0 !important;
}

body[style*="overflow"] {
    overflow: auto !important;
}

/* Report Page */
.text-en {
    font-family: sans-serif;
}

.ltr-form {
    direction: ltr;
}

.reports-page .card-header {
    border-top-right-radius: 9px;
    border-top-left-radius: 9px;
}

    .reports-page .card-header::before {
        background: white;
    }

.reports-page h5.credit {
    border-bottom: 0px;
    font-family: sans-serif;
}

.select2-ltr .select2-search__field {
    direction: ltr;
    text-align: left;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    list-style-type: none;
    padding-right: 0;
}
.was-validated .choices.is-invalid .choices__inner {
    border-color: var(--bs-form-invalid-border-color);
    padding-left: 5.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef5f5f'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef5f5f' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left calc(0.375em + 1.7rem) center;
    background-size: calc(0.75em + 0.5rem) calc(0.75em + 0.5rem);
}

.choices.is-invalid {
    margin-bottom: 0;
}

.was-validated .choices.is-valid .choices__inner {
    border-color: var(--bs-form-valid-border-color);
    padding-left: calc(1.5em + 1rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322c55e' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left calc(0.375em + 1.7rem) center;
    background-size: calc(0.75em + 0.5rem) calc(0.75em + 0.5rem);
}


/* Add Service Page */
.repeater-default > div > .repeater-item-custom:not(:first-child) {
    border-top: 1px solid #ccc;
    margin-top: 20px;
    padding-top: 30px;
}


/* ===== DataTable Modern Styles ===== */

/* Wrapper */
.dataTables_wrapper {
    direction: rtl;
    text-align: right;
    margin-top: 20px;
    font-size: 13.5px;
}

/* Table base */
.dataTables_wrapper table.dataTable {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

/* Header */
.dataTables_wrapper thead th {
    background: #fff;
    color: #6c757d;
    font-weight: 600;
    font-size: 12.5px;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e9ecef !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    text-align: right !important;
    position: relative;
    white-space: nowrap;
    text-transform: none;
}

/* Sort icons */
.dataTables_wrapper table.dataTable thead th.sorting::before,
.dataTables_wrapper table.dataTable thead th.sorting_asc::before,
.dataTables_wrapper table.dataTable thead th.sorting_desc::before,
.dataTables_wrapper table.dataTable thead th.sorting_asc_disabled::before,
.dataTables_wrapper table.dataTable thead th.sorting_desc_disabled::before {
    content: "\25B2";
    position: absolute;
    left: 10px !important;
    right: auto !important;
    bottom: 55% !important;
    font-size: 8px;
    opacity: 0.25;
    line-height: 1;
}

.dataTables_wrapper table.dataTable thead th.sorting::after,
.dataTables_wrapper table.dataTable thead th.sorting_asc::after,
.dataTables_wrapper table.dataTable thead th.sorting_desc::after,
.dataTables_wrapper table.dataTable thead th.sorting_asc_disabled::after,
.dataTables_wrapper table.dataTable thead th.sorting_desc_disabled::after {
    content: "\25BC";
    position: absolute;
    left: 10px !important;
    right: auto !important;
    top: 55% !important;
    font-size: 8px;
    opacity: 0.25;
    line-height: 1;
}

.dataTables_wrapper table.dataTable thead th.sorting_asc::before {
    opacity: 0.8;
    color: var(--bs-primary);
}

.dataTables_wrapper table.dataTable thead th.sorting_desc::after {
    opacity: 0.8;
    color: var(--bs-primary);
}

/* Body rows */
.dataTables_wrapper tbody td {
    padding: 12px 16px !important;
    text-align: right;
    vertical-align: middle;
    color: #495057;
    border-bottom: 1px solid #f0f1f3 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    transition: background-color 0.15s ease;
}

.dataTables_wrapper tbody tr {
    text-align: right;
    background-color: #fff;
}

.dataTables_wrapper tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.dataTables_wrapper tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.07) !important;
}

.dataTables_wrapper tbody tr:last-child td {
    border-bottom: none !important;
}

/* Info & Length */
.dataTables_wrapper .dataTables_info {
    color: #868e96;
    font-size: 12.5px;
    padding-top: 14px;
    float: left;
}

.dataTables_wrapper .dataTables_length {
    float: left;
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_length label {
    text-align: right;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #6c757d;
    font-size: 13px;
    gap: 6px;
}

.dataTables_wrapper .dataTables_length select {
    margin: auto 6px;
    text-align: right;
    direction: rtl;
    border-radius: 8px;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    background: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.1);
}

/* Search filter */
.dataTables_wrapper .dataTables_filter {
    float: left !important;
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 5px 12px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.1);
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate {
    float: right !important;
    margin-top: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    float: right !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    margin: 0 1px;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #495057 !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(var(--bs-primary-rgb), 0.07) !important;
    color: var(--bs-primary) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.35) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #ced4da !important;
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Processing indicator */
.dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 13px;
    z-index: 10;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
}

/* Empty table */
.dataTables_wrapper .dataTables_empty {
    padding: 40px 20px !important;
    text-align: center !important;
    color: #adb5bd;
    font-size: 14px;
}

/* Column helpers */
.dataTables_wrapper .col-date {
    max-width: 100px !important;
    white-space: pre-wrap;
}

.dataTables_wrapper .col-status {
    max-width: 100px !important;
    white-space: pre-wrap;
}

.dataTables_wrapper .col-price {
    max-width: 50px !important;
    white-space: pre-wrap;
}

.dataTables_wrapper .col-service {
    max-width: 150px !important;
    white-space: pre-wrap;
}

.dataTables_wrapper .col-id {
    max-width: 50px !important;
    white-space: pre-wrap;
}

/* Responsive child rows */
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    background: var(--bs-primary) !important;
    border: none !important;
    box-shadow: 0 1px 4px rgba(var(--bs-primary-rgb), 0.3);
}

.dataTables_wrapper table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
}

.dataTables_wrapper table.dataTable > tbody > tr.child ul.dtr-details > li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f1f3;
}

/* Bordered table override */
.dataTables_wrapper table.table-bordered {
    border: 1px solid #e9ecef;
}

.dataTables_wrapper table.table-bordered thead th {
    border-right: 1px solid #e4e7ec !important;
}

.dataTables_wrapper table.table-bordered thead th:first-child {
    border-right: none !important;
}

.dataTables_wrapper table.table-bordered tbody td {
    border-right: 1px solid #f0f1f3 !important;
}

.dataTables_wrapper table.table-bordered tbody td:first-child {
    border-right: none !important;
}

/* Striped override */
.dataTables_wrapper table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: transparent;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_info {
        float: none;
        text-align: center;
        padding-top: 10px;
    }

    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        justify-content: center;
        margin-top: 10px;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 6px;
    }

    .dataTables_wrapper tbody td {
        padding: 10px 12px !important;
        font-size: 12.5px;
    }

    .dataTables_wrapper thead th {
        padding: 10px 12px !important;
        font-size: 12px;
    }
}

/* ===== Static Table Modern Styles (non-DataTable) ===== */
.table-modern {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.table-modern thead th {
    background: #fff;
    color: #6c757d;
    font-weight: 600;
    font-size: 12.5px;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    border-top: none;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    color: #495057;
    border-bottom: 1px solid #f0f1f3;
    border-top: none;
    transition: background-color 0.15s ease;
}

.table-modern tbody tr {
    background-color: #fff;
}

.table-modern tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.table-modern tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.07);
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Dark Mode: DataTable & Table-Modern ===== */
html[data-bs-theme=dark] .dataTables_wrapper table.dataTable {
    border-color: #474e59;
}

html[data-bs-theme=dark] .dataTables_wrapper thead th {
    background: #363e4a;
    color: #adb5bd;
    border-bottom-color: #474e59 !important;
}

html[data-bs-theme=dark] .dataTables_wrapper tbody tr {
    background-color: #323a46;
}

html[data-bs-theme=dark] .dataTables_wrapper tbody tr:nth-child(even) {
    background-color: #2e3640;
}

html[data-bs-theme=dark] .dataTables_wrapper tbody tr:hover {
    background-color: #3a3228 !important;
}

html[data-bs-theme=dark] .dataTables_wrapper tbody td {
    color: #d8dfe7;
    border-bottom-color: #474e59 !important;
}

html[data-bs-theme=dark] .dataTables_wrapper .dataTables_info {
    color: #8a929b;
}

html[data-bs-theme=dark] .dataTables_wrapper .dataTables_length label {
    color: #8a929b;
}

html[data-bs-theme=dark] .dataTables_wrapper .dataTables_length select {
    background: #363e4a;
    border-color: #474e59;
    color: #d8dfe7;
}

html[data-bs-theme=dark] .dataTables_wrapper .dataTables_filter input {
    background: #363e4a;
    border-color: #474e59;
    color: #d8dfe7;
}

html[data-bs-theme=dark] .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #363e4a !important;
    border-color: #474e59 !important;
    color: #d8dfe7 !important;
}

html[data-bs-theme=dark] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #3a3228 !important;
    color: var(--bs-primary) !important;
    border-color: #5a4030 !important;
}

html[data-bs-theme=dark] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
html[data-bs-theme=dark] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #2e3640 !important;
    border-color: #474e59 !important;
    color: #5a6270 !important;
}

html[data-bs-theme=dark] .dataTables_wrapper .dataTables_processing {
    background: rgba(50, 58, 70, 0.92);
}

html[data-bs-theme=dark] .dataTables_wrapper .dataTables_empty {
    color: #5a6270;
}

html[data-bs-theme=dark] .dataTables_wrapper table.table-bordered {
    border-color: #474e59;
}

html[data-bs-theme=dark] .dataTables_wrapper table.table-bordered thead th {
    border-right-color: #474e59 !important;
}

html[data-bs-theme=dark] .dataTables_wrapper table.table-bordered tbody td {
    border-right-color: #474e59 !important;
}

html[data-bs-theme=dark] .dataTables_wrapper table.dataTable > tbody > tr.child ul.dtr-details > li {
    border-bottom-color: #474e59;
}

/* Dark Mode: Static table-modern */
html[data-bs-theme=dark] .table-modern {
    border-color: #474e59;
}

html[data-bs-theme=dark] .table-modern thead th {
    background: #363e4a;
    color: #adb5bd;
    border-bottom-color: #474e59;
}

html[data-bs-theme=dark] .table-modern tbody tr {
    background-color: #323a46;
}

html[data-bs-theme=dark] .table-modern tbody tr:nth-child(even) {
    background-color: #2e3640;
}

html[data-bs-theme=dark] .table-modern tbody tr:hover {
    background-color: #3a3228;
}

html[data-bs-theme=dark] .table-modern tbody td {
    color: #d8dfe7;
    border-bottom-color: #474e59;
}

/* Dark Mode: Fix bg-dark inversion (Bootstrap swaps --bs-dark in dark mode) */
html[data-bs-theme=dark] .bg-dark {
    background-color: #1a1e24 !important;
}

html[data-bs-theme=dark] .bg-dark.text-white {
    color: #d8dfe7 !important;
}

/* Badge subtle text fixes (light colors on subtle bg are unreadable) */
.badge.bg-warning-subtle {
    color: #997404 !important;
}
.badge.bg-primary-subtle {
    color: var(--bs-primary) !important;
}

.irfollower {
    background: #26B6FF;
}

    .irfollower a, .main-nav .irfollower .menu-arrow::after, .irfollower iconify-icon {
        color: white !important;
    }

.instaplus {
    background: #d82aad;
}

    .instaplus a, .main-nav .instaplus .menu-arrow::after, .instaplus iconify-icon {
        color: white !important;
    }

.bg-discount {
    background-color: #fcfcfc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none !important;
}

html[data-bs-theme=dark] .bg-discount {
    background-color: #2e3640;
    border-color: #474e59;
}

/* ===== Dark Mode: Choices.js ===== */
html[data-bs-theme=dark] .choices__inner {
    background-color: #363e4a;
    border-color: #474e59;
    color: #d8dfe7;
}

html[data-bs-theme=dark] .choices__input {
    background-color: #363e4a;
    color: #d8dfe7;
}

html[data-bs-theme=dark] .choices[data-type*=select-one] .choices__input {
    background-color: #323a46;
    border-bottom-color: #474e59;
    color: #d8dfe7;
}

html[data-bs-theme=dark] .choices__list--dropdown,
html[data-bs-theme=dark] .choices__list[aria-expanded] {
    background-color: #323a46;
    border-color: #474e59;
}

html[data-bs-theme=dark] .choices__list--dropdown .choices__item--selectable.is-highlighted,
html[data-bs-theme=dark] .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: #3a3228;
}

html[data-bs-theme=dark] .choices__heading {
    border-bottom-color: #474e59;
    color: #8a929b;
}

html[data-bs-theme=dark] .choices[data-type*=select-one]::after {
    border-color: #8a929b transparent transparent;
}

html[data-bs-theme=dark] .choices[data-type*=select-one].is-open::after {
    border-color: transparent transparent #8a929b;
}

html[data-bs-theme=dark] .is-focused .choices__inner,
html[data-bs-theme=dark] .is-open .choices__inner {
    border-color: #5a6270;
}

.choices__list.choices__list--dropdown {
    z-index: 200;
}

/* Level comparison modal dark mode */
html[data-bs-theme=dark] .level-modal {
    background: #2a3142;
}

html[data-bs-theme=dark] .level-icon-wrapper {
    background: #1a3a2a;
}

html[data-bs-theme=dark] .level-item {
    background: #363e4a;
    color: #d8dfe7;
}

html[data-bs-theme=dark] .level-item.active {
    background: linear-gradient(90deg, #31c77b, #0d6b3a);
    color: #fff;
}

html[data-bs-theme=dark] .level-box {
    background: #323a46;
}

html[data-bs-theme=dark] .level-benefits li {
    color: #d8dfe7;
}

html[data-bs-theme=dark] .price-box {
    background: #323a46;
}

html[data-bs-theme=dark] .price-list li {
    color: #d8dfe7;
}

/* Static pages style */
body.static-page {
    background: linear-gradient(to bottom right, #ffffff, #f3f3f3);
    min-height: 100vh;
}

.static-page .glass-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.static-page .login-img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.static-page .google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #444;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.static-page .telegram-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin: 0 auto;
    max-width: 320px;
}

    .static-page .telegram-support img {
        width: 20px;
        height: 20px;
    }

.static-page form {
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
}

.static-page input {
    direction: ltr;
    text-align: left;
}

.static-page .google-login img {
    width: 20px;
    height: 20px;
}

.static-page .google-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.static-page .logo {
    max-width: 230px;
    margin: 0 auto 16px;
    display: block;
}

.static-page input::placeholder {
    text-align: right;
}

.static-page .login-form {
    padding: 3rem;
}

.static-page .p-md-5 {
    padding: 3rem !important;
}

@media (max-width: 768px) {
    .static-page .glass-box {
        max-width: 95% !important;
    }

    .static-page .login-img {
        height: 230px;
    }

    .static-page .login-form {
        padding: 2.5rem 2rem;
    }

    .static-page .logo {
        max-width: 170px;
        margin: 0 auto 20px;
    }

    .static-page .google-login {
        font-size: 15px;
        padding: 10px 14px;
    }

    .static-page input {
        font-size: 16px;
        padding: 12px;
    }

    .static-page button.btn-danger {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .static-page .login-form {
        padding: 2rem 1.5rem;
    }

    .static-page .logo {
        max-width: 200px;
    }

    .static-page h2 {
        font-size: 22px;
    }

    .static-page .google-login {
        font-size: 14px;
        padding: 10px 12px;
    }

    .static-page input {
        font-size: 15px;
    }

    .static-page .login-phone {
        object-fit: cover;
        width: 100%;
        height: 150px;
        border-radius: 16px;
        margin-bottom: 20px;
    }
}

@media (max-height: 670px) {
    .static-page .login-phone {
        display: none !important;
    }
}


.verify-phone-popup {
    background: none;
}

    .verify-phone-popup .swal2-html-container {
        max-height: inherit !important;
    }


.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.4rem;
    color: #888;
}

.ltr-password .password-toggle {
    left: auto;
    right: 12px;
}


.password-toggle:hover {
    color: #444;
}


input.form-control.password-center::placeholder {
    text-align: center;
}

/* ── Negative Price (Order Summary) ── */
.price-negative {
    display: inline-flex;
    direction: ltr;
    gap: 3px;
}

/* ── Footer Enhancement ── */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-bs-theme=dark] .footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme=dark] .footer .badge {
    background: rgba(255, 255, 255, .1) !important;
}