

/* ===== Novin Andishan brand logos (transparent, no frame) ===== */
.novin-logo {
    display: block;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    object-fit: contain;
}

/* Permission editor final cascade: keep it visually consistent with user picker. */
.perm-studio-dialog.my-Dialog.mud-dialog{width:min(1180px,96vw)!important;max-width:1180px!important;height:min(88vh,860px)!important;border-radius:8px!important}
.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title{min-height:36px!important;padding:7px 12px!important;color:inherit!important;background:#e9e7e7!important;border-bottom:2px solid #8d8d8ede!important}
.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title .mud-typography{color:inherit!important}
.perm-studio-dialog.my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close{top:3px!important;transform:none!important;color:inherit!important;background:transparent!important;border:0!important}
.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-content{height:calc(min(88vh,860px) - 88px)!important}
.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-actions{height:46px!important;min-height:46px!important;max-height:46px!important;padding:5px 16px!important;background:#f7f6fb!important}
.perm-studio{background:#fff!important}.perm-studio__filters{padding:10px 12px 0!important;background:#fff!important}.perm-studio__toolbar{padding:8px 10px!important;border-bottom:0!important;background:#fff!important}
.perm-studio__actions{display:flex!important;align-items:center!important;gap:7px!important;min-height:45px!important;padding:7px 14px!important;border-bottom:1px solid #eceef5!important;background:#fff!important}
.perm-studio__actions .mud-button-root{min-height:28px!important;padding:3px 9px!important;border-radius:6px!important;font-size:.72rem!important}.perm-studio__hint{flex:1;color:#6d6786;font-size:.72rem}.perm-studio__hint i{color:#7165df;margin-left:4px}.perm-studio__actions .studio-change-state{flex:none;padding:4px 9px;font-size:.68rem}
.perm-studio__body{margin:0 10px 10px!important;border:1px solid #ddd9ec!important;border-radius:8px!important;overflow:hidden!important;grid-template-columns:285px minmax(0,1fr)!important;background:#fff!important}
.perm-studio__nav{padding:8px!important;color:#403a59!important;background:#f7f6fb!important;border-left:1px solid #e7e4ef!important}.perm-nav-area{background:transparent!important;border:1px solid transparent!important;border-radius:7px!important}.perm-nav-area.is-active{background:#fff!important;border-color:#dcd7ef!important;box-shadow:0 2px 8px rgba(61,52,114,.06)!important}
.perm-nav-area__head{color:#403a59!important;padding:7px 6px!important}.perm-nav-area__head em{color:#837c9d!important;opacity:1!important}.perm-nav-caret{color:#7165df!important}.perm-nav-item{color:#5e5875!important;border-radius:6px!important;padding:6px 8px!important}.perm-nav-item:hover,.perm-nav-item.is-active{color:#554bc5!important;background:#eeebff!important}.perm-nav-check .mud-icon-root{color:#685dd8!important}
.perm-studio__detail{padding:12px 14px 16px!important;background:#fff!important}.perm-detail-hero{padding:11px 13px!important;margin-bottom:10px!important;border-color:#e4e1ec!important;border-radius:8px!important;box-shadow:none!important}.perm-detail-hero__icon{width:38px!important;height:38px!important;border-radius:7px!important;color:#685dd8!important;background:#eeebff!important;font-size:1.1rem!important}
.perm-action-grid{gap:8px!important}.perm-action-card{min-height:84px!important;padding:11px 38px 11px 11px!important;border-color:#e4e1ec!important;border-radius:7px!important;box-shadow:none!important}.perm-action-card:hover{transform:none!important;border-color:#9589ee!important;box-shadow:0 4px 12px rgba(91,82,201,.08)!important}.perm-action-card.is-on{border-color:#7165df!important;background:#f7f5ff!important;box-shadow:none!important}.perm-studio-dialog .mud-button-root,.perm-studio-dialog .mud-input-outlined-border{border-radius:6px!important}

/* ===== Permission studio v2 — aligned with the user picker dialog ===== */
.perm-studio-dialog.my-Dialog.mud-dialog {
    width: min(1180px, 96vw) !important;
    max-width: 1180px !important;
    height: min(88vh, 860px) !important;
    border-radius: 8px !important;
    box-shadow: 0 28px 80px rgba(40,31,92,.28) !important;
}

.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title {
    min-height: 36px;
    padding: 7px 12px !important;
    color: inherit !important;
    background: #e9e7e7 !important;
    border-bottom: 2px solid #8d8d8ede !important;
}

.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title .mud-typography {
    color: inherit !important;
}

.perm-studio-dialog.my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close {
    top: 3px !important;
    transform: none !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
}

.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-content {
    height: calc(min(88vh, 860px) - 88px) !important;
}

.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-actions {
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    padding: 5px 16px !important;
    background: #f7f6fb;
}

.perm-studio { background: #fff; }
.perm-studio__filters { padding: 10px 12px 0; background: #fff; }
.perm-studio__filters .user-studio-acc { margin: 0; }

.perm-studio__toolbar {
    padding: 8px 10px;
    border-bottom: 0;
    background: #fff;
}

.perm-studio__toolbar .mud-icon-button {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 6px !important;
}

.perm-studio__actions {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 45px;
    padding: 7px 14px;
    border-bottom: 1px solid #eceef5;
    background: #fff;
}

.perm-studio__actions .mud-button-root {
    min-height: 28px !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    font-size: .72rem !important;
}

.perm-studio__hint {
    flex: 1;
    color: #6d6786;
    font-size: .72rem;
}

.perm-studio__hint i { color: #7165df; margin-left: 4px; }
.perm-studio__actions .studio-change-state { flex: none; padding: 4px 9px; font-size: .68rem; }

.perm-studio__body {
    margin: 0 10px 10px;
    border: 1px solid #ddd9ec;
    border-radius: 8px;
    overflow: hidden;
    grid-template-columns: 285px minmax(0, 1fr);
    background: #fff;
}

.perm-studio__nav {
    padding: 8px;
    color: #403a59;
    background: #f7f6fb;
    border-left: 1px solid #e7e4ef;
}

.perm-nav-area { background: transparent; border: 1px solid transparent; border-radius: 7px; }
.perm-nav-area.is-active { background: #fff; border-color: #dcd7ef; box-shadow: 0 2px 8px rgba(61,52,114,.06); }
.perm-nav-area__head { color: #403a59; padding: 7px 6px; }
.perm-nav-area__head em { color: #837c9d; opacity: 1; }
.perm-nav-caret { color: #7165df; }
.perm-nav-item { color: #5e5875; border-radius: 6px; padding: 6px 8px; }
.perm-nav-item:hover, .perm-nav-item.is-active { color: #554bc5; background: #eeebff; }
.perm-nav-check .mud-icon-root { color: #685dd8 !important; }

.perm-studio__detail {
    padding: 12px 14px 16px;
    background: #fff;
}

.perm-detail-hero {
    padding: 11px 13px;
    margin-bottom: 10px;
    border-color: #e4e1ec;
    border-radius: 8px;
    box-shadow: none;
}

.perm-detail-hero__icon {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    color: #685dd8;
    background: #eeebff;
    font-size: 1.1rem;
}

.perm-detail-hero .mud-button-root { border-radius: 6px !important; }
.perm-action-grid { gap: 8px; }
.perm-action-card {
    min-height: 84px;
    padding: 11px 38px 11px 11px;
    border-color: #e4e1ec;
    border-radius: 7px;
    box-shadow: none;
}

.perm-action-card:hover { transform: none; border-color: #9589ee; box-shadow: 0 4px 12px rgba(91,82,201,.08); }
.perm-action-card.is-on { border-color: #7165df; background: #f7f5ff; box-shadow: none; }
.perm-studio-dialog .mud-button-root, .perm-studio-dialog .mud-input-outlined-border { border-radius: 6px !important; }
.perm-studio-dialog .studio-footer { width: 100%; align-items: center; }

@media (max-width: 700px) {
    .perm-studio__actions { flex-wrap: wrap; }
    .perm-studio__hint { flex-basis: 100%; }
    .perm-studio__body { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
}

/* Online top-up close button: override the generic my-Dialog positioning. */
.otu-dialog.my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close,
.otu-dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close {
    top: 50% !important;
    right: auto !important;
    left: 12px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    color: #686d7d !important;
    border: 1px solid #dfe1ea !important;
    border-radius: 9px !important;
    background: #fff !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 2px 8px rgba(34,38,62,.08) !important;
    z-index: 4;
}

.otu-dialog.my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close:hover,
.otu-dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close:hover {
    color: #d84c5c !important;
    border-color: #efc8ce !important;
    background: #fff5f6 !important;
}

.otu-dialog.my-Dialog.mud-dialog .mud-dialog-title .mud-button-close,
.otu-dialog.mud-dialog .mud-dialog-title .mud-button-close {
    display: none !important;
}

.novin-logo--sidebar {
    width: 42px;
    height: 42px;
}

.novin-logo--auth {
    height: 56px;
    width: auto;
    max-width: min(280px, 70vw);
}

.novin-auth-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 1.25rem;
    padding: 0;
    background: transparent;
    border: none;
}

.novin-auth-brand,
.novin-auth-brand .app-brand-logo,
.layout-menu .app-brand .app-brand-logo {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}

.layout-menu .app-brand.demo {
    border-bottom: none;
    box-shadow: none;
}

.selected-template-group {
    background-color: var(--mud-palette-primary-hover) !important;
    border-radius: 8px;
}

.selected-template {
    background-color: var(--mud-palette-success-hover) !important;
    border-radius: 8px;
}


.sendsmsNormal .mud-alert-message {
    padding: 6px 0 !important;
}
.mud-alert-icon {
    padding: 2px 0 !important;
}





/* استایل پنل مشخصات/تنظیمات: app.css → .sendsmsExpand */




.mylist.mud-list {
    margin: 0px;
    padding-top: 10px !important;
    /*padding-bottom: 10px !important;*/
    position: relative;
    list-style: none;
}
.mylist.mud-list-item {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    font-weight: 400px !important;
    font-size: 10px !important;
}
.mylist .mud-typography-body1 {
    font-size: 0.86rem;
}

.mylist .mud-list-item-secondary-text {
    font-weight: 500 !important;
    font-size: 0.70rem !important;
    color: var(--mud-palette-text-secondary);
}
.mylist .mud-list-item-text {
    flex: 1 1 auto;
    min-width: 0;
    /*margin-top: 4px;*/
    margin-bottom: 4px;
}

.mylist.mud-list-subheader {
    color: var(--mud-palette-action-default);
    font-size: .775rem !important;
    box-sizing: border-box;
    list-style: none;
    font-weight: 450 !important;
    padding-top: 2px !important;
    padding-bottom: 0px !important;
}

.my-Listchip.mud-chip {
    /*padding: 2px !important;*/
    margin: 4px !important;
}

.mylist.mud-dialog .mud-dialog-content {
    padding: 0px 10px !important;
    margin: 5px 0px 12px 0px !important;
}















.contact-group-wrapper .nav-tabs.widget-nav-tabs .nav-link {
    width: 150px !important; /* بزرگ‌تر */
    height: 130px !important; /* افزایش ارتفاع */
    border-radius: 9px;
    border: 1px dashed #b8b8bb;
    padding: 11px;
    transition: all 0.25s ease-in-out;
}

    /* هاور اختصاصی فقط برای این صفحه */
    .contact-group-wrapper .nav-tabs.widget-nav-tabs .nav-link:hover {
        border-color: #a5a5a5;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        transform: translateY(-3px);
        cursor: pointer;
        background-color: #e3e3e369;
    }

/* رنگ متن هاور */
.nav-align-top .contact-group-wrapper .nav-tabs .nav-link:not(.active):hover {
    /*color: red !important;*/
    /*border-bottom: 2px solid #e79031 !important;*/
    border-bottom: 1px dashed #7a7a7a !important;
    padding-bottom: .4185rem !important;
}



/* فاصله بین کارت‌ها */
.contact-group-wrapper .nav-tabs:not(.nav-fill):not(.nav-justified) .nav-link {
    margin-right: .5rem;
    margin-left: .25rem;
    margin-top: 5px;
    margin-bottom: 14px;
}


.contact-card {
    min-height: 150px;
    padding: 20px;
    position: relative; /* مرجع absolute ها */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-group-wrapper .nav-tabs.widget-nav-tabs .nav-link.contact-card-selected {
    border: 2px solid var(--mud-palette-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
    background-color: color-mix(in srgb, var(--mud-palette-primary) 6%, #fff);
}

.contact-group-item {
    position: relative;
}

.contact-card-frame {
    position: relative;
    display: inline-block;
}

/* چک‌باکس انتخاب گروه — پایین راست داخل کارت */
.contact-card .card-select {
    position: absolute;
    bottom: 8px;
    right: 8px;
    top: auto;
    left: auto;
    z-index: 6;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.contact-card .contact-group-check {
    margin: 0;
    padding: 0;
}

.contact-group-wrapper .contact-card .card-menu {
    position: absolute;
    top: 6px;
    left: 4px;
    z-index: 7;
}

.contact-group-search {
    min-width: 220px;
    max-width: 320px;
}

.contact-group-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
}

.contact-group-toolbar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.contact-group-toolbar .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.contact-group-header {
    gap: 10px;
    min-width: 0;
}

.contact-group-title {
    flex: 0 0 auto;
    min-width: 0;
}

.contact-group-selected-count {
    white-space: nowrap;
}

/* موبایل و تبلت: نوار جستجو/دکمه‌ها و کارت‌های گروه */
@media (max-width: 900px) {
    .contact-group-header {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .contact-group-toolbar {
        justify-content: stretch;
        width: 100%;
    }

    .contact-group-search,
    .contact-group-toolbar .contact-group-search {
        flex: 1 1 100%;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .contact-group-toolbar-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .contact-group-wrapper .card-body {
        padding: 12px 10px !important;
    }

    .contact-group-wrapper .nav-tabs.widget-nav-tabs,
    .contact-group-wrapper .nav-tabs.widget-nav-tabs.contact-group-grid {
        display: grid !important;
        gap: 10px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 8px !important;
    }

    .contact-group-wrapper .nav-tabs.widget-nav-tabs > .nav-item,
    .contact-group-wrapper .nav-tabs.widget-nav-tabs > li {
        margin: 0 !important;
        min-width: 0;
        width: 100%;
    }

    .contact-group-wrapper .nav-tabs.widget-nav-tabs .nav-link,
    .contact-group-wrapper .nav-tabs.widget-nav-tabs .nav-link.contact-card {
        height: auto !important;
        margin: 0 !important;
        min-height: 118px !important;
        padding: 12px 8px !important;
        width: 100% !important;
    }

    .contact-card-frame {
        display: block;
        width: 100%;
    }

    .contact-card {
        min-height: 118px;
        padding: 12px 8px;
    }

    .contact-card .badge.rounded.p-3 {
        padding: .65rem !important;
    }

    .contact-card .tab-widget-title {
        font-size: .82rem;
        line-height: 1.3;
        max-width: 100%;
        overflow: hidden;
        padding-inline: 4px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .contact-count-text {
        font-size: .72rem;
    }
}

/* Permission editor v5 — exact user-picker search, compact hero and modern roots */
.perm-studio__filters{padding:8px 10px 6px!important;background:#fff!important}.perm-studio__filters .user-studio-acc{border:1px solid #d9d4f0!important;border-radius:9px!important;background:#f7f6fc!important;overflow:hidden}.perm-studio__filters .user-studio-acc__toggle{min-height:40px!important;padding:6px 11px!important;background:#f7f6fc!important}.perm-studio__filters .user-studio-acc__main{gap:7px!important}.perm-studio__filters .user-studio-acc__main i{color:#685dd8!important}.perm-studio__filters .user-studio-acc__main strong{font-size:.73rem!important;color:#423b5a!important}.perm-studio__filters .user-studio-acc__main em{font-size:.65rem!important;color:#716a87!important}.perm-studio__filters .user-studio-acc__meta{font-size:.66rem!important;color:#5f55c7!important}.perm-studio__filters .user-studio-acc.is-open .user-studio-acc__toggle{border-bottom:1px solid #e4e0f1!important}.perm-studio__filters .user-studio-acc__body{padding:7px 9px!important;background:#fff!important}.perm-studio__filters .perm-studio__toolbar{min-height:40px!important}.perm-studio__filters .perm-studio__toolbar>.mud-tooltip-root{flex:none}.perm-studio__filters .perm-studio__toolbar .mud-icon-button{width:32px!important;height:32px!important;min-width:32px!important}
.perm-detail-hero{min-height:50px!important;padding:6px 9px!important;margin-bottom:7px!important}.perm-detail-hero__icon{width:30px!important;height:30px!important;font-size:.92rem!important}.perm-detail-hero h5{font-size:.82rem!important;line-height:1.25!important}.perm-detail-hero p{margin-top:1px!important;font-size:.64rem!important;line-height:1.4!important}.perm-detail-hero>div:nth-child(2){display:flex;flex-direction:column;justify-content:center}.perm-detail-kicker{display:none!important}
.perm-action-card{position:relative!important;min-height:64px!important;padding:9px 10px 20px 38px!important}.perm-action-card__meta{display:block!important;width:100%!important;margin-top:6px!important;padding-top:0!important}.perm-action-card__meta small{display:block!important;max-width:100%!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.perm-action-card__selection{position:absolute!important;inset:0!important;display:block!important;pointer-events:none!important;color:#77708e}.perm-action-card__selection em{position:absolute!important;left:9px!important;bottom:5px!important;right:auto!important;top:auto!important;font-size:.61rem!important;line-height:1!important;font-style:normal!important;white-space:nowrap!important}.perm-action-card__selection .mud-checkbox{position:absolute!important;top:5px!important;left:6px!important;right:auto!important;bottom:auto!important;margin:0!important;padding:0!important;pointer-events:auto!important}.perm-action-card__selection .mud-icon-root{font-size:1.05rem!important}.perm-action-card__box{display:none!important}
.perm-nav-area{padding:0!important;margin:0 0 3px!important;border:0!important;background:transparent!important;box-shadow:none!important}.perm-nav-area__head{position:relative;min-height:38px!important;margin:0!important;padding:7px 8px!important;border:1px solid transparent!important;border-radius:8px!important;background:#fff!important;box-shadow:0 1px 2px rgba(54,45,96,.04)!important;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease!important}.perm-nav-area__head:before{content:"";position:absolute;right:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:transparent}.perm-nav-area__head:hover{border-color:#d9d4ec!important;background:#faf9fe!important;box-shadow:0 3px 10px rgba(54,45,96,.07)!important}.perm-nav-area.is-active>.perm-nav-area__head{border-color:#cfc8ef!important;background:#f6f4ff!important;box-shadow:0 3px 10px rgba(91,82,201,.08)!important}.perm-nav-area.is-active>.perm-nav-area__head:before{background:#685dd8}.perm-nav-area__head>i{width:22px;height:22px;display:grid;place-items:center;border-radius:6px;color:#6258c8!important;background:#efedfb;font-size:.9rem!important}.perm-nav-area__head>span{font-size:.72rem!important;color:#38324e}.perm-nav-area__head>em{margin-right:auto;padding:2px 5px;border-radius:5px;background:#f2f0f8;color:#756e8d!important}.perm-nav-area__head .perm-nav-caret{width:20px!important;height:20px!important;color:#7b72a0!important}.perm-nav-area__head .perm-nav-check{flex:none!important}.perm-nav-area__items{margin-top:3px!important;padding-top:1px!important}

/* Permission search accordion — remove duplicated outer outline */
.perm-studio__filters .user-studio-acc{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}

/* Permission card corners and detail header — final override */
.perm-action-card{padding:9px 10px 20px 38px!important}
.perm-action-card__selection{position:absolute!important;inset:0!important;display:block!important;pointer-events:none!important}
.perm-action-card__selection .mud-checkbox{position:absolute!important;top:5px!important;left:6px!important;right:auto!important;bottom:auto!important;margin:0!important;padding:0!important;pointer-events:auto!important}
.perm-action-card__selection em{position:absolute!important;left:9px!important;bottom:5px!important;right:auto!important;top:auto!important;font-size:.61rem!important;line-height:1!important;white-space:nowrap!important;color:#77708e!important}
.perm-detail-hero{background:linear-gradient(135deg,#fff 0%,#f7f5ff 55%,#efecff 100%)!important;border-color:#dcd7f2!important}
.perm-detail-hero__icon{color:#6358cf!important;background:linear-gradient(135deg,#ebe8ff,#ddd7ff)!important;border:1px solid #d2cbf4!important}

/* Permission search accordion — single outline */
.perm-studio__filters .user-studio-acc{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}

/* Requested card corners and detail header */
.perm-action-card{padding:9px 10px 20px 38px!important}.perm-action-card__selection{position:absolute!important;inset:0!important;display:block!important;pointer-events:none!important}.perm-action-card__selection .mud-checkbox{position:absolute!important;top:5px!important;left:6px!important;right:auto!important;bottom:auto!important;margin:0!important;padding:0!important;pointer-events:auto!important}.perm-action-card__selection em{position:absolute!important;left:9px!important;bottom:5px!important;right:auto!important;top:auto!important;font-size:.61rem!important;line-height:1!important;white-space:nowrap!important;color:#77708e!important}.perm-detail-hero{background:linear-gradient(135deg,#ffffff 0%,#f7f5ff 55%,#efecff 100%)!important;border-color:#dcd7f2!important}.perm-detail-hero__icon{color:#6358cf!important;background:linear-gradient(135deg,#ebe8ff,#ddd7ff)!important;border:1px solid #d2cbf4!important}

/* Submenu alignment only */
.perm-nav-item--level2{width:100%!important;margin-right:0!important;padding-right:28px!important}.perm-nav-item--level2>.perm-nav-indent{display:none!important}.perm-nav-item--level2>i{width:18px!important;min-width:18px!important;height:18px!important;display:inline-grid!important;place-items:center!important;font-size:.95rem!important}.perm-nav-item--level2>span:not(.perm-nav-check):not(.perm-nav-caret):not(.perm-nav-indent){text-align:right!important}

/* Permission card corner placement */
.perm-action-card{padding:9px 38px 20px 10px!important}.perm-action-card__selection{position:absolute!important;inset:0!important;display:block!important;pointer-events:none!important}.perm-action-card__selection .mud-checkbox{position:absolute!important;top:5px!important;right:6px!important;left:auto!important;bottom:auto!important;margin:0!important;padding:0!important;pointer-events:auto!important}.perm-action-card__selection em{position:absolute!important;right:9px!important;bottom:5px!important;left:auto!important;top:auto!important;font-size:.61rem!important;line-height:1!important;white-space:nowrap!important;color:#77708e!important}.perm-action-card__title,.perm-action-card__meta{padding-right:0!important}

/* Permission search accordion — exact user picker parity */
.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-content{padding-top:0!important}.perm-studio>.perm-studio__filters{margin-top:0!important;padding:2px 12px 0!important;background:#fff!important;border-bottom:1px solid #eceaf6!important}.perm-studio__filters .user-studio-acc{margin:0 0 8px!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}.perm-studio__filters .user-studio-acc__toggle{min-height:unset!important;padding:8px 12px!important;border:1px solid #e4e0ef!important;border-radius:12px!important;background:#f5f6fa!important;color:#1e293b!important}.perm-studio__filters .user-studio-acc__toggle:hover{background:#f3f1fb!important;border-color:#d5ceea!important}.perm-studio__filters .user-studio-acc.is-open .user-studio-acc__toggle{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-bottom-color:transparent!important}.perm-studio__filters .user-studio-acc__main{gap:6px!important}.perm-studio__filters .user-studio-acc__main i{font-size:1rem!important;color:#685dd8!important}.perm-studio__filters .user-studio-acc__main strong{font-size:.8rem!important;font-weight:700!important;color:#1e293b!important}.perm-studio__filters .user-studio-acc__main em{font-size:.72rem!important;font-weight:600!important;color:#64748b!important}.perm-studio__filters .user-studio-acc__meta{gap:6px!important;font-size:.72rem!important;font-weight:600!important;color:#685dd8!important}.perm-studio__filters .user-studio-acc__meta>span{color:#64748b!important}.perm-studio__filters .user-studio-acc__meta>i{font-size:1rem!important}.perm-studio__filters .user-studio-acc.is-open .user-studio-acc__body{padding:10px!important;border:1px solid #e4e0ef!important;border-top:0!important;border-radius:0 0 12px 12px!important;background:#fff!important}

@media (max-width: 420px) {
    .contact-group-wrapper .nav-tabs.widget-nav-tabs,
    .contact-group-wrapper .nav-tabs.widget-nav-tabs.contact-group-grid {
        grid-template-columns: 1fr;
    }

    .contact-group-wrapper .nav-tabs.widget-nav-tabs .nav-link,
    .contact-group-wrapper .nav-tabs.widget-nav-tabs .nav-link.contact-card {
        min-height: 104px !important;
    }

    .contact-card {
        min-height: 104px;
    }
}

/* پایین چپ */
.card-meta-left {
    position: absolute;
    bottom: 7px;
    left: 8px;
    font-size: 12px;
    color: var(--bs-secondary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.role-card-user-count {
    font-size: .7rem;
    font-weight: 600;
    color: #64748b;
    max-width: calc(100% - 48px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.role-tariff-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px 6px 8px;
    border: 1px solid #e4e0ef;
    border-radius: 8px;
    background: #fafaff;
}

.role-tariff-meta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #e9e7fd;
    color: #696cff;
    flex: 0 0 auto;
}

.role-tariff-meta__icon i {
    font-size: 1rem;
    line-height: 1;
}

.role-tariff-meta__copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.role-tariff-meta__copy small {
    font-size: .68rem;
    color: #8b90a5;
}

.role-tariff-meta__copy b {
    font-size: .82rem;
    font-weight: 700;
    color: #2e2948;
    font-variant-numeric: tabular-nums;
}

.role-tariff-meta__copy b span {
    margin-right: 4px;
    font-size: .68rem;
    font-weight: 500;
    color: #8b90a5;
}

/* پایین راست */
.card-meta-right {
    position: absolute;
    bottom: 0px;
    right: 8px;
    font-size: 14px;
    color: var(--bs-secondary-color);
}

.contact-count-text {
    display: block; /* زیر نام گروه قرار می‌گیرد */
    font-size: 0.66rem; /* ریزتر از نام گروه */
    color: gray; /* خاکستری کم‌رنگ */
}


.card-menu {
    position: absolute;
    top: 6px;
    left: 4px;
    z-index: 3;
}





/* برای اینکه کارت مرجع position باشه */
/* کانتینر وضعیت */
.card-status {
    position: absolute;
    top: 9px;
    right: 10px;
}

/* دایره وضعیت */
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px white;
}

    /* فعال */
    .status-dot.active {
        background-color: #22c55e;
    }

    /* غیرفعال */
    .status-dot.inactive {
        background-color: #9ca3af;
    }

.role-type-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.role-type-mark i {
    font-size: .85rem;
    line-height: 1;
}

.role-type-mark.is-system {
    background: #e9e7fd;
    color: #696cff;
}

.role-type-mark.is-custom {
    background: #eef2f6;
    color: #64748b;
}












.sms-counter {
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--bs-body-color);
    text-align: left;
}










.SmsTemplate-group-wrapper .nav-tabs.widget-nav-tabs .nav-link {
    width: 150px !important; /* بزرگ‌تر */
    height: 120px !important; /* افزایش ارتفاع */
    border-radius: 9px;
    border: 1px dashed #b8b8bb;
    padding: 11px;
    transition: all 0.25s ease-in-out;
}

    /* هاور اختصاصی فقط برای این صفحه */
    .SmsTemplate-group-wrapper .nav-tabs.widget-nav-tabs .nav-link:hover {
        border-color: #03ab22;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        transform: translateY(-5px);
        cursor: pointer;
        background-color: #cfffdb63;
    }

/* رنگ متن هاور */
.nav-align-top .SmsTemplate-group-wrapper .nav-tabs .nav-link:not(.active):hover {
    /*color: red !important;*/
    /*border-bottom: 2px solid #e79031 !important;*/
    border-bottom: 1px dashed #03ab22 !important;
    padding-bottom: .4185rem !important;
}


/* فاصله بین کارت‌ها */
.SmsTemplate-group-wrapper .nav-tabs:not(.nav-fill):not(.nav-justified) .nav-link {
    margin-right: .5rem;
    margin-left: .25rem;
    margin-top: 5px;
    margin-bottom: 14px;
}

.SmsTemplate-card {
    min-height: 130px;
    padding: 20px;
    position: relative; /* مرجع absolute ها */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* پایین وسط */
.card-meta-center {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
}


/*.SmsTemplate-count-text {
    padding-top: 2px;
    display: block;*/ /* زیر نام گروه قرار می‌گیرد */
    /*font-size: 0.72rem;*/ /* ریزتر از نام گروه */
    /*color: gray;*/ /* خاکستری کم‌رنگ */
/*}*/


.card-menu {
    position: absolute;
    top: 6px;
    left: 4px;
    z-index: 3;
}
























.my-box {
    border: 1px dashed #bbbaba;
    border-radius: 8px;
    /*border: 1px dashed #e6e6e8;*/
    padding: 1rem;
    cursor: pointer;
}

    .my-box.active {
        border: 1px solid #e6e6e8 !important;
        border-color: var(--bs-primary) !important;
        box-shadow: 0 -2px 0 #e79031 inset;
    }


    .my-box:hover {
        border-color: #a5a5a5; /* کمی تیره‌تر از قبل */
        background-color: #fafafa; /* روشن‌تر */
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }








/*
.nav-tabs.quick-nav-tabs {
    border: 0 !important;
    overflow-x: auto
}

    .nav-tabs.quick-nav-tabs .nav-link {
        border: 1px dashed #e6e6e8
    }

        .nav-tabs.quick-nav-tabs .nav-link.active {
            border: 1px solid #e6e6e8
        }

@media(min-width: 768px) {
    .nav-tabs.quick-nav-tabs .nav-link {
        height: 100px !important;
        width: 100px !important;
        border-radius: .375rem
    }
}

@media(max-width: 767.98px) {
    .nav-tabs.quick-nav-tabs .nav-link {
        border: 0 !important;
        padding: 0
    }
}

.nav-tabs.quick-nav-tabs .nav-link.active {
    border-color: #e79031;
    box-shadow: none !important
}

    .nav-tabs.quick-nav-tabs .nav-link.active .badge {
        background-color: rgba(115,103,240,.16) !important;
        color: #e79031 !important
    }

@media(max-width: 767.98px) {
    .nav-tabs.quick-nav-tabs .nav-link .tab-widget-title {
        display: none
    }
}

*/



/* خود باکس‌ها – شبیه کارت‌های گزارشات روزانه */
/*.quick-box {
    border: 1px solid #e6e6e8;
    border-radius: 0.75rem;
    background-color: #ffffff;
    padding: 1.1rem 1.4rem;
    min-height: 86px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}*/

    /* افکت هاور مثل تصویر */
    /*.quick-box:hover {
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
        border-color: #c7d2fe;
        transform: translateY(-2px);
    }*/

/* نقطه‌ی کوچک بالای هر باکس */
/*.quick-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: #111827;
}*/

/* متن عنوان داخل باکس */
/*.quick-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #444050;
}*/

/* آیکن سمت چپ – دایره رنگی مثل تصویر */
/*.quick-box .badge {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    background-color: rgba(115, 103, 240, 0.08);*/ /* رنگ ملایم */
/*}*/

/* اگر خواستی در هاور آیکن هم پررنگ‌تر شود */
/*.quick-box:hover .badge {
    background-color: rgba(115, 103, 240, 0.16);
}*/

/* لینک‌ها مثل متن عادی باشند */
/*.quick-box a,
.quick-box .quick-title {
    text-decoration: none;
}*/

     
            
            /* به UL اجازه بدهد ردیف جدید بسازد */
        /*.quick-access {
    gap: 16px;
    display: flex;
    flex-wrap: wrap;
}*/
        /* هر کارت */
        /*.quick-card {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    min-width: 180px;
    min-height: 110px;
    background: #fff !important;*/
        /* حذف استایل تب‌های Vuexy */
        /*color: inherit !important;
    box-shadow: none !important;
}*/
        /* Hover کارت */
        /*.quick-card:hover {
        border-color: #c7d2fe !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
        transform: translateY(-2px);
    }*/
        /* حذف استایل active تب */
        /*.quick-card.active {
        background: #fff !important;
        border-color: #e5e7eb !important;
        box-shadow: none !important;
    }*/
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

















        
        
 .icon-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }



    .img-container {
        max-height: 70vh;
        max-width: 100%;
        overflow: auto;
        text-align: center;
    }

    .img-viewer {
        display: inline-block;
        transform-origin: center center;
        user-select: none;
    }






























    /* لینک زیرمنو نسبی باشد */
    .bg-menu-theme .menu-sub > .menu-item > .menu-link {
        position: relative !important;
    }

        .bg-menu-theme .menu-sub > .menu-item > .menu-link:before {
            /*content: "";*/ /* پیشفرض دایره*/
            content: "" !important; /*فلش چپ*/
            /*content: "\ea5f" !important;*/ /* نمونه: کد گلیف یک فلش چپ در Tabler */
            /*transform: translateY(-50%) rotate(90deg);*/ /* ← این جهتش را چپ می‌کند */
            font-family: "tabler-icons" !important;
            position: absolute !important;
            font-size: .9rem !important;
            font-weight: bold !important;
            /*font-weight: normal !important;*/
            /*display: block !important;*/
            /*left: 1.25rem !important;*/ /* یا همونی که تو قالب خودت هست */
            /*top: 50% !important;*/
            color: aquamarine !important;
        }

        /*.bg-menu-theme .menu-inner .menu-sub .menu-item:not(.active) > .menu-link::before {
    color: rgb(28 54 131) !important;
}
*/

        /*.bg-menu-theme .menu-inner .menu-sub .menu-item:not(.active) > .menu-link::before {
    color: rgba(225, 222, 245, .7) !important;
}

[dir=rtl] .bg-menu-theme.menu-vertical .menu-sub > .menu-item > .menu-link:before {
    right: 1.1rem;
    left: inherit;
}

.bg-menu-theme.menu-vertical .menu-sub > .menu-item > .menu-link:before {
    left: 1.1rem;
}*/




        /* 2) اگر لینک کلاس has-icon دارد → آیکن پیش‌فرض را بردار */
        .bg-menu-theme .menu-sub > .menu-item > .menu-link.has-icon::before {
            content: none !important;
        }

    /* 3) قانون قالب که آیکن زیرمنو را مخفی می‌کند را Override کن */
    .bg-menu-theme .menu-sub .menu-link.has-icon .menu-icon {
        content: none !important;
        display: inline-flex !important;
        position: absolute;
        right: 0.75rem; /* دقیقا مثل before */
        left: inherit;
        justify-content: center;
        font-size: 1.2rem;
        /*color: rgb(70 107 216) !important;*/
        color: var(--bs-primary) !important;
        /* اگر RTL هستی: آیکن سمت چپ متن باشه */
        margin-right: 0;
    }

















    /* هدر پنل وقتی بسته است */
.mud-expand-panel:not(.mud-panel-expanded) .mud-expand-panel-header {
    background-color: #f3f3f3;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 1px 8px;
    min-height: 45px;
}

        /* هاور پنل بسته */
    .mud-expand-panel:not(.mud-panel-expanded) .mud-expand-panel-header:hover {
        background-color: #efefef;
        border: 1px solid #d9d9d9;
        cursor: pointer;
    }

    /* هدر پنل وقتی باز است */
.mud-expand-panel.mud-panel-expanded .mud-expand-panel-header {
    background-color: #f3f3ff;
    border: 1px solid #e0e0ff;
    border-radius: 6px;
    padding: 1px 8px;
    min-height: 45px;
}

    /* هاور پنل باز */
    /*    .mud-expand-panel.mud-panel-expanded .mud-expand-panel-header:hover {
        background-color: #e0dfff;
        border: 1px solid #c8c6ff;
        cursor: pointer;
    }*/








    .Message-subject {
        font-size: 14px;
        font-weight: 600;
        color: #0d47a1;
        line-height: 2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.1s ease;
    }

        .Message-subject:hover {
            color: #1976d2;
            transform: translateX(-2px);
        }



    .Message-body2 {
        font-size: 13px;
        color: #666;
        line-height: 1.7;
        margin-top: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* فقط دو خط نمایش داده می‌شود */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        /*max-width: 240px;*/ /* 🔥 حتماً عرض مشخص کن */
        transition: color 0.2s ease;
    }

    .list-group-item:hover .Message-body2 {
        color: #555; /* در حالت هاور کمی پررنگ‌تر شود */
    }


    .news-thumb {
        width: 100px;
        height: 100px;
        border-radius: 6px;
        overflow: hidden;
    }

        .news-thumb .news-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #e7e7e7; /* برای خالی‌ها زمینه روشن بده */
        }






    .Logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #ededed; /* همون خاکستری روشن پشت آیکون */
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .Logo-icon i {
            font-size: 22px; /* اندازه آیکون */
            color: gray; /* رنگ آیکون */
        }








    /* مرحله ۱: Badge را از حالت absolute MudBlazor خارج کنیم */
    .mud-nav-link .mud-badge.mud-badge-top.right {
        position: static !important;
        inset: auto !important;
    }

    /* مرحله ۲: متن NavLink را تبدیل به flex-row کنیم */
    .mud-nav-link-text {
        display: flex !important;
        align-items: center !important;
        gap: 6px;
        white-space: nowrap;
    }

        /* مرحله ۳: اجازه بده Badge کنار متن قرار بگیرد */
        .mud-nav-link-text .mud-badge-root {
            margin-inline-start: 6px;
        }

    .mud-badge-root .mud-badge-wrapper.mud-badge-top.right {
        justify-content: flex-start;
    }

    .mud-badge-root .mud-badge-wrapper.mud-badge-top {
        align-items: center !important;
    }

    .mud-nav-link .mud-badge-root {
        margin-left: 8px;
    }


    .category-card {
        border-radius: 8px;
    }

    .category-title {
        font-weight: 500;
    }

    .category-card .mud-nav-link-icon {
        font-size: 20px !important;
        fill: gray !important;
    }

    .category-card .mud-nav-link {
        padding: 8px 3px 8px 16px;
    }


    /* فونت پیش‌فرض برای آیتم‌ها، مشابه active */
    .mud-nav-link .mud-typography {
        font-size: 0.85rem !important;
    }

    /* حالت انتخاب‌شده */
    .active-nav {
        background-color: rgb(89 74 226 / 10%) !important;
        /*var(--mud-palette-primary-hover) !important;*/ /* پس‌زمینه آبی روشن */
        border-right: 2px solid var(--mud-palette-primary) !important; /* خط آبی سمت راست (برای RTL) */
        /*border-radius: 6px;*/
    }

        /* رنگ آیکون در حالت فعال */
        .active-nav .mud-nav-link-icon {
            fill: var(--mud-palette-primary) !important;
        }

        /* رنگ متن */
        .active-nav .mud-typography {
            color: var(--mud-palette-primary) !important;
            font-size: 0.85rem;
        }

        /* Badge در حالت فعال */
        .active-nav .mud-badge {
            background-color: var(--mud-palette-primary) !important;
            color: white !important;
        }

    /* چیدمان درست متن + Badge در یک ردیف */
    .mud-nav-link .mud-stack {
        width: 100%;
    }

    .mud-badge.mud-badge-default {
        color: rgb(255 255 255);
        background-color: #c9c9c9;
    }

    /*mud-nav-link:focus:not(.mud-nav-link-disabled) {
    background-color: var(--mud-palette-action-default-hover);
}*/



















    /* والد باید position relative و overflow visible داشته باشد */
    .position-relative {
        display: inline-block;
        overflow: visible; /* مهم برای اینکه بچه حرکت کند */
    }

        /* آیکون زنگوله */
        .position-relative i.ti-bell-ringing-2 {
            display: inline-block; /* حتما inline-block */
            transform-origin: top center; /* محور چرخش بالای زنگوله */
            transition: transform 0.2s;
        }

        /* هاور روی والد */
        .position-relative:hover i.ti-bell-ringing-2 {
            animation: bell-ringing-2 1s ease-in-out forwards;
        }

    /* کی‌فریم انیمیشن زنگوله */
    /*@keyframes bell-ring {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    45% {
        transform: rotate(15deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}*/


    /* کی‌فریم انیمیشن زنگوله (حرکت بزرگ‌تر) */
    @keyframes bell-ringing-2 {
        0% {
            transform: rotate(0deg);
        }

        10% {
            transform: rotate(25deg);
        }

        20% {
            transform: rotate(-20deg);
        }

        30% {
            transform: rotate(20deg);
        }

        40% {
            transform: rotate(-15deg);
        }

        50% {
            transform: rotate(15deg);
        }

        60% {
            transform: rotate(-10deg);
        }

        70% {
            transform: rotate(10deg);
        }

        80% {
            transform: rotate(-5deg);
        }

        90% {
            transform: rotate(5deg);
        }

        100% {
            transform: rotate(0deg);
        }
    }



    .new-notification-badge {
        position: absolute;
        /*    top: -4px;
    right: -6px;*/
        top: 5px;
        right: -7px;
        background-color: #ed1212;
        color: white;
        display: inline-flex;
        font-size: 0.70rem; /* تقریبا معادل 11px */
        font-weight: bold;
        /*width: 1.125rem;*/ /* تقریبا معادل 18px */
        width: auto;
        height: 16px;
        min-width: 16px;
        text-align: center;
        line-height: 16px;
        border-radius: 50%;
        border: white;
        align-items: center;
        justify-content: center;
        /*box-shadow: 0 0 0.125rem rgba(0,0,0,0.5);*/ /* تقریبا 2px */
        /*font-family: 'vazirfd' !important;*/
    }





























    .email-alert .mud-alert-close .mud-icon-button:hover {
        color: red !important; /* رنگ آیکن هنگام هاور */
    }

    .mud-alert-position {
        justify-content: flex-start !important;
    }
    /*.rtl-alert {
    direction: rtl;
    text-align: right;
}*/
















    .layout-navbar .navbar-dropdown .badge-notifications {
        top: 4px !important;
        inset-inline-end: 4px !important;
    }

    .badge.badge-notifications:not(.badge-dot) {
        padding: 0.085rem !important;
        font-size: 0.60rem !important;
        line-height: 0.88rem !important;
        border-radius: 50rem;
    }


    /* برای اینکه بتوانیم فلش را روی dropdown قرار دهیم */
    .layout-navbar .navbar-dropdown {
        position: relative; /* مهم */
        overflow: visible !important; /* اگر پنهان باشد فلش دیده نمی‌شود */
        border: none;
        z-index: 10;
    }

        /* فلش */
        .layout-navbar .navbar-dropdown .dropdown-menu::before {
            content: "";
            position: absolute;
            top: -8px; /* چقدر بالا بایستد */
            left: 12px; /* فاصله از سمت راست (قابل تنظیم) */

            width: 17px;
            height: 17px;
            background: #ffffff; /* رنگ پس‌زمینه (باید با رنگ منو یکی باشد) */

            transform: rotate(45deg);
            /*box-shadow: -1px -1px 10px rgba(0, 0, 0, 0.10);*/
            border-top-left-radius: 1px; /* برای اینکه لبه‌ها گرد شود مثل تصویر */
            z-index: -1; /* 🔥 این باعث میشه فلش زیر dropdown باشه */
        }







    /*.dropdown-notifications-list scrollable-container {
    background: #685dd8;*/ /* پس‌زمینه سفید */
    /*}*/

    /* استایل پایه هر پیام */
    .dropdown-notifications-item {
        background: #f6f6f6; /* پس‌زمینه سفید */
        border: 1px solid #d9d9d9 !important; /* بوردر خیلی ظریف */
        border-radius: 7px 7px !important; /* گوشه‌های گرد */
        margin: 6px 0px 0px 0px; /* فاصله بین آیتم‌ها (چپ و راست و پایین) */
        /*box-shadow: 0 1px 3px rgba(0,0,0,0.04);*/ /* سایه نرم (در حد حرفه‌ای) */
        transition: all 0.2s ease;
    }

    /* فاصله بالا برای اولین آیتم هم بزنه */
    .list-group-item:first-child {
        margin-top: 2px;
    }

    /* افکت هاور */
    .dropdown-notifications-item:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.10); /* سایه بیشتر */
        transform: translateY(-2px); /* کمی بالا بیاد (modern) */
    }

    /* حذف حاشیه پیشفرض bootstrap */
    /*.list-group-item {
    border: none !important;
}
*/

    .layout-wrapper:not(.layout-horizontal) .layout-navbar .dropdown-menu[data-bs-popper]
    Specificity: (0,5,0) {
        top: 0% !important;
    }




    /* نوار رنگی سمت راست */
    .note-accent {
        position: relative;
    }

        .note-accent::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0; /* اگر RTL هست */
            width: 4px; /* ضخامت نوار */
            background-color: var(--mud-palette-primary) !important; /* رنگ ثابت فعلاً (نارنجی) */
            border-radius: 0 10px 10px 0; /* گوشه‌ها هماهنگ با کارت */
        }




    /* فوتر سفارشی */
    .dropdown-footer-tools {
        border-top: 1px solid #e1e1e1;
        background-color: #efefefaf;
        /*font-size: 0.8rem;*/
    }

    .footer-wrapper {
        height: 40px;
    }

    /* متن بخش سمت راست */
    .dropdown-footer-tools span {
        color: #555;
    }

    /* آیکون‌ها */
    /*.footer-icon {
    color: #888;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: 0.2s;
}*/

    .footer-actions {
        display: flex;
        align-items: center;
    }

    .footer-icon {
        display: inline-flex; /* برای وسط‌چین کردن آیکن */
        align-items: center;
        justify-content: center;
        width: 30px; /* عرض ثابت دایره */
        height: 30px; /* ارتفاع ثابت دایره */
        border-radius: 50%; /* دایره کامل */
        transition: all 0.2s;
        margin-right: -10px; /* یا margin-left در RTL */
    }

        .footer-icon:hover {
            background-color: #d3d3d3; /* بک‌گراند روی هاور */
            color: #000; /* رنگ آیکن تیره‌تر */
            cursor: pointer;
        }


    /*
    .footer-icon:hover {
        background-color: #6a11cb;
        color: #333;
    }*/


    .notifications-box {
        max-height: 300px;
        overflow-y: auto;
        direction: rtl;
    }

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

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

        .list-group-item .small {
            font-weight: 600;
        }












    /* 🔸 پیام نخوانده */
    .msg-unread {
        background-color: #F9F6FF !important; /* بنفش خیلی روشن */
        /*border-left: 3px solid #7367F0 !important;*/ /* نوار کناری سمت راست  */
        border: 1px solid #E0D9FF !important;
        transition: all 0.25s ease-in-out;
    }

        .msg-unread::after {
            background-color: var(--accent-color) !important; /* بنفش برند */
        }

        /* ✨ افکت hover */
        .msg-unread:hover {
            background-color: #f2f2fb !important; /* کمی تیره‌تر از بنفش روشن */
            box-shadow: 0 4px 12px rgba(115, 103, 240, 0.15);
            transform: translateY(-2px);
        }


    /* 🔹 پیام خوانده‌شده */
    .msg-read {
        background-color: #F8F8F8 !important; /* پس‌زمینه خنثی Vuexy */
        /*border-left: 3px solid #BDBDBD !important;*/ /* نوار کناری سمت راست  */
        border: 1px solid #E5E5E5 !important;
        opacity: 0.95;
        transition: all 0.25s ease-in-out;
    }

        .msg-read::after {
            background-color: var(--accent-color) !important; /* خاکستری ملایم */
        }

        .msg-read:hover {
            background-color: #f3f3f3 !important;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            transform: translateY(-2px);
        }



    /* 🟠 hover روی هر پیام */
    /*.dropdown-notifications-item:hover {
    background-color: #f0f4f8 !important;
}*/








    /* ظاهر کلی نقطه وضعیت */
    .dot {
        display: inline-block;
        margin: 0;
        padding: 0;
        width: .5rem;
        height: .5rem;
        border-radius: 50%;
        vertical-align: middle;
        transition: all 0.3s ease-in-out;
    }
        /* افکت هاور */
        .dot:hover {
            transform: scale(1.3); /* بزرگ‌تر شدن */
            box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); /* کمی سایه نرم */
        }



    /* 🔴 پیام نخوانده */
    .dot-unread {
        background-color: var(--bs-secondary) !important;
        /*box-shadow: 0 0 6px rgba(255, 159, 67, 0.6);*/
    }


    /* 🟢 پیام خوانده‌شده */
    .dot-read {
        background-color: #BDBDBD; /* خاکستری ملایم */
        /*background-color: #4caf50;*/ /* سبز ملایم */
        box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
        opacity: 0.7;
    }



    /*  آیکون تیک */
    .notif-status-dot i {
        transition: 0.2s ease;
    }

    .notif-status-dot:hover i {
        transform: scale(1.1); /* کمی بزرگ‌تر */
        color: var(--mud-palette-primary) !important; /* رنگ آبی مثل MudBlazor */
        opacity: 0.9;
    }



    /* ❌ آیکون حذف */
    .notif-action-delete {
        color: gray;
        transition: all 0.25s ease-in-out;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        /* 🟥 افکت hover روی حذف */
        .notif-action-delete:hover {
            background-color: rgb(19 3 3 / 9%);
            color: red;
            padding: 0;
            transform: scale(1.1);
            /*box-shadow: 0 0 6px rgba(211, 47, 47, 0.4);*/
        }


    /* پنهان‌کردن دکمه حذف در حالت عادی */
    .notif-action-delete {
        opacity: 0;
        visibility: hidden;
    }

    /* نمایش دکمه هنگام hover روی آیتم پیام */
    /*.dropdown-notifications-item:hover .notif-action-delete {
    opacity: 1;
    visibility: visible;
    transform: scale(1.1);
}*/

    .msg-read .notif-action-delete {
        opacity: 1;
        visibility: visible;
    }


    /*پدینگ دور هر اعلان*/
    .layout-navbar .navbar-dropdown.dropdown-notifications .dropdown-notifications-list .dropdown-notifications-item {
        padding: .75rem 1rem .25rem 1rem;
        cursor: pointer;
    }





    .Message-title {
        font-size: 12px;
        font-weight: 600;
        color: #0d47a1;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.1s ease;
    }

        .Message-title:hover {
            color: #1976d2;
            transform: translateX(-2px);
        }

        /* 🔹 انیمیشن حرکت زیرنویسی فقط موقع hover */
        .Message-title:hover {
            animation: scrollText 9s linear infinite;
        }

    /* 🔸 تعریف انیمیشن */
    @keyframes scrollText {
        0% {
            text-indent: 0;
        }

        100% {
            text-indent: -100%;
        }
    }

    /*.text-body {
    --bs-text-opacity: 1;
    color: #6d6b77 !important;
}*/

    .Message-body {
        font-size: 12px;
        color: #666;
        line-height: 1.5;
        margin-top: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* فقط دو خط نمایش داده می‌شود */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        /*max-width: 240px;*/ /* 🔥 حتماً عرض مشخص کن */
        transition: color 0.2s ease;
    }

    .list-group-item:hover .Message-body {
        color: #555; /* در حالت هاور کمی پررنگ‌تر شود */
    }

































    .my-Dialog.mud-dialog {
        border-radius: 8px !important;
    }

        .my-Dialog.mud-dialog .mud-dialog-title {
            border-bottom: 2px solid #8d8d8ede !important;/*فاصله بین هدر یا تایتل دیالوگ با بدنه*/
            padding: 7px !important;
            background-color: #e9e7e7 !important;
        }

            /* هدف‌گذاری دکمه ضربدر در دیالوگ با کلاس my-Dialog */
        .my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close {
            right: unset !important; /* برای حذف موقعیت پیش‌فرض */
            left: 8px !important; /* تنظیم موقعیت دکمه ضربدر از سمت چپ */
            padding: 3px !important; /* فاصله داخلی دکمه */
            top: 3px !important; /* فاصله دکمه از بالا */
        }

        /* تغییر سایز آیکن ضربدر */
            .my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close .mud-icon-size-medium {
                font-size: 1.25rem !important; /* تغییر سایز آیکن */
            }

                /* حالت هاور دکمه ضربدر */
            .my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close:hover {
                color: red !important; /* تغییر رنگ دکمه در هاور */
                background-color: #d9d9d9 !important; /* تغییر رنگ پس‌زمینه در هاور */
            }

        .my-Dialog.mud-dialog .mud-dialog-content {
            overflow: visible !important;*/
            /*max-height: none !important;*/
            /*overflow-y: hidden !important;*/ /*اسکرول عمودی*/
            /*overflow-x: hidden !important;*/ /*اسکرول افقی*/
            /*overflow: hidden !important;*/ /*اسکرول هردوطرف*/
        }



.myDialog-CheangePassword.mud-dialog .mud-dialog-content {
    overflow: visible !important;
    /*max-height: none !important;*/
    /*overflow-y: hidden !important;*/ /*اسکرول عمودی*/
    /*overflow-x: hidden !important;*/ /*اسکرول افقی*/
    /*overflow: hidden !important;*/ /*اسکرول هردوطرف*/
}













    .background-features {
        /*    background: url('/assets/img/backgrounds/email-sms-marketing.jpg');
        background: url(https://leadferno.com/wp-content/uploads/email-sms-marketing-1000.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgb(0 0 0 / 2%);
    background-blend-mode: overlay;*/

        background: url('/assets/img/backgrounds/bulk-sms-banner.png');
        /*background: url(https://cdn.prod.website-files.com/63f6c457981ee7b9ec5a8e3f/649baac0eece8f112eaa1d2d_bulk-sms-banner-image.png);*/
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        background-color: rgb(0 0 0 / 2%);
        background-blend-mode: overlay;
    }








    /*.mud-chip > .mud-chip-content {
    font-size: 10px;
}*/

    /*.mud-chip {
        padding: 2px !important;
        margin: 4px !important;
        border-radius: 6px !important;
    }*/

        .mud-chip.mud-chip-size-medium {
            height: 32px !important;
            font-size: 11px !important;
            border-radius: 6px !important;
        }








    .mud-table-toolbar {
        position: sticky;
        top: 0;
        z-index: 5;
        background-color: var(--mud-palette-surface);
        padding: 8px 16px;
    }

    /* حالت عمومی (برای دسکتاپ) */
    .mud-toolbar {
        /*display: flex;
    flex-wrap: wrap;*/ /* اجازه بده عناصر در چند خط بیفتند */
        /*align-items: flex-start;*/ /* شروع از بالا */
        height: auto !important; /* ارتفاع پویا */
        min-height: 56px; /* ارتفاع پایه برای دسکتاپ */
        gap: 0.5rem; /* فاصله بین عناصر */
    }








    .mud-input-adornment-text {
        font-size: var(--mud-typography-body2-size) !important;
        font-weight: var(--mud-typography-body2-weight) !important;
        line-height: var(--mud-typography-body2-lineheight) !important;
        /*    color: gray;
*/
    }









    .news-meta {
        background-color: #eaeaea;
        border-radius: 6px;
        font-size: 13px;
        color: #666;
        padding: 10px;
        border-right: 4px solid #1976d2;
    }

    .meta-left i {
        color: #9e9e9e;
        font-size: 14px;
    }

    .publisher-info i {
        color: #9e9e9e;
        font-size: 14px;
    }

    .news-body-text {
        font-size: 13.5px !important;
        line-height: 1.8 !important;
        color: #333333ed;
        text-align: justify;
    }

    .news-detail-card {
        /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);*/
        transition: all 0.3s ease;
        border: 1px solid #e3e3e3;
        border-radius: 8px;
    }

        .news-detail-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 15px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(0, 0, 0, 0.08);
        }











    .news-list {
        list-style: none;
    }

    .news-card {
        border: 1px dashed #bbbaba;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 10px;
        background-color: #e8e8e852;
        cursor: pointer;
        transition: all 0.25s ease-in-out;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), /* لایه نرم نزدیک کارت */
        0 6px 10px rgba(0, 0, 0, 0.08); /* سایه‌ی پخش پایین‌تر */
    }

        .news-card:hover {
            background-color: #ecf3fa; /* پس‌زمینه ملایم آبی موقع هاور */
            box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
            border-color: #a9c2fc;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* سایه نرم */
            transform: translateY(-3px); /* حرکت جزئی رو به بالا */
        }



    .news-title {
        font-size: 11px;
        font-weight: 600;
        color: #0d47a1;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.1s ease;
    }

        .news-title:hover {
            color: #1976d2;
            transform: translateX(-2px);
        }

        /* 🔹 انیمیشن حرکت زیرنویسی فقط موقع hover */
        .news-title:hover {
            animation: scrollText 9s linear infinite;
        }

    /* 🔸 تعریف انیمیشن */
    @keyframes scrollText {
        0% {
            text-indent: 0;
        }

        100% {
            text-indent: -100%;
        }
    }


    .news-date {
        font-size: 10px;
        color: #a9a9a9;
        text-align: left !important; /* جهت متن */
        direction: rtl !important; /* برای درست‌نمایی ساعت */
        /*display: flex;*/
        align-items: center;
        margin-top: 4px;
        /*white-space: nowrap;*/
    }


    .news-body {
        font-size: 11px;
        color: #666;
        line-height: 1.5;
        margin-top: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* فقط دو خط نمایش داده می‌شود */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color 0.2s ease;
    }

    .news-card:hover .news-body {
        color: #555; /* در حالت هاور کمی پررنگ‌تر شود */
    }


















    .mud-table-pagination-toolbar {
        border-top: 0px solid var(--mud-palette-table-lines) !important;
        height: 52px;
        padding-right: 2px;
        padding-inline-end: 2px;
        padding-inline-start: unset;
        flex-wrap: nowrap;
    }


    /* چینش در دو سر – تعداد رکورد راست، صفحه‌بندی چپ */
    /* رفع قطع شدن خط بالای بخش پایین گرید */
    .custom-pager-content {
        border-top: 1px solid var(--mud-palette-table-lines);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 16px;
        /*box-sizing: border-box;*/
    }
    /*    .custom-pager-content .record-count {
        font-size: 0.875rem;
        color: var(--mud-palette-text-secondary);
        direction: rtl;
    }*/











    /* قابلیت تغییر اندازه برای TextArea های MudBlazor */
    .resizable-textarea textarea {
        line-height: 1.6;
        height: 246px;
        width: 1201px;
        min-height: 60px;
        min-width: 160px;
        max-width: none !important;
        resize: both !important;
        overflow: auto !important;
        max-height: none !important;
    }









    /* ساخته شده با html خودم breadcrumb */
    /*.my-breadcrumbs {
    padding: 0;
    margin: 0 0 8px 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex !important;*/ /* 👈 کلید اصلی */
    /*flex-direction: row !important;*/ /* 👈 اجباری برای افقی */
    /*align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    direction: rtl;
}

.breadcrumb-item {
    display: inline-flex !important;*/ /* 👈 هر آیتم افقی */
    /*align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #555;
}

.breadcrumb-separator {
    margin: 0 4px;
    opacity: 0.6;
}


.breadcrumb-item a {
    color: #1d4ed8;
    text-decoration: underline;
    cursor: pointer;
    transition: 0.2s;
}

    .breadcrumb-item a:hover {
        color: #0d47a1;
        text-decoration: underline;
    }*/




    /* ساخته شده با کامپوننت مودبلیزور breadcrumb */

    .my-breadcrumbs.mud-breadcrumbs {
        padding-top: 0 !important;
        /*font-size: 11px !important;*/
        /* سایز کل نوار breadcrumb */
        /*margin: 0 !important;*/ /* اگر margin هم می‌خوای حذف بشه */
    }


    /* غیرفعال بدون لینک سایز فونت آیتم‌های breadcrumb */
    .my-breadcrumbs .mud-breadcrumb-item {
        font-size: 12px !important; /* سایز تک‌تک آیتم‌ها */
    }


    /* لینک‌های فعال breadcrumb (قابل کلیک) */
    .my-breadcrumbs a {
        font-size: 12px !important; /* سایز کل نوار breadcrumb */
        /*text-decoration: none !important;*/
        /*color: blue !important;*/
    }


    /* آیکن‌های breadcrumb */
    .my-breadcrumbs .mud-icon-root {
        font-size: 18px !important;
        /*margin-left: 4px !important;*/
    }











    /*.small-font input, .small-font label, .small-font .mud-input-slot {
    font-size: 14px !important;
}
*/

    /*.small-textfield label.mud-input-label {
    font-size: 12px !important;
}*/


    .small-btn {
        font-size: 15px !important;
        padding: 5px 8px;
    }



    /* ===== فرم‌ها و ورودی‌ها ===== */
    /* لیبل بالای TextField و Select */
    .form-compact .mud-input-label {
        font-size: 14px !important;
    }

    /* مقدار تایپ‌شده یا انتخاب‌شده */
    .form-compact .mud-input-slot,
    .form-compact .mud-input-input,
    .form-compact .mud-input-root {
        font-size: 14px !important;
    }




    /* ===== MudSelect ===== */
    /* مقدار نمایش داده شده داخل Select */
    .form-compact .mud-select .mud-input-slot,
    .form-compact .mud-select .mud-input-input,
    .form-compact .mud-select .mud-input-root {
        font-size: 14px !important;
    }

    /* ===== ۷) منوی بازشونده MudSelect (حتی خارج فرم) ===== */
    .mud-popover .mud-list-item-text,
    .mud-popover .mud-list-item-text > p,
    .mud-popover .mud-list-item .mud-typography,
    .mud-popover .mud-list-item .mud-typography-body1 {
        font-size: 14px !important;
    }




    /* ===== MudSwitch ===== */
    /* فقط لیبل اصلی سوئیچ (نمایش اجباری) */
    .form-compact .mud-switch .mud-typography {
        font-size: 13px !important;
    }


    /* استایل پایه متن داخل سوئیچ */
    .mud-switch .mud-typography-caption.mycaptionswitch {
        font-size: 10px !important;
        margin-top: -8px;
        display: block;
        color: gray !important;
    }



    .form-compact .mud-switch-span {
        /*  padding-right: 3px !important;
    padding: 12px;
    width: 49px;
    height: 38px;*/
        margin-right: -10px;
        margin-left: -3px;
    }


    /* 1. ارتفاع سوئیچ را کم کن */
    .form-compact label.mud-switch {
        height: 20px !important; /* یا عدد دلخواه مثل 20px */
        /*margin-bottom: 8px;*/ /* فاصله بین سوئیچ‌ها */
    }




    .status-active {
        color: #594ae2 !important; /* مثلا بنفش یا رنگ برند */ /* یا Color.Success */
        font-weight: 500; /* کمی بولدتر برای تاکید */
    }

    /* غیرفعال */
    .status-inactive {
        color: #424242 !important; /* یا Color.Error */
        font-weight: 400;
    }





    /* تغییر فونت و اندازه متن در کنار سوئیچ */
    .my-switch .mud-switch .mud-typography-body1 {
        font-size: 0.77rem !important; /* سایز متن */
        font-weight: 500 !important; /* نیمه بولد */
    }


    /* ===== MudCheckBox ===== */
    .form-compact .mud-checkbox .mud-typography {
        font-size: 14px !important;
    }







    /* تغییر فونت و سایز */
    .my-checkbox .mud-checkbox .mud-typography-body1 {
        font-size: 0.85rem !important; /* سایز متن کوچیک‌تر */
        font-weight: 500 !important; /* نیمه بولد */
    }

    /* کم کردن فاصله بین مربع و متن */
    .my-checkbox .mud-checkbox {
        gap: 4px !important; /* مقدار پیش‌فرض حدود 8px هست */
    }

    .my-checkbox .mud-icon-button {
        width: 16px !important;
        height: 16px !important;
    }




    element.style {
        /* background-color: #3F51B0; */
        color: #060606;
        /* border-bottom: 1px solid #e0e0e0; */
        border: 1px solid #c1bebe;
        border-radius: 6px;
        height: 55px;
    }





















    /* کارت کلی */
    /*.user-card {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
}
*/

    /* محتوای داخل هدر */


    /* عنوان + آیکن */
    /*.user-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}*/

    /* دکمه بستن */
    .my-card .close-btn {
        color: black !important;
        justify-content: space-between;
        transition: transform 0.2s ease-in-out;
    }

    .close-btn:hover {
        transform: scale(1.15);
    }


    /*    Style ="background-color: #3f51b5;  display: flex; color: white; border-bottom: 1px solid #e0e0e0;"
*/





    /*.mud-card-header {
    background: #ffffff;*/
    /*    border-bottom: 1px solid #685dd8;
    border-top: 1px solid #897ef5;
    border-right: 1px solid #897ef5;*/
    /*border-bottom-right-radius: 30px;
    display: flex !important;
    justify-content: space-between;
    align-items: center !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0px 12px 0 !important;
}



    .mud-card-header .mud-card-header-content {
        color: #685dd8;
        display: flex;
        align-items: center;
        justify-content: center;  
        align-items: center;*/
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);*/
    /*gap: 10px;

    }*/









    .mud-card-header {
        position: relative; /* برای pseudo-element ها */
        /*background: rgba(0,0,0,0.2);*/
        border-radius: 0 0 35px 0; /* فقط پایین راست گرد */
        display: flex !important;
        align-items: center !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0px 12px 10px 0px !important;
        overflow: hidden; /* برای مخفی کردن خطوط اضافه */
        min-height: 30px !important;
    }


        .mud-card-header .mud-card-header-content {
            color: #685dd8;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 5px !important;
        }
    /* خط بالا سمت چپ */
    /*.mud-card-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 40%;*/ /* کمتر از نصف */
    /*height: 10px;*/ /* ضخامت خط */
    /*background-image: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2) 2px, transparent 2px, transparent 4px ), linear-gradient(to right, #685dd8, #ffffff);
        background-blend-mode: overlay;
        border-radius: 2px;
    }*/

    /* خط پایین سمت راست */
    /*.mud-card-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40%;*/ /* کمتر از نصف */
    /*height: 10px;
        background-image: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2) 2px, transparent 2px, transparent 4px ), linear-gradient(to left, #685dd8, #ffffff);    
        background-blend-mode: overlay;
        border-radius: 2px;
    }*/

    /* اگر میخوای پترن هم باشه داخل خطوط */
    /*  .mud-card-header::before,
    .mud-card-header::after {
        background-image: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2) 2px, transparent 2px, transparent 4px ), linear-gradient(to right, #685dd8, #ffffff);
    }*/













    /* کارت کلی */
    /*.user-card {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
}*/

    /* هدر کارت */
    /*.user-card-header {
    padding: 0;
}*/

    /* محتوای داخل هدر */
    /*.user-card-header-content {
    background: linear-gradient(to left, #3f51b5, #5c6bc0, #7986cb);*/ /* از راست به چپ */
    /*color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}*/

    /* عنوان + آیکن */
    /*.user-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}*/

    /* دکمه بستن */
    /*.close-btn {
    transition: transform 0.2s ease-in-out;
}

    .close-btn:hover {
        transform: scale(1.15);
    }*/























    /*@media (max-width: 991.98px) {*/
    /* فرم سمت راست توی موبایل/تبلت */
    /*.authentication-wrapper.authentication-cover .authentication-inner {
        height: 100vh !important;*/ /* کل ارتفاع */
    /*width: 100% !important;*/ /* کل عرض */
    /*max-width: 100% !important;*/ /* هر محدودیتی رو بشکن */
    /*margin: 0 !important;*/ /* حذف فاصله بالا/پایین */
    /*padding: 1rem !important;*/ /* کمی فاصله داخلی */
    /*display: flex;
        justify-content: flex-end;*/ /* از بالا شروع کنه   start */
    /*align-items: flex-end;*/ /* از پایین پر بشه */
    /*flex-direction: column;
    }
}*/








    /*
.login-container {
    margin: auto; 
    padding: 2rem;
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 768px) {
    .login-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;  
        border-radius: 0; 
        margin: 0;
        padding: 1.5rem;
    }
}*/


    /* حالت دسکتاپ */
    /*.authentication-inner .w-px-500 {
    max-width: 500px;
    width: 100%;
}*/

    /* حالت موبایل و تبلت */
    /*@media (max-width: 992px) {
    .authentication-inner {
        flex-direction: column;
    }

        .authentication-inner .w-px-500 {
            max-width: 100% !important;
            width: 100% !important;
            min-height: 100vh;*/ /* پر کردن ارتفاع کامل */
    /*border-radius: 0 !important;
            margin: 0 !important;
            padding: 2rem 1rem;
            box-shadow: none !important;
        }
}*/













    .mud-input > input.mud-input-root-outlined.mud-input-root-adorned-end, div.mud-input-slot.mud-input-root-outlined.mud-input-root-adorned-end {
        font-family: 'Samim' !important;
    }

    .mud-typography-body1 {
        font-size: var(--mud-typography-body1-size);
        font-family: 'Samim' !important;
    }

    .mud-chip.mud-chip-label {
        display: flex; /* استفاده از flex برای مرتب‌سازی محتوا */
        flex-wrap: wrap; /* اجازه دادن به متن برای شکستن */
        align-items: center; /* ترتیب عمودی محتوا */
        justify-content: flex-start; /* ترتیب افقی محتوا */
        /*min-height: 48px;*/ /* حداقل ارتفاع چیپ‌ها */
        padding: 8px; /* پدینگ برای چیپ‌ها */
        word-wrap: break-word; /* شکستن کلمات طولانی */
        white-space: normal; /* اجازه دادن به متن برای شکستن به خطوط متعدد */
        max-width: 100%; /* محدود کردن عرض */
    }

    .mud-chip-content {
        display: block; /* نمایش متن به صورت بلوک برای شکستن متن */
        word-wrap: break-word; /* شکستن کلمات طولانی */
        white-space: normal; /* اجازه دادن به متن برای شکستن به خطوط متعدد */
        overflow-wrap: break-word; /* شکستن کلمات طولانی */
        text-align: center; /* مرتب‌سازی متن */
    }



    /* ChatGPT*/
    .chip-container {
        display: flex; /* استفاده از flex برای مرتب‌سازی محتوا */
        flex-wrap: wrap; /* اجازه دادن به متن برای شکستن */
        align-items: center; /* ترتیب عمودی محتوا */
        justify-content: flex-start; /* ترتیب افقی محتوا */
        /*min-height: 48px;*/ /* حداقل ارتفاع چیپ‌ها */
        padding: 8px; /* پدینگ برای چیپ‌ها */
        word-wrap: break-word; /* شکستن کلمات طولانی */
        white-space: normal; /* اجازه دادن به متن برای شکستن به خطوط متعدد */
        max-width: 100%; /* محدود کردن عرض */
    }

    .chip-text {
        display: block; /* نمایش متن به صورت بلوک برای شکستن متن */
        word-wrap: break-word; /* شکستن کلمات طولانی */
        white-space: normal; /* اجازه دادن به متن برای شکستن به خطوط متعدد */
        overflow-wrap: break-word; /* شکستن کلمات طولانی */
        text-align: center; /* مرتب‌سازی متن */
    }


    /* برای اینکه متن توضیح فقط تا یک حد مشخصی نمایش داده بشه و در صورت بلند بودن با «سه نقطه» (...) نمایش داده بشه */
    /* در صفحه knowledge2 قسمت remark */
    /*.multiline-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 3;  تعداد خطوطی که می‌خوای نمایش داده بشه 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}*/


    .multiline-ellipsis {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5em;
        max-height: 4.5em; /* line-height * line-clamp */
    }



    .custom-dialog-content .mud-dialog-actions {
        padding-top: 0px;
    }

    .custom-dialog-content .mud-dialog-title {
        padding-bottom: 0;
    }

    .custom-dialog-content .mud-dialog-content {
        padding-bottom: 0;
    }

    .bg-layout {
        background-image: url('/img/creative-flat-lay-photo-workspace-desk.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        min-height: 100vh;
    }




    .compact-checkbox .mud-checkbox {
        margin: 0;
        padding: 0;
        height: 30px;
        min-height: 24px;
        font-size: 13px;
    }

    .compact-checkbox {
        margin: 0;
        padding: 0;
        line-height: 1.2;
        /*    font-size: 0.875rem;
*/ font-size: 13px;
    }

    .field-container {
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 6px;
        padding: 8px;
        /*    margin-bottom: 16px;
*/ padding-right: 20px;
    }




/*    .compact-radio .mud-radio {
        margin: 0px !important;
        padding: 0 !important;
        min-height: 2px !important;
        height: 2px !important;
        align-items: center !important;
    }
    .compact-radio .mud-radio-label {
    font-size: 0.85rem !important;
    margin: 0 !important;
    padding: 0 4px !important;
    line-height: 1.2 !important;
}
.compact-radio .mud-radio-input {
    width: 16px !important;
    height: 16px !important;
}*/




    .tight-item {
        padding-top: 4px !important;
        padding-bottom: 2px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .mud-radio {
        margin: 0 !important;
    }

        .mud-radio .mud-radio-content {
            padding-right: 4px !important;
            padding-left: 0 !important;
        }







    /*انیمیشن بزرگ و کوچک شدن*/
    /*@keyframes pulseScaleGlow {
    0%, 100% {*/
    /* opacity: 1;*/
    /*transform: scale(1);
        box-shadow: 0 0 5px rgba(211, 47, 47, 0.7);
    }

    50% {*/
    /*opacity: 0.6;*/
    /*transform: scale(1.1);
        box-shadow: 0 0 15px rgba(211, 47, 47, 1);
    }
}

.new-badge-animated {*/
    /*animation: pulseScale 2s infinite ease-in-out;*/
    /*animation: pulseScaleGlow 2s infinite ease-in-out;*/
    /*animation: pulseBlink 2s infinite;*/
    /*animation: blink 1.5s infinite alternate;*/
    /* animation-timing-function: ease-in-out; */
    /*}*/



    @keyframes continuousTilt {
        0% {
            transform: rotate(5deg);
        }

        50% {
            transform: rotate(-5deg);
        }

        100% {
            transform: rotate(5deg);
        }
    }

    /*انیمیشن چرخش به چپ و راست*/
    .tilt-once {
        position: absolute;
        top: -12%;
        left: 10px;
        background-color: #673AB7;
        color: white;
        font-size: 9px;
        padding: 1px 6px;
        border-radius: 8px;
        z-index: 1;
        animation: continuousTilt 1.5s ease-in-out;
        animation-iteration-count: 3; /* یعنی فقط 3 بار بچرخه */
    }

    /*انیمیشن چرخش به چپ و راست*/
    /*توقف بعد چند ثانیه*/
    /*.new-badge-animated {
    animation: continuousTilt 1.5s infinite ease-in-out;
}*/


    /*انیمیشن چرخش به چپ و راست*/
    /*توقف با هاور ماوس روی کلمه جدید*/
    /*.tilt-hover:hover {
    animation: continuousTilt 1.5s infinite ease-in-out;
}*/


    /*#673AB7
#388E3C
#d32f2f*/




    /* متن داخل اینپوت همچنان LTR و چپ‌چین بماند */
    .phone-ltr input {
        direction: ltr;
        text-align: left;
    }

    .phone-ltr .mud-input > input.mud-input-root-outlined.mud-input-root-adorned-start, div.mud-input-slot.mud-input-root-outlined.mud-input-root-adorned-start {
        padding-left: 0;
        padding-inline-start: 10px;
        padding-inline-end: 14px;
    }
    /*.mud-input-root-adorned-end input {
    padding-left: 28px !important;*/ /* پیش‌فرض ~40px هست */
    /*}

.mud-input-root-adorned-end input {
    padding-right: 28px !important;*/ /* پیش‌فرض ~40px هست */
    /*}

.phone-ltr .mud-input-adornment-end {
    padding-right: -35px;

    min-width: auto !important;
}*/

    /*.phone-ltr .mud-input-adornment-end span {*/
    /*margin: 50px !important;*/
    /*padding-right: -10px !important;
}*/
    /*.phone-ltr .mud-input-slot span {
    margin: 90px !important;
    padding: 40px !important;
}*/

    /* قاب و برچسب کاملاً RTL شود */
    /*.phone-rtl .mud-input-root {
    direction: ltr;
}*/
    /* فاصله‌ی مناسب برای پیشوند +98 در شروع فیلد (سمت راست در RTL) */
    /*.phone-rtl .mud-input-adornment-start {
    margin-right: 8px !important;*/ /* در RTL سمت راست است */
    /*margin-left: 8px !important;
}

.phone-rtl .mud-input-adornment-end {
    padding-inline-start: 0 px !important;*/ /* حذف کامل فاصله سمت راست متن */
    /*padding-inline-end: 0px !important;*/ /* حذف فاصله اضافه طرف دیگه */
    /*min-width: auto !important;*/ /* پیش‌فرض حدود 32px است */
    /*}*/
    /*    .phone-rtl .mud-input-adornment-end span {
        margin: 0px !important;
        padding: 0px !important;
    }*/
    /*.phone-rtl .mud-input-slot {
    padding-inline-start: 2px !important;*/ /* حذف کامل فاصله سمت راست متن */
    /*padding-inline-end: 0px !important;*/ /* حذف فاصله اضافه طرف دیگه */
    /*min-width: auto !important;*/ /* پیش‌فرض حدود 32px است */
    /*}*/
    /*.phone-rtl .mud-input-slot span {
    margin: 0px !important;
    padding: 0px !important;
}*/
    /* فیلدِ outlined در RTL: پدینگ و برشِ لیبل را اصلاح کن */
    /*.phone-rtl .mud-input-root.mud-input-outlined .mud-input-outlined-border {
    padding-right: 12px;*/ /* به‌جای padding-left پیش‌فرض */
    /*padding-left: 14px;
}*/
    /* محل و مبدأ لیبل در حالت شناور */
    /*.phone-rtl .mud-input-label {
    right: 12px;
    left: auto;
    transform-origin: right top;
}*/
    /* خود legend (شیار کنار لیبل) را راست‌چین کن تا برش از سمت راست ایجاد شود */
    /*.phone-rtl .mud-input-root.mud-input-outlined .mud-input-outlined-border legend {
    right: 12px;
    left: auto;
}*/
    /* اگر گوشه‌های قاب از سمت چپ متفاوت بود، این دو خط کمک می‌کند یکنواخت شوند */
    /*.phone-rtl .mud-input-root.mud-input-outlined fieldset {
    border-top-right-radius: var(--mud-default-borderradius);
    border-top-left-radius: var(--mud-default-borderradius);
}*/











    /*.my-datagrid .mud-table-root,
.my-datagrid table,
.my-datagrid .mud-table {
    font-size: 11px !important;
}

.my-datagrid .mud-table-root {
    font-size: 11px !important;*/ /* سایز متن */
    /*}*/

    .my-datagrid .mud-table-cell {
        padding: 6px 8px !important; /* فاصله کمتر بین سلول‌ها */
        font-size: 0.78rem; /* تیتر سلول ها */
    }

    /*.my-datagrid .mud-table-head {
    font-size: 12px !important;*/ /* تیتر ستون‌ها */
    /*font-weight: 600;*/ /* کمی بولد برای خوانایی */
    /*}*/




    /* چک‌باکس‌های داخل MudDataGrid */
    /*.my-datagrid .mud-checkbox-input {
    width: 22px;*/ /* اندازه بزرگ‌تر از حالت پیش‌فرض 18px */
    /*height: 22px;
    accent-color: var(--mud-palette-primary);*/ /* استفاده از رنگ اصلی تم */
    /*cursor: pointer;
}*/

    /* در حالت انتخاب‌شده (checked) رنگ دلخواه */
    /*.my-datagrid .mud-checkbox-input:checked {
        accent-color: var(--mud-palette-primary);*/ /* آبی سفارشی، یا هر رنگ دلخواه */
    /*}*/

    /* اگر بخواهی آیکن SVG داخلی MudBlazor هم تغییر رنگ دهد */
    .my-datagrid .mud-checkbox svg {
        color: var(--mud-palette-primary); /* همان رنگ دلخواه */
        width: 22px;
        height: 22px;
    }

    /* چیدمان وسط‌چین در سلول‌ها */
    /*.my-datagrid .mud-table-cell .mud-checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
}*/








    /* هدر ستون‌های sticky */
    .my-datagrid thead .mud-table-cell.sticky-right,
    .my-datagrid thead .mud-table-cell.sticky-left {
        background-color: #f9f9f9 !important;
        font-weight: bold;
    }

    /* ردیف‌های بدنه ستون sticky */
    .my-datagrid tbody .mud-table-cell.sticky-right,
    .my-datagrid tbody .mud-table-cell.sticky-left {
        background-color: #f9f9f9 !important;
    }




    /* ستون‌های sticky سمت راست */
    /*.my-datagrid .mud-table-cell.sticky-right {
    background-color: #fff7e6 !important;*/ /* هر رنگی دوست داری */
    /*}*/

    /* ستون‌های sticky سمت چپ */
    /*.my-datagrid .mud-table-cell.sticky-left {
    background-color: #e6f4ff !important;
}*/



    /* رنگ استیکی سمت راست */
    /*.my-datagrid .mud-table-root .mud-table-cell.sticky-right {
    background-color: #fff7e6 !important;
}*/

    /* رنگ استیکی سمت چپ */
    /*.my-datagrid .mud-table-root .mud-table-cell.sticky-left {
    background-color: #e6f4ff !important;
}*/

    /* اگر خواستی هدرها یه رنگ متفاوت داشته باشن: */
    /*.my-datagrid .mud-table-root thead .mud-table-cell.sticky-right,
.my-datagrid .mud-table-root thead .mud-table-cell.sticky-left {
    background-color: #ffe0b2 !important;
    font-weight: 600;
}*/














    /*مخفی سازی*/
    /* مخفی سازی ایکن های زیر در هدر گرید ها به صورت کامل */
    /*.compact-headers .sort-direction-icon,
.compact-headers .filter-button,
.compact-headers .drag-icon-options {
    display: none !important;
}*/




    /*آیکن سورت*/


    /*حالت 1*/
    /*فقط مخفی میشه و با هاور ماوس نشون داده میشه*/

    /*.compact-headers .sort-direction-icon {
    opacity: 0 !important;
    pointer-events: none;
}*/

    /* ۲. اگر سورت فعال شد (asc یا desc) → آیکن رو نشون بده */
    /*.compact-headers .sort-direction-icon.mud-direction-asc,
    .compact-headers .sort-direction-icon.mud-direction-desc {
        opacity: 1 !important;
        pointer-events: auto !important;
    }*/



    /*حالت 2*/
    /*به صورت کامل حذف میشه*/
    /*.compact-headers*/
    /* پیش‌فرض: آیکن سورت اصلاً وجود نداشته باشه (نه دیده بشه، نه جا بگیره) */
    .mud-data-grid .mud-table-cell .column-header .sort-direction-icon {
        display: none !important;
    }

        /* وقتی سورت فعال شد (ASC یا DESC) → دوباره مثل دکمه عادی نمایش داده‌اش کن */
        .mud-data-grid .mud-table-cell .column-header .sort-direction-icon.mud-direction-asc,
        .mud-data-grid .mud-table-cell .column-header .sort-direction-icon.mud-direction-desc {
            display: inline-flex !important; /* معادل حالت پیش‌فرض MudIconButton */
        }




    /*آیکن فیلتر*/

    /* پیش‌فرض: آیکن فیلتر اصلاً جا نگیره و دیده نشه */
    /* فیلتر – پیش‌فرض: هیچی دیده نشه، جا هم نگیره */
    .mud-data-grid .mud-table-cell .column-header .filter-button {
        display: none !important;
    }

        /* وقتی فیلتر روی ستون فعاله (کلاس filtered اضافه شده) → دکمه را نشان بده */
        .mud-data-grid .mud-table-cell .column-header .filter-button.filtered {
            display: inline-flex !important;
        }





    /*آیکن درگ اند دراپ*/

    /* آیکن جابجایی ستون (۳تا نقطه عمودی) رو کامل حذف کن */
    .mud-data-grid .mud-table-cell .column-header .drag-icon-options {
        display: none !important;
    }































    /* نوار بالای تب‌ها */
    .alltabs .mud-tabs-tabbar {
        min-height: 32px !important; /* ارتفاع کلی نوار */
        padding: 0 4px !important; /* فاصله داخلی کمتر */
    }

    /* wrapper داخلی هم ممکنه ارتفاع بده */
    .alltabs .mud-tabs-tabbar-inner,
    .alltabs .mud-tabs-tabbar-content,
    .alltabs .mud-tabs-tabbar-wrapper {
        min-height: 40px !important;
    }

    /* خود تب‌ها */
    .alltabs .mud-tab {
        padding: 0px 6px 0 4px !important; /* تب‌ها جمع‌وجورتر */
        font-size: 13px !important; /* متن کوچیک‌تر */
        min-height: 38px !important; /* ارتفاع هر تب کمتر */
        line-height: 1.2 !important;
    }

    /* تب‌ها حالت عادی */
    .alltabs .mud-tab {
        background-color: rgba(0, 0, 0, 0.08);
        color: black;
        margin-top: 4px !important; /* فاصله بین تب‌ها */
        border-radius: 6px 6px 0 0 !important;
        /*border: 1px solid #ddd !important;*/ /* بوردر ریز خاکستری */
        transition: all 0.2s ease-in-out;
        position: relative; /* لازم برای خط زیر */
    }


    .alltabs .mud-tabs-tabbar,
    .alltabs .mud-tabs-tabbar-inner {
        min-height: 36px !important; /* جلوگیری از override شدن */
        border-radius: 8px 8px 0 0 !important;
        overflow: hidden; /* خیلی مهم: باعث میشه گوشه‌ها واقعا گرد بشن */
    }

    .alltabs .mud-tabs-tabbar-wrapper {
        gap: 8px !important; /* فاصله بین تب‌ها */
    }


    /* هر تب دقیقا به اندازه متنش */
    /*.alltabs.mud-tab {
    min-width: unset !important;
    width: auto !important;
    flex: 0 0 auto !important;*/
    /* از کشیده شدن تو فلکس جلوگیری میکنه */
    /*}*/


    /* تب غیر فعال در حالت هاور */
    .alltabs.mud-tab:not(.mud-tab-active):hover {
        background-color: #e5e6ef !important;
        background-color: #f0f0f0 !important;
        color: #374151 !important;
        border-radius: 6px 6px 0px 0px !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        cursor: pointer;
        border-bottom: 2px solid rgba(0, 0, 0, 0.12) !important; /* خط زیر تب */
    }

    /* هاور روی تب فعال */
    .alltabs.mud-tab.mud-tab-active:hover {
        background-color: #eef2ff !important;
        color: #1d4ed8 !important;
        border-radius: 6px 6px 0 0 !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }



    /* تب فعال */
    .alltabs .mud-tab.mud-tab-active {
        background-color: #ffffff !important;
        color: #685dd8 !important;
        font-weight: 500 !important;
        font-size: medium;
        border: 1px solid #d8d8d8 !important;
        border-bottom: none !important; /* خط پایین تب حذف */
        border-radius: 6px 6px 0 0 !important;
        margin-bottom: -1px !important; /* بیاد روی tabbar بشینه */
        position: relative;
        z-index: 2; /* بالاتر از tabbar */
        box-shadow: none !important; /* مطمئن بشیم سایه اضافی نداره */
    }

    /* غیرفعال کردن خط رنگی MudBlazor زیر تب فعال */
    .alltabs .mud-tab-slider {
        display: none !important;
    }

    .mud-tabs.alltabs > .mud-tabs-tabbar {
        /*background: linear-gradient(to bottom, #f9fcfe 0%, #dbe7f2 100%);*/
        /*background: linear-gradient(0deg, #f9fafb 0%, #e5e9f0 100%);*/

        background-color: #f1f1f2b2 !important;
        background-color: #e9edfa !important;
        background-color: #ffffff !important;
        /*    border-bottom: 1px solid #ddd !important; */
        min-height: 36px;
        position: relative;
        z-index: 1;
    }


















































    /* دیالوگ مدرن */
    .modern-dialog {
        border-radius: 9px !important;
        overflow: hidden;
        max-width: 500px !important; /* حداکثر عرض */
        margin: auto; /* وسط چین */
        box-shadow: 0 12px 18px rgba(0,0,0,0.2) !important;
        /*animation: fadeInScale 0.3s ease-out;*/
    }




        /*.modern-dialog {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
*/

        /*.modern-dialog {
    animation: elasticPop 0.65s cubic-bezier(0.42, 0, 0.58, 1);
}

@keyframes elasticPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    80% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}*/






        /* محتوای دیالوگ */
        .modern-dialog .mud-dialog-content {
            padding: 2px 16px !important; /* کمتر از مقدار پیش‌فرض */
            font-size: 0.95rem;
            color: var(--mud-palette-text-primary);
            line-height: 1.6;
            margin: 0 !important;
            min-height: unset !important; /* جلوگیری از ارتفاع پیش‌فرض */
            display: inline-block; /* ارتفاع به اندازه متن */
            align-items: center; /* عمودی وسط */
            gap: 10px; /* فاصله بین آیکن و متن */
        }


        /* محتوای دیالوگ با آیکن */
        .modern-dialog .dialog-body {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 4px 15px;
        }

        .modern-dialog .dialog-body-icon {
            font-size: 2.2rem;
            flex-shrink: 0;
        }

        .modern-dialog.dialog-body-text {
            font-size: 0.95rem;
            line-height: 1.5;
            color: var(--mud-palette-text-primary);
        }





        /* دکمه‌ها */
        /* بخش دکمه‌ها */
        .modern-dialog .mud-dialog-actions {
            justify-content: center;
            gap: 8px;
            padding: 6px 2px !important;
            background: #efefef;
            border-top: 1px solid var(--bs-gray-200);
            border-top: 1px solid #ddd;
            position: relative;
            overflow: hidden;
        }

            /* پس‌زمینه هاشوری متحرک */
            .modern-dialog .mud-dialog-actions::before {
                content: "";
                position: absolute;
                inset: 0;
                background: repeating-linear-gradient( 45deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 4px, transparent 4px, transparent 10px );
                /*background: repeating-linear-gradient(135deg, rgba(33,150,243,0.05) 0, rgba(33,150,243,0.05) 4px, transparent 4px, transparent 10px);*/
                background-size: 30px 30px;
                animation: stripeMove 3s linear infinite;
                z-index: 0;
            }

            /* دکمه‌ها رو بیار بالا بکگراند */
            .modern-dialog .mud-dialog-actions .mud-button-root {
                position: relative;
                z-index: 1;
            }

    /* انیمیشن حرکت هاشور */
    @keyframes stripeMove {
        0% {
            background-position: 0 0;
        }

        100% {
            background-position: 40px 0;
        }
    }















    /* دکمه تایید */
    /*.modern-dialog .mud-button-filled-success {
    border-radius: 5px;
    font-weight: bold;
}
    .modern-dialog .mud-button-filled-success:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }*/

    /* دکمه لغو */
    /*.modern-dialog .mud-button-filled-error {
    border-radius: 5px;
    font-weight: bold;
}

    .modern-dialog .mud-button-filled-error:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }*/



    .modern-dialog .mud-button-filled-success,
    .modern-dialog .mud-button-filled-error {
        border-radius: 5px;
        font-weight: bold;
        transition: all 0.2s ease-in-out;
    }

        .modern-dialog .mud-button-filled-success:hover,
        .modern-dialog .mud-button-filled-error:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }


    /* رنگ‌ها */
    .dialog-header.success {
        background: linear-gradient(135deg, #28c76f, #20b358);
    }

    .dialog-header.error {
        background: linear-gradient(135deg, #ff4c51, #d6342e);
    }

    .dialog-header.warning {
        background: linear-gradient(135deg, #ff9f43, #e6892d);
    }

    .dialog-header.info {
        background: linear-gradient(135deg, #007bff, #0056b3);
    }


    /*.dialog-header .dialog-icon {
    margin-left: 8px;
    font-size: 1.4rem;
}*/








    /* هدر دیالوگ مدرن */
    .modern-dialog .dialog-header {
        background: #fff;
        border: 1px solid #ddd !important;
        border-radius: 8px;
        padding: 8px 16px;
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: #2d2d2d;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.08);
        /*box-sizing: border-box;*/
    }


        /* نوار رنگی سمت راست */
        .modern-dialog .dialog-header::before {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            width: 6px;
            height: 100%;
            background: linear-gradient(180deg, var(--mud-palette-primary), var(--bs-indigo));
            /*background: linear-gradient(180deg, #6a11cb, #2575fc, #6a11cb);*/
            background-size: 200% 200%;
            border-radius: 0 6px 6px 0;
            animation: gradientMove 3s infinite linear;
        }


    @keyframes gradientMove {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }



    /* عنوان */
    .modern-dialog .dialog-title {
        font-size: 0.99rem;
        font-weight: bold;
        /*    font-weight: 600;
*/ color: var(--mud-palette-text-primary);
        margin: 0 !important;
        line-height: 1.4;
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: unset !important;
    }

    /* هدر تمام عرض */
    .modern-dialog .mud-dialog-title {
        margin: 0px;
        padding: 10px 18px !important;
    }



    .modern-dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close {
        right: unset !important;
        left: 22px !important;
        padding: 4px;
    }

    .modern-dialog.mud-dialog .mud-dialog-title .mud-button-close {
        top: 14px !important;
        FONT-WEIGHT: 600 !important;
        position: absolute !important;
        padding: 4px;
    }

    .modern-dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close:hover {
        color: red !important;
        background-color: #e9e7e7 !important;
    }



    /* آیکن کنار متن */
    /*    .modern-dialog .dialog-title svg {
        font-size: 1.4rem;
        color: var(--mud-palette-primary);
    }*/




    /*.modern-dialog {
    position: relative;*/ /* برای اینکه ::before داخل همین باکس بمونه */
    /*border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 12px 18px rgba(0,0,0,0.2) !important;
    animation: fadeInScale 0.45s ease-out;
}*/

    /* خط متحرک بالای دیالوگ */
    /*.modern-dialog::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 3px;
        width: 100%;
        background: linear-gradient(90deg, #007bff, #00c853, #ff4081, #ff9100);
        background-size: 400% 400%;
        animation: gradientMove 6s ease infinite;
        border-radius: 8px 8px 0 0;
    }*/


    /* انیمیشن حرکت رنگ */
    /*@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}*/

/* پیش‌نمایش متن پیامک در مرحله نهایی ویزارد */
.sms-preview-anchor {
    position: relative;
    z-index: 1500;
    display: inline-block;
    cursor: pointer;
}

.sms-preview-grid,
.sms-preview-grid .mud-table-container,
.sms-preview-grid .mud-table-root,
.sms-preview-grid table,
.sms-preview-grid tbody,
.sms-preview-grid tr,
.sms-preview-grid td {
    overflow: visible !important;
}

.sms-preview-grid td:has(.sms-preview-anchor) {
    position: relative;
    z-index: 20;
}

.sms-preview-tooltip {
    max-width: none !important;
}

.sms-preview-tooltip .mud-tooltip {
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sms-preview-bubble {
    position: absolute;
    z-index: 1500;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-width: min(280px, 75vw);
    padding: 12px 14px;
    direction: rtl;
    text-align: right;
    color: #fff;
    background: #4b4b4b;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
}

.sms-preview-popover,
.sms-preview-popover .mud-popover,
.mud-popover.sms-preview-popover,
.sms-preview-popover * {
    pointer-events: auto !important;
}

.sms-preview-bubble-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    margin-bottom: 5px;
    padding-bottom: 4px;
    color: #d7d7d7;
    font-size: .72rem;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.sms-preview-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.sms-preview-close:hover {
    background: rgba(255, 255, 255, .14);
}

.sms-preview-bubble-text {
    max-height: 180px;
    overflow-y: auto !important;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.9;
    font-size: .8rem;
    scrollbar-width: thin;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.sms-preview-report-dialog {
    display: flex !important;
    flex-direction: column !important;
    height: min(680px, calc(100vh - 48px));
    max-height: calc(100vh - 48px) !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}

.sms-preview-report-dialog .mud-dialog-title {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 7px 12px !important;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
}

.sms-preview-report-dialog .mud-dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100vh - 150px);
    max-height: 580px;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.sms-report-scroll-area {
    width: 100%;
    height: 100%;
    padding: 6px 9px;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    scrollbar-width: auto;
}

.sms-preview-report-dialog .mud-dialog-actions {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 42px !important;
    padding: 5px 10px !important;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    box-shadow: 0 -3px 12px rgba(34, 41, 47, .06);
}

/* Invoice dialog follows the same header/action language as the project's my-Dialog forms. */
.sms-invoice-dialog.my-Dialog.mud-dialog .mud-dialog-title {
    min-height: auto;
    padding: 7px !important;
    border-bottom: 2px solid #8d8d8ede !important;
    background-color: #e9e7e7 !important;
}

.sms-invoice-dialog.sms-preview-report-dialog {
    height: min(610px, calc(100vh - 48px));
}

.sms-invoice-dialog.my-Dialog.mud-dialog .mud-dialog-actions {
    min-height: 46px !important;
    padding: 5px 10px !important;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: #f7f6fb !important;
    box-shadow: none;
}

.sms-invoice-dialog.my-Dialog.mud-dialog .mud-dialog-actions > .mud-grid {
    width: 100% !important;
    margin: -4px !important;
}

.sms-preview-report-dialog .mud-grid {
    margin: -4px !important;
    width: calc(100% + 8px) !important;
}

.sms-preview-report-dialog .mud-grid-item {
    padding: 4px !important;
}

.sms-report-dialog-title {
    color: var(--mud-palette-text-primary) !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

@media print {
    @page sms-invoice-a4 { size: A4 portrait; margin: 0; }

    html,
    body.sms-invoice-printing {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.sms-invoice-printing > *:not(#sms-invoice-print-host) {
        display: none !important;
    }

    body.sms-invoice-printing * {
        visibility: hidden !important;
    }

    body.sms-invoice-printing #sms-invoice-print-host,
    body.sms-invoice-printing #sms-invoice-print-host * {
        visibility: visible !important;
    }

    body.sms-invoice-printing #sms-invoice-print-host {
        position: static !important;
        page: sms-invoice-a4;
        box-sizing: border-box !important;
        width: 210mm !important;
        min-width: 210mm !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 9mm 10mm !important;
        color: #171a2a !important;
        background: #fff !important;
        font-family: Samim, Vazirmatn, Tahoma, "Segoe UI", sans-serif !important;
    }

    body.sms-invoice-printing #sms-invoice-print-host .invoice-sheet {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        font-family: Samim, Vazirmatn, Tahoma, "Segoe UI", sans-serif !important;
    }
}

.sms-report-dialog-subtitle,
.sms-report-muted {
    color: var(--mud-palette-text-secondary) !important;
    font-size: .67rem !important;
    line-height: 1.35 !important;
}

.sms-report-summary {
    border: 1px solid var(--mud-palette-primary-lighten);
    background: linear-gradient(135deg, var(--mud-palette-primary-hover), var(--mud-palette-surface));
}

.sms-report-section {
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
}

.sms-report-section-title {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--mud-palette-text-primary) !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
}

.sms-report-section-title .mud-icon {
    color: var(--mud-palette-primary) !important;
}

.sms-report-detail {
    min-height: 34px;
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--mud-palette-background-gray);
}

.sms-report-label,
.sms-report-stat-label {
    color: var(--mud-palette-text-secondary) !important;
    font-size: .65rem !important;
    line-height: 1.25 !important;
}

.sms-report-value {
    color: var(--mud-palette-text-primary) !important;
    font-size: .74rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
}

.sms-report-message {
    max-height: 120px;
    overflow-y: auto;
    color: var(--mud-palette-text-primary);
    background: var(--mud-palette-background-gray);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.75;
    font-size: .73rem;
    border-right: 3px solid var(--mud-palette-primary);
}

.sms-report-stat {
    border: 1px solid var(--mud-palette-lines-default);
    background: linear-gradient(180deg, var(--mud-palette-surface), var(--mud-palette-background-gray));
}

.sms-report-stat .mud-typography-h6 {
    font-size: 1rem !important;
    line-height: 1.25 !important;
}

.sms-status-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.sms-status-stage {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-height: 60px;
    padding: 7px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    background: var(--mud-palette-background-gray);
}

.sms-status-icon {
    display: flex;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mud-palette-surface);
}

.sms-status-content {
    min-width: 0;
}

.sms-status-title {
    color: var(--mud-palette-text-primary) !important;
    font-size: .72rem !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

.sms-status-description {
    display: block;
    margin-top: 2px;
    color: var(--mud-palette-text-secondary) !important;
    font-size: .64rem !important;
    line-height: 1.55 !important;
}

.sms-status-stage.is-success {
    border-color: var(--mud-palette-success);
    background: var(--mud-palette-success-hover);
}

.sms-status-stage.is-success .sms-status-icon {
    color: var(--mud-palette-success);
}

.sms-status-stage.is-warning {
    border-color: var(--mud-palette-warning);
    background: var(--mud-palette-warning-hover);
}

.sms-status-stage.is-warning .sms-status-icon {
    color: var(--mud-palette-warning);
}

.sms-status-stage.is-error {
    border-color: var(--mud-palette-error);
    background: var(--mud-palette-error-hover);
}

.sms-status-stage.is-error .sms-status-icon {
    color: var(--mud-palette-error);
}

.sms-status-stage.is-pending .sms-status-icon {
    color: var(--mud-palette-info);
}

.sms-status-stage.is-neutral {
    opacity: .8;
}

@media (max-width: 700px) {
    .sms-status-timeline {
        grid-template-columns: 1fr;
    }
}

/* ===== Navbar layout =====
   All navbar width / alignment / wallet-clock rules live in
   wwwroot/css/navbar-layout-fix.css (loaded AFTER this file + core.css).
   Do NOT put #layout-navbar width rules here — an ID selector here previously
   overrode the desktop sidebar-aware widths and clipped left-side icons. */

/* User form – random password copy button */
.user-form-password-readonly {
    display: flex !important;
    align-items: flex-end !important;
    gap: 6px !important;
    width: calc(100% + 92px) !important;
}
.user-form-password-field {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
button.user-form-copy {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid var(--mud-palette-primary, #685dd8) !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: var(--mud-palette-primary, #685dd8) !important;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--mud-palette-primary, #685dd8) 16%, transparent) !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
}
button.user-form-copy i {
    font-size: 22px !important;
    line-height: 1 !important;
}
button.user-form-copy:hover {
    background: color-mix(in srgb, var(--mud-palette-primary, #685dd8) 10%, #fff) !important;
    border-color: var(--mud-palette-primary, #685dd8) !important;
    color: var(--mud-palette-primary, #685dd8) !important;
}
button.user-form-copy.is-copied {
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
    background: #e8f5e9 !important;
}

/* ===== Permission studio (role access) ===== */
.perm-studio-dialog.my-Dialog.mud-dialog {
    max-width: 1180px !important;
    width: min(1180px, 96vw) !important;
    height: min(86vh, 840px);
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(40, 31, 92, .28) !important;
}

.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title {
    background: linear-gradient(135deg, #5b52c9 0%, #7a6ef0 52%, #9b8cff 100%) !important;
    border-bottom: none !important;
    color: #fff !important;
    padding: 14px 18px !important;
}

.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title .mud-typography,
.perm-studio__title,
.perm-studio__title strong,
.perm-studio__title small {
    color: #fff !important;
}

.perm-studio-dialog.my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close {
    top: 50% !important;
    transform: translateY(-50%);
    color: #fff !important;
    border-color: rgba(255,255,255,.35) !important;
    background: rgba(255,255,255,.12) !important;
}

.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-content {
    overflow: hidden !important;
    padding: 0 !important;
    height: calc(min(86vh, 840px) - 118px);
}

.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-actions {
    border-top: 1px solid #eceef5;
    padding: 10px 16px !important;
    background: #f7f6fb;
}

.perm-studio__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.perm-studio__title-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    font-size: 1.2rem;
}

.perm-studio__title strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.perm-studio__title small {
    opacity: .82;
    font-size: .78rem;
}

.perm-studio {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f4f2fa;
}

.perm-studio__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #eceaf6;
}

.perm-studio__search {
    flex: 1;
    min-width: 180px;
}

.perm-studio__stats {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #5b5678;
}

.perm-studio__stats b {
    color: #5b52c9;
    font-size: .95rem;
}

.perm-studio__meter {
    width: 72px;
    height: 7px;
    border-radius: 99px;
    background: #ece9f8;
    overflow: hidden;
}

.perm-studio__meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b52c9, #9b8cff);
}

.perm-studio__body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    direction: rtl;
}

.perm-studio__nav {
    background: linear-gradient(180deg, #2d2658 0%, #3d3472 100%);
    color: #fff;
    overflow: auto;
    padding: 10px 8px 18px;
}

.perm-nav-area {
    margin-bottom: 6px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
}

.perm-nav-area.is-active {
    background: rgba(255,255,255,.1);
}

.perm-nav-area__head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 8px 8px 4px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: .82rem;
}

.perm-nav-area__head span {
    flex: 1;
    text-align: right;
    font-weight: 600;
}

.perm-nav-area__head em {
    font-style: normal;
    font-size: .68rem;
    opacity: .7;
}

.perm-nav-caret {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: #d7d2f5;
    padding: 0;
}

.perm-nav-area__items {
    padding: 0 6px 8px;
    display: grid;
    gap: 2px;
}

.perm-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #ded9fb;
    padding: 7px 8px;
    border-radius: 9px;
    cursor: pointer;
    font-size: .8rem;
    text-align: right;
}

.perm-nav-item span {
    flex: 1;
}

.perm-nav-item:hover,
.perm-nav-item.is-active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.perm-nav-check {
    display: inline-flex;
}

.perm-nav-check .mud-checkbox {
    margin: 0 !important;
    padding: 0 !important;
}

.perm-nav-check .mud-icon-root {
    color: #cfc8ff !important;
}

.perm-studio__detail {
    overflow: auto;
    padding: 16px 18px 22px;
    background:
        radial-gradient(900px 220px at 100% 0%, rgba(122,110,240,.12), transparent 55%),
        #f7f6fb;
}

.perm-empty {
    height: 100%;
    min-height: 280px;
    display: grid;
    place-content: center;
    text-align: center;
    color: #6b6688;
}

.perm-empty i {
    font-size: 2.2rem;
    color: #7a6ef0;
    margin-bottom: 8px;
}

.perm-detail-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #eceaf6;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 10px 28px rgba(73, 64, 128, .06);
}

.perm-detail-hero__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #5b52c9, #9b8cff);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.perm-detail-hero h5 {
    margin: 0;
    font-size: 1.05rem;
}

.perm-detail-hero p {
    margin: 2px 0 0;
    color: #6f6a88;
    font-size: .8rem;
}

.perm-detail-kicker {
    display: inline-block;
    font-size: .7rem;
    color: #7a6ef0;
    font-weight: 700;
}

.perm-detail-hero > div:nth-child(2) {
    flex: 1;
}

.perm-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.perm-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: right;
    border: 1px solid #e6e3f3;
    background: #fff;
    border-radius: 14px;
    padding: 14px 42px 14px 14px;
    cursor: pointer;
    min-height: 98px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.perm-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(91, 82, 201, .12);
    border-color: #cfc8ff;
}

.perm-action-card.is-on {
    border-color: #7a6ef0;
    background: linear-gradient(180deg, #f4f1ff, #fff);
    box-shadow: 0 10px 22px rgba(91, 82, 201, .12);
}

.perm-action-card.is-partial {
    border-color: #b7aef0;
    background: #fbfaff;
}

.perm-action-card i {
    font-size: 1.2rem;
    color: #7a6ef0;
}

.perm-action-card strong {
    font-size: .88rem;
    color: #2e2a4a;
}

.perm-action-card small,
.perm-action-card em {
    color: #7a7694;
    font-size: .74rem;
    font-style: normal;
}

.perm-action-card__box {
    position: absolute;
    top: 10px;
    left: 8px;
    pointer-events: none;
}

@media (max-width: 900px) {
    .perm-studio__body {
        grid-template-columns: 1fr;
    }

    .perm-studio__nav {
        max-height: 220px;
    }

    .perm-action-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== User picker studio (assign users to role) ===== */
.user-studio-dialog.my-Dialog.mud-dialog {
    max-width: 1180px !important;
    width: min(1180px, 96vw) !important;
    height: min(88vh, 860px);
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(40, 31, 92, .28) !important;
}

.user-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title {
    background-color: #e9e7e7 !important;
    border-bottom: 2px solid #8d8d8ede !important;
    color: inherit !important;
    padding: 7px 12px !important;
}

.user-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title .mud-typography,
.user-studio-dialog .user-studio__title,
.user-studio-dialog .user-studio__title .mud-typography {
    color: inherit !important;
}

.user-studio__title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-studio-dialog.my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close {
    top: 3px !important;
    transform: none;
    color: inherit !important;
    border: none !important;
    background: transparent !important;
}

.user-studio-dialog.my-Dialog.mud-dialog .mud-dialog-content {
    overflow: hidden !important;
    padding: 0 !important;
    height: calc(min(88vh, 860px) - 88px);
}

.user-studio-dialog.my-Dialog.mud-dialog .mud-dialog-actions {
    border-top: 1px solid #eceef5;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    padding: 5px 16px !important;
    background: #f7f6fb;
}

.user-studio {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-height: 0;
}

.user-studio__filters {
    padding: 2px 12px 0;
    background: #fff;
    border-bottom: 1px solid #eceaf6;
}

.user-studio-acc {
    margin-bottom: 8px;
}

.user-studio-acc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d5ceea;
    border-radius: 12px;
    background: #f3f1fb;
    color: #1e293b;
    cursor: pointer;
    text-align: right;
}

.user-studio-acc.is-open .user-studio-acc__toggle {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.user-studio-acc__toggle:hover {
    background: #f3f1fb;
    border-color: #d5ceea;
}

.user-studio-acc__main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.user-studio-acc__main i {
    color: #685dd8;
    font-size: 1rem;
}

.user-studio-acc__main strong {
    font-size: .8rem;
    font-weight: 700;
}

.user-studio-acc__main em {
    color: #64748b;
    font-size: .72rem;
    font-style: normal;
    font-weight: 600;
}

.user-studio-acc__meta {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 6px;
    color: #685dd8;
    font-size: .72rem;
    font-weight: 600;
}

.user-studio-acc__meta > span {
    color: #64748b;
}

.user-studio-acc__meta > i {
    font-size: 1rem;
    line-height: 1;
}

.user-studio-acc.is-open .user-studio-acc__body {
    border: 1px solid #e4e0ef;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 10px;
    background: #fff;
}

.user-studio__toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 180px)) 40px;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    width: 100%;
}

.user-studio__search,
.user-studio__filter {
    min-width: 0;
    width: 100%;
}

.user-studio-dialog .user-studio__toolbar .mud-input-control {
    width: 100% !important;
}

.user-studio-dialog .user-studio__toolbar .mud-input-control {
    margin: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
}

.user-studio-dialog .user-studio__toolbar .mud-input,
.user-studio-dialog .user-studio__toolbar .mud-input-root,
.user-studio-dialog .user-studio__toolbar .mud-select .mud-input {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
}

.user-studio-dialog .user-studio__toolbar .mud-input-slot,
.user-studio-dialog .user-studio__toolbar .mud-input-slot-wrapper,
.user-studio-dialog .user-studio__toolbar .mud-select .mud-input-slot {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    height: 40px !important;
    min-height: 40px !important;
}

.user-studio-dialog .user-studio__search .mud-input-control,
.user-studio-dialog .user-studio__search .mud-input {
    width: 100% !important;
}

.user-studio-dialog .user-studio__search input.mud-input-slot,
.user-studio-dialog .user-studio__search .mud-input input {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.user-studio-dialog .user-studio__toolbar .mud-input input,
.user-studio-dialog .user-studio__toolbar .mud-select-input,
.user-studio-dialog .user-studio__toolbar .mud-select .mud-input-root {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-align: right;
    white-space: nowrap !important;
}

.user-studio-dialog .user-studio__toolbar .mud-input-adornment {
    margin: 0 !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

.user-studio-dialog .user-studio__toolbar .mud-icon-root {
    font-size: 1.15rem !important;
}

.user-studio__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
}

.user-studio-dialog .user-studio__actions .mud-button-root {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
}

.user-studio-dialog .user-studio__actions .mud-button-root .mud-button-icon-start {
    margin-inline-end: 4px !important;
}

.user-studio-dialog .user-studio__actions .mud-icon-size-small,
.user-studio-dialog .user-studio__actions .mud-button-root .mud-icon-root {
    font-size: 1rem !important;
    width: 1rem !important;
    height: 1rem !important;
}

.user-studio__hint {
    margin-right: auto;
    color: #6f6a88;
    font-size: .78rem;
}

.user-studio__picked {
    margin: 0 14px 6px;
    padding: 5px 8px;
    border: 1px solid #d9d4f4;
    border-radius: 8px;
    background: linear-gradient(180deg, #f4f1ff, #fff);
}

.user-studio__picked-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    color: #3d3472;
    font-size: .68rem;
}

.user-studio__clear-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 0 7px;
    border: 1px solid #ddd7f5;
    border-radius: 6px;
    background: #fff;
    color: #5b5478;
    cursor: pointer;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.user-studio__clear-all i {
    font-size: .78rem;
    line-height: 1;
    color: #7a6ef0;
}

.user-studio__clear-all:hover {
    background: #f4f1ff;
    border-color: #c8c0ea;
    color: #3d3472;
}

.user-studio__clear-all:active {
    background: #ece8fb;
}

.user-studio__picked-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.user-studio__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #ddd7f5;
    background: #fff;
    border-radius: 6px;
    padding: 2px 6px 2px 4px;
    cursor: pointer;
    color: #2e2a4a;
    font-size: .72rem;
}

.user-studio__chip img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.user-studio__chip i {
    color: #9a93b8;
    font-size: .7rem;
}

.user-studio__more {
    font-size: .75rem;
    color: #6f6a88;
}

.user-studio__grid {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 10px 8px;
    overflow: hidden;
}

.user-studio-dialog .user-studio-grid.mud-table {
    flex: 1 1 auto;
    min-height: 0;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}

.user-studio__empty {
    height: 320px;
    display: grid;
    place-content: center;
    text-align: center;
    color: #6b6688;
}

.user-studio__empty i {
    font-size: 2rem;
    color: #7a6ef0;
    margin-bottom: 6px;
}

.user-studio-grid.mud-table {
    border: 1px solid #e4e0ef !important;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: none !important;
}

.user-studio-dialog .user-studio-grid .mud-table-container {
    border-top: 0;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

.user-studio-dialog .user-studio-grid .mud-table-cell {
    padding: 6px 10px !important;
    font-size: .8rem !important;
}

.user-studio-dialog .user-studio-grid .mud-table-head,
.user-studio-dialog .user-studio-grid .mud-table-head .mud-table-cell {
    background: #f7f6fb !important;
    box-shadow: none !important;
}

.user-studio-dialog .user-studio-grid .mud-table-head .mud-table-cell {
    font-size: .82rem !important;
    padding: 8px 10px !important;
    border-top: none !important;
    border-bottom: 1px solid #e4e0ef !important;
}

.user-studio-dialog .user-studio-grid.mud-table-sticky-header .mud-table-head,
.user-studio-dialog .user-studio-grid.mud-table-sticky-header .mud-table-head * {
    box-shadow: none !important;
}

.user-studio-person {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.user-studio-person img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    background: #eee;
}

.user-studio-person strong {
    display: block;
    font-size: .8rem;
    line-height: 1.2;
}

.user-studio-person small {
    color: #7a7694;
    font-size: .7rem;
}

.user-studio-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4338ca;
    font-size: .7rem;
}

.user-studio-tag--role {
    background: #f3e8ff;
    color: #6d28d9;
}

.user-studio-tag--empty {
    background: #fff7ed;
    color: #c2410c;
}

@media (max-width: 900px) {
    .user-studio__toolbar {
        gap: 6px;
    }
}

/* ===== Role studios — 2026 interaction polish ===== */
.studio-role-badge {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.studio-role-badge--green {
    background: rgba(255, 255, 255, .14);
}

.studio-context-bar {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 14px;
    color: #665f82;
    background: #fbfaff;
    border-bottom: 1px solid #eceaf6;
    font-size: .75rem;
}

.studio-context-bar__copy,
.studio-change-state,
.studio-footer__note,
.user-studio__summary-copy,
.user-studio__hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.studio-context-bar__copy i,
.user-studio__summary-copy i,
.user-studio__hint i {
    color: #786ce8;
    font-size: 1rem;
}

.studio-change-state {
    flex: none;
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: 600;
}

.studio-change-state.is-clean {
    color: #16745b;
    background: #eaf8f3;
}

.studio-change-state.is-dirty {
    color: #9a5906;
    background: #fff6df;
}

.studio-loading {
    grid-column: 1 / -1;
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #3e385d;
    background: #f8f7fc;
}

.studio-loading strong {
    margin-top: 6px;
    font-size: .9rem;
}

.studio-loading small {
    color: #817a9c;
    font-size: .75rem;
}

.studio-footer {
    width: 100%;
    align-items: center;
}

.studio-footer__note {
    color: #6e6886;
    font-size: .73rem;
}

.user-studio__footer-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
}

.user-studio__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 9px 0 7px;
    border: 1px solid #e4e0ef;
    border-radius: 6px;
    background: #fff;
    color: #5f5a75;
    font-size: .72rem;
}

.user-studio__stat i {
    font-size: 1.15rem;
    color: #6b63c9;
    line-height: 1;
}

.user-studio__stat em {
    font-style: normal;
    font-weight: 500;
}

.user-studio__stat b {
    min-width: 1.1em;
    color: #2e2948;
    font-weight: 700;
    font-size: .78rem;
}

.user-studio__stat--selected {
    border-color: #cfe8dc;
    background: #f3faf7;
}

.user-studio__stat--selected i {
    color: #1f8a68;
}

.studio-footer__note i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #6459d9;
    background: #ebe8ff;
    border-radius: 9px;
    font-size: 1rem;
}

.perm-studio-dialog .mud-button-root {
    border-radius: 10px !important;
    font-weight: 600;
    letter-spacing: 0 !important;
}

.user-studio-dialog .mud-button-root {
    border-radius: 6px !important;
    font-weight: 600;
    letter-spacing: 0 !important;
}

.perm-studio-dialog .mud-input-outlined-border {
    border-color: #ddd9ec !important;
    border-radius: 11px !important;
}

.perm-studio-dialog .mud-input-control:focus-within .mud-input-outlined-border {
    border-color: #7165df !important;
    box-shadow: 0 0 0 3px rgba(113, 101, 223, .1);
}

.user-studio-dialog .mud-input-outlined-border {
    border-color: #ddd9ec !important;
    border-radius: 6px !important;
}

.user-studio-dialog .mud-input-control:focus-within .mud-input-outlined-border {
    border-color: #7165df !important;
    box-shadow: 0 0 0 3px rgba(113, 101, 223, .1);
}

.perm-nav-area__head:focus-visible,
.perm-nav-item:focus-visible,
.perm-action-card:focus-visible,
.user-studio__chip:focus-visible,
.user-studio__clear-all:focus-visible {
    outline: 3px solid rgba(151, 140, 255, .48);
    outline-offset: 2px;
}

.user-studio__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(135px, auto)) minmax(240px, 1fr);
    gap: 8px;
    padding: 10px 14px;
    background: #f8f7fc;
    border-bottom: 1px solid #eceaf6;
}

.user-summary-card {
    min-width: 135px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid #e8e5f1;
    border-radius: 12px;
    background: #fff;
}

.user-summary-card__icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 10px;
    color: #6157cf;
    background: #eeeaff;
    font-size: 1rem;
}

.user-summary-card.is-selected {
    border-color: #a9dacc;
    background: #f1fbf7;
}

.user-summary-card.is-selected .user-summary-card__icon {
    color: #17745d;
    background: #dff5ec;
}

.user-summary-card b,
.user-summary-card small {
    display: block;
}

.user-summary-card b {
    color: #2e2948;
    font-size: .92rem;
    line-height: 1.15;
}

.user-summary-card small {
    margin-top: 2px;
    color: #827b99;
    font-size: .68rem;
    white-space: nowrap;
}

.user-studio__summary-copy {
    align-self: center;
    justify-self: end;
    max-width: 390px;
    color: #6d6786;
    font-size: .72rem;
    line-height: 1.8;
}

.user-studio__filter-reset-wrap,
.user-studio__filter-reset-wrap .mud-tooltip-root {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 !important;
}

.user-studio-dialog .user-studio__filter-reset.mud-button-root,
.user-studio-dialog .user-studio__filter-reset.mud-icon-button {
    box-sizing: border-box !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 6px !important;
}

.user-studio-dialog .user-studio__filter-reset .mud-icon-root,
.user-studio-dialog .user-studio__filter-reset .mud-button-label {
    font-size: 1.05rem !important;
}

.user-studio__picked {
    position: relative;
    box-shadow: 0 8px 22px rgba(77, 66, 139, .06);
}

.user-studio-grid .mud-table-head {
    background: #f7f6fb;
}

.user-studio-grid .mud-table-cell {
    border-bottom-color: #eeecf4 !important;
}

.user-studio-grid .mud-table-row:hover {
    background: #faf9ff !important;
}

.user-studio-dialog .user-studio-grid .mud-icon-root {
    font-size: 1.05rem !important;
    width: 1.05rem !important;
    height: 1.05rem !important;
}

.user-studio-pager.custom-pager-content {
    flex: 0 0 auto;
    padding: 0 10px;
    min-height: 48px;
    height: auto;
    gap: 8px;
}

.user-studio-dialog .user-studio-grid .mud-table-pagination,
.user-studio-dialog .user-studio-grid .mud-table-pagination-toolbar {
    flex: 0 0 auto;
    height: auto !important;
    min-height: 48px !important;
}

@media (max-width: 1050px) {
    .user-studio__summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .user-studio__summary-copy {
        grid-column: 1 / -1;
        justify-self: start;
        max-width: none;
    }
}

@media (max-width: 700px) {
    .perm-studio-dialog.my-Dialog.mud-dialog,
    .user-studio-dialog.my-Dialog.mud-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-content,
    .user-studio-dialog.my-Dialog.mud-dialog .mud-dialog-content {
        height: auto;
        flex: 1;
    }

    .studio-role-badge,
    .studio-context-bar__copy,
    .user-studio__summary-copy,
    .studio-footer__note {
        display: none;
    }

    .studio-context-bar {
        justify-content: flex-end;
    }

    .perm-studio__toolbar {
        flex-wrap: wrap;
    }

    .perm-studio__search {
        flex-basis: 100%;
    }

    .perm-studio__stats {
        margin-left: auto;
    }

    .user-studio__summary {
        grid-template-columns: repeat(3, 1fr);
        padding: 8px;
    }

    .user-summary-card {
        min-width: 0;
        justify-content: center;
        padding: 7px 5px;
    }

    .user-summary-card__icon {
        display: none;
    }

    .user-summary-card small {
        white-space: normal;
        text-align: center;
    }

    .user-studio__actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 7px 8px;
    }

    .user-studio__actions .mud-button-root {
        flex: none;
    }

    .user-studio__hint {
        display: none;
    }

    .studio-footer {
        justify-content: flex-end !important;
    }

    .user-studio-dialog .studio-footer {
        justify-content: space-between !important;
        flex-wrap: nowrap;
    }
}

/* Assign picker dialogs (roles + custom fields) */
.assign-role-dialog.mud-dialog .mud-dialog-content,
.assign-role-dialog-content {
    padding-top: 4px !important;
    padding-bottom: 8px !important;
}

.assign-role {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.assign-role__section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #e4e0ef;
    border-radius: 8px;
    background: #fff;
}

.assign-role__section-head {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b63c9;
    font-size: .7rem;
    font-weight: 600;
}

.assign-role__section-head i {
    font-size: .85rem;
    line-height: 1;
}

.assign-role__user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.assign-role__user-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #334155;
}

.assign-role__user-main b {
    display: block;
    font-size: .85rem;
}

.assign-role__user-main small {
    display: block;
    color: #94a3b8;
    font-size: .72rem;
}

.assign-role__picked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px dashed #e4e0ef;
}

.assign-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    padding: 0 2px 0 5px;
    border-radius: 3px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.assign-role-chip i {
    font-size: 11px;
    line-height: 1;
}

.assign-role-chip span {
    font-size: 11px;
    font-weight: 500;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assign-role-chip.is-system {
    background: #e9e7fd;
    border-color: #d8d5f8;
    color: #5b54c8;
}

.assign-role-chip.is-custom {
    background: #e8f0fe;
    border-color: #c5d8fb;
    color: #2f6fed;
}

.assign-role-chip__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: .65;
}

.assign-role-chip__x i {
    font-size: 10px;
}

.assign-role-chip__x:hover {
    background: rgba(15, 23, 42, .08);
    opacity: 1;
}

.assign-role__counts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    flex: 0 0 auto;
}

.assign-role-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 7px;
    border-radius: 4px;
    border: 1px solid #e4e0ef;
    background: #fff;
    color: #64748b;
    font-size: .65rem;
}

.assign-role-count i {
    font-size: .78rem;
    color: #6b63c9;
}

.assign-role-count b {
    color: #2e2948;
    font-weight: 700;
    font-size: .68rem;
}

.assign-role-count.is-selected {
    background: #f5f3ff;
    border-color: #ddd8f8;
}

.assign-role__list {
    max-height: min(42vh, 340px);
    overflow: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0;
}

.assign-role__item {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 3px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    min-width: 0;
}

.assign-role__item .mud-checkbox {
    margin-inline-end: 0;
    padding: 4px;
}

.assign-role__item.is-selected {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.assign-role__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.assign-role__copy strong {
    font-size: .74rem;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assign-role__copy small {
    font-size: .62rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .assign-role {
        min-width: 0;
    }

    .assign-role__list {
        grid-template-columns: 1fr;
    }
}

/* Permission editor v2 — final cascade */
.perm-studio-dialog.my-Dialog.mud-dialog{width:min(1180px,96vw)!important;max-width:1180px!important;height:min(88vh,860px)!important;border-radius:8px!important}
.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title{min-height:36px!important;padding:7px 12px!important;color:inherit!important;background:#e9e7e7!important;border-bottom:2px solid #8d8d8ede!important}
.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-title .mud-typography{color:inherit!important}.perm-studio-dialog.my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close{top:3px!important;transform:none!important;color:inherit!important;background:transparent!important;border:0!important}
.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-content{height:calc(min(88vh,860px) - 88px)!important}.perm-studio-dialog.my-Dialog.mud-dialog .mud-dialog-actions{height:46px!important;min-height:46px!important;max-height:46px!important;padding:5px 16px!important;background:#f7f6fb!important}
.perm-studio{background:#fff!important}.perm-studio__filters{padding:10px 12px 0!important;background:#fff!important}.perm-studio__toolbar{padding:8px 10px!important;border-bottom:0!important;background:#fff!important}
.perm-studio__actions{display:flex!important;align-items:center!important;gap:7px!important;min-height:45px!important;padding:7px 14px!important;border-bottom:1px solid #eceef5!important;background:#fff!important}.perm-studio__actions .mud-button-root{min-height:28px!important;padding:3px 9px!important;border-radius:6px!important;font-size:.72rem!important}.perm-studio__hint{flex:1;color:#6d6786;font-size:.72rem}.perm-studio__hint i{color:#7165df;margin-left:4px}.perm-studio__actions .studio-change-state{flex:none;padding:4px 9px;font-size:.68rem}
.perm-studio__body{margin:0 10px 10px!important;border:1px solid #ddd9ec!important;border-radius:8px!important;overflow:hidden!important;grid-template-columns:390px minmax(0,1fr)!important;background:#fff!important}.perm-studio__nav{padding:8px!important;color:#403a59!important;background:#f7f6fb!important;border-left:1px solid #e7e4ef!important}
.perm-nav-area{background:transparent!important;border:1px solid transparent!important;border-radius:7px!important}.perm-nav-area.is-active{background:#fff!important;border-color:#dcd7ef!important;box-shadow:0 2px 8px rgba(61,52,114,.06)!important}.perm-nav-area__head{color:#403a59!important;padding:7px 6px!important}.perm-nav-area__head em{color:#837c9d!important;opacity:1!important}.perm-nav-caret{color:#7165df!important}.perm-nav-item{color:#5e5875!important;border-radius:6px!important;padding:6px 8px!important}.perm-nav-item:hover,.perm-nav-item.is-active{color:#554bc5!important;background:#eeebff!important}.perm-nav-check .mud-icon-root{color:#685dd8!important}
.perm-studio__detail{padding:12px 14px 16px!important;background:#fff!important}.perm-detail-hero{padding:11px 13px!important;margin-bottom:10px!important;border-color:#e4e1ec!important;border-radius:8px!important;box-shadow:none!important}.perm-detail-hero__icon{width:38px!important;height:38px!important;border-radius:7px!important;color:#685dd8!important;background:#eeebff!important;font-size:1.1rem!important}
.perm-action-grid{gap:8px!important}.perm-action-card{min-height:84px!important;padding:11px 38px 11px 11px!important;border-color:#e4e1ec!important;border-radius:7px!important;box-shadow:none!important}.perm-action-card:hover{transform:none!important;border-color:#9589ee!important;box-shadow:0 4px 12px rgba(91,82,201,.08)!important}.perm-action-card.is-on{border-color:#7165df!important;background:#f7f5ff!important;box-shadow:none!important}.perm-studio-dialog .mud-button-root,.perm-studio-dialog .mud-input-outlined-border{border-radius:6px!important}
@media(max-width:700px){.perm-studio__actions{flex-wrap:wrap!important}.perm-studio__hint{flex-basis:100%}.perm-studio__body{margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important}}

/* Permission editor v3 — compact cards, visible metrics and hierarchical navigation */
.perm-studio__section-head{min-height:30px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 14px;color:#514a6b;background:#f5f4fa;border-bottom:1px solid #e8e5f0}.perm-studio__section-head span{display:flex;align-items:center;gap:6px}.perm-studio__section-head i{color:#685dd8;font-size:.9rem}.perm-studio__section-head strong{font-size:.72rem}.perm-studio__section-head small{font-size:.65rem;color:#817a98}
.perm-studio__toolbar{min-height:50px!important;gap:8px!important;padding:6px 12px!important;border-bottom:1px solid #eceef5!important}.perm-studio__search{min-width:260px}.perm-studio__toolbar>.mud-tooltip-root{flex:none}.perm-studio__stats{flex:none;direction:rtl;min-width:210px;justify-content:flex-start}.perm-studio__meter{width:92px;height:7px;background:#ebe8f8}.perm-studio__meter span{background:#685dd8}.perm-studio__stats b{font-size:.9rem;color:#5d52cc}.perm-studio__stats small{font-size:.72rem;color:#625c78}
.perm-studio__toolbar .studio-change-state{flex:none;min-height:30px;padding:5px 12px;border-radius:999px;font-size:.72rem;font-weight:700}.studio-change-state.is-dirty{color:#a76700;background:#fff4d8}.studio-change-state.is-clean{color:#087f69;background:#e9f9f4}.perm-studio__toolbar .studio-change-state i{font-size:1rem}
.perm-studio__actions{min-height:38px!important;padding:4px 12px!important}.perm-studio__body{margin:8px 10px 8px!important;min-height:0;height:100%}.perm-studio__nav{height:100%;min-height:0;overflow-y:auto!important;background:#f3f2f9!important;border-left:1px solid #ddd9ec!important;padding:0 7px 12px!important}
.perm-tree-tools{position:sticky;top:0;z-index:3;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 -7px 7px;padding:6px 9px;background:#ebe9f5;border-bottom:1px solid #d9d5e8;box-shadow:0 3px 8px rgba(68,57,119,.06)}.perm-tree-tools>div{display:flex;align-items:center;gap:7px;min-width:0}.perm-tree-tools>div>i{width:27px;height:27px;display:grid;place-items:center;border-radius:6px;color:#5f55c7;background:#fff}.perm-tree-tools span span,.perm-tree-tools strong,.perm-tree-tools small{display:block}.perm-tree-tools strong{font-size:.72rem;color:#38324e}.perm-tree-tools small{font-size:.6rem;color:#79728f}.perm-tree-tools__actions{display:flex!important;gap:2px}.perm-tree-tools__actions .mud-icon-button{width:28px!important;height:28px!important;padding:3px!important;border:1px solid #d7d2e8;border-radius:6px!important;background:#fff;color:#665ccf}
.perm-nav-area{margin-bottom:4px!important}.perm-nav-area__head{min-height:36px;font-size:.74rem!important}.perm-nav-area__head>i{font-size:1rem;color:#534c72}.perm-nav-area__head em,.perm-nav-item em{font-style:normal;font-size:.59rem;color:#817a98}.perm-nav-area__items{position:relative;padding:0 8px 6px 2px!important;gap:1px!important}.perm-nav-area__items:before{content:"";position:absolute;right:17px;top:0;bottom:8px;width:1px;background:#d5d1e4}.perm-nav-branch{position:relative}.perm-nav-item{position:relative;min-height:32px!important;font-size:.7rem!important}.perm-nav-item--level2{padding-right:7px!important}.perm-nav-item--level3{padding-right:28px!important;font-size:.66rem!important;color:#6d6682!important}.perm-nav-item--level3 .perm-nav-line{position:absolute;right:16px;top:50%;width:10px;height:1px;background:#c9c4dc}.perm-nav-indent{width:22px;flex:none}.perm-nav-item .perm-nav-caret{display:inline-grid;place-items:center;flex:none}.perm-nav-item>.perm-nav-check{flex:none}.perm-nav-item>span:nth-of-type(2){flex:1}.perm-nav-item>i{font-size:.9rem}.perm-nav-item--level3>i{font-size:.82rem}
.perm-detail-hero{min-height:60px!important;padding:8px 11px!important}.perm-detail-hero__icon{width:34px!important;height:34px!important}.perm-detail-hero h5{font-size:.86rem!important}.perm-detail-hero p{font-size:.68rem!important}.perm-detail-kicker{font-size:.6rem!important}.perm-detail-hero .mud-button-root{min-height:28px!important;font-size:.68rem!important;padding:3px 9px!important}
.perm-action-grid{gap:6px!important;align-content:start}.perm-action-card{display:block!important;min-height:66px!important;padding:9px 10px 8px 38px!important}.perm-action-card__title{display:flex;align-items:center;gap:7px;min-width:0}.perm-action-card__title i{flex:none;font-size:1rem!important;color:#7669e6}.perm-action-card__title strong{font-size:.76rem!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.perm-action-card__meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;min-width:0}.perm-action-card__meta small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.65rem!important}.perm-action-card__meta em{flex:none;font-size:.62rem!important;color:#756e8d!important}.perm-action-card__box{top:auto!important;bottom:7px!important;left:7px!important}.perm-action-card__box .mud-icon-root{font-size:1.05rem!important}
@media(max-width:900px){.perm-studio__toolbar{flex-wrap:wrap}.perm-studio__search{flex-basis:calc(100% - 42px)}.perm-studio__stats{flex:1}.perm-studio__toolbar .studio-change-state{margin-right:auto}.perm-studio__section-head small{display:none}.perm-studio__nav{max-height:250px}}

/* Permission editor v4 — requested hierarchy, search and card layout refinements */
.perm-studio-dialog.my-Dialog.mud-dialog {
    width: min(1320px, 97vw) !important;
    max-width: 1320px !important;
}

.perm-studio__filters {
    padding: 8px 10px 6px !important;
}

.perm-studio__filters .user-studio-acc {
    margin: 0 !important;
}

.perm-studio__filters .user-studio-acc__toggle {
    min-height: 42px !important;
}

.perm-studio__filters .user-studio-acc__body {
    padding: 7px 9px !important;
}

.perm-studio__toolbar {
    min-height: 46px !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
}

.perm-studio__search {
    width: 100% !important;
    min-width: 0 !important;
}

.perm-studio__actions {
    gap: 8px !important;
}

.perm-studio__actions .perm-studio__stats {
    flex: none !important;
    min-width: 190px !important;
}

.perm-studio__actions .studio-change-state {
    flex: none !important;
}

.perm-studio__actions .perm-studio__hint {
    margin-right: auto;
    flex: none !important;
    text-align: left;
}

.perm-studio__body {
    grid-template-columns: 325px minmax(0, 1fr) !important;
}

.perm-nav-area__head {
    margin: 3px 0 !important;
    padding: 8px 9px !important;
    border: 1px solid #dfdbee !important;
    border-radius: 9px !important;
    background: #ebe9f6 !important;
}

.perm-nav-area.is-active > .perm-nav-area__head,
.perm-nav-area__head:hover {
    border-color: #c9c2ef !important;
    background: #e3dff8 !important;
}

.perm-nav-area__items {
    padding-right: 18px !important;
}

.perm-nav-item--level2 {
    width: calc(100% - 18px) !important;
    margin-right: 18px !important;
    padding-right: 14px !important;
}

.perm-nav-item--level3 {
    width: calc(100% - 38px) !important;
    margin-right: 38px !important;
    padding-right: 18px !important;
}

.perm-action-card {
    padding: 10px 11px 9px 40px !important;
}

.perm-action-card__box {
    top: 7px !important;
    bottom: auto !important;
    left: 7px !important;
}

.perm-action-card__meta {
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 8px !important;
}

@media (max-width: 900px) {
    .perm-studio-dialog.my-Dialog.mud-dialog {
        width: 98vw !important;
    }
    .perm-studio__actions .perm-studio__hint {
        width: 100%;
        margin-right: 0;
        text-align: right;
    }
}

/* Permission editor v5 final cascade */
.perm-studio__nav .perm-nav-area{margin:0 5px 3px!important}
.perm-action-card__meta small{font-size:.72rem!important;line-height:1.5!important}
.perm-studio__detail .perm-action-card__title>i{font-size:1.2rem!important}
.perm-studio__detail .perm-action-card__meta small{position:absolute!important;right:10px!important;left:74px!important;bottom:5px!important;margin:0!important;line-height:1.25!important}
.perm-studio__detail .perm-action-card__selection em{font-size:.76rem!important;font-weight:500!important;line-height:1.25!important}
.perm-nav-item--level2{font-size:.8rem!important}
.perm-nav-area__head>em,.perm-nav-item--level2>em,.perm-nav-item--level3>em{font-size:.72rem!important;line-height:1.2!important;font-weight:500!important;color:#9b96ad!important}
.perm-nav-area__head,.perm-nav-item--level2,.perm-nav-item--level3{padding-left:34px!important}
.perm-studio__detail .perm-action-card{padding:9px 10px 20px 38px!important}
.perm-studio__detail .perm-action-card__selection{position:absolute!important;inset:0!important;display:block!important;pointer-events:none!important}
.perm-studio__detail .perm-action-card__selection .mud-checkbox{position:absolute!important;top:5px!important;left:6px!important;right:auto!important;bottom:auto!important;margin:0!important;padding:0!important;pointer-events:auto!important}
.perm-studio__detail .perm-action-card__selection em{position:absolute!important;left:9px!important;bottom:5px!important;right:auto!important;top:auto!important;font-size:.76rem!important;font-weight:500!important;line-height:1.25!important;white-space:nowrap!important;color:#aaa5b7!important}
.perm-studio__filters .user-studio-acc{margin-bottom:8px!important}
.perm-nav-area__items{padding-right:4px!important}
.perm-nav-item--level2{width:calc(100% - 4px)!important;min-height:29px!important;margin-right:4px!important;padding-top:3px!important;padding-right:8px!important;padding-bottom:3px!important}
.perm-nav-item--level2 .mud-checkbox{padding-top:2px!important;padding-bottom:2px!important}
.perm-nav-item--level2:hover,.perm-nav-item--level2.is-active{background:transparent!important}
.perm-nav-item--level2:hover::before,.perm-nav-item--level2.is-active::before{content:"";position:absolute;inset:0 18px 0 0;border-radius:6px;background:#eeebff;pointer-events:none;z-index:0}
.perm-nav-item--level2>*{position:relative;z-index:1}
.perm-nav-item--level2>.perm-nav-indent{display:block!important;width:8px!important;min-width:8px!important;flex:none!important}
.perm-nav-item--level2>i{width:21px!important;min-width:21px!important;height:21px!important;display:inline-grid!important;place-items:center!important;color:#5f5878!important;font-size:1.08rem!important;line-height:1!important}
.perm-studio__filters{padding:8px 10px 6px!important;background:#fff!important}.perm-studio__filters .user-studio-acc{border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}.perm-studio__filters .user-studio-acc__toggle{min-height:40px!important;padding:6px 11px!important;background:#f3f1fb!important;border-color:#d5ceea!important}.perm-studio__filters .user-studio-acc__main{gap:7px!important}.perm-studio__filters .user-studio-acc__main i{color:#685dd8!important}.perm-studio__filters .user-studio-acc__main strong{font-size:.73rem!important;color:#423b5a!important}.perm-studio__filters .user-studio-acc__main em{font-size:.65rem!important;color:#716a87!important}.perm-studio__filters .user-studio-acc__meta{font-size:.66rem!important;color:#5f55c7!important}.perm-studio__filters .user-studio-acc.is-open .user-studio-acc__toggle{border-bottom:1px solid #e4e0f1!important}.perm-studio__filters .user-studio-acc__body{padding:7px 9px!important;background:#fff!important}.perm-studio__filters .perm-studio__toolbar{min-height:40px!important}.perm-studio__filters .perm-studio__toolbar>.mud-tooltip-root{flex:none}.perm-studio__filters .perm-studio__toolbar .mud-icon-button{width:32px!important;height:32px!important;min-width:32px!important}
.perm-detail-hero{min-height:50px!important;padding:6px 9px!important;margin-bottom:7px!important}.perm-detail-hero__icon{width:30px!important;height:30px!important;font-size:.92rem!important}.perm-detail-hero h5{font-size:.82rem!important;line-height:1.25!important}.perm-detail-hero p{margin-top:1px!important;font-size:.64rem!important;line-height:1.4!important}.perm-detail-hero>div:nth-child(2){display:flex;flex-direction:column;justify-content:center}.perm-detail-kicker{display:none!important}
.perm-action-card{position:relative!important;min-height:64px!important;padding:9px 10px 8px 92px!important}.perm-action-card__meta{display:block!important;width:100%!important;margin-top:6px!important;padding-top:0!important}.perm-action-card__meta small{display:block!important;max-width:100%!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.perm-action-card__selection{position:absolute;left:7px;bottom:5px;display:inline-flex;align-items:center;gap:1px;direction:rtl;color:#77708e}.perm-action-card__selection em{font-size:.61rem!important;font-style:normal;white-space:nowrap}.perm-action-card__selection .mud-checkbox{margin:0!important;padding:0!important}.perm-action-card__selection .mud-icon-root{font-size:1.05rem!important}.perm-action-card__box{display:none!important}
.perm-nav-area{padding:0!important;margin:0 0 3px!important;border:0!important;background:transparent!important;box-shadow:none!important}.perm-nav-area__head{position:relative;min-height:38px!important;margin:0!important;padding:7px 8px!important;border:1px solid transparent!important;border-radius:8px!important;background:#fff!important;box-shadow:0 1px 2px rgba(54,45,96,.04)!important;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease!important}.perm-nav-area__head:before{content:"";position:absolute;right:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:transparent}.perm-nav-area__head:hover{border-color:#d9d4ec!important;background:#faf9fe!important;box-shadow:0 3px 10px rgba(54,45,96,.07)!important}.perm-nav-area.is-active>.perm-nav-area__head{border-color:#cfc8ef!important;background:#f6f4ff!important;box-shadow:0 3px 10px rgba(91,82,201,.08)!important}.perm-nav-area.is-active>.perm-nav-area__head:before{background:#685dd8}.perm-nav-area__head>i{width:22px;height:22px;display:grid;place-items:center;border-radius:6px;color:#6258c8!important;background:#efedfb;font-size:.9rem!important}.perm-nav-area__head>span{font-size:.72rem!important;color:#38324e}.perm-nav-area__head>em{margin-right:auto;padding:2px 5px;border-radius:5px;background:#f2f0f8;color:#756e8d!important}.perm-nav-area__head .perm-nav-caret{width:20px!important;height:20px!important;color:#7b72a0!important}.perm-nav-area__head .perm-nav-check{flex:none!important}.perm-nav-area__items{margin-top:3px!important;padding-top:1px!important}
.mud-dialog-actions,
.app-form-actions {
    direction: rtl;
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    gap: .5rem;
}

.app-action-confirm.mud-button-root,
.mud-dialog-actions .mud-button-filled-primary {
    background: #6757d9 !important;
    color: #fff !important;
    min-width: 96px;
    border-radius: 5px;
    font-weight: 700;
    order: 1;
}

.app-action-cancel.mud-button-root,
.mud-dialog-actions .mud-button-filled-warning {
    background: #ff9800 !important;
    color: #fff !important;
    min-width: 96px;
    border-radius: 5px;
    font-weight: 700;
    order: 2;
}

.app-action-confirm.mud-button-root:not(:has(.mud-icon-root)) .mud-button-label::before,
.app-action-cancel.mud-button-root:not(:has(.mud-icon-root)) .mud-button-label::before {
    font-family: 'Material Icons';
    font-size: 1.15rem;
    line-height: 1;
    margin-left: .4rem;
}

.app-action-confirm.mud-button-root:not(:has(.mud-icon-root)) .mud-button-label::before { content: "check"; }
.app-action-cancel.mud-button-root:not(:has(.mud-icon-root)) .mud-button-label::before { content: "undo"; }

.app-operation-button {
    position: relative;
    overflow: hidden;
}

.app-operation-button .mud-progress-linear {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px !important;
}

/* ===== Sidebar visual state and scroll treatment ===== */
#layout-menu.bg-menu-theme .app-brand.demo {
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 88% 50%, rgba(20, 31, 79, .33) 0%, rgba(31, 39, 94, .16) 22%, transparent 42%),
        linear-gradient(to left, #304176 0%, #4d428a 52%, #7155a8 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
    box-shadow: 0 8px 22px rgba(43, 31, 78, .18) !important;
}

#layout-menu .app-brand.demo .app-brand-logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
}

#layout-menu .novin-logo--sidebar {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
    opacity: 1;
    image-rendering: auto;
    filter: none !important;
}

@media (min-width: 1200px) {
    .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) #layout-menu .app-brand.demo {
        width: 100% !important;
        padding: 0 !important;
        justify-content: center !important;
        background:
            radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .055) 22%, transparent 43%),
            linear-gradient(118deg, #4867a5 0%, #574a98 48%, #7559ad 100%) !important;
    }

    .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) #layout-menu .app-brand-link {
        width: 100% !important;
        justify-content: center !important;
    }

    .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) #layout-menu .app-brand-logo {
        visibility: hidden !important;
    }

    .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) #layout-menu .app-brand.demo::after {
        content:"";
        position:absolute;
        top:50%;
        left:50%;
        right:auto;
        bottom:auto;
        width:50px;
        height:50px;
        margin:0;
        transform:translate(-50%,-50%);
        background:url('../assets/img/Logo/logo-novin-icon.png?v=3') center / 50px 50px no-repeat;
        filter:none !important;
        pointer-events:none;
        z-index:2;
    }
}

.sms-wizard-btn-next,.sms-wizard-btn-submit { box-shadow:none !important; }
.app-action-confirm.mud-button-root:not(:has(.mud-icon-root)) .mud-button-label::before,
.app-action-cancel.mud-button-root:not(:has(.mud-icon-root)) .mud-button-label::before { content:none !important; }
.buy-now.auth-support-fab .btn-buy-now,
.buy-now.auth-support-fab .auth-support-button,
.buy-now.auth-support-fab .mud-fab-root,
.buy-now.auth-support-fab .mud-button-root { color:#fff !important; background:linear-gradient(145deg,#6258d9,#4d70d8) !important; border:1px solid rgba(255,255,255,.32) !important; box-shadow:none !important; filter:none !important; }
.buy-now.auth-support-fab .btn-buy-now:hover,
.buy-now.auth-support-fab .auth-support-button:hover { background:linear-gradient(145deg,#554bc9,#4564c8) !important; box-shadow:none !important; filter:none !important; transform:translateY(-1px); }
.app-operation-button.mud-disabled,
.app-operation-button:disabled { opacity:1 !important; color:#fff !important; background:linear-gradient(100deg,#665bd9,#7a70e4) !important; }
.app-operation-button .login-button-spinner { position:absolute; inset-inline-start:14px; width:18px !important; height:18px !important; }
.app-operation-button .mud-progress-linear { height:4px !important; border-radius:999px 999px 0 0; background:rgba(255,255,255,.18) !important; }
.app-operation-button .mud-progress-linear-bar { background:linear-gradient(90deg,#fff,#c9c4ff,#fff) !important; box-shadow:0 0 8px rgba(255,255,255,.55); }

/* Profile hero: light pearl lavender with a restrained periwinkle finish. */
.profile-page .profile-hero {
    background:
        radial-gradient(ellipse at 8% 12%, rgba(139,120,229,.13), transparent 34%),
        radial-gradient(ellipse at 92% 18%, rgba(79,126,232,.105), transparent 36%),
        linear-gradient(116deg,#f1edfb 0%,#faf9fd 48%,#edf3fc 100%) !important;
}

/* MudTooltip introduces a wrapper; keep the top-up action truly minimal. */
#layout-navbar .navbar-wallet .navbar-wallet__add {
    width:29px !important;
    min-width:29px !important;
    height:29px !important;
    min-height:29px !important;
    padding:0 !important;
    border-radius:8px !important;
}

#layout-navbar .navbar-wallet .navbar-wallet__add i { font-size:.88rem !important; }

/* Keep a little breathing room between the top-up action and the wallet frame. */
#layout-navbar .navbar-wallet .navbar-wallet__actions { padding-inline-end:3px !important; }

.modern-dialog .dialog-body-icon {
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 5px 14px rgba(30, 35, 60, .08);
}

.modern-dialog .dialog-body-icon.is-warning { background: #fff7e8; border-color: #ffe1ad; }
.modern-dialog .dialog-body-icon.is-error { background: #fff0f1; border-color: #ffcfd3; }
.modern-dialog .dialog-body-icon.is-success { background: #ecfbf2; border-color: #c4f0d3; }
.modern-dialog .dialog-body-icon.is-info { background: #eef6ff; border-color: #cfe4ff; }

#layout-menu .menu-inner-shadow {
    display: none !important;
    opacity: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

#layout-menu .search-container {
    z-index: 3;
    padding: 9px 12px 8px;
    background: #fff;
    border-bottom: 1px solid #eef0f6;
    box-shadow: 0 4px 12px rgba(40, 45, 70, .045);
}

#layout-menu .form-control.menu-search {
    border: 1px solid #e5e7f1 !important;
    background: #fafbfe;
    box-shadow: none !important;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#layout-menu .form-control.menu-search:focus {
    border-color: rgba(104, 93, 216, .45) !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(104, 93, 216, .09) !important;
}

#layout-menu .search-icon {
    right: 22px !important;
    z-index: 2;
    pointer-events: none;
}

#layout-menu .search-clear {
    left: 22px !important;
    z-index: 2;
}

/* Message and confirmation dialogs keep their actions centered. */
.modern-dialog.mud-dialog .mud-dialog-actions,
.dialog-background.mud-dialog .mud-dialog-actions {
    justify-content: center !important;
    padding-inline: 1rem !important;
}

#layout-menu.bg-menu-theme .menu-sub > .menu-item.is-last-selected > .menu-link {
    color: #554bc4 !important;
    background: linear-gradient(90deg, rgba(104, 93, 216, .08), rgba(104, 93, 216, .15)) !important;
    border: 1px solid rgba(104, 93, 216, .10);
    border-radius: 8px !important;
    font-weight: 700;
    box-shadow: inset -3px 0 0 #685dd8 !important;
}

#layout-menu.bg-menu-theme .menu-sub > .menu-item.is-last-selected > .menu-link .menu-icon {
    color: #685dd8 !important;
}

/* Unified application tooltip: compact neutral style with placement-aware arrows. */
.mud-tooltip,
.mud-tooltip.list-action-tooltip,
.list-action-tooltip .mud-tooltip,
.modern-black-tooltip .mud-tooltip,
.co-occasion-tip .mud-tooltip {
    max-width: 260px !important;
    border-radius: 3px !important;
    color: #fff !important;
    background-color: #4b4b4b !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.mud-tooltip.mud-tooltip-arrow::after,
.mud-tooltip.list-action-tooltip.mud-tooltip-arrow::after,
.list-action-tooltip .mud-tooltip.mud-tooltip-arrow::after,
.modern-black-tooltip .mud-tooltip.mud-tooltip-arrow::after,
.co-occasion-tip .mud-tooltip.mud-tooltip-arrow::after {
    border-color: #4b4b4b transparent transparent transparent !important;
}

.tooltip {
    --bs-tooltip-bg: #4b4b4b;
    --bs-tooltip-color: #fff;
    --bs-tooltip-opacity: 1;
    --bs-tooltip-border-radius: 3px;
    --bs-tooltip-padding-x: 8px;
    --bs-tooltip-padding-y: 5px;
    --bs-tooltip-font-size: 11px;
    transition: opacity .08s linear !important;
}

.tooltip .tooltip-inner {
    font-family: inherit;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before { border-top-color: #4b4b4b !important; }
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before { border-bottom-color: #4b4b4b !important; }
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before { border-left-color: #4b4b4b !important; }
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before { border-right-color: #4b4b4b !important; }

@media print {
    @page { size: A5 portrait; margin: 8mm; }
    html, body, #app, .layout-wrapper, .layout-container, .layout-page,
    .content-wrapper, .container-xxl, .payment-result-page {
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    body * { visibility: hidden !important; }
    .payment-result-page > * { display: none !important; }
    .payment-print-receipt,
    .payment-print-receipt * { visibility: visible !important; }
    .payment-print-receipt {
        direction: rtl;
        display: block !important;
        position: static;
        width: 100%;
        max-height: 190mm;
        box-sizing: border-box;
        padding: 0 1mm;
        color: #27253a;
        background: #fff;
        font-family: inherit;
        page-break-after: avoid;
        break-after: avoid-page;
    }
    .payment-print-receipt > header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 24mm;
        padding: 4mm 5mm;
        overflow: hidden;
        border: 1.5px solid #aaa5ba;
        border-radius: 4mm;
        background: linear-gradient(125deg, #f3f0ff 0%, #fff 58%, #f7f6ff 100%);
    }
    .payment-print-receipt > header::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 38%;
        height: 1.2mm;
        border-radius: 2mm 0 0 0;
        background: #685dd8;
    }
    .payment-print-brand { display: flex; align-items: center; justify-content: flex-start; width: 30%; }
    .payment-print-brand img { width: 25mm; height: 12mm; object-fit: contain; }
    .payment-print-title { position: absolute; left: 50%; top: 50%; width: 42%; text-align: center; transform: translate(-50%,-50%); }
    .payment-print-title h1 { margin: 0 0 3px; font-size: 16px; }
    .payment-print-title p { margin: 0; color: #5f5a70; font-size: 8px; }
    .payment-print-status { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; color: #047857; background: #ecfdf5; font-size: 9px; font-weight: 800; }
    .payment-print-status.is-cancelled { color: #b45309; background: #fff7ed; }
    .payment-print-status.is-failed { color: #b91c1c; background: #fef2f2; }
    .payment-print-amount { display: flex; align-items: center; justify-content: space-between; margin: 4mm 0 3mm; padding: 4mm 5mm; border-radius: 3mm; color: #fff; background: linear-gradient(135deg,#332c70,#685dd8); }
    .payment-print-amount span { font-size: 9px; }
    .payment-print-amount strong { font-size: 20px; }
    .payment-print-amount small { font-size: 8px; }
    .payment-print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm; }
    .payment-print-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 11mm; padding: 2.5mm 3mm; border: 1.25px solid #aaa6b5; border-radius: 2.5mm; background: #faf9fd; }
    .payment-print-grid > div.is-wide { grid-column: 1 / -1; border-color: #8fb9aa; background: #f0faf6; }
    .payment-print-grid span { color: #77738e; font-size: 7.5px; }
    .payment-print-grid b { font-size: 9px; }
    .payment-print-message { display: flex; align-items: center; gap: 7px; margin-top: 3mm; padding: 3mm; border-right: 1mm solid #685dd8; color: #514d66; background: #f7f5ff; font-size: 8px; }
    .payment-print-message i { color: #685dd8; font-size: 14px; }
    .payment-print-receipt > footer { display: flex; align-items: center; justify-content: space-between; margin-top: 5mm; padding-top: 3mm; border-top: 1.25px dashed #9994a6; color: #716d7e; font-size: 6.5px; }
}
