body.staff-manifest-body {
    margin: 0;
    overflow: hidden;
    background: #dfe4ea;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

body.staff-manifest-body #__nuxt {
    min-height: 100vh;
}

.staff-app-shell {
    --staff-type-unit: 1.6rem;
    --staff-bg: #dfe4ea;
    --staff-surface: #ffffff;
    --staff-surface-soft: #f5f7fb;
    --staff-border: #e4e7ec;
    --staff-text: #111827;
    --staff-muted: #6b7280;
    --staff-accent: #18b7d7;
    --staff-brand: #3d49df;
    --staff-mint: #b8f3d7;
    --staff-violet: #efc6f3;
    --staff-sky: #bbe8f7;
    --staff-amber: #fbe9b5;
    --staff-peach: #f7d6d2;
    min-height: 100vh;
    height: 100vh;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--staff-text);
    background: var(--staff-bg);
}

.staff-app-shell *,
.staff-app-shell *::before,
.staff-app-shell *::after {
    box-sizing: border-box;
}

.staff-app-shell button,
.staff-app-shell input,
.staff-app-shell a {
    font: inherit;
}

.staff-app-shell button {
    cursor: pointer;
}

.staff-app-shell h1,
.staff-app-shell h2,
.staff-app-shell h3,
.staff-app-shell p,
.staff-app-shell strong,
.staff-app-shell span {
    margin: 0;
}

.staff-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.staff-workspace-shell {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width, 302px) minmax(0, 1fr);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
}

.staff-workspace-shell.is-compact {
    grid-template-columns: 1fr;
}

.staff-sidebar-shell {
    position: relative;
    min-width: 0;
}

.staff-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 14px 14px 10px;
    border-right: 1px solid var(--staff-border);
    background: #fbfbfc;
    height: 100%;
}

.staff-sidebar-resizer {
    position: absolute;
    top: 0;
    right: -3px;
    width: 6px;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: col-resize;
}

.staff-sidebar-resizer:hover {
    background: rgba(61, 73, 223, 0.08);
}

.staff-sidebar-backdrop,
.staff-compact-nav-toggle {
    display: none;
}

.staff-sidebar__top,
.staff-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.staff-brand {
    justify-content: flex-start;
}

.staff-brand__logo {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: var(--staff-brand);
    color: #fff;
    font-weight: 700;
    font-size: calc(0.8 * var(--staff-type-unit));
}

.staff-brand__name {
    font-size: calc(0.9 * var(--staff-type-unit));
    font-weight: 500;
}

body.staff-manifest-body .material-symbols-rounded {
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.staff-sidebar__icons {
    display: flex;
    gap: 8px;
}

.staff-sidebar__icon-glyph {
    font-size: 18px;
    color: #8e97a5;
}

.staff-sidebar__search {
    position: relative;
}

.staff-sidebar__search input {
    width: 100%;
    padding: 0.75rem 0.85rem 0.75rem 3.15rem;
    border-radius: 14px;
    border: 1px solid var(--staff-border);
    background: #f1f2f4;
    color: var(--staff-muted);
    font-size: calc(0.88 * var(--staff-type-unit));
    font-weight: 400;
}

.staff-sidebar__search-icon {
    position: absolute;
    left: 0.78rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8e97a5;
}

.staff-sidebar__group {
    display: grid;
    gap: 6px;
}

.staff-sidebar__group-label {
    padding: 0 8px;
    font-size: calc(0.76 * var(--staff-type-unit));
    color: var(--staff-muted);
}

.staff-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    width: 100%;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--staff-text);
    text-align: left;
    font-size: calc(0.9 * var(--staff-type-unit));
    font-weight: 400;
}

.staff-nav-item.is-active {
    background: #fff;
    border-color: var(--staff-border);
}

.staff-nav-item.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.staff-nav-item__glyph {
    font-size: 18px;
    color: #8e97a5;
    flex: 0 0 auto;
}

.staff-nav-item.is-active .staff-nav-item__glyph {
    color: var(--staff-brand);
}

