:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1d2925;
    background: #fbfcfb;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background: #fbfcfb;
}

a {
    color: #176b4d;
}

.topbar {
    background: #173f33;
    color: #fff;
}

.topbar__inner,
.page {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

.topbar__inner {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: .75rem;
}

.location-switch {
    min-width: min(100%, 12rem);
    font-size: .9rem;
}

.location-switch select {
    width: 100%;
    padding: .4rem;
    border-radius: .35rem;
    background: #fff;
    color: #173f33;
    font: inherit;
}

.brand {
    color: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.topbar__user {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
}

.topbar__settings-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: .35rem;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    text-decoration: none;
}

.topbar__settings-link:hover,
.topbar__settings-link:focus-visible {
    background: rgb(255 255 255 / 14%);
}

.topbar__admin-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.platform-admin__organization {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 26rem);
    align-items: end;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #dbe4df;
}

.platform-admin__organization h3,
.platform-admin__organization p {
    margin: 0;
}

.platform-admin__invite {
    display: flex;
    align-items: end;
    gap: .5rem;
}

.platform-admin__actions {
    display: grid;
    gap: .8rem;
}

.platform-admin__limits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.platform-admin__limits .button {
    grid-column: 1 / -1;
    justify-self: start;
}

.platform-admin__invite .field {
    flex: 1;
    min-width: 0;
}

.platform-admin__invite .button {
    flex: none;
}

.platform-mail__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
    gap: 1rem;
    align-items: start;
}

.platform-mail__panel {
    padding: 1.25rem;
    border: 1px solid #dbe4df;
    border-radius: .65rem;
    background: #fff;
}

.platform-mail__panel h2,
.platform-mail__panel p {
    margin: 0;
}

.platform-mail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.platform-mail__wide {
    grid-column: 1 / -1;
}

.platform-mail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.platform-mail__badge {
    padding: .3rem .55rem;
    border-radius: 999px;
    color: #516259;
    background: #e7edeb;
    font-size: .8rem;
    font-weight: 700;
}

.platform-mail__badge.is-active,
.platform-mail__test-status {
    color: #15553d;
    background: #eaf8f1;
}

.platform-mail__test-status {
    padding: .45rem .65rem;
    border-radius: .4rem;
    font-weight: 700;
}

.platform-mail__test-status.is-failed {
    color: #76241f;
    background: #fff0ee;
}

@media (max-width: 720px) {
    .platform-admin__organization {
        grid-template-columns: 1fr;
    }

    .platform-admin__invite {
        flex-wrap: wrap;
    }

    .platform-mail__layout {
        grid-template-columns: 1fr;
    }

    .platform-mail__grid {
        grid-template-columns: 1fr;
    }
}

.location-settings__heading {
    margin-bottom: .7rem;
}

.location-settings__heading .muted,
.location-settings__heading h1 {
    margin: 0;
}

.location-settings__heading h1 {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.location-settings__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    margin-bottom: 1rem;
    border-bottom: 1px solid #cad8d1;
    white-space: nowrap;
}

.location-settings__tabs a {
    flex: 0 0 auto;
    padding: .55rem .8rem;
    color: #245b4b;
    text-decoration: none;
}

.location-settings__tabs a[aria-current="page"] {
    border-bottom: 2px solid #237b5a;
    color: #173f33;
    font-weight: 700;
}

