/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-4znw2a11uy] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-4znw2a11uy] {
    flex: 1;
}

.sidebar[b-4znw2a11uy] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-4znw2a11uy] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-4znw2a11uy]  a, .top-row[b-4znw2a11uy]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-4znw2a11uy]  a:hover, .top-row[b-4znw2a11uy]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-4znw2a11uy]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-4znw2a11uy] {
        justify-content: space-between;
    }

    .top-row[b-4znw2a11uy]  a, .top-row[b-4znw2a11uy]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-4znw2a11uy] {
        flex-direction: row;
    }

    .sidebar[b-4znw2a11uy] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-4znw2a11uy] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-4znw2a11uy]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-4znw2a11uy], article[b-4znw2a11uy] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-4znw2a11uy] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-4znw2a11uy] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ── Nav wrapper ─────────────────────────────── */
[b-by78f0icy3] .nav-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 0 0;
}

[b-by78f0icy3] .nav-main {
    flex: 1;
    padding: 0 8px;
}

/* ── Bottom section ──────────────────────────── */
[b-by78f0icy3] .nav-bottom {
    padding: 8px;
    border-top: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.08));
    margin-top: 8px;
}

[b-by78f0icy3] .logout-form {
    display: block;
    width: 100%;
}

/* ── Logout MudButton — match MudNavLink exactly ── */
[b-by78f0icy3] .logout-nav-btn {
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 4px !important;
    padding: 0 16px !important;
    justify-content: flex-start !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: var(--mud-palette-text-secondary, #A1A1AA) !important;
    line-height: 1 !important;
}

[b-by78f0icy3] .logout-nav-btn:hover {
    background-color: rgba(248, 113, 113, 0.08) !important;
    color: #F87171 !important;
}

[b-by78f0icy3] .logout-nav-btn .mud-button-label {
    gap: 12px;
    font-family: 'Vazirmatn', sans-serif !important;
}

[b-by78f0icy3] .logout-nav-btn .mud-button-icon-start {
    margin: 0 !important;
    display: flex;
    align-items: center;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-kdke1ibjr1],
.components-reconnect-repeated-attempt-visible[b-kdke1ibjr1],
.components-reconnect-failed-visible[b-kdke1ibjr1],
.components-pause-visible[b-kdke1ibjr1],
.components-resume-failed-visible[b-kdke1ibjr1],
.components-rejoining-animation[b-kdke1ibjr1] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-kdke1ibjr1],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-kdke1ibjr1],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-kdke1ibjr1],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-kdke1ibjr1],
#components-reconnect-modal.components-reconnect-retrying[b-kdke1ibjr1],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-kdke1ibjr1],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-kdke1ibjr1],
#components-reconnect-modal.components-reconnect-failed[b-kdke1ibjr1],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-kdke1ibjr1] {
    display: block;
}


#components-reconnect-modal[b-kdke1ibjr1] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-kdke1ibjr1 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-kdke1ibjr1 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-kdke1ibjr1 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-kdke1ibjr1]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-kdke1ibjr1 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-kdke1ibjr1 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-kdke1ibjr1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-kdke1ibjr1 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-kdke1ibjr1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-kdke1ibjr1] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-kdke1ibjr1] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-kdke1ibjr1] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-kdke1ibjr1] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-kdke1ibjr1] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-kdke1ibjr1] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-kdke1ibjr1 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-kdke1ibjr1] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-kdke1ibjr1 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Admin/Dashboard.razor.rz.scp.css */
/* ── Setting cards ────────────────────────────── */
[b-0z4wmk78qk] .setting-card {
    background: var(--mud-palette-surface, #141414);
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.08));
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Hint text below each field ───────────────── */
[b-0z4wmk78qk] .setting-hint {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--mud-palette-text-secondary, #A1A1AA);
    line-height: 1.5;
    text-align: left;
    padding-right: 2px;
}

[b-0z4wmk78qk] .setting-hint--active {
    color: #4ADE80;
}

