/* /Components/Layout/AuthLayout.razor.rz.scp.css */
/* Sign-in background (docs/design/maham-v6-login.png): deep navy with a fine geometric lattice
   (8-point star + circle, one tile repeated) and one large, slightly lighter circle behind the brand.
   Flat: solid colours only. */
.auth-shell[b-ub9j1wloq9] {
    --auth-bg: #18324A;
    --auth-circle: #1F3D58;

    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 48px 16px 32px;
    overflow: hidden;
    background-color: var(--auth-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 122 122' fill='none' stroke='%23FFFFFF' stroke-opacity='0.085' stroke-width='1.5'%3E%3Crect x='31' y='31' width='60' height='60'/%3E%3Cpath d='M61 18.6 103.4 61 61 103.4 18.6 61Z'/%3E%3Ccircle cx='61' cy='61' r='12'/%3E%3Cpath d='M61 0v18.6M61 103.4V122M0 61h18.6M103.4 61H122'/%3E%3C/svg%3E");
    background-position: center top;
    isolation: isolate;
}

    /* The large circle behind the logo and the top of the card */
    .auth-shell[b-ub9j1wloq9]::before {
        content: "";
        position: absolute;
        top: -290px;
        left: 50%;
        z-index: -1;
        width: 760px;
        height: 760px;
        border-radius: 50%;
        background: var(--auth-circle);
        opacity: .92;
        transform: translateX(-50%);
        pointer-events: none;
    }

@media (max-width: 767.98px) {
    .auth-shell[b-ub9j1wloq9] { padding: 32px 16px 24px; place-items: start center; }
    .auth-shell[b-ub9j1wloq9]::before { top: -260px; width: 560px; height: 560px; }
}
/* /Components/Layout/CommandPalette.razor.rz.scp.css */
/* Command palette (Ctrl K). Rendered inside the top bar (z-index 10), so the backdrop stays under the sidebar
   (z-index 30): the navigation is not dimmed, like the design. The dialog is centred over the main area. */

/* ---------- Top-bar trigger: looks like the search field; "Ctrl K" sits at the left end ---------- */
.kp-trigger[b-8drxy02zoe] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 460px;
    min-width: 200px;
    height: var(--mh-control-height);
    padding-inline: 14px 8px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-table-header);
    color: var(--mh-text-secondary);
    font-size: 14px;
    text-align: start;
    cursor: text;
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .kp-trigger:hover[b-8drxy02zoe] { border-color: #C5CDD4; background: var(--mh-surface); }
    .kp-trigger:focus-visible[b-8drxy02zoe] { outline: none; box-shadow: var(--mh-focus-ring); }

.kp-trigger-text[b-8drxy02zoe] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

kbd[b-8drxy02zoe] {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--mh-border);
    border-bottom-width: 2px;
    border-radius: var(--mh-radius-sm);
    background: var(--mh-surface);
    color: var(--mh-text-secondary);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.5;
    box-shadow: none;
    white-space: nowrap;
}

.kp-trigger-kbd[b-8drxy02zoe] { flex-shrink: 0; margin-inline-start: auto; }

/* ---------- Dialog ---------- */
.kp-backdrop[b-8drxy02zoe] {
    position: fixed;
    inset: 0;
    background: rgba(16, 20, 24, 0.32);
    animation: kp-fade-b-8drxy02zoe 140ms ease both;
}

.kp[b-8drxy02zoe] {
    position: fixed;
    top: 84px;
    inset-inline: var(--mh-sidebar-width) 0;
    display: flex;
    flex-direction: column;
    width: min(660px, calc(100vw - var(--mh-sidebar-width) - 32px));
    max-height: calc(100vh - 120px);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--mh-border);
    border-radius: 12px;
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-modal);
    animation: kp-in-b-8drxy02zoe 160ms cubic-bezier(.2, .7, .2, 1) both;
}

:root.sidebar-collapsed .kp[b-8drxy02zoe] {
    inset-inline-start: var(--mh-sidebar-collapsed-width);
    width: min(660px, calc(100vw - var(--mh-sidebar-collapsed-width) - 32px));
}

@keyframes kp-fade-b-8drxy02zoe { from { opacity: 0; } to { opacity: 1; } }
@keyframes kp-in-b-8drxy02zoe {
    from { opacity: 0; transform: translateY(-6px) scale(.99); }
    to { opacity: 1; transform: none; }
}

.kp-search[b-8drxy02zoe] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    height: 58px;
    padding-inline: 18px 14px;
    border-bottom: 1px solid var(--mh-border);
    color: var(--mh-text-secondary);
}

.kp-input[b-8drxy02zoe] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--mh-ink);
    font-size: 16px;
}

    .kp-input[b-8drxy02zoe]::placeholder { color: var(--mh-text-disabled); }
    .kp-input:focus[b-8drxy02zoe], .kp-input:focus-visible[b-8drxy02zoe] { outline: none; border: 0; box-shadow: none; }

/* ---------- Results ---------- */
.kp-body[b-8drxy02zoe] {
    flex: 1;
    min-height: 0;
    padding: 6px 8px 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mh-scroll-thumb) transparent;
}

.kp-group[b-8drxy02zoe] {
    padding: 12px 10px 6px;
    color: var(--mh-text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.kp-item[b-8drxy02zoe] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 7px 10px;
    border-radius: var(--mh-radius);
    cursor: pointer;
    scroll-margin: 8px;
}

    .kp-item:hover[b-8drxy02zoe] { background: var(--mh-canvas); }
    .kp-item.is-selected[b-8drxy02zoe] { background: var(--mh-wash); }

.kp-icon[b-8drxy02zoe] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--mh-radius);
    background: var(--mh-table-header);
    color: var(--mh-primary);
}

    .kp-icon.is-case[b-8drxy02zoe] { background: var(--mh-wash); }
    .kp-icon.is-person[b-8drxy02zoe] { background: var(--mh-stone-wash); color: var(--mh-text-secondary); }
    .kp-icon.is-action[b-8drxy02zoe] { background: var(--mh-brass-wash); color: #8A6D12; }
    .kp-item.is-selected .kp-icon[b-8drxy02zoe] { background: var(--mh-surface); }

.kp-text[b-8drxy02zoe] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

    .kp-text strong[b-8drxy02zoe],
    .kp-text small[b-8drxy02zoe] {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .kp-text strong[b-8drxy02zoe] {
        color: var(--mh-ink);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;
    }

    .kp-text small[b-8drxy02zoe] {
        color: var(--mh-text-secondary);
        font-size: 12.5px;
        line-height: 1.5;
    }

.kp-keys[b-8drxy02zoe] {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
    margin-inline-start: auto;
}

.kp-empty[b-8drxy02zoe] {
    margin: 0;
    padding: 28px 12px;
    color: var(--mh-text-secondary);
    font-size: 13.5px;
    text-align: center;
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1199.98px) {
    .kp-trigger[b-8drxy02zoe] { flex-basis: 360px; }
}

@media (max-width: 767.98px) {
    /* the field becomes an icon button; the dialog fills the width under the top bar */
    .kp-trigger[b-8drxy02zoe] {
        flex: 0 0 auto;
        justify-content: center;
        width: 40px;
        min-width: 0;
        height: 40px;
        padding: 0;
        margin-inline-start: auto;
        border: 0;
        border-radius: var(--mh-radius-pill);
        background: transparent;
    }

    .kp-trigger-text[b-8drxy02zoe], .kp-trigger-kbd[b-8drxy02zoe] { display: none; }

    :root .kp[b-8drxy02zoe], :root.sidebar-collapsed .kp[b-8drxy02zoe] {
        top: 64px;
        inset-inline: 8px;
        width: auto;
        max-height: calc(100vh - 64px - var(--mh-mobile-nav-height) - 16px);
    }

    .kp-input[b-8drxy02zoe] { font-size: 16px; }
    .kp-keys[b-8drxy02zoe] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .kp[b-8drxy02zoe], .kp-backdrop[b-8drxy02zoe] { animation: none; }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* In RTL the first flex child (sidebar) sits on the right.
   State classes on <html>, set by wwwroot/js/shell.js:
   .sidebar-collapsed (desktop icon rail) and .sidebar-open (mobile drawer). */
.page[b-9f0t5gixdi] {
    position: relative;
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar[b-9f0t5gixdi] {
    flex-shrink: 0;
    width: var(--mh-sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: var(--mh-primary);
    color: #fff;
    transition: width 200ms ease;
}

:root.sidebar-collapsed .sidebar[b-9f0t5gixdi] {
    width: var(--mh-sidebar-collapsed-width);
}

.sidebar-backdrop[b-9f0t5gixdi] {
    display: none;
}

.main[b-9f0t5gixdi] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ---------- Top bar ---------- */
.topbar[b-9f0t5gixdi] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-16);
    height: var(--mh-topbar-height);
    padding: 0 var(--mh-page-padding);
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--mh-surface);
    border-bottom: 1px solid var(--mh-border);
}

.topbar-breadcrumb[b-9f0t5gixdi] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.topbar-divider[b-9f0t5gixdi] {
    flex-shrink: 0;
    width: 1px;
    height: 32px;
    background: var(--mh-border);
}

.topbar-actions[b-9f0t5gixdi] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-12);
    margin-inline-start: auto;
}

.topbar-icon[b-9f0t5gixdi] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: var(--mh-radius-pill);
    background: transparent;
    color: var(--mh-text-secondary);
}

    .topbar-icon:hover[b-9f0t5gixdi] {
        background: var(--mh-canvas);
        color: var(--mh-primary);
    }

.topbar-menu[b-9f0t5gixdi] {
    display: none;
    margin-inline-start: -8px;
}

.content[b-9f0t5gixdi] {
    flex: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .topbar-actions .topbar-divider[b-9f0t5gixdi] {
        display: none;
    }
}

/* Small screens: the sidebar becomes a drawer that slides in from the right */
@media (max-width: 767.98px) {
    :root .sidebar[b-9f0t5gixdi],
    :root.sidebar-collapsed .sidebar[b-9f0t5gixdi] {
        position: fixed;
        top: 0;
        inset-inline-start: 0;
        width: min(280px, 85vw);
        transform: translateX(100%);
        transition: transform 250ms ease;
    }

    :root.sidebar-open .sidebar[b-9f0t5gixdi] {
        transform: translateX(0);
        box-shadow: var(--mh-shadow-modal);
    }

    .sidebar-backdrop[b-9f0t5gixdi] {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 20;
        background: rgba(16, 20, 24, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 250ms ease;
    }

    :root.sidebar-open .sidebar-backdrop[b-9f0t5gixdi] {
        opacity: 1;
        pointer-events: auto;
    }

    .topbar[b-9f0t5gixdi] {
        gap: var(--mh-space-8);
        padding: 0 var(--mh-space-16);
    }

    .topbar-menu[b-9f0t5gixdi] {
        display: inline-flex;
    }

    .topbar-divider[b-9f0t5gixdi] {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar[b-9f0t5gixdi], .sidebar-backdrop[b-9f0t5gixdi],
    :root .sidebar[b-9f0t5gixdi], :root.sidebar-collapsed .sidebar[b-9f0t5gixdi] {
        transition: none;
    }
}

#blazor-error-ui[b-9f0t5gixdi] {
    color-scheme: light only;
    background: var(--mh-danger-wash);
    color: var(--mh-ink);
    border-top: 3px solid var(--mh-danger);
    bottom: 0;
    box-sizing: border-box;
    display: none;
    inset-inline-start: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-9f0t5gixdi] {
        cursor: pointer;
        position: absolute;
        inset-inline-end: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/MobileNav.razor.rz.scp.css */
.mobile-nav[b-q0u2bvv3tv] {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-nav[b-q0u2bvv3tv] {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 19; /* below the side menu (30) and its backdrop (20) */
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: calc(var(--mh-mobile-nav-height) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--mh-border);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
        box-shadow: 0 -4px 16px rgba(16, 20, 24, 0.06);
    }

}

.mobile-nav[b-q0u2bvv3tv]  .mobile-nav-item,
.mobile-nav button.mobile-nav-item[b-q0u2bvv3tv] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 6px 2px;
    border: 0;
    background: none;
    color: var(--mh-text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

    .mobile-nav[b-q0u2bvv3tv]  .mobile-nav-item .mh-icon {
        width: 22px;
        height: 22px;
    }

    .mobile-nav[b-q0u2bvv3tv]  .mobile-nav-item.active {
        color: var(--mh-primary);
    }

        /* active marker: a short brass bar at the top of the tab */
        .mobile-nav[b-q0u2bvv3tv]  .mobile-nav-item.active::before {
            content: "";
            position: absolute;
            top: 0;
            left: 50%;
            width: 28px;
            height: 3px;
            border-radius: 0 0 3px 3px;
            background: var(--mh-brass);
            transform: translateX(-50%);
        }

    .mobile-nav[b-q0u2bvv3tv]  .mobile-nav-item:active {
        background: var(--mh-canvas);
    }

.mobile-nav-label[b-q0u2bvv3tv] {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Paddings keep every icon in the same place when the sidebar shrinks to the
   72px rail, so only the text fades: 24px brand padding centres the 24px logo,
   12px list padding + 13px link padding centres the 22px nav icons,
   20px footer padding centres the 32px avatar. */
.sidebar-inner[b-e77jmf3jr3] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ---------- Brand ---------- */
.brand-row[b-e77jmf3jr3] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: var(--mh-topbar-height);
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.brand[b-e77jmf3jr3] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-family: var(--mh-font-heading);
    font-size: 22px;
    font-weight: 700;
}

    .brand:hover[b-e77jmf3jr3] {
        color: #fff;
    }

    .brand .mh-icon[b-e77jmf3jr3] {
        width: 24px;
        height: 24px;
    }

/* ---------- Navigation ---------- */
.nav-scrollable[b-e77jmf3jr3] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--mh-space-16) var(--mh-space-12);
    overflow-x: hidden;
    overflow-y: auto;
}

    .nav-scrollable[b-e77jmf3jr3]  .nav-link {
        position: relative;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: var(--mh-space-12);
        height: 42px;
        padding: 0 13px;
        border-radius: var(--mh-radius);
        color: rgba(255, 255, 255, 0.85);
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
    }

        .nav-scrollable[b-e77jmf3jr3]  .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.06);
            color: #fff;
        }

        .nav-scrollable[b-e77jmf3jr3]  .nav-link.active {
            background-color: var(--mh-primary-hover);
            color: #fff;
            font-weight: 700;
        }

            /* Brass marker on the active item (emphasis, not action) */
            .nav-scrollable[b-e77jmf3jr3]  .nav-link.active::before {
                content: "";
                position: absolute;
                inset-inline-start: 0;
                top: 9px;
                bottom: 9px;
                width: 3px;
                border-radius: 2px;
                background: var(--mh-brass);
            }

    .nav-scrollable .mh-icon[b-e77jmf3jr3] {
        width: 22px;
        height: 22px;
    }

.nav-text[b-e77jmf3jr3] {
    display: inline-flex;
    align-items: baseline;
    gap: var(--mh-space-8);
    transition: opacity 150ms ease;
}

/* Pushes الإعدادات to the bottom of the menu, with a hairline above it */
.nav-end-sep[b-e77jmf3jr3] {
    flex-shrink: 0;
    height: 1px;
    margin: auto 6px 8px;
    background: rgba(255, 255, 255, 0.14);
}

.nav-badge[b-e77jmf3jr3] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-inline-start: auto;
    padding: 0 6px;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-brass);
    color: var(--mh-ink);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.nav-section[b-e77jmf3jr3] {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    height: 38px;
    padding: 0 13px 6px;
    color: var(--mh-light-blue);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

    /* In the rail, section titles turn into a short divider line */
    .nav-section[b-e77jmf3jr3]::after {
        content: "";
        position: absolute;
        inset-inline: 6px;
        top: 55%;
        height: 1px;
        background: rgba(255, 255, 255, 0.14);
        opacity: 0;
        transition: opacity 150ms ease;
    }

.nav-section-text[b-e77jmf3jr3] {
    transition: opacity 150ms ease;
}

/* ---------- User footer ---------- */
.sidebar-user[b-e77jmf3jr3] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--mh-space-12);
    height: 72px;
    padding: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

    .sidebar-user:hover[b-e77jmf3jr3] {
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
    }

.sidebar-avatar[b-e77jmf3jr3] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-family: var(--mh-font-heading);
    font-size: 13px;
    font-weight: 700;
}

.sidebar-user-text[b-e77jmf3jr3] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
    transition: opacity 150ms ease;
}

    .sidebar-user-text strong[b-e77jmf3jr3] {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-user-text small[b-e77jmf3jr3] {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
    }

/* ---------- Collapse toggle ---------- */
/* Expanded: a chevron in the brand row. Collapsed: a white circle on the sidebar's inner edge. */
.sidebar-toggle[b-e77jmf3jr3] {
    position: absolute;
    top: 20px;
    inset-inline-end: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

    .sidebar-toggle:hover[b-e77jmf3jr3] {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

/* ---------- Desktop icon rail ---------- */
@media (min-width: 768px) {
    :root.sidebar-collapsed .brand-text[b-e77jmf3jr3],
    :root.sidebar-collapsed .nav-text[b-e77jmf3jr3],
    :root.sidebar-collapsed .nav-section-text[b-e77jmf3jr3],
    :root.sidebar-collapsed .sidebar-user-text[b-e77jmf3jr3] {
        opacity: 0;
        pointer-events: none;
    }

    :root.sidebar-collapsed .nav-section[b-e77jmf3jr3]::after {
        opacity: 1;
    }

    /* Badge becomes a brass dot on the icon's corner */
    :root.sidebar-collapsed .nav-badge[b-e77jmf3jr3] {
        position: absolute;
        top: 7px;
        inset-inline-start: 31px;
        width: 8px;
        min-width: 0;
        height: 8px;
        padding: 0;
        font-size: 0;
    }

    :root.sidebar-collapsed .sidebar-toggle[b-e77jmf3jr3] {
        top: 76px;
        inset-inline-end: -12px;
        background: var(--mh-surface);
        border-color: var(--mh-border);
        color: var(--mh-primary);
        box-shadow: var(--mh-shadow-card);
    }

        :root.sidebar-collapsed .sidebar-toggle .mh-icon[b-e77jmf3jr3] {
            transform: scaleX(-1);
        }
}

/* Sign out in the side menu: phones only (desktop has it in the top bar) */
.sidebar-logout[b-e77jmf3jr3] {
    display: none;
    margin: 0;
    padding: 0 var(--mh-space-12) var(--mh-space-12);
}

    .sidebar-logout button[b-e77jmf3jr3] {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: var(--mh-radius);
        background: transparent;
        color: rgba(255, 255, 255, 0.85);
        font-size: 14px;
        font-weight: 600;
    }

        .sidebar-logout button:active[b-e77jmf3jr3] {
            background: rgba(255, 255, 255, 0.08);
        }

@media (max-width: 767.98px) {
    .sidebar-logout[b-e77jmf3jr3] {
        display: block;
    }
}
/* /Components/Layout/NotificationBell.razor.rz.scp.css */
.nb[b-0qcioeqvui] {
    position: relative;
    display: inline-flex;
}

.nb-btn[b-0qcioeqvui] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: var(--mh-radius-pill);
    background: transparent;
    color: var(--mh-text-secondary);
    transition: background-color 150ms ease, color 150ms ease;
}

    .nb-btn:hover[b-0qcioeqvui], .nb-btn.is-open[b-0qcioeqvui] {
        background: var(--mh-canvas);
        color: var(--mh-primary);
    }

    .nb-btn.is-open[b-0qcioeqvui] { background: var(--mh-wash); }

    .nb-btn:focus-visible[b-0qcioeqvui] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

.nb-badge[b-0qcioeqvui] {
    position: absolute;
    top: 1px;
    inset-inline-end: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid var(--mh-surface);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-sizing: content-box;
}

    /* Only upcoming items (nothing overdue / today): navy instead of red */
    .nb-badge.is-calm[b-0qcioeqvui] { background: var(--mh-primary); }

.nb-backdrop[b-0qcioeqvui] {
    position: fixed;
    inset: 0;
    z-index: 1040;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
}

.nb-panel[b-0qcioeqvui] {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: -8px;
    z-index: 1041;
    display: flex;
    flex-direction: column;
    width: 400px;
    max-height: min(560px, calc(100dvh - 90px));
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-modal);
    overflow: hidden;
    animation: nb-in-b-0qcioeqvui 140ms ease-out;
}

@keyframes nb-in-b-0qcioeqvui {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.nb-head[b-0qcioeqvui] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    padding-inline-start: 16px;
    border-bottom: 1px solid var(--mh-border);
    background: var(--mh-primary);
    color: #fff;
}

    .nb-head strong[b-0qcioeqvui] { font-size: 14.5px; }

    .nb-head .mh-count[b-0qcioeqvui] {
        background: rgba(255, 255, 255, .18);
        color: #fff;
    }

.nb-close[b-0qcioeqvui] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-inline-start: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
}

    .nb-close:hover[b-0qcioeqvui] { background: rgba(255, 255, 255, .14); }
    .nb-close:focus-visible[b-0qcioeqvui] { outline: none; box-shadow: 0 0 0 2px #fff; }

.nb-body[b-0qcioeqvui] {
    flex: 1;
    min-height: 0;
    padding: 4px 8px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nb-skeleton[b-0qcioeqvui] {
    display: block;
    height: 44px;
    margin: 8px 4px;
}

.nb-empty[b-0qcioeqvui] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 28px 16px;
    color: var(--mh-text-secondary);
    font-size: 13px;
    text-align: center;
}

    .nb-empty p[b-0qcioeqvui] { margin: 0; }

    .nb-empty .mh-icon[b-0qcioeqvui] {
        width: 28px;
        height: 28px;
        color: var(--mh-success);
    }

.nb-group[b-0qcioeqvui] {
    margin: 10px 8px 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mh-text-secondary);
}

.nb-list[b-0qcioeqvui] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nb-item[b-0qcioeqvui] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: var(--mh-radius-sm);
    color: inherit;
    text-decoration: none;
}

    .nb-item:hover[b-0qcioeqvui] {
        background: var(--mh-canvas);
        color: inherit;
    }

    .nb-item:focus-visible[b-0qcioeqvui] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

.nb-item-icon[b-0qcioeqvui] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mh-wash);
    color: var(--mh-primary);
}

