﻿.en {
    direction: ltr;
}

.emojionearea-button {
    display: none;
}

.sw > .tab-content {
    overflow: unset !important;
}

.badge-outline-primary {
    color: #0d6efd;
    border: 1px solid #0d6efd;
    background-color: transparent;
}

.badge-outline-success {
    color: #198754;
    border: 1px solid #198754;
    background-color: transparent;
}

.badge-outline-info {
    color: #1273eb;
    border: 1px solid #1273eb;
    background-color: transparent;
}

.badge-outline-danger {
    color: #dc3545;
    border: 1px solid #dc3545;
    background-color: transparent;
}

.badge-outline-secondary {
    color: #394758;
    border: 1px solid #394758;
    background-color: transparent;
}

.bug-img {
    position: absolute;
    width: 16px;
    left: -5px;
    top: 5px;
    color: #1173eb;
}

.btn-handleResend i {
    font-size: .7rem !important;
    margin-right: 5px;
    color: #f10000;
}

[class^="icon-"], [class*=" icon-"] {
    text-shadow: none;
}

.QueueNumber {
    position: relative;
}

#mMsg {
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.row > * {
    padding-left: 0;
    padding-right: 0;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-left: 20px;
    margin-top: 5px;
}

.custom-bordered-table {
    border: none;
    margin: 0px;
}

    .custom-bordered-table tr {
        border-bottom: 1px solid #dee2e6;
    }

button i {
    margin-left: 3px;
}

.smsnumberlist-bootstrap .btn {
    padding: 1rem 1rem;
    min-height: 70px;
    text-align: right;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smsnumberlist-bootstrap .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.6em;
    white-space: nowrap;
}

.mds-bs-persian-datetime-picker-popover {
    font: 400 .8rem IRANSansXFA;
}

.QueueNewMsg {
    /*    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 5;*/
}

.form-select:focus {
    box-shadow: none;
}

.btn-sm {
    padding: .3rem .5rem;
}

.btn {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    margin-right: 3px;
    padding: 0.5em 1em;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    outline: none;
}

    .btn-check:focus + .btn, .btn:focus {
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }

    .btn.dropdown-toggle.show:focus,
    .btn-check:checked + .btn:focus,
    .btn-check:active + .btn:focus, .btn:active:focus, .btn.active:focus {
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }

    .btn i {
        margin: auto;
        font-size: .7rem;
    }

.btn-success {
    color: #ffffff;
    background-color: RGBA(var(--bs-success-rgb),var(--bs-bg-opacity,1)) !important;
    border-color: #5dab18;
}

