@import 'css/reboot.css';
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
    --type-ramp-base-font-size: 16px !important;
    --type-ramp-base-line-height: 1.4 !important;
    --orange: #FA6400;
    --orange-hover: #C95100;
    --orange-active: #C95100;
    --tangerine: #FA8C1E;
    --tangerine-hover: #FAB263;
    --tangerine-light: rgba(250, 140, 30, 0.15);
    --tangerine-faint: rgba(250, 140, 30, 0.07);
    --charcoal: #4F4F4F;
    --deep-grey: #303030;
    --mid-grey: #878686;
    --mid-pale-grey: #ababab;
    --pale-grey: #D5D5D5;
    --light-grey: #F0F0F0;
    --off-white: #F9F9F9;
    --page-background: #FCFCFC;
    --border-grey: #F0F0F0;
    --lime: #827800;
    --delete-red: #D31717;
    --all-white: #FFFFFF;

    --header-height: 75px;

    /* Success */
    /* Fluent UI v4 redefined --success, --warning and --info in its own stylesheet (loaded after
       this one), so the values below are the ones the portal has always actually rendered with. */
    --success: #0E700E;
    --success-dark: #15803D;
    --success-darker: #166534;
    --success-light: #DCFCE7;
    --success-medium: #BBF7D0;

    /* Warning */
    --warning: #E9835E;
    --warning-light: rgba(250, 140, 30, 0.15);

    /* Info */
    --info: #616161;
    --info-light: #DBEAFE;

    /* Danger */
    --danger: #991B1B;
    --danger-light: #FEE2E2;
    --error: #BC2F32;

    /* Fluent UI v4 design tokens still referenced by the portal's own styles. v5 no longer
       defines them, so they are pinned to the values v4 resolved them to. */
    --design-unit: 4;
    --stroke-width: 1;
    --neutral-foreground-rest: #1A1A1A;
    --neutral-foreground-hint: #717171;
    --neutral-stroke-divider-rest: #EBEBEB;
    --neutral-fill-hover: #F7F7F7;
    --accent-fill-rest: #C13B00;
}

/* Reserve the page scrollbar's width even on pages too short to scroll, so the centred .container
   (and the header's logo and buttons) doesn't shift sideways when moving between a page that
   scrolls and one that doesn't. No effect where scrollbars overlay the content (mobile, macOS). */
html {
    scrollbar-gutter: stable;
}

body {
    --body-font: "Lato", sans-serif;

    /* Set on body rather than :root so they win over the theme tokens the library adopts at :root.
       v5 components size their text from --fontSizeBase300 (14px by default); v4 components used
       the base type ramp, which the portal sets to 16px (14px on mobile). */
    --fontFamilyBase: var(--body-font);
    --fontSizeBase300: var(--type-ramp-base-font-size);

    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    color: var(--charcoal);
    margin: 0;
}

h1,
.fluent-typography > h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--deep-grey);
    line-height: 1;
    margin-bottom: 16px;
}

h2,
.fluent-typography > h2 {
    font-size: 40px;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 8px;
}

h3,
.fluent-typography > h3 {
    font-size: 26px;
    font-weight: 900;
    color: var(--deep-grey);
    line-height: 1.2;
    margin-bottom: 8px;
}

h4,
.fluent-typography > h4 {
    font-size: 22px;
    font-weight: 900;
    color: var(--deep-grey);
    line-height: 1.2;
    margin-bottom: 8px;
}

/* A lighter heading for the sections of a page (e.g. Home's Top 3 performers and Needs your action),
   so the sections share one style rather than each carrying a full-weight h3. */
.fluent-typography.section-heading > h3 {
    font-size: 20px;
    font-weight: 700;
}

/* (The ".fluent-typography > hN" selectors above also keep FluentText headings at their desktop
   size on mobile, as v4's FluentLabel headings were: the mobile rules below only match plain hN.) */

/* v4's FluentLabel reset the block margins of the heading or paragraph it rendered, and gave text
   without a heading rule the neutral foreground. v5's FluentText renders that tag inside a
   <fluent-text> wrapper, which is what carries this class (and any Style set on the component). */
.fluent-typography {
    font-family: var(--body-font);
    color: var(--neutral-foreground-rest);
    font-style: normal;
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    font-weight: 400;
}