.nb-item.is-today .nb-item-icon[b-0qcioeqvui] { background: var(--mh-primary); color: #fff; }
.nb-item.is-missing .nb-item-icon[b-0qcioeqvui] { background: var(--mh-brass-wash); color: #6B5410; }
.nb-item.is-overdue .nb-item-icon[b-0qcioeqvui] { background: var(--mh-danger-wash); color: var(--mh-danger); }

.nb-item-text[b-0qcioeqvui] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.45;
}

    .nb-item-text strong[b-0qcioeqvui] {
        overflow: hidden;
        font-size: 13px;
        font-weight: 600;
        color: var(--mh-ink);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nb-item-text small[b-0qcioeqvui] {
        overflow: hidden;
        font-size: 12px;
        color: var(--mh-text-secondary);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.nb-item-when[b-0qcioeqvui] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--mh-text-secondary);
    white-space: nowrap;
}

.nb-kind[b-0qcioeqvui] { font-weight: 700; }
.nb-item.is-today .nb-kind[b-0qcioeqvui] { color: var(--mh-primary); }
.nb-item.is-missing .nb-kind[b-0qcioeqvui] { color: #6B5410; }
.nb-item.is-overdue .nb-kind[b-0qcioeqvui] { color: var(--mh-danger); }

.nb-older[b-0qcioeqvui] {
    display: block;
    margin: 8px 4px 0;
    padding: 8px 10px;
    border-radius: var(--mh-radius-sm);
    background: var(--mh-danger-wash);
    font-size: 12.5px;
    color: var(--mh-danger);
    text-decoration: none;
}

    .nb-older:hover[b-0qcioeqvui] { color: var(--mh-danger); text-decoration: underline; }

    .nb-older.is-missing[b-0qcioeqvui] { background: var(--mh-brass-wash); color: #6B5410; }
    .nb-older.is-missing:hover[b-0qcioeqvui] { color: #6B5410; }

.nb-foot[b-0qcioeqvui] {
    display: flex;
    flex-shrink: 0;
    border-top: 1px solid var(--mh-border);
    background: var(--mh-table-header);
}

    .nb-foot a[b-0qcioeqvui] {
        flex: 1;
        padding: 10px 8px;
        font-size: 12.5px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }

        .nb-foot a + a[b-0qcioeqvui] { border-inline-start: 1px solid var(--mh-border); }
        .nb-foot a:hover[b-0qcioeqvui] { background: var(--mh-wash); }

/* Phones: a sheet under the top bar, full width */
@media (max-width: 767.98px) {
    .nb-panel[b-0qcioeqvui] {
        position: fixed;
        top: 60px;
        inset-inline: 8px;
        width: auto;
        max-height: calc(100dvh - 60px - var(--mh-mobile-nav-height) - 16px);
    }

    .nb-item[b-0qcioeqvui] { padding-block: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .nb-panel[b-0qcioeqvui] { animation: none; }
}

/* ---------- Read status (Maham_NotificationRead) ---------- */
.nb-readall[b-0qcioeqvui] {
    margin-inline-start: auto;
    padding: 2px 8px;
    border: 0;
    border-radius: var(--mh-radius-pill);
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

    .nb-readall:hover[b-0qcioeqvui] { background: rgba(255, 255, 255, .14); }
    .nb-readall + .nb-close[b-0qcioeqvui] { margin-inline-start: 4px; }
    .nb-readall:focus-visible[b-0qcioeqvui] { outline: none; box-shadow: var(--mh-focus-ring); }

.nb-dot[b-0qcioeqvui] {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-inline-end: 6px;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--mh-primary);
}

.nb-item.is-read strong[b-0qcioeqvui] { font-weight: 500; color: var(--mh-text-secondary); }
.nb-item.is-read .nb-item-icon[b-0qcioeqvui] { opacity: .6; }
/* /Components/Layout/PageBreadcrumb.razor.rz.scp.css */
.crumb-parent[b-6qunq45pqn] {
    color: var(--mh-text-secondary);
    font-size: 14px;
    text-decoration: none;
}

a.crumb-parent:hover[b-6qunq45pqn] {
    color: var(--mh-primary);
}

.crumb-sep[b-6qunq45pqn] {
    margin: 0 var(--mh-space-8);
    color: var(--mh-text-disabled);
}

.crumb-current[b-6qunq45pqn] {
    color: var(--mh-ink);
    font-size: 15px;
    font-weight: 700;
}

/* Phones: only the current page title (the parent is one tap away in the tab bar) */
@media (max-width: 575.98px) {
    .crumb-parent[b-6qunq45pqn], .crumb-sep[b-6qunq45pqn] {
        display: none;
    }
}
/* /Components/Layout/QuickAddMenu.razor.rz.scp.css */
.qa-menu-btn[b-lkdbrgi13a] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding-inline: 16px;
    font-size: 14px;
    white-space: nowrap;
}

/* Phones: an icon button */
@media (max-width: 767.98px) {
    .qa-menu-label[b-lkdbrgi13a] { display: none; }
    .qa-menu-btn[b-lkdbrgi13a] { width: 40px; height: 40px; justify-content: center; padding: 0; border-radius: 50%; }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-i2ozoyfoz6],
.components-reconnect-repeated-attempt-visible[b-i2ozoyfoz6],
.components-reconnect-failed-visible[b-i2ozoyfoz6],
.components-pause-visible[b-i2ozoyfoz6],
.components-resume-failed-visible[b-i2ozoyfoz6],
.components-rejoining-animation[b-i2ozoyfoz6] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-i2ozoyfoz6],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-i2ozoyfoz6],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-i2ozoyfoz6],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-i2ozoyfoz6],
#components-reconnect-modal.components-reconnect-retrying[b-i2ozoyfoz6],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-i2ozoyfoz6],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-i2ozoyfoz6],
#components-reconnect-modal.components-reconnect-failed[b-i2ozoyfoz6],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-i2ozoyfoz6] {
    display: block;
}


#components-reconnect-modal[b-i2ozoyfoz6] {
    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-i2ozoyfoz6 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-i2ozoyfoz6 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-i2ozoyfoz6 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-i2ozoyfoz6]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-i2ozoyfoz6 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-i2ozoyfoz6 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-i2ozoyfoz6 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-i2ozoyfoz6 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-i2ozoyfoz6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-i2ozoyfoz6] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-i2ozoyfoz6] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-i2ozoyfoz6] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-i2ozoyfoz6] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-i2ozoyfoz6] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-i2ozoyfoz6] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-i2ozoyfoz6 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-i2ozoyfoz6] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-i2ozoyfoz6 {
    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/Layout/UserMenu.razor.rz.scp.css */
.um[b-ejnuoup133] {
    position: relative;
    display: inline-flex;
}

.user-chip[b-ejnuoup133] {
    display: inline-flex;
    align-items: center;
    gap: var(--mh-space-12);
    height: 42px;
    padding-inline: 16px 5px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-surface);
    color: var(--mh-ink);
    font: inherit;
    text-align: start;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease;
}

button.user-chip[b-ejnuoup133] {
    padding-inline: 12px 5px;
}

    .user-chip:hover[b-ejnuoup133], .user-chip.is-open[b-ejnuoup133] {
        background: var(--mh-canvas);
        color: var(--mh-ink);
    }

    .user-chip.is-open[b-ejnuoup133] { border-color: var(--mh-mid-blue); }

    .user-chip:focus-visible[b-ejnuoup133] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

/* The caret sits first (far right in RTL), pointing down; up while open */
.um-caret[b-ejnuoup133] {
    order: -1;
    color: var(--mh-text-secondary);
    transform: rotate(90deg);
    transition: transform 150ms ease;
}

.user-chip.is-open .um-caret[b-ejnuoup133] { transform: rotate(-90deg); }

.user-chip-text[b-ejnuoup133] {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

    .user-chip-text strong[b-ejnuoup133] {
        max-width: 12rem;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 13px;
    }

    .user-chip-text small[b-ejnuoup133] {
        font-size: 11px;
        color: var(--mh-text-secondary);
    }

/* ---------- Pop-up ---------- */
.um-backdrop[b-ejnuoup133] {
    position: fixed;
    inset: 0;
    z-index: 1040;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
}

.um-panel[b-ejnuoup133] {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 1041;
    display: flex;
    flex-direction: column;
    width: 330px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-modal);
    animation: um-in-b-ejnuoup133 140ms ease-out;
}

@keyframes um-in-b-ejnuoup133 {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.um-head[b-ejnuoup133] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--mh-primary);
    color: #fff;
}

    .um-head[b-ejnuoup133]  .lawyer-avatar { border-color: rgba(255, 255, 255, .5); }

.um-who[b-ejnuoup133] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.45;
}

    .um-who strong[b-ejnuoup133] {
        overflow: hidden;
        font-family: var(--mh-font-heading);
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .um-who span[b-ejnuoup133] { font-size: 12.5px; opacity: .85; }
    .um-who small[b-ejnuoup133] { font-size: 11.5px; opacity: .75; }

.um-close[b-ejnuoup133] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
}

    .um-close:hover[b-ejnuoup133] { background: rgba(255, 255, 255, .14); }
    .um-close:focus-visible[b-ejnuoup133] { outline: none; box-shadow: 0 0 0 2px #fff; }

.um-perms[b-ejnuoup133] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mh-border);
    background: var(--mh-table-header);
}

.um-perms-title[b-ejnuoup133], .um-section-title[b-ejnuoup133] {
    width: 100%;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mh-text-secondary);
}

.um-perm[b-ejnuoup133] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px 2px 8px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-surface);
    font-size: 12px;
    color: var(--mh-text-disabled);
}

    .um-perm .mh-icon[b-ejnuoup133] { width: 12px; height: 12px; }

    .um-perm.is-on[b-ejnuoup133] {
        border-color: rgba(15, 123, 95, .3);
        background: var(--mh-success-wash);
        color: var(--mh-success);
        font-weight: 600;
    }

.um-section[b-ejnuoup133] {
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
    border-bottom: 1px solid var(--mh-border);
}

    .um-section .um-section-title[b-ejnuoup133] { padding: 0 8px 4px; }

.um-link[b-ejnuoup133] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 6px 8px;
    border: 0;
    border-radius: var(--mh-radius-sm);
    background: transparent;
    color: var(--mh-ink);
    font: inherit;
    font-size: 13.5px;
    text-align: start;
    text-decoration: none;
}

    .um-link .mh-icon[b-ejnuoup133] { color: var(--mh-text-secondary); }

    .um-link:hover[b-ejnuoup133] {
        background: var(--mh-wash);
        color: var(--mh-primary);
    }

        .um-link:hover .mh-icon[b-ejnuoup133] { color: var(--mh-primary); }

    .um-link:focus-visible[b-ejnuoup133] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

/* Change password */
[b-ejnuoup133] .um-password {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mh-border);
}

    [b-ejnuoup133] .um-password h3 {
        margin: 0;
        font-size: 14.5px;
        font-weight: 700;
        color: var(--mh-primary);
    }

.um-hint[b-ejnuoup133] {
    margin: -4px 0 0;
    font-size: 12px;
    color: var(--mh-text-secondary);
}

.um-field[b-ejnuoup133] {
    display: flex;
    flex-direction: column;
}

    .um-field .form-label[b-ejnuoup133] { margin-bottom: 4px; }

.um-password-actions[b-ejnuoup133] {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.um-logout[b-ejnuoup133] {
    margin: 0;
    padding: 8px;
}

    .um-logout button[b-ejnuoup133] {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 38px;
        border: 1px solid transparent;
        border-radius: var(--mh-radius-sm);
        background: transparent;
        color: var(--mh-danger);
        font-size: 13.5px;
        font-weight: 600;
    }

        .um-logout button:hover[b-ejnuoup133] {
            border-color: rgba(180, 71, 47, .25);
            background: var(--mh-danger-wash);
        }

        .um-logout button:focus-visible[b-ejnuoup133] {
            outline: none;
            box-shadow: var(--mh-focus-ring);
        }

@media (max-width: 991.98px) {
    .user-chip[b-ejnuoup133], button.user-chip[b-ejnuoup133] {
        padding-inline: 5px;
    }

    .user-chip-text[b-ejnuoup133], .um-caret[b-ejnuoup133] {
        display: none;
    }
}

/* Phones: photo only; the pop-up is a sheet under the top bar */
@media (max-width: 767.98px) {
    .user-chip[b-ejnuoup133] {
        height: 40px;
        padding: 2px;
        border: 0;
    }

    .um-panel[b-ejnuoup133] {
        position: fixed;
        top: 60px;
        inset-inline: 8px;
        width: auto;
        max-height: calc(100dvh - 60px - var(--mh-mobile-nav-height) - 16px);
    }

    .um-link[b-ejnuoup133] { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .um-panel[b-ejnuoup133] { animation: none; }
}
/* /Components/Pages/Cases/CaseDetailsPage.razor.rz.scp.css */
.cd-loading[b-l7ksnct5hc] {
    display: grid;
    gap: var(--mh-space-16);
}

/* ---------- Page frame ----------
   Desktop: the page is exactly one viewport tall (minus the top bar and the content padding).
   Header and parties keep their natural height; the tab area takes the rest and scrolls inside
   itself, so the browser page never shows a scrollbar. Small or short screens scroll normally. */
.cd-page[b-l7ksnct5hc] {
    display: flex;
    flex-direction: column;
    gap: var(--mh-space-12);
}

.cd-workspace[b-l7ksnct5hc] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cd-panels[b-l7ksnct5hc] {
    min-height: 0;
}

@media (min-width: 992px) and (min-height: 600px) {
    .cd-page[b-l7ksnct5hc] {
        height: calc(100dvh - var(--mh-topbar-height) - 2 * var(--mh-page-padding));
    }

    .cd-pagebar[b-l7ksnct5hc], .cd-hero[b-l7ksnct5hc], .cd-parties[b-l7ksnct5hc], .cd-stats[b-l7ksnct5hc], .cd-tabs[b-l7ksnct5hc] {
        flex-shrink: 0;
    }

    .cd-workspace[b-l7ksnct5hc] {
        flex: 1;
    }

    .cd-panels[b-l7ksnct5hc] {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        /* a little room so card borders and shadows are not clipped by the scroll box */
        margin-inline: -4px;
        padding: 4px 4px var(--mh-space-8);
        scrollbar-gutter: stable;
    }
}

/* ---------- Hero (compact) ---------- */
.cd-hero[b-l7ksnct5hc] {
    display: flex;
    align-items: stretch;
    gap: var(--mh-space-24);
    padding: var(--mh-space-16) var(--mh-space-24);
    border-color: #D3E0EA;
    border-top: 3px solid var(--mh-primary);
    background: #EEF3F7; /* soft navy tint: the file header reads as the page's title band */
}

.cd-hero-body[b-l7ksnct5hc] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--mh-space-8);
    min-width: 0;
}

/* Lawyer panel at the end of the header: photo + "المحامي المسؤول" + name */
.cd-hero-lawyer[b-l7ksnct5hc] {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 140px;
    padding-inline-start: var(--mh-space-24);
    border-inline-start: 1px solid #D3E0EA;
    text-align: center;
}

.cd-hero-lawyer-text[b-l7ksnct5hc] {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

    .cd-hero-lawyer-text span[b-l7ksnct5hc] {
        color: var(--mh-text-secondary);
        font-size: 11px;
        font-weight: 500;
    }

    .cd-hero-lawyer-text strong[b-l7ksnct5hc] {
        font-family: var(--mh-font-heading);
        font-size: 15px;
        font-weight: 700;
        color: var(--mh-primary);
    }

@media (max-width: 767.98px) {
    .cd-hero[b-l7ksnct5hc] {
        flex-direction: column;
        gap: var(--mh-space-12);
    }

    .cd-hero-lawyer[b-l7ksnct5hc] {
        flex-direction: row;
        justify-content: flex-start;
        padding-top: var(--mh-space-12);
        padding-inline-start: 0;
        border-top: 1px solid #D3E0EA;
        border-inline-start: 0;
        text-align: start;
    }
}

.cd-hero-top[b-l7ksnct5hc] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--mh-space-12);
}

.cd-title-row[b-l7ksnct5hc] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--mh-space-12);
}

    .cd-title-row h1[b-l7ksnct5hc] {
        margin: 0;
        font-size: 22px;
    }

.cd-court-chip[b-l7ksnct5hc] {
    background: var(--mh-surface);
}

/* Page bar above the header card: back link at the start, page actions at the end */
.cd-pagebar[b-l7ksnct5hc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mh-space-12);
    min-height: 32px;
    margin-bottom: -4px; /* sits close to the card it belongs to */
}

.cd-back[b-l7ksnct5hc] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    margin-inline-start: -8px;
    border-radius: var(--mh-radius-sm);
    color: var(--mh-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

    .cd-back:hover[b-l7ksnct5hc] {
        background: var(--mh-wash);
        color: var(--mh-primary);
    }

    .cd-back:focus-visible[b-l7ksnct5hc] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

.cd-actions[b-l7ksnct5hc] {
    display: flex;
    gap: var(--mh-space-8);
}

.cd-subject[b-l7ksnct5hc] {
    margin: 0;
    font-family: var(--mh-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--mh-ink);
}

.cd-meta[b-l7ksnct5hc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mh-space-4) var(--mh-space-24);
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--mh-text-secondary);
    font-size: 13px;
}

    .cd-meta li[b-l7ksnct5hc] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .cd-meta strong[b-l7ksnct5hc] {
        color: var(--mh-ink);
        font-weight: 500;
    }

/* ---------- Client vs opponent: two compact cards, "ضد" on the seam ---------- */
.cd-parties[b-l7ksnct5hc] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--mh-space-16);
}

.cd-party[b-l7ksnct5hc] {
    --cd-party-accent: var(--mh-primary);
    --cd-party-wash: var(--mh-wash);
    display: flex;
    flex-direction: column;
    gap: var(--mh-space-8);
    min-width: 0;
    padding: var(--mh-space-12) var(--mh-space-16);
    border-inline-start: 3px solid var(--cd-party-accent);
}

.cd-party--opponent[b-l7ksnct5hc] {
    --cd-party-accent: var(--mh-sand);
    --cd-party-wash: var(--mh-sand-wash);
}

.cd-party-head[b-l7ksnct5hc] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-12);
    min-width: 0;
}

/* Role badge: the icon says who this is, not the name's initials */
.cd-party-badge[b-l7ksnct5hc] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--mh-radius);
    background: var(--cd-party-wash);
    color: var(--mh-primary);
}

.cd-party--opponent .cd-party-badge[b-l7ksnct5hc] {
    color: var(--mh-ink);
}

.cd-party-title[b-l7ksnct5hc] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.cd-party-role[b-l7ksnct5hc] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-8);
    margin: 0;
    color: var(--mh-text-secondary);
    font-family: var(--mh-font-body);
    font-size: 12px;
    font-weight: 700;
}

.cd-capacity[b-l7ksnct5hc] {
    height: 20px;
    padding: 0 8px;
    background: var(--mh-canvas);
    font-size: 11px;
    font-weight: 500;
}

.cd-party-name[b-l7ksnct5hc] {
    overflow: hidden;
    font-family: var(--mh-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--mh-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-party-empty[b-l7ksnct5hc] {
    color: var(--mh-text-secondary);
    font-size: 14px;
}

/* Card tools: one compact segmented control — [✎ | ⇄ تغيير ▾] */
.cd-party-tools[b-l7ksnct5hc] {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    align-self: flex-start;
    height: 34px;
    padding: 2px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-surface);
}

.cd-tool[b-l7ksnct5hc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--mh-radius-pill);
    background: transparent;
    color: var(--mh-text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: background-color 150ms ease, color 150ms ease;
}

    .cd-tool:hover[b-l7ksnct5hc], .cd-tool.is-active[b-l7ksnct5hc] {
        background: var(--cd-party-wash);
        color: var(--mh-primary);
    }

    .cd-tool:focus-visible[b-l7ksnct5hc] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

.cd-tool--text[b-l7ksnct5hc] {
    padding-inline: 10px 6px;
}

.cd-tool-caret[b-l7ksnct5hc] {
    transform: rotate(90deg);
    transition: transform 150ms ease;
}

.cd-tool.is-active .cd-tool-caret[b-l7ksnct5hc] {
    transform: rotate(-90deg);
}

.cd-tools-divider[b-l7ksnct5hc] {
    width: 1px;
    height: 18px;
    margin: 0 2px;
    background: var(--mh-border);
}

/* Dropdown for "تغيير" */
.cd-menu-scrim[b-l7ksnct5hc] {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.cd-menu[b-l7ksnct5hc] {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    z-index: 51;
    display: grid;
    gap: 2px;
    width: 280px;
    padding: 6px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-menu);
    animation: cd-menu-in-b-l7ksnct5hc 140ms ease;
}

@keyframes cd-menu-in-b-l7ksnct5hc {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cd-menu-item[b-l7ksnct5hc] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-12);
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--mh-radius-sm);
    background: transparent;
    color: var(--mh-ink);
    text-align: start;
}

    .cd-menu-item:hover[b-l7ksnct5hc], .cd-menu-item:focus-visible[b-l7ksnct5hc] {
        outline: none;
        background: var(--mh-canvas);
    }

.cd-menu-icon[b-l7ksnct5hc] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--mh-radius-sm);
    background: var(--mh-wash);
    color: var(--mh-primary);
}

.cd-menu-text[b-l7ksnct5hc] {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

    .cd-menu-text strong[b-l7ksnct5hc] {
        font-size: 14px;
        font-weight: 600;
    }

    .cd-menu-text small[b-l7ksnct5hc] {
        color: var(--mh-text-secondary);
        font-size: 12px;
    }

/* Empty card: the two ways to fill it, as clear dashed tiles */
.cd-party-cta[b-l7ksnct5hc] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mh-space-8);
}

.cd-cta[b-l7ksnct5hc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    border: 1px dashed var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-canvas);
    color: var(--mh-primary);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .cd-cta:hover[b-l7ksnct5hc] {
        border-color: var(--mh-mid-blue);
        border-style: solid;
        background: var(--cd-party-wash);
    }

    .cd-cta:focus-visible[b-l7ksnct5hc] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

.cd-party-facts[b-l7ksnct5hc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mh-space-4) var(--mh-space-24);
    margin: 0;
    padding: 0;
    padding-inline-start: 52px; /* line up under the name, past the badge */
    list-style: none;
    font-size: 13px;
}

    .cd-party-facts li[b-l7ksnct5hc] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .cd-party-facts .mh-icon[b-l7ksnct5hc] {
        color: var(--mh-text-secondary);
    }

    .cd-party-facts a[b-l7ksnct5hc] {
        color: var(--mh-ink);
        font-weight: 600;
        text-decoration: none;
    }

        .cd-party-facts a:hover[b-l7ksnct5hc] {
            color: var(--mh-primary);
            text-decoration: underline;
        }

/* Other parties on the same side (Maham_CaseParty): a compact list under the primary party */
.cd-party-more[b-l7ksnct5hc] {
    margin-top: var(--mh-space-8);
    padding-top: var(--mh-space-8);
    padding-inline-start: 52px;
    border-top: 1px dashed var(--mh-border);
}

.cd-party-more-title[b-l7ksnct5hc] {
    display: block;
    margin-bottom: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mh-text-secondary);
}

.cd-party-more ul[b-l7ksnct5hc] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-party-more li[b-l7ksnct5hc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 32px;
    font-size: 13px;
}

.cd-party-more-name[b-l7ksnct5hc] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

    .cd-party-more-name strong[b-l7ksnct5hc] {
        overflow: hidden;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.cd-party-more-tools[b-l7ksnct5hc] {
    display: inline-flex;
    flex-shrink: 0;
    gap: 2px;
}

.cd-menu-divider[b-l7ksnct5hc] {
    display: block;
    height: 1px;
    margin: 4px 8px;
    background: var(--mh-border);
}

.cd-fact-label[b-l7ksnct5hc] {
    color: var(--mh-text-secondary);
    font-size: 12px;
}

.cd-party-note[b-l7ksnct5hc] {
    color: var(--mh-text-secondary);
    font-size: 12px;
}

.cd-vs[b-l7ksnct5hc] {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--mh-border);
    border-radius: 50%;
    background: var(--mh-surface);
    color: var(--mh-text-secondary);
    font-size: 12px;
    font-weight: 700;
    transform: translate(-50%, -50%);
}

/* ---------- Case statistics: one card, four tiles split by thin dividers ----------
   Each tile has a navy icon badge on a light wash; values in dark ink. */
.cd-stats[b-l7ksnct5hc] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    overflow: hidden;
}

.cd-stat[b-l7ksnct5hc] {
    --tone: var(--mh-primary);
    --tone-wash: var(--mh-wash);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 14px;
    border: 0;
    background: none;
    color: inherit;
    text-align: start;
}

    .cd-stat + .cd-stat[b-l7ksnct5hc] {
        border-inline-start: 1px solid var(--mh-border);
    }


.cd-stat-badge[b-l7ksnct5hc] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--mh-radius);
    background: var(--tone-wash);
    color: var(--tone);
    transition: transform 150ms ease;
}

