html, body {
    font-family: 'Roboto', sans-serif;
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
}

a, .btn-link {
    color: #006bb7;
}

.btn-v-sml {
    padding: 2px 4px 2px 4px;
    font-size: 14px;
}

.btn-primary {
    color: #fff;
    background-color: #4885c2;
    border-color: #4885c2;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .btn-primary .text {
        display: none;
    }
}

.btn-secondary {
    color: #fff;
    background-color: #868e96; /* Warm gray */
    border-color: #6c757d; /* Slightly darker warm gray */
    border-radius: 2px;
}

.btn-danger {
    color: #fff;
    background-color: #cd515b; /* Vibrant red */
    border-color: #d62828; /* Slightly darker red */
    border-radius: 2px;
}

.btn-warn {
    color: #fff;
    background-color: #eaa948;
    border-color: #eaa948;
    border-radius: 2px;
}

.btn-warn:disabled {
    background-color: #a9a9a9; /* Nice grey color */
    border: none;
}

.btn-atag {
    text-decoration: none;
    padding: 2px 6px 2px 6px;
    color: #fff;
    background-color: #4885c2;
    border-color: #4885c2;
    border-radius: 2px;
}

.eranest-grid {
    height: 16.5rem;
    overflow-y: auto;
}

.txt-success {
    color: #32de84;
}

.txt-primary {
    color: #1b6ec2;
}

.txt-warning {
    color: goldenrod;
}

.txt-macaddress {
    padding-left: 5px;
    word-wrap: break-word;
}

.txt-danger {
    color: #e63946;
}

.full-width {
    display: block;
    width: 100%;
}

.content {
    padding-top: 1.1rem;
}

h1 {
    text-align: center;
}

    h1:focus {
        outline: none;
    }