.location-settings__language-form {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.location-settings__language-form select {
    min-height: 2.2rem;
    padding: .35rem .5rem;
}

.page {
    padding-block: 1rem 3rem;
}

.auth-shell {
    width: min(100%, 32rem);
    margin-inline: auto;
}

.card {
    background: #fff;
    border: 1px solid #dbe4df;
    border-radius: .75rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: 0 .5rem 1.5rem rgb(23 63 51 / 8%);
}

section.card.stack {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

h1,
h2 {
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.7rem, 5vw, 2.35rem);
}

.reservation-create__heading {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    white-space: nowrap;
    flex: none;
}

.reservation-create > .section-heading {
    align-items: center;
    flex-wrap: nowrap;
    gap: .5rem;
    min-width: 0;
    max-width: 100%;
}

.reservation-create__date-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .5rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.reservation-create__date-row > .field {
    flex: 0 0 clamp(7.75rem, 30vw, 9rem);
    min-width: 0;
    gap: 0;
}

.reservation-create__date-row input[type="date"] {
    min-width: 0;
    height: 2.125rem;
    padding: .25rem .35rem;
}

.reservation-create__date-summary {
    flex: none;
    font-size: clamp(.72rem, 2.7vw, .8125rem);
    font-weight: 700;
    white-space: nowrap;
}

.reservation-date-strip {
    display: flex;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0;
    border-block: 1px solid #cad8d1;
    background: #f5f9f7;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reservation-date-strip::-webkit-scrollbar {
    display: none;
}

.reservation-date-strip.is-dragging,
.reservation-date-strip.is-dragging .reservation-date-strip__day {
    cursor: grabbing;
}

.reservation-date-strip__day {
    flex: none;
    min-width: 3.65rem;
    min-height: 1.9rem;
    padding: .25rem .4rem;
    border: 0;
    border-right: 1px solid #c3d2cb;
    border-radius: 0;
    color: #47665c;
    background: transparent;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    cursor: grab;
}

.reservation-date-strip__day[aria-current="date"] {
    border-bottom: 3px solid #488268;
}

.reservation-date-strip__day[aria-pressed="true"] {
    color: #fff;
    background: #27674c;
    font-weight: 800;
}

.reservation-date-strip__day[aria-current="date"][aria-pressed="true"] {
    border-bottom-color: #b5ded0;
}

.reservation-date-strip__day:focus-visible {
    outline: 2px solid #27674c;
    outline-offset: -2px;
}

.reservation-create__header-actions {
    flex-wrap: nowrap;
    gap: .35rem;
    flex: none;
}

.reservation-create__header-actions .button {
    min-height: 1.875rem;
    padding: .3rem .5rem;
    font-size: .75rem;
    line-height: 1;
    white-space: nowrap;
}

.muted {
    color: #587068;
}

.stack {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: .4rem;
}

.location-edit__section {
    gap: .65rem;
}

.location-edit__section + .location-edit__section {
    margin-top: .9rem;
}

.location-edit__section h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.location-edit__section h2 {
    margin-bottom: .25rem;
    font-size: 1.3rem;
}

.location-edit__section > h3 {
    margin: 0;
    font-size: 1rem;
}

.location-edit__section > div > .muted {
    margin: 0;
}

.location-edit__section .button {
    min-height: 2.2rem;
    padding: .4rem .7rem;
    font-size: .9rem;
}

.location-edit__details-form {
    max-width: 52rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem .8rem;
}

.location-edit__details-form > .field:nth-of-type(3),
.location-edit__details-form > .button-row {
    grid-column: 1 / -1;
}

.location-edit__details-form .field {
    gap: .2rem;
}

.location-edit__details-form label {
    font-size: .85rem;
}

.location-edit__details-form input,
.location-edit__details-form select,
.location-edit__details-form textarea {
    min-width: 0;
    min-height: 2.15rem;
    padding: .35rem .5rem;
    font-size: .9rem;
}

.location-edit__details-form textarea {
    min-height: 4.5rem;
}

.opening-hours__section {
    gap: .55rem;
}

.opening-hours__section h2 {
    margin-bottom: .25rem;
}

.opening-hours__section .muted {
    margin: 0;
}

.opening-hours__week-form {
    gap: 0;
}

.opening-hours__week-form > .muted {
    margin-top: .45rem;
    font-size: .82rem;
}

.opening-hours__week-form > .button-row {
    margin-top: .55rem;
}

.opening-hours__day,
.opening-hours__holiday-time {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    align-items: center;
    gap: .15rem .4rem;
}

.opening-hours__day {
    padding: .25rem 0;
    border-top: 1px solid #d9e2de;
}

.opening-hours__day h3 {
    margin: 0;
    font-size: .88rem;
    white-space: nowrap;
}

.opening-hours__period {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 12rem));
    gap: .75rem;
}

.opening-hours__period input {
    width: 100%;
}

.opening-hours__period--compact {
    width: min(100%, 15rem);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .3rem;
}

.opening-hours__period--compact input {
    min-width: 0;
    min-height: 1.9rem;
    padding: .2rem .3rem;
    border-radius: .25rem;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

.opening-hours__separator {
    color: #587068;
    font-size: .85rem;
}

.opening-hours__second {
    margin-top: .5rem;
}

.opening-hours__second summary {
    color: #245b4b;
    cursor: pointer;
}

.opening-hours__second .opening-hours__period {
    margin-top: .5rem;
}

.opening-hours__second--week {
    grid-column: 2;
    margin-top: 0;
}

.opening-hours__second--week summary {
    font-size: .76rem;
    line-height: 1.15;
}

.opening-hours__second--week .opening-hours__period {
    margin-top: .2rem;
}

@media (max-width: 25rem) {
    .opening-hours__day,
    .opening-hours__holiday-time {
        grid-template-columns: 5.3rem minmax(0, 1fr);
        column-gap: .25rem;
    }

    .opening-hours__day h3 {
        font-size: .8rem;
    }

    .opening-hours__period--compact {
        gap: .15rem;
    }

    .opening-hours__period--compact input {
        padding-inline: .1rem;
        font-size: .78rem;
    }
}

.opening-hours__shared-holiday-form,
.opening-hours__holiday-dates-form {
    gap: .35rem;
}

.opening-hours__shared-holiday-form > .button-row,
.opening-hours__holiday-dates-form > .button-row {
    margin-top: .15rem;
}

.opening-hours__holiday-dates-form,
.opening-hours__registered-holidays {
    border-top: 1px solid #d9e2de;
    padding-top: .5rem;
}

.opening-hours__shared-holiday-form .opening-hours__holiday-time {
    grid-template-columns: minmax(0, 15rem) minmax(0, 15rem);
}

.opening-hours__holiday-time-label {
    font-size: .88rem;
    font-weight: 650;
}

.opening-hours__holiday-date-fields {
    display: grid;
    gap: .3rem;
    width: min(100%, 13.5rem);
}

.opening-hours__holiday-date-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.2rem;
    gap: .3rem;
}

