/*
 * The Manager app's own look: its page frame (Components/ManagerFrame: a dark head with the page's figure, its pills
 * and round shortcuts, then rounded cards) and the pages it hosts, the Waiter's manager overview and stock and the
 * Admin's overview. Every rule starts at .manager-app-shell or at a frame class (.mp-*), so the Waiter and the Admin
 * keep theirs. Linked after waiter-manager.css (App.razor), so a rule here outweighs a scoped rule of the same
 * specificity. The head stays dark in both themes; the dark theme repeats its colours explicitly (below), so the
 * generated dark block cannot lighten it.
 */

.waiter-app-shell.manager-app-shell {
    --wm-page: #f1f3f8;
    --wm-radius: 16px;
    --wm-shadow: var(--mg-card-shadow);
    --mg-glow-cool: rgb(112 118 255 / 16%);
    --mg-glow-warm: rgb(255 150 120 / 13%);
    --mg-card-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 14px 32px -16px rgb(16 24 40 / 16%);
    --mg-glass: rgb(255 255 255 / 58%);
    --mg-glass-edge: rgb(255 255 255 / 78%);
    --mg-glass-shadow: 0 16px 36px -12px rgb(16 24 40 / 24%), 0 2px 6px rgb(16 24 40 / 6%);
    --mg-glass-highlight: inset 0 1px 0 rgb(255 255 255 / 85%);
    --mg-sidebar-edge: rgb(16 24 40 / 8%);
    --mg-glass-pill: rgb(39 47 118 / 9%);
    --mg-glass-pill-edge: rgb(255 255 255 / 55%);
    --mg-track: rgb(16 24 40 / 6%);
    --mg-chip: #ffffff;
    --mg-logo-tile: #ffffff;
    --mg-chip-active: #1a1c26;
    --mg-chip-active-ink: #ffffff;
    --mg-hero:
        radial-gradient(80% 110% at 100% 100%, rgb(255 140 105 / 78%) 0%, rgb(255 140 105 / 0%) 62%),
        radial-gradient(70% 90% at 78% 0%, rgb(186 104 222 / 62%) 0%, rgb(186 104 222 / 0%) 64%),
        linear-gradient(140deg, #1b2167 0%, #2c2d8c 48%, #4a3aa4 100%);
    --mp-radius: 16px;
    --mp-hero-base: #0e1016;
    --mp-hero-top: #1b1d40;
    --mp-hero-bg:
        radial-gradient(80% 48% at 88% 48%, rgb(124 92 255 / 50%) 0%, rgb(124 92 255 / 0%) 70%),
        radial-gradient(70% 50% at 8% 80%, rgb(255 128 86 / 30%) 0%, rgb(255 128 86 / 0%) 70%),
        linear-gradient(180deg, #1b1d40 0%, #0e1016 100%);
    --mp-hero-ink: #ffffff;
    --mp-hero-muted: rgb(255 255 255 / 68%);
    --mp-hero-glass: rgb(255 255 255 / 14%);
    --mp-hero-glass-strong: rgb(255 255 255 / 24%);
    --mp-hero-up: #8ff0b6;
    --mp-hero-down: #ffb3bf;
    --mp-hero-chart: #67e8f9;
    --mp-hero-chart-glow: rgb(103 232 249 / 55%);
    --mp-card: #ffffff;
    --mp-card-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 12px 32px -18px rgb(16 24 40 / 28%);
    --mp-chip-shadow: inset 0 0 0 1px rgb(16 24 40 / 8%), 0 4px 14px -8px rgb(16 24 40 / 22%);
    --mp-ink: #14161f;
    --mp-muted: #6f7387;
    --mp-line: #eef0f4;
    --mp-soft: #f3f4f8;
    --mp-skeleton: rgb(16 24 40 / 8%);
    --mp-shimmer: rgb(255 255 255 / 70%);
    --mp-accent: #4f46e5;
    --mp-nav-active: #eceefa;
    --mp-bar-glass: rgb(241 243 248 / 86%);
    --mp-bar-smoke: rgb(27 29 64 / 74%);
    --mp-nav-active-ink: #23246e;
    --mp-warning: #f79009;
    --mp-up: #15803d;
    --mp-down: #c4323b;
    --mp-teal: #13897c;
    --mp-teal-soft: #e3f6f1;
    --mp-violet: #6456d9;
    --mp-violet-soft: #ecebfd;
    --mp-peach: #d4643a;
    --mp-peach-soft: #fdeee6;
    --mp-blue: #2f6fdb;
    --mp-blue-soft: #e6effc;
    --mp-rose: #c4323b;
    --mp-rose-soft: #fdeaea;
    --mg-bar: linear-gradient(90deg, #2c2d8c 0%, #7556d8 100%);
    background:
        radial-gradient(70% 45% at 0% 0%, var(--mg-glow-cool) 0%, transparent 70%),
        radial-gradient(60% 40% at 100% 8%, var(--mg-glow-warm) 0%, transparent 70%),
        var(--wm-page);
}

/* The glows stay on the shell: the pages, their titles and the Admin overview lie over them without a fill. */
.manager-app-shell .wm-page,
.manager-app-shell .wm-page__body .waiter-chat-header,
.manager-app-shell [data-testid="waiter-stock-root"] > .waiter-chat-header,
.manager-app-shell .analytics-page {
    background: transparent;
}

/* ---------- The tab bar: frosted glass over the page ---------- */

@media (max-width: 1023px) {
    .manager-app-shell .wm-shell .wm-nav {
        border-color: var(--mg-glass-edge);
        box-shadow: var(--mg-glass-shadow), var(--mg-glass-highlight);
    }

    .manager-app-shell .wm-shell .wm-nav::before {
        background: var(--mg-glass);
        backdrop-filter: blur(22px) saturate(185%);
        -webkit-backdrop-filter: blur(22px) saturate(185%);
    }

    .manager-app-shell .wm-shell .wm-nav::after {
        height: 52px;
        background: var(--mg-glass-pill);
        box-shadow: inset 0 0 0 1px var(--mg-glass-pill-edge);
    }
}

/* The tabs carry their names, so the bar stands 6px taller than the Waiter's and the pages keep that much more room
   under their last card. */
@media (max-width: 639px) {
    .manager-app-shell .wm-shell--rail {
        --wm-bottom-clearance: calc(82px + var(--wm-browser-bottom-overlap) + var(--wm-nav-safe-bottom));
    }
}

/* ---------- Pinned controls, chips and pickers ---------- */

/* Flat chips, as the sidebar's tabs: the overview's sections scroll sideways, and their row would cut a shadow off. */
.manager-app-shell .wm-chip {
    border-color: transparent;
    background: var(--mg-chip);
    color: var(--wm-ink-2);
    box-shadow: none;
}

.manager-app-shell .wm-chip.wm-chip--active {
    background: var(--mg-chip-active);
    color: var(--mg-chip-active-ink);
    box-shadow: none;
}

/* ---------- The Admin overview's headline: the Manager's dark banner ---------- */

.manager-app-shell .analytics-revenue-card {
    border-color: transparent;
    background: var(--mp-hero-bg);
    box-shadow: var(--mp-card-shadow);
}

.manager-app-shell .analytics-revenue-card::after {
    display: none;
}

/* ---------- Cards and bars ---------- */

.manager-app-shell .wm-page .wm-card {
    border-radius: var(--wm-radius);
    box-shadow: var(--mg-card-shadow);
}

.manager-app-shell .wm-page .wm-track__fill {
    background: var(--mg-bar);
}

/* ---------- The page frame (Components/ManagerFrame) ---------- */

/* A frame page scrolls from the screen's top edge: the head runs edge to edge, the cards keep their own gutters. */
.manager-app-shell .wm-page__body.mp-scroller {
    padding-top: 0;
    padding-inline: 0;
}

.mp {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: var(--mp-ink);
}

/* The header (.mp-bar) holds the search, the pills that choose what the page shows and its round actions; with
   .mp-bar--sticky it stays at the top while the page scrolls, so the location and the day can change at any time. The
   page's name is the open tab's: its title (.mp-title) is for screen readers only. On a phone the header floats over
   the page as smoked glass with no band behind it; a computer frosts it once the page scrolls under it. */
.mp-bar {
    position: relative;
    z-index: 20;
}

.mp-bar--sticky {
    position: sticky;
    top: 0;
}

.mp-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "figure"
        "chart"
        "shortcuts";
    padding: 0 16px 60px;
    background: var(--mp-hero-bg);
    color: var(--mp-hero-ink);
    text-align: center;
}

.mp-banner {
    display: contents;
}

.mp-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--mp-hero-glass-strong);
    box-shadow: 0 0 0 2px var(--mp-hero-glass);
    color: var(--mp-hero-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- The search ---------- */

.mp-search {
    min-width: 0;
}

.mp-search__field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--mp-hero-glass);
    color: var(--mp-hero-muted);
    cursor: text;
}

.mp-search__field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mp-hero-ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 500;
    outline: none;
}

.mp-search__field input::placeholder {
    color: var(--mp-hero-muted);
    opacity: 1;
}

.mp-search__field:focus-within {
    box-shadow: inset 0 0 0 1.5px var(--mp-hero-ink);
}

.mp-search__kbd {
    display: none;
    flex: none;
    padding: 2px 7px;
    border-radius: 7px;
    background: var(--mp-hero-glass);
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
}

.mp-search__kbd-mac,
:root[data-admin-mac] .mp-search__kbd-pc {
    display: none;
}

:root[data-admin-mac] .mp-search__kbd-mac {
    display: inline;
}

.mp-search__clear {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
    cursor: pointer;
}

/* The results open under the header, as a card of lines. */
.mp-search__panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: min(62vh, 520px);
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 16px;
    background: var(--mp-card);
    box-shadow: 0 18px 48px -12px rgb(12 14 40 / 38%), 0 2px 8px rgb(12 14 40 / 10%);
    color: var(--mp-ink);
    text-align: left;
}

.mp-search__group {
    padding: 10px 12px 4px;
    color: var(--mp-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mp-search__option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 6px 10px;
    border-radius: 14px;
    cursor: pointer;
}

.mp-search__option[aria-selected="true"] {
    background: var(--mp-nav-active);
}

.mp-search__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--mp-violet-soft);
    color: var(--mp-violet);
}

.mp-search__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mp-search__title,
.mp-search__context {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-search__title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 19px;
}

.mp-search__context {
    color: var(--mp-muted);
    font-size: 12.5px;
    line-height: 17px;
}

.mp-search__empty {
    margin: 0;
    padding: 16px 12px;
    color: var(--mp-muted);
    font-size: 14px;
}