.staff-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.staff-login-card {
    width: min(460px, 100%);
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--staff-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.staff-login-card__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-login-card__copy {
    display: grid;
    gap: 8px;
}

.staff-login-card__copy h1 {
    font-size: calc(1.9 * var(--staff-type-unit));
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.staff-login-card__copy p,
.staff-login-card--loading p {
    color: var(--staff-muted);
    font-size: calc(0.95 * var(--staff-type-unit));
}

.staff-login-form {
    display: grid;
    gap: 14px;
}

.staff-login-form__field {
    display: grid;
    gap: 8px;
}

.staff-login-form__field span {
    font-size: calc(0.76 * var(--staff-type-unit));
    color: var(--staff-muted);
}

.staff-login-form__field input {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #fff;
    color: var(--staff-text);
}

.staff-login-form__error {
    color: #c2410c;
    font-size: calc(0.84 * var(--staff-type-unit));
}

.staff-timeline-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 12px 12px 14px;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.staff-timeline-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.staff-timeline-panel__header h1 {
    font-size: calc(1.7 * var(--staff-type-unit));
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.staff-timeline-panel__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.staff-timeline-panel__actions::-webkit-scrollbar {
    display: none;
}

.staff-button-primary,
.staff-button-secondary,
.staff-button-danger,
.staff-month-chip {
    min-height: 38px;
    padding: 0.58rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--staff-border);
    background: #fff;
    color: var(--staff-text);
    font-size: calc(0.86 * var(--staff-type-unit));
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.staff-button-primary {
    background: var(--staff-accent);
    color: #fff;
    border-color: #15aac8;
}

.staff-button-danger {
    background: #fff;
    color: #d92d20;
    border-color: rgba(224, 62, 62, 0.4);
}

.staff-button-danger:hover:not(:disabled) {
    background: rgba(224, 62, 62, 0.1);
}

.staff-button-secondary:disabled,
.staff-button-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.staff-month-chip {
    font-weight: 500;
}

.staff-date-chip-wrap {
    position: relative;
}

.staff-native-date-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.staff-date-chip-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 8;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #fff;
}

.staff-date-chip-popover__field {
    display: grid;
    gap: 4px;
    width: 100%;
}

.staff-date-chip-popover__field span {
    font-size: calc(0.76 * var(--staff-type-unit));
    color: var(--staff-muted);
    font-weight: 400;
}

.staff-date-chip-popover__field input,
.staff-date-chip-popover__field select,
.staff-date-chip-popover__field textarea,
.staff-closed-time-creator__note {
    width: 100%;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid var(--staff-border);
    border-radius: 10px;
    background: #fff;
    color: var(--staff-text);
    font-size: calc(0.82 * var(--staff-type-unit));
    font-weight: 400;
    font-family: "Sora", sans-serif;
    line-height: 1.35;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.staff-date-chip-popover__field textarea,
.staff-closed-time-creator__note {
    min-height: 92px;
    padding: 9px 11px;
    resize: vertical;
}

.staff-date-chip-popover__field input::placeholder,
.staff-date-chip-popover__field textarea::placeholder,
.staff-date-chip-popover__field select:invalid,
.staff-closed-time-creator__note::placeholder {
    color: rgba(100, 116, 139, 0.82);
}

.staff-date-chip-popover__field input:focus,
.staff-date-chip-popover__field select:focus,
.staff-date-chip-popover__field textarea:focus,
.staff-closed-time-creator__note:focus {
    outline: none;
    border-color: rgba(24, 183, 215, 0.38);
}

.staff-date-chip-popover__field select {
    padding-right: 36px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(71, 85, 105, 0.82) 50%),
        linear-gradient(135deg, rgba(71, 85, 105, 0.82) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.staff-zoom-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0.58rem 0.85rem;
    border: 1px solid var(--staff-border);
    border-radius: 12px;
    background: #fff;
    font-size: calc(0.84 * var(--staff-type-unit));
    color: var(--staff-muted);
    flex: 0 0 auto;
}

.staff-zoom-control input {
    width: 98px;
    margin: 0;
}

.staff-timeline-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 10px;
    min-height: 0;
    height: 100%;
    min-width: 0;
}

.staff-timeline-board {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid var(--staff-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    min-height: 0;
    min-width: 0;
}

.staff-timeline-board__header {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    border-bottom: 1px solid var(--staff-border);
    background: #fff;
}

.staff-timeline-board__time-head {
    padding: 10px 8px;
    color: var(--staff-muted);
    font-size: calc(0.74 * var(--staff-type-unit));
    border-right: 1px solid var(--staff-border);
}

.staff-timeline-board__lane-heads {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-timeline-board__lane-head {
    padding: 10px 12px;
    border-right: 1px solid var(--staff-border);
}

.staff-timeline-board__lane-head:last-child {
    border-right: none;
}

.staff-timeline-board__lane-head strong {
    display: block;
    font-size: calc(0.88 * var(--staff-type-unit));
    font-weight: 500;
}

.staff-timeline-board__lane-head span {
    color: var(--staff-muted);
    font-size: calc(0.74 * var(--staff-type-unit));
}

.staff-timeline-board__banner {
    padding: 10px 12px;
    border-top: 1px solid var(--staff-border);
    font-size: calc(0.8 * var(--staff-type-unit));
}

.staff-timeline-board__banner--error {
    color: #b42318;
    background: #fff6f5;
}

.staff-timeline-scroll {
    height: 100%;
    min-height: 0;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.staff-timeline-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.staff-timeline-grid {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    position: relative;
}

.staff-timeline-grid__times {
    border-right: 1px solid var(--staff-border);
    background: #fff;
    position: relative;
    z-index: 1;
}

.staff-timeline-grid__time-rail {
    position: relative;
    height: 100%;
}

.staff-timeline-grid__time-label {
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding-left: 8px;
    pointer-events: none;
}

.staff-timeline-grid__time-label span {
    font-size: calc(0.6 * var(--staff-type-unit));
    color: #9aa3af;
}

.staff-timeline-grid__time-label.is-hour span {
    font-size: calc(0.64 * var(--staff-type-unit));
    color: #4b5563;
    font-weight: 500;
}

.staff-timeline-grid__time-label.is-current {
    z-index: 5;
}

.staff-timeline-grid__time-label.is-current span {
    color: #d92d20;
    font-weight: 500;
}

.staff-timeline-grid__lanes {
    position: relative;
}

.staff-timeline-grid__subdivision-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.staff-timeline-grid__subdivision-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dotted #f1f3f7;
}

.staff-timeline-grid__subdivision-line.is-hour {
    border-top-color: #edf0f5;
}

.staff-timeline-grid__lane-columns {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-timeline-grid__lane-column {
    padding: 0;
    border: none;
    background: transparent;
    border-right: 1px solid #edf0f5;
}

.staff-timeline-grid__lane-column:last-child {
    border-right: none;
}

.staff-timeline-grid__offhours {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(17, 24, 39, 0.02) 0,
        rgba(17, 24, 39, 0.02) 5px,
        transparent 5px,
        transparent 13px
    );
}

.staff-timeline-closed-block {
    position: absolute;
    z-index: 1;
    padding: 0;
    border: none;
    border-top: 1px solid rgba(224, 62, 62, 0.35);
    border-bottom: 1px solid rgba(224, 62, 62, 0.35);
    border-left: 1px dotted rgba(224, 62, 62, 0.35);
    border-right: 1px dotted rgba(224, 62, 62, 0.35);
    border-radius: 0;
    background: rgba(224, 62, 62, 0.1);
}

.staff-timeline-closed-block.is-selected {
    background: rgba(224, 62, 62, 0.16);
    border-top-color: rgba(224, 62, 62, 0.52);
    border-bottom-color: rgba(224, 62, 62, 0.52);
    border-left-color: rgba(224, 62, 62, 0.52);
    border-right-color: rgba(224, 62, 62, 0.52);
}

.staff-timeline-grid__current-time {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #e03e3e;
    z-index: 7;
}

.staff-timeline-booking {
    position: absolute;
    z-index: 2;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 8px 9px 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    text-align: left;
    overflow: hidden;
}

.staff-timeline-booking::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 6px;
    width: 4px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.22);
}

.staff-timeline-booking strong {
    font-size: calc(0.74 * var(--staff-type-unit));
    line-height: 1.35;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.staff-timeline-booking span {
    color: rgba(17, 24, 39, 0.72);
    font-size: calc(0.64 * var(--staff-type-unit));
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.staff-timeline-booking__buffer-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(17, 24, 39, 0.07) 0,
        rgba(17, 24, 39, 0.07) 6px,
        rgba(255, 255, 255, 0.06) 6px,
        rgba(255, 255, 255, 0.06) 12px
    );
    border-top: 1px dashed rgba(17, 24, 39, 0.18);
    pointer-events: none;
}

.staff-timeline-booking__payment-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: calc(0.82 * var(--staff-type-unit));
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.staff-timeline-booking__payment-badge.is-paid {
    color: #0f6b39;
    background: #e3f5ea;
}

.staff-timeline-booking__payment-badge.is-unpaid {
    color: #9c2a23;
    background: #fdeceb;
}

.staff-timeline-booking.is-thin {
    gap: 2px;
    padding: 6px 8px 7px 13px;
    border-radius: 7px;
}

.staff-timeline-booking.is-thin::before {
    top: 6px;
    bottom: 6px;
    left: 5px;
    width: 3px;
}

.staff-timeline-booking.is-thin strong {
    font-size: calc(0.68 * var(--staff-type-unit));
    line-height: 1.25;
}

.staff-timeline-booking.is-thin span {
    font-size: calc(0.58 * var(--staff-type-unit));
    line-height: 1.2;
}

.staff-timeline-booking--mint {
    background: var(--staff-mint);
}

.staff-timeline-booking--mint::before {
    background: #13c56f;
}

.staff-timeline-booking--mint.is-selected {
    border-color: #6fd3a0;
}

.staff-timeline-booking--violet {
    background: var(--staff-violet);
}

.staff-timeline-booking--violet::before {
    background: #e25ad2;
}

.staff-timeline-booking--violet.is-selected {
    border-color: #d88be4;
}

.staff-timeline-booking--sky {
    background: var(--staff-sky);
}

.staff-timeline-booking--sky::before {
    background: #1cb4de;
}

.staff-timeline-booking--sky.is-selected {
    border-color: #67cfe9;
}

.staff-timeline-booking--amber {
    background: var(--staff-amber);
}

.staff-timeline-booking--amber::before {
    background: #d6a51c;
}

.staff-timeline-booking--amber.is-selected {
    border-color: #dfc66a;
}

.staff-timeline-booking--peach {
    background: var(--staff-peach);
}

.staff-timeline-booking--peach::before {
    background: #d56f61;
}

.staff-timeline-booking--peach.is-selected {
    border-color: #df9d95;
}

.staff-timeline-booking--manual {
    z-index: 5;
    background: #f4c1bf;
}

.staff-timeline-booking--manual::before {
    background: #d85d56;
}

.staff-timeline-booking.has-active-issue {
    outline: 2px dashed #ff3b30;
    outline-offset: -2px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 59, 48, 0.18),
        0 8px 18px rgba(255, 59, 48, 0.08);
}

.staff-timeline-buffer-trigger {
    position: absolute;
    z-index: 6;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--staff-text);
    font-size: calc(0.86 * var(--staff-type-unit));
    font-weight: 400;
    line-height: 1;
    padding: 0;
}