.card-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-flex-item {
    flex: 1;
    margin: 10px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.container {
    max-width: 400px;
    margin: auto;
    padding: 50px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.eranest-dropdown {
    width: 100%; /* Fills all available width */
    border-radius: 0; /* No rounded corners */
    margin-bottom: 8px; /* Increase space below to prevent clipping by the button */
    box-sizing: border-box; /* Ensures padding and border are included in the width */
}

.eranest-dropdown-toggle {
    padding: 0px 4px 0px 4px;
    border-radius: 0px;
}

.eranest-logo {
    background-image: url("images/logo.svg");
}

.eranest-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .eranest-table th {
        border: 1px solid #dddddd;
        text-align: center;
        padding: 8px;
    }

    .eranest-table td {
        border: 1px solid #dddddd;
        text-align: left;
        padding: 8px;
    }

    .eranest-table th {
        font-weight: bold;
    }

    /* Optional: Ensure the "Actions" column is furthest to the right */
    .eranest-table td:last-child {
        text-align: right;
    }


.eranest-table2 {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .eranest-table2 th {
        border: 1px solid #dddddd;
        text-align: center;
        padding: 8px;
    }

    .eranest-table2 td {
        border: 1px solid #dddddd;
        text-align: center;
        padding: 8px;
    }

    .eranest-table2 th {
        font-weight: bold;
    }

.eranest-table3 {
    width: 100%;
    border-collapse: collapse;
}

    .eranest-table3 th {
        border: 1px solid #dddddd;
        text-align: center;
        padding: 8px;
    }

    .eranest-table3 td {
        border: 1px solid #dddddd;
        text-align: left;
        padding: 8px;
    }

    .eranest-table3 th {
        font-weight: bold;
    }

    /* Optional: Ensure the "Actions" column is furthest to the right */
    .eranest-table3 td:last-child {
        text-align: right;
    }

.eranest-btn-sleak {
    border: none;
    background-color: transparent;
}

.eranest-btn-dateinput {
    border: solid;
    border-radius: 4px;
    border-style: groove;
}

.eranest-table4 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

    .eranest-table4 th {
        text-align: left;
        padding: 12px;
        border-bottom: 2px solid #ddd;
        background-color: #f8f9fa;
        font-weight: normal;
    }
    
    .eranest-table4 td {
        text-align: left;
        padding: 12px;
        border-bottom: 1px solid #ddd;
        background-color: #f1f1f1;
    }

    .eranest-table4 tr:last-child td {
        border-bottom: none;
    }

.eranest-table-card {
    border-collapse: collapse;
}

    .eranest-table-card th {
        text-align: center;
        padding: 8px;
    }

    .eranest-table-card td {
        text-align: center;
        padding: 8px;
    }

    .eranest-table-card th {
        font-weight: bold;
    }

.simply-grid-header {
    cursor: pointer;
    user-select: none;
    padding: 8px;
    text-align: left;
    font-weight: bold;
    position: relative;
}

    .simply-grid-header:hover {
        background-color: #f5f5f5;
    }

.sort-indicator {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

    .sort-indicator.asc {
        border-bottom: 4px solid #000;
    }

    .sort-indicator.desc {
        border-top: 4px solid #000;
    }

/* Container to hold the two blocks */
.eranest-welcome-container {
    display: flex;
    height: 40vh; /* Make sure it takes up the full viewport height */
    margin: 0 auto; /* Center the container horizontally */
    gap: 30px; /* Add space between the two blocks */
    text-align: center;
}

/* Styling for the blocks */
.eranest-welcome-block {
    flex: 1;
    flex-direction: column; /* Arrange items vertically */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 15px;
    outline: thick inset;
}

.eranest-welcome-image-size {
    font-size: 128px;
}

@media (max-width: 762px) {
    .eranest-welcome-container {
        flex-direction: column; /* Stack blocks vertically */
    }

    .eranest-welcome-block {
        height: 50vh; /* Each block takes 50% of the viewport height */
        outline: thin inset;
    }

    .eranest-welcome-container {
        gap: 10px; /* Reduce gap for mobile devices */
    }

    .eranest-welcome-image-size {
        font-size: 64px;
    }
}

.eranest-sidebar {

}

@media (min-width: 1280px) {
    .eranest-sidebar {
        width: var(--bb-sidebar-width);
        position: sticky;
        top: 0;
    }
}

.eranest-label {
    margin-right: 1px; /* Space between label and input field */
    padding-left: 1px;
    text-align: left; /* Align label text to the right */
}

.eranest-form-group {
    display: flex;
    align-items: center; /* Aligns label and input vertically */
    justify-content: flex-start; /* Aligns content to the left */
    margin-bottom: 5px; /* Space between form-group sections */
    margin-top: 5px; /* Space between form-group sections */
}

.eranest-input-button {
    width: 200px; /* Set a fixed width for the label to create space */
    margin-right: 10px; /* Space between label and input field */
    text-align: left; /* Align label text to the right */
}

.eranest-input-field {
    flex: 1;
    padding: 2px;
    border: solid 1px;
    border-radius: 0px;
}

.eranest-input-field-full-width {
    padding: 2px;
    border: solid 1px;
    border-radius: 0px;
    min-width: 0px;
    width: 100%;
}

.eranest-divider {
    border: none; /* Removes the default border */
    border-top: 2px solid black;
    margin: 10px 0; /* Adds space around the line */
}

.eranest-room-link {
    color: black;
    text-decoration: none;
    text-decoration: underline;
}

.eranest-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #E9E9ED;
    /* Blue background */
    color: black;
    /* White text */
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 1px;
    padding-bottom: 1px;
    cursor: pointer;
    border: 1px solid black;
}

.eranest-filter-button .icon {
    font-size: 16px;
    /* Adjust size for the icon */
}   

.eranest-filter-button .text {
    margin-right: auto;
}

@media (max-width: 576px) {
    .eranest-filter-button .text {
        display: none;
    }
}

.eranest-filter-button .count {
    background-color: #3b82f6;
    color: #E9E9ED;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

@media (max-width: 576px) {
    .eranest-filter-button .count {
        display: none;
    }
}

.eranest-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.eranest-card3 {
    flex: 1 1 calc(33.333% - 5px);
    max-width: calc(33.333% - 5px);
    border: 1px solid #ccc;
    padding: 5px;
}

@media (max-width: 768px) {
    .eranest-card3 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

ol {
    margin: 0;
    padding: 0;
    list-style-position: inside;
    flex-wrap: wrap;
}

    ol li {
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

.table-responsive .dropdown,
.table-responsive .btn-group,
.table-responsive .btn-group-vertical {
    position: static;
}

#components-reconnect-modal {
    display: none;
}

#components-reconnect-modal.components-reconnect-show, 
#components-reconnect-modal.components-reconnect-failed, 
#components-reconnect-modal.components-reconnect-rejected {
    display: block;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0f0f0;
    color: #333;
    padding: 1rem 2rem;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 10000;
    text-align: center;
    animation: reconnect-fade-in 0.4s ease-in-out;
    z-index: 10001;
}

@keyframes reconnect-fade-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

:root {
    /* Eranest design tokens */
    --er-bg: #f7f8fa;
    --er-surface: #ffffff;
    --er-border: #e6e8ec;
    --er-border-strong: #d8dbe1;
    --er-text: #111827;
    --er-text-muted: #6b7280;
    --er-text-subtle: #9ca3af;
    --er-accent: #3b82f6;
    --er-accent-hover: #2563eb;
    --er-accent-soft: rgba(59, 130, 246, 0.12);
    --er-warning: #fed330;
    --er-warning-hover: #f7b731;
    --er-success: #20bf6b;
    --er-success-hover: #189955;
    --er-radius-sm: 8px;
    --er-radius: 10px;
    --er-radius-lg: 14px;
    --er-shadow-sm: 0 1px 2px rgba(16,24,40,0.04);
    --er-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);

    /* Sidebar (dark, minimal) */
    --bb-sidebar-width: 232px;
    --bb-sidebar-background-color: #1f2937;
    --bb-sidebar-top-row-background-color: #1f2937;
    --bb-sidebar-top-row-border-color: #374151;
    --bb-sidebar-brand-image-width: 22px;
    --bb-sidebar-brand-image-height: 22px;
    --bb-sidebar-content-border-color: #1f2937;
    --bb-sidebar-nav-item-text-color: rgba(229, 231, 235, 0.78);
    --bb-sidebar-nav-item-text-active-color-rgb: 255, 255, 255;
    --bb-sidebar-nav-item-text-hover-color: rgba(255, 255, 255, 0.95);
    --bb-sidebar-nav-item-text-active-color: rgba(255, 255, 255, 1);
    --bb-sidebar-nav-item-background-hover-color: rgba(255, 255, 255, 0.05);
    --bb-sidebar-nav-item-group-background-color: rgba(255, 255, 255, 0.03);

    --bs-nav-link-color: var(--er-text);
    --bs-nav-link-hover-color: var(--er-text);
    --bs-nav-link-disabled-color: var(--er-text-subtle);
    --bs-link-color: var(--er-accent);
    --bs-link-hover-color: var(--er-accent-hover);
    --bs-border-radius: var(--er-radius-sm);
    --bs-border-color: var(--er-border);
}

/* ---------- Typography ---------- */
html, body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    background-color: var(--er-bg);
    color: var(--er-text);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Main layout ---------- */
.eranest-main {
    min-height: 100vh;
    background-color: var(--er-bg);
}
.eranest-content {
    padding: 28px 32px 48px;
    max-width: 1600px;
}
@media (max-width: 768px) {
    .eranest-content { padding: 18px 16px 32px; }
}

.eranest-dev-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 18px;
}
.eranest-dev-dot {
    width: 6px; height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    display: inline-block;
}

/* ---------- Sidebar (BlazorBootstrap overrides) ---------- */
.bb-sidebar {
    border-right: 1px solid #374151 !important;
}
.bb-sidebar .bb-sidebar-top-row,
.bb-sidebar .sidebar-top-row {
    border-bottom: 1px solid #374151 !important;
}
/* Center the logo + title in the top row (Bootstrap navbar defaults to
   space-between, which shoves the brand to one side once the toggler is
   hidden on desktop). */
.bb-sidebar .bb-sidebar-top-row .navbar,
.bb-sidebar .bb-sidebar-top-row .container-fluid {
    justify-content: center !important;
}
.bb-sidebar .bb-sidebar-top-row .navbar-brand {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bb-sidebar .bb-sidebar-top-row .title,
.bb-sidebar .sidebar-top-row .title {
    color: #f3f4f6 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: -0.01em;
}
.bb-sidebar .bb-sidebar-content,
.bb-sidebar .sidebar-content {
    padding: 12px 10px !important;
    background-color: #1f2937 !important;
}
.bb-sidebar .nav-item {
    margin: 1px 0;
}
.bb-sidebar .nav-link {
    border-radius: var(--er-radius-sm) !important;
    padding: 7px 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(229, 231, 235, 0.72) !important;
    border-left: 2px solid transparent !important;
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
    display: flex; align-items: center; gap: 10px;
}
.bb-sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.04) !important;
    color: #ffffff !important;
}
.bb-sidebar .nav-link.active {
    background-color: var(--er-accent-soft) !important;
    color: #ffffff !important;
    border-left: 2px solid var(--er-accent) !important;
    font-weight: 600 !important;
}
/* Monochrome icons in the sidebar */
.bb-sidebar .nav-link i,
.bb-sidebar .nav-link .bi {
    color: inherit !important;
    font-size: 15px !important;
    opacity: 0.85;
    width: 16px;
    display: inline-flex;
    justify-content: center;
}
.bb-sidebar .nav-link.active i,
.bb-sidebar .nav-link.active .bi {
    opacity: 1;
}
/* Group / parent labels */
.bb-sidebar .nav-item .nav-link[data-bs-toggle],
.bb-sidebar .nav-item-group > .nav-link {
    text-transform: uppercase;
    font-size: 11px !important;
    letter-spacing: 0.06em;
    color: rgba(156, 163, 175, 0.8) !important;
    font-weight: 600 !important;
    margin-top: 10px;
}
.bb-sidebar .nav-item-group {
    background: transparent !important;
}
/* Scrollbar */
.bb-sidebar .bb-sidebar-content::-webkit-scrollbar { width: 6px; }
.bb-sidebar .bb-sidebar-content::-webkit-scrollbar-thumb { background: #2a2f3a; border-radius: 3px; }
.bb-sidebar .bb-sidebar-content::-webkit-scrollbar-track { background: transparent; }

/* Hide bright top-row separator that bled through */
.bb-sidebar .bb-sidebar-top-row + .bb-sidebar-content { border-top: none !important; }

/* ---------- Page structure helpers ---------- */
.eranest-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.eranest-page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--er-text);
    letter-spacing: -0.01em;
    margin: 0;
    text-align: left;
}
.eranest-page-subtitle {
    color: var(--er-text-muted);
    font-size: 13px;
    margin-top: 4px;
}
.eranest-breadcrumb {
    font-size: 12px;
    color: var(--er-text-subtle);
    margin-bottom: 8px;
    display: flex; gap: 6px; align-items: center;
}
.eranest-breadcrumb a { color: var(--er-text-muted); text-decoration: none; }
.eranest-breadcrumb a:hover { color: var(--er-text); }