.cd-stat-text[b-l7ksnct5hc] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cd-stat-label[b-l7ksnct5hc] {
    overflow: hidden;
    color: var(--mh-text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-stat-value[b-l7ksnct5hc] {
    overflow: hidden;
    font-family: var(--mh-font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--mh-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-stat-sub[b-l7ksnct5hc] {
    overflow: hidden;
    color: var(--mh-text-secondary);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Clickable tiles: tint + a thin accent line in the tile's tone */
.cd-stat--link[b-l7ksnct5hc] {
    cursor: pointer;
    transition: background-color 150ms ease;
}

    .cd-stat--link[b-l7ksnct5hc]::after {
        content: "";
        position: absolute;
        inset-inline: var(--mh-space-16);
        bottom: 0;
        height: 2px;
        border-radius: 2px 2px 0 0;
        background: var(--tone);
        opacity: 0;
        transition: opacity 150ms ease;
    }

    .cd-stat--link:hover[b-l7ksnct5hc] {
        background: var(--mh-canvas);
    }

        .cd-stat--link:hover[b-l7ksnct5hc]::after {
            opacity: 1;
        }

        .cd-stat--link:hover .cd-stat-badge[b-l7ksnct5hc] {
            transform: scale(1.06);
        }

    .cd-stat--link:focus-visible[b-l7ksnct5hc] {
        outline: none;
        box-shadow: inset var(--mh-focus-ring);
    }

/* Tablets and phones: 2 × 2 */
@media (max-width: 991.98px) {
    .cd-stats[b-l7ksnct5hc] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-stat[b-l7ksnct5hc] {
        border-top: 1px solid var(--mh-border);
    }

        .cd-stat:nth-child(-n+2)[b-l7ksnct5hc] {
            border-top: 0;
        }

        .cd-stat:nth-child(odd)[b-l7ksnct5hc] {
            border-inline-start: 0;
        }
}

/* ---------- Tabs & panels (full width) ---------- */
.cd-tabs[b-l7ksnct5hc] {
    margin-bottom: var(--mh-space-12);
}

.cd-panel[b-l7ksnct5hc] {
    display: none;
}

    .cd-panel.is-active[b-l7ksnct5hc] {
        display: block;
    }

.cd-card-title[b-l7ksnct5hc] {
    margin-bottom: var(--mh-space-16);
    font-size: 16px;
}

.cd-card-head[b-l7ksnct5hc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mh-space-8);
    margin-bottom: var(--mh-space-12);
}

    .cd-card-head .cd-card-title[b-l7ksnct5hc] {
        margin: 0;
    }

/* ---------- Overview: case data + summary side by side ---------- */
.cd-overview[b-l7ksnct5hc] {
    display: grid;
    gap: var(--mh-space-16);
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: stretch; /* both cards share the taller one's height */
}

/* Read-only form grid: label above value, like the v5 form but cleaner */
.cd-grid[b-l7ksnct5hc] {
    display: grid;
    gap: var(--mh-space-16) var(--mh-space-24);
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    margin: 0;
}

.cd-field[b-l7ksnct5hc] {
    min-width: 0;
    padding-bottom: var(--mh-space-8);
    border-bottom: 1px solid var(--mh-border);
}

.cd-field--wide[b-l7ksnct5hc] {
    grid-column: 1 / -1;
}

.cd-field dt[b-l7ksnct5hc] {
    margin-bottom: 2px;
    color: var(--mh-text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.cd-field dd[b-l7ksnct5hc] {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.cd-paragraph[b-l7ksnct5hc] {
    margin: 0;
    white-space: pre-line;
    line-height: 1.8;
}

.cd-subheading[b-l7ksnct5hc] {
    margin: var(--mh-space-16) 0 var(--mh-space-8);
}

/* ---------- Courts (محاكم القضية): compact stage rows ----------
   One line per court: step · court · key numbers · status · hearings · actions.
   Steps are joined by a thin line so the order of the litigation reads at a glance. */
.cd-stages[b-l7ksnct5hc] {
    display: grid;
    gap: var(--mh-space-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-stage[b-l7ksnct5hc] {
    position: relative;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

    .cd-stage:hover[b-l7ksnct5hc] {
        border-color: var(--mh-light-blue);
        box-shadow: var(--mh-shadow-card);
    }

    /* Highlighted rows get a soft tint so they stand out from the history:
       current court / upcoming hearing / open task = light blue. */
    .cd-stage.is-active[b-l7ksnct5hc] {
        border-color: #D3E0EA;
        border-inline-start: 3px solid var(--mh-primary);
        background: #F4F8FB;
    }

        .cd-stage.is-active .cd-stage-verdict[b-l7ksnct5hc] {
            background: var(--mh-surface);
        }

    /* connector to the next step */
    .cd-stage:not(:last-child)[b-l7ksnct5hc]::after {
        content: "";
        position: absolute;
        top: 100%;
        inset-inline-start: 27px;
        width: 2px;
        height: var(--mh-space-8);
        background: var(--mh-border);
    }

    .cd-stage.is-active:not(:last-child)[b-l7ksnct5hc]::after {
        inset-inline-start: 25px;
    }

.cd-stage-row[b-l7ksnct5hc] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-16);
    min-height: 60px;
    padding: 8px var(--mh-space-12);
}

.cd-stage-step[b-l7ksnct5hc] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mh-stone-wash);
    color: var(--mh-text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.cd-stage.is-active .cd-stage-step[b-l7ksnct5hc] {
    background: var(--mh-primary);
    color: #fff;
    box-shadow: 0 0 0 3px var(--mh-wash);
}

.cd-stage-title[b-l7ksnct5hc] {
    display: flex;
    flex: 0 1 220px;
    flex-direction: column;
    min-width: 140px;
    line-height: 1.35;
}

    .cd-stage-title strong[b-l7ksnct5hc] {
        overflow: hidden;
        font-family: var(--mh-font-heading);
        font-size: 15px;
        font-weight: 700;
        color: var(--mh-ink);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cd-stage-title span[b-l7ksnct5hc] {
        overflow: hidden;
        color: var(--mh-text-secondary);
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.cd-stage-facts[b-l7ksnct5hc] {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 4px var(--mh-space-24);
    min-width: 0;
    margin: 0;
}

    .cd-stage-facts div[b-l7ksnct5hc] {
        min-width: 84px;
        line-height: 1.35;
    }

    .cd-stage-facts dt[b-l7ksnct5hc] {
        color: var(--mh-text-secondary);
        font-size: 11px;
        font-weight: 500;
    }

    .cd-stage-facts dd[b-l7ksnct5hc] {
        margin: 0;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

.cd-stage-status[b-l7ksnct5hc] {
    flex-shrink: 0;
}

.cd-stage-count[b-l7ksnct5hc] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-canvas);
    color: var(--mh-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease;
}

    .cd-stage-count:hover:not(:disabled)[b-l7ksnct5hc] {
        border-color: var(--mh-mid-blue);
        background: var(--mh-wash);
    }

    .cd-stage-count:disabled[b-l7ksnct5hc] {
        color: var(--mh-text-disabled);
        cursor: default;
    }

.cd-stage-actions[b-l7ksnct5hc] {
    flex-shrink: 0;
}

/* Verdict: always shown in full, as a quoted block under the court */
.cd-stage-verdict[b-l7ksnct5hc] {
    display: flex;
    align-items: flex-start;
    gap: var(--mh-space-12);
    margin: 0 var(--mh-space-12) var(--mh-space-12);
    margin-inline-start: 56px; /* under the court name, past the step */
    padding: 8px var(--mh-space-12);
    border-inline-start: 3px solid var(--mh-light-blue);
    border-radius: var(--mh-radius-sm);
    background: var(--mh-canvas);
    font-size: 13px;
}

.cd-verdict-label[b-l7ksnct5hc] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    padding-top: 1px;
    color: var(--mh-primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cd-verdict-text[b-l7ksnct5hc] {
    margin: 0;
    color: var(--mh-ink);
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* ---------- Hearings & tasks: a timeline ----------
   The date tile sits OUTSIDE the card, on a vertical line that links each date to the next.
   Same colours in both tabs: highlighted (upcoming hearing / open task) = navy tile + light blue card,
   history (held hearing / finished task) = grey tile + white card. */
.cd-timeline-list[b-l7ksnct5hc] {
    display: grid;
    gap: var(--mh-space-12);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-tl-item[b-l7ksnct5hc] {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: var(--mh-space-12);
}

    /* the line from this date down to the next one */
    .cd-tl-item:not(:last-child)[b-l7ksnct5hc]::before {
        content: "";
        position: absolute;
        top: 52px;
        bottom: calc(-1 * var(--mh-space-12));
        inset-inline-start: 25px;
        width: 2px;
        border-radius: 1px;
        background: var(--mh-border);
    }

    .cd-tl-item.is-active:not(:last-child)[b-l7ksnct5hc]::before {
        background: linear-gradient(var(--mh-light-blue), var(--mh-border));
    }

    /* cards inside the timeline need no step connector of their own */
    .cd-tl-item .cd-stage[b-l7ksnct5hc]::after {
        display: none;
    }

.cd-date-tile[b-l7ksnct5hc] {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-top: 4px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    color: var(--mh-text-secondary);
    line-height: 1.1;
}

    .cd-date-tile strong[b-l7ksnct5hc] {
        font-family: var(--mh-font-heading);
        font-size: 18px;
        font-weight: 700;
        color: var(--mh-ink);
    }

    .cd-date-tile small[b-l7ksnct5hc] {
        font-size: 10px;
        font-weight: 600;
    }

.cd-tl-item.is-active .cd-date-tile[b-l7ksnct5hc] {
    border-color: var(--mh-primary);
    background: var(--mh-primary);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px var(--mh-wash);
}

    .cd-tl-item.is-active .cd-date-tile strong[b-l7ksnct5hc] {
        color: #fff;
    }

.cd-tl-item .cd-stage-verdict[b-l7ksnct5hc] {
    margin-inline-start: var(--mh-space-12);
}

.cd-fact-hint[b-l7ksnct5hc] {
    margin-inline-start: 4px;
    padding: 0 6px;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-wash);
    color: var(--mh-primary);
    font-size: 11px;
    font-weight: 700;
}

.cd-filter-sub[b-l7ksnct5hc] {
    color: var(--mh-text-secondary);
    font-size: 11px;
    font-weight: 500;
}

.cd-verdict-body[b-l7ksnct5hc] {
    min-width: 0;
}

.cd-verdict-note[b-l7ksnct5hc] {
    margin: 2px 0 0;
    color: var(--mh-text-secondary);
    font-size: 12px;
    white-space: pre-line;
}

/* Tasks: the action is the main text — allow two lines instead of cutting it short */
.cd-task-title[b-l7ksnct5hc] {
    flex: 0 1 300px;
}

    .cd-task-title strong[b-l7ksnct5hc] {
        display: -webkit-box;
        font-size: 14px;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.cd-tl-item.is-done .cd-task-title strong[b-l7ksnct5hc] {
    color: var(--mh-text-secondary);
}

@media (max-width: 1199.98px) {
    .cd-tl-item .cd-stage-facts[b-l7ksnct5hc] {
        padding-inline-start: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .cd-tl-item[b-l7ksnct5hc] {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: var(--mh-space-8);
    }

        .cd-tl-item:not(:last-child)[b-l7ksnct5hc]::before {
            top: 48px;
            inset-inline-start: 21px;
        }

    .cd-date-tile[b-l7ksnct5hc] {
        width: 44px;
        height: 44px;
    }
}

/* Narrow: the numbers drop to their own line under the court */
@media (max-width: 1199.98px) {
    .cd-stage-row[b-l7ksnct5hc] {
        flex-wrap: wrap;
        row-gap: var(--mh-space-8);
    }

    .cd-stage-title[b-l7ksnct5hc] {
        flex: 1 1 160px;
    }

    .cd-stage-facts[b-l7ksnct5hc] {
        order: 10;
        flex-basis: 100%;
        padding-inline-start: 44px;
    }
}

/* ---------- Editing affordances ---------- */
.cd-toolbar[b-l7ksnct5hc] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--mh-space-12);
    margin-bottom: var(--mh-space-12);
}

    .cd-toolbar > .btn[b-l7ksnct5hc] {
        margin-inline-start: auto;
    }

    .cd-toolbar .cd-filters[b-l7ksnct5hc] {
        margin: 0;
    }

/* ---------- Filters & tables ---------- */
.cd-filters[b-l7ksnct5hc] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mh-space-8);
    margin-bottom: var(--mh-space-12);
}

.cd-filter[b-l7ksnct5hc] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-surface);
    color: var(--mh-ink);
    font-size: 13px;
}

    .cd-filter:hover[b-l7ksnct5hc] {
        border-color: var(--mh-mid-blue);
    }

    .cd-filter.active[b-l7ksnct5hc] {
        border-color: var(--mh-primary);
        background: var(--mh-wash);
        color: var(--mh-primary);
        font-weight: 700;
    }

.cell-sub[b-l7ksnct5hc] {
    color: var(--mh-text-secondary);
    font-size: 12px;
}

.cell-muted[b-l7ksnct5hc] {
    color: var(--mh-text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .cd-overview[b-l7ksnct5hc] {
        grid-template-columns: 1fr;
    }
}

/* Stacked on phones: "ضد" sits between the cards instead of on the seam */
@media (max-width: 767.98px) {
    .cd-parties[b-l7ksnct5hc] {
        grid-template-columns: 1fr;
        gap: var(--mh-space-8);
    }

    .cd-vs[b-l7ksnct5hc] {
        position: static;
        justify-self: center;
        transform: none;
    }
}

/* ---------- Print ----------
   Paper gets the official report (CasePrintDocument), never this screen layout. */
@media print {
    .cd-page[b-l7ksnct5hc] {
        display: none !important;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
    .cd-page[b-l7ksnct5hc] {
        gap: var(--mh-space-12);
    }

    /* Page bar: back arrow + compact actions on one row */
    .cd-pagebar[b-l7ksnct5hc] {
        margin-bottom: 0;
    }

    .cd-back-label[b-l7ksnct5hc] {
        display: none;
    }

    .cd-back[b-l7ksnct5hc] {
        width: 40px;
        height: 40px;
        justify-content: center;
        margin-inline-start: -6px;
        padding: 0;
        border: 1px solid var(--mh-border);
        border-radius: 50%;
        background: var(--mh-surface);
    }

    .cd-actions .btn[b-l7ksnct5hc] {
        white-space: nowrap;
    }

    /* Header */
    .cd-hero[b-l7ksnct5hc] {
        padding: var(--mh-space-16);
    }

    .cd-title-row[b-l7ksnct5hc] {
        gap: var(--mh-space-8);
    }

        .cd-title-row h1[b-l7ksnct5hc] {
            flex-basis: 100%;
            font-size: 20px;
        }

    .cd-meta[b-l7ksnct5hc] {
        gap: 4px var(--mh-space-16);
    }

    /* Client / opponent: full name visible; tools move under it */
    .cd-party-head[b-l7ksnct5hc] {
        flex-wrap: wrap;
        row-gap: var(--mh-space-8);
    }

    .cd-party-name[b-l7ksnct5hc] {
        white-space: normal;
    }


    /* the name gets the whole row next to the badge; the tools wrap to the next row */
    .cd-party-title[b-l7ksnct5hc] {
        flex: 1 1 calc(100% - 64px);
    }

    .cd-capacity[b-l7ksnct5hc] {
        white-space: nowrap;
    }

    .cd-party-tools[b-l7ksnct5hc] {
        order: 3;
        margin-inline-start: 52px;
    }

    .cd-party-facts[b-l7ksnct5hc] {
        padding-inline-start: 0;
    }

    /* Statistics: 2 per row, values may wrap instead of being cut off */
    .cd-stats[b-l7ksnct5hc] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .cd-stat[b-l7ksnct5hc] {
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
        border-top: 1px solid var(--mh-border);
        border-inline-start: 1px solid var(--mh-border);
    }

        .cd-stat:nth-child(-n+2)[b-l7ksnct5hc] {
            border-top: 0;
        }

        .cd-stat:nth-child(odd)[b-l7ksnct5hc] {
            border-inline-start: 0;
        }

        .cd-stat:nth-child(even)[b-l7ksnct5hc] {
            border-inline-start: 1px solid var(--mh-border);
        }

        .cd-stat:nth-child(n+3)[b-l7ksnct5hc] {
            border-top: 1px solid var(--mh-border);
        }

    .cd-stat-badge[b-l7ksnct5hc] {
        width: 30px;
        height: 30px;
    }

    .cd-stat-label[b-l7ksnct5hc], .cd-stat-value[b-l7ksnct5hc], .cd-stat-sub[b-l7ksnct5hc] {
        white-space: normal;
    }

    .cd-stat-value[b-l7ksnct5hc] {
        font-size: 15px;
        line-height: 1.35;
    }

    /* Tab toolbars: filters scroll sideways, the add button stays visible */
    .cd-toolbar[b-l7ksnct5hc] {
        flex-wrap: nowrap;
        align-items: center;
    }

        .cd-toolbar .cd-filters[b-l7ksnct5hc] {
            flex: 1;
            flex-wrap: nowrap;
            min-width: 0;
            overflow-x: auto;
            scrollbar-width: none;
        }

            .cd-toolbar .cd-filters[b-l7ksnct5hc]::-webkit-scrollbar {
                display: none;
            }

    .cd-filter[b-l7ksnct5hc] {
        flex-shrink: 0;
        min-height: 36px;
    }

    .cd-toolbar > .btn[b-l7ksnct5hc] {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Rows (courts / hearings / tasks): details under the title, actions at the end */
    .cd-stage-row[b-l7ksnct5hc] {
        gap: var(--mh-space-8) var(--mh-space-12);
        padding: 10px 12px;
    }

    .cd-stage-facts[b-l7ksnct5hc] {
        gap: 6px var(--mh-space-16);
    }

        .cd-stage-facts div[b-l7ksnct5hc] {
            min-width: 0;
        }

    .cd-stage-verdict[b-l7ksnct5hc] {
        flex-direction: column;
        gap: 4px;
        margin-inline: var(--mh-space-12) !important;
    }

    .cd-overview .mh-card[b-l7ksnct5hc] {
        padding: var(--mh-space-16);
    }
}
/* /Components/Pages/Cases/CaseList.razor.rz.scp.css */
.case-tabs[b-w2jco19q6f] {
    margin-bottom: var(--mh-space-16);
}

/* ---------- Toolbar ---------- */
.case-toolbar[b-w2jco19q6f] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--mh-space-12);
    margin-bottom: var(--mh-space-16);
}

.case-search[b-w2jco19q6f] {
    position: relative;
    flex: 1 1 320px;
}

    .case-search .mh-icon[b-w2jco19q6f] {
        position: absolute;
        top: 50%;
        inset-inline-start: 14px;
        transform: translateY(-50%);
        color: var(--mh-text-secondary);
        pointer-events: none;
    }

    .case-search input[b-w2jco19q6f] {
        padding-inline-start: 40px;
    }

.case-filter[b-w2jco19q6f] {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
}

.view-toggle[b-w2jco19q6f] {
    display: inline-flex;
    height: var(--mh-control-height);
    padding: 3px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    background: var(--mh-surface);
}

    .view-toggle button[b-w2jco19q6f] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 12px;
        border: 0;
        border-radius: 3px;
        background: transparent;
        color: var(--mh-text-secondary);
        font-size: 13px;
        font-weight: 500;
    }

        .view-toggle button:hover[b-w2jco19q6f] {
            color: var(--mh-primary);
        }

        .view-toggle button.active[b-w2jco19q6f] {
            background: var(--mh-wash);
            color: var(--mh-primary);
            font-weight: 700;
        }

/* ---------- Page frame ----------
   Desktop: the list fills the window. Title, status tabs and toolbar stay put; only the cards /
   table rows scroll (mouse wheel, touchpad, keyboard) and the scrollbar itself is hidden.
   The pager stays visible under the results. Small or short screens scroll normally. */
@media (min-width: 992px) and (min-height: 600px) {
    .case-page[b-w2jco19q6f] {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - var(--mh-topbar-height) - 2 * var(--mh-page-padding));
    }

    .case-page > .mh-page-header[b-w2jco19q6f],
    .case-tabs[b-w2jco19q6f],
    .case-toolbar[b-w2jco19q6f] {
        flex-shrink: 0;
    }

    .case-body[b-w2jco19q6f] {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-height: 0;
    }

    .case-results[b-w2jco19q6f] {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-height: 0;
    }

    .case-results[b-w2jco19q6f]  .pager {
        flex-shrink: 0;
    }

    .case-scroll[b-w2jco19q6f] {
        flex: 1;
        min-height: 0;
        margin-inline: -4px;
        padding: 4px 4px var(--mh-space-12);
    }

    /* Cards: the area itself scrolls */
    .case-scroll--cards[b-w2jco19q6f] {
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

        .case-scroll--cards[b-w2jco19q6f]::-webkit-scrollbar {
            display: none;
        }

    /* Table: the card fills the area and its body scrolls under a sticky header row */
    .case-scroll--table[b-w2jco19q6f] {
        display: flex;
        flex-direction: column;
        padding-bottom: var(--mh-space-12);
    }

        .case-scroll--table .case-table-card[b-w2jco19q6f] {
            display: flex;
            flex: 1;
            flex-direction: column;
            min-height: 0;
        }

        .case-scroll--table .table-responsive[b-w2jco19q6f] {
            flex: 1;
            min-height: 0;
            overflow: auto;
            overscroll-behavior: contain;
        }

            /* hide the vertical bar only; a horizontal bar remains when the table is wider than the screen */
            .case-scroll--table .table-responsive[b-w2jco19q6f]::-webkit-scrollbar {
                width: 0;
            }

        .case-scroll--table .case-table thead th[b-w2jco19q6f] {
            position: sticky;
            top: 0;
            z-index: 1;
            background: var(--mh-table-header);
            box-shadow: inset 0 -1px 0 var(--mh-border);
        }
}

/* ---------- Status tab counts: same colours as the status pills ---------- */
.case-count[b-w2jco19q6f] {
    gap: 5px;
    background: var(--mh-status-bg);
    color: var(--mh-status-fg);
    font-weight: 700;
}

    .case-count[b-w2jco19q6f]::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--mh-status-dot);
    }

.case-count--all[b-w2jco19q6f] {
    --mh-status-bg: var(--mh-stone-wash);
    --mh-status-fg: var(--mh-text-secondary);
}

    .case-count--all[b-w2jco19q6f]::before {
        display: none;
    }

/* ---------- Results ---------- */
.case-results[b-w2jco19q6f] {
    transition: opacity 120ms ease;
}

    .case-results.is-loading[b-w2jco19q6f] {
        opacity: 0.55;
    }

.case-loading[b-w2jco19q6f] {
    display: grid;
    gap: var(--mh-space-16);
}

/* Table */
.case-table-card[b-w2jco19q6f] {
    padding: 0;
    overflow: hidden;
}

.case-table[b-w2jco19q6f] {
    min-width: 960px;
}

    .case-table tr.is-clickable[b-w2jco19q6f] {
        cursor: pointer;
    }

    .case-table td a[b-w2jco19q6f] {
        font-weight: 700;
        text-decoration: none;
    }

        .case-table td a:hover[b-w2jco19q6f] {
            text-decoration: underline;
        }

.cell-strong[b-w2jco19q6f] {
    font-weight: 500;
}

.cell-sub[b-w2jco19q6f] {
    color: var(--mh-text-secondary);
    font-size: 12px;
}

/* Cards */
.case-grid[b-w2jco19q6f] {
    display: grid;
    gap: var(--mh-space-16);
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.case-card[b-w2jco19q6f] {
    display: flex;
    flex-direction: column;
    gap: var(--mh-space-8);
    padding: var(--mh-space-16) 20px;
    background: var(--mh-surface);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow-card);
    color: var(--mh-ink);
    text-decoration: none;
    transition: border-color 120ms ease;
}

    .case-card:hover[b-w2jco19q6f] {
        border-color: var(--mh-mid-blue);
        color: var(--mh-ink);
    }

.case-card-head[b-w2jco19q6f] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mh-space-8);
}

.case-card-no[b-w2jco19q6f] {
    color: var(--mh-text-secondary);
    font-size: 13px;
    font-weight: 500;
}

    .case-card-no .mh-num[b-w2jco19q6f] {
        color: var(--mh-primary);
        font-family: var(--mh-font-heading);
        font-size: 16px;
        font-weight: 700;
    }

.case-card-client[b-w2jco19q6f] {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

    .case-card-client strong[b-w2jco19q6f] {
        font-family: var(--mh-font-heading);
        font-size: 16px;
        font-weight: 600;
        color: var(--mh-primary);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .case-card-client small[b-w2jco19q6f] {
        color: var(--mh-text-secondary);
        font-size: 12px;
    }

.case-card-opponent[b-w2jco19q6f] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-card-tags[b-w2jco19q6f] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

    .case-card-tags .mh-chip[b-w2jco19q6f] {
        height: 24px;
        font-size: 12px;
        background: var(--mh-canvas);
    }

.case-card-foot[b-w2jco19q6f] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: var(--mh-space-8);
    border-top: 1px solid var(--mh-border);
    font-size: 13px;
}

.case-card-meta[b-w2jco19q6f] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    .case-card-meta .mh-icon[b-w2jco19q6f] {
        color: var(--mh-text-secondary);
    }

/* Lawyer strip at the bottom of the card */
.case-card-lawyer[b-w2jco19q6f] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-8);
    margin: 0 -20px calc(-1 * var(--mh-space-16)); /* full width, flush with the card edges */
    padding: 8px 20px;
    border-top: 1px solid var(--mh-border);
    border-radius: 0 0 var(--mh-radius) var(--mh-radius);
    background: var(--mh-canvas);
}

.case-card-lawyer-text[b-w2jco19q6f] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

    .case-card-lawyer-text small[b-w2jco19q6f] {
        color: var(--mh-text-secondary);
        font-size: 11px;
    }

    .case-card-lawyer-text strong[b-w2jco19q6f] {
        overflow: hidden;
        color: var(--mh-ink);
        font-size: 13px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

@media (max-width: 767.98px) {
    .case-filter[b-w2jco19q6f] {
        flex: 1 1 140px;
    }

    .view-toggle[b-w2jco19q6f] {
        flex: 1 1 100%;
    }

        .view-toggle button[b-w2jco19q6f] {
            flex: 1;
            justify-content: center;
        }
}

/* ---------- Printout: تقرير حالة القضايا (A4 landscape) ---------- */
.cl-report[b-w2jco19q6f] { table-layout: fixed; width: 100%; font-size: 8.5pt; }
.cl-report .cl-c-no[b-w2jco19q6f] { width: 3%; }
.cl-report .cl-c-file[b-w2jco19q6f] { width: 5.5%; }
.cl-report .cl-c-parties[b-w2jco19q6f] { width: 23%; }
.cl-report .cl-c-status[b-w2jco19q6f] { width: 7%; }
.cl-report .cl-c-court[b-w2jco19q6f] { width: 12.5%; }
.cl-report .cl-c-last[b-w2jco19q6f] { width: 7.5%; }
.cl-report .cl-c-said[b-w2jco19q6f] { width: 24%; }
.cl-report .cl-c-next[b-w2jco19q6f] { width: 8.5%; }
.cl-report .cl-c-lawyer[b-w2jco19q6f] { width: 9%; }
.cl-report th[b-w2jco19q6f] { white-space: normal; }
.cl-report td[b-w2jco19q6f] { vertical-align: top; overflow-wrap: anywhere; }
.cl-report .cl-said[b-w2jco19q6f] { line-height: 1.45; }
.cl-report tr[b-w2jco19q6f] { break-inside: avoid; }
/* /Components/Pages/Cases/CasePrintDocument.razor.rz.scp.css */
/* Official printed case file. Never shown on screen; on paper it replaces the page layout.
   Formal look: black text, thin rules, light grey header cells, serif-free Arabic fonts. */
.pd[b-khw5oxaaan] {
    display: none;
}

@media print {
    .pd[b-khw5oxaaan] {
        display: block;
        color: #111;
        font-family: var(--mh-font-body);
        font-size: 10pt;
        line-height: 1.55;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ---------- Letterhead ---------- */
    .pd-letterhead[b-khw5oxaaan] {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10mm;
        padding-bottom: 3mm;
        border-bottom: 2.5pt double #1f2d3d;
    }

    .pd-office-name[b-khw5oxaaan] {
        font-family: var(--mh-font-heading);
        font-size: 16pt;
        font-weight: 700;
        line-height: 1.3;
        color: #1f2d3d;
    }

    .pd-office-en[b-khw5oxaaan] {
        font-size: 9.5pt;
        letter-spacing: 0.3pt;
        color: #333;
    }

    .pd-office-contact[b-khw5oxaaan] {
        margin-top: 1mm;
        font-size: 8.5pt;
        color: #444;
    }

    .pd-ref[b-khw5oxaaan] {
        flex-shrink: 0;
        border-collapse: collapse;
        font-size: 8.5pt;
    }

        .pd-ref th[b-khw5oxaaan], .pd-ref td[b-khw5oxaaan] {
            padding: 0.6mm 2.5mm;
            border: 0.5pt solid #777;
        }

        .pd-ref th[b-khw5oxaaan] {
            background: #eef1f4;
            font-weight: 600;
            text-align: start;
            white-space: nowrap;
        }

        .pd-ref td[b-khw5oxaaan] {
            min-width: 28mm;
            font-weight: 700;
        }

    /* ---------- Title ---------- */
    .pd-title-block[b-khw5oxaaan] {
        margin: 5mm 0 4mm;
        text-align: center;
    }

    .pd-title[b-khw5oxaaan] {
        display: inline-block;
        margin: 0;
        padding: 0 6mm 1mm;
        border-bottom: 1pt solid #1f2d3d;
        font-family: var(--mh-font-heading);
        font-size: 17pt;
        font-weight: 700;
        color: #1f2d3d;
    }

    .pd-title-sub[b-khw5oxaaan] {
        margin-top: 2mm;
        font-size: 11pt;
        font-weight: 600;
    }

    .pd-status[b-khw5oxaaan] {
        margin-top: 1mm;
        font-size: 9pt;
        color: #333;
    }

    /* ---------- Sections ---------- */
    .pd-section[b-khw5oxaaan] {
        margin-top: 5mm;
    }

    .pd-h2[b-khw5oxaaan] {
        display: flex;
        align-items: center;
        gap: 2mm;
        margin: 0 0 2mm;
        padding-bottom: 1mm;
        border-bottom: 0.75pt solid #1f2d3d;
        font-family: var(--mh-font-heading);
        font-size: 11.5pt;
        font-weight: 700;
        color: #1f2d3d;
        break-after: avoid;
    }

    .pd-no[b-khw5oxaaan] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 5.5mm;
        height: 5.5mm;
        border-radius: 50%;
        background: #1f2d3d;
        color: #fff;
        font-size: 8.5pt;
    }

    .pd-count[b-khw5oxaaan] {
        color: #555;
        font-size: 9pt;
        font-weight: 500;
    }

    .pd-h3[b-khw5oxaaan] {
        margin: 3mm 0 1mm;
        font-size: 10pt;
        font-weight: 700;
    }

    .pd-text[b-khw5oxaaan] {
        padding: 2.5mm 3mm;
        border: 0.5pt solid #999;
        white-space: pre-line;
        text-align: justify;
    }

    .pd-none[b-khw5oxaaan] {
        margin: 0;
        color: #555;
    }

    /* ---------- Tables ---------- */
    .pd-kv[b-khw5oxaaan], .pd-grid[b-khw5oxaaan] {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
    }

        .pd-kv th[b-khw5oxaaan], .pd-kv td[b-khw5oxaaan], .pd-grid th[b-khw5oxaaan], .pd-grid td[b-khw5oxaaan] {
            padding: 1.2mm 2mm;
            border: 0.5pt solid #888;
            vertical-align: top;
            text-align: start;
        }

        .pd-kv th[b-khw5oxaaan], .pd-grid tbody th[b-khw5oxaaan] {
            background: #f3f5f7;
            font-weight: 600;
            white-space: nowrap;
        }

    .pd-k[b-khw5oxaaan] {
        width: 17%;
    }

    .pd-kv td[b-khw5oxaaan] {
        font-weight: 500;
    }

    /* Column headers repeat on every printed page */
    .pd-grid thead[b-khw5oxaaan] {
        display: table-header-group;
    }

        .pd-grid thead th[b-khw5oxaaan] {
            background: #1f2d3d;
            color: #fff;
            font-size: 9pt;
            font-weight: 600;
            white-space: nowrap;
        }

    .pd-grid tbody tr:nth-child(even) td[b-khw5oxaaan] {
        background: #fafbfc;
    }

    .pd-parties td[b-khw5oxaaan] {
        width: 41.5%;
        font-weight: 500;
    }

    .pd-c-no[b-khw5oxaaan] {
        width: 7mm;
        text-align: center !important;
    }

    .pd-c-date[b-khw5oxaaan] {
        width: 22mm;
    }

    .pd-keep[b-khw5oxaaan] {
        break-inside: avoid;
    }

    .pd-subrow td[b-khw5oxaaan] {
        background: #fff !important;
        font-size: 9pt;
    }

    .pd-label[b-khw5oxaaan] {
        font-weight: 700;
    }

    .pd-pre[b-khw5oxaaan] {
        white-space: pre-line;
    }

    .pd-note[b-khw5oxaaan] {
        margin-top: 0.8mm;
        color: #444;
        font-size: 8.5pt;
    }

    .pd-num[b-khw5oxaaan] {
        font-variant-numeric: tabular-nums;
    }

    /* ---------- Signatures & footer ---------- */
    .pd-signatures[b-khw5oxaaan] {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8mm;
        margin-top: 10mm;
        break-inside: avoid;
    }

    .pd-sign-role[b-khw5oxaaan] {
        margin-bottom: 3mm;
        padding-bottom: 1mm;
        border-bottom: 0.75pt solid #1f2d3d;
        font-weight: 700;
        text-align: center;
    }

    .pd-sign-line[b-khw5oxaaan] {
        display: flex;
        align-items: flex-end;
        height: 8mm;
        border-bottom: 0.5pt dotted #777;
        font-size: 9pt;
        color: #333;
    }

    .pd-footer[b-khw5oxaaan] {
        display: flex;
        justify-content: space-between;
        gap: 6mm;
        margin-top: 8mm;
        padding-top: 2mm;
        border-top: 0.5pt solid #999;
        color: #555;
        font-size: 8pt;
        break-inside: avoid;
    }
}

/* Stamp box (إعدادات الطباعة → خانة الختم) */
.pd-stamp-box[b-khw5oxaaan] {
    width: 32mm;
    height: 32mm;
    margin-top: 4px;
    border: 1px dashed #888;
    border-radius: 50%;
}

/* The letterhead moved to PrintFrame: the reference block sits alone at the end side */
.pd-letterhead.pd-meta[b-khw5oxaaan] {
    justify-content: flex-end;
    border-bottom: 0;
    padding-bottom: 0;
}
/* /Components/Pages/Cases/Editors/PartyEditor.razor.rz.scp.css */
.party-mode[b-6wghoc78qh] {
    display: flex;
    padding: 3px;
    margin-bottom: var(--mh-space-16);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    background: var(--mh-canvas);
}

    .party-mode button[b-6wghoc78qh] {
        flex: 1;
        height: 34px;
        border: 0;
        border-radius: 3px;
        background: transparent;
        color: var(--mh-text-secondary);
        font-weight: 500;
    }

        .party-mode button.active[b-6wghoc78qh] {
            background: var(--mh-surface);
            color: var(--mh-primary);
            font-weight: 700;
            box-shadow: var(--mh-shadow-card);
        }

.party-search[b-6wghoc78qh] {
    position: relative;
}

    .party-search .mh-icon[b-6wghoc78qh] {
        position: absolute;
        top: 50%;
        inset-inline-start: 12px;
        transform: translateY(-50%);
        color: var(--mh-text-secondary);
        pointer-events: none;
    }

    .party-search input[b-6wghoc78qh] {
        padding-inline-start: 36px;
    }

.party-results[b-6wghoc78qh] {
    display: grid;
    gap: 6px;
    margin-top: var(--mh-space-12);
}

.party-result[b-6wghoc78qh] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-12);
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-sm);
    background: var(--mh-surface);
    color: var(--mh-ink);
    text-align: start;
}

    .party-result:hover[b-6wghoc78qh] {
        border-color: var(--mh-mid-blue);
    }

    .party-result.active[b-6wghoc78qh] {
        border-color: var(--mh-primary);
        background: var(--mh-wash);
    }

    .party-result > .mh-icon[b-6wghoc78qh] {
        margin-inline-start: auto;
        color: var(--mh-primary);
    }

.party-result-text[b-6wghoc78qh] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

    .party-result-text strong[b-6wghoc78qh] {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .party-result-text small[b-6wghoc78qh] {
        color: var(--mh-text-secondary);
        font-size: 12px;
    }
/* /Components/Pages/Clients/ClientPanel.razor.rz.scp.css */
.cp-summary[b-jue17k5rf1] {
    display: flex;
    align-items: flex-start;
    gap: var(--mh-space-12);
    margin-bottom: var(--mh-space-16);
}

.cp-badge[b-jue17k5rf1] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--mh-radius);
    background: var(--mh-wash);
    color: var(--mh-primary);
}

