.content-small-image{
    max-width : 60px;
}

.smallImagePreview {
    display: inline-block;
    vertical-align: middle;
    height: 80px;
    padding: 2px;
    text-align: left;
    -ms-border-radius: 6px;
    border-radius: 6px;
}

.smallImageInList {
    height: 50px;
}

.bigImagePreview {
    display: inline-block;
    vertical-align: middle;
    height: 100px;
    padding: 2px;
    text-align: left;
    -ms-border-radius: 6px;
    border-radius: 6px;
}

.mediaPreview {
    max-width: 300px;
}

.deleteFile:before {
    content: "\2716";
}

.deleteFile {
    position: absolute;
    z-index: 99;
    width: 25px;
    height: 25px;
    text-align: center;
    padding: 4px;
}

.attachmentItem {
    margin: 4px;
    position: relative;
    display: inline-block;
}

/* Select2 modal styles */
.select2-dropdown-modal {
    z-index: 1056 !important; /* Higher than modal z-index (1055) */
    max-height: 300px !important;
    overflow-y: auto !important;
}

.select2-dropdown-modal .select2-results__options {
    max-height: 250px !important;
    overflow-y: auto !important;
}

.select2-dropdown-modal .select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.select2-dropdown-modal .select2-search__field {
    padding: 6px 8px !important;
    font-size: 14px !important;
}

/* Ensure select2 dropdown appears above other elements in modal */
.select2-container--default .select2-dropdown {
    border: 1px solid #d1d4d7 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(161, 172, 184, 0.45) !important;
}

/* Fix for select2 in scrollable containers */
.select2-dropdown-modal {
    position: absolute !important;
}

.imagePreviewContainer img {
    width: 40px;
}

.hidden-item{
    display:none;
}

#loading {
    font-size : 10pt;
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -5%);
    transform: -webkit-translate(-50%, -5%);
    transform: -moz-translate(-50%, -5%);
    transform: -ms-translate(-50%, -5%);
    z-index : 99999999;
}

.hide{
    display : none;
}

.comment-text{
    font-size : 12px;
}

.comment-user {
    font-size: 12px;
    font-weight : 700;
}

.comment-rating img {
    width : 16px;
}

.comment-date {
    font-size: 12px;
}

.imageUrlPreview{
    max-width : 300px;
}

/* همان شِوِرون form-select (rtl/core.css) — برای Select2 تک‌وچندانتخابی */
.select2-container--default .select2-selection--single::after,
.select2-container--default .select2-selection--multiple::after {
    content: "";
    position: absolute;
    inset-inline-end: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%2838, 60, 85, 0.4%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.select2-container--default.select2-container--open .select2-selection--single::after,
.select2-container--default.select2-container--open .select2-selection--multiple::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Select2: همان فونت پنل (IRANSans / primary-font) و فیلدهای جستجو */
.select2-container,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-results__option,
.select2-dropdown .select2-search__field {
    font-family: "primary-font", "segoe ui", "tahoma", sans-serif;
}

/* چندانتخابی: اورراید select2.css (آنجا font-family: sans-serif است) */
.select2-container .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    font-size: 100%;
    margin-top: 5px;
    margin-inline: 0;
    padding: 0;
    max-width: 100%;
    resize: none;
    height: 25px;
    vertical-align: bottom;
    font-family: "primary-font", "segoe ui", "tahoma", sans-serif;
    overflow: hidden;
    word-break: keep-all;
}