/* ---------- Tabs → segmented pill nav ---------- */
.nav-tabs {
    border-bottom: none !important;
    background: var(--er-surface);
    padding: 4px;
    border-radius: var(--er-radius);
    display: flex;
    width: fit-content;
    gap: 2px;
    border: 1px solid var(--er-border);
    box-shadow: var(--er-shadow-sm);
    margin: 0 auto 18px;
}
.nav-tabs .nav-link {
    border: none !important;
    border-radius: 7px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--er-text-muted) !important;
    background: transparent !important;
    transition: background-color 120ms ease, color 120ms ease;
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-tabs .nav-link:hover {
    color: var(--er-text) !important;
    background: rgba(0,0,0,0.03) !important;
}
.nav-tabs .nav-link.active {
    background: var(--er-accent-soft) !important;
    color: var(--er-accent) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.nav-tabs .nav-link i,
.nav-tabs .nav-link .bi {
    font-size: 14px;
    color: inherit !important;
}
.tab-content {
    margin-top: 4px;
}

/* ---------- Reduce border noise on common tables ---------- */
.table-bordered {
    border-color: var(--er-border) !important;
}
.table-bordered > :not(caption) > * > * {
    border-color: var(--er-border) !important;
}
.table {
    --bs-table-border-color: var(--er-border);
    color: var(--er-text);
}
.table > thead {
    color: var(--er-text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fafbfc;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #fcfcfd;
}
.table-hover > tbody > tr:hover > * {
    background-color: #f8fafc;
}

/* ---------- Cards / surfaces ---------- */
.card {
    border: 1px solid var(--er-border) !important;
    border-radius: var(--er-radius) !important;
    box-shadow: var(--er-shadow-sm);
    background: var(--er-surface);
}
.card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--er-border);
    font-weight: 600;
}

