/* =============================
   Layout / Containers
============================= */
.mainContainer {
    max-width: 460px;
    min-width: 360px;
    margin: 19px auto !important;
    min-height: 100vh;
    padding: 0 0 30px 0;
    overflow-wrap: break-word; /* شکستن متن‌های خیلی بلند */
    word-wrap: break-word;
}
    .mainContainer * {
        box-sizing: border-box;
    }
    .mainContainer :where(img, video, iframe) {
        max-width: 100% !important;
        height: auto !important;
        display: block; /* برای جلوگیری از بیرون‌زدگی‌های ریز */
    }

    /* جدول‌ها */
    .mainContainer table {
        width: 100% !important;
        border-collapse: collapse;
    }

    /* Blcokquote/Pre/Code که معمولاً می‌زنند بیرون */
    .mainContainer :where(pre, code, blockquote) {
        max-width: 100%;
        overflow: auto;
    }

    /* SVG آیکن‌ها (مثلاً h-16/w-16) */
    .mainContainer svg {
        max-width: 100%;
        height: auto;
    }
.custom-offcanvas {
    max-width: 350px;
    height: 100vh;
}

.fixItem {
    margin: auto;
}

.mainmenubody {
    background-color: #F2F3F8;
}

.profileinfobox {
    margin-top: 100px !important;
}