.staff-timeline-buffer-trigger:hover {
    color: rgba(17, 24, 39, 0.72);
}

.staff-timeline-buffer-popover {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.staff-timeline-buffer-popover__card {
    position: absolute;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--staff-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    pointer-events: auto;
}

.staff-timeline-buffer-popover__field {
    display: grid;
    gap: 4px;
}

.staff-timeline-buffer-popover__field span {
    color: var(--staff-muted);
    font-size: calc(0.72 * var(--staff-type-unit));
}

.staff-timeline-buffer-popover__field input {
    width: 100%;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid var(--staff-border);
    border-radius: 10px;
    background: #fff;
    color: var(--staff-text);
    font-size: calc(0.82 * var(--staff-type-unit));
    font-weight: 400;
    font-family: "Sora", sans-serif;
}

.staff-timeline-buffer-popover__error {
    color: #991b1b;
    font-size: calc(0.74 * var(--staff-type-unit));
    line-height: 1.4;
}

.staff-timeline-buffer-popover__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.staff-detail-card {
    border: 1px solid var(--staff-border);
    border-radius: 18px;
    background: #fff;
    padding: 14px;
    display: grid;
    align-content: start;
    gap: 14px;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 114, 128, 0.22) transparent;
}

.staff-detail-card::-webkit-scrollbar {
    width: 5px;
}

.staff-detail-card::-webkit-scrollbar-track {
    background: transparent;
}

.staff-detail-card::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.2);
}

.staff-detail-card::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.3);
}

.staff-detail-card__empty {
    color: var(--staff-muted);
    font-size: calc(0.88 * var(--staff-type-unit));
}

.staff-detail-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.staff-detail-card__eyebrow,
.staff-detail-section__label {
    font-size: calc(0.74 * var(--staff-type-unit));
    color: var(--staff-muted);
    font-weight: 400;
}

.staff-detail-card__head h3 {
    font-size: calc(1.08 * var(--staff-type-unit));
    line-height: 1.2;
    margin-top: 4px;
    font-weight: 500;
}