/* ---------- Buttons (softer radius, calmer accents) ---------- */
.btn { border-radius: var(--er-radius-sm) !important; font-weight: 500; }
.btn-primary {
    background-color: var(--er-accent) !important;
    border-color: var(--er-accent) !important;
}
.btn-primary:hover {
    background-color: var(--er-accent-hover) !important;
    border-color: var(--er-accent-hover) !important;
}
.btn-secondary {
    background-color: #f3f4f6 !important;
    border-color: var(--er-border) !important;
    color: var(--er-text) !important;
}
.btn-secondary:hover {
    background-color: #e5e7eb !important;
    color: var(--er-text) !important;
}
.btn-success {
    background-color: var(--er-success) !important;
    border-color: var(--er-success) !important;
    color: #ffffff !important;
}
.btn-success:hover {
    background-color: var(--er-success-hover) !important;
    border-color: var(--er-success-hover) !important;
}
.btn-warning {
    background-color: var(--er-warning) !important;
    border-color: var(--er-warning) !important;
    color: #4b3b00 !important;
}
.btn-warning:hover {
    background-color: var(--er-warning-hover) !important;
    border-color: var(--er-warning-hover) !important;
    color: #4b3b00 !important;
}

/* ---------- Modals ---------- */
.modal-content {
    border: 1px solid var(--er-border) !important;
    border-radius: var(--er-radius-lg) !important;
    box-shadow: 0 10px 38px rgba(16,24,40,0.10) !important;
}
.modal-header {
    border-bottom: 1px solid var(--er-border) !important;
}
.modal-footer {
    border-top: 1px solid var(--er-border) !important;
}