.fluent-typography > :is(h1, h2, h3, h4, h5, h6, p) {
    margin-block: 0;
}

/* Paragraphs size from the wrapper, so a font-size set on the FluentText still applies. */
.fluent-typography > p {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

.subtitle {
    font-size: 16px;
    line-height: 1;
    color: var(--charcoal);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--orange);
}

a:hover {
    text-decoration: underline !important;
    cursor: pointer;
    color: var(--orange-hover);
}

ul li::marker {
    color: var(--orange);
    font-size: 1.4em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    .fluent-typography.section-heading > h3 {
        font-size: 18px;
    }

    /* Opts a FluentText heading into the mobile size plain headings get (see the note above) */
    .fluent-typography.responsive-heading > h2 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.2;
    }

    :root {
        --type-ramp-base-font-size: 14px !important;
        --type-ramp-base-line-height: 1.2 !important;
    }

    .app-form-card {
        background-color: #f0f0f0;
        border: none;
    }
}

.navmenu-icon {
    display: none;
}

/* Fills whatever .layout's 100dvh leaves after the header and footer, so the footer sits at the
   bottom of a short page without the page scrolling. */
.main {
    flex: 1 0 auto;
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
    background-color: var(--page-background);
}

.manage {
    width: 100dvw;
}

footer {
    background: #ffffff;
    color: var(--mid-grey);
    border-top: 1px solid var(--border-grey);
}

.footer-content {
    display: flex;
    align-items: center;
    padding: 16px 24px;

    @media (max-width: 768px) {
        display: flex !important;
        flex-direction: row-reverse !important;
    }
}

.footer-group {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 1rem;
    flex-wrap: wrap;

    span {
        font-size: 16px;
        font-weight: 300;
    }

    @media (
        max-width: 768px) {
        flex-direction: column;
        align-items: unset;
        gap: unset;
    }
}

footer img {
    height: 50px;
    display: block;
}

footer a {
    color: var(--mid-grey);
    text-decoration: none;
}

footer a:focus {
    outline: 1px dashed;
    outline-offset: 3px;
}

footer a:hover {
    text-decoration: underline;
}

.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
    margin: 10px 0;
}

.alert-danger {
    border: 1px dashed var(--error);
}

.alert-success {
    border: 1px dashed var(--success);
}

.alert-warning {
    border: 1px dashed var(--warning);
}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::before {
    content: "An error has occurred. "
}

.polygon-required::after,
.fluent-typography.polygon-required > :first-child::after {
    content: "*";
    color: var(--delete-red);
    font-weight: bold;
    font-size: 1.2rem;
    padding-left: 0.2rem;
}

/* On a FluentText the marker belongs inside the heading it wraps (v4 rendered no wrapper). */
.fluent-typography.polygon-required::after {
    content: none;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

@media (max-width: 768px) {
    .header-gutters {
        margin: 1rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 1rem !important;
    }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

    #main-menu > div:first-child:is(.expander) {
        display: none;
    }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

    #navmenu-toggle ~ nav {
        display: none;
    }

    #navmenu-toggle:checked ~ nav {
        display: block;
    }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }

    .footer-text {
        padding-left: 1rem;
    }
}

/* Table */

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table td,
table th {
    /* This used var(--spacingVerticalS) var(--spacingHorizontalM), which v4 never defined, so cells
       have always rendered unpadded. v5 does define them, so the rendered value is pinned instead. */
    padding: 0;
    text-align: left;
    vertical-align: middle;
    border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    padding: 35px 16px;
    box-sizing: border-box;
}

.performer-subtext {
    font-size: 14px;
    color: var(--mid-grey);
}

/* Home page action cards - FluentGrid tiles in brand colours. A link for a card that changes page, a
   button for one that acts in place; both render identically. The flex column and text-align repeat
   what a button does natively (centres its content), so a link card matches when the row's cards
   differ in height or a label wraps. */
.action-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, box-shadow 0.15s ease, outline 0.15s ease;
    width: 100%;
    height: 100%;
    padding: calc(var(--design-unit) * 5px);
    border-radius: 0.5rem;
    border: unset;

    &:focus-visible {
        outline: 2px solid var(--orange);
        outline-offset: 2px;
    }

    &.tangerine {
        background: var(--tangerine);
    }

    &.orange {
        background: var(--orange);
    }

    &.mid-grey {
        background: var(--mid-grey);
    }

    &.charcoal {
        background: var(--charcoal);
    }
}