.btn-xs {
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

.btn-outline-brown {
    color: #88550c;
    background-color: transparent;
    border-color: #88550c;
}

    .btn-outline-brown:hover {
        color: #fff !important;
        background-color: #88550c;
    }

.btn-outline-barberry {
    color: #9f062b;
    background-color: transparent;
    border-color: #9f062b;
}

    .btn-outline-barberry:hover {
        color: #fff !important;
        background-color: #9f062b;
    }

.btn-outline-black {
    background-color: transparent;
    border-color: #2f2f2f;
    color: #2f2f2f !important;
}

    .btn-outline-black:hover {
        background-color: #2f2f2f;
        color: #fff !important;
    }


.datepickerclose {
    position: absolute;
    left: 50px;
    z-index: 1;
    top: 11px;
    cursor: pointer;
    display: none;
    font-weight: 800;
}

.sidebar-wrapper .sidebar-tabs .nav a.logo img {
    width: 40px;
    height: auto;
    /*background-color:#000;*/
}

.sidebar-wrapper .sidebar-tabs .nav a.nav-link .nav-link-text {
    padding: 5px 12px;
    background: #0000007d;
    color: #ffffff;
    display: none;
    position: absolute;
    right: 60px;
    font-size: .7rem;
    top: 17px;
    z-index: 100;
    border-radius: 2px;
    width: 100px;
    border-radius: 5px;
}

    .sidebar-wrapper .sidebar-tabs .nav a.nav-link .nav-link-text:before {
        content: '';
        position: absolute;
        right: -5px;
        top: 8px;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 5px solid #0000007d;
    }

.consulting-card .consulting-card-bg {
    background-image: url('../theme/unipro/img/trophy.svg');
    bottom: -50px;
}

.sidebar-actions > a > h5 {
    margin: 0 0 10px 0px;
}

.card {
    margin-bottom: 10px;
}

div.dt-buttons {
    padding: 0 0 5px 0;
}

.table > :not(caption) > * > * {
    background-color: transparent;
}

table.dataTable td i {
    font-size: 1rem;
}

table.dataTable th {
    text-align: center;
}

table.dataTable td {
    text-align: center;
}

div.dataTables_wrapper div.dataTables_length select {
    width: 40px;
    padding: 3px;
}

div.dataTables_wrapper div.dataTables_info {
    padding: 0.635em 1.5em;
    margin-top: 3px;
    border-radius: 0;
}

div.dataTables_wrapper div.dataTables_paginate {
    margin: 0px 0 0 0;
}

.pagination {
    --bs-pagination-border-radius: 0;
}

.form-actions-footer {
    padding: 6px;
}

.help-block i {
    margin-right: 0px;
    margin-left: 10px;
}

.badge {
    font-size: 0.98em;
}


.dl_android, .dl_ios {
    margin-top: 6px;
    background: url(/image/MobileApp/pattern.png) repeat-x;
    height: 120px;
    display: inline-block;
    position: relative;
    width: 960px;
    border-right: 1px solid #bdbdbd;
}

.dl_android_logo {
    background: url(/image/MobileApp/ic_android.png) no-repeat;
    height: 120px;
    width: 128px;
    position: absolute;
    left: 0;
}

.dl_ios_logo {
    background: url(/image/MobileApp/icon_iphone.png) no-repeat;
    height: 120px;
    width: 128px;
    position: absolute;
    left: 0;
}

.dl_app_box {
    position: absolute;
    right: 0;
    width: 831px;
    height: 120px;
}

.dl_app_box_main {
    position: relative;
    width: 831px;
    height: 120px;
}

.dl_app_box_main_right {
    position: relative;
    width: 413px;
    height: 120px;
    float: right;
}

.dl_app_box_main_left {
    position: relative;
    width: 413px;
    height: 120px;
    float: left;
}

.dl_app_box_main_div {
    position: relative;
    margin-top: 11px;
    width: 2px;
    height: 98px;
    float: left;
    background: url(/image/MobileApp/divider.png) no-repeat;
}

.download_app_text {
    width: 280px;
    height: 40px;
    float: right;
    margin-top: 44px;
    text-align: justify;
    font-size: 11px;
    font-weight: bolder;
    margin-right: 13px;
    z-index: 200;
}

.download_btn_android {
    position: relative;
    margin-top: 20px;
    margin-left: 22px;
    width: 82px;
    height: 84px;
    float: left;
    background: url(/image/MobileApp/icon_download.png) no-repeat;
}

.download_btn_ios {
    position: relative;
    margin-top: 20px;
    margin-left: 22px;
    width: 95px;
    height: 87px;
    float: left;
    background: url(/image/MobileApp/icon_sibche.png) no-repeat;
}

.ico_singlesend, .ico_group, .ico_sendlist, .ico_setting, .ico_inbox, .ico_message, .ico_time {
    height: 30px;
    width: 30px;
    float: right;
}

.ico_singlesend {
    background: url(/image/MobileApp/ic_send.png) no-repeat;
}

.ico_message {
    background: url(/image/MobileApp/ic_messasge.png) no-repeat;
}

.ico_group {
    background: url(/image/MobileApp/ic_total_message.png) no-repeat;
}

.ico_inbox {
    background: url(/image/MobileApp/ic_recive.png) no-repeat;
}

.ico_sendlist {
    background: url(/image/MobileApp/ic_send.png) no-repeat;
}

.ico_setting {
    background: url(/image/MobileApp/ico_setting.png) no-repeat;
}

.ico_time {
    background: url(/image/MobileApp/ic_time.png) no-repeat;
}

.ico_phonebook, .ico_add, .ico_setting_login {
    width: 20px;
    height: 20px;
    display: -webkit-inline-box;
    display: inline-flex;
    margin-left: 4px;
    display: inline-block;
}

.ico_phonebook {
    background: url(/image/MobileApp/btn_phonebook.png) no-repeat;
}

.ico_add {
    background: url(/image/MobileApp/btn_add.png) no-repeat;
}

.ico_setting_login {
    background: url(/image/MobileApp/btn_setting.png) no-repeat;
    width: 43px;
    height: 43px;
}

.info_mob_left p {
    font-weight: bolder;
}

.field-wrapper .field-placeholder {
    top: -13px;
}

.form-control {
    min-height: unset;
}

.form-select {
    font-size: .725rem;
}

.input-group-text {
    min-height: unset;
}

.form-control[readonly] {
    background: #fff;
    cursor: not-allowed;
}

.alert-outline {
    border: 1px solid transparent;
    padding: 1rem;
    border-radius: 0.375rem;
    background-color: transparent;
}

/* Primary */
.alert-outline-primary {
    color: #084298;
    border: 1px solid #b6d4fe;
    background-color: rgba(13, 110, 253, 0.01);
}

/* Secondary */
.alert-outline-secondary {
    color: #41464b;
    border: 1px solid #d6d8db;
    background-color: rgba(108, 117, 125, 0.01);
}

/* Success */
.alert-outline-success {
    color: #0f5132;
    border: 1px solid #5dab18;
    background-color: rgba(25, 135, 84, 0.01);
}

/* Danger */
.alert-outline-danger {
    color: #842029;
    border: 1px solid #ec4f3d;
    background-color: rgba(220, 53, 69, 0.01);
}

/* Warning */
.alert-outline-warning {
    color: #664d03;
    border: 1px solid #e4b42b;
    background-color: rgba(255, 193, 7, 0.01);
}

/* Info */
.alert-outline-info {
    color: #055160;
    border: 1px solid rgb(13 202 240);
    background-color: rgba(13, 202, 240, 0.01);
}

/* Light */
.alert-outline-light {
    color: #636464;
    border: 1px solid #fefefe;
    background-color: rgba(248, 249, 250, 0.01);
}

/* Dark */
.alert-outline-dark {
    color: #141619;
    border: 1px solid #c6c8ca;
    background-color: rgba(33, 37, 41, 0.01);
}

.dropdown-menu {
    width: 19rem;
}

    .dropdown-menu:before {
        left: unset;
        right: 12px;
    }

@media (max-width: 560px) {
    .sidebar-wrapper .sidebar-tabs .nav a.nav-link:hover .nav-link-text {
        display: none;
    }

    .input-group-text {
        padding: .75rem .25rem;
    }

    .btn-sm {
        padding: .3rem .3rem;
    }
}

@media (max-width: 767px) {
    .sunmobilelist tr {
        display: block;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        margin-bottom: 12px;
        overflow: hidden;
        background: #fff;
        position: relative;
        padding: 0;
    }

        .sunmobilelist tr:first-child {
            display: none !important;
        }

    .sunmobilelist td {
        display: grid;
        grid-template-columns: 90px 1fr;
        align-items: center;
        padding: 6px 10px !important;
        font-size: 14px;
        border: none !important;
        line-height: 1.4;
    }

    .sunmobilelist tr td:nth-child(odd) {
        background-color: #f8f9fa;
    }

    .sunmobilelist td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #fff;
        text-align: right;
        background: #1173eb;
        padding: 3px 8px;
        border-radius: 6px;
        margin-left: 6px;
        font-size: 13px;
    }

    .sunmobilelist td.hidden-checkbox-td,
    .sunmobilelist td.hidden-button-td {
        display: none !important;
    }

    .sunmobilelist .mobile-top-checkbox {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 2;
        text-align: left;
    }

        .sunmobilelist .mobile-top-checkbox::before {
            content: none !important;
        }

        .sunmobilelist .mobile-top-checkbox input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid #1173eb;
            border-radius: 4px;
            background-color: #fff;
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease-in-out;
        }

            .sunmobilelist .mobile-top-checkbox input[type="checkbox"]::before {
                content: "";
                position: absolute;
                width: 10px;
                height: 10px;
                top: 3px;
                left: 3px;
                background-color: #1173eb;
                opacity: 0;
                border-radius: 2px;
                transition: opacity 0.2s ease-in-out;
            }

            .sunmobilelist .mobile-top-checkbox input[type="checkbox"]:checked::before {
                opacity: 1;
            }

    .sunmobilelist .mobile-actions-cell {
        display: flex !important;
        justify-content: flex-end; /* ✅ دکمه عملیات سمت چپ */
        padding: 10px !important;
    }

        .sunmobilelist .mobile-actions-cell::before {
            content: none !important;
        }

        .sunmobilelist .mobile-actions-cell .dropdown {
            width: auto;
        }

        .sunmobilelist .mobile-actions-cell .dropdown-toggle {
            width: auto;
        }

    .sunmobilelist .dropdown-menu {
        background: #f8f9fa;
        border-radius: 8px;
        direction: rtl; /* ✅ برای راست‌چین شدن آیتم‌ها */
        text-align: right;
    }

        .sunmobilelist .dropdown-menu .dropdown-item {
            font-size: 14px;
            padding: 6px 10px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 6px;
        }

            .sunmobilelist .dropdown-menu .dropdown-item i {
                margin-left: 6px;
                margin-right: 0;
            }

        .sunmobilelist .dropdown-menu .dropdown-divider {
            margin: 4px 0;
        }
}


