:root {
    --body-bg-rgb: 246, 246, 251;
    --primary-rgb: 28, 63, 170;
    --secondary-rgb: 244, 110, 244;
}

.dropzone {
    min-height: 150px;
    border: 2px dashed rgba(0, 0, 0, .3) !important;
    background: #fff !important;
    padding: 50px 20px !important;
    margin: 20px 0;
    text-align: center;
}

.img-dropzone {
    width: 150px;
    filter: opacity(0.5);
}

.card-img-top-file {
    height: 150px !important;
}

.form-check-input {
    width: 1.2rem !important;
    height: 1.2rem !important;
    margin: -2px 5px !important;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    height: 36px !important;
}

.box-image {
    max-height: 180px;
    height: 170px;
    object-fit: contain;
}

.box-image img {
    height: 170px;
    object-fit: contain;
}

.dataTables_filter input {
    width: 300px !important;
    border: 1px solid #aaa !important;
    border-radius: 5px !important;
    padding: 10px !important;
    margin-bottom: 15px !important;
}

.box-radio {
    border: 1px solid #dee7f1;
    padding: 7px 0px;
    border-radius: 5px;
}

.file-item-img {
    height: 134px;
    object-fit: contain;
}

[dir="rtl"] .select2-container .select2-search--inline .select2-search__field {
    font-family: inherit;
}

.select-notes {
    height: 43px !important;
}

.text-justify, .text-justify p {
    text-align: justify !important;
}

.text_nowrap {
    text-wrap-mode: nowrap !important;
}

#calendar {
    max-width: 100% !important;
}

.fc-h-event .fc-event-main, .fc-list-table .fc-list-event {
    color: #000 !important;
    font-size: 12px !important;
}

.fc-h-event {
    background-color: #7961f55e !important;
}

.btn-secondary {
    background-color: rgb(187 187 187) !important;
    border-color: rgb(189 189 189) !important;
    color: #fff !important;
}

input[type="color"] {
    height: 37px !important;
}

.relative-box-custom {
    background: #f1f1f1;
    padding: 10px;
    margin-bottom: 30px !important;
    border-radius: 5px;
}

.request-activities-schedule-status {
    top: -13px;
    left: 5px;
}

.modal-body p span {
    font-weight: bold !important;
    margin: 0 3px !important;
}

[data-header-styles="light"] {
    --header-bg: #1c3faa !important;
    --header-border-color: #1c3faa !important;
    --header-prime-color: #ffffff !important;
}

[data-menu-styles="light"] {
    --menu-bg: #1c3faa !important;
    --menu-prime-color: #ffffff !important;
    --menu-border-color: #1c3faa !important;
}

.animated-arrow span, .animated-arrow span:before, .animated-arrow span:after {
    background-color: #ffffff !important;
}

.app-sidebar .side-menu__item.active, .app-sidebar .slide-menu.child1 .side-menu__item:hover,
.app-sidebar .side-menu__item:hover, .app-sidebar .side-menu__item:hover .side-menu__icon,
.app-sidebar .side-menu__item:hover .side-menu__label,
.app-sidebar .side-menu__item:hover .side-menu__angle,
.app-sidebar .side-menu__item.active .side-menu__label, .app-sidebar .side-menu__item.active .side-menu__angle,
[data-menu-styles="light"] .app-sidebar .side-menu__item.active .side-menu__icon {
    color: #26eaff !important; /*#3dbdcb*/
}

.app-header {
    border-radius: 0 0 0 30px !important;
}

.main-header-dropdown.dropdown-menu.dropdown-menu-end.show {
    left: -10px !important;
    width: 250px !important;
}

@media (max-width: 768px) {
    .main-header-dropdown.dropdown-menu.dropdown-menu-end.show {
        width: 100% !important;
        left: 0 !important;
    }
}

.main-header-container .header-link-icon {
    width: fit-content !important;
    height: 1.7rem !important;
}

.blog-content p {
    line-height: 32px !important;
}

.fixed-card-body {
    max-height: 400px;
    /*height: 400px;*/
    overflow-y: auto;
}

.role_managements_label {
    font-size: 12px !important;
}

.fc-h-event .fc-event-main, .fc-list-table .fc-list-event {
    overflow: hidden;
}


.modal-backdrop.show:nth-of-type(2) {
    z-index: 1060 !important;
}

#modalMap {
    z-index: 1070 !important;
}

#editAddressModal {
    z-index: 1050 !important;
}

.list-group-item {
    cursor: pointer;
    transition: background 0.2s;
}

.list-group-item:hover {
    background-color: #f0f0f0;
}

.form-check-input {
    margin-left: 10px;
}