.cp-summary-text[b-jue17k5rf1] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

    .cp-summary-text strong[b-jue17k5rf1] {
        font-family: var(--mh-font-heading);
        font-size: 18px;
        font-weight: 700;
        color: var(--mh-primary);
    }

    .cp-summary-text small[b-jue17k5rf1] {
        color: var(--mh-text-secondary);
        font-size: 12px;
        text-align: start;
    }

.cp-roles[b-jue17k5rf1] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.cp-chip-client[b-jue17k5rf1] {
    background: var(--mh-wash);
    color: var(--mh-primary);
}

.cp-chip-opponent[b-jue17k5rf1] {
    background: var(--mh-sand-wash);
    color: var(--mh-ink);
}

.cp-fields[b-jue17k5rf1] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mh-space-12) var(--mh-space-16);
    margin: 0 0 var(--mh-space-8);
}

    .cp-fields > div[b-jue17k5rf1] {
        min-width: 0;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--mh-border);
    }

    .cp-fields dt[b-jue17k5rf1] {
        color: var(--mh-text-secondary);
        font-size: 11px;
        font-weight: 500;
    }

    .cp-fields dd[b-jue17k5rf1] {
        margin: 0;
        font-size: 14px;
        font-weight: 500;
        overflow-wrap: anywhere;
    }

.cp-wide[b-jue17k5rf1] {
    grid-column: 1 / -1;
}

.cp-cases[b-jue17k5rf1] {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-case[b-jue17k5rf1] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px var(--mh-space-12);
    padding: 8px 12px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    color: var(--mh-ink);
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .cp-case:hover[b-jue17k5rf1] {
        border-color: var(--mh-light-blue);
        background: var(--mh-canvas);
        color: var(--mh-ink);
    }

.cp-case-main[b-jue17k5rf1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .cp-case-main strong[b-jue17k5rf1] {
        font-size: 14px;
    }

.cp-case-sub[b-jue17k5rf1] {
    grid-column: 1;
    overflow: hidden;
    color: var(--mh-text-secondary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-case-end[b-jue17k5rf1] {
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-items: center;
    gap: 8px;
}
/* /Components/Pages/Clients/ClientsPage.razor.rz.scp.css */
.cl-grid[b-2o472sqe3f] {
    display: grid;
    gap: var(--mh-space-12);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Party card (a button: opens the side panel) */
.cl-card[b-2o472sqe3f] {
    display: flex;
    flex-direction: column;
    gap: var(--mh-space-12);
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-card);
    color: var(--mh-ink);
    text-align: start;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

    .cl-card:hover[b-2o472sqe3f] {
        border-color: var(--mh-light-blue);
    }

    .cl-card:focus-visible[b-2o472sqe3f] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

    .cl-card.is-selected[b-2o472sqe3f] {
        border-color: var(--mh-primary);
        box-shadow: 0 0 0 3px var(--mh-wash);
    }

.cl-card-head[b-2o472sqe3f] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-12);
    min-width: 0;
}

/* Role badge: client = navy tint, opponent = sand (same as the case page cards) */
.cl-badge[b-2o472sqe3f] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--mh-radius);
}

    .cl-badge.is-client[b-2o472sqe3f] {
        background: var(--mh-wash);
        color: var(--mh-primary);
    }

    .cl-badge.is-opponent[b-2o472sqe3f] {
        background: var(--mh-sand-wash);
        color: var(--mh-ink);
    }

.cl-name[b-2o472sqe3f] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

    .cl-name strong[b-2o472sqe3f] {
        display: -webkit-box;
        overflow: hidden;
        font-family: var(--mh-font-heading);
        font-size: 15px;
        font-weight: 700;
        color: var(--mh-primary);
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .cl-name small[b-2o472sqe3f] {
        overflow: hidden;
        color: var(--mh-text-secondary);
        font-size: 11px;
        text-align: start;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.cl-facts[b-2o472sqe3f] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px var(--mh-space-16);
    font-size: 13px;
}

    .cl-facts > span[b-2o472sqe3f] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .cl-facts .mh-icon[b-2o472sqe3f] {
        color: var(--mh-text-secondary);
    }

.cl-card-foot[b-2o472sqe3f] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: var(--mh-space-8);
    border-top: 1px solid var(--mh-border);
}

.cl-chip-client[b-2o472sqe3f] {
    background: var(--mh-wash);
    color: var(--mh-primary);
}

.cl-chip-opponent[b-2o472sqe3f] {
    background: var(--mh-sand-wash);
    color: var(--mh-ink);
}

.cl-active[b-2o472sqe3f] {
    margin-inline-start: auto;
    color: var(--case-active, var(--mh-success));
    font-size: 12px;
    font-weight: 700;
}

.cl-head-actions[b-2o472sqe3f] { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* /Components/Pages/Clients/DuplicatesPage.razor.rz.scp.css */
/* الأطراف المكررة — one card per group of likely duplicates; the row kept is highlighted, the rows merged are dimmed. */
.dp-head-actions[b-a1o0ut04b2] { display: flex; gap: 8px; align-items: center; }
.dp-search[b-a1o0ut04b2] { min-width: 240px; }

.dp-note[b-a1o0ut04b2] {
    margin-bottom: var(--mh-space-16);
    font-size: 13px;
}

.dp-list[b-a1o0ut04b2] {
    display: grid;
    gap: var(--mh-space-12);
}

.dp-group[b-a1o0ut04b2] { padding: 0; overflow: hidden; }

.dp-group-head[b-a1o0ut04b2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mh-border);
}

    .dp-group-head > div[b-a1o0ut04b2] { display: flex; flex-direction: column; min-width: 0; }
    .dp-group-head strong[b-a1o0ut04b2] { font-size: 15px; }

.dp-reason[b-a1o0ut04b2] { font-size: 12px; color: var(--mh-text-secondary); }

.dp-table[b-a1o0ut04b2] { margin: 0; }
.dp-table td[b-a1o0ut04b2], .dp-table th[b-a1o0ut04b2] { vertical-align: middle; }
.dp-col-keep[b-a1o0ut04b2], .dp-col-merge[b-a1o0ut04b2] { width: 64px; text-align: center; }
.dp-col-num[b-a1o0ut04b2] { width: 90px; }
.dp-table input[b-a1o0ut04b2] { width: 16px; height: 16px; accent-color: var(--mh-primary); cursor: pointer; }
.dp-table tr.is-keep td[b-a1o0ut04b2] { background: var(--mh-wash); }
.dp-table tr.is-merge td[b-a1o0ut04b2] { color: var(--mh-text-secondary); }

.dp-keep-chip[b-a1o0ut04b2] {
    margin-inline-start: 6px;
    background: var(--mh-primary);
    color: #fff;
    font-size: 11px;
}

.dp-more[b-a1o0ut04b2] { justify-self: center; }

@media (max-width: 767.98px) {
    .dp-search[b-a1o0ut04b2] { min-width: 0; width: 100%; }
    .dp-head-actions[b-a1o0ut04b2] { width: 100%; }
    .dp-table th:nth-child(4)[b-a1o0ut04b2], .dp-table td:nth-child(4)[b-a1o0ut04b2], .dp-table th:nth-child(7)[b-a1o0ut04b2], .dp-table td:nth-child(7)[b-a1o0ut04b2] { display: none; }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* لوحة التحكم — calm and flat: one navy header, one agenda card, a slim office column.
   Few lines: cards have no inner borders, rows are separated by space and a soft hover.
   Desktop (≥ 992 × 600): the page is exactly the window height; only the lists scroll. */

.dash[b-evthi30mrr] {
    display: flex;
    flex-direction: column;
    gap: var(--mh-space-16);
}

/* ---------- Header: my day ---------- */
.dash-hero[b-evthi30mrr] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mh-space-24);
    padding: 20px 24px;
    border-radius: var(--mh-radius);
    background: var(--mh-primary);
    color: #fff;
}

.dash-hello[b-evthi30mrr] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .dash-hello h1[b-evthi30mrr] {
        margin: 0;
        font-size: 22px;
        line-height: 1.35;
        color: #fff;
    }

.dash-date[b-evthi30mrr] {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .65);
}

.dash-today[b-evthi30mrr] {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
}

.dash-figures[b-evthi30mrr] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    flex-shrink: 0;
}

.dash-figure[b-evthi30mrr] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 118px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--mh-radius);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-align: start;
    transition: background-color 150ms ease, border-color 150ms ease;
}

    .dash-figure:hover[b-evthi30mrr] {
        border-color: rgba(255, 255, 255, .24);
        background: rgba(255, 255, 255, .12);
    }

    .dash-figure:focus-visible[b-evthi30mrr] {
        outline: none;
        box-shadow: 0 0 0 2px var(--mh-primary), 0 0 0 4px #fff;
    }

    .dash-figure strong[b-evthi30mrr] {
        font-family: var(--mh-font-heading);
        font-size: 24px;
        font-weight: 700;
        line-height: 1.3;
    }

    .dash-figure span[b-evthi30mrr] {
        font-size: 12px;
        color: rgba(255, 255, 255, .72);
        white-space: nowrap;
    }

    .dash-figure.is-attention strong[b-evthi30mrr] { color: var(--mh-brass); }

.dash-hero.is-loading[b-evthi30mrr] { min-height: 104px; }

.dash-skel-line[b-evthi30mrr] {
    display: block;
    height: 14px;
    margin: 6px 0;
    border-radius: var(--mh-radius-sm);
    background: rgba(255, 255, 255, .14);
}

/* ---------- Body ---------- */
.dash-body[b-evthi30mrr] {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, 1fr);
    gap: var(--mh-space-16);
}

.dash-side[b-evthi30mrr] {
    display: flex;
    flex-direction: column;
    gap: var(--mh-space-16);
    min-height: 0;
}

.dash-card[b-evthi30mrr] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-card);
    overflow: hidden;
}

.dash-card-head[b-evthi30mrr] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-12);
    flex-shrink: 0;
    padding: 16px 20px 4px;
}

    .dash-card-head h2[b-evthi30mrr] {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        color: var(--mh-primary);
        white-space: nowrap;
    }

.dash-hint[b-evthi30mrr] {
    margin-inline-start: auto;
    font-size: 12px;
    color: var(--mh-text-secondary);
}

.dash-card-body[b-evthi30mrr] {
    flex: 1;
    min-height: 0;
    padding: 8px 20px 16px;
}

.dash-scroll[b-evthi30mrr] {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--mh-scroll-thumb) transparent;   /* light grey (standard props switch off the ::-webkit-scrollbar style) */
}

.dash-skel[b-evthi30mrr] {
    display: block;
    height: 40px;
    margin: 12px 0;
}

/* Tabs (agenda) and the small switch (cases): soft pills */
.dash-tabs[b-evthi30mrr], .dash-switch[b-evthi30mrr] {
    display: flex;
    gap: 2px;
    margin-inline-start: auto;
    padding: 3px;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-canvas);
}

    .dash-tabs button[b-evthi30mrr], .dash-switch button[b-evthi30mrr] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 14px;
        border: 0;
        border-radius: var(--mh-radius-pill);
        background: transparent;
        color: var(--mh-text-secondary);
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        transition: background-color 150ms ease, color 150ms ease;
    }

        .dash-tabs button:hover[b-evthi30mrr], .dash-switch button:hover[b-evthi30mrr] { color: var(--mh-primary); }

        .dash-tabs button.active[b-evthi30mrr], .dash-switch button.active[b-evthi30mrr] {
            background: var(--mh-surface);
            color: var(--mh-primary);
            font-weight: 700;
            box-shadow: var(--mh-shadow-card);
        }

        .dash-tabs button:focus-visible[b-evthi30mrr], .dash-switch button:focus-visible[b-evthi30mrr] {
            outline: none;
            box-shadow: var(--mh-focus-ring);
        }

    .dash-tabs .mh-num[b-evthi30mrr] {
        min-width: 20px;
        padding: 0 6px;
        border-radius: var(--mh-radius-pill);
        background: var(--mh-border);
        font-size: 11px;
        line-height: 18px;
        text-align: center;
        color: var(--mh-ink);
    }

    .dash-tabs .active .mh-num[b-evthi30mrr] { background: var(--mh-wash); color: var(--mh-primary); }
    .dash-tabs .mh-num.is-attention[b-evthi30mrr] { background: var(--mh-brass-wash); color: #6B5410; }

    .dash-switch button[b-evthi30mrr] { padding: 4px 12px; font-size: 12.5px; }

/* ---------- Agenda ---------- */
.ag-day[b-evthi30mrr] {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 4px 6px;
    background: var(--mh-surface);
}

.ag-day-name[b-evthi30mrr] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mh-ink);
}

.ag-day.is-today .ag-day-name[b-evthi30mrr] { color: var(--mh-primary); }

    .ag-day.is-today .ag-day-name[b-evthi30mrr]::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--mh-brass);
    }

.ag-day-date[b-evthi30mrr] {
    font-size: 12px;
    color: var(--mh-text-secondary);
}

.ag-list[b-evthi30mrr] {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .ag-list li + li[b-evthi30mrr] { margin-top: 2px; }

.ag-row[b-evthi30mrr] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-12);
    padding: 10px 12px;
    border-radius: var(--mh-radius);
    color: inherit;
    text-decoration: none;
    transition: background-color 150ms ease;
}

    .ag-row:hover[b-evthi30mrr] {
        background: var(--mh-canvas);
        color: inherit;
    }

    .ag-row:focus-visible[b-evthi30mrr] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

