/* Shared action geometry; keep native form/summary behavior and responsive wrapping. */
:is(main,dialog) :is(.btn,.button){box-sizing:border-box;min-width:0;max-width:100%;vertical-align:middle;white-space:normal;overflow-wrap:break-word;text-align:center;line-height:1.4}
:is(main,dialog) :is(.actions,.inline-actions,.form-actions,.dialog-foot,.video-actions){align-items:stretch;row-gap:10px}
:is(main,dialog) :is(.actions,.inline-actions,.form-actions,.dialog-foot,.video-actions)>:is(.btn,.button,button){display:inline-flex;align-items:center;justify-content:center;align-self:stretch;box-sizing:border-box;min-height:44px;min-width:0;max-width:100%;margin-block:0;line-height:1.4}
.form-grid.align-fields { align-items: end; }

/* Match start, end and pay to the inputs beneath the experience legend. */
:is([data-sm-help-scope=spa],.staff-finder-frame) .criteria:has(> .experience-duration) { align-items: end; }

.workflow-attention-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: .5rem;
}
.workflow-attention-actions > .btn {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: .5rem;
    min-block-size: 44px;
    margin: 0;
}
.workflow-attention-actions .pill { flex: none; }
@media (max-width: 480px) {
    .workflow-attention-actions > .btn {
        flex-basis: 100%;
        justify-content: space-between;
        text-align: start;
    }
}

/* Give selectable form rows their own hit area and a separate column for wrapped labels. */
:where(body[data-sm-help-scope=spa],body[data-sm-help-scope=tech],body[data-sm-help-scope=admin],.staff-finder-frame,.web-public)
:where(main,dialog) label:is(.check-field,.check,.field):where(:has(>input:is([type=checkbox],[type=radio])):not([hidden],td *,th *)) {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    box-sizing: border-box;
    gap: .625rem;
    min-inline-size: 0;
    max-inline-size: 100%;
    inline-size: auto;
    block-size: auto;
    min-block-size: 36px;
    padding: .45rem .5rem;
    margin-block: .25rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

:where(body[data-sm-help-scope=spa],body[data-sm-help-scope=tech],body[data-sm-help-scope=admin],.staff-finder-frame,.web-public)
:where(main,dialog) label.check:where(:has(>input:is([type=checkbox],[type=radio])):not(td *,th *)) {
    border: 0;
}

:where(body[data-sm-help-scope=spa],body[data-sm-help-scope=tech],body[data-sm-help-scope=admin],.staff-finder-frame,.web-public)
:where(main,dialog) label:is(.check-field,.check,.field) > input:is([type=checkbox],[type=radio]) {
    box-sizing: border-box;
    inline-size: 18px;
    block-size: 18px;
    min-inline-size: 18px;
    min-block-size: 18px;
    flex: 0 0 18px;
    margin: max(0px, calc((1lh - 18px) / 2)) 0 0;
    padding: 0;
}

:where(body[data-sm-help-scope=spa],body[data-sm-help-scope=tech],body[data-sm-help-scope=admin],.staff-finder-frame,.web-public)
:where(main,dialog) label:is(.check-field,.check)[hidden] {
    display: none;
}

@media (max-width:620px) {
    :where(body[data-sm-help-scope=spa],body[data-sm-help-scope=tech],body[data-sm-help-scope=admin],.staff-finder-frame,.web-public)
    :where(main,dialog) label:is(.check-field,.check,.field):where(:has(>input:is([type=checkbox],[type=radio])):not([hidden],td *,th *)) {
        min-block-size: 44px;
        padding-block: .65rem;
    }
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem;
}
.filter-row > .field {
    flex: 1 1 10rem;
    margin: 0;
    min-inline-size: 0;
}
:is(main, dialog) :is(button, a).filter-button {
    flex: 0 0 auto;
    min-block-size: 44px;
    min-inline-size: max-content;
    white-space: nowrap;
    overflow-wrap: normal;
}
/* Native date inputs otherwise inherit the body copy's taller line-height. */
.operational-page .plan-date-controls{align-items:stretch}
.operational-page .plan-date-controls>:is(.btn,input){box-sizing:border-box;min-height:44px;min-width:0;line-height:1.4;margin-block:0;align-self:stretch}
.operational-page .plan-toolbar .plan-switch {
    align-items: stretch;
    padding-block: 0;
}
.operational-page .plan-toolbar .plan-switch > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    margin: 0;
}
.operational-page .plan-toolbar .inline-actions > select {
    margin-block: 0;
    align-self: stretch;
}