.opening-hours__holiday-date-row input {
    min-width: 0;
    min-height: 2.1rem;
    padding: .25rem .4rem;
    font-size: .88rem;
}

.opening-hours__holiday-date-row .button {
    min-height: 2.1rem;
    padding: .15rem;
    border: 1px solid #cad8d1;
    background: #e4eee9;
    color: #173f33;
    font-size: 1.2rem;
    line-height: 1;
}

.opening-hours__holiday-date-row .button:hover {
    background: #cfdfd7;
}

.opening-hours__registered-holidays h3 {
    margin: 0 0 .3rem;
    font-size: .95rem;
}

.opening-hours__registered-holidays .muted {
    margin: 0;
}

.opening-hours__holiday-date-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.opening-hours__holiday-date-list::-webkit-scrollbar {
    display: none;
}

.opening-hours__holiday-date-list li {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .1rem;
    font-size: .88rem;
}

.opening-hours__holiday-date-list .button {
    min-height: 1.9rem;
    padding: .1rem .35rem;
    border: 0;
    background: transparent;
    color: #9b3730;
    line-height: 1;
}

.opening-hours__holiday-date-list .button:hover {
    background: #f9eeee;
}

.opening-hours__holiday-date-separator {
    margin-left: .25rem;
    color: #87978f;
}

.opening-hours__second--holiday {
    grid-column: 2;
    margin-top: 0;
}

.opening-hours__second--holiday summary {
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.15;
}

.opening-hours__second--holiday .opening-hours__period {
    margin-top: .2rem;
}

@media (max-width: 40rem) {
    .location-edit__details-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .opening-hours__shared-holiday-form .opening-hours__holiday-time {
        grid-template-columns: minmax(0, 1fr);
    }

    .opening-hours__second--holiday {
        grid-column: 1;
    }
}

.time-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.time-field legend {
    margin-bottom: .4rem;
    padding: 0;
    font-weight: 650;
}

.reservation-create__time-warning {
    margin: 0;
    color: #a52b25;
    font-size: .82rem;
}

.time-selects {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .35rem;
}

.time-selects > span {
    font-weight: 750;
}

label {
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    padding: .75rem .8rem;
    border: 1px solid #afc0b9;
    border-radius: .45rem;
    background: #fff;
    color: inherit;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgb(49 147 109 / 20%);
    border-color: #237b5a;
}

textarea {
    resize: vertical;
}

[data-reservation-date-dependent]:disabled {
    border-color: #ccd5d1;
    color: #71817b;
    background: #edf1ef;
    cursor: not-allowed;
    opacity: .78;
}

.check {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 400;
}

.check input {
    width: auto;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border: 0;
    border-radius: .45rem;
    background: #237b5a;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    background: #195e44;
}

.button--quiet {
    min-height: auto;
    padding: .45rem .7rem;
    background: transparent;
    border: 1px solid rgb(255 255 255 / 55%);
}

.button--secondary {
    background: #e4eee9;
    color: #173f33;
}

.button--secondary:hover {
    background: #cfdfd7;
}

.button--danger {
    background: #a13c35;
}

.button--danger:hover {
    background: #7e2d28;
}

.button-row,
.link-row,
.pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.alert {
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border-radius: .45rem;
}

.alert--error {
    color: #76241f;
    background: #fff0ee;
    border: 1px solid #efb3ad;
}

.alert--success {
    color: #15553d;
    background: #eaf8f1;
    border: 1px solid #a6dac4;
}

.facts {
    display: grid;
    grid-template-columns: minmax(8rem, auto) 1fr;
    gap: .6rem 1rem;
    margin-block: 1.5rem;
}

.facts dt {
    color: #587068;
}

