/* Yasmeen E-File: compact, role-aware navigation on phones/tablets.
   All available routes remain visible; the user's account is a quiet footer. */
@media screen and (max-width: 920px) {
    .site-header {
        isolation: isolate;
    }

    .header-inner {
        position: relative;
    }

    .js .nav-toggle {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 42px;
        gap: 7px;
        padding: 8px 12px;
        border: 1px solid #d2e2e2;
        border-radius: 11px;
        background: #fff;
        color: #19444d;
        font-size: 0.88rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .js .nav-toggle[aria-expanded="true"] {
        background: #eaf5f2;
        border-color: #a7cfc3;
        color: #126558;
    }

    .nav-toggle-icon {
        display: inline-block;
        min-width: 16px;
        font-size: 1.13rem;
        line-height: 1;
        text-align: center;
    }

    .js .site-nav {
        position: absolute;
        top: calc(100% + 6px);
        inset-inline: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: 580px;
        margin-inline: auto;
        padding: 12px;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        align-items: stretch;
        column-gap: 8px;
        row-gap: 8px;
        max-height: calc(100vh - 96px);
        max-height: calc(100dvh - 96px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid #d8e7e5;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 20px 42px rgba(14, 55, 67, 0.15);
        z-index: 115;
        direction: rtl;
        text-align: right;
    }

    .js .site-nav.is-open {
        display: grid;
    }

    .js .site-nav > a {
        min-width: 0;
        min-height: 47px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 5px;
        border: 1px solid #e1ebeb;
        border-radius: 10px;
        color: #244a54;
        background: #f8fbfa;
        font-size: 0.83rem;
        font-weight: 750;
        line-height: 1.35;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        transition: background-color 150ms ease, border-color 150ms ease;
    }

    .js .site-nav > a:hover,
    .js .site-nav > a:focus-visible,
    .js .site-nav > a[aria-current="page"] {
        border-color: #acd2c9;
        background: #e6f4f0;
        color: #0d665e;
    }

    .js .site-nav > .nav-user {
        grid-column: 1;
        grid-row: auto;
        display: flex;
        min-width: 0;
        align-self: stretch;
        justify-content: center;
        align-items: flex-start;
        padding: 10px 8px 0 5px;
        margin-top: 3px;
        border-top: 1px solid #e0eae9;
        font-size: 0.78rem;
        line-height: 1.3;
        color: #315660;
        overflow-wrap: anywhere;
    }

    .js .site-nav > .nav-user small {
        font-size: 0.73rem;
        color: #6c848b;
        opacity: 1;
    }

    .js .site-nav > .nav-logout-form {
        grid-column: 2;
        grid-row: auto;
        display: flex;
        align-items: stretch;
        padding-top: 9px;
        margin-top: 3px;
        border-top: 1px solid #e0eae9;
        min-width: 0;
    }

    .js .site-nav > .nav-logout-form .nav-logout {
        width: 100%;
        min-height: 43px;
        padding: 7px 8px;
        border: 1px solid #efd9d9;
        border-radius: 10px;
        background: #fdf1f1;
        color: #943434;
        font-size: 0.8rem;
        line-height: 1.3;
        white-space: normal;
    }
}

@media screen and (max-width: 355px) {
    .js .site-nav {
        padding: 9px;
        column-gap: 6px;
        row-gap: 7px;
    }

    .js .site-nav > a {
        font-size: 0.78rem;
        min-height: 45px;
        padding-inline: 4px;
    }
}

/* Do not expose navigation in printed receipts and reports. */
@media print {
    .site-nav,
    .nav-toggle {
        display: none !important;
    }
}