.dataTables_scrollBody {
    max-height: 350px !important;
    overflow-y: auto;
}

.card_scrollBody {
    max-height: 400px !important;
    height: 360px !important;
    overflow-x: auto;
}

.data_scrollBody {
    max-height: 480px !important;
    overflow-y: auto;
}

.dropdown-divider {
    width: 85%;
    height: 1px;
    background-color: #5c7de3;
    margin: auto !important;
}

.w-30 {
    width: 30% !important;
}

.li-a-invoice-status {
    font-size: 12px !important;
}

.row-invoice-sale-item {
    background-color: #eeeeee8f;
    padding: 7px;
    border-radius: 5px;
}

/* step section css*/

.steps-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* max-width: 800px;*/
    position: relative;
    padding: 0;
}

.steps-horizontal::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step-horizontal {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.step-description {
    font-size: 12px;
    color: #adb5bd;
    max-width: 150px;
    margin: 0 auto;
}

.step-horizontal.active .step-icon {
    background: #4361ee;
    border-color: #4361ee;
    color: white;
    box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.2);
}

.step-horizontal.complete .step-icon {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

/* step section css*/
.step-horizontal.returned .step-icon {
    background: #cc2e2e;
    border-color: #cc2e2e;
    color: white;
}

.swiper-pagination-bullet-active {
    background: var(--swiper-pagination-color, var(--swiper-theme-color)) !important;
    opacity: var(--swiper-pagination-bullet-opacity, 1) !important;
}

.swiper-pagination-bullet {
    background: var(--swiper-pagination-bullet-inactive-color, #000) !important;
}

.swiper {
    direction: rtl !important;
}

/* استایل فلش‌ها */
.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #007bff;
    color: #fff;
}

.swiper-button-next:hover svg,
.swiper-button-prev:hover svg {
    background: transparent;
    color: #fff;
}

.swiper-button-next svg, .swiper-button-prev svg {
    background: transparent;
    color: #000;
    border-radius: 2px;
    width: 20px;
    height: 20px;
}

.swiper-button-next, .swiper-button-prev {
    width: 35px !important;
    height: 35px !important;
    border-radius: 5px !important;
}

/*
    Design payment details
*/

.receipt-container {
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    line-height: 1.9;
}

.receipt-header {
    border-bottom: 2px dashed #ddd;
    padding-bottom: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.receipt-header h2 {
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 10px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.receipt-row span:first-child {
    color: #555;
    font-weight: 600;
}

.receipt-footer {
    margin-top: 30px;
    border-top: 2px dashed #ddd;
    padding-top: 20px;
    text-align: center;
    color: #777;
}

.files-box img {
    border-radius: 12px;
    height: 120px;
    object-fit: cover;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.download-btn {
    margin-top: 8px;
    border-radius: 12px !important;
}

.section-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
    border-right: 4px solid #2563eb;
    padding-right: 8px;
}

.company-section {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.company-logo {
    text-align: center;
    width: 170px;
    height: auto;
}


.me-10 {
    margin-left: 10rem !important;
}

.company-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.text-invoice-header {
    top: 40px;
    right: 75px;
    font-size: 25px;
    font-weight: bold;
}

.job-history-row {
    background: #dddddd63;
    padding: 10px;
    border-radius: 3px;
}

.alert-light {
    background-color: rgb(227 236 245) !important;
}

.avatar.avatar-xl {
    width: 6rem !important;
    height: 6rem !important;
}

.border-business {
    border: 2px solid var(--default-border) !important;
}

.table th, .table td {
    vertical-align: middle;
}

.serial-list {
    max-height: 200px;
    overflow-y: auto;
}

.serial-list::-webkit-scrollbar {
    width: 4px;
}

.serial-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.pagination {
    margin-bottom: 0;
}

.page-link {
    padding: 0.375rem 0.75rem;
}

.warehouse-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* style show profile */
/* Profile View Card Styles */
.profile-view-card {
    background-color: #6a85d7;
    overflow: hidden;
    position: relative;
    border-radius: 0.3rem;
}

.profile-view-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.profile-header {
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-status-badge.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.profile-status-badge.inactive {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.profile-name {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-username {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 20px;
}

.profile-username i {
    margin-left: 5px;
}

.profile-info-grid {
    background: white;
    border-radius: 20px;
    margin: 0 20px 20px;
    padding: 30px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: #f8f9fa;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 22px;
    color: white;
}

.info-icon.roles {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-icon.businesses {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.info-icon.status {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.info-content {
    flex: 1;
}

.info-label {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 5px;
}

.info-value {
    color: #343a40;
    font-size: 16px;
    font-weight: 600;
}

.role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.business-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin: 3px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

/* Stats Cards */
.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 120px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6c757d;
    font-size: 13px;
    margin-top: 5px;
}


/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===== آمار - کارت‌های وضعیت ===== */
.stat-status-card {
    border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    transition: transform .15s, box-shadow .15s;
    border: 1px solid rgba(0,0,0,.06);
}
.stat-status-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.stat-status-card .stat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.stat-status-card .stat-body { flex: 1; min-width: 0; }
.stat-status-card .stat-count { font-size: 20px; font-weight: 700; line-height: 1.2; }
.stat-status-card .stat-amount { font-size: 11px; color: #6c757d; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-status-card .stat-label { font-size: 12px; font-weight: 600; }

/* ===== کارت مجموع ===== */
.summary-metric-card {
    border-radius: 16px; padding: 20px 22px;
    position: relative; overflow: hidden;
}
.summary-metric-card .metric-val { font-size: 28px; font-weight: 800; }
.summary-metric-card .metric-label { font-size: 13px; opacity: .85; }
.summary-metric-card .metric-icon { position: absolute; left: -10px; bottom: -10px; font-size: 72px; opacity: .12; }

/* ===== KPI سرنخ ===== */
.lead-kpi-card { border-radius: 12px; padding: 14px; text-align: center; border: 1.5px solid transparent; transition: border-color .15s; }
.lead-kpi-card:hover { border-color: #dee2e6; }
.lead-kpi-card .kpi-val { font-size: 24px; font-weight: 800; line-height: 1; }
.lead-kpi-card .kpi-label { font-size: 11px; color: #6c757d; margin-top: 4px; }

/* ===== پنل‌های پیگیری ===== */
.followup-panel { border-radius: 14px; overflow: hidden; }
.followup-panel-header { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; }
.followup-panel-body { max-height: 320px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.followup-panel-body::-webkit-scrollbar { width: 4px; }
.followup-panel-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }

/* ===== کارت مخاطب پیگیری ===== */
.contact-fu-card {
    background: #fff; border-radius: 10px; border: 1px solid #e9ecef;
    padding: 10px 12px; display: flex; align-items: center; gap: 10px; transition: box-shadow .15s;
}
.contact-fu-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.contact-fu-card .fu-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #dee2e6; }
.contact-fu-card .fu-body { flex: 1; min-width: 0; }
.contact-fu-card .fu-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #2d3748; }
.contact-fu-card .fu-phone { font-size: 11px; color: #718096; direction: ltr; }
.contact-fu-card .fu-title { font-size: 11px; color: #4a5568; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-fu-card .fu-date { font-size: 10px; color: #a0aec0; margin-top: 1px; }
.contact-fu-card .fu-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.contact-fu-card .fu-actions a,
.contact-fu-card .fu-actions button {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; border: none; cursor: pointer; text-decoration: none; transition: opacity .15s;
}
.contact-fu-card .fu-actions a:hover,
.contact-fu-card .fu-actions button:hover { opacity: .8; }
.fu-empty { text-align: center; padding: 20px; color: #a0aec0; font-size: 13px; }

/* ===== مودال Quick View ===== */
#modalQuickView .modal-header { background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); }
#modalQuickView .qv-customer-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); }
.qv-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #5e6e82; border-bottom: 2px solid #e9ecef; padding-bottom: 5px; margin-bottom: 10px; }
.qv-item-card { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; border: 1px solid #e9ecef; background: #fff; margin-bottom: 5px; font-size: 12px; }
.qv-item-card .qv-item-name { font-weight: 600; color: #2d3748; flex: 1; }
.qv-item-card .qv-item-qty { color: #718096; margin: 0 8px; }
.qv-item-card .qv-item-price { color: #38a169; font-weight: 700; white-space: nowrap; }

/* ===== ردیف اقلام جدول ===== */
.invoice-items-row td { border-top: none !important; padding-top: 4px !important; padding-bottom: 8px !important; }
.inv-item-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 6px; font-size: 11px;
    background: #fff; border: 1px solid #e2e8f0; white-space: nowrap;
    margin: 2px;
}
.inv-item-chip .chip-name { font-weight: 600; color: #2d3748; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.inv-item-chip .chip-qty { color: #718096; }
.inv-item-chip .chip-price { color: #38a169; font-weight: 700; }


.custom-scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

/* Chrome, Edge, Safari */
.custom-scroll::-webkit-scrollbar {
    height: 14px; /* ضخامت اسکرول افقی */
}

.custom-scroll::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 20px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 20px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Firefox */
.custom-scroll {
    scrollbar-width: auto;
    scrollbar-color: #0d6efd #e9ecef;
}