.ag-icon[b-evthi30mrr] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mh-canvas);
    color: var(--mh-text-secondary);
}

    .ag-icon.is-hearing[b-evthi30mrr], .ag-icon.is-case[b-evthi30mrr] { background: var(--mh-wash); color: var(--mh-primary); }

.ag-row.is-today .ag-icon.is-hearing[b-evthi30mrr] { background: var(--mh-primary); color: #fff; }
.ag-row.is-missing .ag-icon[b-evthi30mrr] { background: var(--mh-brass-wash); color: #6B5410; }
.ag-row.is-overdue .ag-icon[b-evthi30mrr] { background: var(--mh-danger-wash); color: var(--mh-danger); }

.ag-main[b-evthi30mrr] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.5;
}

    .ag-main strong[b-evthi30mrr], .ag-main small[b-evthi30mrr] {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ag-main strong[b-evthi30mrr] {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--mh-ink);
    }

        .ag-main strong i[b-evthi30mrr] {
            font-style: normal;
            font-weight: 400;
            color: var(--mh-text-secondary);
        }

    .ag-main small[b-evthi30mrr] {
        font-size: 12px;
        color: var(--mh-text-secondary);
    }

.ag-meta[b-evthi30mrr] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    font-size: 11.5px;
    color: var(--mh-text-secondary);
    white-space: nowrap;
}

.ag-kind[b-evthi30mrr] {
    padding: 1px 10px;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-canvas);
    font-weight: 600;
    color: var(--mh-text-secondary);
}

.ag-row:hover .ag-kind[b-evthi30mrr] { background: var(--mh-surface); }
.ag-icon.is-hearing ~ .ag-meta .ag-kind[b-evthi30mrr] { background: var(--mh-wash); color: var(--mh-primary); }
.ag-late[b-evthi30mrr] { font-size: 11.5px; font-weight: 700; }
.ag-row.is-missing .ag-late[b-evthi30mrr] { color: #6B5410; }
.ag-row.is-overdue .ag-late[b-evthi30mrr] { color: var(--mh-danger); }

.dash-foot-link[b-evthi30mrr] {
    display: block;
    margin-top: 12px;
    padding: 8px;
    border-radius: var(--mh-radius);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

    .dash-foot-link:hover[b-evthi30mrr] { background: var(--mh-wash); }

.dash-empty[b-evthi30mrr] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 100%;
    padding: 32px 16px;
    text-align: center;
}

    .dash-empty .mh-icon[b-evthi30mrr] {
        width: 32px;
        height: 32px;
        margin-bottom: 4px;
        color: var(--mh-light-blue);
    }

    .dash-empty strong[b-evthi30mrr] { font-size: 14px; color: var(--mh-ink); }
    .dash-empty p[b-evthi30mrr] { margin: 0; font-size: 13px; color: var(--mh-text-secondary); }

/* ---------- Office this week ---------- */
.dash-stats[b-evthi30mrr] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

    .dash-stats a[b-evthi30mrr] {
        display: flex;
        flex-direction: column;
        padding: 10px 4px;
        color: inherit;
        text-decoration: none;
    }

        .dash-stats a:nth-child(even)[b-evthi30mrr] { padding-inline-start: 16px; border-inline-start: 1px solid var(--mh-border); }
        .dash-stats a:nth-child(n+3)[b-evthi30mrr] { border-top: 1px solid var(--mh-border); }

        .dash-stats a:hover strong[b-evthi30mrr] { text-decoration: underline; }

        .dash-stats a:focus-visible[b-evthi30mrr] {
            outline: none;
            border-radius: var(--mh-radius-sm);
            box-shadow: var(--mh-focus-ring);
        }

    .dash-stats strong[b-evthi30mrr] {
        font-family: var(--mh-font-heading);
        font-size: 22px;
        font-weight: 700;
        line-height: 1.3;
        color: var(--mh-primary);
    }

    .dash-stats span[b-evthi30mrr] {
        font-size: 12px;
        color: var(--mh-text-secondary);
    }

    .dash-stats a.is-attention strong[b-evthi30mrr] { color: #6B5410; }
    .dash-stats a.is-danger strong[b-evthi30mrr] { color: var(--mh-danger); }

.dash-strip-head[b-evthi30mrr] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 14px 0 8px;
    font-size: 12px;
    color: var(--mh-text-secondary);
}

    .dash-strip-head a[b-evthi30mrr] {
        font-weight: 600;
        text-decoration: none;
    }

/* 14 day columns: a soft track with the count filled from the bottom */
.dash-strip[b-evthi30mrr] {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .dash-strip li[b-evthi30mrr] {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        outline: none;
    }

.dash-strip-bar[b-evthi30mrr] {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 44px;
    overflow: hidden;
    border-radius: var(--mh-radius-sm);
    background: var(--mh-canvas);
}

    .dash-strip-bar span[b-evthi30mrr] {
        display: block;
        width: 100%;
        border-radius: var(--mh-radius-sm) var(--mh-radius-sm) 0 0;
        background: var(--mh-light-blue);
    }

.dash-strip li.is-today .dash-strip-bar span[b-evthi30mrr] { background: var(--mh-primary); }
.dash-strip li:hover .dash-strip-bar[b-evthi30mrr], .dash-strip li:focus-visible .dash-strip-bar[b-evthi30mrr] { box-shadow: 0 0 0 2px var(--mh-mid-blue); }

.dash-strip-day[b-evthi30mrr] {
    font-size: 10.5px;
    color: var(--mh-text-secondary);
}

.dash-strip li.is-today .dash-strip-day[b-evthi30mrr] {
    font-weight: 700;
    color: var(--mh-primary);
}

.dash-tip[b-evthi30mrr] {
    position: absolute;
    bottom: calc(100% + 6px);
    inset-inline-start: 50%;
    z-index: 5;
    display: none;
    padding: 5px 10px;
    border-radius: var(--mh-radius-sm);
    background: var(--mh-ink);
    font-size: 11.5px;
    color: #fff;
    transform: translateX(50%);
    white-space: nowrap;
    pointer-events: none;
}

.dash-strip li:hover .dash-tip[b-evthi30mrr], .dash-strip li:focus-visible .dash-tip[b-evthi30mrr] { display: block; }

/* Keep the tips of the first / last days inside the card */
.dash-strip li:nth-child(-n+3) .dash-tip[b-evthi30mrr] { inset-inline-start: 0; transform: none; }
.dash-strip li:nth-last-child(-n+3) .dash-tip[b-evthi30mrr] { inset-inline-start: auto; inset-inline-end: 0; transform: none; }

/* The strip's tooltips must not be clipped by the card */
.dash-side > .dash-card:first-child[b-evthi30mrr] { overflow: visible; }

/* ---------- Cases ---------- */
.dash-grow[b-evthi30mrr] { flex: 1; }

.dash-total[b-evthi30mrr] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 2px 0 12px;
    color: inherit;
    text-decoration: none;
}

    .dash-total strong[b-evthi30mrr] {
        font-family: var(--mh-font-heading);
        font-size: 26px;
        font-weight: 700;
        line-height: 1.3;
        color: var(--mh-primary);
    }

    .dash-total span[b-evthi30mrr] {
        font-size: 12.5px;
        color: var(--mh-text-secondary);
    }

    .dash-total:hover strong[b-evthi30mrr] { text-decoration: underline; }

.dash-meter[b-evthi30mrr] {
    display: flex;
    gap: 2px;
    height: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: var(--mh-radius-pill);
}

    .dash-meter span[b-evthi30mrr] {
        min-width: 4px;
        background: var(--case-color, #B9C3CB);
    }

        .dash-meter span.is-other[b-evthi30mrr] { background: #B9C3CB; }

.dash-rows[b-evthi30mrr] {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .dash-rows a[b-evthi30mrr] {
        display: grid;
        grid-template-columns: 10px minmax(0, 1fr) auto 40px;
        align-items: center;
        gap: 10px;
        padding: 8px 4px;
        border-radius: var(--mh-radius-sm);
        font-size: 13px;
        color: var(--mh-ink);
        text-decoration: none;
    }

        .dash-rows a:hover[b-evthi30mrr] { background: var(--mh-canvas); }

    .dash-rows li + li a[b-evthi30mrr] { border-top: 1px solid var(--mh-canvas); }

    .dash-rows i[b-evthi30mrr] {
        width: 10px;
        height: 10px;
        border-radius: 3px;
        background: var(--case-color, #B9C3CB);
    }

        .dash-rows i.is-other[b-evthi30mrr] { background: #B9C3CB; }

    .dash-rows span[b-evthi30mrr] { color: var(--mh-text-secondary); }
    .dash-rows strong[b-evthi30mrr] { font-weight: 700; }
    .dash-rows small[b-evthi30mrr] { font-size: 12px; color: var(--mh-text-secondary); text-align: end; }

.dash-bars[b-evthi30mrr] {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .dash-bars li[b-evthi30mrr] {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 10px;
        height: 30px;
        font-size: 12.5px;
    }

.dash-bars-label[b-evthi30mrr] {
    overflow: hidden;
    color: var(--mh-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-bars-track[b-evthi30mrr] {
    height: 8px;
    overflow: hidden;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-canvas);
}

    .dash-bars-track span[b-evthi30mrr] {
        display: block;
        height: 100%;
        border-radius: var(--mh-radius-pill);
        background: var(--mh-chart-2);
    }

.dash-bars strong[b-evthi30mrr] {
    font-weight: 700;
    color: var(--mh-ink);
    text-align: end;
}

/* ---------- Desktop: fit the window ---------- */
@media (min-width: 992px) and (min-height: 600px) {
    .dash[b-evthi30mrr] {
        height: calc(100dvh - var(--mh-topbar-height) - 2 * var(--mh-page-padding));
    }

    .dash-hero[b-evthi30mrr] { flex-shrink: 0; }

    .dash-body[b-evthi30mrr] {
        flex: 1;
        min-height: 0;
    }

        .dash-body > .dash-card[b-evthi30mrr] { min-height: 0; }
}

/* Short windows: a tighter header */
@media (min-width: 992px) and (max-height: 760px) {
    .dash[b-evthi30mrr], .dash-body[b-evthi30mrr], .dash-side[b-evthi30mrr] { gap: var(--mh-space-12); }
    .dash-hero[b-evthi30mrr] { padding: 14px 20px; }
    .dash-hello h1[b-evthi30mrr] { font-size: 19px; }
    .dash-today[b-evthi30mrr] { margin-top: 4px; font-size: 13px; }
    .dash-figure[b-evthi30mrr] { padding: 6px 12px; }
    .dash-figure strong[b-evthi30mrr] { font-size: 20px; }
    .dash-card-head[b-evthi30mrr] { padding-top: 12px; }
    .ag-row[b-evthi30mrr] { padding-block: 7px; }
    .dash-stats a[b-evthi30mrr] { padding-block: 6px; }
    .dash-stats strong[b-evthi30mrr] { font-size: 19px; }
}

/* Narrower desktops: figures under the greeting */
@media (max-width: 1279.98px) {
    .dash-hero[b-evthi30mrr] {
        flex-direction: column;
        align-items: stretch;
        gap: var(--mh-space-12);
    }

    .dash-figure[b-evthi30mrr] { min-width: 0; }
}

@media (max-width: 1279.98px) and (min-width: 992px) and (max-height: 760px) {
    .dash-today[b-evthi30mrr] { display: none; }
}

/* Tablets: one column, normal scroll */
@media (max-width: 991.98px) {
    .dash-body[b-evthi30mrr] { grid-template-columns: minmax(0, 1fr); }
    .dash-agenda .dash-card-body[b-evthi30mrr] { max-height: 480px; }
    .dash-grow .dash-card-body[b-evthi30mrr] { max-height: none; }
}

/* Phones */
@media (max-width: 767.98px) {
    .dash-hero[b-evthi30mrr] { padding: 16px; }
    .dash-hello h1[b-evthi30mrr] { font-size: 19px; }

    .dash-figures[b-evthi30mrr] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .dash-figure span[b-evthi30mrr] { white-space: normal; }

    .dash-card-head[b-evthi30mrr] {
        flex-wrap: wrap;
        padding: 14px 16px 4px;
    }

    .dash-tabs[b-evthi30mrr] {
        width: 100%;
        margin-inline-start: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

        .dash-tabs button[b-evthi30mrr] { flex: 1; justify-content: center; padding-inline: 10px; }

    .dash-card-body[b-evthi30mrr] { padding: 8px 12px 14px; }
    .ag-row[b-evthi30mrr] { padding: 10px 8px; }
    .dash-agenda .dash-card-body[b-evthi30mrr] { max-height: 440px; }
    .dash-strip[b-evthi30mrr] { gap: 2px; }
}

/* ---------- Entrance: a light, staggered fade-and-rise ----------
   Cards rise 8px and fade in one after another; the header figures, agenda rows and chart bars follow.
   Switching an agenda tab re-plays the rows (the list is keyed by tab). Off for reduced motion. */
@keyframes dash-rise-b-evthi30mrr {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes dash-fade-b-evthi30mrr {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

@keyframes dash-grow-up-b-evthi30mrr {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes dash-grow-side-b-evthi30mrr {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.dash-hero[b-evthi30mrr], .dash-agenda[b-evthi30mrr], .dash-side > .dash-card[b-evthi30mrr] {
    animation: dash-rise-b-evthi30mrr 480ms cubic-bezier(.2, .7, .2, 1) both;
}

.dash-agenda[b-evthi30mrr] { animation-delay: 90ms; }
.dash-side > .dash-card:nth-child(1)[b-evthi30mrr] { animation-delay: 160ms; }
.dash-side > .dash-card:nth-child(2)[b-evthi30mrr] { animation-delay: 230ms; }

.dash-hello[b-evthi30mrr], .dash-figure[b-evthi30mrr] {
    animation: dash-fade-b-evthi30mrr 420ms ease-out both;
}

.dash-figure:nth-child(1)[b-evthi30mrr] { animation-delay: 120ms; }
.dash-figure:nth-child(2)[b-evthi30mrr] { animation-delay: 170ms; }
.dash-figure:nth-child(3)[b-evthi30mrr] { animation-delay: 220ms; }
.dash-figure:nth-child(4)[b-evthi30mrr] { animation-delay: 270ms; }

/* Agenda rows: the first few in turn, the rest together */
.dash-scroll > .ag-day[b-evthi30mrr], .dash-scroll > .ag-list > li[b-evthi30mrr], .dash-empty[b-evthi30mrr], .dash-foot-link[b-evthi30mrr] {
    animation: dash-fade-b-evthi30mrr 320ms ease-out both;
    animation-delay: 180ms;
}

.ag-list > li:nth-child(1)[b-evthi30mrr] { animation-delay: 200ms; }
.ag-list > li:nth-child(2)[b-evthi30mrr] { animation-delay: 240ms; }
.ag-list > li:nth-child(3)[b-evthi30mrr] { animation-delay: 280ms; }
.ag-list > li:nth-child(4)[b-evthi30mrr] { animation-delay: 320ms; }
.ag-list > li:nth-child(5)[b-evthi30mrr] { animation-delay: 360ms; }
.ag-list > li:nth-child(n+6)[b-evthi30mrr] { animation-delay: 400ms; }

/* Charts grow from their baseline (bars: bottom; meters: the start side, right in RTL) */
.dash-strip-bar span[b-evthi30mrr] {
    transform-origin: bottom;
    animation: dash-grow-up-b-evthi30mrr 560ms cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: 360ms;
}

.dash-strip li:nth-child(2n) .dash-strip-bar span[b-evthi30mrr] { animation-delay: 400ms; }
.dash-strip li:nth-child(3n) .dash-strip-bar span[b-evthi30mrr] { animation-delay: 440ms; }

.dash-meter span[b-evthi30mrr], .dash-bars-track span[b-evthi30mrr] {
    transform-origin: right;
    animation: dash-grow-side-b-evthi30mrr 620ms cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: 420ms;
}

.dash-rows li[b-evthi30mrr], .dash-bars li[b-evthi30mrr], .dash-stats a[b-evthi30mrr], .dash-total[b-evthi30mrr] {
    animation: dash-fade-b-evthi30mrr 360ms ease-out both;
    animation-delay: 300ms;
}

/* Smooth hover lift on the clickable figures and rows */
.dash-figure[b-evthi30mrr], .ag-row[b-evthi30mrr], .dash-rows a[b-evthi30mrr] {
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

    .dash-figure:hover[b-evthi30mrr] { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
    .dash *[b-evthi30mrr], .dash *[b-evthi30mrr]::before, .dash *[b-evthi30mrr]::after, .dash-hero[b-evthi30mrr], .dash-card[b-evthi30mrr] {
        animation: none !important;
        transition: none !important;
    }

    .dash-figure:hover[b-evthi30mrr] { transform: none; }
}

/* "عرض" — whose agenda (أعمالي · كل المحامين · a lawyer): a quiet pill in the navy header */
.dash-scope[b-evthi30mrr] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 10px;
    padding: 0 6px 0 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--mh-radius-pill);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background-color 150ms ease, border-color 150ms ease;
}

[dir="rtl"] .dash-scope[b-evthi30mrr], .dash-scope[b-evthi30mrr] { padding-inline: 12px 6px; }

    .dash-scope:hover[b-evthi30mrr] { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); }
    .dash-scope:focus-within[b-evthi30mrr] { box-shadow: 0 0 0 2px var(--mh-primary), 0 0 0 4px #fff; }

    .dash-scope select[b-evthi30mrr] {
        height: 32px;
        padding-inline: 2px 22px;
        border: 0;
        background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 2px center / 14px;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        appearance: none;
        cursor: pointer;
    }

        .dash-scope select:focus[b-evthi30mrr] { outline: none; }
        .dash-scope select option[b-evthi30mrr] { color: var(--mh-ink); background: var(--mh-surface); }

/* All-lawyers view: whose item it is, beside the kind label */
.ag-who[b-evthi30mrr] {
    display: inline-flex;
    flex-shrink: 0;
}
/* /Components/Pages/Reports/ReportsPage.razor.rz.scp.css */
/* التقارير وتحليل الأداء. Desktop (≥ 992 × 680): the page is the window height — header, one filter row,
   tabs, and the active view as a grid of cards; long lists scroll inside their card. Charts: app.css 13f.
   Print: every view, one after another, A4 landscape, with the office heading. */

.rp[b-zms7v6w6ic] {
    display: flex;
    flex-direction: column;
    gap: var(--mh-space-12);
}

.rp-head[b-zms7v6w6ic] { margin-bottom: 0; }

.rp-head-actions[b-zms7v6w6ic] {
    display: flex;
    gap: 8px;
}

/* ---------- Filters ---------- */
.rp-filters[b-zms7v6w6ic] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rp-periods button[b-zms7v6w6ic] { white-space: nowrap; }

.rp-select[b-zms7v6w6ic] {
    width: auto;
    min-width: 150px;
}

.rp-loading[b-zms7v6w6ic] {
    font-size: 12.5px;
    color: var(--mh-text-secondary);
}

.rp-tabs[b-zms7v6w6ic] { margin: 0; }

    .rp-tabs .mh-tab[b-zms7v6w6ic] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.rp-skeleton[b-zms7v6w6ic] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

    .rp-skeleton .mh-skeleton[b-zms7v6w6ic] { height: 120px; }

/* ---------- Panels ---------- */
.rp-panel[b-zms7v6w6ic] { display: none; }

    .rp-panel.is-active[b-zms7v6w6ic] {
        display: grid;
        gap: var(--mh-space-12);
        animation: rp-in-b-zms7v6w6ic 320ms ease-out both;
    }

@keyframes rp-in-b-zms7v6w6ic {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.rp-card[b-zms7v6w6ic] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-card);
    overflow: hidden;
}

.rp-card-head[b-zms7v6w6ic] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-shrink: 0;
    padding: 14px 18px 4px;
}

    .rp-card-head h3[b-zms7v6w6ic] {
        margin: 0;
        font-size: 14.5px;
        font-weight: 700;
        color: var(--mh-primary);
    }

.rp-hint[b-zms7v6w6ic] {
    margin-inline-start: auto;
    font-size: 12px;
    color: var(--mh-text-secondary);
}

.rp-link[b-zms7v6w6ic] {
    margin-inline-start: auto;
    padding: 2px 8px;
    border: 0;
    border-radius: var(--mh-radius-sm);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--mh-primary);
}

    .rp-link:hover[b-zms7v6w6ic] { background: var(--mh-wash); }
    .rp-link:focus-visible[b-zms7v6w6ic] { outline: none; box-shadow: var(--mh-focus-ring); }

.rp-card-body[b-zms7v6w6ic] {
    flex: 1;
    min-height: 0;
    padding: 8px 18px 14px;
}

.rp-scroll[b-zms7v6w6ic] {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mh-scroll-thumb) transparent;   /* light grey (standard props switch off the ::-webkit-scrollbar style) */
}

.rp-chart[b-zms7v6w6ic] {
    display: flex;
    flex-direction: column;
}

.rp-card-foot[b-zms7v6w6ic] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 18px 12px;
    font-size: 11.5px;
    color: var(--mh-text-secondary);
}

.rp-key[b-zms7v6w6ic] {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--mh-light-blue);
}

    .rp-key.is-highlight[b-zms7v6w6ic] { background: var(--mh-chart-2); }
    .rp-key + .rp-key[b-zms7v6w6ic], .rp-key:not(:first-child)[b-zms7v6w6ic] { margin-inline-start: 10px; }

.rp-note[b-zms7v6w6ic] {
    margin: 10px 2px 0;
    font-size: 12px;
    color: var(--mh-text-secondary);
}

/* ---------- Overview ---------- */
.rp-tiles[b-zms7v6w6ic] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--mh-space-12);
}

.rp-tile[b-zms7v6w6ic] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 12px 14px 10px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-card);
    animation: rp-in-b-zms7v6w6ic 360ms ease-out both;
}

    .rp-tile:nth-child(2)[b-zms7v6w6ic] { animation-delay: 40ms; }
    .rp-tile:nth-child(3)[b-zms7v6w6ic] { animation-delay: 80ms; }
    .rp-tile:nth-child(4)[b-zms7v6w6ic] { animation-delay: 120ms; }
    .rp-tile:nth-child(5)[b-zms7v6w6ic] { animation-delay: 160ms; }
    .rp-tile:nth-child(6)[b-zms7v6w6ic] { animation-delay: 200ms; }

    .rp-tile header[b-zms7v6w6ic] {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.rp-tile-icon[b-zms7v6w6ic] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mh-wash);
    color: var(--mh-primary);
}

.rp-tile-label[b-zms7v6w6ic] {
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mh-text-secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rp-tile-value[b-zms7v6w6ic] {
    margin-top: 4px;
    font-family: var(--mh-font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--mh-ink);
}

.rp-tile-foot[b-zms7v6w6ic] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-height: 20px;
}

.rp-tile-sub[b-zms7v6w6ic] {
    overflow: hidden;
    font-size: 11px;
    color: var(--mh-text-secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rp-tile[b-zms7v6w6ic]  .ch-spark { margin-top: 6px; }

.rp-delta[b-zms7v6w6ic] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 7px;
    border-radius: var(--mh-radius-pill);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}

    .rp-delta.is-up[b-zms7v6w6ic] { background: var(--mh-success-wash); color: var(--mh-success); }
    .rp-delta.is-down[b-zms7v6w6ic] { background: var(--mh-danger-wash); color: var(--mh-danger); }
    .rp-delta.is-flat[b-zms7v6w6ic] { background: var(--mh-stone-wash); color: var(--mh-text-secondary); }

.rp-overview-main[b-zms7v6w6ic] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: var(--mh-space-12);
    min-height: 0;
}

.rp-summary[b-zms7v6w6ic] {
    padding: 16px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mh-scroll-thumb) transparent;   /* light grey (standard props switch off the ::-webkit-scrollbar style) */
}

    .rp-summary > *[b-zms7v6w6ic] { flex-shrink: 0; }   /* the status bar (overflow: hidden) must not shrink to 0 */

.rp-hero[b-zms7v6w6ic] {
    display: flex;
    flex-direction: column;
}

.rp-hero-label[b-zms7v6w6ic] { font-size: 12.5px; font-weight: 600; color: var(--mh-text-secondary); }

.rp-hero-value[b-zms7v6w6ic] {
    font-family: var(--mh-font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mh-primary);
}

