/* Shared operational form density. Loaded after page styles in every staff layout. */
[hidden] { display: none !important; }
.operating-session { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid #d9dfe5; border-left: 3px solid #c9003d; background: #fff; }
.operating-session > div { flex: 1; min-width: 180px; }
.operating-session strong { font-size: 14px; }
.operating-session p { margin: 2px 0 0; font-size: 13px; color: #4b5563; }
.operating-session[data-status="current"] { border-left-color: #237b57; background: #f6faf8; }
.operating-session[data-status="rollover"] { background: #fff8ed; border-left-color: #a96708; }
.cash-count-row input, .cash-count-row select { min-height: 36px; padding: 7px 10px; border: 1px solid #8994a3; border-radius: 0; font: inherit; font-size: 14px; min-width: 0; width: 100%; }
:root {
    --zg-control: 36px;
    --zg-font: "Segoe UI", Arial, sans-serif;
}

body { font-family: var(--zg-font); font-size: 14px; font-weight: 400; line-height: 1.45; }
.zg-page-header { gap: 16px; margin-bottom: 18px; }
.zg-page-header h1,
.restaurant-mode .zg-page-header h1,
.restaurant-admin-mode .zg-page-header h1 {
    font-family: var(--zg-font);
    font-size: 26px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.zg-page-header__copy > p,
.restaurant-mode .zg-page-header__copy > p { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.zg-main .zg-page,
.restaurant-mode .zg-page { padding: 20px 24px 28px; }
.zg-platform-main,
.restaurant-admin-mode .zg-platform-main { padding: 20px 24px; }

/* Keep required/error/focus colors and native semantics from the base styles. */
.zg-field,
.restaurant-page .restaurant-fields label,
.restaurant-page .taskform label { gap: 5px; }
.zg-field > label,
.zg-fieldset > legend,
.restaurant-page .restaurant-fields label,
.restaurant-page .taskform label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.zg-field input:not([type="checkbox"]):not([type="radio"]),
.zg-field select,
.zg-field textarea,
.zg-input,
.restaurant-page input:not([type="checkbox"]):not([type="radio"]),
.restaurant-page select,
.restaurant-page textarea {
    min-height: var(--zg-control);
    padding: 7px 10px;
    border-radius: 0;
    font-family: var(--zg-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}
.zg-field select { padding-right: 34px; background-size: 16px; background-position: right 10px center; }
.manager-report .manager-filter input, .manager-report .manager-filter select { min-height: 36px; border-radius: 0; padding: 7px 10px; font: inherit; font-size: 14px; }
.audit-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); align-items: end; overflow: visible; border-radius: 0; }
.audit-filters .zg-field, .audit-filters .zg-field--search { min-width: 0; }
.audit-filters .zg-field > label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
.audit-filters .zg-field input, .audit-filters .zg-field select { min-height: 36px; }
.audit-filters > button { justify-self: start; }
.restaurant-page select { padding-right: 30px; }
.zg-field textarea,
.restaurant-page textarea { min-height: 68px; padding-block: 8px; resize: vertical; }
.zg-field textarea[rows="2"],
.restaurant-page textarea[rows="2"] { min-height: 58px; }
.zg-field small,
.form-hint,
.zg-field__hint,
.restaurant-page .taskform small {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.form-hint { margin-block: 6px 10px; }
.zg-field__optional { font-size: 12px; font-weight: 400; }

.zg-button,
.restaurant-page .zg-button,
.restaurant-page .button,
.restaurant-page .btn {
    min-height: var(--zg-control);
    max-width: 100%;
    padding: 7px 12px;
    gap: 7px;
    border-radius: 0;
    font-family: var(--zg-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    white-space: normal;
    text-align: center;
}
.restaurant-page button { min-height: var(--zg-control); }
.zg-button__icon,
.zg-button > .zg-icon { width: 18px; height: 18px; flex-shrink: 0; }
.zg-icon-button { border-radius: 0; }
.zg-command-search,
.restaurant-mode .zg-command-search { height: var(--zg-control); border-radius: 0; }
.zg-segmented,
.zg-segmented button,
.zg-segmented label { border-radius: 0; }
.zg-button:hover { transform: none; }
.zg-check { min-height: 32px; gap: 8px; font-size: 13px; }
.zg-check__box { border-radius: 0; }

.form-grid,
.form-stack { padding: 12px 14px; gap: 12px; }
.zg-form,
.zg-form-grid,
.task-form,
.restaurant-page .form-grid,
.restaurant-page .restaurant-fields,
.restaurant-page .restaurant-stack { gap: 12px; }
.form-grid > *,
.zg-form-grid > *,
.restaurant-page .restaurant-fields > * { min-width: 0; }
.task-form > .panel > .zg-field,
.task-form > .panel > .zg-check { margin: 12px 14px; }
.inline-form { padding: 12px 14px; gap: 10px; }
.sticky-actions,
.form-actions { min-height: 48px; padding-block: 8px; gap: 8px; flex-wrap: wrap; }
.form-actions--secondary { padding: 10px 14px; }

.panel,
.restaurant-page .panel { border-radius: 2px; box-shadow: none; }
.panel__header { min-height: 44px; padding: 10px 14px; gap: 12px; }
.panel__header h2,
.panel__header h3,
.restaurant-page .panel > h2,
.restaurant-page .panel > h3 { font-size: 16px; line-height: 1.35; font-weight: 650; letter-spacing: 0; }
.panel__header p { font-size: 12px; line-height: 1.45; }
.restaurant-page .panel { padding: 14px; }
.restaurant-page .restaurant-actions,
.restaurant-page .taskform .actions { gap: 8px; margin-block: 12px; }
.restaurant-page fieldset { margin-block: 12px; padding: 12px; border-radius: 0; }
.restaurant-page legend { font-size: 14px; }
.restaurant-page .restaurant-note { padding: 10px 12px; margin-block: 12px; border-radius: 2px; font-size: 13px; line-height: 1.5; }
.restaurant-page .restaurant-context { padding: 12px 14px; margin-bottom: 14px; border-radius: 2px; }
.restaurant-page .restaurant-disclosure { padding: 12px; border-radius: 2px; }
.restaurant-page details { padding-block: 10px; }
.restaurant-page summary { min-height: 32px; font-size: 13px; }
.restaurant-page .restaurant-fields > div > strong { padding: 8px 10px; border-radius: 0; font-size: 14px; }
.restaurant-page .form-grid { padding: 0; }
.restaurant-page .restaurant-report-toolbar > label { gap: 5px; }

.segmented-control { min-height: 38px; padding: 2px; margin: 12px 14px; border-radius: 0; }
.segmented-control label > span { min-height: 32px; min-width: 110px; padding: 5px 12px; border-radius: 0; font-size: 13px; font-weight: 600; }
.segmented-control input:focus-visible + span { outline: 2px solid var(--zg-cobalt); outline-offset: 2px; }
.step-count { min-height: 24px; min-width: 24px; padding: 0 6px; border-radius: 2px; font-size: 12px; }

/* Native dialog focus, backdrop and scroll locking stay in app.js/app.css. */
.zg-dialog__surface { border-radius: 2px; }
.zg-dialog__header { min-height: 60px; padding: 12px 16px; gap: 12px; }
.zg-dialog__header h2 { font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
.zg-dialog__header p { font-size: 13px; line-height: 1.45; }
.zg-dialog__header .zg-icon-button { min-width: 36px; width: 36px; height: 36px; }
.zg-dialog__body { padding: 16px; }
.zg-dialog__body > .form-grid { padding: 0; }
.zg-dialog__footer { min-height: 56px; padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
.ws-form__body { padding: 18px 24px; }
.ws-heading { padding: 20px 24px; }
.ws-heading h1 { font-size: 26px; }
.audit-history-table th,.audit-history-table td { padding: 8px 10px; font-size: 13px; vertical-align: top; }
.history-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 12px 0 20px; flex-wrap: wrap; }
.zg-sidebar .zg-modules { min-width: 0; max-width: 100%; padding-inline: 0; }
.zg-sidebar .zg-modules__item { min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }
.zg-page-header { flex-wrap: wrap; }
.zg-page-header__copy { min-width: 0; }
@media (min-width: 761px) and (max-width: 1180px) {
    .zg-sidebar .zg-modules { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; }
    .zg-sidebar .zg-modules__item { padding: 8px 3px; font-size: 10px; flex-direction: column; gap: 3px; }
    .zg-sidebar .zg-modules__item .zg-icon { width: 18px; height: 18px; }
    .zg-sidebar .zg-modules__item span { max-width: 100%; text-align: center; }
}

@media (max-width: 760px) {
    .cash-count-row input, .cash-count-row select { min-height: 44px; font-size: 16px; }
    :root { --zg-control: 44px; }
    .zg-main .zg-page,
    .restaurant-mode .zg-page,
    .zg-platform-main,
    .restaurant-admin-mode .zg-platform-main { padding: 16px 14px 24px; }
    .zg-page-header h1,
    .restaurant-mode .zg-page-header h1,
    .restaurant-admin-mode .zg-page-header h1 { font-size: 24px; }
    .zg-field input:not([type="checkbox"]):not([type="radio"]),
    .zg-field select,
    .zg-field textarea,
    .zg-input,
    .restaurant-page input:not([type="checkbox"]):not([type="radio"]),
    .restaurant-page select,
    .restaurant-page textarea { font-size: 16px; }
    .zg-check { min-height: 44px; }
    .segmented-control label > span { min-height: 40px; }
    .restaurant-page summary { min-height: 44px; }
    .zg-dialog__header .zg-icon-button { min-width: 44px; width: 44px; height: 44px; }
    .ws-form__body,
    .ws-heading { padding: 16px; }
}

@media (pointer: coarse) and (min-width: 761px) {
    :root { --zg-control: 44px; }
    .zg-check { min-height: 44px; }
    .segmented-control label > span { min-height: 40px; }
}