/* چندانتخابی: ظاهر نزدیک به form-control / تک‌انتخابی (به‌جای border خاکستری #aaa پیش‌فرض) */
.select2-container--default .select2-selection--multiple {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    cursor: text;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-inline-end: 1.65rem;
    position: relative;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.select2-container--default .select2-selection--multiple.select2-selection--clearable {
    padding-inline-end: 2.65rem;
}

.select2-container--default .select2-selection--multiple.select2-selection--clearable::after {
    inset-inline-end: 1.75rem;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.select2-container--default .select2-selection--single {
    height: calc(2.375rem + 2px); /* هم‌اندازه با form-select */
    padding-block: 0.375rem;
    padding-inline-start: 0.75rem;
    padding-inline-end: 1.85rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    position: relative;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc((2.375rem + 2px) - 0.75rem);
    padding-inline: 0;
}

/* فلش پیش‌فرض Select2 (مثلث b) را مخفی می‌کنیم؛ به‌جایش همان SVG form-select با ::after */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.cursor-pointer
{
    cursor: pointer;
}

/* Shared flow wizard stepper - matches the participation wizard look. */
.part-wizard-steps .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 76px;
    text-align: center;
}

.part-wizard-steps .step-item:not(.disabled):not(.d-none) {
    cursor: pointer;
}

.part-wizard-steps .step-item.disabled {
    cursor: not-allowed;
    opacity: 0.58;
    pointer-events: none;
}

.part-wizard-steps .step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.14);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

.part-wizard-steps .step-item.active .step-num {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

.part-wizard-steps .step-item.done .step-num {
    background: var(--bs-success);
    color: #fff;
    border-color: var(--bs-success);
}

.part-wizard-steps .step-title {
    font-size: 0.85rem;
    color: var(--bs-body-color);
    font-weight: 500;
    line-height: 1.6;
}

.part-wizard-steps .step-item.active .step-title {
    color: var(--bs-primary);
    font-weight: 600;
}

.part-wizard-steps .step-line {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.45), rgba(var(--bs-primary-rgb), 0.15));
    margin: 0 8px;
    max-width: 60px;
    opacity: 0.9;
}

.part-wizard-steps .step-line.done {
    background: var(--bs-success);
}

@media (max-width: 575.98px) {
    .part-wizard-steps .step-item {
        min-width: 58px;
    }

    .part-wizard-steps .step-title {
        font-size: 0.75rem;
    }

    .part-wizard-steps .step-line {
        margin: 0 4px;
        min-width: 18px;
    }
}

.user-image {
    width: 100px;
    height: 100px;
    top: 10px;
    border: 9px solid #FFFFFF;
    border-radius: 200px;
    background-color: #fff;
}

.dataTable .form-control{
    display:inline-block;
    width:90%;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    margin-left: 0.5em;
}

html[dir=rtl] table.dataTable > thead > tr > th:not(.sorting_disabled), table.dataTable > thead > tr > td:not(.sorting_disabled) {
    padding-left: 30px;
    padding-right:2rem;
    vertical-align: middle;
}

.table > thead {
    vertical-align: bottom;
    background: #eee;
}

.table-responsive {
    overflow-x: auto;
    min-height: 300px;
}