.staff-detail-card__subhead {
    color: var(--staff-muted);
    margin-top: 4px;
    font-size: calc(0.88 * var(--staff-type-unit));
}

.staff-detail-card__body {
    display: grid;
    gap: 10px;
}

.staff-detail-section {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--staff-border);
}

.staff-detail-section:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.staff-detail-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.staff-detail-section__toggle {
    border: none;
    background: transparent;
    color: var(--staff-muted);
    font: inherit;
    font-size: calc(0.74 * var(--staff-type-unit));
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.staff-detail-section__toggle:hover,
.staff-detail-section__toggle:focus-visible {
    color: var(--staff-text);
}

.staff-detail-section strong {
    font-size: calc(0.9 * var(--staff-type-unit));
    line-height: 1.4;
    font-weight: 500;
    display: block;
}

.staff-detail-section p,
.staff-detail-reference-row span,
.staff-activity-row p {
    color: var(--staff-muted);
    line-height: 1.5;
    font-size: calc(0.84 * var(--staff-type-unit));
}

.staff-detail-reference-list,
.staff-activity-list {
    display: grid;
    gap: 8px;
}

.staff-detail-reference-row,
.staff-activity-row {
    display: grid;
    gap: 2px;
}

.staff-detail-reference-row.is-session {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.staff-detail-reference-row strong {
    font-size: calc(0.82 * var(--staff-type-unit));
    font-weight: 500;
    line-height: 1.35;
    /* Wrap long contiguous ids (transaction/invoice ids have no spaces) instead
       of overflowing and forcing a horizontal scroll. */
    min-width: 0;
    overflow-wrap: anywhere;
}

.staff-detail-child-refs {
    display: grid;
    gap: 2px;
    text-align: right;
}

.staff-detail-child-refs span {
    color: var(--staff-muted);
    font-size: calc(0.74 * var(--staff-type-unit));
    line-height: 1.3;
}

.staff-detail-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.staff-closed-time-creator__datetime-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.staff-closed-time-creator__spaces {
    display: grid;
    gap: 8px;
}

.staff-closed-time-creator__space {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #f7f8fa;
    color: var(--staff-text);
    text-align: left;
}

.staff-closed-time-creator__space strong {
    font-size: calc(0.84 * var(--staff-type-unit));
    font-weight: 500;
    line-height: 1.3;
}

.staff-closed-time-creator__space span {
    color: var(--staff-muted);
    font-size: calc(0.72 * var(--staff-type-unit));
}

.staff-closed-time-creator__space.is-selected {
    border-color: rgba(224, 62, 62, 0.22);
    background: rgba(224, 62, 62, 0.08);
}

.staff-manual-order-creator__flow-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.staff-manual-order-creator__flow-button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--staff-border);
    border-radius: 12px;
    background: #f7f8fa;
    color: var(--staff-text);
    text-align: left;
    font-size: calc(0.84 * var(--staff-type-unit));
}

.staff-manual-order-creator__flow-button.is-selected {
    background: rgba(24, 183, 215, 0.08);
    border-color: rgba(24, 183, 215, 0.3);
}

.staff-manual-order-creator__grid {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
}

.staff-manual-order-creator__meta {
    color: var(--staff-muted);
    font-size: calc(0.8 * var(--staff-type-unit));
}

.staff-manual-order-creator__meta strong {
    display: block;
}

.staff-manual-order-creator__pricing {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

.staff-manual-order-creator__pricing p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.staff-manual-order-creator__pricing .is-total strong {
    color: var(--staff-text);
}

.staff-manual-order-creator__issues {
    display: grid;
    gap: 8px;
}

.staff-manual-order-creator__issue {
    padding: 10px 12px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    color: #92400e;
    font-size: calc(0.8 * var(--staff-type-unit));
    line-height: 1.45;
}

.staff-manual-order-creator__issue.is-error {
    border-color: rgba(185, 28, 28, 0.16);
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
}

.staff-manual-order-creator__override {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--staff-muted);
    font-size: calc(0.8 * var(--staff-type-unit));
}

.staff-timeline-creator-preview {
    position: absolute;
    z-index: 5;
    border-radius: 0;
    border-top: 1px solid rgba(24, 183, 215, 0.46);
    border-bottom: 1px solid rgba(24, 183, 215, 0.46);
    border-left: 1px dotted rgba(24, 183, 215, 0.46);
    border-right: 1px dotted rgba(24, 183, 215, 0.46);
    background: rgba(24, 183, 215, 0.18);
    pointer-events: auto;
}

.staff-settings-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 12px 12px 14px;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.staff-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
}

.staff-settings-card {
    border: 1px solid var(--staff-border);
    border-radius: 18px;
    background: #fff;
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 0;
    overflow: auto;
}

.staff-settings-card--wide {
    grid-column: 1 / -1;
}

.staff-settings-card__head {
    display: grid;
    gap: 4px;
}

.staff-settings-card__head--split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.staff-settings-card__head h2 {
    font-size: calc(1.02 * var(--staff-type-unit));
    line-height: 1.2;
    font-weight: 500;
}

.staff-settings-card__head p,
.staff-settings-card__error {
    color: var(--staff-muted);
    font-size: calc(0.82 * var(--staff-type-unit));
    line-height: 1.45;
}

.staff-settings-card__error {
    color: #991b1b;
}

/* Inline status pill for settings cards (unlike the absolute timeline badge). */
.staff-settings-pill {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: calc(0.78 * var(--staff-type-unit));
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.staff-settings-pill.is-on {
    color: #0f6b39;
    background: #e3f5ea;
}

.staff-settings-pill.is-off {
    color: #9c2a23;
    background: #fdeceb;
}

/* Colour swatch beside a price band's name (Pricing view). */
.staff-pricing-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* In-card button row (no overflow clipping, so borders stay intact). */
.staff-settings-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.staff-settings-hours {
    display: grid;
    gap: 0;
}

.staff-settings-hours__header {
    display: grid;
    grid-template-columns: 92px 72px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    padding: 0 0 6px;
    border-bottom: 1px solid var(--staff-border);
}

.staff-settings-hours__header span {
    color: var(--staff-muted);
    font-size: calc(0.68 * var(--staff-type-unit));
    font-weight: 400;
}

.staff-settings-hours__row {
    display: grid;
    grid-template-columns: 92px 72px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--staff-border);
}