.rp-hero-sub[b-zms7v6w6ic] { font-size: 12px; color: var(--mh-text-secondary); }

.rp-meter[b-zms7v6w6ic] {
    display: flex;
    gap: 2px;
    height: 10px;
    margin: 12px 0 8px;
    overflow: hidden;
    border-radius: var(--mh-radius-pill);
}

    .rp-meter span[b-zms7v6w6ic] { min-width: 4px; background: var(--case-color, #B9C3CB); }
    .rp-meter span.is-other[b-zms7v6w6ic] { background: #B9C3CB; }

.rp-legend[b-zms7v6w6ic] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--mh-text-secondary);
}

    .rp-legend li[b-zms7v6w6ic] { display: inline-flex; align-items: center; gap: 5px; }
    .rp-legend i[b-zms7v6w6ic] { width: 10px; height: 10px; border-radius: 3px; background: var(--case-color, #B9C3CB); }
    .rp-legend i.is-other[b-zms7v6w6ic] { background: #B9C3CB; }
    .rp-legend strong[b-zms7v6w6ic] { color: var(--mh-ink); }

.rp-insights-title[b-zms7v6w6ic] {
    margin: 16px 0 6px;
    padding-top: 12px;
    border-top: 1px solid var(--mh-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--mh-primary);
}

.rp-insights[b-zms7v6w6ic] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .rp-insights li[b-zms7v6w6ic] {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 12.5px;
        line-height: 1.6;
        color: var(--mh-ink);
    }

        .rp-insights li > .mh-icon[b-zms7v6w6ic] {
            flex-shrink: 0;
            margin-top: 3px;
            color: var(--mh-mid-blue);
        }

        .rp-insights li.is-good > .mh-icon[b-zms7v6w6ic] { color: var(--mh-success); }
        .rp-insights li.is-bad > .mh-icon[b-zms7v6w6ic] { color: var(--mh-danger); }

/* ---------- Team ---------- */

.rp-table[b-zms7v6w6ic] {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .rp-table th[b-zms7v6w6ic], .rp-table td[b-zms7v6w6ic] {
        padding: 9px 10px;
        border-bottom: 1px solid #EEF1F3;
        text-align: start;
        white-space: nowrap;
    }

    .rp-table thead th[b-zms7v6w6ic] {
        position: sticky;
        top: 0;
        z-index: 1;
        background: var(--mh-table-header);
        font-size: 12px;
        font-weight: 700;
        color: var(--mh-text-secondary);
    }

    .rp-table tbody th[b-zms7v6w6ic] { font-weight: 600; }
    .rp-table tbody tr:hover[b-zms7v6w6ic] { background: var(--mh-canvas); }
    .rp-table tfoot th[b-zms7v6w6ic], .rp-table tfoot td[b-zms7v6w6ic] { border-top: 1px solid var(--mh-border); background: var(--mh-canvas); font-weight: 700; }
    .rp-table .rp-wide[b-zms7v6w6ic] { min-width: 170px; }
    .rp-table td.is-warn[b-zms7v6w6ic] { color: #6B5410; font-weight: 700; }
    .rp-table td.is-bad[b-zms7v6w6ic] { color: var(--mh-danger); font-weight: 700; }

.rp-who[b-zms7v6w6ic] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rp-inline-bar[b-zms7v6w6ic] {
    display: inline-block;
    width: 90px;
    height: 8px;
    margin-inline-end: 8px;
    overflow: hidden;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-canvas);
    vertical-align: middle;
}

    .rp-inline-bar span[b-zms7v6w6ic] {
        display: block;
        height: 100%;
        border-radius: var(--mh-radius-pill);
        background: var(--mh-chart-2);
    }

.rp-rate[b-zms7v6w6ic] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rp-rate-track[b-zms7v6w6ic] {
    display: inline-block;
    width: 70px;
    height: 8px;
    overflow: hidden;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-canvas);
}

    .rp-rate-track span[b-zms7v6w6ic] { display: block; height: 100%; border-radius: var(--mh-radius-pill); }

.is-good[b-zms7v6w6ic] { --rp-tone: var(--mh-success); --rp-wash: var(--mh-success-wash); }
.is-warn[b-zms7v6w6ic] { --rp-tone: #A86B00; --rp-wash: var(--mh-brass-wash); }
.is-bad[b-zms7v6w6ic] { --rp-tone: var(--mh-danger); --rp-wash: var(--mh-danger-wash); }

.rp-rate-track span[b-zms7v6w6ic], .rp-bullet-fill[b-zms7v6w6ic] { background: var(--rp-tone, var(--mh-chart-2)); }

.rp-status[b-zms7v6w6ic] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    border-radius: var(--mh-radius-pill);
    background: var(--rp-wash, var(--mh-wash));
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    color: var(--rp-tone, var(--mh-primary));
}

.rp-grid-2[b-zms7v6w6ic] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mh-space-12);
    min-height: 0;
}

/* ---------- Portfolio & hearings: 2 × 2 ---------- */
.rp-grid-4[b-zms7v6w6ic] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: var(--mh-space-12);
    min-height: 0;
}

.rp-callout[b-zms7v6w6ic] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: var(--mh-radius);
    background: var(--mh-wash);
    font-size: 12.5px;
    color: var(--mh-ink);
}

    .rp-callout strong[b-zms7v6w6ic] {
        font-family: var(--mh-font-heading);
        font-size: 24px;
        color: var(--mh-primary);
    }

    .rp-callout.is-warn[b-zms7v6w6ic] { background: var(--mh-brass-wash); }
    .rp-callout.is-warn strong[b-zms7v6w6ic] { color: #6B5410; }

.rp-gauge[b-zms7v6w6ic] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.rp-bullet[b-zms7v6w6ic] {
    position: relative;
    height: 12px;
    margin: 12px 0 10px;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-canvas);
}

.rp-bullet-fill[b-zms7v6w6ic] {
    display: block;
    height: 100%;
    border-radius: var(--mh-radius-pill);
    transform-origin: right;
    animation: ch-grow-side 650ms cubic-bezier(.2, .7, .2, 1) both;
}

.rp-bullet-target[b-zms7v6w6ic] {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    border-radius: 1px;
    background: var(--mh-ink);
}

.rp-gauge-text[b-zms7v6w6ic] {
    margin: 0 0 10px;
    font-size: 12.5px;
    color: var(--mh-text-secondary);
}

/* ---------- Desktop: fit the window ---------- */
@media (min-width: 992px) and (min-height: 680px) {
    .rp[b-zms7v6w6ic] {
        height: calc(100dvh - var(--mh-topbar-height) - 2 * var(--mh-page-padding));
    }

    .rp > :not(.rp-panel)[b-zms7v6w6ic] { flex-shrink: 0; }

    .rp-panel.is-active[b-zms7v6w6ic] {
        flex: 1;
        min-height: 0;
    }

    .rp-overview.is-active[b-zms7v6w6ic] { grid-template-rows: auto minmax(0, 1fr); }
    .rp-team.is-active[b-zms7v6w6ic] { grid-template-rows: auto minmax(0, 1fr); }
    .rp-portfolio.is-active[b-zms7v6w6ic], .rp-hearings.is-active[b-zms7v6w6ic] { grid-template-rows: minmax(0, 1fr); }

    .rp-scorecard .rp-card-body[b-zms7v6w6ic] { overflow-y: auto; }
}

@media (max-width: 1399.98px) {
    .rp-tile[b-zms7v6w6ic]  .ch-spark { display: none; }
    .rp-tile[b-zms7v6w6ic] { padding-block: 8px; }
    .rp-tile-value[b-zms7v6w6ic] { font-size: 22px; margin-top: 2px; }
}

@media (max-width: 1199.98px) {
    .rp-tiles[b-zms7v6w6ic] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rp-overview-main[b-zms7v6w6ic] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-summary[b-zms7v6w6ic] { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .rp-grid-2[b-zms7v6w6ic], .rp-grid-4[b-zms7v6w6ic], .rp-overview-main[b-zms7v6w6ic] { grid-template-columns: minmax(0, 1fr); }
    .rp-card-body.rp-chart[b-zms7v6w6ic] { min-height: 220px; }
    .rp-scroll[b-zms7v6w6ic] { max-height: 420px; }
}

@media (max-width: 767.98px) {
    .rp-tiles[b-zms7v6w6ic] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-head-actions[b-zms7v6w6ic] { width: 100%; }
    .rp-head-actions .btn[b-zms7v6w6ic] { flex: 1; }
    .rp-periods[b-zms7v6w6ic] { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
    .rp-select[b-zms7v6w6ic] { flex: 1; min-width: 0; }
    .rp-hero-value[b-zms7v6w6ic] { font-size: 32px; }
    .rp-scorecard .rp-card-body[b-zms7v6w6ic] { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-panel.is-active[b-zms7v6w6ic], .rp-tile[b-zms7v6w6ic], .rp-bullet-fill[b-zms7v6w6ic] { animation: none; }
}

/* ---------- Print: the whole report ---------- */
.rp-print-head[b-zms7v6w6ic] { display: none; }

@media print {
    .rp[b-zms7v6w6ic] { height: auto !important; gap: 8px; }

    .rp-print-head[b-zms7v6w6ic] {
        display: flex !important;
        align-items: flex-end;
        justify-content: space-between;
        padding-bottom: 8px;
        border-bottom: 2px solid #1E3A52;
    }

        .rp-print-head h1[b-zms7v6w6ic] { margin: 2px 0; font-size: 18pt; color: #1E3A52; }
        .rp-print-head p[b-zms7v6w6ic] { margin: 0; font-size: 9.5pt; color: #333; }
        .rp-print-head strong[b-zms7v6w6ic] { font-size: 11pt; }
        .rp-print-head small[b-zms7v6w6ic] { font-size: 8.5pt; color: #555; }

    .rp-print-title[b-zms7v6w6ic] {
        display: block !important;
        margin: 8px 0 4px;
        font-size: 12.5pt;
        color: #1E3A52;
        break-after: avoid;          /* a section title never ends a page alone */
    }

    /* The sections follow each other (no forced page per section): the paper is filled, a card that does not fit
       moves to the next page whole. */
    .rp-panel[b-zms7v6w6ic] {
        display: grid !important;
        gap: 6px;
        animation: none !important;
    }

        .rp-panel + .rp-panel[b-zms7v6w6ic] { margin-top: 4px; }

    /* Paper order: نظرة عامة · أداء الفريق + الجلسات والمحاكم (share a page) · المحفظة. The two team bar charts repeat
       the scorecard's numbers, so they are left off the paper. */
    .rp-overview[b-zms7v6w6ic] { order: 1; }
    .rp-team[b-zms7v6w6ic] { order: 2; }
    .rp-hearings[b-zms7v6w6ic] { order: 3; }
    .rp-portfolio[b-zms7v6w6ic] { order: 4; }
    .rp > .rp-print-band:last-child[b-zms7v6w6ic] { order: 5; }
    .rp-team .rp-grid-2[b-zms7v6w6ic] { display: none !important; }

    .rp-tiles[b-zms7v6w6ic] { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
    .rp-tile[b-zms7v6w6ic] { padding: 8px 10px; }
    .rp-overview-main[b-zms7v6w6ic] { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .rp-grid-2[b-zms7v6w6ic] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6px; }
    .rp-grid-4[b-zms7v6w6ic] { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6px; }   /* one row of four */
    .rp-card[b-zms7v6w6ic], .rp-tile[b-zms7v6w6ic] { box-shadow: none !important; break-inside: avoid; animation: none !important; }
    .rp-scroll[b-zms7v6w6ic], .rp-summary[b-zms7v6w6ic], .rp-scorecard .rp-card-body[b-zms7v6w6ic] { max-height: none !important; overflow: visible !important; }
    .rp-scorecard[b-zms7v6w6ic] { max-height: none; }
    .rp-card-body.rp-chart[b-zms7v6w6ic] { height: 150px; flex: none; }
    .rp-card-head[b-zms7v6w6ic] { padding-block: 6px; }
    /* the landscape sheet (~1050px) hits the < 1200px screen rule that puts the summary on its own row; keep it beside the charts */
    .rp-summary[b-zms7v6w6ic] { grid-column: auto !important; gap: 6px; padding: 10px 12px; }
    .rp-hero-value[b-zms7v6w6ic] { font-size: 22pt; }
    .rp-insights[b-zms7v6w6ic] { gap: 3px; }
    .rp-insights li[b-zms7v6w6ic] { font-size: 8.5pt; }
    .rp-meter span[b-zms7v6w6ic], .rp-legend i[b-zms7v6w6ic], .rp-key[b-zms7v6w6ic], .rp-inline-bar span[b-zms7v6w6ic], .rp-rate-track span[b-zms7v6w6ic], .rp-bullet-fill[b-zms7v6w6ic], .rp-delta[b-zms7v6w6ic], .rp-status[b-zms7v6w6ic] {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .rp-tile[b-zms7v6w6ic]  .ch-spark { display: block; }
}

@media print {
    .rp-print-band[b-zms7v6w6ic] { display: block !important; }
}
/* /Components/Pages/Settings/ListsPage.razor.rz.scp.css */
/* القوائم المنسدلة — one tab per list; a table of values with order, use count, shown / hidden. */
.ls-tabs[b-bkbu3bbvyb] { margin-bottom: var(--mh-space-12); }

.ls-list[b-bkbu3bbvyb], .ls-colors[b-bkbu3bbvyb] { padding: 0; overflow: hidden; }

.ls-head[b-bkbu3bbvyb] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mh-border);
}

    .ls-head h2[b-bkbu3bbvyb] { margin: 0; font-size: 16px; }

.ls-add[b-bkbu3bbvyb] { display: flex; gap: 8px; min-width: min(380px, 100%); }
.ls-add input[b-bkbu3bbvyb] { flex: 1; }

.ls-table[b-bkbu3bbvyb] { margin: 0; }
.ls-table td[b-bkbu3bbvyb] { vertical-align: middle; }
.ls-col-order[b-bkbu3bbvyb] { width: 84px; white-space: nowrap; }
.ls-col-num[b-bkbu3bbvyb] { width: 110px; }
.ls-col-state[b-bkbu3bbvyb] { width: 100px; }
.ls-col-actions[b-bkbu3bbvyb] { width: 170px; text-align: end; white-space: nowrap; }
.ls-up .mh-icon[b-bkbu3bbvyb] { transform: rotate(-90deg); }
.ls-down .mh-icon[b-bkbu3bbvyb] { transform: rotate(90deg); }
.ls-table tr.is-hidden td:nth-child(2)[b-bkbu3bbvyb] { color: var(--mh-text-secondary); text-decoration: line-through; }

.ls-on[b-bkbu3bbvyb] { background: var(--mh-success-wash); color: var(--mh-success); }
.ls-off[b-bkbu3bbvyb] { background: var(--mh-stone-wash); color: var(--mh-text-secondary); }

.ls-rename[b-bkbu3bbvyb] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ls-rename input[type=text][b-bkbu3bbvyb] { flex: 1 1 200px; }
.ls-rename-all[b-bkbu3bbvyb] { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mh-text-secondary); }

.ls-hint[b-bkbu3bbvyb] { margin: 0; padding: 10px 16px; font-size: 12.5px; border-top: 1px solid var(--mh-border); }

.ls-colors[b-bkbu3bbvyb] { padding: 16px; }
.ls-color-grid[b-bkbu3bbvyb] { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ls-color[b-bkbu3bbvyb] { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); }
.ls-color input[type=color][b-bkbu3bbvyb] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-sm); background: none; }
.ls-preview[b-bkbu3bbvyb] { flex: 1; }
.ls-actions[b-bkbu3bbvyb] { display: flex; align-items: center; gap: 12px; }

@media (max-width: 767.98px) {
    .ls-col-num[b-bkbu3bbvyb], .ls-col-state[b-bkbu3bbvyb] { display: none; }
    .ls-col-actions[b-bkbu3bbvyb] { width: auto; }
}
/* /Components/Pages/Settings/PrintSettingsPage.razor.rz.scp.css */
/* إعدادات الطباعة: form (sections) + a sticky A4 preview. */

.pr-layout[b-x6p23qu6w2] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: var(--mh-space-16);
}

[b-x6p23qu6w2] .pr-form {
    display: flex;
    flex-direction: column;
    gap: var(--mh-space-12);
    min-width: 0;
}

.pr-section[b-x6p23qu6w2] { padding: 18px 20px; }

    .pr-section h2[b-x6p23qu6w2] {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin: 0 0 12px;
        font-size: 15px;
        font-weight: 700;
        color: var(--mh-primary);
    }

        .pr-section h2 small[b-x6p23qu6w2] { font-size: 12px; font-weight: 400; color: var(--mh-text-secondary); }

.pr-switches[b-x6p23qu6w2] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

/* Logo */
.pr-logo[b-x6p23qu6w2] {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--mh-border);
}

.pr-logo-box[b-x6p23qu6w2] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 110px;
    height: 76px;
    border: 1px dashed var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-canvas);
    color: var(--mh-text-disabled);
}

    .pr-logo-box img[b-x6p23qu6w2] { max-width: 96px; max-height: 64px; object-fit: contain; }
    .pr-logo-box .mh-icon[b-x6p23qu6w2] { width: 34px; height: 34px; }

.pr-logo-text[b-x6p23qu6w2] { display: flex; flex-direction: column; gap: 4px; }
.pr-logo-text small[b-x6p23qu6w2] { font-size: 12px; color: var(--mh-text-secondary); }
.pr-logo-actions[b-x6p23qu6w2] { display: flex; gap: 8px; margin-top: 4px; }
.pr-upload[b-x6p23qu6w2] { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.pr-actions[b-x6p23qu6w2] {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    background: var(--mh-canvas);
}

.pr-dirty[b-x6p23qu6w2] { font-size: 12.5px; font-weight: 600; color: #6B5410; }

/* ---------- Preview ---------- */
.pr-preview[b-x6p23qu6w2] {
    position: sticky;
    top: calc(var(--mh-topbar-height) + 16px);
}

.pr-preview-head[b-x6p23qu6w2] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--mh-primary);
}

    .pr-preview-head small[b-x6p23qu6w2] { font-size: 11.5px; color: var(--mh-text-secondary); }

.pr-paper[b-x6p23qu6w2] {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 210 / 297;
    padding: var(--pr-margin, 12px);
    overflow: hidden;
    border: 1px solid var(--mh-border);
    border-radius: 2px;
    background: #fff;
    box-shadow: var(--mh-shadow-menu);
    font-size: 8px;
    color: #333;
}

.pr-watermark[b-x6p23qu6w2] {
    position: absolute;
    top: 45%;
    left: 50%;
    font-family: var(--mh-font-heading);
    font-size: 54px;
    font-weight: 700;
    color: rgba(30, 58, 82, .08);
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(-30deg);
    pointer-events: none;
}

.pr-head[b-x6p23qu6w2] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1E3A52;
}

.pr-head-logo[b-x6p23qu6w2] { max-width: 44px; max-height: 30px; object-fit: contain; }
.pr-head-name[b-x6p23qu6w2] { font-family: var(--mh-font-heading); font-size: 11px; font-weight: 700; color: #1E3A52; }
.pr-head-en[b-x6p23qu6w2], .pr-head-tag[b-x6p23qu6w2] { font-size: 7.5px; color: #444; }
.pr-head-contact[b-x6p23qu6w2] { margin-top: 1px; font-size: 6.5px; color: #666; }

.pr-title[b-x6p23qu6w2] {
    margin: 10px 0 6px;
    font-family: var(--mh-font-heading);
    font-size: 10px;
    font-weight: 700;
    color: #1E3A52;
    text-align: center;
}

.pr-lines[b-x6p23qu6w2] { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.pr-lines span[b-x6p23qu6w2] { height: 4px; border-radius: 2px; background: #E6EAEE; }

.pr-signs[b-x6p23qu6w2] {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.pr-sign[b-x6p23qu6w2] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    font-size: 7px;
}

    .pr-sign strong[b-x6p23qu6w2] { color: #1E3A52; }
    .pr-sign span[b-x6p23qu6w2] { height: 0; border-bottom: 1px solid #bbb; }

.pr-stamp[b-x6p23qu6w2] {
    width: 26px;
    height: 26px;
    border: 1px dashed #999;
    border-radius: 50%;
}

.pr-foot[b-x6p23qu6w2] {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px solid #bbb;
    font-size: 6.5px;
    color: #666;
}

.pr-pageno[b-x6p23qu6w2] {
    margin-top: 3px;
    font-size: 6.5px;
    color: #777;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .pr-layout[b-x6p23qu6w2] { grid-template-columns: minmax(0, 1fr); }
    .pr-preview[b-x6p23qu6w2] { position: static; max-width: 380px; }
}

/* ---------- Formats list ---------- */
.pr-templates[b-x6p23qu6w2] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.pr-template[b-x6p23qu6w2] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    color: var(--mh-ink);
    text-align: start;
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .pr-template:hover[b-x6p23qu6w2] { border-color: var(--mh-mid-blue); }
    .pr-template:focus-visible[b-x6p23qu6w2] { outline: none; box-shadow: var(--mh-focus-ring); }
    .pr-template.is-selected[b-x6p23qu6w2] { border-color: var(--mh-primary); background: var(--mh-wash); box-shadow: inset 0 0 0 1px var(--mh-primary); }
    .pr-template small[b-x6p23qu6w2] { font-size: 11.5px; color: var(--mh-text-secondary); }

.pr-template-name[b-x6p23qu6w2] { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-template-name strong[b-x6p23qu6w2] { font-size: 13.5px; }

.pr-default[b-x6p23qu6w2] {
    padding: 0 8px;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-primary);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 18px;
    color: #fff;
}

.pr-template-actions[b-x6p23qu6w2] { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pr-danger:not(:disabled):hover[b-x6p23qu6w2] { border-color: var(--mh-danger); background: var(--mh-danger-wash); color: var(--mh-danger); }

/* ---------- Format editor ---------- */
.pr-sub[b-x6p23qu6w2] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 18px 0 8px;
    padding-top: 14px;
    border-top: 1px solid var(--mh-border);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mh-primary);
}

    .pr-sub small[b-x6p23qu6w2] { font-size: 11.5px; font-weight: 400; color: var(--mh-text-secondary); }

.pr-bands[b-x6p23qu6w2] { margin-bottom: 10px; }

.pr-band-image[b-x6p23qu6w2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pr-band-preview[b-x6p23qu6w2] {
    display: grid;
    place-items: center;
    width: 260px;
    min-height: 60px;
    padding: 6px;
    border: 1px dashed var(--mh-border);
    border-radius: var(--mh-radius);
    background: #fff;
    font-size: 12px;
    color: var(--mh-text-disabled);
}

    .pr-band-preview img[b-x6p23qu6w2] { max-width: 100%; max-height: 90px; object-fit: contain; }

.pr-band-actions[b-x6p23qu6w2] { display: flex; flex-wrap: wrap; gap: 8px; }

.pr-pdf-badge[b-x6p23qu6w2] {
    display: inline-block;
    padding: 0 5px;
    border-radius: 3px;
    background: var(--mh-danger);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 16px;
    color: #fff;
}

/* Preview bands */
.pr-band-img[b-x6p23qu6w2] { display: block; width: 100%; object-fit: contain; }

.pr-band-empty[b-x6p23qu6w2], .pr-band-blank[b-x6p23qu6w2] {
    display: grid;
    place-items: center;
    border: 1px dashed #bbb;
    font-size: 7px;
    color: #888;
}

.pr-band-blank[b-x6p23qu6w2] { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 4px, #f2f2f2 4px, #f2f2f2 8px); }

.pr-spacer[b-x6p23qu6w2] { margin-top: auto; }
.pr-preview-note[b-x6p23qu6w2] { margin: 8px 2px 0; font-size: 11.5px; color: var(--mh-text-secondary); }

/* ---------- Extract from PDF ---------- */
.pr-pdf[b-x6p23qu6w2] {
    display: flex;
    flex-direction: column;
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    text-align: start;
}

.pr-pdf-head[b-x6p23qu6w2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 3px solid var(--mh-brass);
    background: var(--mh-primary);
    color: #fff;
}

    .pr-pdf-head h2[b-x6p23qu6w2] { margin: 0; font-size: 16px; color: #fff; }
    .pr-pdf-head .mh-icon-btn[b-x6p23qu6w2] { color: rgba(255, 255, 255, .85); }

.pr-pdf-body[b-x6p23qu6w2] {
    flex: 1;
    min-height: 0;
    padding: 16px 20px;
    overflow-y: auto;
}

.pr-pdf-help[b-x6p23qu6w2] { margin: 0 0 10px; font-size: 13px; color: var(--mh-text-secondary); }

.pr-pdf-stage[b-x6p23qu6w2] {
    position: relative;
    display: none;
    margin-top: 12px;
    border: 1px solid var(--mh-border);
    box-shadow: var(--mh-shadow-menu);
}

    .pr-pdf-stage.is-loaded[b-x6p23qu6w2] { display: block; }

    .pr-pdf-stage canvas[b-x6p23qu6w2] {
        display: block;
        width: 100%;
        height: auto;
    }

.pr-pdf-cut[b-x6p23qu6w2] {
    position: absolute;
    inset-inline: 0;
    border: 2px solid var(--mh-brass);
    background: rgba(201, 162, 39, .14);
    pointer-events: none;
}

    .pr-pdf-cut.is-top[b-x6p23qu6w2] { top: 0; }
    .pr-pdf-cut.is-bottom[b-x6p23qu6w2] { bottom: 0; }

    .pr-pdf-cut span[b-x6p23qu6w2] {
        position: absolute;
        inset-inline-start: 8px;
        bottom: -22px;
        padding: 0 8px;
        border-radius: 3px;
        background: var(--mh-brass);
        font-size: 11px;
        font-weight: 700;
        line-height: 20px;
        color: #1E1A0A;
    }

    .pr-pdf-cut.is-bottom span[b-x6p23qu6w2] { top: -22px; bottom: auto; }

.pr-pdf-slider[b-x6p23qu6w2] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
}

    .pr-pdf-slider input[b-x6p23qu6w2] { width: 100%; accent-color: var(--mh-primary); }

.pr-pdf-foot[b-x6p23qu6w2] {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--mh-border);
}
/* /Components/Pages/Settings/SettingsPage.razor.rz.scp.css */
.st-grid[b-hfqi68mrba] {
    display: grid;
    gap: var(--mh-space-16);
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.st-card[b-hfqi68mrba] {
    display: flex;
    align-items: flex-start;
    gap: var(--mh-space-16);
    padding: var(--mh-space-16) 20px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-card);
    color: var(--mh-ink);
    text-decoration: none;
    transition: border-color 150ms ease;
}

    a.st-card:hover[b-hfqi68mrba] {
        border-color: var(--mh-mid-blue);
        color: var(--mh-ink);
    }

    .st-card.is-info[b-hfqi68mrba] {
        background: var(--mh-canvas);
        box-shadow: none;
    }

.st-icon[b-hfqi68mrba] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--mh-radius);
    background: var(--mh-wash);
    color: var(--mh-primary);
}

.st-text[b-hfqi68mrba] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .st-text strong[b-hfqi68mrba] {
        font-family: var(--mh-font-heading);
        font-size: 16px;
        font-weight: 700;
        color: var(--mh-primary);
    }

    .st-text span[b-hfqi68mrba] {
        color: var(--mh-text-secondary);
        font-size: 13px;
    }
/* /Components/Pages/Settings/UserEditor.razor.rz.scp.css */
.ue-identity[b-gkanm285j3] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-16);
    margin-bottom: var(--mh-space-16);
}

.ue-photo[b-gkanm285j3] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 3px solid var(--mh-surface);
    border-radius: 50%;
    background: var(--mh-wash);
    box-shadow: 0 0 0 1px var(--mh-border);
}

    .ue-photo img[b-gkanm285j3] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ue-photo-empty[b-gkanm285j3] {
    color: var(--mh-primary);
    font-family: var(--mh-font-heading);
    font-size: 28px;
    font-weight: 700;
}

.ue-photo-actions[b-gkanm285j3] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--mh-space-8);
}

    .ue-photo-actions small[b-gkanm285j3] {
        flex-basis: 100%;
        margin: 0;
    }