.facts dd {
    margin: 0;
    font-weight: 650;
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.invitation-list {
    display: grid;
    gap: 1rem;
}

.location-list {
    display: grid;
    gap: 1rem;
}

.location-from-organization {
    gap: .65rem;
    padding: .85rem 1rem;
    border: 1px solid #dbe4df;
    border-radius: .6rem;
}

.location-from-organization h2 {
    margin: 0 0 .2rem;
    font-size: 1.05rem;
}

.location-from-organization p {
    margin: 0;
}

.location-from-organization__form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: .75rem;
}

.location-from-organization__form .field {
    flex: 1 1 16rem;
    max-width: 26rem;
}

.resource-table__scroll { overflow-x: auto; }
.resource-table { width: 100%; border-collapse: collapse; background: #fff; }
.resource-table th, .resource-table td { padding: .45rem .55rem; border-bottom: 1px solid #dbe4df; text-align: left; vertical-align: middle; }
.resource-table thead th { font-size: .85rem; white-space: nowrap; }
.resource-table__room th { padding: .65rem .55rem .3rem; background: #edf3ef; color: #254438; }
.resource-table__position { white-space: nowrap; width: 4rem; }
.resource-table__handle { border: 0; background: none; color: #496b5b; cursor: grab; font-size: 1.2rem; padding: 0 .3rem 0 0; touch-action: none; }
.resource-table__handle:active { cursor: grabbing; }
.resource-table__handle:focus-visible { outline: 2px solid #25634d; outline-offset: 2px; }
.resource-table__actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.resource-table__actions .button { padding: .35rem .55rem; font-size: .8rem; }
.resource-table__actions .button:disabled { cursor: not-allowed; opacity: .45; }
.resource-table__inline { width: 4.4rem; max-width: 100%; padding: .28rem .35rem; font: inherit; font-variant-numeric: tabular-nums; }
.resource-table__inline--capacity { width: 5.4rem; }
.resource-table__row.is-inline-saving .resource-table__inline { background: #edf5f0; }
.resource-table__row.is-inline-error .resource-table__inline { border-color: #e6b8b5; color: #8f2823; }
.resource-table__ghost { opacity: .45; background: #dbece2; }

.reservation-filters,
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    align-items: end;
    gap: .75rem;
}

.reservation-filters {
    padding: 1rem;
    border: 1px solid #dbe4df;
    border-radius: .6rem;
    background: #fafcfb;
}

.reservation-create .form-grid {
    gap: .55rem;
}

.reservation-create .form-grid .field {
    gap: .2rem;
}

.reservation-create .form-grid .time-field legend {
    margin-bottom: .2rem;
}

.reservation-create .form-grid input,
.reservation-create .form-grid select {
    min-height: 2.25rem;
    padding: .35rem .65rem;
}

.reservation-filters__actions {
    align-self: end;
}

.reservation-list {
    display: grid;
    border: 1px solid #dbe4df;
    border-radius: .6rem;
    overflow: hidden;
}

.reservation-row {
    display: grid;
    grid-template-columns: minmax(8.5rem, 1.1fr) minmax(9rem, 1.2fr) minmax(8rem, 1fr) minmax(11rem, 1.5fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #e5ebe8;
}

.reservation-row:last-child {
    border-bottom: 0;
}

.reservation-row:nth-child(even) {
    background: #fafcfb;
}

.reservation-row__time,
.reservation-row__guest,
.reservation-row__assignment,
.reservation-row__contact,
.reservation-row__action {
    min-width: 0;
    display: grid;
    gap: .2rem;
}

.reservation-row__time time,
.reservation-row__time small,
.reservation-row__guest span,
.reservation-row__assignment span {
    color: #587068;
    font-size: .85rem;
}

.reservation-row__contact a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-row__action {
    justify-items: end;
}

.load-more {
    display: flex;
    justify-content: center;
}

.reservation-view-switch {
    display: inline-flex;
    width: fit-content;
    padding: .25rem;
    border: 1px solid #cddbd4;
    border-radius: .6rem;
    background: #f3f7f5;
}

.reservation-view-switch__item {
    padding: .5rem .9rem;
    border-radius: .4rem;
    color: #365b4f;
    font-weight: 700;
    text-decoration: none;
}

.reservation-view-switch__item[aria-current="page"] {
    color: #fff;
    background: #237b5a;
    box-shadow: 0 1px 3px rgb(15 54 42 / 20%);
}

.reservation-timeline-shell {
    display: grid;
    gap: .75rem;
}

.reservation-timeline {
    overflow-x: hidden;
    border: 1px solid #cad8d1;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 4px 18px rgb(24 63 51 / 8%);
}

.reservation-timeline__content {
    --timeline-label-width: 2rem;
    --timeline-min-track-width: 728px;
    --timeline-hour-grid-size: 10%;
    width: 100%;
    -webkit-user-select: none;
    user-select: none;
}

.reservation-timeline__header,
.reservation-timeline__room,
.reservation-timeline__row {
    display: grid;
    grid-template-columns: var(--timeline-label-width) minmax(0, 1fr);
}

.reservation-timeline__header {
    position: sticky;
    top: 0;
    z-index: 17;
    min-height: 1.9rem;
    border-bottom: 1px solid #cad8d1;
    background: #f5f9f7;
}

.reservation-timeline__corner,
.reservation-timeline__label {
    position: sticky;
    left: 0;
    z-index: 4;
    display: grid;
    align-content: center;
    padding: .25rem .55rem;
    border-right: 1px solid #cad8d1;
    background: #f8fbf9;
}

.reservation-timeline__corner {
    z-index: 8;
    justify-items: center;
    padding-inline: .25rem;
    color: #47665c;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.reservation-timeline__label {
    z-index: 16;
}

.reservation-timeline__corner svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reservation-timeline__room {
    min-height: 1.15rem;
    border-top: 2px solid #87a297;
    border-bottom: 1px solid #b9cbc3;
    background: #e7efeb;
}

.reservation-timeline__header + .reservation-timeline__room {
    border-top-width: 1px;
}

.reservation-timeline__room-name {
    display: flex;
    align-items: center;
    gap: .5rem;
    grid-column: 1 / -1;
    padding: .08rem .4rem;
    color: #294f43;
    background: #dce8e2;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1.1;
    white-space: nowrap;
}

.reservation-timeline__room-label {
    position: sticky;
    left: .4rem;
    z-index: 5;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservation-timeline__parking {
    position: sticky;
    right: .4rem;
    z-index: 7;
    display: flex;
    align-items: center;
    flex: none;
    margin-left: auto;
}

.reservation-timeline__axis,
.reservation-timeline__track {
    position: relative;
    background-image: linear-gradient(to right, #d9e3de 1px, transparent 1px);
    background-size: var(--timeline-hour-grid-size) 100%;
}

.reservation-timeline__tick {
    position: absolute;
    inset: 0 auto 0 var(--tick-position);
    width: 1px;
    background: #c3d2cb;
}

.reservation-timeline__tick > span {
    position: absolute;
    top: .3rem;
    left: .35rem;
    color: #47665c;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.reservation-timeline__row {
    min-height: 1.75rem;
    border-bottom: 1px solid #e3eae6;
}

.reservation-timeline__request-row {
    border-bottom-color: #e1b6b3;
}

.reservation-timeline__request-row .reservation-timeline__label,
.reservation-timeline__request-row .reservation-timeline__track {
    background-color: #fff8f7;
}

.reservation-timeline__request-track {
    z-index: 1;
}

.reservation-timeline__request-label {
    color: #78847f;
    font-size: 1rem;
    font-weight: 900;
    cursor: help;
}

.reservation-timeline__request-label.has-open-requests {
    color: #bd352d;
}

.reservation-timeline__row:last-child {
    border-bottom: 0;
}

.reservation-timeline__row:nth-child(odd) .reservation-timeline__label,
.reservation-timeline__row:nth-child(odd) .reservation-timeline__track {
    background-color: #fbfdfc;
}

.reservation-timeline__label {
    justify-items: center;
    gap: 0;
    padding: 1px .1rem;
}

.reservation-timeline__label strong {
    max-width: 100%;
    overflow: hidden;
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-timeline__seat-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100%;
    max-width: 100%;
    padding-inline: 1px;
    color: #fff;
    background: #aab4b0;
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.reservation-timeline__seat-unit {
    font-size: .55rem;
    font-weight: 750;
    line-height: 1;
}

.reservation-timeline__track {
    min-height: 1.75rem;
    touch-action: manipulation;
}

.reservation-timeline__unavailable {
    position: absolute;
    inset-block: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(135deg, #e7ebe8 0, #e7ebe8 5px, #f2f4f2 5px, #f2f4f2 10px);
    opacity: .85;
}

.reservation-timeline__room-closure {
    position: absolute;
    inset-block: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(135deg, #b94b40 0, #b94b40 5px, #f4c3ba 5px, #f4c3ba 10px);
    opacity: .65;
}

.room-closure-fields { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; }
.room-closure-fields .field { min-width: min(100%, 13rem); }
.room-closure-list { list-style: none; margin: 0; padding: 0; }
.room-closure-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-top: 1px solid #ddd; }

.reservation-timeline__tick {
    z-index: 2;
}

.reservation-timeline__reservation {
    position: absolute;
    top: .2rem;
    z-index: 2;
    min-width: 3px;
    height: 1.35rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: #2f8b68;
    font-size: .7rem;
    font-weight: 750;
    line-height: 1.1;
}

.reservation-timeline__reservation[data-reservation-public-id] {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.reservation-timeline__reservation.is-timeline-locked[data-reservation-public-id] {
    cursor: pointer;
}

.reservation-timeline__reservation-main {
    display: block;
    height: 100%;
    padding: .12rem .9rem .12rem .3rem;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-timeline__reservation.is-timeline-locked .reservation-timeline__reservation-main {
    padding-right: .3rem;
}

.reservation-timeline__reservation.has-link-control .reservation-timeline__reservation-main {
    padding-left: 1.35rem;
}

.reservation-timeline__reservation-resize {
    position: absolute;
    inset: 0 0 0 auto;
    width: .8rem;
    cursor: ew-resize;
    touch-action: none;
}

.reservation-timeline__reservation-resize::after {
    position: absolute;
    top: 25%;
    right: 3px;
    bottom: 25%;
    width: 2px;
    background: rgb(255 255 255 / 80%);
    content: '';
}

.reservation-timeline .reservation-timeline__reservation.is-move-active {
    z-index: 7;
}

.reservation-timeline__reservation.is-move-dragging {
    cursor: grabbing;
}

.reservation-timeline__reservation.is-move-pending {
    opacity: .65;
}

.reservation-timeline.is-moving-reservation .reservation-timeline__reservation:not(.is-move-active) {
    pointer-events: none;
    opacity: .55;
}

.reservation-timeline .reservation-timeline__reservation.has-move-conflict,
.reservation-timeline .reservation-timeline__reservation.has-move-conflict:hover,
.reservation-timeline .reservation-timeline__reservation.has-move-conflict:focus-visible {
    color: #fff;
    background: #bd352d;
    opacity: 1;
    font-size: .64rem;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
}

.reservation-timeline__reservation [data-reservation-label][hidden] {
    display: none;
}

.reservation-timeline__reservation [data-reservation-move-warning] {
    display: block;
}

.reservation-move-feedback,
.app-toast {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 21;
    max-width: min(22rem, calc(100% - 2.5rem));
    padding: .55rem .75rem;
    border: 1px solid #a4cdbb;
    border-radius: .45rem;
    color: #225b45;
    background: #edf7f1;
    box-shadow: 0 .6rem 1.5rem rgb(23 63 51 / 18%);
    font-size: .85rem;
}

.reservation-move-feedback {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
}

.reservation-move-feedback [data-reservation-move-feedback-message] {
    flex: 1 1 10rem;
}

.reservation-move-feedback[hidden],
.reservation-move-feedback [hidden] {
    display: none;
}

.reservation-move-feedback.is-error,
.app-toast.is-error {
    border-color: #e6b8b5;
    color: #8f2823;
    background: #fff0ee;
}

.app-toast[hidden] {
    display: none;
}

.reservation-timeline__reservation:hover,
.reservation-timeline__reservation:focus-within,
.reservation-timeline__reservation.is-linked-highlight {
    z-index: 3;
    background: #226e52;
}

.reservation-timeline__reservation:focus-within {
    outline: 2px solid #f0b64d;
    outline-offset: 1px;
}

.reservation-timeline__reservation--seated,
.reservation-timeline__reservation--seated:hover,
.reservation-timeline__reservation--seated:focus-visible {
    color: #123d2e;
    background: #8ed6a8;
}

.reservation-timeline__reservation--pending_verification,
.reservation-timeline__reservation--pending_verification:hover {
    color: #553918;
    background: #f2cc87;
}
.reservation-timeline__reservation--pending_verification.is-hold-expired,
.reservation-timeline__reservation--pending_verification.is-hold-expired:hover {
    color: #f7f9f8;
    background: #87938e;
}

.reservation-timeline__reservation--requested,
.reservation-timeline__reservation--requested:hover,
.reservation-timeline__reservation--requested:focus-visible {
    color: #fff;
    background: #bd352d;
}

.reservation-timeline__reservation.is-request-draft:not(.has-move-conflict),
.reservation-timeline__reservation.is-request-draft:not(.has-move-conflict):hover,
.reservation-timeline__reservation.is-request-draft:not(.has-move-conflict):focus-visible {
    color: #fff;
    background: #ed8b2d;
}

.reservation-timeline__request-track > .reservation-timeline__reservation--requested {
    z-index: var(--request-queue-stack, 2);
}

.reservation-timeline .reservation-timeline__request-track > .reservation-timeline__reservation.is-move-active {
    z-index: 9999;
}

.reservation-timeline__reservation--cancelled,
.reservation-timeline__reservation--cancelled:hover,
.reservation-timeline__reservation--cancelled:focus-visible,
.reservation-timeline__reservation--no_show,
.reservation-timeline__reservation--no_show:hover,
.reservation-timeline__reservation--no_show:focus-visible,
.reservation-timeline__reservation--completed,
.reservation-timeline__reservation--completed:hover,
.reservation-timeline__reservation--completed:focus-visible {
    color: #f7f9f8;
    background: #87938e;
}

.reservation-timeline__reservation.is-attention,
.reservation-timeline__reservation.is-attention:hover,
.reservation-timeline__reservation.is-attention:focus-visible {
    color: #fff;
    background: #c9362e;
}

.reservation-timeline__reservation.is-unresolved,
.reservation-timeline__reservation.is-unresolved:hover,
.reservation-timeline__reservation.is-unresolved:focus-visible {
    color: #43504b;
    background: #d9dfdc;
}

.reservation-timeline__reservation.is-over-capacity,
.reservation-timeline__reservation.is-over-capacity:hover,
.reservation-timeline__reservation.is-over-capacity:focus-visible {
    color: #fff;
    background: #bd352d;
    font-size: .62rem;
    line-height: 1.05;
    white-space: normal;
}

.reservation-timeline__reservation.is-room-closed,
.reservation-timeline__reservation.is-room-closed:hover,
.reservation-timeline__reservation.is-room-closed:focus-visible {
    color: #fff;
    background: #b63e35;
}

.reservation-timeline__reservation [data-reservation-label] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservation-timeline__link-handle {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 5;
    display: grid;
    width: 1rem;
    padding: .18rem;
    border: 0;
    color: #fff;
    background: var(--reservation-link-color, #64748b);
    cursor: ns-resize;
    touch-action: none;
}

.reservation-timeline__link-handle::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: #fff;
    content: '';
}

.reservation-timeline__reservation[data-reservation-link-color="0"] {
    --reservation-link-color: #2563eb;
}

.reservation-timeline__reservation[data-reservation-link-color="1"] {
    --reservation-link-color: #c2410c;
}

.reservation-timeline__reservation[data-reservation-link-color="2"] {
    --reservation-link-color: #15803d;
}

.reservation-timeline__reservation[data-reservation-link-color="3"] {
    --reservation-link-color: #be185d;
}

.reservation-timeline__reservation[data-reservation-link-color="4"] {
    --reservation-link-color: #0f766e;
}

.reservation-timeline__reservation[data-reservation-link-color="5"] {
    --reservation-link-color: #7c3aed;
}

.reservation-timeline__reservation[data-reservation-link-color="6"] {
    --reservation-link-color: #0e7490;
}

.reservation-timeline__reservation[data-reservation-link-color="7"] {
    --reservation-link-color: #92400e;
}

.reservation-timeline__reservation[data-reservation-link-color="8"] {
    --reservation-link-color: #4338ca;
}

.reservation-timeline__reservation[data-reservation-link-color="9"] {
    --reservation-link-color: #9f1239;
}

.reservation-timeline__link-handle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.reservation-timeline__link-menu {
    position: absolute;
    top: calc(100% + .2rem);
    left: 0;
    z-index: 15;
    min-width: 11rem;
    padding: .2rem;
    border: 1px solid #ccd6d1;
    border-radius: .3rem;
    color: #26352f;
    background: #fff;
    box-shadow: 0 .45rem 1rem rgb(23 63 51 / 18%);
    font-size: .75rem;
    font-weight: 650;
    white-space: nowrap;
}

.reservation-timeline__link-menu[hidden] {
    display: none;
}

.reservation-timeline__link-menu button {
    display: block;
    width: 100%;
    padding: .35rem .45rem;
    border: 0;
    border-radius: .2rem;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.reservation-timeline__link-menu button:hover,
.reservation-timeline__link-menu button:focus-visible {
    background: #edf3f0;
}

.reservation-timeline__track.is-link-target {
    background-color: #fff5dc;
    cursor: crosshair;
}

.reservation-timeline__reservation.is-link-dragging {
    z-index: 12;
    opacity: .72;
    pointer-events: none;
}

.reservation-timeline__reservation [data-reservation-primary-label],
.reservation-timeline__status-warning {
    display: inline;
}

.reservation-timeline__status-warning {
    color: #a52620;
    font-weight: 800;
}

.reservation-timeline__status-warning[hidden] {
    display: none;
}

.reservation-timeline__draft,
.reservation-timeline__draft:hover,
.reservation-timeline__draft:focus-visible {
    z-index: 4;
    background: #ed8b2d;
    opacity: .82;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.reservation-timeline__draft.is-dragging {
    z-index: 7;
    opacity: .78;
    cursor: grabbing;
}

.reservation-timeline__draft.is-resizing {
    z-index: 7;
    opacity: .78;
}

.reservation-timeline__draft.is-parked,
.reservation-timeline__draft.is-parked:hover,
.reservation-timeline__draft.is-parked.is-dragging {
    position: relative;
    top: auto;
    left: auto;
    width: max-content;
    height: 1.2rem;
    padding: .1rem .4rem;
    opacity: 1;
}

.reservation-timeline__draft.is-parked .reservation-timeline__draft-resize {
    display: none;
}

.reservation-timeline__draft-message {
    display: block;
    height: 100%;
    padding-right: .4rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservation-timeline__draft-resize {
    position: absolute;
    inset: 0 0 0 auto;
    width: .65rem;
    cursor: ew-resize;
    touch-action: none;
}

.reservation-timeline__draft-resize::after {
    position: absolute;
    top: 25%;
    right: 2px;
    bottom: 25%;
    width: 2px;
    background: rgb(255 255 255 / 80%);
    content: '';
}

.reservation-timeline__draft.has-conflict,
.reservation-timeline__draft.has-conflict:hover,
.reservation-timeline__draft.has-conflict:focus-visible,
.reservation-timeline__draft.is-in-past,
.reservation-timeline__draft.is-in-past:hover,
.reservation-timeline__draft.is-in-past:focus-visible {
    display: flex;
    align-items: center;
    padding: .12rem .3rem;
    color: #fff;
    background: #bd352d;
    opacity: .88;
    font-size: .68rem;
    line-height: 1.05;
    white-space: normal;
}

.reservation-timeline__now {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 5;
    width: 2px;
    pointer-events: none;
    background: #d94a3d;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 65%);
}

.reservation-dialog {
    width: min(52rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow: auto;
    border: 1px solid #afc0b9;
    border-radius: .75rem;
    color: inherit;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgb(23 63 51 / 28%);
}

.reservation-dialog::backdrop {
    background: rgb(13 36 29 / 62%);
}

.reservation-dialog__frame {
    position: relative;
    padding: clamp(1.25rem, 4vw, 2rem);
}

.reservation-dialog__close {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 0 -2.25rem auto;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #173f33;
    background: #e4eee9;
    cursor: pointer;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
}

.reservation-dialog__close:hover,
.reservation-dialog__close:focus-visible {
    background: #cfdfd7;
}

.reservation-dialog__close:focus-visible {
    outline: 3px solid rgb(49 147 109 / 25%);
}

.reservation-dialog__state {
    padding: 2.5rem 3rem;
    text-align: center;
}

.reservation-help__steps {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding-left: 1.5rem;
}

.reservation-help__steps h3 {
    margin: 0;
    font-size: 1rem;
}

.reservation-help__steps p {
    margin: .25rem 0 0;
    line-height: 1.5;
}

.reservation-create-dialog__actions {
    justify-content: space-between;
}

.reservation-create-dialog__confirm-actions {
    justify-content: flex-end;
    margin-left: auto;
}

[data-reservation-create-confirm],
[data-request-draft-confirm] {
    touch-action: manipulation;
}

.reservation-dialog [data-reservation-edit-content] > h1 {
    padding-right: 3rem;
}

.location-item {
    border: 1px solid #dbe4df;
    border-radius: .6rem;
    padding: 1rem;
}

.section-heading,
.status-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-badge {
    display: inline-flex;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
}

.status-badge--active {
    color: #15553d;
    background: #eaf8f1;
}

.status-badge--inactive {
    color: #76241f;
    background: #fff0ee;
}

.status-badge--confirmed {
    color: #15553d;
    background: #eaf8f1;
}

.status-badge--seated {
    color: #174f6b;
    background: #e7f4fa;
}

.status-badge--completed {
    color: #46534e;
    background: #edf0ee;
}

.status-badge--cancelled,
.status-badge--no_show {
    color: #76241f;
    background: #fff0ee;
}

.pre-line {
    white-space: pre-line;
}

.error-list {
    margin: 0;
    padding-left: 1.25rem;
}

.invitation-item {
    border: 1px solid #dbe4df;
    border-radius: .6rem;
    padding: 1rem;
}

.invitation-item h2 {
    margin-bottom: .35rem;
    overflow-wrap: anywhere;
}

.empty-state {
    min-height: 9rem;
    display: grid;
    place-items: center;
    text-align: center;
    color: #587068;
    border: 1px dashed #afc0b9;
    border-radius: .6rem;
    background: #fafcfb;
}

@media (max-width: 40rem) {
    .resource-table { min-width: 36rem; }

    .reservation-row {
        grid-template-columns: 1fr 1fr;
    }

    .reservation-row__contact,
    .reservation-row__action {
        justify-items: start;
    }
}

@media (max-width: 22rem) {
    .reservation-create > .section-heading {
        overflow-x: auto;
        overflow-y: hidden;
    }
}

@media (max-width: 48rem) {
    .reservation-timeline {
        overflow-x: auto;
    }

    .reservation-timeline__content {
        min-width: calc(var(--timeline-label-width) + var(--timeline-min-track-width));
    }
}
