/* Bookant Bookings (the customer app, features/26) — this app's own CSS. Loaded last, after Bootstrap, techwork-theme.css,
   techwork-components.css and techwork-shell.css, so it can override any of them.

   Keep it small: the family look, the tokens and the pattern classes come from the package
   (docs/design-system in TechWork.Components). Put screen-specific rules here, not copies of
   package rules — if a component needs a change, change the package. */

/* Bookant's primary colour is the package default, as in the operator app; a company's logo appears on its
   cards, its brand colour never (features/26 §6). */

/* ── Material Icons, self-hosted (the native shell may be offline) ── */
@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/MaterialIcons-Regular.woff2") format("woff2");
    font-display: block;
}

.material-icons {
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga";
}

/* ── Brand in the rail ── */
.brand-logo {
    border-radius: 0.4rem;
}

.brand-name {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ── Sign-in screens and the session states (CustomerAuthLayout, MainLayout): the package's .auth-layout / .auth-card
   frame, as in the operator app ── */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.auth-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.auth-card .twc-page-header {
    margin-bottom: 1rem;
}

.auth-card .btn,
.auth-card .form-control {
    min-height: 44px;
}

.auth-inline-link {
    padding-left: 0;
    padding-right: 0;
    text-decoration: none;
    min-height: 44px;
}

.auth-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--twc-color-muted);
    font-size: 0.875rem;
}

.auth-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.auth-retry {
    margin-top: 0.5rem;
}

/* The 6-digit code: wide, spaced digits that read like the text they came in. */
.sign-in-code-input {
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.sign-in-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ── The notifications explanation (AllowNotificationsPage) and Profile's switches ── */
.allow-notifications-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    gap: 0.75rem;
}

.allow-notifications-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.allow-notifications-list .material-icons {
    color: var(--bs-primary);
}

.profile-push-choice + .profile-push-choice {
    margin-top: 0.75rem;
}

/* ── Start-up splash, shown while the WebAssembly app downloads ── */
.app-loading {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--twc-color-muted);
    background: var(--twc-color-bg);
}

/* ── Unhandled-error bar ── */
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom) + var(--shell-tab-height, 0px));
    background: var(--twc-color-warning-bg);
    color: var(--twc-color-warning);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 0.5rem;
    top: 0.25rem;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
}