/* ====== حالت 1300 به بالا ====== */
@media (min-width: 1300px) {
    .only-1300 {
        display: block !important;
    }

    .only-below-1300 {
        display: none !important;
    }
}

/* ====== حالت کمتر از 1300 ====== */
@media (max-width: 1299px) {
    .only-below-1300 {
        display: block !important;
    }

    .only-1300 {
        display: none !important;
    }
}


.pos-left {
    position: absolute;
    left: 10px;
    top: 5px;
}


.disable-item {
    opacity: 0.3;
}

.modal-size-lg .modal-dialog {
    max-width: 80vh !important;
}

.modal-size-xl .modal-dialog {
    max-width: 95vh !important;
}

.modal-size-md .modal-dialog {
    max-width: 70vh !important;
}

.modal-size-tall .modal-content {
    /*min-height: 50vh !important;*/
}



/* ===== Backdrop ===== */
.swal2-container.sunway-win-container {
    direction: rtl;
    /*font-family: IRANSans, Vazirmatn, Tahoma, sans-serif;*/
    backdrop-filter: blur(6px);
    background: rgba(15, 23, 42, 0.55) !important;
}

/* ===== پوسته اصلی دیالوگ (بدون padding داخلی SweetAlert) ===== */
.swal2-popup.sunway-win-shell {
    padding: 0;
    width: 430px;
    max-width: 96vw;
    border-radius: 12px;
    background: #f9fafb;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.65), 0 0 0 1px rgba(148, 163, 184, 0.6);
    overflow: hidden;
}

