/* /Layout/MainLayout.razor.rz.scp.css */
/* The app frame, after StockTreeMap's Radzen Material layout. Colours are the --ml-* tokens in
   app.css, so the frame follows the light/dark setting with the rest of the page. The window
   scrolls (not an inner panel), so the header, menu and footer are sticky. */

.ml-shell[b-p4aaxima8o] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ml-page-bg);
}

/* ---- header */

.ml-header[b-p4aaxima8o] {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: var(--ml-header-height);
    padding: 0 0.5rem 0 0.25rem;
    background: var(--ml-header-bg);
    color: var(--ml-header-fg);
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14);
}

.ml-menu-button[b-p4aaxima8o] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
}

    .ml-menu-button:hover[b-p4aaxima8o] {
        background: rgba(0, 0, 0, 0.08);
    }

    .ml-menu-button svg[b-p4aaxima8o] {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

.ml-brand[b-p4aaxima8o] {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.25rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.ml-flag[b-p4aaxima8o] {
    width: 2rem;
    height: 1rem;
    flex: none;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ml-brand-name[b-p4aaxima8o] {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ml-header-actions[b-p4aaxima8o] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.ml-storage[b-p4aaxima8o] {
    color: inherit;
    opacity: 0.8;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .ml-storage:hover[b-p4aaxima8o] {
        opacity: 1;
        text-decoration: underline;
    }

.ml-user[b-p4aaxima8o] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 16rem;
}

.ml-header-actions[b-p4aaxima8o]  .ml-header-link {
    color: inherit;
    padding: 0.2rem 0.4rem;
    text-decoration: none;
}

    .ml-header-actions[b-p4aaxima8o]  .ml-header-link:hover {
        background: rgba(0, 0, 0, 0.08);
    }

/* The header is coloured, so its outline buttons are drawn in the header's own colour. */
.ml-header-actions[b-p4aaxima8o]  .btn-outline-primary {
    --bs-btn-color: var(--ml-header-fg);
    --bs-btn-border-color: var(--ml-header-fg);
    --bs-btn-hover-color: var(--ml-header-bg);
    --bs-btn-hover-bg: var(--ml-header-fg);
    --bs-btn-hover-border-color: var(--ml-header-fg);
    white-space: nowrap;
}

.ml-sign-in[b-p4aaxima8o] {
    white-space: nowrap;
}

/* ---- menu and page */

.ml-frame[b-p4aaxima8o] {
    flex: 1;
    display: flex;
    min-height: 0;
}

.ml-sidebar[b-p4aaxima8o] {
    flex: none;
    width: var(--ml-sidebar-width);
    position: sticky;
    top: var(--ml-header-height);
    align-self: flex-start;
    height: calc(100vh - var(--ml-header-height) - var(--ml-footer-height));
    overflow-y: auto;
    background: var(--ml-surface);
    border-right: 1px solid var(--ml-border);
}

.ml-body[b-p4aaxima8o] {
    flex: 1;
    min-width: 0;
}

.ml-backdrop[b-p4aaxima8o] {
    display: none;
}

.ml-shell.nav-toggled .ml-sidebar[b-p4aaxima8o] {
    display: none;
}

/* Phones: the menu is hidden until the menu button opens it over the page. */
@media (max-width: 767.98px) {
    .ml-sidebar[b-p4aaxima8o] {
        display: none;
        position: fixed;
        top: var(--ml-header-height);
        bottom: 0;
        left: 0;
        z-index: 1026;
        align-self: auto; /* flex-start would size a fixed box to its content instead of top-to-bottom */
        height: auto;
        width: min(var(--ml-sidebar-width), 85vw);
        box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
    }

    .ml-shell.nav-toggled .ml-sidebar[b-p4aaxima8o] {
        display: block;
    }

    .ml-shell.nav-toggled .ml-backdrop[b-p4aaxima8o] {
        display: block;
        position: fixed;
        inset: var(--ml-header-height) 0 0 0;
        z-index: 1025;
        background: rgba(0, 0, 0, 0.32);
    }
}

/* ---- footer */

.ml-footer[b-p4aaxima8o] {
    position: sticky;
    bottom: 0;
    z-index: 1020;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    min-height: var(--ml-footer-height);
    padding: 0.25rem 0.75rem;
    background: var(--ml-header-bg);
    color: var(--ml-header-fg);
    font-size: 0.75rem;
}

.ml-disclaimer[b-p4aaxima8o] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.85;
}

    .ml-disclaimer svg[b-p4aaxima8o] {
        width: 0.9rem;
        height: 0.9rem;
        fill: currentColor;
        flex: none;
    }

.ml-footer-links[b-p4aaxima8o] {
    display: inline-flex;
    gap: 1rem;
    font-size: 0.85rem;
}

    .ml-footer-links a[b-p4aaxima8o] {
        color: inherit;
    }

/* ---- unhandled-error bar */

#blazor-error-ui[b-p4aaxima8o] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1050; /* above the sticky footer */
}

    #blazor-error-ui .dismiss[b-p4aaxima8o] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Layout/NavMenu.razor.rz.scp.css */
/* The menu, after StockTreeMap's Radzen panel menu: full-width rows with a hairline between
   them, an icon and the label, and the current page tinted in the accent colour. */

.ml-nav[b-9s4rdcjy0e] {
    display: flex;
    flex-direction: column;
}

.ml-nav[b-9s4rdcjy0e]  .ml-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--ml-border);
    color: var(--ml-nav-fg);
    font-size: 1rem;
    text-decoration: none;
}

    .ml-nav[b-9s4rdcjy0e]  .ml-nav-link:hover {
        background: var(--ml-nav-hover-bg);
    }

    .ml-nav[b-9s4rdcjy0e]  .ml-nav-link.active {
        background: var(--ml-nav-active-bg);
        color: var(--ml-nav-active-fg);
        font-weight: 500;
    }

    .ml-nav[b-9s4rdcjy0e]  .ml-nav-link:focus-visible {
        outline: 2px solid var(--ml-nav-active-fg);
        outline-offset: -2px;
    }