/* ---------- Standardize material-symbols icon sizing ---------- */
.material-symbols-outlined {
    font-size: 18px;
    vertical-align: middle;
    font-variation-settings: 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Shared data-card pattern (used by payment table & standings) ---------- */
.er-data-card {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    margin-top: 12px;
    /* overflow stays visible so dropdowns (columns/filter/row menus) aren't clipped
       at the card edge; corners are kept rounded by rounding the toolbar + pager instead. */
    overflow: visible;
}

.er-data-card .er-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f3f5;
    background: #ffffff;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.er-data-card .er-toolbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--er-text);
    letter-spacing: -0.01em;
    margin-right: auto;
}

.er-data-card .er-search {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.er-data-card .er-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.er-data-card .er-search input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--er-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.er-data-card .er-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 18px;
}

.er-data-card .er-tool-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.er-data-card .er-tool-group .eranest-filter-button,
.er-data-card .er-tool-btn {
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.er-data-card .er-tool-group .eranest-filter-button:hover,
.er-data-card .er-tool-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.er-data-card .er-tool-select {
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    min-width: 180px;
}

.er-data-card .er-spacer { flex: 1; }

.er-data-card .er-primary-action :is(button, .btn) {
    background: var(--er-accent) !important;
    border: 1px solid var(--er-accent) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.25) !important;
    transition: background 0.15s, box-shadow 0.15s;
}

.er-data-card .er-primary-action :is(button, .btn):hover {
    background: var(--er-accent-hover) !important;
    border-color: var(--er-accent-hover) !important;
}

.er-data-card .table-responsive { margin: 0 !important; }

.er-data-card table.table {
    margin: 0 !important;
    border: none !important;
    font-size: 14px;
    color: #1f2937;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.er-data-card table.table thead tr {
    background: #fafbfc;
}

.er-data-card table.table thead th {
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280 !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-top: none !important;
    background: #fafbfc !important;
    white-space: nowrap;
}

.er-data-card table.table tbody tr {
    background: #ffffff !important;
    transition: background 0.12s;
}

.er-data-card table.table tbody tr:nth-child(even) {
    background: #ffffff !important;
}

.er-data-card table.table tbody tr:hover {
    background: #f8fafc !important;
}

.er-data-card table.table tbody td {
    padding: 14px 16px !important;
    border: none !important;
    border-bottom: 1px solid #f1f3f5 !important;
    vertical-align: middle;
}