.ue-upload[b-gkanm285j3] {
    position: relative;
    cursor: pointer;
}

.ue-note[b-gkanm285j3] {
    margin: var(--mh-space-12) 0 0;
    font-size: 13px;
}

/* temporary password + "توليد" */
.ue-temp[b-gkanm285j3] {
    display: flex;
    gap: 8px;
}

    .ue-temp[b-gkanm285j3]  input { flex: 1; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }

/* الدور: three choice cards */
.ue-roles[b-gkanm285j3] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ue-role[b-gkanm285j3] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease;
}

    .ue-role input[b-gkanm285j3] { margin-top: 4px; accent-color: var(--mh-primary); }
    .ue-role span[b-gkanm285j3] { display: flex; flex-direction: column; line-height: 1.45; }
    .ue-role strong[b-gkanm285j3] { font-size: 13.5px; }
    .ue-role small[b-gkanm285j3] { font-size: 12px; color: var(--mh-text-secondary); }
    .ue-role:hover[b-gkanm285j3] { border-color: var(--mh-mid-blue); }
    .ue-role.is-on[b-gkanm285j3] { border-color: var(--mh-primary); background: var(--mh-wash); box-shadow: inset 0 0 0 1px var(--mh-primary); }

@media (max-width: 767.98px) {
    .ue-roles[b-gkanm285j3] { grid-template-columns: 1fr; }
}
/* /Components/Pages/Settings/UsersPage.razor.rz.scp.css */
.up-grid[b-p331h6wbej] {
    display: grid;
    gap: var(--mh-space-16);
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.up-card[b-p331h6wbej] {
    display: flex;
    flex-direction: column;
    gap: var(--mh-space-12);
    padding: var(--mh-space-16) 20px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-card);
}

.up-card-head[b-p331h6wbej] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-16);
}

.up-avatar[b-p331h6wbej] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 3px solid var(--mh-surface);
    border-radius: 50%;
    background: var(--mh-wash);
    box-shadow: 0 0 0 1px var(--mh-border);
    color: var(--mh-primary);
    font-family: var(--mh-font-heading);
    font-size: 22px;
    font-weight: 700;
}

    .up-avatar img[b-p331h6wbej] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.up-name[b-p331h6wbej] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

    .up-name strong[b-p331h6wbej] {
        font-family: var(--mh-font-heading);
        font-size: 17px;
        font-weight: 700;
        color: var(--mh-primary);
    }

    .up-name > span[b-p331h6wbej] {
        color: var(--mh-text-secondary);
        font-size: 13px;
    }

.up-login[b-p331h6wbej] {
    color: var(--mh-ink);
    font-size: 12px;
    font-weight: 600;
    text-align: start;
}

.up-perms[b-p331h6wbej] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.up-chip-full[b-p331h6wbej] {
    background: var(--mh-wash);
    color: var(--mh-primary);
    font-weight: 700;
}

.up-chip-warn[b-p331h6wbej] {
    background: var(--mh-brass-wash);
    color: #6B5410;
    font-weight: 700;
}

.up-chip-off[b-p331h6wbej] {
    background: var(--mh-danger-wash);
    color: var(--mh-danger);
    font-weight: 700;
}

.up-card.is-inactive[b-p331h6wbej] { opacity: .72; }

.up-last[b-p331h6wbej] {
    margin: 0;
    font-size: 12px;
    color: var(--mh-text-secondary);
}

.up-usage[b-p331h6wbej] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 8px 0;
    border-block: 1px solid var(--mh-border);
    text-align: center;
}

    .up-usage dt[b-p331h6wbej] {
        color: var(--mh-text-secondary);
        font-size: 11px;
        font-weight: 500;
    }

    .up-usage dd[b-p331h6wbej] {
        margin: 0;
        font-family: var(--mh-font-heading);
        font-size: 16px;
        font-weight: 700;
    }

.up-actions[b-p331h6wbej] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* /Components/Pages/Tasks/TasksPage.razor.rz.scp.css */
/* The task text is the main content of a row */
.tk-title[b-ycxskr7kox] {
    flex: 0 1 340px;
}

    .tk-title strong[b-ycxskr7kox] {
        font-size: 14px;
    }

.tk-case[b-ycxskr7kox] {
    color: var(--mh-primary);
    font-weight: 700;
    text-decoration: none;
}

    .tk-case:hover[b-ycxskr7kox] {
        text-decoration: underline;
    }

/* Tab counts in the same colours as the status pills */
.tk-count-overdue[b-ycxskr7kox] {
    background: var(--mh-danger-wash);
    color: var(--mh-danger);
    font-weight: 700;
}

.tk-count-done[b-ycxskr7kox] {
    background: var(--mh-success-wash);
    color: var(--mh-success);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    /* the task text sits beside the date tile */
    .tk-title[b-ycxskr7kox] {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Task in the calendar's day panel */
.tk-panel-action[b-ycxskr7kox] {
    font-size: 14px;
    line-height: 1.5;
}
/* /Components/Pages/Work/FollowUpView.razor.rz.scp.css */
/* المتابعة — the app's row cards (app.css 13b) with a coloured edge per kind and in-place actions. */

.fu-tabs[b-xwbrx1mpwc]  .mh-tab, .fu-tabs .mh-tab[b-xwbrx1mpwc] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fu-count-missing[b-xwbrx1mpwc] { background: var(--mh-brass-wash) !important; color: #6B5410 !important; }
.fu-count-overdue[b-xwbrx1mpwc] { background: var(--mh-danger-wash) !important; color: var(--mh-danger) !important; }
.fu-count-cases[b-xwbrx1mpwc] { background: var(--mh-wash) !important; color: var(--mh-primary) !important; }

.fu-select[b-xwbrx1mpwc] {
    width: auto;
    min-width: 170px;
}

.fu-row[b-xwbrx1mpwc] {
    border-inline-start-width: 3px;
}

    .fu-row.is-missing[b-xwbrx1mpwc] { border-inline-start-color: var(--mh-brass); }
    .fu-row.is-overdue[b-xwbrx1mpwc] { border-inline-start-color: var(--mh-danger); }
    .fu-row.is-case[b-xwbrx1mpwc] { border-inline-start-color: var(--mh-mid-blue); }
    .fu-row.is-busy[b-xwbrx1mpwc] { opacity: .55; }

    .fu-row .mh-rowcard-title[b-xwbrx1mpwc] { flex: 1 1 320px; }

    .fu-row .mh-rowcard-title a[b-xwbrx1mpwc] {
        color: var(--mh-primary);
        font-weight: 600;
        text-decoration: none;
    }

        .fu-row .mh-rowcard-title a:hover[b-xwbrx1mpwc] { text-decoration: underline; }

.fu-vs[b-xwbrx1mpwc] {
    font-family: var(--mh-font-body);
    font-weight: 400;
    color: var(--mh-text-secondary);
}

.fu-icon[b-xwbrx1mpwc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--mh-radius);
    background: var(--mh-wash);
    color: var(--mh-primary);
}

    .fu-icon.is-overdue[b-xwbrx1mpwc] { background: var(--mh-danger-wash); color: var(--mh-danger); }

.fu-row.is-missing .mh-date-tile[b-xwbrx1mpwc] { border-color: rgba(201, 162, 39, .45); background: var(--mh-brass-wash); }

.fu-when[b-xwbrx1mpwc] {
    display: flex;
    flex: 0 0 130px;
    flex-direction: column;
    line-height: 1.45;
}

    .fu-when small[b-xwbrx1mpwc] { font-size: 11.5px; color: var(--mh-text-secondary); }

.fu-late[b-xwbrx1mpwc] {
    font-size: 13px;
    font-weight: 700;
    color: var(--mh-ink);
}

    .fu-late.is-missing[b-xwbrx1mpwc] { color: #6B5410; }
    .fu-late.is-overdue[b-xwbrx1mpwc] { color: var(--mh-danger); }

.fu-done:hover[b-xwbrx1mpwc] {
    border-color: var(--mh-success);
    background: var(--mh-success-wash);
    color: var(--mh-success);
}

/* Postpone menu */
.fu-pop-wrap[b-xwbrx1mpwc] { position: relative; display: inline-flex; }

.fu-pop[b-xwbrx1mpwc] {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    padding: 6px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-menu);
}

    .fu-pop button[b-xwbrx1mpwc] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 10px;
        border: 0;
        border-radius: var(--mh-radius-sm);
        background: transparent;
        font-size: 13px;
        color: var(--mh-ink);
        text-align: start;
    }

        .fu-pop button:hover[b-xwbrx1mpwc], .fu-pop button:focus-visible[b-xwbrx1mpwc] { outline: none; background: var(--mh-wash); }
        .fu-pop small[b-xwbrx1mpwc] { color: var(--mh-text-secondary); }

.fu-pop-backdrop[b-xwbrx1mpwc] {
    position: fixed;
    inset: 0;
    z-index: 25;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
}

.fu-empty .mh-icon[b-xwbrx1mpwc] {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    color: var(--mh-success);
}

@media (max-width: 767.98px) {
    .fu-when[b-xwbrx1mpwc] { flex-basis: auto; }
    .fu-icon[b-xwbrx1mpwc] { width: 40px; height: 40px; }
    .fu-select[b-xwbrx1mpwc] { min-width: 0; flex: 1; }
}
/* /Components/Pages/Work/WeeklyPlanView.razor.rz.scp.css */
/* خطة الأسبوع — a lawyer × day board. Desktop: fits the window (mh-listpage), the board and the backlog
   scroll inside; the day header and the lawyer column stay in view (sticky). Cards: tasks (draggable,
   white) and hearings (navy wash, fixed). The cell under a dragged card lights up. */

.wp-toolbar[b-k2zryhhtuy] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 16px;
    margin-bottom: var(--mh-space-12);
}

.wp-head-actions[b-k2zryhhtuy] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.wp-week[b-k2zryhhtuy] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-surface);
}

    .wp-week .mh-icon-btn[b-k2zryhhtuy] { border: 0; }
    .wp-next .mh-icon[b-k2zryhhtuy] { transform: scaleX(-1); }

.wp-week-label[b-k2zryhhtuy] {
    min-width: 170px;
    padding: 0 6px;
    font-family: var(--mh-font-heading);
    font-size: 14px;
    color: var(--mh-primary);
    text-align: center;
}

.wp-dept[b-k2zryhhtuy] { width: auto; min-width: 140px; }

.wp-toggle[b-k2zryhhtuy] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-surface);
    font-size: 13px;
    color: var(--mh-text-secondary);
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

    .wp-toggle.is-on[b-k2zryhhtuy] {
        border-color: var(--mh-primary);
        background: var(--mh-wash);
        color: var(--mh-primary);
        font-weight: 700;
    }

    .wp-toggle:focus-visible[b-k2zryhhtuy] { outline: none; box-shadow: var(--mh-focus-ring); }

/* ---------- Workload strip ---------- */
.wp-load[b-k2zryhhtuy] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--mh-space-12);
}

.wp-load-item[b-k2zryhhtuy] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    min-width: 190px;
    padding: 8px 12px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-card);
}

    .wp-load-item > :first-child[b-k2zryhhtuy] { grid-row: 1 / span 2; }
    .wp-load-item.is-unassigned[b-k2zryhhtuy] { border-color: rgba(201, 162, 39, .5); background: var(--mh-brass-wash); }

.wp-load-text[b-k2zryhhtuy] { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.wp-load-text strong[b-k2zryhhtuy] { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-load-text small[b-k2zryhhtuy] { font-size: 11.5px; color: var(--mh-text-secondary); }

.wp-load-bar[b-k2zryhhtuy] {
    display: block;
    height: 5px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-canvas);
}

    .wp-load-bar span[b-k2zryhhtuy] {
        display: block;
        height: 100%;
        border-radius: var(--mh-radius-pill);
        background: var(--mh-mid-blue);
        transition: width 300ms ease;
    }

.wp-none-avatar[b-k2zryhhtuy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px dashed #B39234;
    border-radius: 50%;
    background: var(--mh-surface);
    font-weight: 700;
    color: #6B5410;
}

.wp-lane .wp-none-avatar[b-k2zryhhtuy] { width: 36px; height: 36px; }

/* ---------- Body: board + backlog ---------- */
.wp-body[b-k2zryhhtuy] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 230px;
    grid-template-rows: minmax(0, 1fr);
    gap: var(--mh-space-12);
}

.wp-board-scroll[b-k2zryhhtuy] {
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    box-shadow: var(--mh-shadow-card);
    scrollbar-width: thin;
    scrollbar-color: var(--mh-scroll-thumb) transparent;   /* light grey (standard props switch off the ::-webkit-scrollbar style) */
}

.wp-board[b-k2zryhhtuy] {
    display: grid;
    grid-template-columns: 150px repeat(var(--wp-days), minmax(0, 1fr));
    width: 100%;
    min-width: calc(150px + var(--wp-days) * 128px);   /* scrolls sideways only when narrower */
}

    .wp-board > *[b-k2zryhhtuy] {
        border-bottom: 1px solid var(--mh-border);
        border-inline-start: 1px solid var(--mh-border);
    }

.wp-corner[b-k2zryhhtuy], .wp-day[b-k2zryhhtuy] {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--mh-table-header);
}

.wp-corner[b-k2zryhhtuy] {
    inset-inline-start: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-inline-start: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mh-text-secondary);
}

.wp-day[b-k2zryhhtuy] {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    line-height: 1.35;
}

    .wp-day strong[b-k2zryhhtuy] { font-size: 13.5px; color: var(--mh-ink); }
    .wp-day span[b-k2zryhhtuy] { font-size: 11.5px; color: var(--mh-text-secondary); }

    .wp-day.is-today[b-k2zryhhtuy] { background: var(--mh-primary); }
    .wp-day.is-today strong[b-k2zryhhtuy], .wp-day.is-today span[b-k2zryhhtuy] { color: #fff; }
    .wp-day.is-weekend strong[b-k2zryhhtuy] { color: var(--mh-text-secondary); }

.wp-lane[b-k2zryhhtuy] {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-inline-start: 0;
    background: var(--mh-surface);
}

    .wp-lane > span:last-child[b-k2zryhhtuy] { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
    .wp-lane strong[b-k2zryhhtuy] { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
    .wp-lane small[b-k2zryhhtuy] { font-size: 11.5px; color: var(--mh-text-secondary); }
    .wp-lane.is-unassigned[b-k2zryhhtuy] { background: #FDFBF3; }

.wp-cell[b-k2zryhhtuy] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 104px;
    padding: 8px 8px 34px;
    background: var(--mh-surface);
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

    .wp-cell.is-today[b-k2zryhhtuy] { background: #F6F9FB; }
    .wp-cell.is-weekend[b-k2zryhhtuy] { background: var(--mh-canvas); }

    .wp-cell.is-over[b-k2zryhhtuy] {
        background: var(--mh-wash);
        box-shadow: inset 0 0 0 2px var(--mh-mid-blue);
    }

    /* While dragging: the cells that accept the card get a dashed outline, the others fade */
    .wp-cell.is-target[b-k2zryhhtuy] { box-shadow: inset 0 0 0 1px var(--mh-light-blue); }
    .wp-cell.is-target.is-over[b-k2zryhhtuy] { box-shadow: inset 0 0 0 2px var(--mh-primary); }
    .wp-cell.is-blocked[b-k2zryhhtuy] { opacity: .45; }
    .wp-cell.is-blocked .wp-add[b-k2zryhhtuy] { visibility: hidden; }

.wp-lane.is-over[b-k2zryhhtuy] {
    background: var(--mh-wash);
    box-shadow: inset 0 0 0 2px var(--mh-primary);
}

/* "Drop the hearing on another lawyer the same day" — floats at the bottom while dragging (takes no room,
   so the board does not move under the pointer) */
.wp-drag-hint[b-k2zryhhtuy] {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 950;
    max-width: calc(100vw - 32px);
    padding: 9px 18px;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-primary);
    box-shadow: var(--mh-shadow-modal);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transform: translateX(-50%);
    pointer-events: none;
}

/* "+" appears on hover / focus (always on touch screens) */
.wp-add[b-k2zryhhtuy] {
    position: absolute;
    bottom: 6px;
    inset-inline-start: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px dashed var(--mh-border);
    border-radius: 50%;
    background: transparent;
    color: var(--mh-text-secondary);
    opacity: 0;
    transition: opacity 120ms ease, background-color 120ms ease;
}

.wp-cell:hover .wp-add[b-k2zryhhtuy], .wp-add:focus-visible[b-k2zryhhtuy] { opacity: 1; }
.wp-add:hover[b-k2zryhhtuy] { border-style: solid; border-color: var(--mh-primary); background: var(--mh-wash); color: var(--mh-primary); }
.wp-add:focus-visible[b-k2zryhhtuy] { outline: none; box-shadow: var(--mh-focus-ring); }

@media (pointer: coarse) {
    .wp-add[b-k2zryhhtuy] { opacity: 1; }
}

/* ---------- Cards ---------- */
.wp-card[b-k2zryhhtuy] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-block: 7px;
    padding-inline: 10px 30px;   /* room for the ✓ button at the end */
    border: 1px solid var(--mh-border);
    border-inline-start: 3px solid var(--mh-mid-blue);
    border-radius: var(--mh-radius-sm);
    background: var(--mh-surface);
    color: var(--mh-ink);
    text-decoration: none;
    line-height: 1.4;
    cursor: grab;
    box-shadow: var(--mh-shadow-card);
    transition: box-shadow 150ms ease, transform 150ms ease, opacity 150ms ease;
    animation: wp-in-b-k2zryhhtuy 260ms ease-out both;
}

    .wp-card:hover[b-k2zryhhtuy] { box-shadow: var(--mh-shadow-menu); transform: translateY(-1px); color: var(--mh-ink); }
    .wp-card:focus-visible[b-k2zryhhtuy] { outline: none; box-shadow: var(--mh-focus-ring); }
    .wp-card:active[b-k2zryhhtuy] { cursor: grabbing; }
    .wp-card.is-dragging[b-k2zryhhtuy] { opacity: .45; }

    .wp-card strong[b-k2zryhhtuy] {
        display: -webkit-box;
        overflow: hidden;
        font-size: 12.5px;
        font-weight: 600;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .wp-card small[b-k2zryhhtuy] {
        overflow: hidden;
        font-size: 11px;
        color: var(--mh-text-secondary);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.wp-card-kind[b-k2zryhhtuy] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--mh-text-secondary);
}

    .wp-card-kind .mh-icon[b-k2zryhhtuy] { width: 12px; height: 12px; }

.wp-card.is-hearing[b-k2zryhhtuy] {
    border-color: #D3E0EA;
    border-inline-start-color: var(--mh-primary);
    background: #F4F8FB;
    padding-inline-end: 10px;
}

/* the card that was just moved: a short brass glow */
.wp-card.is-saved[b-k2zryhhtuy] { animation: wp-saved-b-k2zryhhtuy 1.4s ease-out both; }

@keyframes wp-saved-b-k2zryhhtuy {
    0% { box-shadow: 0 0 0 3px rgba(201, 162, 39, .55); }
    100% { box-shadow: var(--mh-shadow-card); }
}

    .wp-card.is-hearing .wp-card-kind[b-k2zryhhtuy] { color: var(--mh-primary); }

.wp-card.is-late[b-k2zryhhtuy] { border-inline-start-color: var(--mh-danger); }
.wp-card.is-late .wp-card-kind[b-k2zryhhtuy] { color: var(--mh-danger); }
.wp-card.is-hearing.is-late[b-k2zryhhtuy] { border-inline-start-color: var(--mh-brass); }
.wp-card.is-hearing.is-late .wp-card-kind[b-k2zryhhtuy] { color: #6B5410; }

.wp-card.is-done[b-k2zryhhtuy] { border-inline-start-color: var(--mh-success); background: var(--mh-canvas); box-shadow: none; }
.wp-card.is-done strong[b-k2zryhhtuy] { color: var(--mh-text-secondary); }
.wp-card.is-task.is-done strong[b-k2zryhhtuy] { text-decoration: line-through; }
.wp-card.is-done .wp-card-kind[b-k2zryhhtuy] { color: var(--mh-success); }

.wp-card-done[b-k2zryhhtuy] {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid var(--mh-border);
    border-radius: 50%;
    background: var(--mh-surface);
    color: var(--mh-text-secondary);
}

    .wp-card-done .mh-icon[b-k2zryhhtuy] { width: 12px; height: 12px; }
    .wp-card-done:hover[b-k2zryhhtuy] { border-color: var(--mh-success); background: var(--mh-success-wash); color: var(--mh-success); }
    .wp-card-done:focus-visible[b-k2zryhhtuy] { outline: none; box-shadow: var(--mh-focus-ring); }

@keyframes wp-in-b-k2zryhhtuy {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Backlog ---------- */
.wp-backlog[b-k2zryhhtuy] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px;
    border: 1px dashed #D9C68A;
    border-radius: var(--mh-radius);
    background: #FDFBF3;
    transition: background-color 120ms ease;
}

    .wp-backlog header[b-k2zryhhtuy] { display: flex; align-items: center; justify-content: space-between; }
    .wp-backlog h2[b-k2zryhhtuy] { margin: 0; font-size: 14px; font-weight: 700; color: #6B5410; }

.wp-backlog-hint[b-k2zryhhtuy] {
    margin: 4px 0 10px;
    font-size: 11.5px;
    color: var(--mh-text-secondary);
}

.wp-backlog-list[b-k2zryhhtuy] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mh-scroll-thumb) transparent;   /* light grey (standard props switch off the ::-webkit-scrollbar style) */
}

.wp-backlog-empty[b-k2zryhhtuy] { margin: 0; font-size: 12.5px; color: var(--mh-text-secondary); }

.wp-backlog-more[b-k2zryhhtuy] {
    display: block;
    padding: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

/* ---------- Quick edit (click a card) ---------- */
.mh-dialog.wp-qe[b-k2zryhhtuy] {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 20px 22px;
}

.wp-qe-head[b-k2zryhhtuy] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

    .wp-qe-head .mh-icon-btn[b-k2zryhhtuy] { margin-inline-start: auto; flex-shrink: 0; }

.wp-qe-icon[b-k2zryhhtuy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--mh-radius);
    background: var(--mh-canvas);
    color: var(--mh-text-secondary);
}

    .wp-qe-icon.is-hearing[b-k2zryhhtuy] { background: var(--mh-wash); color: var(--mh-primary); }

.wp-qe-title[b-k2zryhhtuy] { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.wp-qe-title small[b-k2zryhhtuy] { font-size: 11.5px; font-weight: 700; color: var(--mh-text-secondary); }
.wp-qe-title h2[b-k2zryhhtuy] { margin: 0; font-size: 16px; font-weight: 700; color: var(--mh-ink); }
.wp-qe-title > span[b-k2zryhhtuy] { font-size: 12.5px; }

.wp-qe-section[b-k2zryhhtuy] { margin-bottom: 16px; }

    .wp-qe-section h3[b-k2zryhhtuy] {
        margin: 0 0 8px;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--mh-text-secondary);
    }

.wp-qe-lanes[b-k2zryhhtuy] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
}

.wp-qe-chip[b-k2zryhhtuy] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    color: var(--mh-ink);
    font-size: 13px;
    text-align: start;
    transition: border-color 120ms ease, background-color 120ms ease;
}

    .wp-qe-chip > span:not(.wp-none-avatar)[b-k2zryhhtuy] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .wp-qe-chip small[b-k2zryhhtuy] { color: var(--mh-text-secondary); font-size: 11px; }
    .wp-qe-chip .wp-none-avatar[b-k2zryhhtuy] { width: 24px; height: 24px; font-size: 12px; }
    .wp-qe-chip:hover[b-k2zryhhtuy] { border-color: var(--mh-mid-blue); }
    .wp-qe-chip.is-on[b-k2zryhhtuy] { border-color: var(--mh-primary); background: var(--mh-wash); box-shadow: inset 0 0 0 1px var(--mh-primary); font-weight: 700; }
    .wp-qe-chip:focus-visible[b-k2zryhhtuy], .wp-qe-day:focus-visible[b-k2zryhhtuy] { outline: none; box-shadow: var(--mh-focus-ring); }

.wp-qe-days[b-k2zryhhtuy] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
}

