/* ─── Base ─────────────────────────────────────────────────────────────── */
html, body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    background: #f5f5f5;
}

/* ─── Blazor error overlay ──────────────────────────────────────────────── */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #c62828;
    color: #fff;
    padding: .75rem 1.25rem;
    font-size: .875rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,.25);
}
#blazor-error-ui .reload { color: #ffeb3b; font-weight: 600; margin-left .5rem; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

.blazor-error-boundary { display: none; }

/* ─── POS navigation ────────────────────────────────────────────────────── */

/* Touch-friendly nav links — minimum 48px tap target */
.pos-nav .mud-nav-link {
    min-height: 52px;
    padding: 0 12px;
    font-size: .9375rem;
    font-weight: 500;
}

.pos-nav .mud-nav-link:hover,
.pos-nav .mud-nav-link.active {
    background: rgba(255,255,255,.1) !important;
    border-radius: 6px;
}

/* Nav item: text left, kbd hint right */
.pos-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.pos-nav-item span {
    flex: 1;
}

/* Keyboard shortcut badge */
.pos-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: .65rem;
    font-style: normal;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    padding: 1px 5px;
    min-width: 24px;
    line-height: 1.5;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Drawer overrides ──────────────────────────────────────────────────── */
.mud-drawer {
    overflow-x: hidden;
}

.mud-drawer-header {
    min-height: 56px !important;
}

/* ─── AppBar ────────────────────────────────────────────────────────────── */
.mud-appbar .mud-chip {
    cursor: default;
}

/* ─── Content area ──────────────────────────────────────────────────────── */
.mud-main-content {
    min-height: 100vh;
}

/* ─── Touch optimization ────────────────────────────────────────────────── */

/* All MudBlazor buttons min 44px — WCAG touch target */
.mud-button-root {
    min-height: 44px;
}

/* Larger icon buttons in AppBar */
.mud-appbar .mud-icon-button {
    width: 44px;
    height: 44px;
}

/* Form fields: larger tap targets on touch */
@media (pointer: coarse) {
    .mud-input-root {
        min-height: 52px;
    }
    .mud-button-root {
        min-height: 52px;
        font-size: 1rem;
    }
}

/* ─── MudBlazor validation colors ──────────────────────────────────────── */
.valid.modified:not([type=checkbox]) { outline: 1px solid #2e7d32; }
.invalid                             { outline: 1px solid #c62828; }
.validation-message                  { color: #c62828; font-size: .8125rem; }

/* ─── Scrollbar (webkit) ────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.35); }