/* !important to beat the global a:hover underline */
.action-card:hover {
    filter: brightness(1.10);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    text-decoration: none !important;
}

.action-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    /* Sized here rather than by the icon's class, as not every card's icon comes larger than 24px.
       !important to beat the inline width FluentIcon renders from that class. */
    svg {
        width: 32px !important;
        height: 32px;
    }
}

.action-card-label {
    font-weight: 700;
    color: white;
    font-size: 20px;
    text-wrap: wrap;
}

.action-card-subtext {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-align: center;
}


@media (max-width: 768px) {
    .action-card {
        .action-card-icon svg {
            width: 28px !important;
            height: 28px;
        }

        .action-card-label {
            font-size: 16px;
        }

        .action-card-subtext {
            display: none;
        }
    }
}


/* body + :not([appearance]) to out-rank the library's card rule, which loads after this file */
.highlighted-card,
body .fluent-card.highlighted-card:not([appearance]) {
    border-color: var(--tangerine);
    background-color: rgba(255, 140, 0, 0.08);
}

/* Shared text utilities */
.text-orange {
    color: var(--orange);
}

.text-muted {
    color: var(--mid-grey);
}

.text-muted.small {
    font-size: 14px;
}

.pipeline-table-top-element {
    height: min-content;
    min-height: 1.5em;
    margin-bottom: 4px;
    vertical-align: top;
}

.selector-container {
    display: flex;
    border-radius: 8px;
    border: 1px solid var(--pale-grey);
    background-color: var(--off-white);
    width: 100%;
    overflow: hidden;
}

.item-to-return-header {
    padding: 20px;
    cursor: pointer;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.item-to-return-header.active {
    background-color: #fff8f2;
    border-bottom: 1px solid var(--pale-grey);
    overflow: hidden;
}

.selector-container.active {
    border: 1px solid var(--orange);
}

/* Outline-only variant, for a slot waiting to be filled rather than a real row. */
.selector-container.dashed {
    border-style: dashed;
    background-color: transparent;
}

.selector-container,
.selector-container.active {
    transition: border-color 0.2s ease;
}

.selector-container + .selector-container {
    margin-top: 2rem;
}

/* ----- Return item rows (ItemToReturnSelector, NotListedItem) ----- */

/* Laid out against the card's width, not the viewport's - the card shares the page with the summary panel, so
   viewport breakpoints squeezed the description to nothing and ran the chip into the serial number. */
.item-row {
    container-type: inline-size;
}

/* Two rows by default: the description, then the status chip and the details under it, wrapping as needed */
.item-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "check description"
        ".     details";
    align-items: center;
    column-gap: 0.8rem;
    row-gap: 0.4rem;
    width: 100%;
    box-sizing: border-box;
}

.item-check {
    grid-area: check;
    display: flex;
}