.er-data-card table.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Soften Bootstrap state cells so they fit the muted palette */
.er-data-card table.table tbody td.table-success {
    background-color: #ecfdf5 !important;
    color: #047857;
    font-variant-numeric: tabular-nums;
}
.er-data-card table.table tbody td.table-warning {
    background-color: #fffbeb !important;
    color: #b45309;
    font-variant-numeric: tabular-nums;
}
.er-data-card table.table tbody td.table-danger {
    background-color: #fef2f2 !important;
    color: #b91c1c;
    font-variant-numeric: tabular-nums;
}

.er-data-card .num-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.er-data-card .num-cell-header { text-align: right !important; }
.er-data-card .header-center { text-align: center !important; }

/* Emphasised total / summary row */
.er-data-card table.table tbody tr.er-total-row td {
    border-top: 2px solid var(--er-border-strong) !important;
    background: #fafbfc !important;
    color: var(--er-text);
    font-size: 14px;
}

.er-data-card .eranest-room-link {
    color: var(--er-accent);
    font-weight: 500;
    text-decoration: none;
}

.er-data-card .eranest-room-link:hover { text-decoration: underline; }

/* Status badges */
.er-data-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.er-data-card .status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.er-data-card .status-verified { background: #ecfdf5; color: #047857; }
.er-data-card .status-pending  { background: #fffbeb; color: #b45309; }
.er-data-card .status-vacant   { background: #f3f4f6; color: #6b7280; }
.er-data-card .status-danger   { background: #fef2f2; color: #b91c1c; }

/* Kebab menu */
.er-data-card .kebab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-size: 18px;
    line-height: 1;
}

.er-data-card .kebab-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.er-data-card .kebab-btn::after { display: none; }

.er-data-card .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    padding: 6px;
    min-width: 160px;
    font-size: 14px;
}

.er-data-card .dropdown-item {
    padding: 7px 10px;
    border-radius: 6px;
    color: #374151;
}

.er-data-card .dropdown-item:hover {
    background: #f5f6fa;
    color: #111827;
}

.er-data-card .dropdown-item.danger { color: #b91c1c; }
.er-data-card .dropdown-item.danger:hover { background: #fef2f2; color: #991b1b; }

/* Columns dropdown (checkbox list) */
.er-columns-dropdown .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    padding: 6px;
    min-width: 200px;
    font-size: 14px;
}

.er-column-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.er-column-item:hover {
    background: #f5f6fa;
    color: #111827;
}

.er-column-item input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
}

/* Filter: chips + popover */
.er-filter-area {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.er-filter-dropdown .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    padding: 12px;
    min-width: 240px;
}

.er-filter-popover {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.er-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.er-filter-field label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    width: auto;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.er-filter-field select,
.er-filter-field input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #111827;
    background: #ffffff;
}

.er-filter-field select:focus,
.er-filter-field input:focus {
    outline: none;
    border-color: var(--er-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.er-filter-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
    padding: 8px 12px;
    border: 1px solid var(--er-accent);
    border-radius: 8px;
    background: var(--er-accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.er-filter-add:hover {
    background: var(--er-accent-hover);
    border-color: var(--er-accent-hover);
}

.er-filter-add:disabled {
    background: #c7c9d4;
    border-color: #c7c9d4;
    cursor: not-allowed;
}

.er-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    border: 1px solid #e0e2ea;
    border-radius: 999px;
    background: #eef0ff;
    color: var(--er-accent-hover);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.er-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--er-accent);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.er-chip-remove:hover {
    background: var(--er-accent);
    color: #ffffff;
}

.er-chip-clear {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 6px;
    text-decoration: underline;
}

.er-chip-clear:hover { color: #374151; }

/* Pagination */
.er-data-card .pageinator {
    border-top: 1px solid #f1f3f5 !important;
    padding: 12px 18px !important;
    margin-top: 0 !important;
    background: #ffffff;
    font-size: 13px;
    color: #6b7280;
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
}

.er-data-card .page-go-first,
.er-data-card .page-go-last { display: none !important; }

.er-data-card .page-go-previous,
.er-data-card .page-go-next {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #ffffff !important;
    background-size: 0.75rem !important;
    transition: background-color 0.15s, border-color 0.15s;
}

.er-data-card .page-go-previous:hover,
.er-data-card .page-go-next:hover {
    background-color: #f9fafb !important;
    border-color: #d1d5db !important;
}

.er-data-card .page-pagination-text {
    font-size: 13px;
    color: #6b7280;
}

.er-data-card .sort-indicator { margin-left: 4px; }

/* Month picker trigger inside toolbar */
.er-data-card .er-month-btn {
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, border-color 0.15s;
}

.er-data-card .er-month-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Page H1 stops being centered; use eranest-page-title for branded titles */
h1, h2, h3 {
    text-align: left;
    letter-spacing: -0.01em;
}
h1 { font-size: 24px; font-weight: 600; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
/* Login/logout card keeps its headings centered */
.container h1, .container h2, .container h3 { text-align: center; }
/* =========================================================================
   Card grid — for entity lists with few columns (e.g. buildings).
   Lives inside .er-data-card in place of a table.
   ========================================================================= */
.er-data-card .er-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 18px;
}

.er-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius);
    box-shadow: var(--er-shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.er-card:hover { border-color: var(--er-border-strong); box-shadow: var(--er-shadow); }

.er-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--er-accent);
    text-decoration: none;
}
.er-card-title:hover { text-decoration: underline; }

.er-card-metric-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--er-text-muted);
    margin-bottom: 6px;
}

.er-progress-row { display: flex; align-items: center; gap: 10px; }

.er-progress-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--er-text);
    font-variant-numeric: tabular-nums;
    min-width: 38px;
}