/* A card or line a search opened is marked for a moment. */
.mp-found {
    animation: mp-found 1.8s ease-out;
}

@keyframes mp-found {
    0%,
    35% {
        box-shadow: 0 0 0 3px var(--mp-accent);
    }

    100% {
        box-shadow: 0 0 0 3px transparent;
    }
}

/* ---------- Chips: a page's filters, at the head's foot ---------- */

.mp-chips {
    display: flex;
    gap: 8px;
    min-width: 0;
    padding: 2px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.mp-chips::-webkit-scrollbar {
    display: none;
}

.mp-shortcuts > .mp-chips {
    flex: 1 1 auto;
}

.mp-chips > .mp-pill,
.mp-chip {
    flex: none;
}

.mp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.mp-chip__count {
    opacity: 0.7;
}

.mp-chip--active {
    background: var(--mp-hero-ink);
    color: var(--mp-hero-base);
}

.mp-chip:focus-visible {
    outline: 2px solid var(--mp-hero-ink);
    outline-offset: 2px;
}

.mp-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px;
    color: var(--mp-muted);
    font-size: 13px;
}

.mp-actions {
    display: flex;
    gap: 8px;
}

/* The page's refresh, small and quiet at the end of its figure's note. */
.mp-note .mp-actions {
    display: inline-flex;
    align-items: center;
}

.mp-note .mp-action {
    width: 26px;
    height: 26px;
    background: transparent;
    color: var(--mp-hero-muted);
}

/* The icon's own box (LucideIcon's inline 18px) shrinks with it, so the icon stays in the button's middle. */
.mp-note .mp-action > span {
    width: 15px !important;
    height: 15px !important;
}

.mp-note .mp-action svg {
    width: 15px;
    height: 15px;
}

/* A refresh with nothing to refresh keeps its place, unseen. */
.mp-note .mp-action--idle {
    visibility: hidden;
}

.mp-note .mp-action:hover {
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
}

/* What the page shows (a location, a day, the company), written at the top of a phone's head; a computer's pills say
   it. */
.mp-context {
    display: none;
}

.mp-pill__chevron {
    flex: none;
}

.mp-action {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.mp-action:active {
    transform: scale(0.94);
}

.mp-action:disabled {
    cursor: default;
}

.mp-action:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mp-action--busy svg {
    animation: mp-spin 0.9s linear infinite;
}

.mp-figure {
    grid-area: figure;
    min-width: 0;
    margin-top: 22px;
}

.mp-eyebrow {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--mp-hero-muted);
}

.mp-amount {
    margin-top: 6px;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.mp-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    min-height: 18px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 18px;
    color: var(--mp-hero-muted);
}

/* A page's note keeps its line while its figures load, so nothing under it moves when the line arrives. */

.mp-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.mp-pills > * {
    flex: 0 1 auto;
    min-width: 0;
}