.item-description {
    grid-area: description;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-description.expanded {
    white-space: normal;
    overflow-wrap: anywhere;
}

.item-description-input {
    grid-area: description;
    min-width: 0;
}

.item-description-input fluent-text-input {
    width: 100%;
}

.item-details {
    grid-area: details;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 0.4rem;
}

.item-status {
    display: flex;
}

.item-serial,
.item-contract {
    overflow-wrap: anywhere;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Only shown in place of the label, below */
.status-chip .chip-icon {
    display: none;
}

/* One row once there is room for it. The serial number and contract (or a not-listed item's actions) take fixed
   shares of the row, so the chips and columns line up from card to card. Touch screens hold out for a wider card,
   as their chip can't shrink to an icon (there is no hover to bring its tooltip up). */
@container (width >= 1000px) {
    .item-summary {
        grid-template-columns: auto minmax(0, 1fr) auto 25% 25%;
        grid-template-areas: "check description status serial contract";
    }

    .item-details { display: contents; }
    .item-status { grid-area: status; }
    .item-serial { grid-area: serial; }
    .item-contract { grid-area: contract; }
    .item-actions { grid-column: serial-start / contract-end; }
}

@media (hover: hover) and (pointer: fine) {
    @container (760px <= width < 1000px) {
        .item-summary {
            grid-template-columns: auto minmax(0, 1fr) auto 25% 25%;
            grid-template-areas: "check description status serial contract";
        }

        .item-details { display: contents; }
        .item-status { grid-area: status; }
        .item-serial { grid-area: serial; }
        .item-contract { grid-area: contract; }
        .item-actions { grid-column: serial-start / contract-end; }

        .status-chip .chip-label { display: none; }
        .status-chip .chip-icon { display: block; }
        fluent-badge.chip.status-chip { padding: 5px; }
    }

    /* Too narrow for the chip to share the second row with the details */
    @container (width < 420px) {
        .status-chip .chip-label { display: none; }
        .status-chip .chip-icon { display: block; }
        fluent-badge.chip.status-chip { padding: 5px; }
    }
}

/* A collapsed description can't be hovered for its tooltip on a touch screen - and an item already on a return
   can't be expanded either - so it gets a second line before it is cut off */
@media not all and (hover: hover) and (pointer: fine) {
    .item-description:not(.expanded) {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

.icon-container {
    display: flex;
    align-items: center;
}

.selector-container fluent-textarea::part(root) {
    border-radius: 8px;
}

.selector-container fluent-text-input:not([inputmode])::part(root) {
    border-radius: 8px;
}

.uppercase-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mid-grey);
}

.checkbox-hint {
    padding-left: 30px;
}

/* ----- Quick Action (Stock / Invoice) dialog ----- */

/* A step smaller than the portal's h3 / h4: the dialog is a working form, not a page */
.fluent-typography.quick-action-customer > h3 {
    font-size: 22px;
}

.fluent-typography.quick-action-heading > h4 {
    font-size: 19px;
}

/* The This order panel's item names and prices, a touch under body size */
.quick-action-summary-item,
.quick-action-price {
    font-size: 14px;
    font-weight: 400;
}

/* The name sits in a stack that aligns its children to the start, so it would size to its full text and run
   under the price; capping it at the column's width lets .summary-item-description's ellipsis cut it short */
.quick-action-summary-item {
    display: block;
    max-width: 100%;
}

/* ----- Summary panel ----- */

.summary-item-description {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The return summary is the dealer's last check before completing, so it shows each description in full */
.summary-item-description.wrap {
    white-space: normal;
    overflow-wrap: anywhere;
}

.summary-headline {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--deep-grey);
}

.summary-scrim,
.summary-sheet-header,
.mobile-action-bar {
    display: none;
}

/* Capped and right-aligned so a multi-condition label wraps within itself rather than
   squeezing the description, which is the element that truncates. */
.summary-item-state {
    flex: 0 1 auto;
    max-width: 55%;
    text-align: right;
}

@media (min-width: 960px) {
    .summary-column-inner {
        position: sticky;
        top: calc(var(--header-height) + 24px);
        max-height: calc(100dvh - var(--header-height) - 48px);
        overflow-y: auto;
        padding-bottom: 2px;
    }
}

@media (max-width: 959.98px) {
    .summary-column {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        max-height: 88dvh;
        overflow-y: auto;
        background-color: var(--all-white);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
        display: none;
    }

    .summary-column.open {
        display: block;
        transform: translateY(0);
        transition: transform 0.25s ease;

        @starting-style {
            transform: translateY(100%);
        }
    }

    .summary-card {
        border: none;
    }

    /* Sticky so the handle stays in reach once the sheet has scrolled. */
    .summary-sheet-header {
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        top: 0;
        z-index: 1;
        min-height: 44px;
        padding: 4px 8px 0;
        background-color: var(--all-white);
    }

    .summary-sheet-handle {
        width: 48px;
        height: 24px;
        padding: 0;
        border: none;
        background: none;
        cursor: pointer;
    }

    .summary-sheet-handle::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        margin: 0 auto;
        border-radius: 999px;
        background-color: var(--pale-grey);
    }

    .summary-scrim.open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background-color: rgba(0, 0, 0, 0.45);
    }

    .mobile-action-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background-color: var(--all-white);
        border-top: 1px solid var(--pale-grey);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }

    .mobile-action-bar.hidden {
        display: none;
    }
}

.app-root {
    display: contents;
}

.app-root:not(:empty) + .app-skeleton {
    display: none;
}
