/* /Components/Layout/SideBar/RightRailSidebar.razor.rz.scp.css */
/* ===== Right-rail RTL collapsible sidebar — palette: basalt / lotus / uruk / sumerian ===== */

.rrs-sidebar[b-jkazocnnif] {
    --rrs-width: 340px;
    --rrs-width-collapsed: 64px;
    --rrs-bg: #ffffff;
    --rrs-header-bg: #f5f6fa; /* lotus-bg-subtle */
    --rrs-fg: #1f3b4d; /* basalt */
    --rrs-fg-muted: rgba(16, 49, 107, 0.62);
    --rrs-border: #dee1ec; /* lotus */
    --rrs-hover-bg: #f5f6fa; /* lotus-bg-subtle */

    --rrs-active-bg: #d1f0e4; /* sumerian-bg-subtle */
    --rrs-active-fg: #2f6f60; /* sumerian */
    --rrs-active-border: #2f6f60; /* sumerian */

    --rrs-expand-hover-bg: #fdf6cc; /* uruk-bg-subtle */
    --rrs-expand-accent: #c9a950; /* uruk */

    --rrs-tooltip-bg: #10316b; /* basalt */
    --rrs-tooltip-fg: #ffffff;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    height: 100vh;
    z-index: 1000;
    width: var(--rrs-width);
    background: var(--rrs-bg);
    color: var(--rrs-fg);
    display: flex;
    flex-direction: column;
    border-inline-end: 1px solid var(--rrs-border);
    box-shadow: -2px 0 12px rgba(16, 49, 107, 0.06);
    transition: width 0.2s ease, transform 0.25s ease;
    border-bottom-left-radius: 0.75rem;
    border-top-left-radius: 0.75rem;
    font-family: inherit;
}

    .rrs-sidebar.rrs-collapsed[b-jkazocnnif] {
        width: var(--rrs-width-collapsed);
    }

/* ---- header / toggle (rendered directly in RightRailSidebar.razor — no ::deep needed) ---- */
.rrs-header[b-jkazocnnif] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    background: var(--rrs-header-bg);
    border-bottom: 1px solid var(--rrs-border);
    flex-shrink: 0;
}

.rrs-brand[b-jkazocnnif] {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--rrs-fg);
    white-space: nowrap;
}

.rrs-toggle-btn[b-jkazocnnif] {
    background: #ffffff;
    border: 1px solid var(--rrs-border);
    color: var(--rrs-fg);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    .rrs-toggle-btn:hover[b-jkazocnnif],
    .rrs-toggle-btn:focus-visible[b-jkazocnnif] {
        background: var(--rrs-active-fg);
        border-color: var(--rrs-active-fg);
        color: #ffffff;
        outline: none;
        transform: translateY(-1px);
    }

    .rrs-toggle-btn:focus-visible[b-jkazocnnif] {
        outline: 2px solid var(--rrs-expand-accent);
        outline-offset: 1px;
    }

/* ---- floating mobile toggle (only exists in DOM while sidebar is collapsed) ---- */
.rrs-mobile-toggle[b-jkazocnnif] {
    display: none;
}

/* ---- search (also direct in RightRailSidebar.razor) ---- */
.rrs-search-wrap[b-jkazocnnif] {
    padding: 10px 12px;
    background: var(--rrs-header-bg);
    border-bottom: 1px solid var(--rrs-border);
    flex-shrink: 0;
}

.rrs-search-input[b-jkazocnnif] {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--rrs-border);
    color: var(--rrs-fg);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .rrs-search-input[b-jkazocnnif]::placeholder {
        color: rgba(16, 49, 107, 0.4);
    }

    .rrs-search-input:focus-visible[b-jkazocnnif] {
        outline: none;
        border-color: var(--rrs-active-fg);
        box-shadow: 0 0 0 3px rgba(11, 132, 87, 0.15);
    }

/* ---- scrollable nav shell (direct) ---- */
.rrs-nav[b-jkazocnnif] {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
}

    .rrs-nav[b-jkazocnnif]::-webkit-scrollbar {
        width: 6px;
    }

    .rrs-nav[b-jkazocnnif]::-webkit-scrollbar-thumb {
        background: var(--rrs-border);
        border-radius: 3px;
    }

.rrs-menu[b-jkazocnnif] {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---- footer: avatar + username + logout (rendered directly, no ::deep needed) ---- */
.rrs-footer[b-jkazocnnif] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--rrs-border);
    background: var(--rrs-header-bg);
    flex-shrink: 0;
}