.staff-settings-hours__row:last-child {
    border-bottom: none;
}

.staff-settings-hours__day {
    font-size: calc(0.78 * var(--staff-type-unit));
    font-weight: 500;
}

.staff-settings-hours__status {
    display: grid;
    gap: 4px;
}

.staff-settings-hours__closed {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--staff-muted);
    font-size: calc(0.72 * var(--staff-type-unit));
    font-weight: 400;
}

.staff-settings-hours__closed input {
    margin: 0;
}

.staff-settings-hours__time {
    width: 100%;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid var(--staff-border);
    border-radius: 10px;
    background: #fff;
    color: var(--staff-text);
    font-size: calc(0.76 * var(--staff-type-unit));
    font-weight: 400;
    font-family: "Sora", sans-serif;
}

.staff-settings-hours__time:disabled {
    background: #f7f8fa;
    color: #9aa3af;
}

.staff-timeline-creator-preview__handle {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: ns-resize;
    pointer-events: auto;
}

.staff-timeline-creator-preview__handle.is-start {
    top: -5px;
    border-top: 2px solid rgba(24, 183, 215, 0.92);
}

.staff-timeline-creator-preview__handle.is-end {
    bottom: -5px;
    border-bottom: 2px solid rgba(24, 183, 215, 0.92);
}

.staff-workspace-shell,
.staff-timeline-panel,
.staff-timeline-layout,
.staff-timeline-board,
.staff-detail-card {
    min-width: 0;
}

.staff-packages-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 12px 12px 14px;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.staff-packages-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 390px;
    gap: 10px;
    min-height: 0;
    height: 100%;
    min-width: 0;
}

.staff-packages-list-card,
.staff-packages-preview-card,
.staff-package-editor {
    border: 1px solid var(--staff-border);
    border-radius: 18px;
    background: #fff;
    min-height: 0;
    min-width: 0;
}

.staff-packages-list-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.staff-packages-list-card__controls {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--staff-border);
}

.staff-packages-list-card__search {
    position: relative;
}

.staff-packages-list-card__search input,
.staff-packages-filter-select,
.staff-take-payment-modal__input,
.staff-take-payment-modal__select,
.staff-package-editor__field input:not([type="checkbox"]):not([type="radio"]),
.staff-package-editor__field select,
.staff-package-editor__field textarea {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--staff-border);
    border-radius: 10px;
    background: #fff;
    color: var(--staff-text);
    font-size: calc(0.82 * var(--staff-type-unit));
    font-weight: 400;
    font-family: "Sora", sans-serif;
    line-height: 1.35;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.staff-packages-list-card__search input {
    padding-left: 34px;
}

.staff-packages-list-card__search .material-symbols-rounded {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8e97a5;
}

.staff-packages-filter-select {
    padding-right: 32px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(71, 85, 105, 0.82) 50%),
        linear-gradient(135deg, rgba(71, 85, 105, 0.82) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.staff-package-editor__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--staff-muted);
    font-size: calc(0.76 * var(--staff-type-unit));
}

.staff-package-editor__check input {
    width: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.staff-packages-list {
    display: grid;
    gap: 8px;
    padding: 10px;
    overflow: auto;
}

.staff-packages-list__item {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.staff-packages-list__item.is-selected {
    border-color: rgba(24, 183, 215, 0.3);
    box-shadow: inset 0 0 0 1px rgba(24, 183, 215, 0.12);
}

.staff-packages-list__item-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.staff-packages-list__item-head strong {
    font-size: calc(0.84 * var(--staff-type-unit));
    font-weight: 500;
    line-height: 1.35;
}

.staff-packages-list__item-head span {
    color: rgba(26, 35, 53, 0.62);
    font-size: calc(0.68 * var(--staff-type-unit));
    font-weight: 500;
    white-space: nowrap;
}

.staff-packages-list__item p {
    color: var(--staff-muted);
    font-size: calc(0.74 * var(--staff-type-unit));
    line-height: 1.45;
}

.staff-packages-list__meta {
    display: grid;
    gap: 6px;
}

.staff-packages-list__meta span {
    color: rgba(26, 35, 53, 0.74);
    font-size: calc(0.72 * var(--staff-type-unit));
    line-height: 1.45;
}

.staff-packages-preview-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 14px;
    overflow: auto;
}

.staff-packages-preview-card__hero {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
}

.staff-packages-preview-card__media {
    overflow: hidden;
    border-radius: 16px;
    background: #eef2f6;
    min-height: 140px;
}

.staff-packages-preview-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-packages-preview-card__media-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    color: #90a0b2;
}

.staff-packages-preview-card__copy {
    display: grid;
    align-content: start;
    gap: 6px;
}

.staff-packages-preview-card__eyebrow {
    color: rgba(26, 35, 53, 0.62);
    font-size: calc(0.7 * var(--staff-type-unit));
    font-weight: 500;
}

.staff-packages-preview-card__copy h2 {
    font-size: calc(1.18 * var(--staff-type-unit));
    line-height: 1.15;
    font-weight: 500;
}

.staff-packages-preview-card__copy p {
    color: var(--staff-muted);
    font-size: calc(0.82 * var(--staff-type-unit));
    line-height: 1.55;
}