[b-0z4wmk78qk] .setting-hint--off {
    color: var(--mud-palette-text-disabled, #52525B);
}

/* ── Save button row ──────────────────────────── */
[b-0z4wmk78qk] .dash-actions {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-end;
    direction: rtl;
}

[b-0z4wmk78qk] .dash-actions .mud-button {
    border-radius: 8px !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

/* ── Mobile ───────────────────────────────────── */
@media (max-width: 599px) {
    [b-0z4wmk78qk] .setting-card {
        padding: 1.25rem 1rem;
    }

    [b-0z4wmk78qk] .dash-actions {
        justify-content: stretch;
    }

    [b-0z4wmk78qk] .dash-actions .mud-button {
        width: 100%;
    }
}
/* /Components/Pages/Admin/Products.razor.rz.scp.css */
/* ═══════════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════════ */
[b-th2fdo1s9x] .page-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
    margin-bottom: 20px;
    gap: 12px;
}

[b-th2fdo1s9x] .page-title {
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    flex-shrink: 0;
}

[b-th2fdo1s9x] .add-btn {
    border-radius: 8px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    height: 38px !important;
    padding: 0 18px !important;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   TABLE CARD
═══════════════════════════════════════════════ */
[b-th2fdo1s9x] .prod-table {
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.08));
    border-radius: 12px;
    overflow: hidden;
    background: var(--mud-palette-surface, #1a1a1a);
}

/* ── Toolbar (search row) ──────────────────── */
[b-th2fdo1s9x] .prod-table .mud-toolbar {
    padding: 8px 16px;
    border-bottom: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    min-height: 54px;
    direction: rtl;
}

[b-th2fdo1s9x] .search-field {
    width: 100%;
    max-width: 280px;
}

[b-th2fdo1s9x] .search-field .mud-input-root,
[b-th2fdo1s9x] .search-field input {
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.875rem !important;
}

/* ── Table header ──────────────────────────── */
[b-th2fdo1s9x] .prod-table thead th {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--mud-palette-text-secondary, #A1A1AA);
    background: transparent;
    padding-top: 13px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07)) !important;
}