.er-progress-track {
    flex: 1;
    height: 8px;
    background: #eef0f3;
    border-radius: 999px;
    overflow: hidden;
}

.er-progress-fill {
    height: 100%;
    background: var(--er-accent);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.er-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
}

.er-card-grid .er-empty {
    grid-column: 1 / -1;
    padding: 32px;
    text-align: center;
    color: var(--er-text-muted);
    font-size: 14px;
}

/* Card head: title + status badge on one row */
.er-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.er-card-title-static { font-size: 16px; font-weight: 600; color: var(--er-text); }

/* Prominent amount / headline figure */
.er-card-amount {
    font-size: 24px; font-weight: 600; color: var(--er-text);
    letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}

/* Stacked label/value detail rows */
.er-card-rows { display: flex; flex-direction: column; gap: 8px; }
.er-card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.er-card-row-label { color: var(--er-text-muted); font-weight: 500; }
.er-card-row-value { color: var(--er-text); text-align: right; word-break: break-word; }

/* ============================================================
   SETTINGS / CONFIG CARD PATTERN
   A single consolidated card for grouped form sections
   (Unit Details, Payment Configuration, Device Control …).
   Mark up locally with these class names — no per-page <style>.
   ============================================================ */
.er-config-card {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius-lg);
    box-shadow: var(--er-shadow-sm);
    margin-top: 12px;
    overflow: hidden;
}

/* Header: title + status badges */
.er-config-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--er-border);
}
.er-config-title { font-size: 20px; font-weight: 600; color: var(--er-text); letter-spacing: -0.01em; margin: 0; }
.er-config-subtitle { font-size: 13px; color: var(--er-text-muted); margin-top: 3px; }
.er-config-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Sections inside the card */
.er-config-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 26px;
    border-bottom: 1px solid var(--er-border);
}
.er-config-section:last-of-type { border-bottom: none; }
@media (max-width: 820px) { .er-config-section { grid-template-columns: 1fr; gap: 12px; padding: 22px; } }

.er-section-title { font-size: 14px; font-weight: 600; color: var(--er-text); margin: 0; }
.er-section-desc { font-size: 13px; color: var(--er-text-muted); margin-top: 4px; line-height: 1.5; }

/* Field rows with standardized label widths + larger inputs */
.er-field-grid { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.er-field { display: flex; flex-direction: column; gap: 6px; }
.er-field-label { font-size: 13px; font-weight: 500; color: var(--er-text); }
.er-field-hint { font-size: 12px; color: var(--er-text-subtle); }

/* Normalize all inputs inside a field to the same sleek control */
.er-field .er-control,
.er-field input:not([type=checkbox]):not([type=radio]),
.er-field select {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--er-text);
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.er-field .er-control:focus,
.er-field input:focus,
.er-field select:focus {
    outline: none;
    border-color: var(--er-accent);
    box-shadow: 0 0 0 3px var(--er-accent-soft);
}

/* Footer actions */
.er-config-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 26px;
    background: #fafbfc;
    border-top: 1px solid var(--er-border);
}
.er-config-footer .btn { padding: 9px 18px !important; font-size: 14px; font-weight: 600; }