.staff-packages-preview-section {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.staff-packages-preview-list {
    display: grid;
    gap: 8px;
}

.staff-packages-preview-list div {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.staff-packages-preview-list dt,
.staff-packages-preview-note {
    color: var(--staff-muted);
    font-size: calc(0.76 * var(--staff-type-unit));
    line-height: 1.5;
}

.staff-packages-preview-list dd {
    color: var(--staff-text);
    font-size: calc(0.78 * var(--staff-type-unit));
    font-weight: 500;
    line-height: 1.45;
    text-align: right;
}

.staff-packages-list__item.is-escape {
    background: #f6fbfe;
    border-color: #d9eaf4;
}

.staff-packages-list__item.is-action {
    background: #f4fbf7;
    border-color: #dcefe5;
}

.staff-packages-list__item.is-private {
    background: #faf6ff;
    border-color: #eadcf5;
}

.staff-package-editor {
    gap: 12px;
}

.staff-package-editor__hint {
    color: var(--staff-muted);
    font-size: calc(0.74 * var(--staff-type-unit));
    line-height: 1.5;
}

.staff-package-editor__field,
.staff-package-editor__event-types {
    display: grid;
    gap: 6px;
}

.staff-package-editor__field span,
.staff-package-editor__event-types-label {
    color: var(--staff-muted);
    font-size: calc(0.74 * var(--staff-type-unit));
    font-weight: 400;
}

.staff-package-editor__field textarea {
    min-height: 92px;
    padding: 9px 11px;
    resize: vertical;
}

.staff-package-editor__field textarea.is-html {
    min-height: 150px;
}

.staff-package-editor__field input:not([type="checkbox"]):not([type="radio"]):disabled,
.staff-take-payment-modal__input:disabled,
.staff-take-payment-modal__select:disabled,
.staff-package-editor__field select:disabled,
.staff-package-editor__field textarea:disabled {
    background: rgba(255, 255, 255, 0.7);
    color: rgba(26, 35, 53, 0.7);
}

.staff-package-editor__grid {
    display: grid;
    gap: 8px;
}

.staff-package-editor__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-package-editor__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-package-editor__check-grid {
    display: grid;
    gap: 8px;
}

.staff-package-editor__event-types {
    margin-top: 2px;
}

.staff-promo-panel,
.staff-vouchers-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 12px 12px 14px;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.staff-promo-layout {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    height: 100%;
}

.staff-promo-list-card,
.staff-promo-editor,
.staff-vouchers-ledger,
.staff-vouchers-inspector {
    border: 1px solid var(--staff-border);
    border-radius: 18px;
    background: #fff;
    min-height: 0;
    min-width: 0;
}

.staff-promo-list-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.staff-promo-list-card__controls,
.staff-vouchers-ledger__top {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--staff-border);
}

.staff-promo-list,
.staff-vouchers-activity-list {
    display: grid;
    gap: 8px;
    padding: 10px;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
}

.staff-promo-list__item {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 9px 11px;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.staff-promo-list__item.is-selected {
    border-color: rgba(24, 183, 215, 0.3);
    box-shadow: inset 0 0 0 1px rgba(24, 183, 215, 0.12);
}

.staff-promo-list__item-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.staff-promo-list__item-head strong,
.staff-vouchers-table strong,
.staff-vouchers-summary-card strong {
    font-size: calc(0.84 * var(--staff-type-unit));
    font-weight: 500;
    line-height: 1.35;
}

.staff-promo-list__item-head span,
.staff-vouchers-table span,
.staff-vouchers-summary-card span {
    color: rgba(26, 35, 53, 0.62);
    font-size: calc(0.68 * var(--staff-type-unit));
    line-height: 1.45;
}

.staff-promo-list__meta span,
.staff-vouchers-empty,
.staff-vouchers-activity-list__item p,
.staff-vouchers-activity-list__item span {
    color: var(--staff-muted);
    font-size: calc(0.74 * var(--staff-type-unit));
    line-height: 1.5;
}

.staff-promo-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.staff-promo-list__empty,
.staff-vouchers-empty {
    padding: 4px 2px;
}

.staff-promo-editor,
.staff-vouchers-inspector {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
    overflow: auto;
}

.staff-promo-editor__head,
.staff-vouchers-inspector__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.staff-promo-editor__head h2,
.staff-vouchers-inspector__head h2,
.staff-vouchers-inspector__subpanel h3 {
    font-size: calc(1.02 * var(--staff-type-unit));
    line-height: 1.2;
    font-weight: 500;
}

.staff-promo-editor__head p,
.staff-vouchers-inspector__head p,
.staff-vouchers-inspector__subpanel p {
    color: var(--staff-muted);
    font-size: calc(0.8 * var(--staff-type-unit));
    line-height: 1.5;
}

.staff-promo-editor__body,
.staff-vouchers-inspector__stack,
.staff-vouchers-form {
    display: grid;
    gap: 12px;
}

.staff-vouchers-inspector__actions,
.staff-promo-editor__footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.staff-promo-editor__radio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.staff-promo-editor__footer {
    display: grid;
    gap: 10px;
}

.staff-issues-panel {
    min-width: 0;
}

.staff-issues-layout {
    width: min(1180px, 100%);
    margin: 0 auto;
    grid-template-columns: 340px minmax(0, 1fr);
}

.staff-issues-editor {
    min-height: 0;
}

.staff-issues-list__item {
    gap: 8px;
}

.staff-issue-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
}

.staff-issue-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 19, 32, 0.22);
    backdrop-filter: blur(7px);
}

.staff-issue-modal__panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(88vh, 900px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
}

.staff-issue-modal__head,
.staff-issue-modal__actions {
    padding: 16px 18px;
}

.staff-issue-modal__head {
    border-bottom: 1px solid var(--staff-border);
}