.rrs-footer-user[b-jkazocnnif] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rrs-avatar[b-jkazocnnif] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--rrs-active-bg);
    color: var(--rrs-active-fg);
    border: 2px solid var(--rrs-active-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    overflow: hidden;
}

    .rrs-avatar img[b-jkazocnnif] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.rrs-username[b-jkazocnnif] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rrs-fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rrs-logout-btn[b-jkazocnnif] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    color: var(--rrs-fg-muted);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

    .rrs-logout-btn:hover[b-jkazocnnif],
    .rrs-logout-btn:focus-visible[b-jkazocnnif] {
        background: var(--rrs-expand-hover-bg);
        color: var(--rrs-fg);
        outline: none;
    }

.rrs-collapsed .rrs-footer[b-jkazocnnif] {
    flex-direction: column;
    gap: 10px;
    padding: 10px 6px;
}

/* =====================================================================
   Everything below is rendered by the CHILD component
   (RightRailSidebarItem.razor), so scoped CSS never reaches it without
   ::deep.
   ===================================================================== */

/* accordion-style open/close — always in DOM, animated via max-height */
[b-jkazocnnif] .rrs-submenu {
    list-style: none;
    margin: 0;
    padding-inline-end: 10px;
    border-inline-end: 1px dashed var(--rrs-border);
    margin-inline-end: 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.22s ease;
}

    [b-jkazocnnif] .rrs-submenu.rrs-submenu-open {
        max-height: 3000px;
        opacity: 1;
    }

    /* overflow:hidden above is required for the max-height accordion trick, but it
   was also clipping the tooltip. Temporarily let it overflow while something
   inside is actually being hovered/focused — :has() checks any descendant,
   including nested submenus. */
/*    ::deep .rrs-submenu:has(.rrs-link:hover),
    ::deep .rrs-submenu:has(.rrs-link:focus-visible) {
        overflow: visible;
    }*/

.rrs-collapsed[b-jkazocnnif]  .rrs-submenu {
    max-height: 0 !important;
    opacity: 0 !important;
}

[b-jkazocnnif] .rrs-item {
    position: relative;
}

[b-jkazocnnif] .rrs-link {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 9px 13px;
    color: var(--rrs-fg-muted);
    text-decoration: none;
    background: transparent;
    border: none;
    font: inherit;
    text-align: right;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 8px;
    margin: 2px 6px;
    width: calc(100% - 12px);
    transition: background 0.15s ease, color 0.15s ease;
}

    [b-jkazocnnif] .rrs-link:hover,
    [b-jkazocnnif] .rrs-link:focus-visible {
        background: var(--rrs-hover-bg);
        color: var(--rrs-fg);
        outline: none;
    }

    [b-jkazocnnif] .rrs-link.rrs-parent-btn:hover,
    [b-jkazocnnif] .rrs-link.rrs-parent-btn:focus-visible {
        background: var(--rrs-expand-hover-bg);
        color: var(--rrs-fg);
    }

    [b-jkazocnnif] .rrs-link:focus-visible {
        outline: 2px solid var(--rrs-expand-accent);
        outline-offset: -2px;
    }

[b-jkazocnnif] .rrs-item.rrs-active > .rrs-link {
    background: var(--rrs-active-bg);
    color: var(--rrs-active-fg);
    font-weight: 700;
    border-inline-end: 3px solid var(--rrs-active-border);
}

[b-jkazocnnif] .rrs-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--uruk-color);
}

/* third level+ : shrink icon slightly, free up room for text */
[b-jkazocnnif] .rrs-link.rrs-depth-2 .rrs-icon,
[b-jkazocnnif] .rrs-link.rrs-depth-3 .rrs-icon {
    width: 16px;
    height: 16px;
}