/* Standalone status badges (usable outside .er-data-card, e.g. card headers) */
.er-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 500; line-height: 1.4;
}
.er-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.er-badge-active { background: #ecfdf5; color: #047857; }
.er-badge-warning { background: #fffbeb; color: #b45309; }
.er-badge-danger { background: #fef2f2; color: #b91c1c; }
.er-badge-neutral { background: #f3f4f6; color: #6b7280; }

/* ============================================================
   MONTH PICKER (SimpMonthPicker) — anchored dropdown popover
   Self-contained: trigger button + popover. Works anywhere
   (inside or outside .er-data-card).
   ============================================================ */
.er-monthpicker { position: relative; display: inline-flex; }

.er-mp-trigger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius-sm);
    background: var(--er-surface);
    color: var(--er-text);
    font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.er-mp-trigger:hover { background: #f9fafb; border-color: var(--er-border-strong); }
.er-mp-trigger.open { border-color: var(--er-accent); box-shadow: 0 0 0 3px var(--er-accent-soft); }
.er-mp-trigger .er-mp-cal { font-size: 16px; color: var(--er-text-muted); }
.er-mp-trigger .er-mp-caret { font-size: 18px; color: var(--er-text-subtle); transition: transform 0.15s; }
.er-mp-trigger.open .er-mp-caret { transform: rotate(180deg); }

.er-mp-backdrop { position: fixed; inset: 0; z-index: 1090; background: transparent; }

.er-mp-pop {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 1091;
    width: 264px; padding: 12px;
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.10);
}

.er-mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.er-mp-year { font-size: 14px; font-weight: 600; color: var(--er-text); font-variant-numeric: tabular-nums; }
.er-mp-nav {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0;
    border: 1px solid var(--er-border); border-radius: var(--er-radius-sm);
    background: var(--er-surface); color: var(--er-text-muted); cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.er-mp-nav:hover:not(:disabled) { background: #f9fafb; border-color: var(--er-border-strong); color: var(--er-text); }
.er-mp-nav:disabled { opacity: 0.4; cursor: not-allowed; }
.er-mp-nav .material-symbols-outlined { font-size: 18px; }

.er-mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.er-mp-cell {
    padding: 8px 0; border: 1px solid transparent; border-radius: var(--er-radius-sm);
    background: transparent; color: var(--er-text);
    font-size: 13px; font-weight: 500; cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.er-mp-cell:hover { background: #f3f4f6; }
.er-mp-cell.current { border-color: var(--er-border-strong); }
.er-mp-cell.selected { background: var(--er-accent); color: #ffffff; border-color: var(--er-accent); }
.er-mp-cell.selected:hover { background: #4338ca; }

/* ============================================================
   TOGGLE SWITCH (er-switch) — iOS-style on/off control.
   On = green, Off = amber (desaturated). Pair with .er-switch-cell
   to show a status label next to it.
   ============================================================ */
.er-switch-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.er-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 32px;
    height: 18px;
    flex: none;
    cursor: pointer;
    vertical-align: middle;
}
.er-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.er-switch .er-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #e0ac5c;
    transition: background 0.18s ease;
}
.er-switch .er-switch-track::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2);
    transition: transform 0.18s ease;
}
.er-switch input:checked + .er-switch-track {
    background: #5cb88a;
}
.er-switch input:checked + .er-switch-track::before {
    transform: translateX(14px);
}
.er-switch input:focus-visible + .er-switch-track {
    box-shadow: 0 0 0 3px var(--er-accent-soft);
}
.er-switch input:disabled + .er-switch-track {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status label shown beside the switch */
.er-switch-status {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}
.er-switch-status.is-verified { background: #e8f5ee; color: #3d8a64; }
.er-switch-status.is-pending { background: #fbf2e3; color: #a9772f; }