.staff-issue-modal__actions {
    border-top: 1px solid var(--staff-border);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.staff-issue-modal__body {
    display: grid;
    gap: 14px;
    padding: 18px;
    min-height: 0;
    overflow: auto;
}

.staff-issue-modal__summary {
    display: grid;
    gap: 4px;
}

.staff-issue-modal__summary span,
.staff-issue-modal__empty {
    color: var(--staff-muted);
    font-size: calc(0.8 * var(--staff-type-unit));
    line-height: 1.5;
}

.staff-issue-modal__cards {
    display: grid;
    gap: 10px;
}

.staff-issue-modal__card {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.staff-issue-modal__card strong {
    display: block;
    font-size: calc(0.84 * var(--staff-type-unit));
    font-weight: 500;
    line-height: 1.35;
}

.staff-issue-modal__card span {
    display: block;
    color: var(--staff-muted);
    font-size: calc(0.76 * var(--staff-type-unit));
    line-height: 1.45;
}

.staff-issue-modal__recommended {
    color: #0f766e;
    font-size: calc(0.7 * var(--staff-type-unit));
    font-weight: 500;
    white-space: nowrap;
}

.staff-issue-modal__error {
    color: #b42318;
    font-size: calc(0.78 * var(--staff-type-unit));
    line-height: 1.5;
}

.staff-take-payment-modal {
    width: min(700px, 100%);
}

.staff-take-payment-modal__stack {
    display: grid;
    gap: 14px;
}

.staff-take-payment-modal__options {
    display: grid;
    gap: 10px;
}

.staff-take-payment-modal__notice {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--staff-border);
    border-radius: 14px;
    background: #f7f8fa;
}

.staff-take-payment-modal__notice strong,
.staff-take-payment-modal__row-head strong {
    font-size: calc(0.84 * var(--staff-type-unit));
    font-weight: 500;
    line-height: 1.35;
}

.staff-take-payment-modal__notice span,
.staff-take-payment-modal__hint,
.staff-take-payment-modal__status {
    color: var(--staff-muted);
    font-size: calc(0.78 * var(--staff-type-unit));
    line-height: 1.5;
}

.staff-take-payment-modal__status {
    color: #0f766e;
}

.staff-take-payment-modal__row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.staff-take-payment-modal__rows {
    display: grid;
    gap: 0;
    border: 1px solid var(--staff-border);
    border-radius: 10px;
    overflow: hidden;
}

.staff-take-payment-modal__table-head,
.staff-take-payment-modal__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 92px;
    gap: 0;
}

.staff-take-payment-modal__table-head {
    align-items: center;
    color: var(--staff-muted);
    font-size: calc(0.7 * var(--staff-type-unit));
    line-height: 1.45;
    background: #f7f8fa;
}

.staff-take-payment-modal__table-head span {
    padding: 5px 10px;
}

.staff-take-payment-modal__row {
    align-items: stretch;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* Divider before every row/combine button after the header. */
.staff-take-payment-modal__rows > * + * {
    border-top: 1px solid var(--staff-border);
}

.staff-take-payment-modal__row.is-shaded {
    background: rgba(26, 35, 53, 0.03);
}

.staff-take-payment-modal__combine {
    width: 100%;
    min-height: 30px;
    padding: 4px 10px;
    border: none;
    border-radius: 0;
    background: #f7f8fa;
    color: var(--staff-accent);
    font-size: calc(0.74 * var(--staff-type-unit));
    font-weight: 500;
}

.staff-take-payment-modal__combine:hover:not(:disabled) {
    background: rgba(24, 183, 215, 0.12);
}

.staff-take-payment-modal__combine:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.staff-take-payment-modal__cell {
    display: flex;
    min-width: 0;
    border-right: 1px solid var(--staff-border);
}

.staff-take-payment-modal__input,
.staff-take-payment-modal__select {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--staff-text);
    -webkit-text-fill-color: var(--staff-text);
    caret-color: var(--staff-text);
}

.staff-take-payment-modal__input:focus-visible,
.staff-take-payment-modal__select:focus-visible {
    outline: 2px solid rgba(24, 183, 215, 0.5);
    outline-offset: -2px;
}

.staff-take-payment-modal__input:disabled,
.staff-take-payment-modal__select:disabled {
    background: transparent;
}

.staff-take-payment-modal__remove {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #d92d20;
    white-space: nowrap;
}

.staff-take-payment-modal__remove:hover:not(:disabled) {
    background: rgba(224, 62, 62, 0.1);
}

.staff-take-payment-modal__action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.staff-vouchers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 10px;
    min-height: 0;
    height: 100%;
}

.staff-vouchers-ledger {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.staff-vouchers-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--staff-border);
    border-radius: 12px;
    background: #f7f8fa;
    width: fit-content;
}

.staff-vouchers-switcher__button {
    min-height: 30px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--staff-muted);
    font-size: calc(0.78 * var(--staff-type-unit));
    font-weight: 400;
}

.staff-vouchers-switcher__button.is-active {
    background: #fff;
    color: var(--staff-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.staff-vouchers-table-wrap {
    min-height: 0;
    overflow: auto;
}

.staff-vouchers-table {
    width: 100%;
    border-collapse: collapse;
}

.staff-vouchers-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 12px;
    background: #fbfbfc;
    border-bottom: 1px solid var(--staff-border);
    color: var(--staff-muted);
    font-size: calc(0.7 * var(--staff-type-unit));
    font-weight: 400;
    text-align: left;
}

.staff-vouchers-table tbody tr {
    cursor: pointer;
}

.staff-vouchers-table tbody tr.is-selected {
    background: rgba(24, 183, 215, 0.08);
}

.staff-vouchers-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.03);
}

.staff-vouchers-table td {
    padding: 12px;
    border-bottom: 1px solid var(--staff-border);
    vertical-align: top;
    font-size: calc(0.78 * var(--staff-type-unit));
    line-height: 1.5;
}

.staff-vouchers-table td strong,
.staff-vouchers-table td span {
    display: block;
}

