html, body {
    margin: 0;
    font-family: "Nunito", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #4a4a4a;
}

/* ── React "etbaas" look ─────────────────────────────────────────────────────
   Dark-green title bar above a table (mirrors the React table headers). */
.etb-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b342b;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px 5px 0 0;
}

.etb-table-title {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Total-results text on the right of the dark-green title bar (mirrors the React events page). */
.etb-table-total {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Full-width grey action bar above a table (mirrors the React frontend's Header — the bar that holds
   the "Create …" button). Left slot for back/title, right slot for actions. */
.etb-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: #f5f4f4;
    padding: 0.85rem 1.5rem;
    min-height: 64px;
}

.etb-action-bar__title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Padded content area below the full-width action bar. */
.etb-page {
    padding: 1.5rem;
}

/* Page header: back button + title (edit/detail pages, inside .etb-page). */
.etb-page-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Column-header row: bluish-grey background, uppercase primary-green bold text. */
.etb-table .mud-table-head th,
.etb-table .mud-table-head .mud-table-cell {
    background-color: #e3e8ed;
    color: #0b342b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .02em;
}

.etb-table .mud-table-root {
    border: 1px solid #eeeeee;
}

/* Pill buttons (React uses fully-rounded filled/outlined/text buttons). */
.mud-button-root.mud-button-filled,
.mud-button-root.mud-button-outlined,
.mud-button-root.mud-button-text {
    border-radius: 30px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}

h1:focus {
    outline: none;
}

/* Embed mode: content sits flush inside the host iframe (no app chrome). */
.embed-root {
    min-height: 100vh;
    background: transparent;
}

.validation-message {
    color: var(--mud-palette-error, #f44336);
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