.profileinfoboxa {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.userinformation {
    margin-top: 55px;
}

.w-85 {
    width: 85% !important;
}

.min-w-0 {
    min-width: 0;
}

/* =============================
   Typography / Font sizes
============================= */
.font-9 {
    font-size: 9px !important;
}

.font-10 {
    font-size: 10px !important;
}

.font-11 {
    font-size: 11px !important;
}

.font-12 {
    font-size: 12px !important;
}

.font-13 {
    font-size: 13px;
}

.font-14 {
    font-size: 14px;
}

.font-16 {
    font-size: 16px !important;
}

.font-18 {
    font-size: 18px !important;
}

.font-20 {
    font-size: 20px !important;
}

.font-30 {
    font-size: 30px !important;
}

/* مجموعه دوم که در پروژه استفاده می‌شود را حفظ می‌کنیم */
.fonts-7 {
    font-size: 7px !important;
}

.fonts-9 {
    font-size: 9px !important;
}

.fonts-10 {
    font-size: 10px !important;
}

.fonts-11 {
    font-size: 11px !important;
}

.fonts-12 {
    font-size: 12px !important;
}

.fonts-13 {
    font-size: 13px !important;
}

.fonts-14 {
    font-size: 14px !important;
}

/* LTR helpers */
.ltr, .bank-card__ltr {
    direction: ltr;
    unicode-bidi: plaintext;
}

/* سایز واکنشی عدد */
.balance-amount {
    font-size: clamp(.9rem, 3.8vw, 1.1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================
   Color Utilities
============================= */
.bg1 {
    background-color: #FBF1BC !important;
}

.bg2 {
    background-color: #C2F5E2 !important;
}

.bg3 {
    background-color: #FFDFE0 !important;
}

.bg4 {
    background-color: #DDD6FF !important;
}

.bg5 {
    background-color: #C8FBF4 !important;
}

.bg6 {
    background-color: #E5E5E5 !important;
}

.bg10 {
    background-color: #FCD3D9 !important;
}

.fc1 {
    color: #E6C300 !important;
}

.fc2 {
    color: #2E9E7B !important;
}

.fc3 {
    color: #FF7A7D !important;
}

.fc4 {
    color: #6B5BFF !important;
}

.fc5 {
    color: #00B3A6 !important;
}

.fc6 {
    color: #7A7A7A !important;
}

.fc7 {
    color: #FF5252 !important;
}

.fc8 {
    color: #FF6600 !important;
}

.fc9 {
    color: #009688 !important;
}

.fc10 {
    color: #E63B50 !important;
}

.text-strike-danger {
    text-decoration: line-through;
    text-decoration-color: #d93025 !important;
}

/* =============================
   Gradients / Boxes
============================= */
.bggradient-a {
    background: radial-gradient(30% 30% at 15% 25%, rgba(255, 187, 0, 0.18) 0%, rgba(255, 187, 0, 0) 100%), radial-gradient(20% 20% at 85% 50%, rgba(35, 65, 223, 0.1) 0%, rgba(35, 65, 223, 0) 100%), radial-gradient(120% 90% at 50% 70%, rgba(0, 143, 255, 0.15) 0%, rgba(0, 143, 255, 0) 70%) !important;
    border: 1px solid #f7eecd;
    border-radius: 12px;
    padding: 3px 0 3px 12px;
}

.bggradient-b {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 3px 0 3px 12px;
}

.maxdiscountbox {
    width: 290px;
}

.discountLabel {
    font-size: 10px;
    text-decoration: line-through;
}

.discountmain, .hadith {
    font-size: 14px;
}

    .hadith div {
        font-size: 12px;
    }

/* =============================
   Menus / Tabs / Sidebar
============================= */
.btnMenu li {
    flex-grow: 1;
    padding-top: 2px;
    width: 25%;
}

    .btnMenu li a {
        display: flex;
        flex-direction: column;
        text-align: center;
        font-size: 11px;
        color: #fff;
        padding: 6px 10px;
        position: relative;
    }

        .btnMenu li a i {
            font-size: 18px;
            padding-bottom: 3px;
        }

    .btnMenu li.active a {
        color: rgb(240, 187, 11);
    }

        .btnMenu li.active a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 3px;
            background-color: rgb(240, 187, 11);
        }

.mainTab {
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .mainTab::-webkit-scrollbar {
        display: none;
    }

    .mainTab li {
        flex: 0 0 auto;
        padding: 2px 7px;
        font-size: 12px;
    }

        .mainTab li.active {
            color: rgba(217,168,11,1);
            background-color: rgba(240,187,11,.2);
            border: 1px solid rgba(240,187,11,1);
            border-radius: 5px;
        }

.sidebar-menu .nav-link {
    color: #333;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color .2s ease, color .2s ease;
}

    .sidebar-menu .nav-link:hover {
        background-color: #e9f2ff !important;
        color: #0d6efd !important;
    }

    .sidebar-menu .nav-link.active {
        background-color: #d6e9ff !important;
        color: #0d6efd !important;
        font-weight: 500;
    }

.menuuserinfoitems li {
    width: 33%;
}

    .menuuserinfoitems li i {
        font-size: 29px;
    }

.menuitems ul li {
    background-color: #fff;
    margin: 4px 0;
    border-radius: 8px;
}

    .menuitems ul li a {
        display: flex;
        align-items: center;
        padding: 5px 15px 5px 0;
        font-size: 14px;
        color: rgba(33, 37, 41, 0.75) !important;
    }

        .menuitems ul li a:hover {
            color: #000 !important;
            background-color: rgba(113, 44, 249, 0.1);
            border-radius: 5px;
            margin: 0 5px;
        }

.menuitembox {
    border-radius: 11px 11px 0 0;
    margin-top: 15px;
}

.menulevelbox {
    background-color: rgba(35, 39, 39, 1);
    font-size: 14px;
}

/* =============================
   Sliders
============================= */
.slider-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .slider-wrapper::-webkit-scrollbar {
        display: none;
    }

.slider-items {
    display: flex;
    gap: 4px;
}

.slide-box {
    scroll-snap-align: start;
}

/* =============================
   Tables / Lists / Cards
============================= */
.loanTable {
    font-size: 12px;
    margin-bottom: 60px;
}

    .loanTable .theader {
        font-size: 9px;
        font-weight: normal;
        text-align: center;
    }

    .loanTable .theader, .loanTable .trow {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .loanTable .trow {
        font-size: 14px;
        padding: 2px 0;
    }

.table12 tr td {
    font-size: 12px !important;
    vertical-align: middle;
}

.table12 tr th {
    font-size: 14px !important;
    vertical-align: middle;
}

.card {
    transition: all 0.3s ease-in-out;
}

.list-group-item {
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}

    .list-group-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    }

.ticket-card {
    display: block;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .5rem;
    margin-top: .5rem;
    color: #000;
    text-decoration: none;
    transition: all .3s ease;
    background-color: #fff;
}

    .ticket-card:hover {
        background-color: #f8f9fa;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        color: #000;
    }

.ticket-adminbox {
    background-color: #f8fbff;
}

.ticket-userbox {
    background-color: #e6fff2;
}

/* =============================
   Badges / Pills
============================= */
.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    text-shadow: none;
}

    .badge-custom i {
        font-size: 14px;
    }

.cbadge-success {
    background-color: #e6fff2;
    color: #00a870;
    border-color: #b3f0d1;
}

.cbadge-danger {
    background-color: #ffe6e6;
    color: #d93025;
    border-color: #f5b5b5;
}

.cbadge-warning {
    background-color: #fffbe6;
    color: #e6a700;
    border-color: #f5e6a1;
}

.cbadge-info {
    background-color: #e6f4ff;
    color: #007bff;
    border-color: #b3daff;
}

.cbadge-secondary {
    background-color: #f2f2f2;
    color: #6c757d;
    border-color: #d6d6d6;
}

.cbadge-primary {
    background-color: #e6f0ff;
    color: #0d6efd;
    border-color: #b3d1ff;
}

.status-pill {
    display: inline-block;
    min-height: 34px;
    line-height: 34px;
    padding: 0 .9rem;
    border-radius: 999px;
    background: var(--bs-primary-bg-subtle, #eef7ff);
    color: var(--bs-primary, #0d6efd);
    font-size: .9rem;
}

/* =============================
   Buttons / Links / Hovers
============================= */
.btn {
    transition: transform .15s ease, box-shadow .15s ease;
}

    .btn:hover {
        box-shadow: 0 6px 12px rgba(0,0,0,.08);
    }

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .flex-center i {
        margin-right: 6px;
    }

        .flex-center i:last-child {
            margin-left: 6px;
        }

.action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
    border: 1px solid transparent;
}
/* Color variants */
.action-link-success {
    background-color: #e6fff2;
    color: #00a870;
    border-color: #b3f0d1;
}

    .action-link-success:hover {
        background-color: #ccffe6;
    }

.action-link-danger {
    background-color: #ffe6e6;
    color: #d63333;
    border-color: #f0b3b3;
}

    .action-link-danger:hover {
        background-color: #ffcccc;
    }

.action-link-info {
    background-color: #e6f4ff;
    color: #0d6efd;
    border-color: #b3d7ff;
}

    .action-link-info:hover {
        background-color: #cce9ff;
    }

.action-link-warning {
    background-color: #fff9e6;
    color: #b58105;
    border-color: #ffe0a3;
}

    .action-link-warning:hover {
        background-color: #ffefcc;
    }

.action-link-secondary {
    background-color: #f0f0f0;
    color: #6c757d;
    border-color: #d6d6d6;
}

    .action-link-secondary:hover {
        background-color: #e2e2e2;
    }

.action-link-primary {
    background-color: #e6f0ff;
    color: #0d6efd;
    border-color: #b3ccff;
}

    .action-link-primary:hover {
        background-color: #ccdfff;
    }

/* Sizes */
.action-link-sm {
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 6px;
    gap: 4px;
}

.action-link-md {
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    gap: 4px;
}

.hoverbg-secondary:hover {
    background-color: rgba(233,236,239,1);
    border-radius: 5px;
}

.hoverbg-30p:hover {
    --bs-bg-opacity: 0.3;
}

/* دکمه رزرو و وام */
.reserveBtn {
    font-size: 12px;
    padding: 3px 7px !important;
    border-radius: 4px !important;
}

.vambox {
    font-size: 14px;
}

    .vambox.title {
        font-size: 9px;
    }

        .vambox.title .bankCaption {
            margin-right: 20px;
        }

        .vambox.title .loanCaption {
            margin-right: 25px;
        }

        .vambox.title .secureCaption {
            margin-right: 73px;
        }

        .vambox.title .priceCaption {
            margin-right: 30px;
        }

        .vambox.title .reserveCaption {
            margin-right: 45px;
        }

    .vambox .installment {
        font-size: 10px;
    }

    .vambox .secureIcon {
        font-size: 16px;
        min-width: 35px;
    }

    .vambox .priceBox {
        font-size: 12px;
    }

    .vambox .reserveBox {
        padding: 0 10px 0 0;
    }

/* =============================
   Upload Box
============================= */
.upload-box {
    position: relative;
    border: 1px dashed rgba(0,0,0,.2);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    background: #fff;
    display: grid;
    gap: .4rem;
    justify-items: center;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s, background-size .2s;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

    .upload-box:hover {
        border-color: rgba(13,110,253,.35);
        box-shadow: 0 8px 16px rgba(13,110,253,.08);
        transform: translateY(-2px);
    }

    .upload-box i {
        font-size: 1.25rem;
        color: var(--bs-primary, #0d6efd);
    }

    .upload-box .upload-filename {
        font-weight: 600;
        color: #333;
    }

    .upload-box small {
        color: #6c757d;
    }

    .upload-box .upload-input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

    .upload-box.selected {
        border-style: solid;
        border-color: rgba(25,135,84,.35);
        box-shadow: 0 10px 18px rgba(25,135,84,.08);
    }

        .upload-box.selected .upload-filename {
            color: var(--bs-success, #198754);
        }

    .upload-box.has-preview {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0,0,0,.35);
        border-color: rgba(255,255,255,.5);
    }

        .upload-box.has-preview .upload-filename, .upload-box.has-preview i, .upload-box.has-preview small {
            color: #f8f9fa;
        }

/* =============================
   Media / Recorder / Canvas
============================= */
.media-frame {
    background: #fff;
    padding: .8rem;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    box-shadow: 0 6px 14px rgba(0,0,0,.05);
    transition: box-shadow .2s ease, transform .2s ease;
}

    .media-frame:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,.08);
        transform: translateY(-2px);
    }

#video, #canvas {
    border: 1px solid rgba(0,0,0,.06);
}

.sticky-btns {
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,.9);
    padding: .75rem;
    border-top: 1px solid rgba(0,0,0,.05);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.rec-dot {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: var(--bs-danger, #dc3545);
}

    .rec-dot::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--bs-danger, #dc3545);
        display: inline-block;
        animation: recBlink 1s infinite;
    }

@keyframes recBlink {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .2;
    }
}

/* پیشرفت نرم */
.soft-progress {
    border-radius: 999px;
    background: rgba(13,110,253,.06);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
}

    .soft-progress .progress-bar {
        border-radius: 999px;
        transition: width .4s ease;
    }

/* =============================
   Callouts / Steps
============================= */
.callout {
    border-radius: .75rem;
    padding: .9rem 1rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 10px rgba(0,0,0,.04);
}

.callout-info {
    background: var(--bs-info-bg-subtle, #eef7ff);
    border-color: rgba(13,110,253,.12);
}

.step-item {
    gap: .75rem;
    padding: .9rem 1rem;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

    .step-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0,0,0,.08);
    }

.step-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: box-shadow .2s, transform .2s;
}