[b-jkazocnnif] .rrs-item.rrs-active > .rrs-link .rrs-icon {
    color: var(--uruk-color);
}

[b-jkazocnnif] .rrs-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.92rem;
}

[b-jkazocnnif] .rrs-link.rrs-depth-2 .rrs-text,
[b-jkazocnnif] .rrs-link.rrs-depth-3 .rrs-text {
    font-size: 0.87rem;
}

[b-jkazocnnif] .rrs-chevron {
    margin-inline-start: auto;
    transition: transform 0.15s ease, color 0.15s ease;
    color: var(--rrs-expand-accent);
}

[b-jkazocnnif] .rrs-chevron-open {
    transform: rotate(-90deg);
}

/* ---- collapsed / icon-only mode ---- */
.rrs-collapsed[b-jkazocnnif]  .rrs-link {
    justify-content: center;
    padding: 10px;
    margin: 2px 8px;
    width: calc(100% - 16px);
}

[b-jkazocnnif] .rrs-link.rrs-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* ---- tooltip: shown when collapsed (icon-only), AND for depth 2+ links even
   when expanded, since deep-nested text runs out of room / gets truncated ---- */
[b-jkazocnnif] .rrs-tooltip {
    position: absolute;
    inset-inline-start: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--rrs-tooltip-bg);
    color: var(--rrs-tooltip-fg);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translateY(-50%) translateX(-4px);
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(16, 49, 107, 0.25);
}

[b-jkazocnnif] .rrs-link:hover .rrs-tooltip,
[b-jkazocnnif] .rrs-link:focus-visible .rrs-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* expanded sidebar: only depth 2+ links keep their tooltip (truncated text aid);
   top-level / depth-1 links have enough room, tooltip stays off to avoid clutter */
.rrs-sidebar:not(.rrs-collapsed)[b-jkazocnnif]  .rrs-link:not(.rrs-depth-2):not(.rrs-depth-3) .rrs-tooltip {
    display: none;
}

