html, body {
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #F8FAFC;
}

.app-bar {
    border-bottom: 1px solid #E2E8F0;
}

.app-title {
    letter-spacing: .02em;
    color: #2563EB;
}

.app-drawer {
    border-right: 1px solid #E2E8F0;
}

.lang-active {
    font-weight: 700 !important;
    color: #2563EB !important;
}

.text-none {
    text-transform: none !important;
}

.page-container {
    padding: 20px 24px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 auto 0 0;
}

.grid-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.grid-card .mud-table-head .filter-row th {
    background: #F8FAFC;
    padding-top: 4px;
    padding-bottom: 8px;
    vertical-align: top;
}

.grid-card .mud-table-head th {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.grid-card .mud-table-foot td {
    font-weight: 600;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.filter-input {
    min-width: 110px;
}

.filter-input-wide {
    min-width: 170px;
}

.num {
    text-align: right !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.nowrap {
    white-space: nowrap;
}

.cell-note {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clickable-row {
    cursor: pointer;
}

/* Grouped report (e.g. free services by employee) */
.report-grouped th {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.report-grouped tr.group-header td {
    background: #EFF6FF;
    color: #1E3A8A;
    font-weight: 600;
    padding-top: 10px;
}

.report-grouped tr.group-total td {
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #E2E8F0;
}

.report-grouped tr.grand-total td {
    font-weight: 700;
    background: #F8FAFC;
}

.report-grouped .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.text-secondary {
    color: #64748B;
}

.report-grouped .value-changed {
    color: #B91C1C;
}

.report-grouped tr.row-suspicious td {
    background: #FFFBEB;
}

.global-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.global-filters .mud-input-control {
    min-width: 220px;
    max-width: 320px;
}

/* Login (statically rendered) */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #EFF6FF 0%, #F8FAFC 60%);
}

.login-card {
    width: 360px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 36px 32px 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.login-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2563EB;
}

.login-subtitle {
    color: #64748B;
    margin: 4px 0 24px;
}

.login-card label {
    display: block;
    font-size: .8rem;
    color: #475569;
    margin: 12px 0 4px;
}

.login-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: .95rem;
    outline: none;
}

.login-card input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.login-card button {
    width: 100%;
    margin-top: 22px;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: #2563EB;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}

.login-card button:hover {
    background: #1D4ED8;
}

.login-error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .85rem;
}

.login-lang {
    margin-top: 20px;
    text-align: center;
    font-size: .8rem;
    color: #94A3B8;
}

.login-lang a {
    color: #64748B;
    text-decoration: none;
    margin: 0 4px;
}

#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: 2000;
}

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