.mp-shortcuts {
    grid-area: shortcuts;
    display: flex;
    justify-content: space-around;
    gap: 4px;
    min-width: 0;
    margin: 26px -16px 0;
    padding: 2px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.mp-shortcuts::-webkit-scrollbar {
    display: none;
}

/* The points of sale page when its period sold nothing: the app's illustration, what happened and what to do. */
.mp-pos-empty strong {
    color: var(--mp-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.mp-pos-empty span {
    max-width: 300px;
    color: var(--mp-muted);
    line-height: 18px;
}

/* On a phone or a tablet a page arrives like an app's screen (ManagerShell): its head's content and its cards slide in
   a little from the side it comes from and fade in, while the dark head, the header's search and the tab bar stay
   put, so nothing flashes. A computer, and a reader who asks for less motion, change pages at once. */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
    .manager-enter .mp-hero > *,
    .manager-enter .mp-body {
        animation: manager-page-enter 320ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    }

    .manager-enter .mp-body {
        animation-delay: 40ms;
    }
}

@keyframes manager-page-enter {
    from {
        opacity: 0;
        transform: translate3d(calc(var(--manager-enter-dir, 0) * 28px), 0, 0);
    }
}

/* A page's chart in the head: a board of dots across the phone's whole width, between the figure and the shortcuts
   (ManagerDotChart). Faint dots are the board, the bright ones the line, the softer ones under it what it covers; the
   line is drawn from the left when it arrives. A wider screen draws a finer board, so a dot keeps its size. */
.mp-chart {
    grid-area: chart;
    min-width: 0;
    margin: 20px -16px 0;
}

.mp-dots__stage {
    position: relative;
}

.mp-dots__board {
    display: block;
    width: 100%;
    height: auto;
}

/* A period that sold nothing: the line lies flat on the bottom row, dimmer, and a word stands over the board. */
.mp-dots--empty .mp-dots__line {
    opacity: 0.45;
    filter: none;
}

.mp-dots__empty {
    position: absolute;
    top: 46%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--mp-hero-glass);
    box-shadow: 0 0 0 1px var(--mp-hero-glass);
    color: var(--mp-hero-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(6px);
}

.mp-dots__empty > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-dots__board--wide {
    display: none;
}

.mp-dots__faint {
    fill: rgb(255 255 255 / 8%);
}

.mp-dots__area-dot {
    fill: var(--mp-hero-chart);
    opacity: 0.32;
}

.mp-dots__line {
    fill: var(--mp-hero-chart);
    filter: drop-shadow(0 0 3px var(--mp-hero-chart-glow));
}

.mp-dots__drawn {
    animation: mp-dots-draw 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

@keyframes mp-dots-draw {
    from {
        clip-path: inset(-10% 100% -10% -10%);
    }

    to {
        clip-path: inset(-10% -10% -10% -10%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-dots__drawn {
        animation: none;
    }
}

.mp-dots__ticks {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 16px 0;
    font-size: 11px;
    line-height: 14px;
    color: var(--mp-hero-muted);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
    .mp-dots__board--compact {
        display: none;
    }

    .mp-dots__board--wide {
        display: block;
    }
}

.mp-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: -40px;
    padding: 0 12px;
    transition: opacity 0.2s ease;
}

/* While a page reads its figures again (a refresh, another location, day or period), each of its cards keeps its
   place and size and shows a skeleton over its content: a title bar and lines with a sheen passing over them, on the
   card's own colour, instead of fading the old figures out. */
.mp-body--refreshing :is(.mp-card, .wm-card, .an-panel):not(:is(.mp-card, .wm-card, .an-panel) *) {
    position: relative;
    overflow: hidden;
}

.mp-body--refreshing :is(.mp-card, .wm-card, .an-panel):not(:is(.mp-card, .wm-card, .an-panel) *)::after {
    position: absolute;
    z-index: 5;
    inset: 0;
    border-radius: inherit;
    background-color: var(--mp-card);
    background-image:
        linear-gradient(100deg, transparent 20%, var(--mp-shimmer) 50%, transparent 80%),
        linear-gradient(var(--mp-skeleton), var(--mp-skeleton)),
        repeating-linear-gradient(to bottom, var(--mp-skeleton) 0 12px, transparent 12px 30px);
    background-position: -150% 0, 20px 20px, 20px 58px;
    background-repeat: no-repeat;
    background-size: 60% 100%, min(40%, 220px) 16px, calc(100% - 40px) calc(100% - 78px);
    content: "";
    animation: mp-skeleton-sheen 1.3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mp-skeleton-sheen {
    to {
        background-position: 250% 0, 20px 20px, 20px 58px;
    }
}

.mp-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* The panel's gap spaces the hosted pages' cards, which bring their own top margin for the Waiter's page. */
.manager-app-shell .mp-panel > .mt-12 {
    margin-top: 0;
}

/* A pill: what the page shows. A picker lies over it, invisible, so a tap opens the phone's own list or calendar. */
.mp-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.mp-pill__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-pill--picker {
    cursor: pointer;
}

.mp-pill--picker:focus-within {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mp-pill__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
}

/* A Chromium date input opens its calendar only from its icon: the icon is stretched over the whole pill, so a click
   anywhere on it opens the calendar, as a tap does on a phone. */
.mp-pill__input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: transparent;
    cursor: pointer;
}

/* A round shortcut: the picked one turns light. */
.mp-shortcut {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 60px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mp-hero-ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 16px;
    text-decoration: none;
    cursor: pointer;
}

.mp-shortcut__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mp-hero-glass);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

/* A shortcut's count sits on its circle's edge: the tables open now, the receipts to review. */
.mp-shortcut__icon {
    position: relative;
}

.mp-shortcut__badge {
    position: absolute;
    top: -3px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--mp-warning);
    box-shadow: 0 0 0 2px var(--mp-hero-base);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

.mp-shortcut:active .mp-shortcut__icon {
    transform: scale(0.94);
}

.mp-shortcut__label {
    color: var(--mp-hero-muted);
    white-space: nowrap;
}

.mp-shortcut--active .mp-shortcut__icon {
    background: var(--mp-hero-ink);
    color: var(--mp-hero-base);
}

/* The picked label is thickened by a fine stroke, not a heavier weight, so it keeps its width and the circles above
   stay where they are. */
.mp-shortcut--active .mp-shortcut__label {
    color: var(--mp-hero-ink);
    -webkit-text-stroke: 0.35px currentColor;
}

.mp-shortcut:focus-visible {
    outline: none;
}

.mp-shortcut:focus-visible .mp-shortcut__icon {
    box-shadow: 0 0 0 2px var(--mp-hero-ink);
}

/* A figure's change. */
.mp-change {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
}

.mp-change--up {
    color: var(--mp-up);
}

.mp-change--down {
    color: var(--mp-down);
}

.mp-change--flat {
    color: var(--mp-muted);
}

/* A change on a ranked line's meta: the line's own size. */
.wm-rank__meta .mp-change {
    font-size: inherit;
    line-height: inherit;
    vertical-align: bottom;
}

.mp-hero .mp-change--up {
    color: var(--mp-hero-up);
}

.mp-hero .mp-change--down {
    color: var(--mp-hero-down);
}

.mp-hero .mp-change--flat {
    color: var(--mp-hero-muted);
}

/* Money: the bani raised after the lei, in the size and colour of where it stands. */
.mp-money {
    display: inline-flex;
    margin: 0;
    vertical-align: baseline;
}

.mp-money .mp-money__price {
    margin: 0;
    color: inherit !important;
    font: inherit;
    letter-spacing: inherit;
    white-space: nowrap;
}

.mp-money .mp-money__price sup {
    position: relative;
    top: -0.72em;
    margin-left: 0.06em;
    font-size: 0.5em;
    letter-spacing: 0;
    vertical-align: baseline;
}

.mp-money .mp-money__currency {
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0;
}

.mp-money__text {
    white-space: nowrap;
}

/* Money inside a shared report's line, cell or figure (MoneyText): the bani raised, the lei code a little smaller,
   at the size of where it stands. */
.mp-money--inline .mp-money__currency {
    margin-left: 0.1em;
    font-size: 0.72em;
}

.mp-money--inline .mp-money__price sup {
    top: -0.5em;
    font-size: 0.62em;
}

/* ---------- A report's table on a narrow screen ---------- */

/* Where its card is too narrow for its columns, each row becomes a card of its own: its first cell as the title, every
   other cell a line with its column's name (data-label, AnalyticsTableLabels.mjs) and its value. */
@container (max-width: 560px) {
    .manager-app-shell .an-table-scroll .an-table,
    .manager-app-shell .an-table-scroll .an-table tbody,
    .manager-app-shell .an-table-scroll .an-table tfoot,
    .manager-app-shell .an-table-scroll .an-table tr {
        display: block;
        width: 100%;
    }

    .manager-app-shell .an-table-scroll .an-table thead {
        display: none;
    }

    .manager-app-shell .an-table-scroll .an-table tr {
        padding: 12px 14px;
        border-bottom: 1px solid var(--mp-line);
    }

    .manager-app-shell .an-table-scroll .an-table tbody tr:last-child {
        border-bottom: 0;
    }

    /* A row's hover tints the whole card, not each of its lines. */
    .manager-app-shell .an-table-scroll .an-table tbody tr:hover {
        background: var(--mp-nav-active);
    }

    .manager-app-shell .an-table-scroll .an-table tbody tr:hover > * {
        background: none;
    }

    .manager-app-shell .an-table-scroll .an-table tr > * {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
        padding: 3px 0;
        border: 0;
        background: none;
        text-align: right;
        white-space: normal;
    }

    .manager-app-shell .an-table-scroll .an-table tr > *[data-label]::before {
        flex: 0 1 auto;
        color: var(--mp-muted);
        font-size: 12.5px;
        font-weight: 500;
        text-align: left;
        content: attr(data-label);
    }

    .manager-app-shell .an-table-scroll .an-table tr > :first-child {
        display: block;
        padding: 0 0 6px;
        font-weight: 650;
        text-align: left;
    }

    .manager-app-shell .an-table-scroll .an-table tr > :first-child::before {
        display: none;
    }
}

/* A line of text still read: a pulsing bar of its size. */
.mp-skeleton {
    display: inline-block;
    border-radius: 8px;
    background: var(--mp-skeleton);
    color: transparent !important;
    user-select: none;
    animation: mp-pulse 1.4s ease-in-out infinite;
}

.mp-hero .mp-skeleton {
    background: var(--mp-hero-glass);
}

/* A card. */
.mp-card,
.manager-app-shell .mp .wm-card {
    min-width: 0;
    border: 0;
    border-radius: var(--mp-radius);
    background: var(--mp-card);
    box-shadow: var(--mp-card-shadow);
}

.mp-card {
    padding: 16px;
}

.mp-card--rows {
    padding: 4px 16px;
}

/* The stock page's search, order and filters: the filter row runs to the card's edges and closes it. */
.mp-card.mp-card--controls {
    --nexus-waiter-page-gutter: 16px;
    padding-bottom: 4px;
}

/* ---------- The Manager's day: what is left, and what to look at ---------- */

.mp-day {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-day--sales {
    --day-tone: var(--mp-violet);
    --day-soft: var(--mp-violet-soft);
}

.mp-day--vat {
    --day-tone: var(--mp-blue);
    --day-soft: var(--mp-blue-soft);
}

.mp-day--materials {
    --day-tone: var(--mp-peach);
    --day-soft: var(--mp-peach-soft);
}

.mp-day--remaining {
    --day-tone: var(--mp-teal);
    --day-soft: var(--mp-teal-soft);
}

.mp-day__headline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mp-day__label,
.mp-day__share {
    color: var(--mp-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.mp-day__share {
    font-weight: 500;
}

.mp-day__figure {
    color: var(--mp-ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 34px;
    letter-spacing: -0.02em;
}

.mp-day__figure--loss {
    color: var(--mp-down);
}

/* One bar split into the sales' parts, each in its colour; an estimated part is hatched. */
.mp-day__bar {
    display: flex;
    gap: 3px;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--mp-soft);
}

.mp-day__segment {
    display: block;
    min-width: 6px;
    height: 100%;
    background: var(--day-tone);
}

.mp-day__segment--estimated {
    background: repeating-linear-gradient(135deg, var(--day-tone) 0 5px, var(--day-soft) 5px 9px);
}

.mp-day__parts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-day__part {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--mp-line);
}

.mp-day__part--total {
    border-top: 0;
}

/* The last part closes the card: the card's own padding is the space under it. */
.mp-day__part:last-child {
    padding-bottom: 0;
}

.mp-day__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--day-soft);
    color: var(--day-tone);
}

.mp-day__name,
.mp-day__value {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mp-day__name {
    flex: 1;
    color: var(--mp-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 19px;
}

.mp-day__value {
    flex: none;
    align-items: flex-end;
    color: var(--mp-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.mp-day__name small,
.mp-day__value small {
    color: var(--mp-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.mp-day__missing {
    color: var(--mp-muted);
}

.mp-watch .mp-card__title {
    padding: 14px 0 2px;
}

.mp-watch .mp-row__value {
    font-size: 15px;
}

/* The shared report's figure cards in the Manager: one structure for all, the name kept to two lines so every value
   in a row stands on the same line, however long its name. */
.manager-app-shell .an-stat {
    container-type: inline-size;
    align-content: start;
    gap: 6px;
}

/* A card narrow enough for its name to wrap keeps two lines for it, so the values of its row line up; a wide card
   (alone on its row) keeps one. */
@container (max-width: 240px) {
    .manager-app-shell .an-stat__label {
        min-height: 2.6em;
    }
}

.manager-app-shell .an-stat__label {
    align-items: flex-start;
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.3em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.manager-app-shell .an-stat__label > :first-child {
    margin-right: 6px;
    vertical-align: -2px;
}

/* ---------- The stock page's supply plan ---------- */

.mp-supply-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
}

.mp-supply-settings__steppers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mp-supply-settings__note {
    margin: 0;
    color: var(--mp-muted);
    font-size: 12.5px;
    line-height: 17px;
}

.mp-stepper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.mp-stepper__label {
    color: var(--mp-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.mp-stepper__control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--mp-soft);
}

.mp-stepper__control strong {
    color: var(--mp-ink);
    font-size: 14.5px;
}

.mp-stepper__control button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--mp-card);
    box-shadow: var(--mp-chip-shadow);
    color: var(--mp-ink);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.mp-stock.mp-supply {
    display: block;
    padding: 0;
}

.mp-supply__line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* A small round chevron under the figure says the line opens; it turns over while the chart is open. */
.mp-supply__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 26px;
    height: 26px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--mp-soft);
    color: var(--mp-muted);
    transition: transform 0.2s ease;
}

.mp-supply__line[aria-expanded="true"] .mp-supply__toggle {
    transform: rotate(180deg);
}

/* How many days the stock lasts, against the delivery-plus-reserve mark in the middle. */
.mp-supply__cover {
    position: relative;
    display: block;
    height: 6px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--mp-soft);
}

.mp-supply__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: var(--stock-tone);
}

.mp-supply__mark {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    border-radius: 2px;
    background: var(--mp-ink);
    opacity: 0.55;
}

.mp-supply__flow {
    max-width: 720px;
    padding: 0 0 14px 48px;
}

/* A phone gives the opened article's charts the whole line, under its icon as well. */
@media (max-width: 639px) {
    .mp-supply__flow {
        padding-left: 0;
    }
}

.mp-supply__lasts {
    color: var(--stock-tone);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 17px;
}

.mp-supply__flow p {
    margin: 0 0 8px;
    color: var(--mp-muted);
    font-size: 12.5px;
    line-height: 17px;
}

/* The month's movements: a month at a time, picked from chips, then one line per article that came in or went out
   (what came in and went out under its name, what was left at the month's end at the right). */
.mp-card.mp-supply-ledger {
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.mp-supply-ledger summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--mp-ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.mp-supply-ledger summary::-webkit-details-marker {
    display: none;
}

/* The chevron's icon comes in its own wrapper, which takes the rest of the row so the chevron stands at the right. */
.mp-supply-ledger summary > :last-child {
    margin-left: auto;
}

.mp-supply-ledger__chevron {
    color: var(--mp-muted);
    transition: transform 0.2s ease;
}

.mp-supply-ledger[open] .mp-supply-ledger__chevron {
    transform: rotate(180deg);
}

.mp-supply-ledger > .mp-supply-ledger__months {
    margin: 0 0 10px;
    padding: 0 16px;
}

.mp-supply-ledger__note {
    margin: 0 16px;
    color: var(--mp-muted);
    font-size: 12.5px;
    line-height: 17px;
}

/* The month in two grey tiles: how many articles came in and how many went out. */
.mp-supply-ledger__totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 16px 4px;
}

.mp-supply-ledger__total {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--mp-soft);
}

.mp-supply-ledger__total small {
    color: var(--mp-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mp-supply-ledger__total b {
    color: var(--mp-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
    font-variant-numeric: tabular-nums;
}

/* One line per article, without dividers: its initial in a rounded square tinted by how it moved (teal in, peach
   out, violet both), the name over what came in and went out, and the month's end stock at the right. */
.mp-supply-ledger__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 8px 16px 0;
    list-style: none;
}

.mp-supply-ledger__row {
    --ledger-tone: var(--mp-violet);
    --ledger-soft: var(--mp-violet-soft);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px 0;
}

.mp-supply-ledger__row--in {
    --ledger-tone: var(--mp-teal);
    --ledger-soft: var(--mp-teal-soft);
}

.mp-supply-ledger__row--out {
    --ledger-tone: var(--mp-peach);
    --ledger-soft: var(--mp-peach-soft);
}

.mp-supply-ledger__badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--ledger-soft);
    color: var(--ledger-tone);
    font-size: 15px;
    font-weight: 700;
}

.mp-supply-ledger__main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mp-supply-ledger__name {
    overflow: hidden;
    color: var(--mp-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-supply-ledger__moves {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    color: var(--mp-muted);
    font-size: 12px;
    line-height: 16px;
}

.mp-supply-ledger__moves b {
    font-weight: 700;
}

.mp-supply-ledger__in b {
    color: var(--mp-up);
}

.mp-supply-ledger__out b {
    color: var(--mp-down);
}

.mp-supply-ledger__end {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    color: var(--mp-ink);
    font-size: 14px;
    line-height: 19px;
    font-variant-numeric: tabular-nums;
}

.mp-supply-ledger__end--below b {
    color: var(--mp-down);
}

.mp-supply-ledger__end small {
    color: var(--mp-muted);
    font-size: 11.5px;
    line-height: 15px;
}

.mp-supply-ledger[open] > :last-child {
    margin-bottom: 16px;
}

/* A computer sets the lines in two columns, as the stock's lines. */
@media (min-width: 1024px) {
    .mp-supply-ledger__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 32px;
    }
}

/* More lines from a soft violet button inside the card. */
.mp-supply-ledger__more {
    display: block;
    width: calc(100% - 32px);
    height: 44px;
    margin: 10px 16px 0;
    border: 0;
    border-radius: 12px;
    background: var(--mp-violet-soft);
    color: var(--mp-violet);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.mp-supply-ledger__more:focus-visible {
    outline: 2px solid var(--mp-violet);
    outline-offset: 2px;
}

/* ---------- How the day's sales came in ---------- */

.mp-trend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp-trend__headline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mp-trend__figure {
    color: var(--mp-ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 34px;
}

.mp-trend__compare {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: var(--mp-muted);
    font-size: 13px;
    line-height: 18px;
}

.mp-trend__chart {
    position: relative;
    height: 132px;
    margin-top: 4px;
}

.mp-trend__chart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.mp-trend__area {
    fill: url(#mp-trend-fill);
}

.mp-trend__line {
    fill: none;
    stroke: var(--mp-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.mp-trend__previous {
    fill: none;
    stroke: var(--mp-muted);
    stroke-dasharray: 3 4;
    stroke-linecap: round;
    stroke-width: 1.5;
    opacity: 0.7;
}

.mp-trend__dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 3px solid var(--mp-card);
    border-radius: 50%;
    background: var(--mp-accent);
    box-shadow: 0 0 0 4px rgb(79 70 229 / 18%);
    translate: -50% -50%;
}

.mp-trend__hours,
.mp-trend__legend {
    display: flex;
    justify-content: space-between;
    color: var(--mp-muted);
    font-size: 12px;
    line-height: 16px;
}

.mp-trend__legend {
    justify-content: flex-start;
    gap: 16px;
}

.mp-trend__legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mp-trend__key {
    display: inline-block;
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background: var(--mp-accent);
}

.mp-trend__key--previous {
    height: 0;
    border-top: 2px dashed var(--mp-muted);
    background: none;
}

/* The busiest hour closes the card: it keeps the card's own bottom padding, not a line's (.mp-row comes later). */
.mp-trend > .mp-trend__peak {
    margin-top: 2px;
    padding-bottom: 0;
    border-top: 1px solid var(--mp-line);
}

/* ---------- The Manager's stock lines ---------- */

.mp-stock-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mp-stock-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-stock {
    --stock-tone: var(--mp-teal);
    --stock-soft: var(--mp-teal-soft);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--mp-line);
}

.mp-stock-list > .mp-stock:first-child {
    border-top: 0;
}

/* A list that closes its card: the card's own padding is the space under its last line (on a computer, its last
   pair of lines). A link under the list keeps the line's space above its divider. */
.mp-stock-list:last-child > .mp-stock:last-child {
    padding-bottom: 0;
}

/* A link that closes a card runs to the card's bottom edge, so its words sit mid-way between divider and edge. */
.mp-card:not(.mp-card--rows) > .mp-card__foot:last-child {
    margin-bottom: -16px;
}

.mp-stock--depleted {
    --stock-tone: var(--mp-rose);
    --stock-soft: var(--mp-rose-soft);
}

.mp-stock--low {
    --stock-tone: var(--mp-peach);
    --stock-soft: var(--mp-peach-soft);
}

.mp-stock--untracked {
    --stock-tone: var(--mp-muted);
    --stock-soft: var(--mp-soft);
}

.mp-stock__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--stock-soft);
    color: var(--stock-tone);
}

.mp-stock__main,
.mp-stock__side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mp-stock__main {
    flex: 1;
    gap: 1px;
}

.mp-stock__name {
    overflow: hidden;
    color: var(--mp-ink);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-stock__meta {
    overflow: hidden;
    color: var(--mp-muted);
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-stock__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin-top: 4px;
    color: var(--mp-muted);
    font-size: 12.5px;
    line-height: 17px;
}

.mp-stock__facts b {
    color: var(--mp-ink);
    font-weight: 600;
}

.mp-stock__side {
    flex: none;
    align-items: flex-end;
    text-align: right;
}

.mp-stock__available {
    color: var(--mp-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
    white-space: nowrap;
}

.mp-stock__available--negative {
    color: var(--mp-down);
}

.mp-stock__status {
    color: var(--stock-tone);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
}

.mp-stock-card .mp-stock-card__all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border: 0;
    border-top: 1px solid var(--mp-line);
    background: none;
    color: var(--mp-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* The stock list's order and filters, in a card over the list: light chips, the chosen one in the page's ink. */
.mp-stock-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.mp-stock-filters .mp-pill,
.mp-stock-filters .mp-chip,
.mp-supply-ledger .mp-chip {
    height: 34px;
    background: var(--mp-soft);
    color: var(--mp-ink);
    box-shadow: none;
}

.mp-stock-filters .mp-chip--active,
.mp-supply-ledger .mp-chip--active {
    background: var(--mp-ink);
    color: var(--mp-card);
}

/* The stock page's head card: a title with its count and the order it stands in, the order's round icon at the
   right, and the filters under it in one row that scrolls sideways. */
.mp-stock-filters--head {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    padding: 12px 12px 12px 16px;
}

.mp-stock-filters__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

/* One row of chips that scrolls sideways inside its card, edge to edge, without a scrollbar. */
.mp-stock-filters__chips {
    display: flex;
    gap: 6px;
    min-width: 0;
    margin: 0 -12px 0 -16px;
    padding: 0 12px 0 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.mp-stock-filters__chips::-webkit-scrollbar {
    display: none;
}

/* The row fades out at the side where more chips wait, so a cut chip reads as "more this way": at the right while it
   can scroll on, at the left once it has scrolled. Where the browser cannot follow the scroll, the right side fades. */
@property --mp-chips-fade-start {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@property --mp-chips-fade-end {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

.mp-stock-filters__chips {
    --mp-chips-fade-end: 36px;
    -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 15%), #000 var(--mp-chips-fade-start), #000 calc(100% - var(--mp-chips-fade-end)), rgb(0 0 0 / 15%));
    mask-image: linear-gradient(to right, rgb(0 0 0 / 15%), #000 var(--mp-chips-fade-start), #000 calc(100% - var(--mp-chips-fade-end)), rgb(0 0 0 / 15%));
}

@supports (animation-timeline: scroll()) {
    .mp-stock-filters__chips {
        --mp-chips-fade-end: 0px;
        animation: mp-chips-fade linear both;
        animation-timeline: scroll(self inline);
    }
}

@keyframes mp-chips-fade {
    0% {
        --mp-chips-fade-start: 0px;
        --mp-chips-fade-end: 36px;
    }

    12% {
        --mp-chips-fade-start: 32px;
    }

    88% {
        --mp-chips-fade-end: 36px;
    }

    100% {
        --mp-chips-fade-start: 32px;
        --mp-chips-fade-end: 0px;
    }
}

/* Chips sit close and a little smaller, so the next one always shows past the edge and the row reads as more. */
.mp-stock-filters__chips > .mp-chip {
    flex: none;
    gap: 5px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
}

.mp-stock-filters--chips {
    display: block;
    padding: 12px 0;
}

.mp-stock-filters--chips > .mp-stock-filters__chips {
    margin: 0;
    padding: 0 12px;
}

.mp-stock-filters__title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mp-stock-filters__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.mp-stock-filters__name {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--mp-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
}

.mp-stock-filters__order {
    overflow: hidden;
    color: var(--mp-muted);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mp-stock-filters__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mp-violet-soft);
    color: var(--mp-violet);
}

/* The order is a round icon here: the line under the title names it, and its value stays for screen readers. */
.mp-stock-filters--head .mp-pill {
    flex: none;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
}

.mp-stock-filters--head .mp-pill .mp-pill__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mp-stock-filters--head .mp-pill .mp-pill__chevron {
    display: none !important;
}

@media (min-width: 1024px) {
    .mp-stock-list--grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
    }

    .mp-stock-list--grid > .mp-stock:nth-child(2) {
        border-top: 0;
    }
}

/* A card still to come: the card's own colour with a title bar and lines under a passing sheen. */
.mp-card--placeholder {
    height: 240px;
    background-color: var(--mp-card);
    background-image:
        linear-gradient(100deg, transparent 20%, var(--mp-shimmer) 50%, transparent 80%),
        linear-gradient(var(--mp-skeleton), var(--mp-skeleton)),
        repeating-linear-gradient(to bottom, var(--mp-skeleton) 0 12px, transparent 12px 30px);
    background-position: -150% 0, 20px 20px, 20px 58px;
    background-repeat: no-repeat;
    background-size: 60% 100%, min(40%, 220px) 16px, calc(100% - 40px) calc(100% - 78px);
    animation: mp-skeleton-sheen 1.3s ease-in-out infinite;
}

/* The Admin overview's loading shape in the Manager (Analize): solid cards like the ones it waits for, the headline
   card dark like the head, the bars in the Manager's skeleton colour. */
.manager-app-shell .sk :is(.sk-panel, .sk-card, .sk-tile, .sk-table) {
    border: 0;
    border-radius: var(--mp-radius);
    background: var(--mp-card);
    box-shadow: var(--mp-card-shadow);
}

.manager-app-shell .sk :is(.sk-block, .sk-line, .sk-icon, .sk-bar) {
    background-color: var(--mp-skeleton);
    background-image: linear-gradient(100deg, transparent 20%, var(--mp-shimmer) 50%, transparent 80%);
}

/* The headline card waits as itself, dark, gently brightening while its figures come. */
.manager-app-shell .sk .sk-block--hero {
    border-radius: var(--mp-radius);
    background: var(--mp-hero-bg);
    box-shadow: var(--mp-card-shadow);
    animation: mp-hero-breathe 1.4s ease-in-out infinite;
}

@keyframes mp-hero-breathe {
    50% {
        filter: brightness(1.18);
    }
}

.manager-app-shell .sk .sk-block--card {
    background-color: var(--mp-soft);
}

.mp-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mp-card--rows .mp-card__head {
    margin-bottom: 0;
    padding-top: 12px;
}

.mp-card__heading {
    min-width: 0;
}

.mp-card__title {
    margin: 0;
    color: var(--mp-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

.mp-card__subtitle {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 17px;
    color: var(--mp-muted);
}

.mp-card__aside {
    flex: none;
    font-size: 12.5px;
    color: var(--mp-muted);
}

/* A card's last line, a link: its words and its arrow centred together. */
.mp-card__foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% + 32px);
    margin: 0 -16px -4px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--mp-line);
    background: none;
    color: var(--mp-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* A line of a card: a round tinted icon, a name with a short line under it, the value with its change. */
.mp-row {
    --mp-tone: var(--mp-violet);
    --mp-tone-soft: var(--mp-violet-soft);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    color: var(--mp-ink);
}

.mp-row + .mp-row {
    border-top: 1px solid var(--mp-line);
}

/* In a card of lines the dividers run from edge to edge; the lines keep the card's inset. */
.mp-card--rows > .mp-row {
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding-inline: 16px;
}

.mp-row--teal {
    --mp-tone: var(--mp-teal);
    --mp-tone-soft: var(--mp-teal-soft);
}

.mp-row--peach {
    --mp-tone: var(--mp-peach);
    --mp-tone-soft: var(--mp-peach-soft);
}

.mp-row--blue {
    --mp-tone: var(--mp-blue);
    --mp-tone-soft: var(--mp-blue-soft);
}

.mp-row--rose {
    --mp-tone: var(--mp-rose);
    --mp-tone-soft: var(--mp-rose-soft);
}

.mp-row--button {
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mp-row--button:focus-visible {
    border-radius: 12px;
    outline: 2px solid var(--mp-accent);
    outline-offset: -2px;
}

.mp-row--danger {
    color: var(--mp-down);
}

.mp-row > svg {
    flex: none;
    color: var(--mp-muted);
}

.mp-row__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mp-tone-soft);
    color: var(--mp-tone);
}

.mp-row__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.mp-row__label {
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.mp-row__hint {
    overflow: hidden;
    font-size: 12.5px;
    line-height: 17px;
    color: var(--mp-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-row__figure {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.mp-row__value {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
}

.mp-row__value .mp-money .mp-money__currency {
    margin-left: 0.1em;
    font-size: 0.7em;
}

.mp-row__value .mp-money .mp-money__price sup {
    top: -0.55em;
    font-size: 0.62em;
}

@keyframes mp-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes mp-pulse {
    50% {
        opacity: 0.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-body--refreshing :is(.mp-card, .wm-card, .an-panel)::after,
    .manager-app-shell .sk .sk-block--hero,
    .mp-skeleton,
    .mp-card--placeholder,
    .mp-action--busy svg {
        animation: none;
    }
}

/* On a computer: the title and the pills on the page, the figure and the shortcuts on a dark banner, the cards in a
   grid of twelve columns (a half card takes six); the sidebar shows the administrator, so the head drops the photo. */
@media (min-width: 1024px) {
    .manager-app-shell .wm-page__body.mp-scroller {
        padding-inline: var(--manager-page-inset, 32px);
    }

    /* Under the glass bar the page fades in instead of meeting a hard edge; the fade shows once the bar is glass, as
       at rest it would pale the banner's top. */
    .mp-bar--sticky::after {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        height: 22px;
        background: linear-gradient(var(--mp-bar-glass), transparent);
        content: "";
        opacity: 0;
        pointer-events: none;
    }

    /* The bar runs across the page's column and its gutters; once the page scrolls under it, it turns to frosted
       glass of the page's colour. The search stands at its left, where the page's title used to, and the pills and
       the round actions at its right; a page's way back stands before the search. */
    .mp-bar {
        margin-inline: calc(-1 * var(--manager-page-inset, 32px));
        padding: 24px var(--manager-page-inset, 32px) 16px;
        background: transparent;
        color: var(--mp-ink);
    }

    .mp-hero {
        display: block;
        padding: 4px 0 0;
        background: none;
        color: var(--mp-ink);
        text-align: left;
    }

    .mp-tools {
        display: grid;
        grid-template-columns: minmax(240px, 420px) minmax(0, 1fr) auto;
        grid-template-areas: "search . pills";
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    /* The search, the pills and the refresh stand at the same places on every page: a page's way back sits inside the
       search's place, at its left. */
    .mp-tools__leading {
        position: relative;
        z-index: 1;
        grid-area: search;
        justify-self: start;
        margin-left: 4px;
    }

    .mp-tools .mp-tools__leading .mp-action {
        width: 34px;
        height: 34px;
        box-shadow: none;
        background: var(--mp-violet-soft);
    }

    .mp-tools:has(.mp-tools__leading) .mp-search__field {
        padding-left: 46px;
    }

    .mp-tools__search {
        grid-area: search;
        min-width: 0;
    }

    .mp-tools .mp-pills {
        grid-area: pills;
        flex-wrap: nowrap;
        margin: 0;
    }

    .mp-avatar,
    .mp-tools__avatar {
        display: none;
    }

    .mp-search {
        position: relative;
    }

    .mp-search__field {
        height: 42px;
        background: var(--mp-card);
        box-shadow: var(--mp-chip-shadow);
        color: var(--mp-muted);
    }

    .mp-search__field input {
        color: var(--mp-ink);
    }

    .mp-search__field input::placeholder {
        color: var(--mp-muted);
    }

    .mp-search__field:focus-within,
    .mp-tools .mp-pill--picker:focus-within {
        outline: none;
        box-shadow: var(--mp-chip-shadow), inset 0 0 0 1.5px var(--mp-accent);
    }

    .mp-search__kbd {
        display: inline-block;
        background: var(--mp-track, rgb(20 22 31 / 6%));
        color: var(--mp-muted);
    }

    .mp-search__clear {
        background: var(--mp-violet-soft);
        color: var(--mp-ink);
    }

    .mp-search__panel {
        min-width: 420px;
    }

    .mp-tools .mp-pill,
    .mp-tools .mp-action {
        background: var(--mp-card);
        box-shadow: var(--mp-chip-shadow);
        color: var(--mp-ink);
    }

    .mp-tools .mp-pill {
        height: 42px;
        padding: 0 16px;
    }

    .mp-tools .mp-action {
        width: 42px;
        height: 42px;
    }

    .mp-chips {
        flex-wrap: wrap;
        justify-content: flex-end;
        padding: 0;
        overflow: visible;
    }

    .mp-banner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 24px 40px;
        min-height: 164px;
        padding: 28px 32px;
        border-radius: 20px;
        background: var(--mp-hero-bg);
        color: var(--mp-hero-ink);
    }

    .mp-figure {
        margin: 0;
    }

    .mp-note {
        justify-content: flex-start;
    }

    .mp-amount {
        font-size: 48px;
    }

    .mp-shortcuts {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px 14px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    /* The chart runs across the banner's foot, edge to edge, under the figure and the shortcuts. */
    .mp-chart {
        flex: 1 0 100%;
        order: 1;
        margin: -8px -32px -28px;
        overflow: hidden;
        border-radius: 0 0 20px 20px;
    }

    .mp-chart .mp-dots__ticks {
        padding: 6px 32px 14px;
    }

    /* Shortcuts without a figure (the analytics' sections) stand on the page itself: a dark gradient squeezed into a
       slim strip reads as a smudge. */
    .mp-banner:not(:has(.mp-figure)) {
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: none;
        color: var(--mp-ink);
    }

    .mp-body,
    .mp-panel {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 16px;
    }

    .mp-body {
        margin-top: 20px;
        padding: 0 0 32px;
    }

    .mp-body > *,
    .mp-panel > * {
        grid-column: 1 / -1;
    }

    .mp-body > .mp-card--half,
    .mp-panel > .mp-card--half {
        grid-column: span 6;
    }

    .mp-card {
        padding: 20px;
    }

    .mp-card--rows {
        padding: 4px 20px;
    }

    /* On a computer the filters have room: they wrap inside the card's padding. */
    .mp-stock-filters__chips,
    .mp-stock-filters--chips > .mp-stock-filters__chips {
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .mp-card--rows > .mp-row {
        width: calc(100% + 40px);
        margin-inline: -20px;
        padding-inline: 20px;
    }

    .mp-card__foot {
        width: calc(100% + 40px);
        margin-inline: -20px;
    }

    .mp-card:not(.mp-card--rows) > .mp-card__foot:last-child {
        margin-bottom: -20px;
    }

    .mp-stock-list--grid:last-child > .mp-stock:nth-last-child(2):nth-child(odd) {
        padding-bottom: 0;
    }

    /* The page's headline figures stand side by side, each in its own column. */
    .mp-card--figures {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        padding: 6px 4px;
    }

    /* Every figure's value stands on the same line, with or without a change under it. */
    .mp-card--figures > .mp-row {
        align-items: flex-start;
        width: auto;
        margin-inline: 0;
        padding: 14px 18px;
    }

    .mp-card--figures > .mp-row .mp-row__text {
        align-self: center;
    }

    .mp-card--figures .mp-row + .mp-row {
        border-top: 0;
        border-left: 1px solid var(--mp-line);
    }
}

/* On a phone: the header is one row, the photo (or a page's way back), the search, and the pills that choose (a
   location, a day) as round icons, every one 38px tall; a pill that only says stays out of it, and the head writes what
   the page shows (.mp-context). It is clear, and the head's dark gradient runs up behind it (the head's negative
   margin), so at rest it reads as one head; once scrolled it floats over the cards as smoked glass. */
@media (max-width: 1023px) {
    .mp-bar {
        display: contents;
    }

    .mp-tools {
        position: relative;
        z-index: 20;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        grid-template-areas: "lead search pills";
        align-items: center;
        gap: 8px;
        padding: 12px 16px 8px;
        color: var(--mp-hero-ink);
    }

    .mp-bar--sticky .mp-tools {
        position: sticky;
        top: 0;
    }

    .mp-tools__leading,
    .mp-tools .mp-tools__avatar {
        grid-area: lead;
    }

    .mp-tools__search {
        grid-area: search;
        min-width: 0;
    }

    .mp-tools .mp-pills {
        grid-area: pills;
        flex-wrap: nowrap;
    }

    .mp-tools .mp-pill:not(.mp-pill--picker) {
        display: none;
    }

    /* With nothing to show at the right (only pills that stay out of the phone's bar), the search runs to the bar's
       edge, as far from it as the way back or the avatar stands from the left. */
    .mp-tools:not(:has(> .mp-pills > :not(.mp-pill:not(.mp-pill--picker)))) {
        grid-template-columns: 38px minmax(0, 1fr);
        grid-template-areas: "lead search";
    }

    .mp-tools:not(:has(> .mp-pills > :not(.mp-pill:not(.mp-pill--picker)))) > .mp-pills {
        display: none;
    }

    /* The headline figures stand side by side as small tiles: the icon, the name on two lines at most, so every value
       sits on the same line, then the value and its change. */
    .mp-card--figures {
        display: grid;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        padding: 2px 0;
    }

    .mp-card--rows.mp-card--figures > .mp-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 12px;
    }

    .mp-card--figures .mp-row + .mp-row {
        border-top: 0;
        border-left: 1px solid var(--mp-line);
    }

    .mp-card--figures .mp-row__icon {
        width: 30px;
        height: 30px;
    }

    .mp-card--figures .mp-row__icon svg {
        width: 16px;
        height: 16px;
    }

    .mp-card--figures .mp-row__text {
        flex: none;
        width: 100%;
    }

    .mp-card--figures .mp-row__label {
        display: -webkit-box;
        min-height: 32px;
        overflow: hidden;
        color: var(--mp-muted);
        font-size: 12.5px;
        line-height: 16px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .mp-card--figures .mp-row__hint {
        display: none;
    }

    .mp-card--figures .mp-row__figure {
        align-items: flex-start;
    }

    .mp-card--figures .mp-row__value {
        font-size: 17px;
    }

    /* The location keeps its name in the header: it says which one the page shows; the day stays an icon. */
    /* A long name is cut with an ellipsis (the picker's list and the pill's title give it whole), and on a narrow phone
       the pill gives up width so the search keeps its word. */
    .mp-tools .mp-pill--picker.mp-pill--named {
        width: auto;
        max-width: min(136px, 32vw);
        padding: 0 12px;
    }

    @media (max-width: 359px) {
        .mp-tools .mp-search__field {
            gap: 6px;
            padding: 0 10px;
        }

        .mp-tools .mp-pill--picker.mp-pill--named {
            padding: 0 10px;
        }
    }

    .mp-tools .mp-pill--picker.mp-pill--named .mp-pill__text {
        position: static;
        width: auto;
        height: auto;
        overflow: hidden;
        clip-path: none;
        text-overflow: ellipsis;
    }

    /* A pill that chooses is a round icon; its value stays for screen readers and in the head. */
    .mp-tools .mp-pill--picker {
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .mp-tools .mp-pill--picker .mp-pill__text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .mp-tools .mp-pill--picker .mp-pill__chevron {
        display: none !important;
    }

    .mp-tools .mp-pill--picker svg {
        width: 17px;
        height: 17px;
    }

    .mp-tools .mp-action,
    .mp-tools .mp-tools__avatar {
        width: 38px;
        height: 38px;
    }

    .mp-tools .mp-tools__avatar {
        box-shadow: 0 0 0 2px var(--mp-hero-glass), 0 6px 18px -8px rgb(0 0 0 / 45%);
    }

    .mp-tools .mp-pill,
    .mp-tools .mp-action,
    .mp-tools .mp-search__field {
        background: var(--mp-bar-smoke);
        box-shadow: inset 0 0 0 1px var(--mp-hero-glass), 0 6px 18px -8px rgb(0 0 0 / 45%);
        backdrop-filter: blur(16px) saturate(170%);
        -webkit-backdrop-filter: blur(16px) saturate(170%);
    }

    /* A chosen control lights up a little instead of taking the browser's white ring: a light veil over its smoked
       glass, which stays dark over the white cards when the page is scrolled, so its white text keeps reading. */
    .mp-tools .mp-search__field:focus-within,
    .mp-tools .mp-pill--picker:focus-within {
        outline: none;
        background: linear-gradient(var(--mp-hero-glass), var(--mp-hero-glass)), var(--mp-bar-smoke);
        box-shadow: inset 0 0 0 1px var(--mp-hero-glass-strong), 0 6px 18px -8px rgb(0 0 0 / 45%);
    }

    /* The results hang under the header, as wide as it. */
    .mp-tools__search .mp-search__panel {
        top: 58px;
        right: 16px;
        left: 16px;
        max-height: min(60dvh, 480px);
        scrollbar-width: none;
    }

    /* A phone's list scrolls under the finger; its bar would only narrow it. A computer keeps the bar. */
    .mp-tools__search .mp-search__panel::-webkit-scrollbar {
        display: none;
    }

    .mp-bar:has(.mp-tools :is(.mp-tools__avatar, .mp-tools__leading, .mp-tools__search, .mp-pill--picker)) + .mp-hero {
        margin-top: -58px;
        padding-top: 58px;
    }

    /* A header with nothing a phone shows (Settings: no photo, no search, only the company, written in the head) gives
       its row back to the head. */
    .mp-tools:not(:has(.mp-tools__avatar, .mp-tools__leading, .mp-tools__search, .mp-pill--picker)) {
        display: none;
    }

    .mp-bar:not(:has(.mp-tools :is(.mp-tools__avatar, .mp-tools__leading, .mp-tools__search, .mp-pill--picker))) + .mp-hero {
        padding-top: 14px;
    }

    .mp-context {
        display: flex;
        grid-area: context;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 10px 0 0;
        color: var(--mp-hero-muted);
        font-size: 13.5px;
        font-weight: 600;
        line-height: 18px;
    }

    .mp-hero:has(.mp-context) {
        grid-template-areas:
            "context"
            "figure"
            "shortcuts";
    }

    .mp-figure {
        margin-top: 18px;
    }

    .mp-context + .mp-banner .mp-figure {
        margin-top: 10px;
    }

    .mp-shortcuts:has(.mp-chips) {
        margin-top: 22px;
        padding: 0;
    }
}

/* The computer's bar turns to glass as the page scrolls under it, where the browser follows the scroll; elsewhere it
   is glass from the start. */
@media (min-width: 1024px) {
    @supports (animation-timeline: scroll()) {
        .mp-bar--sticky {
            animation: mp-bar-frost linear both;
            animation-timeline: scroll(nearest block);
            animation-range: 0 48px;
        }

        .mp-bar--sticky::after {
            animation: mp-fade-in linear both;
            animation-timeline: scroll(nearest block);
            animation-range: 0 48px;
        }
    }

    @supports not (animation-timeline: scroll()) {
        .mp-bar--sticky {
            background: var(--mp-bar-glass);
            backdrop-filter: blur(18px) saturate(160%);
            -webkit-backdrop-filter: blur(18px) saturate(160%);
        }
    }
}

@keyframes mp-fade-in {
    to {
        opacity: 1;
    }
}

@keyframes mp-bar-frost {
    from {
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    to {
        background-color: var(--mp-bar-glass);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
    }
}

/* Dark theme: a deep page with dimmer glows, smoked glass, light active chips and the tiles' colours lifted so their
   icons and tints read on dark. */
:root[data-theme="dark"] .waiter-app-shell.manager-app-shell {
    --wm-page: #0b0c10;
    --mg-glow-cool: rgb(99 102 241 / 15%);
    --mg-glow-warm: rgb(236 110 90 / 8%);
    --mg-card-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 14px 32px -16px rgb(0 0 0 / 60%);
    --mg-glass: rgb(32 35 44 / 58%);
    --mg-glass-edge: rgb(255 255 255 / 9%);
    --mg-glass-shadow: 0 16px 36px -12px rgb(0 0 0 / 65%), 0 2px 6px rgb(0 0 0 / 30%);
    --mg-glass-highlight: inset 0 1px 0 rgb(255 255 255 / 7%);
    --mg-sidebar-edge: rgb(255 255 255 / 7%);
    --mg-glass-pill: rgb(163 170 255 / 16%);
    --mg-glass-pill-edge: rgb(255 255 255 / 6%);
    --mg-track: rgb(255 255 255 / 6%);
    --mg-chip: #1a1d23;
    /* A logo is drawn for a light background, so its tile stays white. */
    --mg-logo-tile: #ffffff;
    --mg-chip-active: #eceef4;
    --mg-chip-active-ink: #14161c;
    --mg-hero:
        radial-gradient(80% 110% at 100% 100%, rgb(240 120 90 / 55%) 0%, rgb(240 120 90 / 0%) 62%),
        radial-gradient(70% 90% at 78% 0%, rgb(160 90 210 / 50%) 0%, rgb(160 90 210 / 0%) 64%),
        linear-gradient(140deg, #151a52 0%, #242579 48%, #3a2f8c 100%);
    --mp-hero-base: #0b0c10;
    --mp-hero-top: #191b3a;
    --mp-hero-bg:
        radial-gradient(80% 48% at 88% 48%, rgb(124 92 255 / 50%) 0%, rgb(124 92 255 / 0%) 70%),
        radial-gradient(70% 50% at 8% 80%, rgb(255 128 86 / 26%) 0%, rgb(255 128 86 / 0%) 70%),
        linear-gradient(180deg, #191b3a 0%, #0b0c10 100%);
    --mp-hero-ink: #ffffff;
    --mp-hero-muted: rgb(255 255 255 / 68%);
    --mp-hero-glass: rgb(255 255 255 / 14%);
    --mp-hero-glass-strong: rgb(255 255 255 / 24%);
    --mp-hero-up: #8ff0b6;
    --mp-hero-down: #ffb3bf;
    --mp-hero-chart: #67e8f9;
    --mp-hero-chart-glow: rgb(103 232 249 / 55%);
    --mp-card: #1a1b21;
    --mp-card-shadow: 0 0 0 1px rgb(255 255 255 / 4%);
    --mp-chip-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
    --mp-ink: #f3f4f8;
    --mp-muted: #9a9db0;
    --mp-line: #26272f;
    --mp-soft: #24252c;
    --mp-skeleton: rgb(255 255 255 / 9%);
    --mp-shimmer: rgb(255 255 255 / 6%);
    --mp-accent: #9b95ff;
    --mp-nav-active: rgb(155 149 255 / 16%);
    --mp-bar-glass: rgb(11 12 16 / 86%);
    --mp-bar-smoke: rgb(25 27 58 / 74%);
    --mp-nav-active-ink: #d4d1ff;
    --mp-warning: #f5a524;
    --mp-up: #5fd38d;
    --mp-down: #ff8a95;
    --mp-teal: #5fd3bf;
    --mp-teal-soft: #12302b;
    --mp-violet: #a99fff;
    --mp-violet-soft: #262448;
    --mp-peach: #f0a172;
    --mp-peach-soft: #3a2418;
    --mp-blue: #8ab4ff;
    --mp-blue-soft: #1b2a44;
    --mp-rose: #ff8a95;
    --mp-rose-soft: #3a1c22;
    --mg-bar: linear-gradient(90deg, #5b60e0 0%, #a68af5 100%);
}

:root[data-theme="dark"] .manager-app-shell .analytics-page {
    background: transparent;
}

/* dark-theme:generated — dark variants of the colours above, written by Nexus.Retail.Server/TailwindAssets/dark-theme-sync.mjs.
   Edit the light rules and rerun the script; do not edit this block. */

:where(:root[data-theme="dark"]) .waiter-app-shell.manager-app-shell {
    --wm-page: #24272C;
    --mg-card-shadow: 0 1px 2px rgb(0 0 0 / 0.072), 0 14px 32px -16px rgb(0 0 0 / 0.288);
    --mg-glass: rgb(26 29 35 / 0.58);
    --mg-glass-edge: rgb(26 29 35 / 0.78);
    --mg-glass-shadow: 0 16px 36px -12px rgb(0 0 0 / 0.432), 0 2px 6px rgb(0 0 0 / 0.108);
    --mg-glass-highlight: inset 0 1px 0 rgb(26 29 35 / 0.85);
    --mg-sidebar-edge: rgb(233 236 241 / 0.08);
    --mg-glass-pill: rgb(163 170 255 / 0.09);
    --mg-glass-pill-edge: rgb(26 29 35 / 0.55);
    --mg-track: rgb(255 255 255 / 0.075);
    --mg-chip: #1A1D23;
    --mg-logo-tile: #1A1D23;
    --mg-chip-active: #E8EBF1;
    --mg-chip-active-ink: #FFFFFF;
    --mg-hero: radial-gradient(80% 110% at 100% 100%, rgb(255 140 105 / 78%) 0%, rgb(255 140 105 / 0%) 62%),
        radial-gradient(70% 90% at 78% 0%, rgb(186 104 222 / 62%) 0%, rgb(186 104 222 / 0%) 64%),
        linear-gradient(140deg, #97ACFE 0%, #9BAAFF 48%, #A8A6FE 100%);
    --mp-hero-base: #EAEDF2;
    --mp-hero-top: #A7AEDB;
    --mp-hero-bg: radial-gradient(80% 48% at 88% 48%, rgb(124 92 255 / 0.5) 0%, rgb(124 92 255 / 0%) 70%),
        radial-gradient(70% 50% at 8% 80%, rgb(254 142 105 / 0.42) 0%, rgb(255 128 86 / 0%) 70%),
        linear-gradient(180deg, #1B1D40 0%, #0E1016 100%);
    --mp-hero-ink: #FFFFFF;
    --mp-hero-muted: rgb(26 29 35 / 0.68);
    --mp-hero-glass: rgb(26 29 35 / 0.14);
    --mp-hero-glass-strong: rgb(26 29 35 / 0.24);
    --mp-hero-up: #0B341F;
    --mp-hero-down: #FFB3BF;
    --mp-hero-chart: #073137;
    --mp-hero-chart-glow: rgb(7 49 55 / 0.55);
    --mp-card: #1A1D23;
    --mp-card-shadow: 0 1px 2px rgb(0 0 0 / 0.072), 0 12px 32px -18px rgb(0 0 0 / 0.504);
    --mp-chip-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.144), 0 4px 14px -8px rgb(0 0 0 / 0.396);
    --mp-ink: #E9ECF1;
    --mp-line: #292C31;
    --mp-soft: #24272C;
    --mp-skeleton: rgb(233 236 241 / 0.08);
    --mp-shimmer: rgb(26 29 35 / 0.7);
    --mp-nav-active: #272A3D;
    --mp-bar-glass: rgb(36 39 44 / 0.86);
    --mp-bar-smoke: rgb(167 174 219 / 0.74);
    --mp-nav-active-ink: #9CAAFD;
    --mp-teal-soft: #13322B;
    --mp-violet-soft: #2A283F;
    --mp-peach-soft: #3B261A;
    --mp-blue-soft: #1F2C3E;
    --mp-rose-soft: #3C2324;
    --mg-bar: linear-gradient(90deg, #9BAAFF 0%, #7556d8 100%);
    background: radial-gradient(70% 45% at 0% 0%, var(--mg-glow-cool) 0%, transparent 70%),
        radial-gradient(60% 40% at 100% 8%, var(--mg-glow-warm) 0%, transparent 70%),
        var(--wm-page);
}

:where(:root[data-theme="dark"]) .manager-app-shell .wm-page,
:where(:root[data-theme="dark"]) .manager-app-shell .wm-page__body .waiter-chat-header,
:where(:root[data-theme="dark"]) .manager-app-shell [data-testid="waiter-stock-root"] > .waiter-chat-header,
:where(:root[data-theme="dark"]) .manager-app-shell .analytics-page {
    background: transparent;
}

@media (max-width: 1023px) {
    :where(:root[data-theme="dark"]) .manager-app-shell .wm-shell .wm-nav {
        box-shadow: var(--mg-glass-shadow), var(--mg-glass-highlight);
    }

    :where(:root[data-theme="dark"]) .manager-app-shell .wm-shell .wm-nav::before {
        background: var(--mg-glass);
    }

    :where(:root[data-theme="dark"]) .manager-app-shell .wm-shell .wm-nav::after {
        background: var(--mg-glass-pill);
        box-shadow: inset 0 0 0 1px var(--mg-glass-pill-edge);
    }

}

:where(:root[data-theme="dark"]) .manager-app-shell .wm-chip {
    background: var(--mg-chip);
    color: var(--wm-ink-2);
    box-shadow: none;
}

:where(:root[data-theme="dark"]) .manager-app-shell .wm-chip.wm-chip--active {
    background: var(--mg-chip-active);
    color: var(--mg-chip-active-ink);
    box-shadow: none;
}

:where(:root[data-theme="dark"]) .manager-app-shell .analytics-revenue-card {
    background: var(--mp-hero-bg);
    box-shadow: var(--mp-card-shadow);
}

:where(:root[data-theme="dark"]) .manager-app-shell .wm-page .wm-card {
    box-shadow: var(--mg-card-shadow);
}

:where(:root[data-theme="dark"]) .manager-app-shell .wm-page .wm-track__fill {
    background: var(--mg-bar);
}

:where(:root[data-theme="dark"]) .mp {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-hero {
    background: var(--mp-hero-bg);
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-avatar {
    background: var(--mp-hero-glass-strong);
    box-shadow: 0 0 0 2px var(--mp-hero-glass);
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-search__field {
    background: var(--mp-hero-glass);
    color: var(--mp-hero-muted);
}

:where(:root[data-theme="dark"]) .mp-search__field input {
    background: transparent;
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-search__field input::placeholder {
    color: var(--mp-hero-muted);
}

:where(:root[data-theme="dark"]) .mp-search__field:focus-within {
    box-shadow: inset 0 0 0 1.5px var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-search__kbd {
    background: var(--mp-hero-glass);
}

:where(:root[data-theme="dark"]) .mp-search__clear {
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-search__panel {
    background: var(--mp-card);
    box-shadow: 0 18px 96px -12px rgb(12 14 40 / 0.38), 0 2px 16px rgb(12 14 40 / 0.1);
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-search__group {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-search__option[aria-selected="true"] {
    background: var(--mp-nav-active);
}

:where(:root[data-theme="dark"]) .mp-search__icon {
    background: var(--mp-violet-soft);
    color: var(--mp-violet);
}

:where(:root[data-theme="dark"]) .mp-search__context {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-search__empty {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-chip {
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-chip--active {
    background: var(--mp-hero-ink);
    color: var(--mp-hero-base);
}

:where(:root[data-theme="dark"]) .mp-hint {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-note .mp-action {
    background: transparent;
    color: var(--mp-hero-muted);
}

:where(:root[data-theme="dark"]) .mp-note .mp-action:hover {
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-action {
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-eyebrow {
    color: var(--mp-hero-muted);
}

:where(:root[data-theme="dark"]) .mp-note {
    color: var(--mp-hero-muted);
}

:where(:root[data-theme="dark"]) .mp-pos-empty strong {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-pos-empty span {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-dots--empty .mp-dots__line {
    filter: none;
}

:where(:root[data-theme="dark"]) .mp-dots__empty {
    background: var(--mp-hero-glass);
    box-shadow: 0 0 0 1px var(--mp-hero-glass);
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-dots__faint {
    fill: rgb(255 255 255 / 0.08);
}

:where(:root[data-theme="dark"]) .mp-dots__area-dot {
    fill: var(--mp-hero-chart);
}

:where(:root[data-theme="dark"]) .mp-dots__line {
    fill: var(--mp-hero-chart);
    filter: drop-shadow(0 0 6px var(--mp-hero-chart-glow));
}

:where(:root[data-theme="dark"]) .mp-dots__ticks {
    color: var(--mp-hero-muted);
}

:where(:root[data-theme="dark"]) .mp-pill {
    background: var(--mp-hero-glass);
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-pill__input::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
}

:where(:root[data-theme="dark"]) .mp-shortcut {
    background: none;
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-shortcut__icon {
    background: var(--mp-hero-glass);
}

:where(:root[data-theme="dark"]) .mp-shortcut__badge {
    background: var(--mp-warning);
    box-shadow: 0 0 0 2px var(--mp-hero-base);
    color: #FFFFFF;
}

:where(:root[data-theme="dark"]) .mp-shortcut__label {
    color: var(--mp-hero-muted);
}

:where(:root[data-theme="dark"]) .mp-shortcut--active .mp-shortcut__icon {
    background: var(--mp-hero-ink);
    color: var(--mp-hero-base);
}

:where(:root[data-theme="dark"]) .mp-shortcut--active .mp-shortcut__label {
    color: var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-shortcut:focus-visible .mp-shortcut__icon {
    box-shadow: 0 0 0 2px var(--mp-hero-ink);
}

:where(:root[data-theme="dark"]) .mp-change--up {
    color: var(--mp-up);
}

:where(:root[data-theme="dark"]) .mp-change--down {
    color: var(--mp-down);
}

:where(:root[data-theme="dark"]) .mp-change--flat {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-hero .mp-change--up {
    color: var(--mp-hero-up);
}

:where(:root[data-theme="dark"]) .mp-hero .mp-change--down {
    color: var(--mp-hero-down);
}

:where(:root[data-theme="dark"]) .mp-hero .mp-change--flat {
    color: var(--mp-hero-muted);
}

:where(:root[data-theme="dark"]) .mp-money .mp-money__price {
    color: inherit !important;
}

@container (max-width: 560px) {
    :where(:root[data-theme="dark"]) .manager-app-shell .an-table-scroll .an-table tbody tr:hover {
        background: var(--mp-nav-active);
    }

    :where(:root[data-theme="dark"]) .manager-app-shell .an-table-scroll .an-table tbody tr:hover > * {
        background: none;
    }

    :where(:root[data-theme="dark"]) .manager-app-shell .an-table-scroll .an-table tr > * {
        background: none;
    }

    :where(:root[data-theme="dark"]) .manager-app-shell .an-table-scroll .an-table tr > *[data-label]::before {
        color: var(--mp-muted);
    }

}

:where(:root[data-theme="dark"]) .mp-skeleton {
    background: var(--mp-skeleton);
    color: transparent !important;
}

:where(:root[data-theme="dark"]) .mp-hero .mp-skeleton {
    background: var(--mp-hero-glass);
}

:where(:root[data-theme="dark"]) .mp-card,
:where(:root[data-theme="dark"]) .manager-app-shell .mp .wm-card {
    background: var(--mp-card);
    box-shadow: var(--mp-card-shadow);
}

:where(:root[data-theme="dark"]) .mp-day__label,
:where(:root[data-theme="dark"]) .mp-day__share {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-day__figure {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-day__figure--loss {
    color: var(--mp-down);
}

:where(:root[data-theme="dark"]) .mp-day__bar {
    background: var(--mp-soft);
}

:where(:root[data-theme="dark"]) .mp-day__segment {
    background: var(--day-tone);
}

:where(:root[data-theme="dark"]) .mp-day__segment--estimated {
    background: repeating-linear-gradient(135deg, var(--day-tone) 0 5px, var(--day-soft) 5px 9px);
}

:where(:root[data-theme="dark"]) .mp-day__icon {
    background: var(--day-soft);
    color: var(--day-tone);
}

:where(:root[data-theme="dark"]) .mp-day__name {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-day__value {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-day__name small,
:where(:root[data-theme="dark"]) .mp-day__value small {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-day__missing {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-supply-settings__note {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-stepper__label {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-stepper__control {
    background: var(--mp-soft);
}

:where(:root[data-theme="dark"]) .mp-stepper__control strong {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-stepper__control button {
    background: var(--mp-card);
    box-shadow: var(--mp-chip-shadow);
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-supply__line {
    background: none;
    color: inherit;
}

:where(:root[data-theme="dark"]) .mp-supply__toggle {
    background: var(--mp-soft);
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-supply__cover {
    background: var(--mp-soft);
}

:where(:root[data-theme="dark"]) .mp-supply__fill {
    background: var(--stock-tone);
}

:where(:root[data-theme="dark"]) .mp-supply__mark {
    background: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-supply__lasts {
    color: var(--stock-tone);
}

:where(:root[data-theme="dark"]) .mp-supply__flow p {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger summary {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__chevron {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__note {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__total {
    background: var(--mp-soft);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__total small {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__total b {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__badge {
    background: var(--ledger-soft);
    color: var(--ledger-tone);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__name {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__moves {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__in b {
    color: var(--mp-up);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__out b {
    color: var(--mp-down);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__end {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__end--below b {
    color: var(--mp-down);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__end small {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-supply-ledger__more {
    background: var(--mp-violet-soft);
    color: var(--mp-violet);
}

:where(:root[data-theme="dark"]) .mp-trend__figure {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-trend__compare {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-trend__area {
    fill: url(#mp-trend-fill);
}

:where(:root[data-theme="dark"]) .mp-trend__line {
    fill: none;
}

:where(:root[data-theme="dark"]) .mp-trend__previous {
    fill: none;
}

:where(:root[data-theme="dark"]) .mp-trend__dot {
    background: var(--mp-accent);
    box-shadow: 0 0 0 4px rgb(136 147 250 / 0.18);
}

:where(:root[data-theme="dark"]) .mp-trend__hours,
:where(:root[data-theme="dark"]) .mp-trend__legend {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-trend__key {
    background: var(--mp-accent);
}

:where(:root[data-theme="dark"]) .mp-trend__key--previous {
    background: none;
}

:where(:root[data-theme="dark"]) .mp-stock__icon {
    background: var(--stock-soft);
    color: var(--stock-tone);
}

:where(:root[data-theme="dark"]) .mp-stock__name {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-stock__meta {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-stock__facts {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-stock__facts b {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-stock__available {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-stock__available--negative {
    color: var(--mp-down);
}

:where(:root[data-theme="dark"]) .mp-stock__status {
    color: var(--stock-tone);
}

:where(:root[data-theme="dark"]) .mp-stock-card .mp-stock-card__all {
    background: none;
    color: var(--mp-accent);
}

:where(:root[data-theme="dark"]) .mp-stock-filters .mp-pill,
:where(:root[data-theme="dark"]) .mp-stock-filters .mp-chip,
:where(:root[data-theme="dark"]) .mp-supply-ledger .mp-chip {
    background: var(--mp-soft);
    color: var(--mp-ink);
    box-shadow: none;
}

:where(:root[data-theme="dark"]) .mp-stock-filters .mp-chip--active,
:where(:root[data-theme="dark"]) .mp-supply-ledger .mp-chip--active {
    background: var(--mp-ink);
    color: var(--mp-card);
}

:where(:root[data-theme="dark"]) .mp-stock-filters__name {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-stock-filters__order {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-stock-filters__icon {
    background: var(--mp-violet-soft);
    color: var(--mp-violet);
}

:where(:root[data-theme="dark"]) .manager-app-shell .sk :is(.sk-panel, .sk-card, .sk-tile, .sk-table) {
    background: var(--mp-card);
    box-shadow: var(--mp-card-shadow);
}

:where(:root[data-theme="dark"]) .manager-app-shell .sk .sk-block--hero {
    background: var(--mp-hero-bg);
    box-shadow: var(--mp-card-shadow);
}

:where(:root[data-theme="dark"]) .mp-card__title {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-card__subtitle {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-card__aside {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-card__foot {
    background: none;
    color: var(--mp-accent);
}

:where(:root[data-theme="dark"]) .mp-row {
    color: var(--mp-ink);
}

:where(:root[data-theme="dark"]) .mp-row--button {
    background: none;
}

:where(:root[data-theme="dark"]) .mp-row--danger {
    color: var(--mp-down);
}

:where(:root[data-theme="dark"]) .mp-row > svg {
    color: var(--mp-muted);
}

:where(:root[data-theme="dark"]) .mp-row__icon {
    background: var(--mp-tone-soft);
    color: var(--mp-tone);
}

:where(:root[data-theme="dark"]) .mp-row__hint {
    color: var(--mp-muted);
}

@media (min-width: 1024px) {
    :where(:root[data-theme="dark"]) .mp-bar--sticky::after {
        background: linear-gradient(var(--mp-bar-glass), transparent);
    }

    :where(:root[data-theme="dark"]) .mp-bar {
        background: transparent;
        color: var(--mp-ink);
    }

    :where(:root[data-theme="dark"]) .mp-hero {
        background: none;
        color: var(--mp-ink);
    }

    :where(:root[data-theme="dark"]) .mp-tools .mp-tools__leading .mp-action {
        box-shadow: none;
        background: var(--mp-violet-soft);
    }

    :where(:root[data-theme="dark"]) .mp-search__field {
        background: var(--mp-card);
        box-shadow: var(--mp-chip-shadow);
        color: var(--mp-muted);
    }

    :where(:root[data-theme="dark"]) .mp-search__field input {
        color: var(--mp-ink);
    }

    :where(:root[data-theme="dark"]) .mp-search__field input::placeholder {
        color: var(--mp-muted);
    }

    :where(:root[data-theme="dark"]) .mp-search__field:focus-within,
    :where(:root[data-theme="dark"]) .mp-tools .mp-pill--picker:focus-within {
        box-shadow: var(--mp-chip-shadow), inset 0 0 0 1.5px var(--mp-accent);
    }

    :where(:root[data-theme="dark"]) .mp-search__kbd {
        background: var(--mp-track, rgb(255 255 255 / 0.075));
        color: var(--mp-muted);
    }

    :where(:root[data-theme="dark"]) .mp-search__clear {
        background: var(--mp-violet-soft);
        color: var(--mp-ink);
    }

    :where(:root[data-theme="dark"]) .mp-tools .mp-pill,
    :where(:root[data-theme="dark"]) .mp-tools .mp-action {
        background: var(--mp-card);
        box-shadow: var(--mp-chip-shadow);
        color: var(--mp-ink);
    }

    :where(:root[data-theme="dark"]) .mp-banner {
        background: var(--mp-hero-bg);
        color: var(--mp-hero-ink);
    }

    :where(:root[data-theme="dark"]) .mp-banner:not(:has(.mp-figure)) {
        background: none;
        color: var(--mp-ink);
    }

}

@media (max-width: 1023px) {
    :where(:root[data-theme="dark"]) .mp-tools {
        color: var(--mp-hero-ink);
    }

    :where(:root[data-theme="dark"]) .mp-card--figures .mp-row__label {
        color: var(--mp-muted);
    }

    :where(:root[data-theme="dark"]) .mp-tools .mp-tools__avatar {
        box-shadow: 0 0 0 2px var(--mp-hero-glass), 0 6px 36px -8px rgb(0 0 0 / 0.6);
    }

    :where(:root[data-theme="dark"]) .mp-tools .mp-pill,
    :where(:root[data-theme="dark"]) .mp-tools .mp-action,
    :where(:root[data-theme="dark"]) .mp-tools .mp-search__field {
        background: var(--mp-bar-smoke);
        box-shadow: inset 0 0 0 1px var(--mp-hero-glass), 0 6px 36px -8px rgb(0 0 0 / 0.6);
    }

    :where(:root[data-theme="dark"]) .mp-tools .mp-search__field:focus-within,
    :where(:root[data-theme="dark"]) .mp-tools .mp-pill--picker:focus-within {
        background: linear-gradient(var(--mp-hero-glass), var(--mp-hero-glass)), var(--mp-bar-smoke);
        box-shadow: inset 0 0 0 1px var(--mp-hero-glass-strong), 0 6px 36px -8px rgb(0 0 0 / 0.6);
    }

    :where(:root[data-theme="dark"]) .mp-context {
        color: var(--mp-hero-muted);
    }

}

@media (min-width: 1024px) {
    @supports not (animation-timeline: scroll()) {
        :where(:root[data-theme="dark"]) .mp-bar--sticky {
            background: var(--mp-bar-glass);
        }

    }

}

/* dark-theme:generated:end */