/* ── Table body cells ──────────────────────── */
[b-th2fdo1s9x] .prod-table tbody td {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.875rem;
    color: var(--mud-palette-text-primary, #F4F4F5);
    padding-top: 13px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

[b-th2fdo1s9x] .prod-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── Row hover — very subtle ───────────────── */
[b-th2fdo1s9x] .prod-table .mud-table-row:hover td {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* ── Column widths ─────────────────────────── */
[b-th2fdo1s9x] .col-id     { width: 48px; }
[b-th2fdo1s9x] .col-price  { width: 130px; }
[b-th2fdo1s9x] .col-action { width: 48px; text-align: center; }

/* ── Cell styles ───────────────────────────── */
[b-th2fdo1s9x] .cell-id {
    font-size: 0.72rem !important;
    color: var(--mud-palette-text-disabled, #52525B) !important;
    font-variant-numeric: tabular-nums;
}

[b-th2fdo1s9x] .cell-fa {
    font-weight: 500 !important;
}

[b-th2fdo1s9x] .cell-en {
    font-size: 0.825rem !important;
    color: var(--mud-palette-text-secondary, #A1A1AA) !important;
    direction: ltr !important;
    unicode-bidi: embed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

[b-th2fdo1s9x] .cell-price {
    font-size: 0.825rem !important;
    font-variant-numeric: tabular-nums;
    direction: ltr !important;
    unicode-bidi: embed;
}

[b-th2fdo1s9x] .price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    direction: ltr;
}

[b-th2fdo1s9x] .price-unit {
    font-size: 0.7rem;
    opacity: 0.45;
}

/* ── Delete button — reveal on row hover ───── */
[b-th2fdo1s9x] .delete-btn {
    opacity: 0;
    transition: opacity 0.15s ease;
}

[b-th2fdo1s9x] .prod-table tbody tr:hover .delete-btn {
    opacity: 1;
    color: var(--mud-palette-error, #F87171) !important;
}

/* ── Pager ─────────────────────────────────── */
[b-th2fdo1s9x] .mud-table-pagination-toolbar {
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.8rem !important;
    direction: rtl;
    border-top: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07)) !important;
}

[b-th2fdo1s9x] .mud-table-pagination-toolbar p,
[b-th2fdo1s9x] .mud-table-pagination-toolbar span {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* ═══════════════════════════════════════════════
   ADD DIALOG
═══════════════════════════════════════════════ */
[b-th2fdo1s9x] .dialog-title {
    font-weight: 600 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 1rem !important;
}

[b-th2fdo1s9x] .dialog-rtl-wrap {
    direction: rtl;
}

[b-th2fdo1s9x] .dialog-field .mud-input-root,
[b-th2fdo1s9x] .dialog-field label,
[b-th2fdo1s9x] .dialog-field input {
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.9rem !important;
}

[b-th2fdo1s9x] .dialog-field .mud-input-label {
    right: 12px;
    left: auto;
    transform-origin: right top;
    font-family: 'Vazirmatn', sans-serif !important;
}

[b-th2fdo1s9x] .dialog-field input {
    text-align: right;
    direction: rtl;
}

/* Force MudDialog actions container to allow children full width */
[b-th2fdo1s9x] .mud-dialog-actions {
    padding: 12px 24px 20px !important;
    display: block !important;
}

/* Add dialog action buttons — 1 : 3 ratio, fills dialog width */
[b-th2fdo1s9x] .add-dialog-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    direction: rtl;
}

[b-th2fdo1s9x] .add-cancel-btn {
    flex: 1 1 0;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 8px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.9rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

[b-th2fdo1s9x] .add-save-btn {
    flex: 3 1 0;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 8px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* ═══════════════════════════════════════════════
   DELETE DIALOG
═══════════════════════════════════════════════ */
[b-th2fdo1s9x] .delete-dialog-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px 4px;
    text-align: center;
    direction: rtl;
    width: 100%;
    min-width: 420px;
    max-width: 480px;
    margin: 0 auto;
}

[b-th2fdo1s9x] .delete-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(248, 113, 113, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

[b-th2fdo1s9x] .delete-dialog-icon {
    font-size: 1.6rem !important;
    color: var(--mud-palette-error, #F87171) !important;
}

[b-th2fdo1s9x] .delete-dialog-title {
    font-weight: 600 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    margin-bottom: 6px !important;
}

[b-th2fdo1s9x] .delete-dialog-hint {
    color: var(--mud-palette-text-secondary, #A1A1AA) !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.8rem !important;
}

/* Delete dialog buttons */
[b-th2fdo1s9x] .delete-dialog-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    direction: rtl;
}

[b-th2fdo1s9x] .del-cancel-btn {
    flex: 1 1 0;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

[b-th2fdo1s9x] .del-confirm-btn {
    flex: 1 1 0;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.875rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-color: rgba(255,255,255,0.18) !important;
    color: var(--mud-palette-text-secondary, #A1A1AA) !important;
}

[b-th2fdo1s9x] .del-confirm-btn:hover {
    border-color: var(--mud-palette-error, #F87171) !important;
    color: var(--mud-palette-error, #F87171) !important;
    background-color: rgba(248, 113, 113, 0.05) !important;
}

/* ═══════════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════════ */
@media (max-width: 599px) {
    [b-th2fdo1s9x] .page-header {
        margin-bottom: 14px;
    }

    [b-th2fdo1s9x] .add-btn {
        padding: 0 14px !important;
        font-size: 0.8rem !important;
        height: 36px !important;
    }

    [b-th2fdo1s9x] .search-field {
        max-width: 100%;
    }

    [b-th2fdo1s9x] .delete-btn {
        opacity: 1 !important;
    }

    [b-th2fdo1s9x] .prod-table .mud-toolbar {
        padding: 6px 12px;
    }

    /* Mobile cell layout: label on right, value on left */
    [b-th2fdo1s9x] .prod-table tbody td {
        justify-content: space-between !important;
        text-align: left !important;
    }

    [b-th2fdo1s9x] .cell-price {
        text-align: left !important;
        justify-content: flex-end !important;
    }

    [b-th2fdo1s9x] .price-wrap {
        justify-content: flex-end;
    }

    /* Delete dialog adapts to narrow viewport */
    [b-th2fdo1s9x] .delete-dialog-body {
        min-width: unset;
        max-width: 100%;
        padding: 12px 16px 4px;
    }
}