/* ---- responsive: sidebar becomes off-canvas overlay, no reserved space ---- */
@media (max-width: 768px) {
    .rrs-sidebar[b-jkazocnnif] {
        width: min(80vw, 300px);
        transform: translateX(0);
        box-shadow: -6px 0 24px rgba(16, 49, 107, 0.18);
    }

        .rrs-sidebar.rrs-collapsed[b-jkazocnnif] {
            width: min(80vw, 300px); /* keep full layout ready, just slide it out */
            transform: translateX(100%);
        }

    .rrs-mobile-toggle[b-jkazocnnif] {
        display: flex;
        position: fixed;
        top: 12px;
        inset-inline-end: 12px;
        z-index: 1100;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: none;
        background: var(--rrs-active-fg, #0b8457);
        color: #fff;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 12px rgba(16, 49, 107, 0.3);
        cursor: pointer;
    }

        .rrs-mobile-toggle:hover[b-jkazocnnif],
        .rrs-mobile-toggle:focus-visible[b-jkazocnnif] {
            filter: brightness(1.08);
            outline: none;
        }
}
/* /Components/MyComs/AcceptDialog.razor.rz.scp.css */
[b-3rw457v1fp] .header-dialog-info {
    background: #6A9C89 !important;
    font: 700 !important;
    font-weight: 700 !important;
    color: #000 !important;
}

[b-3rw457v1fp] .header-dialog-warning {
    background: #ffc107 !important;
    font: 700 !important;
    font-weight: 700 !important;
    color: #000 !important;
}

[b-3rw457v1fp] .header-dialog-danger {
    background: #dc3545 !important;
    font: 700 !important;
    font-weight: 700 !important;
    color: #fff !important;
}
/* /Components/MyComs/FinancialYear.razor.rz.scp.css */
.financial-year-container[b-q4r6ihxhyj] {
    direction: rtl;
    margin: 0.75rem;
}
/* /Components/MyComs/ReportSearchBar.razor.rz.scp.css */
/* کاغذ فیلتر با افکت نرم و مدرن */
.modern-filter-card[b-d9sx6iucbi] {
    border-radius: 16px;
    margin: 12px;
/*    background: linear-gradient(135deg, #f8fdfc 0%, #ffffff 100%);*/
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.2s ease;
    max-width: 100%;
}

    .modern-filter-card:hover[b-d9sx6iucbi] {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
        transform: translateY(-1px);
    }

/* گرید با فاصله نرم و یکنواخت */
.filter-grid[b-d9sx6iucbi] {
    padding: 12px 8px;
}

/* فیلدهای ورودی یکدست و زیبا */
.modern-input[b-d9sx6iucbi] {
    height: 44px !important;
    font-size: 0.875rem !important;
}

    .modern-input .mud-input-control[b-d9sx6iucbi] {
        margin-top: 0 !important;
    }

    .modern-input .mud-input-label[b-d9sx6iucbi] {
        font-weight: 500;
        color: #374151;
    }

    .modern-input .mud-input-outlined[b-d9sx6iucbi] {
        border-radius: 10px;
        background: #ffffff;
    }

.filter-action-btn[b-d9sx6iucbi] {
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

    .filter-action-btn:hover[b-d9sx6iucbi] {
        background: linear-gradient(135deg, #c9a950 0%, #c9a950 100%);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
        transform: translateY(-1px);
    }

/* آیکون جستجو با رنگ نرم */
.search-icon[b-d9sx6iucbi] {
    color: #6b7280;
}

.field-compact[b-d9sx6iucbi] {
    display: flex;
    align-items: flex-end; /* تراز دقیق با input ها */
}

[b-d9sx6iucbi](.modern-filter-card) {
    overflow: visible !important;
}

[b-d9sx6iucbi](.mud-popover) {
    z-index: 2000 !important;
    overflow: visible !important;
}
/* انیمیشن نرم برای لودینگ */
@@keyframes fadeIn {
    from[b-d9sx6iucbi] {
        opacity: 0;
        transform: translateY(4px);
    }

    to[b-d9sx6iucbi] {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in[b-d9sx6iucbi] {
    animation: fadeIn 0.3s ease-out;
}

.filter-action-btn[b-d9sx6iucbi] {
    height: 44px !important;
    padding: 0 12px;
}

.mud-popover[b-d9sx6iucbi] {
    z-index: 2000 !important;
}

/* تقویم قطع نشه */
.mud-popover[b-d9sx6iucbi] {
    z-index: 2000 !important;
}

.mud-dialog[b-d9sx6iucbi],
.mud-paper[b-d9sx6iucbi] {
    overflow: visible !important;
}

.compact-field .mud-input-control[b-d9sx6iucbi] {
    min-width: 0 !important;
    width: 100% !important;
}

.compact-field .mud-input-root[b-d9sx6iucbi] {
    min-width: 0 !important;
}

.compact-field .mud-picker[b-d9sx6iucbi] {
    min-width: 0 !important;
}

.rotate-180[b-d9sx6iucbi] {
    transform: rotate(180deg);
}

body.filter-scroll-lock[b-d9sx6iucbi] {
    overflow-y: scroll !important;
}

.filter-divider[b-d9sx6iucbi] {
    flex-grow: 1;
    height: 1px;
    background-color: #c0c0c0;
    margin-left: 8px;
}

.filter-header-wrapper:hover[b-d9sx6iucbi] {
    color: #0fb881;
}

.filter-container[b-d9sx6iucbi] {
    max-height: 60vh;
    overflow-y: auto;
}

:root[b-d9sx6iucbi] {
    scrollbar-gutter: stable;
}

.compact-select .mud-select[b-d9sx6iucbi] {
    height: 18px;
}

.compact-select .mud-input-root[b-d9sx6iucbi] {
    min-height: 36px;
}

.compact-select .mud-select[b-d9sx6iucbi] {
    height: 36px;
}

.compact-select .mud-input-root[b-d9sx6iucbi] {
    min-height: 36px;
}

[b-d9sx6iucbi] .mud-collapse-entered .mud-collapse-wrapper {
    overflow-y: hidden;
}
/* /Components/Pages/AccReport/AccRepKolReport.razor.rz.scp.css */
body[b-3x24vz4r9m] {
    height: 100%;
}

.selected > td[b-3x24vz4r9m] {
    color: white !important;
}

    .selected > td .mud-input[b-3x24vz4r9m] {
        color: white !important;
    }

.mud-grid-spacing-xs-3[b-3x24vz4r9m] {
    width: 100%;
    margin: 0px;
}

.mud-grid-spacing-xs-6[b-3x24vz4r9m] {
    width: 100%;
    margin: 0;
}

.setting-grid[b-3x24vz4r9m] {
    padding-left: 0 !important;
    padding-top: 0 !important;
}

.header-color[b-3x24vz4r9m] {
    background-color: var(--sumerian-color) !important;
    min-width: 500px !important;
}

.mud-table-container[b-3x24vz4r9m] {
    width: 100% !important;
}

.mud-picker-inline.mud-picker-input-text[b-3x24vz4r9m] {
    direction: rtl;
}

.filtered-header[b-3x24vz4r9m] {
    background-color: #f3d250 !important;
    color: #000 !important;
    font-weight: bold;
}
/* /Components/Pages/AccReport/AccRepMandeMoeinTafsili.razor.rz.scp.css */
body[b-e5xk52dn4d] {
    height: 80%;
}

.selected > td[b-e5xk52dn4d] {
    color: white !important;
}

    .selected > td .mud-input[b-e5xk52dn4d] {
        color: white !important;
    }

.mud-grid-spacing-xs-3[b-e5xk52dn4d] {
    width: 100%;
    margin: 0px;
}

.mud-grid-spacing-xs-6[b-e5xk52dn4d] {
    width: 100%;
    margin: 0;
}

.setting-grid[b-e5xk52dn4d] {
    padding-left: 0 !important;
    padding-top: 0 !important;
}



.mud-table-container[b-e5xk52dn4d] {
    width: 100% !important;
}

.mud-picker-inline.mud-picker-input-text[b-e5xk52dn4d] {
    direction: rtl;
}
/* /Components/Pages/AccReport/AccRepMandeMoeinTafsili2.razor.rz.scp.css */
body[b-jzwefcvo5h] {
    height: 80%;
}

.selected > td[b-jzwefcvo5h] {
    color: white !important;
}

    .selected > td .mud-input[b-jzwefcvo5h] {
        color: white !important;
    }

.mud-grid-spacing-xs-3[b-jzwefcvo5h] {
    width: 100%;
    margin: 0px;
}

.mud-grid-spacing-xs-6[b-jzwefcvo5h] {
    width: 100%;
    margin: 0;
}

.setting-grid[b-jzwefcvo5h] {
    padding-left: 0 !important;
    padding-top: 0 !important;
}



.mud-table-container[b-jzwefcvo5h] {
    width: 100% !important;
}

.mud-picker-inline.mud-picker-input-text[b-jzwefcvo5h] {
    direction: rtl;
}
/* /Components/Pages/AccReport/AccRepSarfaslReport.razor.rz.scp.css */
.mud-table-container[b-ooordxgjrs] {
    width: 100% !important;
}
/* /Components/Pages/CADocument/CloseDocs.razor.rz.scp.css */
/* /Components/Pages/EmissionDocuments/DeletedDocs.razor.rz.scp.css */
[b-jecbsx6j3y] .mud-grid.mud-grid-spacing-xs-2.justify-start.d-flex.align-center.justify-end {
    justify-content: right !important;
    margin-left: 30px;
}
/* /Components/Pages/SystemUsers/SystemUser.razor.rz.scp.css */


    .selected > td[b-hebx7atbz3] {
        color: white !important;
    }

        .selected > td .mud-input[b-hebx7atbz3] {
            color: white !important;
        }
/* /Components/Pages/SystemUsers/SystemUserUpsertDialog.razor.rz.scp.css */