.table > :not(caption) > * > * {
    padding: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* Responsive tables inside tabs - نمایش خواناتر جدول‌های تب‌دار در موبایل   */
/* -------------------------------------------------------------------------- */
.tab-content .table-responsive {
    min-height: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tab-content .table {
    --bs-table-bg: #fff;
    background-color: #fff;
}

@media (max-width: 575.98px) {
    .tab-content {
        padding-top: 0;
    }

    .tab-content .table-responsive {
        margin-inline: -0.5rem;
        padding-inline: 0.5rem;
    }

    .table-responsive .table.mobile-card-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        margin-bottom: 0;
        border: 0 !important;
        background-color: transparent;
        font-size: 0.8125rem;
    }

    .table-responsive .table.mobile-card-table thead {
        display: none;
    }

    .table-responsive .table.mobile-card-table tbody,
    .table-responsive .table.mobile-card-table tr {
        display: block;
        width: 100%;
    }

    .table-responsive .table.mobile-card-table tr {
        margin-bottom: 0.75rem;
        padding: 0.5rem 0.625rem;
        border: 1px solid var(--bs-border-color, #d9dee3);
        border-radius: 0.75rem;
        background: #fff;
        box-shadow: 0 0.125rem 0.375rem rgba(67, 89, 113, 0.08);
    }

    .table-responsive .table.mobile-card-table tr:last-child {
        margin-bottom: 0;
    }

    .table-responsive .table.mobile-card-table td,
    .table-responsive .table.mobile-card-table th {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        padding: 0.4rem 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(67, 89, 113, 0.12) !important;
        text-align: start !important;
        white-space: normal !important;
        vertical-align: top;
    }

    .table-responsive .table.mobile-card-table td:last-child,
    .table-responsive .table.mobile-card-table th:last-child {
        border-bottom: 0 !important;
    }

    .table-responsive .table.mobile-card-table td::before,
    .table-responsive .table.mobile-card-table th::before {
        content: attr(data-label);
        flex: 0 0 42%;
        max-width: 42%;
        color: var(--bs-secondary-color, #697a8d);
        font-weight: 600;
        text-align: start;
    }

    .table-responsive .table.mobile-card-table td[colspan],
    .table-responsive .table.mobile-card-table th[colspan],
    .table-responsive .table.mobile-card-table td[data-label=""],
    .table-responsive .table.mobile-card-table th[data-label=""] {
        display: block;
    }

    .table-responsive .table.mobile-card-table td[colspan]::before,
    .table-responsive .table.mobile-card-table th[colspan]::before,
    .table-responsive .table.mobile-card-table td[data-label=""]::before,
    .table-responsive .table.mobile-card-table th[data-label=""]::before {
        display: none;
    }

    .table-responsive .table.mobile-card-table .btn {
        white-space: nowrap;
    }
}

/* -------------------------------------------------------------------------- */
/* AdminLTE "small-box" compatibility (used by MokebDashboard)                */
/* The project theme doesn't ship AdminLTE styles, so these boxes need CSS.   */
/* -------------------------------------------------------------------------- */
.small-box {
    position: relative;
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 1rem 1rem 0.75rem;
    color: #fff;
}

.small-box .inner {
    position: relative;
    z-index: 2;
    /* Make room for the decorative icon (logical prop works for RTL/LTR) */
    padding-inline-end: 4.25rem;
}

.small-box h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.small-box p {
    margin: 0;
    opacity: 0.95;
}

.small-box .icon {
    position: absolute;
    top: 0.75rem;
    z-index: 1;
    font-size: 3.25rem;
    line-height: 1;
    opacity: 0.25;
    pointer-events: none;
}

html[dir=rtl] .small-box .icon {
    left: 1rem;
    right: auto;
}

html:not([dir=rtl]) .small-box .icon {
    right: 1rem;
    left: auto;
}

.small-box .small-box-footer {
    position: relative;
    z-index: 2;
    display: block;
    padding-top: 0.5rem;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.small-box .small-box-footer:hover {
    color: #fff;
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Wizard Steps - استپِر استاندارد ویزارد (ثبت موکب، مشارکت و...)           */
/* مراحل تکمیل‌شده: سبز | مرحله جاری: آبی/primary | مراحل بعدی: خاکستری     */
/* -------------------------------------------------------------------------- */
.mokeb-wizard-shell {
    padding: 0.85rem 1rem 1rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-primary-rgb), 0.02));
}

.mokeb-wizard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.mokeb-wizard-head-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bs-heading-color, var(--bs-body-color));
}