/* Keep related editor fields on a row when there is room, with local scrolling for data tables. */
.workflow-editor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    align-items: end;
    gap: .8rem 1rem;
    min-inline-size: 0;
}
.workflow-editor > * { min-inline-size: 0; }
.workflow-editor > .field { margin: 0; }
.workflow-editor > :is(p, h3, .notice, .table-scroll, .inline-actions, fieldset, .check-field, .field:has(> textarea)) {
    grid-column: 1 / -1;
}
.workflow-editor > :is(.btn, button) {
    min-block-size: 44px;
    justify-self: start;
    margin: 0;
}
.workflow-editor > .table-scroll { max-inline-size: 100%; overflow-x: auto; }
.workflow-note-editor { max-inline-size: 52rem; }
.workflow-note-editor > :is(.field, .inline-actions) { margin-block-start: .7rem; }
.club-workflow :is(summary, p, pre, code) { overflow-wrap: anywhere; }
.club-workflow details.card > summary { cursor: pointer; font-weight: 650; }
.club-workflow details[open].card > summary { margin-block-end: .8rem; }
.club-workflow .table-scroll td :is(button, input[type=checkbox]) { vertical-align: middle; }
.club-workflow .table-scroll td label { display: inline-flex; gap: .45rem; align-items: center; padding: .25rem; }
.club-workflow .table-scroll td label input { margin: 0; }
.club-workflow .record-summary {
    display: grid;
    gap: .35rem .9rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    padding: 0;
    margin: .6rem 0 0;
    list-style: none;
}
.club-workflow .record-summary strong { display: block; font-variant-numeric: tabular-nums; }
.club-team-app-upload { align-items: end; }
.club-team-app-upload > .field { min-inline-size: 0; margin: 0; }
.workflow-section-chooser > summary { display: none; }
@media (max-width: 620px) {
    .workflow-editor { grid-template-columns: minmax(0, 1fr); }
    .workflow-editor > :is(.btn, button) { justify-self: stretch; }
    .club-workflow .table-scroll { margin-inline: -.2rem; }
    .workflow-section-chooser { margin-block-end: .75rem; }
    .workflow-section-chooser > summary {
        display: list-item;
        box-sizing: border-box;
        min-block-size: 44px;
        padding: .62rem .8rem;
        border: 1px solid var(--sm-border, #a5b4be);
        border-radius: 8px;
        cursor: pointer;
        font-weight: 650;
        overflow-wrap: anywhere;
    }
    .workflow-section-chooser[open] > nav { margin-block-start: .6rem; }
}
.operational-page .eq-toolbar{align-items:stretch}
.operational-page .eq-toolbar>.inline-actions{align-items:stretch}
.operational-page .eq-toolbar .eq-display-options{border:0;padding:0;margin:0;align-self:stretch}
.operational-page .eq-display-options>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;height:100%;box-sizing:border-box;padding:10px 12px;line-height:1.4;list-style:none}
.operational-page .eq-display-options>summary::-webkit-details-marker{display:none}
.operational-page .eq-display-options>summary::before,.operational-page .calendar-menu-tools>:is(.workflow-attention,.voice-appointment)>summary::before{content:'';width:0;height:0;flex:0 0 auto;border-left:5px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent}
.operational-page .eq-display-options[open]>summary::before,.operational-page .calendar-menu-tools>:is(.workflow-attention,.voice-appointment)[open]>summary::before{transform:rotate(90deg)}
/* A collapsed attention disclosure belongs on the same row as Booking Wizard. */
.operational-page .calendar-menu-tools{align-items:flex-start}
.operational-page .calendar-menu-tools>.inline-actions{align-self:flex-start;margin:0}
.operational-page .calendar-menu-tools>details:is(.workflow-attention,.voice-appointment){padding:0!important;margin:0;min-width:0}
.operational-page .calendar-menu-tools>:is(.workflow-attention,.voice-appointment)>summary{display:flex;align-items:center;gap:5px;min-height:42px;box-sizing:border-box;padding:10px 12px;font-size:13px;line-height:1.4;list-style:none}
.operational-page .calendar-menu-tools>:is(.workflow-attention,.voice-appointment)>summary::-webkit-details-marker{display:none}
.operational-page .calendar-menu-tools>.workflow-attention>.workflow-attention-actions{margin:8px 0 0;padding:0 12px 12px}
.operational-page .calendar-menu-tools>.voice-appointment>section{padding:0 12px 12px}
.operational-page .calendar-menu-tools:not(:has(>details[open])){align-items:stretch}
.operational-page .calendar-menu-tools:not(:has(>details[open]))>.inline-actions{align-self:stretch}
.operational-page .calendar-menu-tools>.inline-actions>.btn{flex:1 1 auto}
.operational-page .calendar-menu-tools:not(:has(>details[open]))>:is(.workflow-attention,.voice-appointment)>summary{height:100%}
.operational-page .calendar-menu-tools>.workflow-attention>summary{white-space:nowrap}
.operational-page .calendar-menu-tools>.workflow-attention>summary>strong{min-width:0;white-space:normal}
/* Long CSV examples must wrap within the report rather than shift its controls off-screen. */
.office-shell main :is(pre,code){max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
/* Keep the session, feedback and language controls on the same button geometry. */
:is(.topbar,.header-actions) .session-counter{min-height:44px;justify-content:center}
@media(max-width:620px){
 .operational-page .eq-toolbar>.inline-actions>.eq-display-options{flex:1 1 130px}
 .operational-page .eq-toolbar .eq-display-options>summary{width:100%}
 /* Reserve the brand's width, and wrap the actions before they overlap it. */
 .operational-page .topbar:has(.topbar-feature-search){grid-template-columns:minmax(min-content,1fr) minmax(0,auto)}
 .operational-page .topbar:not(:has(.topbar-feature-search)){height:auto;min-height:72px;padding-block:6px;flex-wrap:wrap}
 .operational-page :is(.topbar .top-right,.header-actions){min-width:0;flex-wrap:wrap;column-gap:5px;row-gap:5px}
 :is(.topbar,.header-actions) [data-form-feedback]{display:inline-flex}
 :is(.topbar,.header-actions) [data-form-feedback]>.ff-trigger{position:static;width:44px;box-shadow:none}
 .operational-page #officeForm>header{justify-content:flex-start;padding:6px 12px;gap:6px}
 .operational-page #officeForm>header>.header-actions{display:contents}
 .operational-page #officeForm>header .ff-trigger{padding:0}
 .operational-page #officeForm>header :is(a:not(.brand),button.ghost){min-height:44px;display:inline-flex;align-items:center}
}
@media(max-width:440px){
 /* Give the complete action row the full phone width. */
 .operational-page[data-sm-help-scope="tech"] .topbar{padding-inline:12px}
 .operational-page[data-sm-help-scope="tech"] .topbar .top-right{flex-basis:100%;justify-content:flex-start;column-gap:4px}
 .operational-page .topbar.workspace-search-ready:has(.topbar-feature-search){grid-template-columns:max-content minmax(0,1fr) auto}
 .operational-page .topbar.workspace-search-ready .workspace-search-toggle{grid-column:3;grid-row:1}
 .operational-page .topbar.workspace-search-ready .top-right{grid-column:1/-1;grid-row:2;justify-content:flex-start;column-gap:4px}
 .operational-page .topbar.workspace-search-ready .topbar-context{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
 .operational-page .topbar.workspace-search-ready .topbar-context:has(.role-view-banner){grid-column:1/-1;grid-row:4}
}