.staff-vouchers-inspector__section,
.staff-vouchers-inspector__subpanel,
.staff-vouchers-summary-card {
    display: grid;
    gap: 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.staff-vouchers-summary-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.staff-vouchers-inspector > .staff-vouchers-inspector__section + .staff-vouchers-inspector__section,
.staff-vouchers-inspector__stack > * + * {
    border-top: 1px solid var(--staff-border);
    padding-top: 12px;
}

.staff-vouchers-summary-card div {
    display: grid;
    gap: 4px;
}

.staff-vouchers-inspector__details {
    display: grid;
    gap: 10px;
}

.staff-vouchers-inspector__details div {
    display: grid;
    gap: 4px;
}

.staff-vouchers-inspector__details dt {
    color: var(--staff-muted);
    font-size: calc(0.72 * var(--staff-type-unit));
    font-weight: 400;
}

.staff-vouchers-inspector__details dd {
    margin: 0;
    font-size: calc(0.8 * var(--staff-type-unit));
    line-height: 1.5;
}

.staff-vouchers-inspector__details dd span {
    display: block;
    color: var(--staff-muted);
    font-size: calc(0.72 * var(--staff-type-unit));
}

.staff-vouchers-activity-list__item {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    background: #fff;
}

@media (max-width: 1560px) {
    .staff-packages-layout {
        grid-template-columns: 260px minmax(0, 1fr) 360px;
    }

    .staff-workspace-shell {
        grid-template-columns: minmax(240px, var(--sidebar-width, 280px)) minmax(
                0,
                1fr
            );
    }

    .staff-timeline-layout {
        grid-template-columns: minmax(0, 1fr) 288px;
    }

    .staff-timeline-board__lane-head {
        padding: 9px 10px;
    }

    .staff-timeline-board__lane-head strong {
        font-size: calc(0.82 * var(--staff-type-unit));
    }
}

@media (max-width: 1380px) {
    .staff-packages-layout {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .staff-vouchers-layout {
        grid-template-columns: 1fr;
    }

    .staff-packages-preview-card {
        display: none;
    }

    .staff-workspace-shell {
        grid-template-columns: 236px minmax(0, 1fr);
    }

    .staff-timeline-layout {
        grid-template-columns: 1fr;
    }

    .staff-detail-card {
        max-height: 320px;
    }

    .staff-timeline-panel__header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 1220px), (max-aspect-ratio: 11/10) {
    .staff-packages-layout {
        grid-template-columns: 1fr;
    }

    .staff-promo-layout {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .staff-workspace-shell {
        grid-template-columns: 1fr;
    }

    .staff-compact-nav-toggle {
        display: inline-flex;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 22;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 12px;
        border: 1px solid var(--staff-border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.96);
        color: var(--staff-text);
        font-size: calc(0.82 * var(--staff-type-unit));
    }

    .staff-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 20;
        border: none;
        background: rgba(17, 24, 39, 0.14);
    }

    .staff-sidebar-shell {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, calc(100vw - 24px));
        z-index: 21;
        pointer-events: none;
    }

    .staff-sidebar {
        transform: translateX(calc(-100% - 10px));
        transition: transform 180ms ease;
        pointer-events: auto;
    }

    .staff-sidebar-shell.is-open {
        pointer-events: auto;
    }

    .staff-sidebar-shell.is-open .staff-sidebar {
        transform: translateX(0);
    }

    .staff-timeline-panel {
        padding-top: 60px;
    }
}

@media (max-width: 980px), (max-aspect-ratio: 4/5) {
    .staff-packages-preview-card__hero {
        grid-template-columns: 1fr;
    }

    .staff-package-editor__grid--two,
    .staff-package-editor__grid--three {
        grid-template-columns: 1fr;
    }

    .staff-promo-editor__radio-grid,
    .staff-vouchers-summary-card {
        grid-template-columns: 1fr;
    }

    .staff-settings-grid {
        grid-template-columns: 1fr;
    }

    .staff-timeline-layout {
        grid-template-columns: 1fr;
    }

    .staff-detail-card {
        max-height: 320px;
    }

    .staff-timeline-panel__header {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-timeline-panel__actions {
        align-items: stretch;
    }

    .staff-zoom-control,
    .staff-button-primary,
    .staff-button-secondary,
    .staff-month-chip {
        width: 100%;
        justify-content: center;
    }

    .staff-manual-order-creator__grid {
        grid-template-columns: 1fr;
    }

    .staff-take-payment-modal__table-head {
        display: none;
    }

    .staff-take-payment-modal__row {
        grid-template-columns: 1fr;
    }

    .staff-take-payment-modal__cell {
        border-right: none;
        border-bottom: 1px solid var(--staff-border);
    }

    .staff-settings-hours__header,
    .staff-settings-hours__row {
        grid-template-columns: 1fr 72px 1fr 1fr;
    }
}

@media (max-width: 700px), (max-aspect-ratio: 1/1) {
    .staff-timeline-board__header,
    .staff-timeline-grid {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .staff-timeline-panel {
        padding: 10px 10px 12px;
        padding-top: 56px;
    }

    .staff-date-chip-popover {
        right: 0;
        left: auto;
    }

    .staff-timeline-board__lane-head {
        padding: 8px 8px;
    }

    .staff-timeline-board__lane-head strong {
        font-size: calc(0.76 * var(--staff-type-unit));
    }

    .staff-timeline-board__lane-head span {
        font-size: calc(0.68 * var(--staff-type-unit));
    }

    .staff-timeline-grid__time-label {
        padding-left: 5px;
    }

    .staff-timeline-grid__time-label span,
    .staff-timeline-grid__time-label.is-hour span {
        font-size: calc(0.54 * var(--staff-type-unit));
    }

    .staff-settings-hours__header {
        display: none;
    }

    .staff-settings-hours__row {
        grid-template-columns: 1fr 88px 1fr 1fr;
        gap: 8px;
    }

    .staff-settings-hours__day {
        font-size: calc(0.74 * var(--staff-type-unit));
    }
}
