html .pro-unified-shell.retail-shell {
    display: flex !important;
    flex-direction: column;
    min-inline-size: 0;
    inline-size: 100%;
}
html .pro-unified-shell.retail-shell > :is(.content, .retail-panel) {
    flex: 1 1 auto;
    margin-inline: 0 !important;
    min-inline-size: 0;
    max-inline-size: 100%;
    inline-size: 100%;
    box-sizing: border-box;
}
.pro-unified-shell > .content > header .lang-switch,
.pro-unified-shell > .retail-panel > .rt-top:not(:has(.top-nav > *)),
.pro-unified-shell > .retail-panel > .top > nav > form:has([name="lang"]) {
    display: none;
}
.pro-unified-shell .table-wrap {
    max-inline-size: 100%;
    overflow-x: auto;
}
:is(.pro-unified-shell, body.pro-workspace) > .pro-shared-header {
    position: relative;
    z-index: 30;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: .45rem 1rem;
    padding: .45rem .75rem;
    color: #fff;
    background: #1b1d21;
    box-sizing: border-box;
}
/* Override the legacy .app-shell nav grid on company pages. */
:is(.pro-unified-shell, body.pro-workspace) > .pro-shared-header > nav,
.pro-shared-identity, .pro-shared-quick, .pro-shared-header .workspace-header-context {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .35rem;
    min-inline-size: 0;
}
.pro-shared-header > nav, .pro-shared-identity strong { flex: 0 0 auto; }
.pro-shared-identity strong { color: #ffb363; white-space: nowrap; }
.pro-shared-identity bdi { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-shared-header > nav a { color: inherit; text-decoration: none; }
.pro-shared-header > nav :is(a, button, summary) {
    box-sizing: border-box;
    border-radius: .4rem;
    padding: .42rem .6rem;
    line-height: 1.3;
}
.pro-shared-header > nav :is(a, button, summary):focus-visible {
    outline: 2px solid #1995ec;
    outline-offset: 2px;
}
.pro-shared-header > nav > :is(.pro-shared-cashier, .workspace-cashier-link),
.pro-shared-header > nav > .workspace-cashier-link[aria-current="page"] { background: #be203c; color: #fff; font-weight: bold; }
.pro-shared-header nav .pro-language-switch { margin: 0; }
.pro-shared-header .pro-language-switch > button {
    background: #ff9800 !important;
    color: #171717 !important;
    border: 0;
}
.pro-shared-nav > :is(form, a, details), .pro-shared-quick > a {
    inline-size: auto;
    margin: 0;
    white-space: nowrap;
}
.pro-shared-header :is(.pro-shared-menu, .cashier-menu) { position: relative; margin: 0; }
.pro-shared-header :is(.pro-shared-menu, .cashier-menu) > summary { border: 1px solid #74767b; cursor: pointer; }
.pro-shared-header :is(.pro-shared-menu-panel, .cashier-menu-panel) {
    position: absolute;
    inset-block-start: calc(100% + .3rem);
    inset-inline-end: 0;
    inline-size: min(19rem, calc(100vw - 1.5rem));
    max-block-size: 65vh;
    max-block-size: 65dvh;
    overflow: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    padding: .5rem;
    border: 1px solid #d9dce2;
    border-radius: .55rem;
    background: #fff;
    color: #1b1d21;
    box-shadow: 0 10px 24px #0003;
}
.pro-shared-header > nav :is(.pro-shared-menu-panel, .cashier-menu-panel) > a { display: block; color: #1b1d21; }
.pro-shared-header > nav a[aria-current="page"] {
    background: #fce6c9;
    color: #422406;
}

@media (min-width: 721px) {
    .pro-shared-header > nav :is(.pro-shared-menu-panel, .cashier-menu-panel) > :is([data-pro-quick-link], .cashier-menu-mobile-link) { display: none; }
}

.pro-shared-header > nav :is(.pro-shared-menu-panel, .cashier-menu-panel) > a:hover {
    background: #ce102c;
    color: #fff;
    text-decoration: none;
}
.pro-shared-header > nav :is(.pro-shared-menu-panel, .cashier-menu-panel) button[value="logout"] {
    inline-size: 100%;
    border: 1px solid #d9dce2;
    background: #fcf7ef;
    color: #171717;
}
.pro-shared-header .pro-shared-identity .workspace-company,
.pro-shared-header .workspace-header-context bdi {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 720px) {
    html :is(.pro-unified-shell, body.pro-workspace) > .pro-shared-header {
        flex-wrap: wrap;
        padding-inline: max(.65rem, env(safe-area-inset-left), env(safe-area-inset-right));
    }
    .pro-shared-identity { max-inline-size: 100%; }
    .pro-shared-header .pro-shared-quick,
    .pro-shared-header > nav > .cashier-primary-link { display: none; }
    .pro-shared-header :is(.cashier-menu-panel, .pro-shared-menu-panel) > .cashier-menu-mobile-link { display: block; }
    .pro-shared-header :is(.pro-shared-menu, .cashier-menu) { position: static; }
    .pro-shared-header :is(.pro-shared-menu-panel, .cashier-menu-panel) {
        inset: calc(100% + .2rem) .65rem auto;
        inline-size: auto;
        min-inline-size: 0;
        max-inline-size: none;
    }
    .pro-shared-header nav :is(a, button, summary) { min-block-size: 38px; }
}
@media print {
    .pro-shared-header { display: none !important; }
    html .pro-unified-shell.retail-shell { display: block !important; }
}

/* Company settings forms retain their own save actions. */
html .content > .panel.narrow:has(> form > [name="action"][value="settings_save"]),
html .content > .panel.narrow.cw-branch-time-settings {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}
.content > .panel > form:has(> [name="action"][value="settings_save"]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: .65rem 1rem;
}
.content > .panel > form:has(> [name="action"][value="settings_save"]) > :not(label) {
    grid-column: 1 / -1;
    margin-block: 0;
}
.content > .panel > form:has(> [name="action"][value="settings_save"]) > label {
    min-inline-size: 0;
    margin-block: 0;
}
.content > .panel > form:has(> [name="action"][value="settings_save"]) > :is(.check, label:has([name="pos_style"], [name="currency"])) {
    grid-column: 1 / -1;
}
.content > .panel > form:has(> [name="action"][value="settings_save"]) > button {
    justify-self: start;
}
.content > .cw-branch-time-settings {
    margin-block-start: 1rem;
}
.cw-branch-time-settings select {
    width: 100%;
    max-width: 36rem;
}
@media (max-width: 620px) {
    .content > .panel > form:has(> [name="action"][value="settings_save"]) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The service name and price are separate rows in the cashier catalog. */
.pro-workspace.wash-cashier #transaction-cashier .service-grid > .service-card {
    grid-template-rows: auto 1fr auto;
    align-content: stretch;
    min-inline-size: 0;
}
.pro-workspace.wash-cashier #transaction-cashier .service-card > strong {
    display: block;
    align-self: start;
    padding: .15rem .45rem;
    color: inherit;
    line-height: 1.35;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
}
.pro-workspace.wash-cashier #transaction-cashier .service-card > bdi {
    justify-self: start;
    align-self: end;
    direction: ltr;
    white-space: nowrap;
    margin-inline: .45rem;
    padding: .16rem .4rem;
    border-radius: 1rem;
    background: #ffad29;
    color: #2a1b05;
    font-size: .85rem;
    line-height: 1.3;
}
