/* ══════════════════════════════════════════════════════
   Eventry Admin – Design System
   ══════════════════════════════════════════════════════ */

/* ── 0. @font-face declarations (local files) ── */
@font-face {
    font-family: 'Orev Edge';
    src: url('../fonts/Typesketchbook - Orev Edge Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Orev Edge';
    src: url('../fonts/Typesketchbook - Orev Edge Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Orev Edge';
    src: url('../fonts/Typesketchbook - Orev Edge SemiLight.ttf') format('truetype');
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Orev Edge';
    src: url('../fonts/Typesketchbook - Orev Edge Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('../fonts/Cabin-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cabin';
    src: url('../fonts/Cabin-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Cabin';
    src: url('../fonts/Cabin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cabin';
    src: url('../fonts/Cabin-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cabin';
    src: url('../fonts/Cabin-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── 1. Typography ── */
html, body {
    font-family: 'Cabin', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;           /* base = 16px – matches public portal */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mud-typography {
    font-size: 1rem;
}

/* Page-level titles – Orev Edge, visually prominent */
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5 {
    font-family: 'Orev Edge', 'Cabin', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 500 !important; /* Orev Edge Medium */
    letter-spacing: -0.01em;
    color: var(--mud-palette-text-primary);
}

h3 {
    font-family: 'Orev Edge', 'Cabin', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--mud-palette-text-primary);
    margin-bottom: 1rem;
}

/* Button text-transform – remove UPPERCASE default */
.mud-button-root,
.mud-button,
.mud-btn-text,
.mud-raised-button {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
}

/* ── 2. Spacing utilities (4px baseline grid) ── */
:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
}

/* MudBlazor spacing overrides – align to 8px grid */
.mud-grid {
    --mud-grid-spacing: 16px;  /* 2 × 8px */
}
.mud-card > .mud-card-content {
    padding: var(--space-4);   /* 16px */
}
.mud-card > .mud-card-header {
    padding: var(--space-3) var(--space-4); /* 12 16 */
}
.mud-card > .mud-card-actions {
    padding: var(--space-2) var(--space-4); /* 8 16 */
}

/* Section spacing – consistent vertical rhythm */
.section-gap  { margin-bottom: var(--space-6); }  /* 24px */
.section-gap-lg { margin-bottom: var(--space-8); }  /* 32px */

/* ── 3. Button hierarchy ── */

/* Primary (filled) – main CTA */
.mud-button-filled.mud-button-primary {
    box-shadow: none;
    transition: background-color 150ms ease, box-shadow 150ms ease, transform 80ms ease;
}
.mud-button-filled.mud-button-primary:hover {
    box-shadow: 0 2px 8px rgba(3, 169, 244, 0.30);
    filter: brightness(1.08);
}
.mud-button-filled.mud-button-primary:active {
    transform: scale(0.98);
}
.mud-button-filled.mud-button-primary:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* Secondary (outlined) */
.mud-button-outlined {
    transition: background-color 150ms ease, border-color 150ms ease;
}
.mud-button-outlined:hover {
    background-color: var(--mud-palette-action-default-hover);
}
.mud-button-outlined:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* Ghost / text (tertiary) */
.mud-button-text {
    transition: background-color 150ms ease;
}
.mud-button-text:hover {
    background-color: var(--mud-palette-action-default-hover);
}
.mud-button-text:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* Icon buttons – consistent focus ring */
.mud-icon-button:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
    border-radius: 50%;
}

/* ── 4. Status badges (outlined border-style) ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    background: transparent;
    border: 1.5px solid currentColor;
}
/* Green family – success / positive */
.badge--open       { color: #00c853; }
.badge--confirmed  { color: #00c853; }
.badge--attended   { color: #00c853; }
.badge--active     { color: #00c853; }
.badge--paid       { color: #00c853; }
.badge--healthy    { color: #00c853; }

/* Blue family – info / in-progress */
.badge--published  { color: #29b6f6; }
.badge--ongoing    { color: #29b6f6; }
.badge--trialing   { color: #29b6f6; }
.badge--provisioning { color: #29b6f6; }

/* Orange / yellow family – warning / pending */
.badge--draft      { color: #ffa726; }
.badge--waitlist   { color: #ffa726; }
.badge--pending    { color: #ffa726; }
.badge--degraded   { color: #ffa726; }

/* Red / pink family – danger / negative */
.badge--canceled   { color: #ef5350; }
.badge--suspended  { color: #ef5350; }
.badge--pastdue    { color: #ef5350; }
.badge--unhealthy  { color: #ef5350; }
.badge--revoked    { color: #ef5350; }

/* Grey family – neutral / inactive */
.badge--closed     { color: #9e9e9e; }
.badge--inactive   { color: #9e9e9e; }
.badge--void       { color: #9e9e9e; }

/* Location-type badges */
.badge--physical   { color: #00c853; }
.badge--virtual    { color: #29b6f6; }
.badge--hybrid     { color: #ffa726; }

/* Dark mode adjustments – brighter colors for readability */
.mud-theme-dark .badge--open       { color: #69f0ae; }
.mud-theme-dark .badge--confirmed  { color: #69f0ae; }
.mud-theme-dark .badge--attended   { color: #69f0ae; }
.mud-theme-dark .badge--active     { color: #69f0ae; }
.mud-theme-dark .badge--paid       { color: #69f0ae; }
.mud-theme-dark .badge--healthy    { color: #69f0ae; }
.mud-theme-dark .badge--published  { color: #4fc3f7; }
.mud-theme-dark .badge--ongoing    { color: #4fc3f7; }
.mud-theme-dark .badge--trialing   { color: #4fc3f7; }
.mud-theme-dark .badge--provisioning { color: #4fc3f7; }
.mud-theme-dark .badge--draft      { color: #ffcc80; }
.mud-theme-dark .badge--waitlist   { color: #ffcc80; }
.mud-theme-dark .badge--pending    { color: #ffcc80; }
.mud-theme-dark .badge--degraded   { color: #ffcc80; }
.mud-theme-dark .badge--canceled   { color: #ef9a9a; }
.mud-theme-dark .badge--suspended  { color: #ef9a9a; }
.mud-theme-dark .badge--pastdue    { color: #ef9a9a; }
.mud-theme-dark .badge--unhealthy  { color: #ef9a9a; }
.mud-theme-dark .badge--revoked    { color: #ef9a9a; }
.mud-theme-dark .badge--closed     { color: #bdbdbd; }
.mud-theme-dark .badge--inactive   { color: #bdbdbd; }
.mud-theme-dark .badge--void       { color: #bdbdbd; }
.mud-theme-dark .badge--physical   { color: #69f0ae; }
.mud-theme-dark .badge--virtual    { color: #4fc3f7; }
.mud-theme-dark .badge--hybrid     { color: #ffcc80; }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTkgNTIuNzE4N0wyODcuNjEzIDkwLjQ1NDlDMjg5LjM2MiA5My40NjgyIDI4Ny41MzggOTcuMTU5NCAyODQuMTA3IDk3LjE1OTRIMjQzLjg5M0MyNDAuNDYyIDk3LjE1OTQgMjM4LjYzOCA5My40NjgyIDI0MC4zODcgOTAuNDU0OUwyNjAuOTQxIDUyLjcxODdMMjYxLjM5NCA1Mi4yNjU4QzI2Mi4xODcgNTEuNDgzNyAyNjMuMjgzIDUxIDI2NC40OTQgNTFIMjYzLjUwNloiIGZpbGw9IiNGRjU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ── Notification badge: nudge left & down ── */
.mud-badge.mud-badge-top.mud-badge-overlap.notification-badge {
    inset: auto auto calc(100% - 16px) calc(100% - 24px);
}

/* ── Drawer: active nav-link full-width highlight ── */
.mud-drawer .mud-navmenu .mud-nav-link {
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.mud-drawer .mud-navmenu .mud-tooltip-root {
    display: block !important;
    width: 100% !important;
}

.mud-drawer .mud-navmenu .mud-tooltip-root .mud-nav-link {
    width: 100% !important;
}

.mud-drawer .mud-nav-link.active {
    background-color: rgba(0, 0, 0, 0.568) !important;
}

.mud-drawer .mud-nav-link.active,
.mud-drawer .mud-nav-link.active .mud-nav-link-text,
.mud-drawer .mud-nav-link.active .mud-nav-link-icon {
    color: #FFFFFF !important;
}

/* ── Right border on drawer ── */
.mud-drawer {
    border-right: 1px solid var(--mud-palette-divider) !important;
}

/* ── Light mode: darker active highlight ── */
.mud-theme-light .mud-drawer .mud-nav-link.active {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

.mud-theme-light .mud-drawer .mud-nav-link.active,
.mud-theme-light .mud-drawer .mud-nav-link.active .mud-nav-link-text,
.mud-theme-light .mud-drawer .mud-nav-link.active .mud-nav-link-icon {
    color: #03a9f4 !important;
    font-weight: 600;
}

/* ── Appbar: align hamburger icon with mini drawer icons ── */
.mud-toolbar-gutters {
    padding-left: 16px;
    padding-right: 24px;
}

/* ── Dark mode: subtler striped table rows ── */
.mud-table-striped .mud-table-container .mud-table-root .mud-table-body .mud-table-row:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* ── Global: no shadows, outlined borders ── */
.mud-card,
.mud-paper,
.mud-table {
    box-shadow: none !important;
    border: 1px solid var(--mud-palette-divider);
}

/* ── Table polish: cleaner rows ── */
.mud-table .mud-table-root {
    border-collapse: separate;
    border-spacing: 0;
}
.mud-table .mud-table-head .mud-table-row .mud-table-cell {
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #9e9e9e;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Table row dividers */
table thead tr {
    border-bottom: 2px solid #e0e0e0;
}
table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}
table tbody tr:last-child {
    border-bottom: none;
}
.mud-theme-dark table thead tr {
    border-bottom: 2px solid var(--mud-palette-divider);
}
.mud-theme-dark table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mud-theme-dark table tbody tr:last-child {
    border-bottom: none;
}

.mud-table .mud-table-body .mud-table-row .mud-table-cell {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 13px;
}

/* ── 5. Data table enhancements ── */

/* ── Column-header filter dropdown ── */
.column-filter {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
    margin-left: 2px;
}
.column-filter__trigger {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    color: #757575;
    font-size: 13px;
    line-height: 1;
    transition: color 150ms ease, background-color 150ms ease;
}
.column-filter__trigger:hover {
    color: #009688;
    background: rgba(0, 150, 136, 0.08);
}
.column-filter__trigger--active {
    color: #009688;
}
.column-filter__chevron {
    font-size: 12px;
}
.column-filter__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #009688;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}
.column-filter__backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.column-filter__dropdown {
    position: fixed;
    z-index: 10000;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mud-theme-dark .column-filter__dropdown {
    background: var(--mud-palette-surface);
    border-color: var(--mud-palette-divider);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}
.column-filter__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 120ms ease;
}
.column-filter__option:hover {
    background: rgba(0, 0, 0, 0.04);
}
.mud-theme-dark .column-filter__option:hover {
    background: rgba(255, 255, 255, 0.06);
}
.column-filter__option input[type="checkbox"] {
    accent-color: #009688;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.column-filter__clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #009688;
    font-size: 12px;
    padding: 4px 6px;
    margin-top: 4px;
    border-top: 1px solid #e0e0e0;
    text-align: left;
    transition: color 150ms ease;
}
.column-filter__clear:hover {
    color: #00796b;
}
.mud-theme-dark .column-filter__clear {
    border-top-color: var(--mud-palette-divider);
}

/* Filterable column header wrapper */
.th-filterable {
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.th-filterable--active .mud-table-sort-label,
.th-filterable--active .mud-button-root {
    color: #009688 !important;
}

/* Sortable column header – teal accent for active sort */
.mud-table-sort-label.mud-direction-asc .mud-table-sort-label-icon,
.mud-table-sort-label.mud-direction-desc .mud-table-sort-label-icon {
    color: #009688 !important;
}

/* (Location-type badge colors are defined in the main badge block above) */

/* Clickable table rows */
.table-row-clickable {
    cursor: pointer;
    transition: background-color 120ms ease;
}
.table-row-clickable:hover > td {
    background-color: rgba(0,0,0,0.03) !important;
}
.mud-theme-dark .table-row-clickable:hover > td {
    background-color: rgba(255,255,255,0.04) !important;
}

/* Delete icon: muted by default, danger on hover */
.delete-icon-muted {
    color: #757575 !important;
    transition: color 150ms ease;
}
.delete-icon-muted:hover {
    color: #e91e63 !important;
}

/* Registration progress cell */
.registration-cell {
    min-width: 80px;
    line-height: 1.2;
}

/* Empty state (used inside NoRecordsContent) */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

/* Standardised empty-state component */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    gap: 12px;
    padding: var(--space-8) var(--space-4);
    text-align: center;
}
.empty-state-heading {
    font-family: 'Orev Edge', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
    line-height: 1.3;
}
.empty-state-subtext {
    font-family: 'Cabin', sans-serif;
    font-size: 14px;
    color: var(--mud-palette-text-secondary);
    max-width: 320px;
    text-align: center;
    line-height: 1.5;
}

/* Batch action bar */
.batch-action-bar {
    padding: var(--space-2) var(--space-4);
    background: rgba(3, 169, 244, 0.08);
    border: 1px solid rgba(3, 169, 244, 0.2) !important;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════
   Dashboard – KPI cards, chart, funnel, stats
   ══════════════════════════════════════════════════════ */

/* ── KPI Card ── */
.dashboard-kpi-card {
    width: 100%;
    height: 100%;
    background: var(--mud-palette-surface, #fff);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--mud-palette-lines-default, #e0e0e0);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dashboard-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.dashboard-kpi-number {
    font-family: 'Orev Edge', 'Cabin', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mud-palette-text-primary, #212121);
}
.dashboard-kpi-label {
    font-family: 'Cabin', sans-serif;
    font-size: 13px;
    color: #757575;
    line-height: 1.4;
}

/* ── KPI Progress Bar (Active Registrations) ── */
.dashboard-kpi-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 2px;
}
.dashboard-kpi-progress__bar {
    height: 4px;
    border-radius: 999px;
    background: var(--mud-palette-lines-default, #e0e0e0);
    overflow: hidden;
}
.dashboard-kpi-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: #009688;
    transition: width 0.4s ease;
}
.dashboard-kpi-progress__label {
    font-size: 12px;
    color: #757575;
    font-family: 'Cabin', sans-serif;
}

/* ── KPI Trend Indicator ── */
.dashboard-kpi-trend {
    font-size: 12px;
    font-family: 'Cabin', sans-serif;
    margin-top: 2px;
}
.dashboard-kpi-trend--up {
    color: #009688;
}
.dashboard-kpi-trend--down {
    color: #e91e63;
}

/* ── Chart Card ── */
.dashboard-chart-card .mud-chart {
    background: transparent;
}
.dashboard-chart-card .mud-chart line {
    stroke: #f0f0f0;
}
.mud-theme-dark .dashboard-chart-card .mud-chart line {
    stroke: #383838;
}

/* ── Tab Switcher (Daily / Weekly / Monthly) ── */
.dashboard-tab-switcher {
    display: flex;
    gap: 4px;
    padding-top: 8px;
    padding-right: 4px;
}
.dashboard-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Cabin', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #757575;
    padding: 4px 8px;
    border-bottom: 2px solid transparent;
    transition: color 150ms ease, border-color 150ms ease;
}
.dashboard-tab:hover {
    color: #03a9f4;
}
.dashboard-tab--active {
    color: #03a9f4;
    font-weight: 600;
    border-bottom-color: #03a9f4;
}
.mud-theme-dark .dashboard-tab {
    color: #9e9e9e;
}
.mud-theme-dark .dashboard-tab--active {
    color: #4fc3f7;
    border-bottom-color: #4fc3f7;
}

/* ── Date Chip (Upcoming Events) ── */
.dashboard-date-chip {
    min-width: 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.mud-theme-dark .dashboard-date-chip {
    border-color: var(--mud-palette-divider);
}
.dashboard-date-chip__month {
    background: #03a9f4;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1px 0;
    font-family: 'Cabin', sans-serif;
}
.dashboard-date-chip__day {
    font-size: 1rem;
    font-weight: 700;
    padding: 1px 6px;
    font-family: 'Orev Edge', 'Cabin', sans-serif;
}

/* ── Edit Event: Tab Layout ── */

.edit-event-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.edit-event-tabs::-webkit-scrollbar {
    display: none;
}

.edit-event-tabs__tab {
    all: unset;
    box-sizing: border-box;
    padding: 10px 16px;
    font-family: 'Cabin', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #757575;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    position: relative;
}

.edit-event-tabs__tab:hover {
    color: var(--mud-palette-text-primary, #212121);
}

.edit-event-tabs__tab--active {
    color: var(--mud-palette-primary, #03a9f4);
    font-weight: 500;
    border-bottom-color: var(--mud-palette-primary, #03a9f4);
}

.edit-event-tabs__error-dot {
    color: #e91e63;
    font-size: 10px;
    margin-left: 4px;
    vertical-align: super;
    line-height: 1;
}

.edit-event-tab-content {
    min-height: 200px;
    padding-top: 8px;
}

@media (max-width: 768px) {
    .edit-event-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .edit-event-tabs__tab {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ── Funnel (Registreringsöversikt) ── */
.dashboard-funnel {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
}
.dashboard-funnel__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    flex: 1;
    position: relative;
}
.dashboard-funnel__item + .dashboard-funnel__item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: #e0e0e0;
}
.mud-theme-dark .dashboard-funnel__item + .dashboard-funnel__item::before {
    background: var(--mud-palette-divider);
}
.dashboard-funnel__count {
    font-family: 'Orev Edge', 'Cabin', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}
.dashboard-funnel__label {
    font-family: 'Cabin', sans-serif;
    font-size: 12px;
    color: #757575;
    text-align: center;
}

/* ── Stat labels (Cancellation rate, Waitlist conversion) ── */
.dashboard-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dashboard-stat__label {
    font-family: 'Cabin', sans-serif;
    font-size: 12px;
    color: #757575;
}
.dashboard-stat__value {
    font-family: 'Cabin', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #424242;
}
.mud-theme-dark .dashboard-stat__value {
    color: var(--mud-palette-text-primary);
}

/* === Form field alignment with public portal === */

/* Border radius + border color – match public portal */
.mud-input.mud-input-outlined .mud-input-outlined-border {
    border-color: var(--mud-palette-divider, rgba(0, 0, 0, 0.23)) !important;
    border-radius: 10px !important;
}

/* Hover – slight darkening/brightening */
.mud-input.mud-input-outlined:not(.mud-disabled):not(:focus-within):hover .mud-input-outlined-border {
    border-color: var(--mud-palette-action-default, rgba(0, 0, 0, 0.42)) !important;
}

/* Focus state – use theme primary (same as public portal) */
.mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
    border-color: var(--mud-palette-primary) !important;
    border-width: 2px !important;
}

/* Keep label always above the field (shrunk position), even when empty */
.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(14px, -6px) scale(0.75) !important;
    max-width: calc(100% - 14px) !important;
}

/* Always open the outlined border notch for the label */
.mud-input.mud-input-outlined .mud-input-outlined-border legend {
    width: auto !important;
    padding: 0 5px !important;
}

/* Label color – use MudBlazor theme variable (works in light & dark) */
.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    color: var(--mud-palette-text-secondary) !important;
}

/* Focused label color – use primary */
.mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol {
    color: var(--mud-palette-primary) !important;
}