/* ===== کل ساختار داخل پنجره ===== */
.sunway-win-dialog {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== نوار عنوان بالا (title bar) ===== */
.sunway-win-titlebar {
    height: 36px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #2563eb, #1d9bf0);
    color: #eef2ff;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.sunway-win-title-left {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
}

.sunway-win-title-icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.sunway-win-title-text {
    font-size: 0.82rem;
    font-weight: 600;
}

/* دکمه X (فقط ظاهری – بستن اصلی با ESC/کلیک انجام می‌شود) */
.sunway-win-btn-close {
    width: 28px;
    height: 22px;
    border-radius: 3px;
    border: none;
    background: transparent;
    color: #f9fafb;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

    .sunway-win-btn-close:hover {
        background: rgba(239, 68, 68, 0.85);
    }

/* ===== بدنه میانی (آیکون + متن) ===== */
.sunway-win-body {
    padding: 14px 16px 10px;
    background: #f9fafb;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 10px;
    min-height: 80px;
}

.sunway-win-body-icon {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.65), 0 4px 10px rgba(15, 23, 42, 0.18);
}

    .sunway-win-body-icon span {
        font-size: 22px;
        font-weight: 800;
    }

.sunway-win-body-text {
    flex: 1;
    font-size: 0.9rem;
    color: #111827;
    line-height: 1.9;
}

/* ===== متن اضافی (در صورت نیاز) ===== */
.sunway-win-body-subtext {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    white-space: pre-line;
}

/* ===== نوار پایینی و دکمه‌ها ===== */
.swal2-actions.sunway-win-actions {
    margin: 0;
    padding: 8px 10px 10px;
    border-top: 1px solid #d1d5db;
    background: #e5e7eb;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end; /* مثل ویندوز: دکمه‌ها سمت راست فیزیکی */
    gap: 6px;
}

.sunway-win-btn {
    min-width: 86px;
    padding: 4px 16px 5px;
    border-radius: 3px;
    border: 1px solid #9ca3af;
    background: linear-gradient(180deg, #ffffff, #e5e7eb);
    font-size: 0.82rem;
    font-weight: 500;
    color: #111827;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    cursor: pointer;
    transition: background 0.1s ease, box-shadow 0.1s ease, transform 0.08s ease;
}

.sunway-win-btn-primary {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.sunway-win-btn:hover {
    background: linear-gradient(180deg, #f9fafb, #d1d5db);
}

.sunway-win-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 1px rgba(31, 41, 55, 0.7) inset;
}

/* ===== رنگ آیکون‌ها بر اساس نوع ===== */
.sunway-type-success .sunway-win-body-icon span {
    color: #16a34a;
}

.sunway-type-error .sunway-win-body-icon span {
    color: #dc2626;
}

.sunway-type-warning .sunway-win-body-icon span {
    color: #d97706;
}

.sunway-type-info .sunway-win-body-icon span {
    color: #2563eb;
}

/* موبایل */
@media (max-width: 576px) {
    .swal2-popup.sunway-win-shell {
        width: 100%;
    }
}

.sunway-win-container .swal2-html-container {
    margin: 0 !important;
}

/* TitleBar پایه */
.sunway-win-titlebar {
    height: 42px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ===== رنگ‌های پویا بر اساس نوع ===== */

/* INFO – آبی */
.sunway-type-info .sunway-win-titlebar {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

/* SUCCESS – سبز */
.sunway-type-success .sunway-win-titlebar {
    background: linear-gradient(90deg, #059669, #10b981);
}

/* WARNING – نارنجی/طلایی */
.sunway-type-warning .sunway-win-titlebar {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

/* ERROR – قرمز */
.sunway-type-error .sunway-win-titlebar {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

/* آیکون داخل هدر (سمت راست) */
.sunway-win-titlebar .sunway-win-body-icon {
    width: 20px;
    height: 20px;
    border-radius: 8px;
    margin-left: 2px;
    margin-right: auto;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

    .sunway-win-titlebar .sunway-win-body-icon span {
        font-size: 18px;
        font-weight: 700;
    }



/* --------------------------
   TitleBar رنگ ثابت Bootstrap
--------------------------- */

/* INFO → bg-info (#0dcaf0) */
.sunway-type-info .sunway-win-titlebar {
    background: #0dcaf0;
    color: #ffffff;
}

/* SUCCESS → bg-success (#198754) */
.sunway-type-success .sunway-win-titlebar {
    background: #198754;
    color: #ffffff;
}

/* WARNING → bg-warning (#ffc107) */
.sunway-type-warning .sunway-win-titlebar {
    background: #ffc107;
    color: #111827; /* در زرد نوشته باید تیره باشد */
}

/* ERROR → bg-danger (#dc3545) */
.sunway-type-error .sunway-win-titlebar {
    background: #dc3545;
    color: #ffffff;
}


.sunway-win-body-text {
    text-align: justify;
}



/* فقط برای دیالوگ‌هایی که کلاس sunway-long دارند: متن اسکرول بخورد */
.sunway-win-dialog.sunway-long .sunway-win-body {
    max-height: 340px; /* ارتفاع ثابت برای متن */
    overflow-y: auto; /* فقط متن اسکرول می‌شود */
}

/* فقط برای دیالوگ‌های بلند: پنجره کمی عریض‌تر شود */
.sunway-win-shell-long {
    width: 780px !important;
    max-width: 90vw;
}


.btn-black {
    background-color: #394758 !important;
    color: #fff !important;
}

.btn-darkblue {
    color: #fff;
    background-color: #2a384a;
}

.btn-outline-darkblue {
    color: #6c757d;
    border-color: #2a384a;
}

    .btn-outline-darkblue:hover {
        color: #fff;
        background-color: #2a384a;
        border-color: #2a384a;
    }

.hidden {
    display: none !important;
}

.hover {
    cursor: pointer !important;
}

.center {
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
}
