/* ── Afren brand fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600&display=swap');

@font-face {
    font-family: 'ClashDisplay';
    src: url('/fonts/ClashDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'ClashDisplay';
    src: url('/fonts/ClashDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'ClashDisplay';
    src: url('/fonts/ClashDisplay-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'ClashDisplay';
    src: url('/fonts/ClashDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

html, body {
    height: 100%;
    margin: 0;
}

/* ── Auth screens ──────────────────────────────────────────────────── */
.erp-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #F7FAFE 0%, #CDE3FA 100%);
}

.erp-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.25rem 2rem;
}

.erp-auth-logo {
    height: 28px;
    margin-bottom: 1.5rem;
}

/* ── Shell ─────────────────────────────────────────────────────────── */
.erp-appbar-logo {
    height: 22px;
    display: block;
}

.erp-appbar-logo-dark {
    display: none;
}

.mud-theme-dark .erp-appbar-logo-light {
    display: none;
}

.mud-theme-dark .erp-appbar-logo-dark {
    display: block;
}

/* Dense, data-first grids */
.mud-table.erp-dense .mud-table-cell {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.erp-kpi-value {
    font-family: 'ClashDisplay', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
}

.erp-kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

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

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