.wp-qe-day[b-k2zryhhtuy] {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
    padding: 5px 8px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    line-height: 1.3;
}

    .wp-qe-day strong[b-k2zryhhtuy] { font-size: 12px; color: var(--mh-ink); }
    .wp-qe-day span[b-k2zryhhtuy] { font-size: 15px; font-weight: 700; color: var(--mh-text-secondary); }
    .wp-qe-day.is-today[b-k2zryhhtuy] { border-color: var(--mh-brass); }
    .wp-qe-day:hover[b-k2zryhhtuy] { border-color: var(--mh-mid-blue); }
    .wp-qe-day.is-on[b-k2zryhhtuy] { border-color: var(--mh-primary); background: var(--mh-primary); }
    .wp-qe-day.is-on strong[b-k2zryhhtuy], .wp-qe-day.is-on span[b-k2zryhhtuy] { color: #fff; }

.wp-qe-other[b-k2zryhhtuy] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    margin-inline-start: auto;
    font-size: 11.5px;
    color: var(--mh-text-secondary);
}

    .wp-qe-other input[b-k2zryhhtuy] { width: 150px; }

.wp-qe-fixed[b-k2zryhhtuy] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 12px;
    border-radius: var(--mh-radius);
    background: var(--mh-canvas);
    font-weight: 600;
}

    .wp-qe-fixed small[b-k2zryhhtuy] { flex-basis: 100%; font-weight: 400; font-size: 12px; color: var(--mh-text-secondary); }

.wp-qe-actions[b-k2zryhhtuy] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--mh-border);
}

    .wp-qe-case[b-k2zryhhtuy] { margin-inline-start: auto; }
    .wp-qe-case .mh-icon[b-k2zryhhtuy] { transform: scaleX(-1); }   /* points "forward" (left) in RTL */

@media (max-width: 575.98px) {
    .wp-qe-other[b-k2zryhhtuy] { margin-inline-start: 0; flex-basis: 100%; }
    .wp-qe-other input[b-k2zryhhtuy] { width: 100%; }
    .wp-qe-case[b-k2zryhhtuy] { margin-inline-start: 0; }
}

/* ---------- Print: lawyer × day table ---------- */
.wp-print[b-k2zryhhtuy] { table-layout: fixed; width: 100%; }
.wp-print th[b-k2zryhhtuy], .wp-print td[b-k2zryhhtuy] { vertical-align: top; }
.wp-print thead th:first-child[b-k2zryhhtuy], .wp-print tbody th[b-k2zryhhtuy] { width: 11%; }
.wp-print tbody th[b-k2zryhhtuy] { background: #f3f3f3; }
.wp-print-item .ps-sub[b-k2zryhhtuy] { display: block; white-space: nowrap; }
.wp-print-item[b-k2zryhhtuy] { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px dotted #ccc; }
.wp-print-item:last-child[b-k2zryhhtuy] { border-bottom: 0; }
.wp-print-item.is-done[b-k2zryhhtuy] { color: #666; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1199.98px) {
    .wp-body[b-k2zryhhtuy] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
    .wp-backlog[b-k2zryhhtuy] { max-height: 260px; }
}

@media (max-width: 767.98px) {
    .wp-head-actions[b-k2zryhhtuy] { justify-content: flex-start; }
    .wp-week-label[b-k2zryhhtuy] { min-width: 0; font-size: 13px; }
    .wp-board[b-k2zryhhtuy] { grid-template-columns: 120px repeat(var(--wp-days), minmax(0, 1fr)); min-width: calc(120px + var(--wp-days) * 150px); }
    .wp-board-scroll[b-k2zryhhtuy] { max-height: 70vh; }
    .wp-load-item[b-k2zryhhtuy] { min-width: 0; flex: 1 1 45%; }
}

@media (prefers-reduced-motion: reduce) {
    .wp-card[b-k2zryhhtuy], .wp-card.is-saved[b-k2zryhhtuy], .wp-drag-hint[b-k2zryhhtuy] { animation: none; transition: none; }
    .wp-card:hover[b-k2zryhhtuy] { transform: none; }
}

/* ---------- Agreement and meeting notes (Maham_WeekPlan) ---------- */
.wp-agree[b-k2zryhhtuy] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 12px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-surface);
    font-size: 13px;
    color: var(--mh-text-secondary);
}

    .wp-agree.is-agreed[b-k2zryhhtuy] {
        border-color: rgba(15, 123, 95, .35);
        background: var(--mh-success-wash);
        color: var(--mh-success);
        font-weight: 600;
    }

.wp-notes[b-k2zryhhtuy] {
    margin-bottom: var(--mh-space-12);
    padding: 12px 16px;
}

    .wp-notes header[b-k2zryhhtuy] { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
    .wp-notes h2[b-k2zryhhtuy] { margin: 0; font-size: 14px; font-weight: 700; color: var(--mh-ink); }
    .wp-notes small[b-k2zryhhtuy] { font-size: 12px; color: var(--mh-text-secondary); }

.wp-notes-actions[b-k2zryhhtuy] { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wp-notes-text[b-k2zryhhtuy] { margin: 0; white-space: pre-wrap; font-size: 13.5px; }
.wp-qe-viewonly[b-k2zryhhtuy] { font-size: 13px; }
.wp-print-notes[b-k2zryhhtuy] { white-space: pre-wrap; }
/* /Components/Pages/Work/WorkPage.razor.rz.scp.css */
/* المتابعة والتخطيط: one header + view switch, then the chosen view filling the rest of the window. */

.wk[b-m60kboyjl3] {
    display: flex;
    flex-direction: column;
}

.wk-head[b-m60kboyjl3] {
    flex-shrink: 0;
    margin-bottom: var(--mh-space-12);
}

.wk-switch a[b-m60kboyjl3] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

@media (min-width: 992px) and (min-height: 600px) {
    .wk[b-m60kboyjl3] {
        height: calc(100dvh - var(--mh-topbar-height) - 2 * var(--mh-page-padding));
    }

        /* The view (an .mh-listpage) takes the remaining height instead of the whole window */
        .wk[b-m60kboyjl3]  .mh-listpage.wk-view {
            flex: 1;
            height: auto;
            min-height: 0;
        }
}

@media (max-width: 767.98px) {
    .wk-switch[b-m60kboyjl3] { width: 100%; }
    .wk-switch a[b-m60kboyjl3] { flex: 1; justify-content: center; }
}

@media print {
    .wk[b-m60kboyjl3] { height: auto !important; }
}
/* /Components/Shared/FilterBar.razor.rz.scp.css */
.fb-client[b-3i34w3fiut] {
    flex: 1 1 220px;
}

.fb-clear[b-3i34w3fiut] {
    flex-shrink: 0;
    color: var(--mh-danger);
}

@media (max-width: 767.98px) {
    .fb-client[b-3i34w3fiut] {
        flex: 1 1 100%;
    }

    .fb-clear[b-3i34w3fiut] {
        flex: 1 1 100%;
    }
}
/* /Components/Shared/LawyerAvatar.razor.rz.scp.css */
.lawyer-avatar[b-8i6ivvdyyp] {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--mh-surface);
    box-shadow: 0 0 0 1px var(--mh-border);
}

    .lawyer-avatar img[b-8i6ivvdyyp] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        background: var(--mh-surface);
    }

.lawyer-avatar--xs[b-8i6ivvdyyp] { width: 22px; height: 22px; font-size: 9px; border-width: 1px; }
.lawyer-avatar--sm[b-8i6ivvdyyp] { width: 28px; height: 28px; font-size: 11px; }
.lawyer-avatar--md[b-8i6ivvdyyp] { width: 36px; height: 36px; font-size: 13px; }
.lawyer-avatar--lg[b-8i6ivvdyyp] { width: 56px; height: 56px; font-size: 18px; border-width: 3px; }
/* /Components/Shared/LawyerChip.razor.rz.scp.css */
.lawyer-chip[b-mym9kobzta] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    width: 150px;
    padding-block: 4px;
    padding-inline: 4px 10px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-pill);
    background: var(--mh-surface);
}

.lawyer-chip-text[b-mym9kobzta] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

    .lawyer-chip-text small[b-mym9kobzta] {
        color: var(--mh-text-secondary);
        font-size: 10px;
    }

    .lawyer-chip-text strong[b-mym9kobzta] {
        overflow: hidden;
        color: var(--mh-ink);
        font-size: 12px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.lawyer-chip.is-empty[b-mym9kobzta] {
    border-style: dashed;
    background: transparent;
}

    .lawyer-chip.is-empty strong[b-mym9kobzta] {
        color: var(--mh-text-secondary);
        font-weight: 500;
    }

.lawyer-chip-none[b-mym9kobzta] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px dashed var(--mh-border);
    border-radius: 50%;
    color: var(--mh-text-disabled);
}
/* /Components/Shared/Pager.razor.rz.scp.css */
.pager[b-r7dofi6ur8] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--mh-space-12);
    margin-top: var(--mh-space-16);
}

.pager-info[b-r7dofi6ur8] {
    color: var(--mh-text-secondary);
    font-size: 13px;
}

.pager-buttons[b-r7dofi6ur8] {
    display: flex;
    align-items: center;
    gap: var(--mh-space-4);
}

.pager-page[b-r7dofi6ur8] {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: var(--mh-radius-sm);
    background: transparent;
    color: var(--mh-ink);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

    .pager-page:hover[b-r7dofi6ur8] {
        background: var(--mh-surface);
        border-color: var(--mh-border);
    }

    .pager-page.active[b-r7dofi6ur8] {
        background: var(--mh-primary);
        border-color: var(--mh-primary);
        color: #fff;
        font-weight: 700;
    }

.pager-gap[b-r7dofi6ur8] {
    padding: 0 4px;
    color: var(--mh-text-disabled);
}
/* /Components/Shared/PrintBandView.razor.rz.scp.css */
.pbv-head[b-ke71dpxqvz] {
    padding-bottom: 3mm;
    border-bottom: 2px solid #1E3A52;
}

.pbv-img[b-ke71dpxqvz] {
    display: block;
    width: 100%;
    object-fit: contain;
    object-position: center top;
}

    .pbv-img.is-footer[b-ke71dpxqvz] { object-position: center bottom; }
/* /Components/Shared/PrintExportDialog.razor.rz.scp.css */
.pe-dialog[b-6qqi65ko1e] {
    width: min(560px, calc(100vw - 24px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 0;
    text-align: start;
}

.pe-head[b-6qqi65ko1e] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 3px solid var(--mh-brass);
    background: var(--mh-primary);
    color: #fff;
}

    .pe-head h2[b-6qqi65ko1e] {
        margin: 0;
        color: #fff;
        font-size: 17px;
    }

    .pe-head .mh-icon-btn[b-6qqi65ko1e] {
        color: rgba(255, 255, 255, 0.85);
    }

        .pe-head .mh-icon-btn:hover[b-6qqi65ko1e] {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

.pe-section[b-6qqi65ko1e] {
    display: grid;
    gap: var(--mh-space-8);
    margin: 0;
    padding: 16px 20px;
    border: 0;
}

    .pe-section + .pe-section[b-6qqi65ko1e] {
        border-top: 1px solid var(--mh-border);
    }

    .pe-section legend[b-6qqi65ko1e] {
        float: none;
        width: auto;
        margin: 0 0 4px;
        padding: 0;
        color: var(--mh-text-secondary);
        font-size: 12px;
        font-weight: 700;
    }

/* Period options: a radio card each */
.pe-option[b-6qqi65ko1e] {
    display: flex;
    align-items: flex-start;
    gap: var(--mh-space-12);
    padding: 10px 12px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

    .pe-option:hover[b-6qqi65ko1e] {
        border-color: var(--mh-light-blue);
    }

    .pe-option.is-selected[b-6qqi65ko1e] {
        border-color: var(--mh-primary);
        background: #F4F8FB;
    }

    .pe-option > input[type=radio][b-6qqi65ko1e] {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        margin-top: 3px;
        accent-color: var(--mh-primary);
    }

    .pe-option > span[b-6qqi65ko1e] {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .pe-option strong[b-6qqi65ko1e] {
        font-size: 14px;
    }

    .pe-option small[b-6qqi65ko1e] {
        color: var(--mh-text-secondary);
        font-size: 12px;
    }

    .pe-option .form-control[b-6qqi65ko1e] {
        max-width: 220px;
    }

.pe-dates[b-6qqi65ko1e] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

    .pe-dates .form-control[b-6qqi65ko1e] {
        flex: 1 1 140px;
        max-width: none;
    }

/* Output buttons */
.pe-formats[b-6qqi65ko1e] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--mh-space-8);
}

.pe-format[b-6qqi65ko1e] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    background: var(--mh-surface);
    color: var(--mh-ink);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

    .pe-format:hover:not(:disabled)[b-6qqi65ko1e] {
        border-color: var(--mh-primary);
        box-shadow: var(--mh-shadow-card);
        transform: translateY(-1px);
    }

    .pe-format:focus-visible[b-6qqi65ko1e] {
        outline: none;
        box-shadow: var(--mh-focus-ring);
    }

    .pe-format:disabled[b-6qqi65ko1e] {
        opacity: 0.55;
    }

    .pe-format > .mh-icon[b-6qqi65ko1e] {
        width: 26px;
        height: 26px;
        color: var(--mh-primary);
    }

    .pe-format strong[b-6qqi65ko1e] {
        font-size: 14px;
    }

    .pe-format small[b-6qqi65ko1e] {
        color: var(--mh-text-secondary);
        font-size: 11px;
    }

.pe-badge[b-6qqi65ko1e] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 26px;
    border-radius: 4px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

    .pe-badge.is-pdf[b-6qqi65ko1e] { background: #B4472F; }
    .pe-badge.is-xls[b-6qqi65ko1e] { background: #0F7B5F; }
    .pe-badge.is-doc[b-6qqi65ko1e] { background: #2B5797; }

.pe-busy[b-6qqi65ko1e] {
    margin: 4px 0 0;
    color: var(--mh-text-secondary);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 575.98px) {
    .pe-formats[b-6qqi65ko1e] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pe-format[b-6qqi65ko1e] {
        min-height: 72px;
    }
}

/* نموذج الطباعة */
.pe-template[b-6qqi65ko1e] {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pe-template .form-select[b-6qqi65ko1e] { flex: 1; }

.pe-manage[b-6qqi65ko1e] {
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.pe-template-info[b-6qqi65ko1e] {
    font-size: 12px;
    color: var(--mh-text-secondary);
}

.pe-notice[b-6qqi65ko1e] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
    font-size: 13px;
}

    .pe-notice .btn[b-6qqi65ko1e] { flex-shrink: 0; }
/* /Components/Shared/PrintFooter.razor.rz.scp.css */
.pf[b-2w4yz6bz3o] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px solid #999;
    font-size: 8pt;
    color: #555;
}

.pf-meta[b-2w4yz6bz3o] { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.pf-num[b-2w4yz6bz3o] { font-variant-numeric: tabular-nums; }
/* /Components/Shared/PrintFrame.razor.rz.scp.css */
.pfr[b-t8e1ehu30b] {
    width: 100%;
    border-collapse: collapse;
}

    .pfr > thead > tr > td[b-t8e1ehu30b], .pfr > tfoot > tr > td[b-t8e1ehu30b], .pfr > tbody > tr > td[b-t8e1ehu30b] {
        padding: 0;
        border: 0;
        vertical-align: top;
    }

    .pfr > thead > tr > td[b-t8e1ehu30b] { padding-bottom: 5mm; }
    .pfr > tfoot > tr > td[b-t8e1ehu30b] { padding-top: 4mm; }

/* Optional "سري" style mark across every page */
.pfr-watermark[b-t8e1ehu30b] {
    position: fixed;
    top: 45%;
    left: 50%;
    z-index: 0;
    font-family: var(--mh-font-heading);
    font-size: 96pt;
    font-weight: 700;
    color: rgba(30, 58, 82, .07);
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(-30deg);
    pointer-events: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

@media screen {
    .pfr-watermark[b-t8e1ehu30b] { display: none; }
}
/* /Components/Shared/PrintLetterhead.razor.rz.scp.css */
.pl[b-ovbchbnzw6] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pl-logo[b-ovbchbnzw6] {
    max-width: 30mm;
    max-height: 18mm;
    object-fit: contain;
}

.pl-text[b-ovbchbnzw6] { display: flex; flex-direction: column; line-height: 1.35; }
.pl-name[b-ovbchbnzw6] { font-family: var(--mh-font-heading); font-size: 15pt; font-weight: 700; color: #1E3A52; }
.pl-en[b-ovbchbnzw6] { font-size: 9.5pt; color: #333; }
.pl-tagline[b-ovbchbnzw6] { font-size: 9.5pt; color: #444; }
.pl-contact[b-ovbchbnzw6] { margin-top: 2px; font-size: 8.5pt; color: #555; }
/* /Components/Shared/PrintSheet.razor.rz.scp.css */
/* Official list printout: never shown on screen. Same formal style as the case report. */
.ps[b-y4m8gayypr] {
    display: none;
}

@media print {
    .ps[b-y4m8gayypr] {
        display: block;
        color: #111;
        font-family: var(--mh-font-body);
        font-size: 9.5pt;
        line-height: 1.5;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Issue date / count, at the end side of the first page (the letterhead is in PrintFrame) */
    .ps-meta[b-y4m8gayypr] {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 2mm;
    }

    .ps-office-name[b-y4m8gayypr] {
        font-family: var(--mh-font-heading);
        font-size: 15pt;
        font-weight: 700;
        line-height: 1.3;
        color: #1f2d3d;
    }

    .ps-office-en[b-y4m8gayypr] {
        font-size: 9pt;
        color: #333;
    }

    .ps-office-contact[b-y4m8gayypr] {
        margin-top: 1mm;
        font-size: 8.5pt;
        color: #444;
    }

    .ps-ref[b-y4m8gayypr] {
        flex-shrink: 0;
        margin-inline-start: auto;
        border-collapse: collapse;
        font-size: 8.5pt;
    }

        .ps-ref th[b-y4m8gayypr], .ps-ref td[b-y4m8gayypr] {
            padding: 0.6mm 2.5mm;
            border: 0.5pt solid #777;
        }

        .ps-ref th[b-y4m8gayypr] {
            background: #eef1f4;
            font-weight: 600;
            text-align: start;
            white-space: nowrap;
        }

        .ps-ref td[b-y4m8gayypr] {
            min-width: 26mm;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }

    .ps-title-block[b-y4m8gayypr] {
        margin: 5mm 0 4mm;
        text-align: center;
    }

    .ps-title[b-y4m8gayypr] {
        display: inline-block;
        margin: 0;
        padding: 0 6mm 1mm;
        border-bottom: 1pt solid #1f2d3d;
        font-family: var(--mh-font-heading);
        font-size: 16pt;
        font-weight: 700;
        color: #1f2d3d;
    }

    .ps-filters[b-y4m8gayypr] {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1mm 6mm;
        margin-top: 2mm;
        font-size: 9pt;
        color: #333;
    }

    .ps-filter-label[b-y4m8gayypr] {
        font-weight: 700;
    }

    /* Tables written by the page that uses the sheet */
    .ps[b-y4m8gayypr]  .ps-table {
        width: 100%;
        border-collapse: collapse;
    }

        .ps[b-y4m8gayypr]  .ps-table th, .ps[b-y4m8gayypr]  .ps-table td {
            padding: 1mm 1.6mm;
            border: 0.5pt solid #888;
            vertical-align: top;
            text-align: start;
        }

        .ps[b-y4m8gayypr]  .ps-table thead {
            display: table-header-group; /* repeat on every page */
        }

            .ps[b-y4m8gayypr]  .ps-table thead th {
                background: #1f2d3d;
                color: #fff;
                font-size: 8.5pt;
                font-weight: 600;
                white-space: nowrap;
            }

        .ps[b-y4m8gayypr]  .ps-table tbody tr {
            break-inside: avoid;
        }

            .ps[b-y4m8gayypr]  .ps-table tbody tr:nth-child(even) td {
                background: #f6f8fa;
            }

        .ps[b-y4m8gayypr]  .ps-table .ps-no {
            width: 7mm;
            text-align: center;
        }

        .ps[b-y4m8gayypr]  .ps-table .ps-num {
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

        .ps[b-y4m8gayypr]  .ps-table .ps-sub {
            color: #555;
            font-size: 8pt;
        }

    .ps[b-y4m8gayypr]  .ps-group {
        margin: 4mm 0 1.5mm;
        padding-bottom: 0.8mm;
        border-bottom: 0.75pt solid #1f2d3d;
        font-family: var(--mh-font-heading);
        font-size: 10.5pt;
        font-weight: 700;
        color: #1f2d3d;
        break-after: avoid;
    }

    .ps[b-y4m8gayypr]  .ps-note {
        margin: 2mm 0 0;
        color: #555;
        font-size: 8.5pt;
    }

    .ps-footer[b-y4m8gayypr] {
        display: flex;
        justify-content: space-between;
        gap: 6mm;
        margin-top: 6mm;
        padding-top: 2mm;
        border-top: 0.5pt solid #999;
        color: #555;
        font-size: 8pt;
        break-inside: avoid;
    }
}
