html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Roche Sans", Arial, sans-serif !important;
}

* {
    font-family: "Roche Sans", Arial, sans-serif !important;
    text-transform: none;
    box-sizing: border-box;
}

/* Subtle scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.2) transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.4); }

/* AppBar sticky instead of fixed so content flows naturally below it */
.mud-appbar.mud-appbar-fixed-top {
    position: sticky !important;
    top: 0 !important;
    right: 0;
    left: 0;
}

/* Remove MudBlazor's default top padding — no longer needed with sticky AppBar */
.mud-main-content {
    padding-top: 0px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 28px !important;
    background: #f0f2f8 !important;
}

/* Override MudBlazor dense row padding — more compact */
.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 2px 12px !important;
    padding-inline-start: 12px !important;
    padding-inline-end: 12px !important;
}

/* Admin table pagination bar */
.adm-card .mud-table-pagination {
    background: #f0f2f8;
    border-top: 1px solid #e0e4f0;
    padding: 4px 8px !important;
    min-height: 52px !important;
}

.adm-card .mud-table-pagination .mud-table-pagination-caption,
.adm-card .mud-table-pagination .mud-select,
.adm-card .mud-table-pagination .mud-input-root {
    font-size: 0.82rem !important;
}

/* Locks body scroll when filter panel is open */
body.rdlf-no-scroll {
    overflow: hidden !important;
}

/* ── SHARED ADMIN STYLES ────────────────────────────────── */
.adm-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e4f0;
    padding-bottom: 8px;
}
.adm-tab--active {
    color: #0B41CD !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #0B41CD;
    margin-bottom: -10px;
}
.adm-page {
    min-height: calc(100vh - 64px);
    background: #f0f2f8;
    padding: 24px;
}
.adm-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 28px;
}
.adm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.adm-title { color: #0B41CD; font-weight: 700; }
.adm-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.6);
}
.adm-stat strong { color: rgba(0,0,0,0.85); }
.adm-stat--active strong { color: #388e3c; }
.adm-stat--inactive strong { color: rgba(0,0,0,0.4); }
.adm-stat-sep { color: rgba(0,0,0,0.25); }
.adm-search { width: 100%; max-width: 440px; margin-bottom: 16px; }
.adm-table { margin-top: 8px; }
.adm-inactive { opacity: 0.4; text-decoration: line-through; }
.adm-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.adm-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.adm-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ── Import Admin ─────────────────────────────────────────────── */
.imp-section { border-radius: 8px; }
.imp-section-header { display: flex; align-items: center; justify-content: space-between; }
.imp-upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.imp-job-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.imp-counters { display: flex; gap: 24px; flex-wrap: wrap; margin: 12px 0; }
.imp-counter { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.imp-counter-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.imp-counter-label { font-size: 0.72rem; color: #888; text-transform: uppercase; letter-spacing: .04em; }
.imp-counter--green .imp-counter-value { color: #4caf50; }
.imp-counter--orange .imp-counter-value { color: #ff9800; }
.imp-counter--red .imp-counter-value { color: #f44336; }
.imp-blob-table { width: 100%; }
@keyframes imp-spin { to { transform: rotate(360deg); } }
.imp-spin { display: inline-block; animation: imp-spin 1.2s linear infinite; }