/* Icons are masks filled with the text colour, so they follow the active and dark colours. */
.bi[b-9s4rdcjy0e] {
    flex: none;
    display: inline-block;
    width: 1.375rem;
    height: 1.375rem;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.bi-house-door-fill-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E"); }
.bi-plus-square-fill-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E"); }
.bi-list-nested-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E"); }
.bi-tag-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-tag' viewBox='0 0 16 16'%3E%3Cpath d='M6 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm-1 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0z'/%3E%3Cpath d='M2 1h4.586a1 1 0 0 1 .707.293l7 7a1 1 0 0 1 0 1.414l-4.586 4.586a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 1 6.586V2a1 1 0 0 1 1-1zm0 5.586 7 7L13.586 9l-7-7H2v4.586z'/%3E%3C/svg%3E"); }
.bi-tags-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M3 2v4.586l7 7L14.586 9l-7-7H3zM2 2a1 1 0 0 1 1-1h4.586a1 1 0 0 1 .707.293l7 7a1 1 0 0 1 0 1.414l-4.586 4.586a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 2 6.586V2z'/%3E%3Cpath d='M5.5 5a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1zm0 1a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM1 7.086a1 1 0 0 0 .293.707L8.75 15.25l-.043.043a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 0 7.586V3a1 1 0 0 1 1-1v5.086z'/%3E%3C/svg%3E"); }
.bi-bank-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 1 4.5V6h14V4.5L8 1ZM2.5 7h2v5h-2V7Zm4.5 0h2v5H7V7Zm4.5 0h2v5h-2V7ZM1 13h14v2H1v-2Z'/%3E%3C/svg%3E"); }
.bi-pie-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7 1.05A7 7 0 1 0 14.95 9H7V1.05ZM9 0v7h7A7 7 0 0 0 9 0Z'/%3E%3C/svg%3E"); }
.bi-receipt-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M3 1h10v14l-2-1.2L9 15l-2-1.2L5 15l-2-1.2V1Zm2 3v1h6V4H5Zm0 3v1h6V7H5Zm0 3v1h4v-1H5Z'/%3E%3C/svg%3E"); }
.bi-database-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cellipse cx='8' cy='3' rx='6' ry='2'/%3E%3Cpath d='M2 4.5c0 1.1 2.7 2 6 2s6-.9 6-2V8c0 1.1-2.7 2-6 2S2 9.1 2 8V4.5Zm0 5c0 1.1 2.7 2 6 2s6-.9 6-2V13c0 1.1-2.7 2-6 2s-6-.9-6-2V9.5Z'/%3E%3C/svg%3E"); }
.bi-camera-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 2 4.6 3.5H2.5A1.5 1.5 0 0 0 1 5v7.5A1.5 1.5 0 0 0 2.5 14h11a1.5 1.5 0 0 0 1.5-1.5V5a1.5 1.5 0 0 0-1.5-1.5h-2.1L10.5 2h-5ZM8 5.5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 1.3a1.7 1.7 0 1 0 0 3.4 1.7 1.7 0 0 0 0-3.4Z'/%3E%3C/svg%3E"); }
.bi-question-circle-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.326-3.022-2.326-1.205 0-2.533.538-2.68 2.115zm1.919 5.469c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z'/%3E%3C/svg%3E"); }
.bi-download-nav-menu[b-9s4rdcjy0e] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-download' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5'/%3E%3Cpath d='M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z'/%3E%3C/svg%3E"); }