.step-item:hover .step-badge {
    transform: scale(1.05);
}

.step-info {
    background: var(--bs-info-bg-subtle);
    color: var(--bs-info);
}

.step-primary {
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
}

.step-warning {
    background: var(--bs-warning-bg-subtle);
    color: var(--bs-warning);
}

.step-success {
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success);
}

/* =============================
   Bank Card
============================= */
.bank-card {
    position: relative;
    width: 100%;
    aspect-ratio: 86 / 54;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
    width: 264px;
    height: 165px;
    margin: auto;
}

.bank-card__magnet {
    position: absolute;
    top: 6%;
    left: 0;
    right: 0;
    height: 22%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    opacity: .95;
}

.bank-card__logo {
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.bank-card__content {
    position: absolute;
    inset-inline: 0;
    top: 0;
    padding-top: 50px;
}

.bank-card__value {
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.2;
}

/* =============================
   Filters / Misc
============================= */
.filterbox {
    background: linear-gradient(90deg,#fff7f2,#f2f9ff);
    border-radius: 5px 5px 0 0;
    margin-top: 20px;
}

.wallet-actions {
    flex-shrink: 0;
    overflow-x: auto;
}
.small-wrap {
    overflow-wrap: anywhere;
    word-break: break-word; 
}
.min-w-0 {
    min-width: 0 !important;
}




.unit-chip {
    background: var(--bs-secondary-bg, #f1f3f5);
    color: #6c757d;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .8rem;
    white-space: nowrap;
}

.readonly-pill {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .6rem;
    padding: .4rem .8rem;
    min-width: 90px;
    display: inline-block;
    text-align: center;
    font-weight: 600;
}

.btn-light-subtle {
    background: var(--bs-light-bg-subtle,#f8f9fa);
    border: 1px solid rgba(0,0,0,.06);
}
.unit-inline {
    display: inline-block;
    background: var(--bs-secondary-bg, #f1f3f5);
    color: #6c757d;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 999px;
    padding: .1rem .55rem;
    font-size: .8rem;
    vertical-align: middle;
    margin-inline-start: .4rem;
}
.input-with-unit {
    position: relative;
}

    .input-with-unit input {
        padding-left: 3.5rem;
        text-align: center; 
        direction: ltr; 
    }

    .input-with-unit::after {
        content: "تومان";
        position: absolute;
        top: 72%;
        left: 1rem; 
        transform: translateY(-50%);
        color: #6c757d;
        font-size: .85rem;
        pointer-events: none;
    }

/* آیکن راهنما: کوچک و ملایم */
.helpicon {
    color: rgba(13,110,253,.65);
    font-size: .95rem;
}

.helpicon-btn {
    padding: .25rem .5rem;
    background: var(--bs-light-bg-subtle,#f8f9fa);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .5rem;
}

    .helpicon-btn:hover {
        background: #eef4ff;
    }
.with-unit-left {
    position: relative;
}

    .with-unit-left > .form-control {
        padding-left: 3.6rem;
        text-align: center;
        direction: ltr;
    }

    .with-unit-left::after {
        content: attr(data-unit);
        position: absolute;
        left: 1rem;
        top: 72%;
        transform: translateY(-50%);
        color: #6c757d;
        font-size: .85rem;
        pointer-events: none;
    }

/* فیلدهای نمایشی تمام‌عرض (قیمت‌ها/مبالغ محاسباتی) */
.readonly-pill {
    display: block;
    width: 100%;
    position: relative;
    padding: .5rem .8rem .3rem 3.6rem; /* جا برای واحد */
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .6rem;
    font-weight: 600;
}

    .readonly-pill.with-unit-left::after {
        content: attr(data-unit);
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        font-size: .85rem;
        pointer-events: none;
    }

/* هایلایت ملایم برای فیلدهایی که با کد تغییر می‌کنند */
.calc-dynamic {
    background: var(--bs-info-bg-subtle, #eef7ff);
    border-color: rgba(13,110,253,.25);
}








.soft-table {
    table-layout: fixed; /* جلوگیری از ریدراو عرض ستون‌ها */
    border-collapse: collapse; /* بدون فاصله بین سلول‌ها (پایدارتر) */
    width: 100%;
}

    .soft-table thead th,
    .soft-table tbody td {
        vertical-align: middle;
        text-align:center;
        font-size:12px !important;
    }

    .soft-table thead th {
        background: #f9fbfd;
        border-bottom: 1px solid #e9edf3;
        color: #495057;
        font-weight: 600;
    }

    .soft-table tbody tr {
        background: #fff;
        transition: background-color .18s ease;
    }

        .soft-table tbody tr:hover {
            background: #f8faff;
        }

/* ---------- اعداد و واحد پول ---------- */
.num {
    direction: ltr;
    unicode-bidi: plaintext;
    font-variant-numeric: tabular-nums; /* هم‌ترازی بهتر اعداد */
    white-space: nowrap;
}

.unit {
    font-size: .8rem;
    color: #6c757d;
}

/* ---------- عنوان بانک کوتاه‌شونده ---------- */
.bank-title {
    max-width: 120px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- ردیف جزئیات (کُلاپس) ---------- */
.details-row {
    display: none;
}

    .details-row.open {
        display: table-row;
    }

    /* مهم: همان پدینگ سلول‌های جدول تا «جمع شدن» دیده نشود */
    .details-row > td {
        padding: .6rem .75rem;
    }

/* باکسِ داخل جزئیات: بدون مارجین بیرونی، لطیف و خوانا */
.details-wrap {
    margin: 0; /* اگر مارجین بدهیم، محتوا عقب‌تر می‌رود */
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg,#fdfdff,#ffffff);
    border: 1px solid #e4eaf2;
    box-shadow: 0 6px 14px rgba(0,80,180,.05);
}

/* ---------- متاها/برچسب‌ها ---------- */
.meta-title {
    font-size: .78rem;
    color: #6c757d;
}

.meta-val {
    font-weight: 600;
    color: #2f3e46;
}

.price {
    font-weight: 700;
    color: #0d6efd;
}

.bank-chip {
    background: #eef6ff;
    color: #0d6efd;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
}

.badge-soft {
    background: #f7f9fb;
    color: #495057;
    border: 1px dashed rgba(0,0,0,.06);
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
}

/* ---------- آیکن چشم (ترکیب نرم) ---------- */
.toggle-details {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f7ff;
    border: 1px solid #dbe4ff;
    border-radius: 50%;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .toggle-details:hover {
        background: #e9f0ff;
        box-shadow: 0 0 6px rgba(13,110,253,.2);
    }

    .toggle-details i {
        color: #0d6efd;
        font-size: .9rem;
    }

    .toggle-details[aria-expanded="true"] {
        transform: rotate(10deg);
    }
/* اشاره‌ی ظریف به بازبودن */

/* ---------- Empty State ---------- */
.empty-state .empty-icon i {
    font-size: 40px;
    color: #0d6efd;
}

.empty-state {
    background: linear-gradient(180deg,#f8f9ff,#ffffff);
}

/* ---------- ریسپانسیو ویژه‌ی موبایل (تا ~۳۶۰px) ---------- */
@media (max-width: 400px) {

    .bank-title {
        max-width: 92px;
    }

    .details-row > td {
        padding: .5rem .1rem;
    }

    .details-wrap {
        padding: 4px;
    }
}

/* اختیاری: ثابت نگه‌داشتن اسکرول‌بار عمودی تا پرش افقی رخ ندهد */
body {
    scrollbar-gutter: stable both-edges;
}
/* GroupBox container */
.gb {
    background: #ffffff;
    border: 1px solid #e7ecf2;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 80, 180, .03);
}

/* GroupBox title */
.gb-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: #2b3a42;
    font-size: .95rem;
    margin-bottom: .6rem;
}

    .gb-title i {
        color: #0d6efd;
        font-size: 1rem;
        background: #eef4ff;
        border: 1px solid #dbe6ff;
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

/* فاصله‌ی داخلی عناصر متنی */
.gb .meta .meta-title {
    margin-bottom: 2px;
}

/* در موبایل فشرده‌تر */
@media (max-width: 400px) {
    .gb {
        padding: 10px;
        margin-bottom: 8px;
    }

    .gb-title {
        font-size: .9rem;
    }
}







/* ظرف اصلی */
.dashboard-header {
    background: linear-gradient(90deg,#fff7f2,#f2f9ff);
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0,0,0,.04);
}

/* لایهٔ داخلی: موقعیت‌دهی مطلق برای دو طرف + عنوان */
.header-inner {
    position: relative;
    padding: 10px 56px; /* فضای کافی برای دکمه‌های چپ/راست */
    min-height: 48px; /* ارتفاع ثابت و تمیز */
}

/* عنوان دقیقاً وسط، مستقل از RTL/LTR */
.header-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #2f2f2f;
    text-align: center;
    white-space: nowrap;
}

/* سایدها: ثابت کنارها و وسط‌چین عمودی */
.side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.side-left {
    left: 10px;
}
/* واقعاً چپ */
.side-right {
    right: 10px;
}
/* واقعاً راست */

/* دکمه آیکنی (راست) */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffffcc;
    color: #4a4a4a;
    border: 1px solid #e7e7e7;
    text-decoration: none;
    transition: .2s;
}

    .btn-icon:hover {
        background: #f3f3f3;
        color: #0d6efd;
    }

/* دکمهٔ متنی (چپ) */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ffffffcc;
    color: #3e3e3e;
    border: 1px solid #e7e7e7;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
    max-width: 55vw; /* جلوگیری از بیرون‌زدن در موبایل */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .btn-action:hover {
        background: #f3f3f3;
        color: #0d6efd;
    }


.law-content {
    max-height: 100vh; /* ارتفاع حداکثر برابر ارتفاع صفحه نمایش */
    overflow-y: auto; /* اسکرول عمودی فعال */
    padding: 10px; /* فاصله داخلی برای زیبایی */
}