﻿html {
    font-size: 14px;
}

/* ─── Layout ──────────────────────────────────────────── */

.mud-main-content {
    height: 100%;
    min-height: 100vh;
    display: flex;
}

/* ─── Chip Sizing ─────────────────────────────────────── */

.mud-chip.mud-chip-size-medium {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-chip.mud-chip-size-small {
    font-size: var(--mud-typography-body2-size) !important;
}

.mud-chip {
    font-size: var(--mud-typography-default-size);
}

/* ─── Tabs ────────────────────────────────────────────── */

.mud-tabs {
    background-color: var(--mud-palette-surface);
}

/* ─── Input Sizing ────────────────────────────────────── */

.mud-input-control-margin-dense .mud-input > input.mud-input-root,
.mud-input-control-margin-dense div.mud-input-slot.mud-input-root {
    font-size: 0.90em;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: var(--mud-typography-default-size) !important;
}

/* ─── Table & Grid Base ───────────────────────────────── */

.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-expand-panel .mud-expand-panel-header {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-button-year {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-table-cell {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-table-dense .mud-table-cell {
    font-size: var(--mud-typography-body2-size) !important;
}

.mud-button-outlined-size-small {
    font-size: var(--mud-typography-body2-size);
}

/* ─── Readonly Grid ───────────────────────────────────── */

.mud-grid.readonly-grid > .mud-grid-item {
    border-bottom: 1px solid var(--mud-palette-table-lines);
    padding-bottom: 2px;
}

/* ─── Navigation ──────────────────────────────────────── */

.mud-nav-link {
    white-space: normal !important;
}

.user-button {
    text-transform: none;
    background: rgba(var(--mud-palette-primary-rgb), 0.1)
}

.side-menu .mud-chip.mud-chip-size-small {
    font-size: 0.625rem;
    height: 1.125rem;
}

/* ─── DataGrid Toolbar ────────────────────────────────── */

.mud-table.mud-data-grid .mud-toolbar {
    height: auto !important;
    padding: 1rem
}

.mud-table.mud-data-grid .mud-toolbar-gutters {
    height: auto !important;
    padding: 1rem
}

.mud-table.mud-data-grid .mud-table-toolbar {
    height: auto !important;
    padding: 1rem
}

.mud-table.mud-data-grid .mud-table-pagination-toolbar {
    height: auto !important;
    padding: 0rem !important;
}

/* ─── DataGrid — Calm Design Overrides ────────────────── */

/* Row hover — subtle primary tint, not a heavy highlight */
.mud-table-row:hover {
    background: rgba(99, 102, 241, 0.04) !important;
}

/* Cell padding — more breathing room */
.mud-table-cell {
    padding: 14px 16px !important;
}

/* Header — lighter weight, uppercase, smaller */
.mud-table-head .mud-table-cell {
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--mud-palette-text-secondary) !important;
}

/* Remove default alternating row colours */
.mud-table-row:nth-child(even) {
    background: transparent !important;
}

/* Subtle bottom border only */
.mud-table-row {
    border-bottom: 1px solid var(--mud-palette-divider) !important;
}

/* ─── Status Chips — Tinted Background Pattern ────────── */

.status-chip-signed-in {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10B981 !important;
}

.status-chip-expected {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366F1 !important;
}

.status-chip-signed-out {
    background: rgba(148, 163, 184, 0.1) !important;
    color: #94A3B8 !important;
}

.status-chip-denied {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #EF4444 !important;
}

.status-chip-cancelled {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #F59E0B !important;
}

.status-chip-open {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366F1 !important;
}

.status-chip-in-progress {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #0EA5E9 !important;
}

.status-chip-on-hold {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #F59E0B !important;
}

.status-chip-closed {
    background: rgba(148, 163, 184, 0.1) !important;
    color: #94A3B8 !important;
}

/* ─── Stat Cards ──────────────────────────────────────── */

.stat-card {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stat-card:hover {
    border-color: var(--mud-palette-primary);
}

.stat-card.active {
    border-color: var(--mud-palette-primary);
    background: rgba(99, 102, 241, 0.06);
}

/* ─── Timeline — Cleaner, Tighter ─────────────────────── */

.visit-timeline .mud-timeline-item-dot {
    width: 10px;
    height: 10px;
    box-shadow: none;
}

.visit-timeline .mud-timeline-line {
    width: 1px;
}

/* ─── Pulse Animation for Real-Time Counters ──────────── */

@keyframes pulse-count {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.pulse-count {
    animation: pulse-count 0.3s ease;
}

/* ─── Kiosk Transitions ───────────────────────────────── */

@keyframes kiosk-fade-scale-in {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes kiosk-fade-scale-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.96);
    }
}

/* ─── Priority Chips — Tinted Background Pattern ──────── */

.priority-chip-low {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10B981 !important;
}

.priority-chip-medium {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #F59E0B !important;
}

.priority-chip-high {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #EF4444 !important;
}

.priority-chip-critical {
    background: rgba(220, 38, 38, 0.12) !important;
    color: #DC2626 !important;
}



