html, body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4w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    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.highlight-red {
    background-color: #ffcccc !important; /* light red */
}

/*.team-band-a {
    background-color: #f9f9f9;
}

.team-band-b {
    background-color: #f2f2f2;
}*/

.cell-enroute {
    background-color: #fff3cd !important; /* Light yellow */
}

.cell-checkin {
    background-color: #cce5ff !important; /* Light blue */
}

.cell-checkout {
    background-color: #d4edda !important; /* Light green */
}

.cell-empty {
    background-color: transparent !important;
}


/* Tool Audit grid - compact columns */
.dg-col-xs {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    white-space: nowrap !important;
  
}

.dg-col-sm {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    white-space: nowrap !important;
   
}

.dg-col-center {
    text-align: center !important;
    
}

/* ultra narrow numeric columns (days, flags) */
.dg-col-xxs {
    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

/* ultra-narrow flag column (Cur) */
.dg-col-flag {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    white-space: nowrap !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

    /* also tighten inner cell padding used by MudBlazor */
    .dg-col-flag .mud-table-cell {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

/* ── Mobile bottom nav — push content up so it's not hidden behind the bar ── */
@media (max-width: 959px) {
    .mud-main-content {
        padding-bottom: 70px !important;
    }
}

/* ── KPI card ─────────────────────────────────────────────────────────────── */
.clubco-kpi-card {
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    cursor: default;
}
.clubco-kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09) !important;
    transform: translateY(-1px);
}

/* ── Page entry animation ─────────────────────────────────────────────────── */
@keyframes clubco-page-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mud-main-content .mud-container {
    animation: clubco-page-in 0.18s ease;
}

/* ── ClubCo DataGrid header ───────────────────────────────────────────────── */
.clubco-datagrid .mud-table-head .mud-table-cell {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
}

/* ── Gap utilities ────────────────────────────────────────────────────────── */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ── Text utilities ───────────────────────────────────────────────────────── */
.text-muted   { color: var(--mud-palette-text-secondary); }
.text-success { color: var(--mud-palette-success); }
.text-warning { color: var(--mud-palette-warning); }
.text-error   { color: var(--mud-palette-error); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }



/* ── Status badge (dot + text pill) ─────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    color: var(--badge-color, var(--mud-palette-text-secondary));
    background: color-mix(in srgb, var(--badge-color, #6B7280) 12%, transparent);
}

.status-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--badge-color, var(--mud-palette-text-secondary));
    flex: none;
}

/* ════════════════════════════════════════════════════════════════════════
   Professional polish layer — typography, surfaces, shadows, controls.
   Brand-agnostic: uses MudBlazor palette variables, never hard-coded brand hues.
   ════════════════════════════════════════════════════════════════════════ */

/* Force Inter across every MudBlazor typography level + a refined radius. */
:root {
    --mud-typography-default-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mud-typography-h1-family: var(--mud-typography-default-family);
    --mud-typography-h2-family: var(--mud-typography-default-family);
    --mud-typography-h3-family: var(--mud-typography-default-family);
    --mud-typography-h4-family: var(--mud-typography-default-family);
    --mud-typography-h5-family: var(--mud-typography-default-family);
    --mud-typography-h6-family: var(--mud-typography-default-family);
    --mud-typography-subtitle1-family: var(--mud-typography-default-family);
    --mud-typography-subtitle2-family: var(--mud-typography-default-family);
    --mud-typography-body1-family: var(--mud-typography-default-family);
    --mud-typography-body2-family: var(--mud-typography-default-family);
    --mud-typography-button-family: var(--mud-typography-default-family);
    --mud-typography-caption-family: var(--mud-typography-default-family);
    --mud-typography-overline-family: var(--mud-typography-default-family);
    --mud-default-borderradius: 8px;
    --app-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
    --app-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 2px 4px rgba(16, 24, 40, 0.04);
    --app-border: #E5E7EB;
}

/* Tighter, more confident headings (premium SaaS feel). */
.mud-typography-h4 { font-weight: 700; letter-spacing: -0.022em; }
.mud-typography-h5 { font-weight: 700; letter-spacing: -0.02em; }
.mud-typography-h6 { font-weight: 700; letter-spacing: -0.014em; }
.mud-typography-subtitle1 { font-weight: 600; }
.mud-typography-subtitle2 { font-weight: 600; }

/* Cards / surfaces: hairline border + soft shadow instead of heavy Material elevation. */
.mud-paper {
    border-radius: 12px;
}
.mud-paper.mud-paper-outlined {
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow-sm);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.mud-paper.mud-paper-outlined:hover {
    box-shadow: var(--app-shadow-md);
}
/* Elevated dialogs/menus get a soft, modern shadow rather than the harsh default. */
.mud-elevation-8, .mud-popover, .mud-dialog {
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12), 0 4px 8px rgba(16, 24, 40, 0.06) !important;
}

/* Buttons: calm, confident, never shouty. */
.mud-button-root {
    text-transform: none;
    font-weight: 600;
    letter-spacing: normal;
    border-radius: 8px;
}
.mud-button-filled {
    box-shadow: var(--app-shadow-sm);
}
.mud-button-filled:hover {
    box-shadow: var(--app-shadow-md);
}

/* App bar: crisp, flat, hairline divider. */
.mud-appbar {
    backdrop-filter: saturate(180%) blur(6px);
    background-color: rgba(255, 255, 255, 0.85) !important;
}
.mud-appbar .mud-toolbar { min-height: 60px; }

/* Inputs: softer, modern field styling. */
.mud-input.mud-input-outlined .mud-input-outlined-border { border-radius: 8px; }
.mud-input-control { border-radius: 8px; }

/* Chips & badges a touch softer. */
.mud-chip { font-weight: 600; }

/* Data grids / tables: airy header, subtle row hover. */
.mud-table-root th,
.mud-table-root .mud-table-cell.mud-table-head .mud-table-cell-header {
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    letter-spacing: 0.02em;
}
.mud-table-row:hover { background-color: rgba(16, 24, 40, 0.025); }

/* Nav drawer: tighter, modern list items. */
.mud-nav-link { border-radius: 8px; margin: 1px 8px; font-weight: 500; }
.mud-nav-link.active { font-weight: 600; }
.mud-nav-group .mud-nav-link { padding-top: 7px; padding-bottom: 7px; }

/* Refined focus ring for keyboard users (accessibility + polish). */
:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Thin, unobtrusive scrollbars. */
* {
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #94A3B8; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* Smooth, consistent interaction transitions. */
.mud-button-root, .mud-nav-link, .mud-icon-button, .mud-chip, .kpi-card {
    transition: background-color 0.15s ease, box-shadow 0.18s ease, color 0.15s ease, transform 0.15s ease;
}