.mokeb-wizard-head-subtitle {
    font-size: 0.82rem;
    color: var(--bs-secondary-color, #697a8d);
}

.mokeb-wizard-progress-text {
    font-size: 0.78rem;
    color: var(--bs-secondary-color, #697a8d);
    white-space: nowrap;
}

.mokeb-wizard-progress {
    height: 0.4rem;
    margin-bottom: 0.8rem;
    background: rgba(var(--bs-primary-rgb), 0.12);
}

.mokeb-wizard-steps {
    padding: 0.15rem 0 0.4rem;
}

.mokeb-wizard-steps .d-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mokeb-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.mokeb-wizard-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    transition: opacity 0.2s;
}

.mokeb-wizard-step-link:hover:not(.disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.mokeb-wizard-step-link.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}

.mokeb-wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-secondary, #6c757d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

/* مرحله تکمیل‌شده — سبز */
.mokeb-wizard-step.done .mokeb-wizard-step-circle {
    background: var(--bs-success, #71dd37);
    color: #fff;
    border-color: var(--bs-success, #71dd37);
}

/* مرحله جاری — آبی/primary */
.mokeb-wizard-step.active .mokeb-wizard-step-circle {
    background: var(--bs-primary, #696cff);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.25);
}

/* مرحله بعدی — خاکستری */
.mokeb-wizard-step.pending .mokeb-wizard-step-circle {
    background: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-secondary, #6c757d);
    border-color: var(--bs-border-color, #d9dee3);
}

.mokeb-wizard-step-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bs-body-color);
    white-space: nowrap;
}

.mokeb-wizard-step.done .mokeb-wizard-step-title,
.mokeb-wizard-step.active .mokeb-wizard-step-title {
    color: var(--bs-body-color);
}

.mokeb-wizard-step.pending .mokeb-wizard-step-title {
    color: var(--bs-secondary, #697a8d);
}

.mokeb-wizard-step-line {
    flex: 1;
    min-width: 30px;
    max-width: 60px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.35), rgba(var(--bs-primary-rgb), 0.12));
    margin: 0 4px;
}

/* خط پس از مرحله تکمیل‌شده — سبز (نوار پیشرفت) */
.mokeb-wizard-step.done + .mokeb-wizard-step-line {
    background: var(--bs-success, #71dd37);
}

.mokeb-wizard-nav {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

/* برای RTL */
html[dir="rtl"] .mokeb-wizard-steps .d-flex {
    direction: rtl;
}

/* ویزارد دایره‌ای مراحل (اعلام مشارکت، تغییر اطلاعات موکب، …) */
.part-wizard-steps .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    max-width: 7.5rem;
}

.part-wizard-steps .step-item:not(.disabled) {
    cursor: pointer;
}

.part-wizard-steps .step-item.disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.55;
}

.part-wizard-steps .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.14);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.part-wizard-steps .step-item.active .step-num {
    background: var(--bs-primary, #696cff);
    color: #fff;
    border-color: var(--bs-primary, #696cff);
}

.part-wizard-steps .step-item.done .step-num {
    background: var(--bs-success, #71dd37);
    color: #fff;
    border-color: var(--bs-success, #71dd37);
}

.part-wizard-steps .step-title {
    font-size: 0.82rem;
    color: var(--bs-body-color);
    font-weight: 500;
    line-height: 1.25;
}

.part-wizard-steps .step-item.active .step-title {
    color: var(--bs-primary, #696cff);
    font-weight: 600;
}

.part-wizard-steps .step-line {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.45), rgba(var(--bs-primary-rgb), 0.15));
    margin: 0 6px;
    max-width: 56px;
    min-width: 12px;
    opacity: 0.9;
    align-self: center;
}

.part-wizard-steps .step-line.done {
    background: var(--bs-success, #71dd37);
}

html[dir="rtl"] .part-wizard-steps > .d-flex {
    direction: rtl;
}

/* دکمه‌های اقدام داشبورد موکبدار — دو دکمه هم‌قد و هم‌ارتفاع */
.mokeb-dashboard-action-btn {
    min-width: min(100%, 11rem);
    min-height: 2.5rem;
}

@media (max-width: 767.98px) {
    .mokeb-wizard-shell {
        padding: 0.75rem;
    }

    .mokeb-wizard-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.45rem;
    }

    .mokeb-wizard-step-title {
        font-size: 0.75rem;
    }

    .mokeb-wizard-step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.92rem;
    }

    .mokeb-wizard-step-line {
        min-width: 16px;
        max-width: 26px;
        margin: 0 2px;
    }

    .mokeb-wizard-nav .btn {
        width: 100%;
        justify-content: center;
    }

    .part-wizard-steps .step-title {
        font-size: 0.72rem;
    }

    .part-wizard-steps .step-num {
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
    }

    .part-wizard-steps .step-line {
        max-width: 28px;
        margin: 0 3px;
    }

    .ic-info-change-wizard-nav .btn {
        width: 100%;
        justify-content: center;
    }
}

/* -------------------------------------------------------------------------- */
/* Global Breadcrumbs - استایل یکپارچه و راست‌به‌چپ برای همه صفحات           */
/* -------------------------------------------------------------------------- */
.page-breadcrumb,
.breadcrumb-wrapper {
    direction: rtl;
    text-align: right;
}

.page-breadcrumb {
    margin-inline-start: auto;
    max-width: 100%;
}

/* در RTL، margin-inline-start همان سمت راست است؛ auto بلوک را به چپ می‌زند — برای راست‌چین واقعی */
html[dir="rtl"] .page-breadcrumb {
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.page-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--bs-border-color, #d9dee3);
    border-radius: 0.75rem;
    background-color: var(--bs-body-bg, #fff);
    box-shadow: 0 0.125rem 0.375rem rgba(67, 89, 113, 0.08);
    direction: rtl;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    row-gap: 0.25rem;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a,
.breadcrumb-wrapper {
    font-size: 0.875rem;
}

.page-breadcrumb .breadcrumb-item a {
    color: var(--bs-secondary-color, #697a8d);
    text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover,
.page-breadcrumb .breadcrumb-item a:focus {
    color: var(--bs-primary, #696cff);
}

.page-breadcrumb .breadcrumb-item.active {
    color: var(--bs-body-color, #566a7f);
    font-weight: 600;
}

html[dir="rtl"] .page-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-right: 0.75rem;
    padding-left: 0;
}

html[dir="rtl"] .page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    float: none;
    padding-right: 0;
    padding-left: 0.75rem;
    color: var(--bs-secondary-color, #a1acb8);
}

.layout-wrapper:not(.layout-horizontal) .breadcrumb-wrapper {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--bs-border-color, #d9dee3);
    border-radius: 0.75rem;
    background-color: var(--bs-body-bg, #fff);
    box-shadow: 0 0.125rem 0.375rem rgba(67, 89, 113, 0.08);
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .page-breadcrumb {
        width: 100%;
    }

    .page-breadcrumb .breadcrumb {
        width: 100%;
    }
}

html[dir="rtl"] #toast-container .toast-close-button,
#toast-container .rtl .toast-close-button {
    right: auto !important;
    left: 0.6rem !important;
    top: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Responsive DataTables — hide wide SSR table until JS applies column layout */
/* -------------------------------------------------------------------------- */
.card-datatable:has(table[data-responsive-datatable]:not(.jet-dt-ready)),
.table-responsive:has(table[data-responsive-datatable]:not(.jet-dt-ready)) {
    overflow: hidden;
    max-width: 100%;
    min-height: 3rem;
}

table[data-responsive-datatable]:not(.jet-dt-ready) {
    opacity: 0;
    pointer-events: none;
}

.card-datatable.jet-dt-ready,
.table-responsive.jet-dt-ready {
    overflow-x: auto;
}

table[data-responsive-datatable].jet-dt-ready {
    opacity: 1;
    pointer-events: auto;
}

/* Grid row actions: keep dropdown visible inside responsive tables */
.jet-grid-actions {
    white-space: normal;
}

.jet-grid-actions .dropdown-menu {
    min-width: 7.5rem;
    width: max-content;
    max-width: 10rem;
    padding: 0.25rem;
}

.jet-grid-actions .dropdown-menu .jet-grid-actions-menu-item {
    padding: 0.12rem 0.2rem;
}

.jet-grid-actions .dropdown-menu .jet-grid-actions-menu-item .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.table-responsive td .jet-grid-actions,
.dataTables_wrapper td .jet-grid-actions {
    position: relative;
}

.table-responsive:has(table.dataTable .jet-grid-actions) {
    overflow: visible;
}

@media (max-width: 767.98px) {
    .table-responsive:has(table.dataTable .jet-grid-actions) {
        overflow-x: auto;
    }
}
