@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.mnccjmrpdk.bundle.scp.css';
@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';

/* /Components/Admin/EditLog.razor.rz.scp.css */
/* Edit Log: a day-by-day timeline. Bootstrap's own colour variables, so light and dark mode both work. */

.edit-log-person[b-9v7tz4ole1] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .85rem;
    border-radius: .5rem;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
}

.edit-log-filters[b-9v7tz4ole1] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.edit-log-filter[b-9v7tz4ole1] {
    flex: 0 1 12rem;
    min-width: 9rem;
}

.edit-log-search[b-9v7tz4ole1] {
    flex: 1 1 16rem;
    max-width: 24rem;
}

.edit-log-clear[b-9v7tz4ole1] {
    flex: 0 0 auto;
    min-width: 0;
    padding-bottom: .15rem;
}

.edit-log-empty[b-9v7tz4ole1] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color);
}

.edit-log-empty .bi[b-9v7tz4ole1] {
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
}

.edit-log-day + .edit-log-day[b-9v7tz4ole1] {
    margin-top: 1.5rem;
}

.edit-log-day-title[b-9v7tz4ole1] {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 0 .5rem;
    padding: .35rem 0;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg);
}

.edit-log-list[b-9v7tz4ole1] {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    overflow: hidden;
}

.edit-log-item[b-9v7tz4ole1] {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: .75rem 1rem;
    background: var(--bs-body-bg);
}

.edit-log-item + .edit-log-item[b-9v7tz4ole1] {
    border-top: 1px solid var(--bs-border-color);
}

.edit-log-item:hover[b-9v7tz4ole1] {
    background: var(--bs-tertiary-bg);
}

.edit-log-time[b-9v7tz4ole1] {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.edit-log-by[b-9v7tz4ole1] {
    font-size: .85rem;
    color: var(--bs-secondary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edit-log-heading[b-9v7tz4ole1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .5rem;
}

.edit-log-sep[b-9v7tz4ole1] {
    color: var(--bs-secondary-color);
}

.edit-log-person-link[b-9v7tz4ole1] {
    font-weight: 600;
    text-decoration: none;
}

.edit-log-person-link:hover[b-9v7tz4ole1] {
    text-decoration: underline;
}

.edit-log-open[b-9v7tz4ole1] {
    color: var(--bs-secondary-color);
    font-size: .8rem;
    padding: .25rem;
    line-height: 1;
}

.edit-log-open:hover[b-9v7tz4ole1] {
    color: var(--bs-link-color);
}

.edit-log-badge[b-9v7tz4ole1] {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

.edit-log-badge.is-changed[b-9v7tz4ole1] {
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
}

.edit-log-badge.is-added[b-9v7tz4ole1] {
    color: var(--bs-success-text-emphasis);
    background: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
}

.edit-log-badge.is-warning[b-9v7tz4ole1] {
    color: var(--bs-warning-text-emphasis);
    background: var(--bs-warning-bg-subtle);
    border-color: var(--bs-warning-border-subtle);
}

.edit-log-badge.is-deleted[b-9v7tz4ole1] {
    color: var(--bs-danger-text-emphasis);
    background: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
}

.edit-log-fields[b-9v7tz4ole1] {
    margin: .5rem 0 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .2rem 1rem;
    font-size: .9rem;
}

.edit-log-field[b-9v7tz4ole1] {
    display: contents;
}

.edit-log-fields dt[b-9v7tz4ole1] {
    font-weight: 400;
    color: var(--bs-secondary-color);
}

.edit-log-fields dd[b-9v7tz4ole1] {
    margin: 0;
    overflow-wrap: anywhere;
}

.edit-log-old[b-9v7tz4ole1] {
    color: var(--bs-secondary-color);
    text-decoration: line-through;
    text-decoration-color: color-mix(in srgb, var(--bs-danger) 60%, transparent);
}

.edit-log-arrow[b-9v7tz4ole1] {
    margin: 0 .35rem;
    color: var(--bs-secondary-color);
    font-size: .8rem;
}

.edit-log-new[b-9v7tz4ole1] {
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .edit-log-item[b-9v7tz4ole1] {
        grid-template-columns: minmax(0, 1fr);
        gap: .35rem;
    }

    .edit-log-when[b-9v7tz4ole1] {
        display: flex;
        gap: .5rem;
        align-items: baseline;
    }

    .edit-log-fields[b-9v7tz4ole1] {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .edit-log-fields dd[b-9v7tz4ole1] {
        margin-bottom: .35rem;
    }

    .edit-log-filter[b-9v7tz4ole1],
    .edit-log-search[b-9v7tz4ole1] {
        flex: 1 1 100%;
        max-width: none;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-ECEDataManager] {
    position: relative;
    display: flex;
    flex-direction: column;
}

.app-shell[b-ECEDataManager] {
    min-width: 0;
}

.app-main[b-ECEDataManager] {
    /* blazor.bootstrap.css sets `main { height: 100vh }`; under the navbar that makes the page
       100vh + navbar tall and adds a page scrollbar next to the grid's own. Let the flex column size it. */
    height: auto;
    flex: 1 1 auto;
    width: 100%;
    max-width: 2400px;
    min-width: 0;
    margin-inline: auto;
    padding: clamp(0.5rem, 1vw, 1rem);
}

.sidebar[b-ECEDataManager] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-ECEDataManager] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row[b-ECEDataManager]  a, .top-row[b-ECEDataManager]  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row[b-ECEDataManager]  a:hover, .top-row[b-ECEDataManager]  .btn-link:hover {
    text-decoration: underline;
}

.top-row[b-ECEDataManager]  a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
    .top-row[b-ECEDataManager] {
        justify-content: space-between;
    }

        .top-row[b-ECEDataManager]  a, .top-row[b-ECEDataManager]  .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page[b-ECEDataManager] {
        flex-direction: row;
    }

    .sidebar[b-ECEDataManager] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-ECEDataManager] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-ECEDataManager]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row[b-ECEDataManager], article[b-ECEDataManager] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ECEDataManager] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

    .navbar-toggler:checked[b-ECEDataManager] {
        background-color: rgba(255, 255, 255, 0.5);
    }

.top-row[b-ECEDataManager] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-ECEDataManager] {
    font-size: 1.1rem;
}

.bi-house-door-fill-nav-menu[b-ECEDataManager] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-ECEDataManager] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-ECEDataManager] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu[b-ECEDataManager] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu[b-ECEDataManager] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu[b-ECEDataManager] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-ECEDataManager] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu[b-ECEDataManager] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

.nav-scrollable .nav-item[b-ECEDataManager] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-scrollable .nav-item:first-of-type[b-ECEDataManager] {
    padding-top: 1rem;
}

.nav-scrollable .nav-item:last-of-type[b-ECEDataManager] {
    padding-bottom: 1rem;
}

.nav-item[b-ECEDataManager]  .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.nav-item[b-ECEDataManager]  .nav-menu-button {
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    cursor: pointer;
}

/* Main grid link: stretch and take all remaining space */
.nav-item[b-ECEDataManager]  .nav-grid-main {
    flex: 1 1 auto;
    width: auto; /* let flex control width */
}

/* Plus icon link: hug the right side, keep full-height click target */
.nav-item[b-ECEDataManager]  .nav-grid-plus {
    flex: 0 0 auto;
    width: auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item[b-ECEDataManager]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-ECEDataManager]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-ECEDataManager] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-ECEDataManager] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-ECEDataManager] {
        display: none;
    }

    .nav-scrollable[b-ECEDataManager] {
        /* Never collapse the sidebar for wide screens */
        display: block;
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .bi-house-door-fill-nav-menu[b-ECEDataManager] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .bi-plus-square-fill-nav-menu[b-ECEDataManager] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .bi-list-nested-nav-menu[b-ECEDataManager] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .bi-lock-nav-menu[b-ECEDataManager] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .bi-person-nav-menu[b-ECEDataManager] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .bi-person-badge-nav-menu[b-ECEDataManager] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .bi-person-fill-nav-menu[b-ECEDataManager] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .bi-arrow-bar-left-nav-menu[b-ECEDataManager] {
    background: var(--form-surface);
}
/* ==== End dark mode ==== */
/* /Components/Pages/Dashboard.razor.rz.scp.css */
.dashboard-shell[b-icslyd7weu] {
    --ece-blue: hsl(195, 100%, 18%);
    --ece-blue-35: hsl(195, 100%, 83%);
    --ece-blue-25: hsl(195, 100%, 93%);
    --ece-blue-20: hsl(195, 100%, 98%);
    --ece-green: hsl(81, 50%, 55%);
    --ece-green-60: hsl(81, 50%, 95%);
    --ece-gray: hsl(0, 1%, 44%);
    --ece-gray-60: hsl(0, 1%, 84%);
    --ece-gray-50: hsl(0, 1%, 94%);
    --ece-gray-45: hsl(0, 1%, 99%);
    padding: 1rem 0.5in;
}

.dashboard-hero[b-icslyd7weu] {
    margin-bottom: 0.75rem;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    background: var(--ece-blue);
    color: #fff;
}

.dashboard-hero-main[b-icslyd7weu] {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.dashboard-hero-title[b-icslyd7weu] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.85rem;
}

.dashboard-title[b-icslyd7weu] {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-refresh[b-icslyd7weu] {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.dashboard-hero-actions[b-icslyd7weu] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.dashboard-action-btn[b-icslyd7weu] {
    font-weight: 600;
}

.dashboard-metrics[b-icslyd7weu] {
    margin-bottom: 0.75rem;
}

.dashboard-metrics > .row[b-icslyd7weu] {
    --bs-gutter-x: 0.6rem;
    --bs-gutter-y: 0.6rem;
}

/* Compact card: label on top, value and its note on one line, link underneath. */
.dashboard-metric-card[b-icslyd7weu] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-auto-rows: min-content;
    align-items: baseline;
    column-gap: 0.5rem;
    row-gap: 0.15rem;
    height: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    background: #fff;
    border: 1px solid var(--ece-gray-60);
    box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.05);
}

.dashboard-metric-card > .dashboard-metric-label[b-icslyd7weu],
.dashboard-metric-card > .dashboard-metric-link[b-icslyd7weu] {
    grid-column: 1 / -1;
}

.dashboard-metric-card.is-alert[b-icslyd7weu] {
    border-color: var(--ece-blue-35);
    background: var(--ece-blue-20);
}

.dashboard-metric-label[b-icslyd7weu] {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--ece-gray);
}

.dashboard-metric-value[b-icslyd7weu] {
    font-size: 1.45rem;
    line-height: 1;
    color: var(--ece-blue);
}

.dashboard-metric-copy[b-icslyd7weu] {
    color: var(--ece-gray);
    font-size: 0.78rem;
    line-height: 1.25;
}

.dashboard-metric-link[b-icslyd7weu] {
    margin-top: 0.1rem;
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ece-blue);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: underline;
}

.dashboard-metric-inline-link[b-icslyd7weu] {
    color: inherit;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.dashboard-metric-inline-link:hover[b-icslyd7weu] {
    color: var(--ece-blue);
    text-decoration-style: solid;
}

.dashboard-card[b-icslyd7weu] {
    margin-bottom: 1.25rem;
    border: 1px solid var(--ece-gray-60);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dashboard-card-body[b-icslyd7weu] {
    padding: 1.25rem;
}

/* No extra gap under the last card; the page padding is enough below the scrolled-to grid. */
.dashboard-shell > .dashboard-card:last-child[b-icslyd7weu] {
    margin-bottom: 0;
}

/* One screen: the grid fills to the bottom of the window (gridViewport.js) and sets the row's height;
   the chart column takes that same height and scrolls on its own if its charts don't fit. */
.dashboard-focus-layout[b-icslyd7weu] {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(22rem, 0.95fr);
    gap: 1rem;
    align-items: stretch;
}

.dashboard-focus-primary[b-icslyd7weu],
.dashboard-focus-aside[b-icslyd7weu] {
    min-width: 0;
}

.dashboard-focus-aside[b-icslyd7weu] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    contain: size;          /* doesn't make the row taller than the grid... */
    overflow-y: auto;       /* ...and scrolls instead when the window is short */
    overscroll-behavior: contain;
    padding-right: 2px;
}

.dashboard-section-header[b-icslyd7weu] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0;
}

.dashboard-section-title[b-icslyd7weu] {
    margin: 0;
    color: var(--ece-blue);
    font-size: 1.15rem;
    font-weight: 700;
}

.dashboard-section-copy[b-icslyd7weu] {
    margin: 0.35rem 0 0;
    color: var(--ece-gray);
    font-size: 0.95rem;
}

.dashboard-view-button[b-icslyd7weu] {
    min-width: 12rem;
    min-height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: var(--ece-blue);
    color: #fff;
    font-weight: 600;
}

.dashboard-view-button:hover[b-icslyd7weu],
.dashboard-view-button:focus[b-icslyd7weu],
.dashboard-view-button:active[b-icslyd7weu] {
    border-color: rgba(255, 255, 255, 0.58);
    background: hsl(195, 100%, 22%);
    color: #fff;
}

.dashboard-view-menu[b-icslyd7weu] {
    border: 1px solid var(--ece-gray-60);
    border-radius: 0.9rem;
    box-shadow: 0 0.75rem 1.4rem rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.dashboard-focus-tabs[b-icslyd7weu] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-focus-tab[b-icslyd7weu] {
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--ece-gray-60);
    border-radius: 999px;
    background: #fff;
    color: var(--ece-blue);
    font-weight: 600;
}

.dashboard-focus-tab.is-active[b-icslyd7weu] {
    background: var(--ece-blue);
    border-color: var(--ece-blue);
    color: #fff;
}

.dashboard-grid-stack[b-icslyd7weu] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-list-header[b-icslyd7weu] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--ece-blue);
    color: #fff;
}

.dashboard-list-header h3[b-icslyd7weu] {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-list-header span[b-icslyd7weu] {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dashboard-chart-card[b-icslyd7weu],
.dashboard-list-card[b-icslyd7weu] {
    height: 100%;
    border: 1px solid var(--ece-gray-60);
    border-radius: 0.9rem;
    background: var(--ece-gray-45);
    overflow: visible;
}

.dashboard-chart-card[b-icslyd7weu] {
    padding: 0.6rem 0.75rem;
}

.dashboard-focus-aside .dashboard-chart-card[b-icslyd7weu] {
    flex: 0 0 auto;
    height: auto;
}

.dashboard-pie-chart-card[b-icslyd7weu] {
    padding-bottom: 0.9rem;
}

.dashboard-spinner[b-icslyd7weu] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
}

.dashboard-list[b-icslyd7weu] {
    display: flex;
    flex-direction: column;
    max-height: 27rem;
    overflow-y: auto;
}

.dashboard-list-item[b-icslyd7weu] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-top: 1px solid var(--ece-gray-60);
}

.dashboard-list-item:first-child[b-icslyd7weu] {
    border-top: 0;
}

.dashboard-list-title[b-icslyd7weu] {
    font-weight: 700;
    color: var(--ece-blue);
}

.dashboard-list-subtitle[b-icslyd7weu] {
    margin-top: 0.2rem;
    color: var(--ece-gray);
    font-size: 0.9rem;
}

.dashboard-status-badge[b-icslyd7weu] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--ece-gray-50);
    color: var(--ece-blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.dashboard-status-badge.is-danger[b-icslyd7weu] {
    background: rgba(220, 53, 69, 0.12);
    color: #b42318;
}

.dashboard-status-badge.is-warning[b-icslyd7weu] {
    background: rgba(255, 193, 7, 0.18);
    color: #7a5300;
}

.dashboard-status-badge.is-success[b-icslyd7weu] {
    background: var(--ece-green-60);
    color: var(--ece-blue);
}

.dashboard-empty-state[b-icslyd7weu] {
    padding: 1rem;
    color: var(--ece-gray);
}

@media (max-width: 991.98px) {
    .dashboard-hero-main[b-icslyd7weu],
    .dashboard-section-header[b-icslyd7weu] {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-hero-actions[b-icslyd7weu] {
        justify-content: flex-start;
    }

    .dashboard-focus-layout[b-icslyd7weu] {
        grid-template-columns: 1fr;
    }

    /* Stacked under the grid: the charts take their natural height again. */
    .dashboard-focus-aside[b-icslyd7weu] {
        contain: none;
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    .dashboard-shell[b-icslyd7weu] {
        padding: 0.75rem;
    }

    /* Phones: skip the summary cards so the grid is reachable without scrolling.
       The view dropdown in the focus section still switches between the tabs the cards linked to. */
    .dashboard-metrics[b-icslyd7weu] {
        display: none;
    }

    .dashboard-hero[b-icslyd7weu],
    .dashboard-card-body[b-icslyd7weu],
    .dashboard-section-header[b-icslyd7weu] {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dashboard-list-item[b-icslyd7weu] {
        flex-direction: column;
    }

    .dashboard-status-badge[b-icslyd7weu] {
        min-width: auto;
    }
}

/* Short desktop windows (1366×768 laptops, 1080p at 125% scaling): trim the space above the grid so the
   dashboard still fits on one screen. Cards keep their number and link; the explanatory lines go. */
@media (min-width: 992px) and (max-height: 900px) {
    .dashboard-hero[b-icslyd7weu] {
        margin-bottom: 0.5rem;
        padding: 0.35rem 1rem;
    }

    .dashboard-metrics[b-icslyd7weu] {
        margin-bottom: 0.5rem;
    }

    .dashboard-metric-card[b-icslyd7weu] {
        padding: 0.35rem 0.65rem;
    }

    .dashboard-metric-copy[b-icslyd7weu] {
        display: none;
    }

    .dashboard-section-header[b-icslyd7weu] {
        padding: 0.6rem 1rem 0;
        align-items: center;
    }

    .dashboard-section-copy[b-icslyd7weu] {
        display: none;
    }

    .dashboard-card-body[b-icslyd7weu] {
        padding: 0.6rem 1rem 0.75rem;
    }

    /* All six summary cards in one row instead of wrapping to two. */
    .dashboard-metrics > .row > *[b-icslyd7weu] {
        flex: 1 0 0%;
        width: auto;
        max-width: none;
    }

    .dashboard-metric-label[b-icslyd7weu] {
        font-size: 0.62rem;
    }

    /* Filter pills on one line. */
    .dashboard-focus-primary[b-icslyd7weu]  .action-grid-controls {
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .dashboard-focus-primary[b-icslyd7weu]  .action-grid-filter-pill {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }

    /* The grid's "N records / Rows / Active only" chips repeat its footer ("Showing 1-10 of N"). */
    .dashboard-focus-primary[b-icslyd7weu]  .default-grid-header-meta,
    .dashboard-focus-primary[b-icslyd7weu]  .mc-tab-help {
        display: none;
    }
}

/* Phones: every line above the grid costs a row of data, so the header bars stay one line each. */
@media (max-width: 575.98px) {
    .dashboard-hero[b-icslyd7weu] {
        padding: 0.4rem 0.65rem;
    }

    .dashboard-hero-main[b-icslyd7weu],
    .dashboard-section-header[b-icslyd7weu] {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .dashboard-title[b-icslyd7weu] {
        font-size: 1.1rem;
    }

    .dashboard-refresh[b-icslyd7weu],
    .dashboard-section-copy[b-icslyd7weu] {
        display: none;
    }

    .dashboard-hero-actions[b-icslyd7weu] {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .dashboard-action-btn[b-icslyd7weu] {
        padding: 0.2rem 0.5rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .dashboard-section-header[b-icslyd7weu] {
        padding: 0.5rem 0.75rem 0;
    }

    .dashboard-section-title[b-icslyd7weu] {
        font-size: 1rem;
    }

    .dashboard-view-button[b-icslyd7weu] {
        min-width: 0;
        min-height: 2rem;
        padding: 0.2rem 0.7rem;
        font-size: 0.8rem;
    }

    .dashboard-card-body[b-icslyd7weu] {
        padding: 0.5rem 0.75rem 0.75rem;
    }
}

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .dashboard-shell[b-icslyd7weu] {
    --ece-blue: var(--win-accent);
    --ece-blue-35: var(--win-edge-strong);
    --ece-blue-25: rgba(96, 205, 255, 0.14);
    --ece-blue-20: rgba(96, 205, 255, 0.07);
    --ece-green: var(--win-control);
    --ece-green-60: rgba(108, 203, 95, 0.12);
    --ece-gray: var(--win-text-2);
    --ece-gray-60: var(--win-edge-strong);
    --ece-gray-50: var(--win-subtle);
    --ece-gray-45: var(--win-card);
}

:root[data-bs-theme="dark"] .dashboard-metric-card[b-icslyd7weu] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .dashboard-card[b-icslyd7weu] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .dashboard-view-button:hover[b-icslyd7weu],
:root[data-bs-theme="dark"] .dashboard-view-button:focus[b-icslyd7weu],
:root[data-bs-theme="dark"] .dashboard-view-button:active[b-icslyd7weu] {
    border-color: var(--form-line);
}

:root[data-bs-theme="dark"] .dashboard-focus-tab[b-icslyd7weu] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .dashboard-status-badge.is-danger[b-icslyd7weu] {
    color: var(--form-muted);
}

:root[data-bs-theme="dark"] .dashboard-status-badge.is-warning[b-icslyd7weu] {
    color: var(--form-muted);
}
/* ==== End dark mode ==== */
/* /Components/Pages/Messaging/MessageCenter.razor.rz.scp.css */
/* Tabs live in the grid's dark header (DefaultGrid HeaderSubContent), styled like the Action Grid filter pills. */
.message-center[b-oa3kflgrnr]  .mc-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
}

.message-center[b-oa3kflgrnr]  .mc-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.message-center[b-oa3kflgrnr]  .mc-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.message-center[b-oa3kflgrnr]  .mc-tab:hover {
    background: rgba(255, 255, 255, 0.12);
}

.message-center[b-oa3kflgrnr]  .mc-tab.is-active {
    background: #fff;
    border-color: #fff;
    color: hsl(195, 100%, 18%);
}

.message-center[b-oa3kflgrnr]  .mc-tab-count {
    min-width: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    line-height: 1.25rem;
    text-align: center;
}

.message-center[b-oa3kflgrnr]  .mc-tab.is-active .mc-tab-count {
    background: hsl(195, 100%, 92%);
}

.message-center[b-oa3kflgrnr]  .mc-tab-count.is-urgent,
.message-center[b-oa3kflgrnr]  .mc-tab.is-active .mc-tab-count.is-urgent {
    background: var(--bs-danger);
    color: #fff;
}

.message-center[b-oa3kflgrnr]  .mc-tab-help {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
}

/* Cells */
.message-center[b-oa3kflgrnr]  .mc-person {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 12rem;
}

.message-center[b-oa3kflgrnr]  .mc-person > .bi {
    color: var(--bs-secondary-color);
    margin-top: 0.1rem;
}

.message-center[b-oa3kflgrnr]  .mc-person-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    min-width: 0;
}

.message-center[b-oa3kflgrnr]  .mc-name {
    font-weight: 600;
}

.message-center[b-oa3kflgrnr]  .mc-relation {
    flex-basis: 100%;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 22rem;
}

.message-center[b-oa3kflgrnr]  .mc-latest {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.message-center[b-oa3kflgrnr]  .mc-latest-meta {
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
}

.message-center[b-oa3kflgrnr]  .mc-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
}

.message-center[b-oa3kflgrnr]  .mc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    max-width: 26rem;
}

.message-center[b-oa3kflgrnr]  .mc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.message-center[b-oa3kflgrnr]  .mc-chip.is-danger { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); border-color: var(--bs-danger-border-subtle); }
.message-center[b-oa3kflgrnr]  .mc-chip.is-warning { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); border-color: var(--bs-warning-border-subtle); white-space: normal; }
.message-center[b-oa3kflgrnr]  .mc-chip.is-info { background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); border-color: var(--bs-info-border-subtle); }
.message-center[b-oa3kflgrnr]  .mc-chip.is-muted { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); border-color: var(--bs-border-color); white-space: normal; }
.message-center[b-oa3kflgrnr]  .mc-chip.is-outline { background: #fff; color: hsl(195, 100%, 18%); border-color: hsl(195, 100%, 83%); }

.message-center[b-oa3kflgrnr]  .mc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.3rem;
    white-space: nowrap;
}

.message-center[b-oa3kflgrnr]  tr.mc-row-overdue > td:first-child {
    box-shadow: inset 3px 0 0 var(--bs-danger);
}

/* Phones: smaller tabs; the explanation line is on each tab's tooltip. */
@media (max-width: 575.98px) {
    .message-center[b-oa3kflgrnr]  .mc-tab {
        padding: 0.1rem 0.5rem;
        font-size: 0.74rem;
    }

    .message-center[b-oa3kflgrnr]  .mc-tab-help {
        display: none;
    }

    .message-center[b-oa3kflgrnr]  .mc-person {
        min-width: 0;
    }

    .message-center[b-oa3kflgrnr]  .mc-chips {
        max-width: none;
    }

    .message-center[b-oa3kflgrnr]  .mc-chip {
        white-space: normal;
    }
}

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .message-center[b-oa3kflgrnr]  .mc-tab {
    border: 1px solid var(--form-line);
}

:root[data-bs-theme="dark"] .message-center[b-oa3kflgrnr]  .mc-tab.is-active {
    background: var(--form-surface);
    border-color: var(--form-line);
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .message-center[b-oa3kflgrnr]  .mc-tab.is-active .mc-tab-count {
    background: var(--form-subtle);
}

:root[data-bs-theme="dark"] .message-center[b-oa3kflgrnr]  .mc-chip.is-outline {
    background: var(--form-surface);
    color: var(--form-ink);
    border-color: var(--form-line);
}
/* ==== End dark mode ==== */
/* /Components/Pages/Messaging/SendEmailParent.razor.rz.scp.css */
.parent-send-submit:disabled[b-hcitwfwmuq] {
    background-color: #7d7d7d !important;
    border-color: #7d7d7d !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: not-allowed;
}
/* /Components/Pages/Messaging/SendMessageParent.razor.rz.scp.css */
.parent-send-submit:disabled[b-pmlb9j0h43] {
    background-color: #7d7d7d !important;
    border-color: #7d7d7d !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: not-allowed;
}
/* /Components/Pages/StudentFile/ParentGuardianForm.razor.rz.scp.css */
/* Brand colour names used below (dark-mode values are in app.css). */
.app-form-shell[b-a8f0qi03y7] {
    --ece-blue: hsl(195, 100%, 18%);
    --ece-blue-90: hsl(195, 100%, 28%);
    --ece-blue-35: hsl(195, 100%, 83%);
    --ece-blue-25: hsl(195, 100%, 93%);
    --ece-blue-20: hsl(195, 100%, 98%);
    --ece-green: hsl(81, 50%, 55%);
    --ece-green-60: hsl(81, 50%, 95%);
    --ece-gray: hsl(0, 1%, 44%);
    --ece-gray-60: hsl(0, 1%, 84%);
    --ece-gray-50: hsl(0, 1%, 94%);
    --ece-gray-45: hsl(0, 1%, 99%);
}
.student-preview-panel[b-a8f0qi03y7] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 0.625rem;
    background-color: var(--form-subtle);
    border: 1px solid var(--form-line);
}

.student-preview-panel-compact[b-a8f0qi03y7] {
    justify-content: center;
}

.student-preview-label[b-a8f0qi03y7] {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ece-blue);
}

.student-preview-value[b-a8f0qi03y7] {
    font-size: 1.15rem;
    color: var(--ece-blue);
}

.student-preview-hint[b-a8f0qi03y7] {
    color: var(--ece-gray);
    font-size: 0.9rem;
}

.student-status-toggle[b-a8f0qi03y7] {
    min-height: 2.5rem;
    padding-top: 0.2rem;
}

.student-linked-table[b-a8f0qi03y7] {
    margin-bottom: 0;
}

.student-linked-table th[b-a8f0qi03y7] {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ece-blue);
    background: var(--ece-blue-20);
    border-bottom-color: var(--ece-blue-35);
}

.student-linked-table th[b-a8f0qi03y7],
.student-linked-table td[b-a8f0qi03y7] {
    vertical-align: middle;
}

.student-empty-state[b-a8f0qi03y7] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1rem;
    border-radius: 0.9rem;
    background: var(--ece-gray-45);
    border: 1px dashed var(--ece-gray-60);
    color: var(--ece-gray);
}

.parent-status-badge[b-a8f0qi03y7] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.parent-status-badge.is-active[b-a8f0qi03y7] {
    background: var(--ece-green-60);
    color: var(--ece-blue);
    border: 1px solid var(--ece-green);
}

.parent-status-badge.is-inactive[b-a8f0qi03y7] {
    background: var(--ece-gray-50);
    color: var(--ece-blue);
    border: 1px solid var(--ece-gray-60);
}

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .app-form-shell[b-a8f0qi03y7] {
    --ece-blue: var(--win-accent);
    --ece-blue-90: var(--win-accent-hover);
    --ece-blue-35: var(--win-edge-strong);
    --ece-blue-25: rgba(96, 205, 255, 0.14);
    --ece-blue-20: rgba(96, 205, 255, 0.07);
    --ece-green: var(--win-control);
    --ece-green-60: rgba(108, 203, 95, 0.12);
    --ece-gray: var(--win-text-2);
    --ece-gray-60: var(--win-edge-strong);
    --ece-gray-50: var(--win-subtle);
    --ece-gray-45: var(--win-card);
}
/* ==== End dark mode ==== */
/* /Components/Pages/StudentFile/RosterBoard.razor.rz.scp.css */
/* Roster by Day. Cards match the form sections / Texts card (grey header bar); the toolbar and the board's
   header row match the dark grid headers. */

.roster[b-1l3ejur1re] {
    --rb-blue: hsl(195, 100%, 18%);
    --rb-blue-soft: hsl(195, 100%, 94%);
    --rb-plan: #2f5fa8;
    --rb-plan-soft: #e3ecfa;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

/* ---------- Toolbar ---------- */
.rb-toolbar[b-1l3ejur1re] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    padding: 0.65rem 1rem;
    border-radius: var(--bs-border-radius);
    background: var(--rb-blue);
    color: #fff;
    box-shadow: var(--bs-box-shadow-sm);
}

.rb-toolbar-title[b-1l3ejur1re] { display: flex; align-items: center; gap: 0.6rem; }

.rb-toolbar-icon[b-1l3ejur1re] {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
}

.rb-title[b-1l3ejur1re] { margin: 0; font-size: 1.1rem; font-weight: 700; }
.rb-subtitle[b-1l3ejur1re] { font-size: 0.78rem; opacity: 0.85; }

.rb-toolbar-controls[b-1l3ejur1re] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-left: auto;
}

.rb-search[b-1l3ejur1re] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    color: var(--bs-secondary-color);
}

.rb-search input[b-1l3ejur1re] {
    width: 10rem;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.875rem;
    color: var(--bs-body-color);
}

.rb-seg[b-1l3ejur1re] {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    overflow: hidden;
}

.rb-seg button[b-1l3ejur1re] {
    padding: 0.2rem 0.7rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.rb-seg button + button[b-1l3ejur1re] { border-left: 1px solid rgba(255, 255, 255, 0.35); }
.rb-seg button.is-active[b-1l3ejur1re] { background: #fff; color: var(--rb-blue); }
.rb-weeknote[b-1l3ejur1re] { font-size: 0.78rem; opacity: 0.9; }

.rb-asof[b-1l3ejur1re] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.rb-asof input[b-1l3ejur1re] {
    padding: 0.15rem 0.4rem;
    border: 0;
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.8rem;
}

.rb-link[b-1l3ejur1re] {
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    text-decoration: underline;
    font-size: 0.78rem;
}

.rb-toolbar-buttons[b-1l3ejur1re] { display: inline-flex; gap: 0.35rem; }

.rb-tool[b-1l3ejur1re] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.rb-tool:hover:not(:disabled)[b-1l3ejur1re] { background: rgba(255, 255, 255, 0.14); }

.rb-help[b-1l3ejur1re] { flex-basis: 100%; font-size: 0.78rem; opacity: 0.88; }
.rb-help > .bi[b-1l3ejur1re] { margin-right: 0.3rem; }

/* ---------- Alerts ---------- */
.rb-alert[b-1l3ejur1re] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid;
    border-radius: var(--bs-border-radius);
    font-size: 0.875rem;
}

.rb-alert.is-danger[b-1l3ejur1re] { background: var(--bs-danger-bg-subtle); border-color: var(--bs-danger-border-subtle); color: var(--bs-danger-text-emphasis); }
.rb-alert.is-info[b-1l3ejur1re] { background: var(--rb-plan-soft); border-color: #b9cdee; color: var(--rb-plan); }

.rb-alert-close[b-1l3ejur1re],
.rb-alert-action[b-1l3ejur1re] {
    margin-left: auto;
    border: 1px solid currentColor;
    border-radius: var(--bs-border-radius-sm);
    background: transparent;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    white-space: nowrap;
}

.rb-alert-close[b-1l3ejur1re] { border: 0; }

/* ---------- Layout ---------- */
.roster-shell[b-1l3ejur1re] {
    height: var(--roster-viewport-height, calc(100dvh - 12rem));
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    /* One row exactly as tall as the shell: the columns scroll inside it instead of growing the page. */
    grid-template-rows: minmax(0, 1fr);
    gap: 0.75rem;
}

.roster-left[b-1l3ejur1re] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    min-width: 0;
}

.roster-right[b-1l3ejur1re] {
    min-height: 0;
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
}

/* ---------- Cards ---------- */
.rb-card[b-1l3ejur1re] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
    overflow: hidden;
}

.rb-card-header[b-1l3ejur1re] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    padding: 0.5rem 0.85rem;
    background: rgba(var(--bs-body-color-rgb), 0.03);
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.rb-card-title[b-1l3ejur1re] { font-weight: 700; }
.rb-muted[b-1l3ejur1re] { color: var(--bs-secondary-color); font-size: 0.8rem; }
.rb-card-body[b-1l3ejur1re] { padding: 0.45rem; }
.rb-scroll[b-1l3ejur1re] { flex: 1 1 auto; min-height: 0; overflow: auto; }
.rb-tray[b-1l3ejur1re] { flex: 3 1 0; }
.rb-changes[b-1l3ejur1re] { flex: 2 1 0; }

.rb-tray .rb-card-body[b-1l3ejur1re] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rb-tray-hint[b-1l3ejur1re] { font-size: 0.75rem; margin-bottom: 0.15rem; }

/* ---------- The board ---------- */
.rb-board[b-1l3ejur1re] {
    width: 100%;
    min-width: calc(10rem + var(--rb-day-count, 5) * 8.5rem);
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.rb-board thead th[b-1l3ejur1re] {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.45rem 0.5rem;
    background: var(--rb-blue);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
}

.rb-board thead th.rb-board-corner[b-1l3ejur1re] { width: 10rem; }

.rb-board th[scope="row"][b-1l3ejur1re] {
    width: 10rem;
    padding: 0.45rem 0.6rem;
    border-right: 1px solid var(--bs-border-color-translucent);
    text-align: left;
    vertical-align: top;
    background: #fff;
}

.rb-room-row > *[b-1l3ejur1re] { border-top: 2px solid var(--bs-border-color); }
.rb-room:first-of-type .rb-room-row > *[b-1l3ejur1re] { border-top: 0; }

.rb-room-name[b-1l3ejur1re] { display: block; font-weight: 700; }

.rb-room-meta[b-1l3ejur1re] {
    display: flex;
    flex-direction: column;
    color: var(--bs-secondary-color);
    font-size: 0.74rem;
    font-weight: 400;
}

.rb-cell[b-1l3ejur1re] {
    padding: 0.3rem;
    vertical-align: top;
    border-left: 1px solid var(--bs-border-color-translucent);
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.rb-count[b-1l3ejur1re] {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rb-count.is-full[b-1l3ejur1re] { color: var(--bs-warning-text-emphasis); }
.rb-count.is-over[b-1l3ejur1re] { color: var(--bs-danger); }

.rb-plan-row th[scope="row"][b-1l3ejur1re],
.rb-plan-row .rb-cell[b-1l3ejur1re] {
    background: rgba(var(--bs-body-color-rgb), 0.025);
}

.rb-plan-label[b-1l3ejur1re] {
    color: var(--bs-secondary-color);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.rb-drop[b-1l3ejur1re] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 1.9rem;
    border-radius: 0.35rem;
    transition: background-color 0.12s ease, outline-color 0.12s ease;
}

.rb-plan-row .rb-drop[b-1l3ejur1re] { min-height: 1.6rem; }

/* While dragging, every possible drop shows; impossible ones fade, over-capacity ones go red. */
.rb-drop.is-target[b-1l3ejur1re] { outline: 2px dashed var(--bs-border-color); outline-offset: -2px; background: rgba(var(--bs-body-color-rgb), 0.02); }
.rb-drop.is-target:hover[b-1l3ejur1re] { outline-color: var(--rb-blue); background: var(--rb-blue-soft); }
.rb-drop.is-blocked[b-1l3ejur1re] { outline: 2px dashed var(--bs-danger-border-subtle); outline-offset: -2px; background: var(--bs-danger-bg-subtle); }
.rb-drop.is-nodrop[b-1l3ejur1re] { opacity: 0.45; }

/* ---------- Name chips ---------- */
.rb-chip[b-1l3ejur1re] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.4rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.35rem;
    background: #fff;
    font-size: 0.82rem;
    line-height: 1.25;
    cursor: grab;
    user-select: none;
    min-width: 0;
}

.rb-chip:hover[b-1l3ejur1re] { border-color: var(--rb-blue); }
.rb-chip:focus-visible[b-1l3ejur1re] { outline: 2px solid var(--rb-blue); outline-offset: 1px; }
.roster-readonly .rb-chip[b-1l3ejur1re] { cursor: default; }

.rb-chip-name[b-1l3ejur1re] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.rb-chip-age[b-1l3ejur1re] {
    margin-left: auto;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rb-chip-age.is-young[b-1l3ejur1re] { color: var(--bs-warning-text-emphasis); font-weight: 700; }
.rb-chip-age.is-old[b-1l3ejur1re] { color: var(--bs-danger); font-weight: 700; }

.rb-chip.is-in[b-1l3ejur1re] { border-style: dashed; border-color: var(--rb-plan); background: var(--rb-plan-soft); cursor: pointer; }
.rb-chip.is-out[b-1l3ejur1re] { border-style: dashed; border-color: var(--bs-warning-border-subtle); background: var(--bs-warning-bg-subtle); cursor: pointer; }
.rb-chip.is-match[b-1l3ejur1re] { box-shadow: 0 0 0 2px var(--bs-warning); }
.rb-chip.is-dim[b-1l3ejur1re] { opacity: 0.35; }

.rb-tag[b-1l3ejur1re] {
    padding: 0 0.3rem;
    border-radius: 0.25rem;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.rb-tag.is-in[b-1l3ejur1re] { background: var(--rb-plan); color: #fff; }
.rb-tag.is-out[b-1l3ejur1re] { background: var(--bs-warning); color: #000; }
.rb-tag.is-rot[b-1l3ejur1re] { background: var(--rb-blue-soft); color: var(--rb-blue); }
.rb-tag.is-young[b-1l3ejur1re] { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }

/* ---------- Legend ---------- */
.rb-legend[b-1l3ejur1re] {
    position: sticky;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    padding: 0.5rem 0.85rem;
    border-top: 1px solid var(--bs-border-color-translucent);
    color: var(--bs-secondary-color);
    font-size: 0.76rem;
}

.rb-legend > span[b-1l3ejur1re] { display: inline-flex; align-items: center; gap: 0.35rem; }
.rb-swatch[b-1l3ejur1re] { display: inline-block; width: 0.9rem; height: 0.9rem; border: 1px dashed; border-radius: 0.2rem; }
.rb-swatch.is-in[b-1l3ejur1re] { border-color: var(--rb-plan); background: var(--rb-plan-soft); }
.rb-swatch.is-out[b-1l3ejur1re] { border-color: var(--bs-warning-border-subtle); background: var(--bs-warning-bg-subtle); }
.rb-legend-full[b-1l3ejur1re] { color: var(--bs-warning-text-emphasis); }
.rb-legend-over[b-1l3ejur1re] { color: var(--bs-danger); }

/* ---------- Change log ---------- */
.rb-log[b-1l3ejur1re] { margin: 0; padding: 0; list-style: none; }

.rb-log-item[b-1l3ejur1re] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.1rem 0.5rem;
    padding: 0.4rem 0.45rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    font-size: 0.8rem;
    overflow-wrap: anywhere; /* long names and email addresses */
}

.rb-log-status[b-1l3ejur1re] {
    grid-row: span 2;
    align-self: start;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.rb-log-status.is-completed[b-1l3ejur1re] { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.rb-log-status.is-planned[b-1l3ejur1re] { background: var(--rb-plan-soft); color: var(--rb-plan); }
.rb-log-status.is-canceled[b-1l3ejur1re] { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); text-decoration: line-through; }
.rb-log-meta[b-1l3ejur1re] { color: var(--bs-secondary-color); font-size: 0.72rem; }
.rb-log-note[b-1l3ejur1re] { grid-column: 2; color: var(--bs-warning-text-emphasis); font-size: 0.74rem; }
.rb-empty-note[b-1l3ejur1re] { padding: 0.75rem; color: var(--bs-secondary-color); font-size: 0.85rem; }

/* ---------- Dialog ---------- */
.rb-dlg[b-1l3ejur1re] { display: flex; flex-direction: column; gap: 0.6rem; }
.rb-dlg-summary[b-1l3ejur1re] { font-size: 0.9rem; }
.rb-dlg-label[b-1l3ejur1re] { color: var(--bs-secondary-color); font-size: 0.78rem; font-weight: 700; }
.rb-dlg-preview[b-1l3ejur1re] { color: var(--bs-secondary-color); font-size: 0.85rem; }

.rb-dlg-row[b-1l3ejur1re] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.rb-choice[b-1l3ejur1re] {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
}

.rb-choice:has(input:checked)[b-1l3ejur1re] { border-color: var(--rb-blue); background: var(--rb-blue-soft); }
.rb-choice input[b-1l3ejur1re] { margin-top: 0.25rem; accent-color: var(--rb-blue); }
.rb-choice-sub[b-1l3ejur1re] { display: block; color: var(--bs-secondary-color); font-size: 0.82rem; }

.rb-sched[b-1l3ejur1re] { display: flex; flex-direction: column; gap: 0.45rem; }
.rb-sched-head[b-1l3ejur1re] { display: flex; align-items: center; gap: 0.6rem; }
.rb-sched-head select[b-1l3ejur1re] { max-width: 15rem; }

.rb-sched-row[b-1l3ejur1re] {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
}

.rb-sched-week[b-1l3ejur1re] { color: var(--bs-secondary-color); font-size: 0.8rem; font-weight: 700; }

.rb-daytoggles[b-1l3ejur1re] {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
}

.rb-daytoggle[b-1l3ejur1re] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.35rem 0;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.rb-daytoggle input[b-1l3ejur1re] { accent-color: hsl(152, 69%, 31%); }
.rb-daytoggle.is-on[b-1l3ejur1re] { background: var(--bs-success-bg-subtle); border-color: var(--bs-success-border-subtle); color: var(--bs-success-text-emphasis); }
.rb-daytoggle.is-weekend:not(.is-on)[b-1l3ejur1re] { opacity: 0.6; }
.rb-daytoggle:has(input:disabled)[b-1l3ejur1re] { cursor: default; }

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
    .roster-shell[b-1l3ejur1re] { height: auto; grid-template-columns: minmax(0, 1fr); }
    .rb-tray[b-1l3ejur1re] { max-height: 45dvh; }
    .rb-changes[b-1l3ejur1re] { max-height: 35dvh; }
    .roster-right[b-1l3ejur1re] { max-height: 80dvh; }
    .rb-search input[b-1l3ejur1re] { width: 8rem; }
}

@media (max-width: 575.98px) {
    .rb-daytoggles[b-1l3ejur1re] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rb-sched-row[b-1l3ejur1re] { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Print: just the board ---------- */
@media print {
    .rb-toolbar[b-1l3ejur1re] { background: none; color: #000; box-shadow: none; padding: 0 0 0.5rem; }
    .rb-toolbar-controls[b-1l3ejur1re], .rb-help[b-1l3ejur1re], .rb-toolbar-icon[b-1l3ejur1re], .roster-left[b-1l3ejur1re], .rb-alert[b-1l3ejur1re], .rb-legend[b-1l3ejur1re] { display: none !important; }
    .roster-shell[b-1l3ejur1re] { display: block; height: auto !important; }
    .roster-right[b-1l3ejur1re] { overflow: visible; max-height: none; border: 0; box-shadow: none; }
    .rb-board[b-1l3ejur1re] { min-width: 0; }
    .rb-board thead th[b-1l3ejur1re] { position: static; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .rb-room[b-1l3ejur1re] { break-inside: avoid; }
    .rb-chip[b-1l3ejur1re] { border-color: #999; }
    .rb-chip.is-in[b-1l3ejur1re], .rb-chip.is-out[b-1l3ejur1re] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .rb-search[b-1l3ejur1re] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .rb-seg[b-1l3ejur1re] {
    border: 1px solid var(--form-line);
}

:root[data-bs-theme="dark"] .rb-seg button.is-active[b-1l3ejur1re] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .rb-tool[b-1l3ejur1re] {
    border: 1px solid var(--form-line);
}

:root[data-bs-theme="dark"] .rb-alert.is-info[b-1l3ejur1re] {
    border-color: var(--form-line);
}

:root[data-bs-theme="dark"] .roster-right[b-1l3ejur1re] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .rb-card[b-1l3ejur1re] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .rb-board th[scope="row"][b-1l3ejur1re] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .rb-chip[b-1l3ejur1re] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .rb-tag.is-out[b-1l3ejur1re] {
    color: var(--form-ink);
}

@media print {
    :root[data-bs-theme="dark"] .rb-toolbar[b-1l3ejur1re] {
        color: var(--form-ink);
    }
}
/* ==== End dark mode ==== */
/* /Components/Pages/StudentFile/StudentForm.razor.rz.scp.css */
/* Brand colours: also on the Add Parent / Guardian step, which renders outside .app-form-shell. */
.app-form-shell[b-mllt41dpkw],
.student-parent-link-modal[b-mllt41dpkw] {
    --ece-blue: hsl(195, 100%, 18%);
    --ece-blue-90: hsl(195, 100%, 28%);
    --ece-blue-35: hsl(195, 100%, 83%);
    --ece-blue-25: hsl(195, 100%, 93%);
    --ece-blue-20: hsl(195, 100%, 98%);
    --ece-green: hsl(81, 50%, 55%);
    --ece-green-60: hsl(81, 50%, 95%);
    --ece-gray: hsl(0, 1%, 44%);
    --ece-gray-60: hsl(0, 1%, 84%);
    --ece-gray-50: hsl(0, 1%, 94%);
    --ece-gray-45: hsl(0, 1%, 99%);
}

.student-parent-actions[b-mllt41dpkw],
.student-toolbar-actions[b-mllt41dpkw] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Age readout under Date of Birth (calculated, not editable). */
.student-age[b-mllt41dpkw] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.student-age-label[b-mllt41dpkw] {
    font-size: 0.8125rem;
    color: var(--form-muted);
}

.student-age-value[b-mllt41dpkw] {
    font-size: 1rem;
    font-weight: 600;
    color: var(--form-ink);
}

.student-status-toggle[b-mllt41dpkw] {
    min-height: 2.5rem;
    padding-top: 0.2rem;
}

/* Rotation dropdown and the fill buttons share one row, centred on each other; the help text sits under the row. */
.student-attendance-controls[b-mllt41dpkw] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.student-attendance-controls[b-mllt41dpkw]  .student-rotation-select {
    width: 12rem;
    max-width: 100%;
}

.student-attendance-controls .student-toolbar-actions[b-mllt41dpkw] {
    margin-left: auto;
}

.student-attendance-help[b-mllt41dpkw] {
    margin: 0.35rem 0 0.75rem;
}

td.student-attendance-days[b-mllt41dpkw] {
    color: var(--ece-gray);
    font-weight: 600;
    white-space: nowrap;
}

.student-attendance-table[b-mllt41dpkw] {
    margin-bottom: 0;
}

.student-attendance-table th[b-mllt41dpkw],
.student-attendance-table td[b-mllt41dpkw] {
    vertical-align: middle;
}

.student-attendance-check[b-mllt41dpkw] {
    width: 1.05rem;
    height: 1.05rem;
}

.student-week-label[b-mllt41dpkw] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.student-week-badge[b-mllt41dpkw] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.65rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background-color: var(--ece-blue-25);
    color: var(--ece-blue);
    font-size: 0.78rem;
    font-weight: 700;
}

.student-week-hint[b-mllt41dpkw] {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ece-gray);
}

.student-sidebar[b-mllt41dpkw] {
    position: sticky;
    top: 1rem;
}

.student-sidebar-card[b-mllt41dpkw] {
    margin-bottom: 0;
}

.student-checklist[b-mllt41dpkw] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.student-checklist-item[b-mllt41dpkw] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--ece-gray-60);
    background: var(--ece-gray-45);
}

.student-checklist-item i[b-mllt41dpkw] {
    font-size: 1.05rem;
    margin-top: 0.15rem;
}

.student-checklist-item.is-complete[b-mllt41dpkw] {
    background: var(--ece-green-60);
    border-color: var(--ece-green);
    color: var(--ece-blue);
}

.student-checklist-item.is-pending[b-mllt41dpkw] {
    background: var(--ece-gray-50);
    border-color: var(--ece-gray-60);
    color: var(--ece-blue);
}

.student-checklist-copy[b-mllt41dpkw] {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.92;
    margin-top: 0.18rem;
}

.student-parent-section .student-parent-actions[b-mllt41dpkw] {
    justify-content: flex-start;
}

.student-parent-mode-btn[b-mllt41dpkw] {
    border: 1px solid var(--ece-green);
    background: var(--form-surface);
    color: var(--ece-blue);
    font-weight: 700;
    border-radius: 0.85rem;
    padding: 0.65rem 1rem;
}

.student-parent-mode-btn:hover[b-mllt41dpkw],
.student-parent-mode-btn:focus[b-mllt41dpkw] {
    border-color: hsl(81, 50%, 49%);
    background: var(--ece-green-60);
    color: var(--ece-blue);
}

.student-parent-mode-btn.is-active[b-mllt41dpkw] {
    border-color: hsl(81, 50%, 49%);
    background: hsl(81, 50%, 49%);
    color: #18304a;
}

.student-parent-mode-btn:disabled[b-mllt41dpkw],
.student-parent-mode-btn.disabled[b-mllt41dpkw] {
    opacity: 0.6;
}

.student-parent-create-btn[b-mllt41dpkw] {
    background: var(--ece-green);
    border-color: var(--ece-green);
    color: #18304a;
    font-weight: 700;
}

.student-parent-create-btn:hover[b-mllt41dpkw],
.student-parent-create-btn:focus[b-mllt41dpkw],
.student-parent-create-btn:active[b-mllt41dpkw] {
    background: hsl(81, 50%, 49%);
    border-color: hsl(81, 50%, 49%);
    color: #18304a;
}

.student-parent-create-btn:disabled[b-mllt41dpkw],
.student-parent-create-btn.disabled[b-mllt41dpkw] {
    background: var(--ece-green);
    border-color: var(--ece-green);
    color: #18304a;
    opacity: 0.55;
}

.student-parent-table[b-mllt41dpkw] {
    margin-bottom: 0;
}

.student-parent-grid-wrap[b-mllt41dpkw] {
    width: 100%;
}

.student-parent-toolbar[b-mllt41dpkw] {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.student-parent-empty-state[b-mllt41dpkw] {
    justify-content: flex-start;
}

.student-parent-link-modal[b-mllt41dpkw] {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
}

.student-parent-step-title[b-mllt41dpkw] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ece-blue);
}

.student-parent-step-number[b-mllt41dpkw] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--ece-blue);
    color: #fff;
    font-size: 0.85rem;
}

/* Step 2 waits (dimmed, no controls) until a relationship is picked. */
.student-parent-step.is-waiting .student-parent-step-title[b-mllt41dpkw] {
    opacity: 0.55;
}

.student-parent-step-hint[b-mllt41dpkw] {
    margin: 0;
    color: var(--ece-gray);
}

.student-relationship-input[b-mllt41dpkw] {
    max-width: 28rem;
}

.student-parent-results[b-mllt41dpkw] {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid var(--ece-gray-60);
    border-radius: 0.6rem;
}

.student-parent-result[b-mllt41dpkw] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.student-parent-result + .student-parent-result[b-mllt41dpkw] {
    border-top: 1px solid var(--ece-gray-60);
}

.student-parent-result-text[b-mllt41dpkw] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.75rem;
    min-width: 0;
}

.student-parent-result-name[b-mllt41dpkw] {
    font-weight: 600;
}

.student-parent-result-contact[b-mllt41dpkw] {
    color: var(--ece-gray);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.student-parent-new[b-mllt41dpkw] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 1rem;
    color: var(--ece-gray);
}

.student-parent-workflow-header[b-mllt41dpkw] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.student-empty-state[b-mllt41dpkw] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1rem;
    border-radius: 0.9rem;
    background: var(--ece-gray-45);
    border: 1px dashed var(--ece-gray-60);
    color: var(--ece-gray);
}

/* The requirements table fills the card edge to edge (no padding around it). */
.app-form-card-body.student-requirements-wrapper[b-mllt41dpkw] {
    padding: 0;
}

.student-requirements-wrapper[b-mllt41dpkw]  .table-responsive {
    margin: 0 !important;
}

@media (max-width: 1399.98px) {
    .student-sidebar[b-mllt41dpkw] {
        position: static;
    }
}

@media (max-width: 767.98px) {

    .student-parent-actions[b-mllt41dpkw] {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .app-form-shell[b-mllt41dpkw],
:root[data-bs-theme="dark"] .student-parent-link-modal[b-mllt41dpkw] {
    --ece-blue: var(--win-accent);
    --ece-blue-90: var(--win-accent-hover);
    --ece-blue-35: var(--win-edge-strong);
    --ece-blue-25: rgba(96, 205, 255, 0.14);
    --ece-blue-20: rgba(96, 205, 255, 0.07);
    --ece-green: var(--win-control);
    --ece-green-60: rgba(108, 203, 95, 0.12);
    --ece-gray: var(--win-text-2);
    --ece-gray-60: var(--win-edge-strong);
    --ece-gray-50: var(--win-subtle);
    --ece-gray-45: var(--win-card);
}

:root[data-bs-theme="dark"] .student-parent-mode-btn.is-active[b-mllt41dpkw] {
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .student-parent-create-btn[b-mllt41dpkw] {
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .student-parent-create-btn:hover[b-mllt41dpkw],
:root[data-bs-theme="dark"] .student-parent-create-btn:focus[b-mllt41dpkw],
:root[data-bs-theme="dark"] .student-parent-create-btn:active[b-mllt41dpkw] {
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .student-parent-create-btn:disabled[b-mllt41dpkw],
:root[data-bs-theme="dark"] .student-parent-create-btn.disabled[b-mllt41dpkw] {
    color: var(--form-ink);
}
/* ==== End dark mode ==== */
/* /Components/Shared/ActionGrid.razor.rz.scp.css */
/* Filter pills on the left (wrapping as needed), the Refresh icon pinned in the top-right corner. */
.action-grid-controls[b-1rripzg3cv] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
    flex-wrap: nowrap;
}

.action-grid-controls > .action-grid-filter-row[b-1rripzg3cv] {
    flex: 1 1 auto;
    min-width: 0;
}

.action-grid-overview-actions[b-1rripzg3cv] {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

/* Round icon button, the same size as the grid header's controls. */
.action-grid-refresh[b-1rripzg3cv] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 50%;
}

.action-grid-filter-row[b-1rripzg3cv] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.action-grid-filter-pill[b-1rripzg3cv] {
    padding: 0.45rem 0.8rem;
    border: 1px solid hsl(0, 1%, 84%);
    border-radius: 999px;
    background: #fff;
    color: hsl(195, 100%, 18%);
    font-size: 0.9rem;
    font-weight: 600;
}

.action-grid-filter-pill.is-active[b-1rripzg3cv] {
    background: hsl(195, 100%, 18%);
    border-color: hsl(195, 100%, 18%);
    color: #fff;
}

.action-grid-filter-pill.is-static[b-1rripzg3cv] {
    background: hsl(195, 100%, 97%);
    border-color: hsl(195, 100%, 83%);
}

.action-grid-clear[b-1rripzg3cv] {
    padding: 0;
    text-decoration: none;
}

.action-grid-layout[b-1rripzg3cv] {
    display: grid;
    gap: 1rem;
}

.action-grid-layout.is-split[b-1rripzg3cv] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.action-grid-column[b-1rripzg3cv] {
    min-width: 0;
}

.action-grid-person-name[b-1rripzg3cv] {
    font-weight: 700;
    color: hsl(195, 100%, 18%);
}

.action-grid-person-subtext[b-1rripzg3cv],
.action-grid-attention-subtext[b-1rripzg3cv],
.action-grid-toggle-hint[b-1rripzg3cv] {
    color: hsl(0, 1%, 44%);
    font-size: 0.88rem;
}

.action-grid-attention-cell[b-1rripzg3cv] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.action-grid-badges[b-1rripzg3cv],
.action-grid-row-actions[b-1rripzg3cv],
.action-grid-editor-panels[b-1rripzg3cv] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Email, text, edit and (de)activate stay on one line wherever there's room; phones still wrap. */
@media (min-width: 768px) {
    .action-grid-row-actions[b-1rripzg3cv] {
        flex-wrap: nowrap;
    }
}

.action-grid-type-badge[b-1rripzg3cv],
.action-grid-priority-badge[b-1rripzg3cv],
.action-grid-mini-badge[b-1rripzg3cv] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.action-grid-priority-badge.is-medium[b-1rripzg3cv],
.action-grid-mini-badge.is-info[b-1rripzg3cv] {
    background: rgba(13, 110, 253, 0.08);
    color: hsl(195, 100%, 18%);
}

.action-grid-priority-badge.is-low[b-1rripzg3cv] {
    background: rgba(13, 202, 240, 0.14);
    color: #0b7b91;
}

.action-grid-priority-badge.is-critical[b-1rripzg3cv],
.action-grid-mini-badge.is-danger[b-1rripzg3cv] {
    background: rgba(220, 53, 69, 0.12);
    color: #b42318;
}

.action-grid-priority-badge.is-high[b-1rripzg3cv],
.action-grid-mini-badge.is-warning[b-1rripzg3cv] {
    background: rgba(255, 193, 7, 0.18);
    color: #7a5300;
}

.action-grid-mini-badge.is-missing[b-1rripzg3cv] {
    background: rgba(220, 53, 69, 0.1);
    color: #842029;
}

.action-grid-row-actions .btn[b-1rripzg3cv] {
    min-width: 2.35rem;
    min-height: 2.35rem;
    border-radius: 0.9rem;
    border-color: transparent;
}

.action-grid-row-actions .btn.bg-ECEblue[b-1rripzg3cv],
.action-grid-row-actions .btn.bg-teal[b-1rripzg3cv],
.action-grid-row-actions .btn.bg-danger[b-1rripzg3cv] {
    color: #fff;
}

.action-grid-row-actions .btn.bg-ECEblue:hover[b-1rripzg3cv],
.action-grid-row-actions .btn.bg-ECEblue:focus[b-1rripzg3cv],
.action-grid-row-actions .btn.bg-teal:hover[b-1rripzg3cv],
.action-grid-row-actions .btn.bg-teal:focus[b-1rripzg3cv],
.action-grid-row-actions .btn.bg-danger:hover[b-1rripzg3cv],
.action-grid-row-actions .btn.bg-danger:focus[b-1rripzg3cv] {
    color: #fff;
}

.action-grid-expand-btn[b-1rripzg3cv] {
    min-width: 2.35rem;
    min-height: 2.35rem;
    border-radius: 0.9rem;
    border: 1px solid hsl(0, 1%, 84%);
    background: #fff;
    color: hsl(195, 100%, 18%);
}

.action-grid-expand-btn:hover[b-1rripzg3cv],
.action-grid-expand-btn:focus[b-1rripzg3cv],
.action-grid-expand-btn:active[b-1rripzg3cv] {
    border-color: hsl(195, 100%, 83%);
    background: hsl(195, 100%, 98%);
    color: hsl(195, 100%, 18%);
}

/* The words only show on phones, where the button becomes a full-width bar under the card. */
.action-grid-expand-text[b-1rripzg3cv] {
    display: none;
}

.student-requirements-wrapper[b-1rripzg3cv] {
    padding: 0;
}

/* The expanded requirements table fills the row edge to edge; only the Update/Cancel bar keeps a margin. */
.action-grid-layout[b-1rripzg3cv]  .default-grid-detail-cell:has(.student-requirements-wrapper) {
    padding: 0 0 1rem !important;
}

.action-grid-layout[b-1rripzg3cv]  .student-requirements-wrapper .app-form-savebar {
    margin-left: 1rem;
    margin-right: 1rem;
}

@media (max-width: 991.98px) {

    .action-grid-layout.is-split[b-1rripzg3cv] {
        grid-template-columns: 1fr;
    }
}

/* Filter pills inside a grid header (tracking pages): compact, light-on-dark. */
/* Second row of the grid header, under the title/search toolbar: pills left, Refresh right. */
.action-grid-controls.is-in-header[b-1rripzg3cv] {
    margin-bottom: 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.action-grid-controls.is-in-header .action-grid-filter-row[b-1rripzg3cv] {
    gap: 0.35rem;
}

.action-grid-filter-label[b-1rripzg3cv] {
    margin-right: 0.15rem;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.75;
}

.action-grid-controls.is-in-header .action-grid-filter-pill[b-1rripzg3cv] {
    display: inline-flex;
    align-items: center;
    height: 1.85rem;
    padding: 0 0.75rem;
    font-size: 0.8rem;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.action-grid-controls.is-in-header .action-grid-filter-pill.is-active[b-1rripzg3cv] {
    background: #fff;
    border-color: #fff;
    color: hsl(195, 100%, 18%);
}

/* Phone filter dropdown: hidden on larger screens, where the pills show. */
.action-grid-filter-menu[b-1rripzg3cv] {
    display: none;
    position: relative;
}

.action-grid-filter-toggle[b-1rripzg3cv] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.9rem;
    padding: 0.15rem 0.7rem;
    border: 1px solid hsl(0, 1%, 84%);
    border-radius: 999px;
    background: #fff;
    color: hsl(195, 100%, 18%);
    font-size: 0.8rem;
    font-weight: 600;
}

.action-grid-controls.is-in-header .action-grid-filter-toggle[b-1rripzg3cv] {
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #fff;
}

.action-grid-filter-toggle.has-filters[b-1rripzg3cv],
.action-grid-controls.is-in-header .action-grid-filter-toggle.has-filters[b-1rripzg3cv] {
    border-color: #fff;
    background: #fff;
    color: hsl(195, 100%, 18%);
}

.action-grid-filter-count[b-1rripzg3cv] {
    min-width: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: hsl(195, 100%, 18%);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.2rem;
    text-align: center;
}

.action-grid-filter-backdrop[b-1rripzg3cv] {
    position: fixed;
    inset: 0;
    z-index: 1040;
}

.action-grid-filter-list[b-1rripzg3cv] {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    z-index: 1041;
    display: flex;
    flex-direction: column;
    min-width: 12rem;
    padding: 0.3rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.6rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
}

.action-grid-filter-item[b-1rripzg3cv] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--bs-body-color);
    font-size: 0.9rem;
    text-align: left;
}

.action-grid-filter-item:active[b-1rripzg3cv],
.action-grid-filter-item:hover[b-1rripzg3cv] {
    background: hsl(195, 100%, 96%);
}

.action-grid-filter-item > .bi[b-1rripzg3cv] {
    color: hsl(0, 0%, 60%);
}

.action-grid-filter-item.is-checked[b-1rripzg3cv] {
    font-weight: 600;
}

.action-grid-filter-item.is-checked > .bi[b-1rripzg3cv] {
    color: hsl(195, 100%, 25%);
}

.action-grid-filter-item.is-clear[b-1rripzg3cv] {
    margin-top: 0.2rem;
    border-top: 1px solid var(--bs-border-color);
    border-radius: 0 0 0.4rem 0.4rem;
    color: var(--bs-danger);
}

.action-grid-filter-item.is-clear > .bi[b-1rripzg3cv] {
    color: inherit;
}

.action-grid-filter-note[b-1rripzg3cv] {
    padding: 0.35rem 0.65rem;
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
}

/* Phones: a Filters dropdown on the left, Refresh on the right, one line. */
@media (max-width: 575.98px) {
    .action-grid-filter-menu[b-1rripzg3cv] {
        display: block;
    }

    .action-grid-controls > .action-grid-filter-row[b-1rripzg3cv] {
        display: none;
    }

    .action-grid-controls[b-1rripzg3cv],
    .action-grid-controls.is-in-header[b-1rripzg3cv] {
        align-items: center;
    }

    .action-grid-controls[b-1rripzg3cv],
    .action-grid-controls.is-in-header[b-1rripzg3cv] {
        gap: 0.3rem;
        margin-bottom: 0;
    }

    .action-grid-filter-row[b-1rripzg3cv],
    .action-grid-controls.is-in-header .action-grid-filter-row[b-1rripzg3cv] {
        gap: 0.25rem;
    }

    .action-grid-filter-pill[b-1rripzg3cv],
    .action-grid-controls.is-in-header .action-grid-filter-pill[b-1rripzg3cv] {
        padding: 0.1rem 0.5rem;
        font-size: 0.74rem;
    }

    .action-grid-controls .btn[b-1rripzg3cv] {
        padding: 0.1rem 0.5rem;
        font-size: 0.74rem;
    }

    .action-grid-refresh[b-1rripzg3cv] {
        width: 1.7rem;
        height: 1.7rem;
        padding: 0;
        font-size: 0.85rem;
    }

    /* Card view: "Show files ▾" as a full-width bar along the bottom of the card. */
    .action-grid-expand-btn[b-1rripzg3cv] {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
        min-height: 2.2rem;
        margin-top: 0.35rem;
        border-radius: 0.5rem;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .action-grid-expand-btn[aria-expanded="true"][b-1rripzg3cv] {
        border-color: hsl(195, 100%, 83%);
        background: hsl(195, 100%, 96%);
    }

    .action-grid-expand-text[b-1rripzg3cv] {
        display: inline;
    }
}

/* Attention rows: a white card with a coloured stripe down the left edge, labelled with the row's worst
   problem in vertical text, instead of a tinted fill. The badges inside carry the detail.
   Wide screens draw the stripe in the first cell (a pseudo-element on a table row would become an extra
   column); phones, where rows are cards, draw it on the whole card. */
.action-grid-layout[b-1rripzg3cv]  tbody tr.attn-row {
    --attn-color: #c0392b;
    --attn-label: "PAST DUE";
}

.action-grid-layout[b-1rripzg3cv]  tbody tr.attn-row > td:first-child {
    position: relative;
    padding-left: 2rem;
}

.action-grid-layout[b-1rripzg3cv]  tbody tr.attn-row > td:first-child::before {
    content: var(--attn-label);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);      /* reads bottom to top */
    background: var(--attn-color);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
}

@media (max-width: 575.98px) {
    .action-grid-layout[b-1rripzg3cv]  tbody tr.attn-row {
        position: relative;
        padding-left: 2rem !important;
    }

    .action-grid-layout[b-1rripzg3cv]  tbody tr.attn-row > td:first-child {
        position: static;
        padding-left: 0;
    }

    .action-grid-layout[b-1rripzg3cv]  tbody tr.attn-row > td:first-child::before {
        content: none;
    }

    .action-grid-layout[b-1rripzg3cv]  tbody tr.attn-row::before {
        content: var(--attn-label);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 1.35rem;
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        background: var(--attn-color);
        color: #fff;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        white-space: nowrap;
        overflow: hidden;
        z-index: 1;
    }
}

.action-grid-layout[b-1rripzg3cv]  tbody tr.attn-missing { --attn-color: #1f78ad; --attn-label: "MISSING"; }
.action-grid-layout[b-1rripzg3cv]  tbody tr.attn-due-soon { --attn-color: #b07d00; --attn-label: "DUE SOON"; }
.action-grid-layout[b-1rripzg3cv]  tbody tr.attn-starts-soon { --attn-color: hsl(195 100% 18%); --attn-label: "STARTS SOON"; }

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .action-grid-filter-pill[b-1rripzg3cv] {
    border: 1px solid var(--form-line);
    background: var(--form-surface);
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .action-grid-filter-pill.is-static[b-1rripzg3cv] {
    background: var(--form-surface);
    border-color: var(--form-line);
}

:root[data-bs-theme="dark"] .action-grid-person-name[b-1rripzg3cv] {
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .action-grid-person-subtext[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-attention-subtext[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-toggle-hint[b-1rripzg3cv] {
    color: var(--form-muted);
}

:root[data-bs-theme="dark"] .action-grid-priority-badge.is-medium[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-mini-badge.is-info[b-1rripzg3cv] {
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .action-grid-priority-badge.is-low[b-1rripzg3cv] {
    color: var(--form-muted);
}

:root[data-bs-theme="dark"] .action-grid-priority-badge.is-critical[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-mini-badge.is-danger[b-1rripzg3cv] {
    color: var(--form-muted);
}

:root[data-bs-theme="dark"] .action-grid-priority-badge.is-high[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-mini-badge.is-warning[b-1rripzg3cv] {
    color: var(--form-muted);
}

:root[data-bs-theme="dark"] .action-grid-mini-badge.is-missing[b-1rripzg3cv] {
    color: var(--form-muted);
}

:root[data-bs-theme="dark"] .action-grid-expand-btn[b-1rripzg3cv] {
    border: 1px solid var(--form-line);
    background: var(--form-surface);
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .action-grid-expand-btn:hover[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-expand-btn:focus[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-expand-btn:active[b-1rripzg3cv] {
    border-color: var(--form-line);
    background: var(--form-surface);
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .action-grid-controls.is-in-header .action-grid-filter-pill[b-1rripzg3cv] {
    border-color: var(--form-line);
}

:root[data-bs-theme="dark"] .action-grid-controls.is-in-header .action-grid-filter-pill.is-active[b-1rripzg3cv] {
    background: var(--form-surface);
    border-color: var(--form-line);
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .action-grid-filter-toggle[b-1rripzg3cv] {
    border: 1px solid var(--form-line);
    background: var(--form-surface);
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .action-grid-controls.is-in-header .action-grid-filter-toggle[b-1rripzg3cv] {
    border-color: var(--form-line);
}

:root[data-bs-theme="dark"] .action-grid-filter-toggle.has-filters[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-controls.is-in-header .action-grid-filter-toggle.has-filters[b-1rripzg3cv] {
    border-color: var(--form-line);
    background: var(--form-surface);
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .action-grid-filter-list[b-1rripzg3cv] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .action-grid-filter-item:active[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-filter-item:hover[b-1rripzg3cv] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .action-grid-filter-item.is-checked > .bi[b-1rripzg3cv] {
    color: var(--form-muted);
}

@media (max-width: 575.98px) {
    :root[data-bs-theme="dark"] .action-grid-expand-btn[aria-expanded="true"][b-1rripzg3cv] {
        border-color: var(--form-line);
        background: var(--form-surface);
    }
}
/* ==== End dark mode ==== */

/* Expand (chevron) button in dark mode: same WinUI button as the row actions, white icon. */
:root[data-bs-theme="dark"] .action-grid-expand-btn[b-1rripzg3cv] {
    background: var(--win-control);
    border-color: var(--win-edge-strong);
    color: var(--win-text);
}

:root[data-bs-theme="dark"] .action-grid-expand-btn:hover[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-expand-btn:focus[b-1rripzg3cv],
:root[data-bs-theme="dark"] .action-grid-expand-btn:active[b-1rripzg3cv] {
    background: var(--win-control-hover);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--win-text);
}
/* /Components/Shared/ActionGridEmployeeDetail.razor.rz.scp.css */
.action-grid-employee-detail[b-8ob41wsow8] {
    --app-form-accent: hsl(195, 100%, 18%);
    --app-form-muted: hsl(0, 1%, 44%);
    --app-form-surface: #fff;
    --app-form-muted-soft: hsl(0, 1%, 84%);
}

.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar {
    margin-top: 0.75rem;
}

.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-card {
    background: #fff;
}

.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-actions .btn-primary,
.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-actions .btn-primary:hover,
.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-actions .btn-primary:focus,
.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-actions .btn-primary:active {
    background-color: hsl(195, 100%, 18%);
    border-color: hsl(195, 100%, 18%);
    color: #fff;
}

.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-actions .btn-secondary,
.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-actions .btn-secondary:hover,
.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-actions .btn-secondary:focus,
.action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-actions .btn-secondary:active {
    background-color: hsl(0, 1%, 44%);
    border-color: hsl(0, 1%, 44%);
    color: #fff;
}

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .action-grid-employee-detail[b-8ob41wsow8]  .app-form-savebar-card {
    background: var(--form-surface);
}
/* ==== End dark mode ==== */
/* /Components/Shared/ActionGridStudentDetail.razor.rz.scp.css */
.action-grid-student-detail[b-70wo6k1r4m] {
    --app-form-accent: hsl(195, 100%, 18%);
    --app-form-muted: hsl(0, 1%, 44%);
    --app-form-surface: #fff;
    --app-form-muted-soft: hsl(0, 1%, 84%);
}

.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar {
    margin-top: 0.75rem;
}

.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-card {
    background: #fff;
}

.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-actions .btn-primary,
.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-actions .btn-primary:hover,
.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-actions .btn-primary:focus,
.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-actions .btn-primary:active {
    background-color: hsl(195, 100%, 18%);
    border-color: hsl(195, 100%, 18%);
    color: #fff;
}

.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-actions .btn-secondary,
.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-actions .btn-secondary:hover,
.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-actions .btn-secondary:focus,
.action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-actions .btn-secondary:active {
    background-color: hsl(0, 1%, 44%);
    border-color: hsl(0, 1%, 44%);
    color: #fff;
}

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .action-grid-student-detail[b-70wo6k1r4m]  .app-form-savebar-card {
    background: var(--form-surface);
}
/* ==== End dark mode ==== */
/* /Components/Shared/BlankFormEditor.razor.rz.scp.css */
/* Blank Form section on Requirement / Clearance Type. Uses the form tokens, so it follows light / dark. */
.bfe-file[b-zacle2c6xq] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    margin-bottom: 0.6rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--form-line);
    border-radius: 0.6rem;
}

.bfe-file-icon[b-zacle2c6xq] {
    flex: none;
    font-size: 1.5rem;
    color: #c0392b;
}

.bfe-file-text[b-zacle2c6xq] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.bfe-file-name[b-zacle2c6xq] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.bfe-file-meta[b-zacle2c6xq] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    color: var(--form-muted);
}

.bfe-remove[b-zacle2c6xq] {
    flex: none;
    min-width: 2.25rem;
    min-height: 2.25rem;
    color: var(--form-muted);
    border: 1px solid var(--form-line);
}

.bfe-remove:hover[b-zacle2c6xq] {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.bfe-upload[b-zacle2c6xq] {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    cursor: pointer;
}

.bfe-none[b-zacle2c6xq] {
    font-size: 0.875rem;
    color: var(--form-muted);
}
/* /Components/Shared/DefaultGrid.razor.rz.scp.css */
.default-grid-shell[b-8pbl31skhc] {
    --ece-blue: hsl(195, 100%, 18%);
    --ece-blue-35: hsl(195, 100%, 83%);
    --ece-blue-25: hsl(195, 100%, 93%);
    --ece-blue-20: hsl(195, 100%, 98%);
    --ece-green: hsl(81, 50%, 55%);
    --ece-gray: hsl(0, 1%, 44%);
    --ece-gray-60: hsl(0, 1%, 84%);
    --ece-gray-50: hsl(0, 1%, 94%);
    --ece-gray-45: hsl(0, 1%, 99%);
    /* Every header control (search, buttons, icon buttons) is this tall, so the toolbar lines up. */
    --dg-control: 2.25rem;
    border: 1px solid var(--ece-gray-60);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.45rem 1.25rem rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: var(--grid-viewport-height, auto);
}

.default-grid-header[b-8pbl31skhc],
.default-grid-footer[b-8pbl31skhc] {
    position: relative;
    flex: 0 0 auto;
}

.default-grid-header[b-8pbl31skhc] {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.default-grid-header-sub[b-8pbl31skhc] {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.default-grid-header-main[b-8pbl31skhc] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

/* Icon, title + subtitle, then the round icon buttons pushed up against the toolbar. */
.default-grid-title-block[b-8pbl31skhc] {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.default-grid-title-copy[b-8pbl31skhc] {
    min-width: 0;
}

.default-grid-title-actions[b-8pbl31skhc] {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.default-grid-title-actions:empty[b-8pbl31skhc] {
    display: none;
}

/* Round icon-only buttons (Print here, Refresh from the page): same size as the other controls. */
.default-grid-icon-btn[b-8pbl31skhc],
.default-grid-title-actions[b-8pbl31skhc]  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--dg-control);
    height: var(--dg-control);
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    font-size: 0.95rem;
}

.default-grid-title-icon[b-8pbl31skhc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--dg-control);
    height: var(--dg-control);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.default-grid-title-icon i[b-8pbl31skhc] {
    font-size: 1.05rem;
}

.default-grid-title[b-8pbl31skhc] {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

/* "115 records · Searching": one quiet line under the title. */
.default-grid-header-meta[b-8pbl31skhc] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.78;
}

.default-grid-meta-sep[b-8pbl31skhc] {
    opacity: 0.7;
}

.default-grid-meta-pill[b-8pbl31skhc] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 0.82rem;
    font-weight: 600;
}

.default-grid-toolbar[b-8pbl31skhc] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.default-grid-toolbar-custom[b-8pbl31skhc] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.default-grid-toolbar-btn[b-8pbl31skhc],
.default-grid-filter-toggle[b-8pbl31skhc],
.default-grid-page-btn[b-8pbl31skhc] {
    min-height: 2.35rem;
    border-radius: 999px;
    font-weight: 600;
}

.default-grid-toolbar-btn[b-8pbl31skhc],
.default-grid-toolbar .default-grid-filter-toggle[b-8pbl31skhc] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: var(--dg-control);
    min-height: 0;
    padding: 0 0.9rem;
}

.default-grid-toolbar .btn-outline-light[b-8pbl31skhc],
.default-grid-title-actions .btn-outline-light[b-8pbl31skhc],
.default-grid-title-actions[b-8pbl31skhc]  .btn-outline-light,
.default-grid-footer .btn-outline-light[b-8pbl31skhc] {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.default-grid-toolbar .btn-outline-light:hover[b-8pbl31skhc],
.default-grid-toolbar .btn-outline-light:focus[b-8pbl31skhc],
.default-grid-title-actions .btn-outline-light:hover[b-8pbl31skhc],
.default-grid-title-actions .btn-outline-light:focus[b-8pbl31skhc],
.default-grid-title-actions[b-8pbl31skhc]  .btn-outline-light:hover,
.default-grid-title-actions[b-8pbl31skhc]  .btn-outline-light:focus,
.default-grid-footer .btn-outline-light:hover[b-8pbl31skhc],
.default-grid-footer .btn-outline-light:focus[b-8pbl31skhc] {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.default-grid-toolbar .btn-outline-dark[b-8pbl31skhc],
.default-grid-footer .btn-outline-dark[b-8pbl31skhc] {
    border-color: var(--ece-gray-60);
    background: #fff;
    color: var(--ece-blue);
}

.default-grid-toolbar .btn-outline-dark:hover[b-8pbl31skhc],
.default-grid-toolbar .btn-outline-dark:focus[b-8pbl31skhc],
.default-grid-footer .btn-outline-dark:hover[b-8pbl31skhc],
.default-grid-footer .btn-outline-dark:focus[b-8pbl31skhc] {
    border-color: var(--ece-blue);
    background: var(--ece-blue-20);
    color: var(--ece-blue);
}

/* New: a brand-blue button, a shade brighter than the header so it still stands out on it. */
.default-grid-primary-btn[b-8pbl31skhc] {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: hsl(195, 100%, 28%);
    color: #fff;
}

.default-grid-primary-btn:hover[b-8pbl31skhc],
.default-grid-primary-btn:focus[b-8pbl31skhc] {
    border-color: #fff;
    background: hsl(195, 100%, 34%);
    color: #fff;
}

.default-grid-search[b-8pbl31skhc] {
    display: flex;
    align-items: center;
    height: var(--dg-control);
    min-width: 17rem;
    max-width: 21rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.08);
}

.default-grid-search-icon[b-8pbl31skhc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.85rem;
    color: var(--ece-gray);
}

.default-grid-search-input[b-8pbl31skhc] {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0.3rem;
    height: 100%;
}

.default-grid-search-input:focus[b-8pbl31skhc] {
    box-shadow: none;
}

.default-grid-search-clear[b-8pbl31skhc] {
    border: 0;
    background: transparent;
    color: var(--ece-gray);
    padding: 0 0.85rem 0 0.35rem;
}

.default-grid-search-clear:hover[b-8pbl31skhc],
.default-grid-search-clear:focus[b-8pbl31skhc] {
    color: var(--ece-blue);
}

.default-grid-table-wrap[b-8pbl31skhc] {
    position: relative;
    overflow: auto;
    background: var(--ece-gray-45);
    flex: 1 1 auto;
    min-height: 0;
    scroll-padding-top: 4rem;
}

.default-grid-table-wrap:focus-visible[b-8pbl31skhc] {
    outline: 2px solid var(--ece-green);
    outline-offset: -2px;
}

.default-grid-table-wrap.is-loading[b-8pbl31skhc] {
    overflow: hidden;
}

.default-grid-table[b-8pbl31skhc] {
    margin-bottom: 0;
    --bs-table-bg: transparent;
    min-width: 40rem;
}

.default-grid-table tbody tr[b-8pbl31skhc] {
    --default-grid-row-bg: #fff;
    --default-grid-row-hover: rgba(0, 58, 93, 0.05);
}

.default-grid-table tbody tr:nth-child(even)[b-8pbl31skhc] {
    --default-grid-row-bg: var(--ece-gray-45);
}

.default-grid-table-head th[b-8pbl31skhc] {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 0;
}

.default-grid-table-head[b-8pbl31skhc] {
    --bs-table-bg: transparent;
    position: sticky;
    top: 0;
    z-index: 3;
}

.default-grid-table-head.text-white[b-8pbl31skhc],
.default-grid-table-head.text-light[b-8pbl31skhc] {
    --bs-table-color: #fff;
    color: #fff !important;
}

.default-grid-table-head.text-dark[b-8pbl31skhc] {
    --bs-table-color: #212529;
    color: #212529 !important;
}

.default-grid-table-head th[b-8pbl31skhc],
.default-grid-table-head th *[b-8pbl31skhc],
.default-grid-table-head .default-grid-sort[b-8pbl31skhc],
.default-grid-table-head .default-grid-sort i[b-8pbl31skhc],
.default-grid-table-head .default-grid-filter-btn[b-8pbl31skhc],
.default-grid-table-head .default-grid-filter-btn i[b-8pbl31skhc] {
    color: inherit !important;
}

.default-grid-column-header[b-8pbl31skhc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-width: 0;
}

.default-grid-header-cell[b-8pbl31skhc] {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.default-grid-sort[b-8pbl31skhc] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.default-grid-sort:hover[b-8pbl31skhc],
.default-grid-sort:focus[b-8pbl31skhc] {
    opacity: 0.92;
}

.default-grid-sort span[b-8pbl31skhc] {
    min-width: 0;
}

.default-grid-sort i[b-8pbl31skhc] {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.default-grid-sort.is-static[b-8pbl31skhc] {
    cursor: default;
}

.default-grid-filter-btn[b-8pbl31skhc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    flex-shrink: 0;
}

.default-grid-filter-btn.is-active[b-8pbl31skhc] {
    background: rgba(255, 255, 255, 0.24);
}

.default-grid-shell[b-8pbl31skhc]  .dropdown-menu {
    border: 1px solid var(--ece-gray-60);
    border-radius: 0.9rem;
    box-shadow: 0 0.75rem 1.4rem rgba(0, 0, 0, 0.14);
}

.default-grid-filter-menu[b-8pbl31skhc] {
    min-width: 16rem;
    padding: 0.85rem;
    color: var(--ece-blue) !important;
    background: #fff;
}

.default-grid-filter-menu *[b-8pbl31skhc],
.default-grid-filter-menu-label[b-8pbl31skhc],
.default-grid-filter-menu .btn[b-8pbl31skhc],
.default-grid-filter-menu .btn span[b-8pbl31skhc] {
    color: var(--ece-blue) !important;
}

.default-grid-filter-menu .form-control[b-8pbl31skhc] {
    background: #fff !important;
    color: #243746 !important;
    border-color: var(--ece-gray-60);
}

.default-grid-filter-menu .form-control[b-8pbl31skhc]::placeholder {
    color: var(--ece-gray) !important;
    opacity: 1;
}

.default-grid-filter-menu .btn-outline-secondary[b-8pbl31skhc] {
    border-color: var(--ece-gray-60) !important;
    background: #fff !important;
    color: var(--ece-blue) !important;
}

.default-grid-filter-menu .btn-outline-secondary:hover[b-8pbl31skhc],
.default-grid-filter-menu .btn-outline-secondary:focus[b-8pbl31skhc] {
    border-color: var(--ece-blue) !important;
    background: var(--ece-blue-20) !important;
    color: var(--ece-blue) !important;
}

.default-grid-filter-menu-label[b-8pbl31skhc] {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--ece-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.default-grid-filter-menu-actions[b-8pbl31skhc] {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.6rem;
}

.default-grid-filter-menu .btn[b-8pbl31skhc] {
    border-radius: 999px;
}

.default-grid-table tbody td[b-8pbl31skhc] {
    padding: 0.9rem 1rem;
    border-color: var(--bs-table-border-color, var(--ece-gray-60));
    vertical-align: middle;
    background: var(--bs-table-bg, var(--default-grid-row-bg));
    color: var(--bs-table-color, #243746);
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.default-grid-table tbody tr:hover td[b-8pbl31skhc] {
    box-shadow: inset 0 0 0 9999px var(--default-grid-row-hover);
}

.default-grid-detail-row > td[b-8pbl31skhc] {
    background: hsl(195, 100%, 98%) !important;
    box-shadow: none !important;
}

.default-grid-detail-cell[b-8pbl31skhc] {
    padding: 1rem 1rem 1.25rem !important;
}

.default-grid-row-action td[b-8pbl31skhc] {
    cursor: pointer;
}

.default-grid-cell[b-8pbl31skhc] {
    line-height: 1.35;
}

.default-grid-empty-cell[b-8pbl31skhc] {
    padding: 1.75rem 1rem !important;
    background: #fff !important;
}

.default-grid-loading-cell[b-8pbl31skhc] {
    padding: 0 !important;
    background: #fff !important;
}

.default-grid-loading-placeholder[b-8pbl31skhc] {
    --default-grid-loading-cols: 4;
    --default-grid-loading-rows: 6;
    min-height: calc((var(--default-grid-loading-rows) * 3.35rem) + 3.5rem);
}

.default-grid-loading-overlay[b-8pbl31skhc] {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.76);
    backdrop-filter: blur(1.5px);
}

.default-grid-loading-overlay.is-empty[b-8pbl31skhc] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.default-grid-loading-panel[b-8pbl31skhc] {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    align-self: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.08);
    color: var(--ece-blue);
    font-size: 0.92rem;
    font-weight: 700;
}

.default-grid-loading-panel .spinner-border[b-8pbl31skhc] {
    color: var(--ece-blue);
}

.default-grid-loading-skeleton[b-8pbl31skhc] {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1 1 auto;
}

.default-grid-loading-row[b-8pbl31skhc] {
    display: grid;
    grid-template-columns: repeat(var(--default-grid-loading-cols), minmax(0, 1fr));
    gap: 0.85rem;
}

.default-grid-loading-bar[b-8pbl31skhc] {
    display: block;
    height: 0.95rem;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 58, 93, 0.08) 20%, rgba(0, 58, 93, 0.18) 40%, rgba(0, 58, 93, 0.08) 60%);
    background-size: 220% 100%;
    animation: default-grid-loading-sheen-b-8pbl31skhc 1.2s ease-in-out infinite;
}

.default-grid-loading-bar.is-short[b-8pbl31skhc] {
    width: 58%;
}

.default-grid-loading-bar.is-medium[b-8pbl31skhc] {
    width: 78%;
}

@keyframes default-grid-loading-sheen-b-8pbl31skhc {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.default-grid-empty-state[b-8pbl31skhc] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: var(--ece-gray);
}

.default-grid-empty-state i[b-8pbl31skhc] {
    font-size: 1.35rem;
    color: var(--ece-blue);
}

.default-grid-empty-state strong[b-8pbl31skhc] {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--ece-blue);
}

.default-grid-footer[b-8pbl31skhc] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.default-grid-footer-summary[b-8pbl31skhc],
.default-grid-footer-controls[b-8pbl31skhc],
.default-grid-pagination[b-8pbl31skhc] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.default-grid-footer-summary[b-8pbl31skhc] {
    font-size: 0.9rem;
    font-weight: 600;
}

.default-grid-page-size[b-8pbl31skhc] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.default-grid-page-select[b-8pbl31skhc] {
    width: auto;
    min-width: 8rem;
    padding-right: 2.4rem;
    border-radius: 999px;
}

.default-grid-page-indicator[b-8pbl31skhc] {
    white-space: nowrap;
    font-weight: 600;
}

.default-grid-page-btn[b-8pbl31skhc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.3rem;
    min-height: 2.3rem;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.35rem 0.65rem;
    border-radius: 0.85rem;
    border: 1px solid var(--ece-gray-60);
    font-weight: 600;
    background: #fff;
    box-shadow: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* Outline buttons (e.g. the red trash in a nested requirement grid) turn their text/icon white on hover,
   so they need their hover colour back instead of the white background above. */
.default-grid-shell[b-8pbl31skhc]  tbody td .btn[class*="btn-outline-"]:hover:not(:disabled),
.default-grid-shell[b-8pbl31skhc]  tbody td .btn[class*="btn-outline-"]:focus-visible,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn[class*="btn-outline-"]:active {
    background: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    color: var(--bs-btn-hover-color);
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn:disabled {
    opacity: 0.45;
    box-shadow: none;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn:last-child {
    margin-right: 0;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn i {
    font-size: 0.95rem;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-ECEblue,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-dark,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-primary,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-secondary.bg-ECEblue {
    background: rgba(0, 58, 93, 0.08) !important;
    border-color: rgba(0, 58, 93, 0.16) !important;
    color: var(--ece-blue) !important;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-ECEblue:hover:not(:disabled),
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-dark:hover:not(:disabled),
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-primary:hover:not(:disabled),
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-secondary.bg-ECEblue:hover:not(:disabled),
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-ECEblue:focus,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-dark:focus,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-primary:focus,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-secondary.bg-ECEblue:focus {
    background: rgba(0, 58, 93, 0.14) !important;
    border-color: rgba(0, 58, 93, 0.28) !important;
    color: var(--ece-blue) !important;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-danger,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-danger,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-red {
    background: rgba(180, 35, 24, 0.08) !important;
    border-color: rgba(180, 35, 24, 0.18) !important;
    color: #b42318 !important;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-danger:hover:not(:disabled),
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-danger:hover:not(:disabled),
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-red:hover:not(:disabled),
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-danger:focus,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-danger:focus,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-red:focus {
    background: rgba(180, 35, 24, 0.14) !important;
    border-color: rgba(180, 35, 24, 0.28) !important;
    color: #b42318 !important;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-ECEgreen,
.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-green {
    background: rgba(138, 191, 89, 0.18) !important;
    border-color: rgba(138, 191, 89, 0.35) !important;
    color: var(--ece-blue) !important;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-teal {
    background: rgba(15, 118, 110, 0.1) !important;
    border-color: rgba(15, 118, 110, 0.22) !important;
    color: #0f766e !important;
}

.default-grid-shell[b-8pbl31skhc]  tbody td .text-danger {
    color: #b42318 !important;
}

.default-grid-header.bg-light[b-8pbl31skhc],
.default-grid-footer.bg-light[b-8pbl31skhc] {
    border-color: var(--ece-gray-60);
}

.default-grid-header.bg-light .default-grid-title-icon[b-8pbl31skhc] {
    background: var(--ece-blue-25);
    color: var(--ece-blue);
}

.default-grid-header.bg-light .default-grid-meta-pill[b-8pbl31skhc] {
    border: 1px solid var(--ece-gray-60);
    background: #fff;
    color: var(--ece-blue);
}

.default-grid-header.bg-light .default-grid-filter-btn[b-8pbl31skhc] {
    background: var(--ece-blue-20);
    color: var(--ece-blue);
}

.default-grid-footer.bg-light .default-grid-page-select[b-8pbl31skhc] {
    background: #fff;
    color: var(--ece-blue);
    border-color: var(--ece-gray-60);
}

.default-grid-footer:not(.bg-light) .default-grid-page-select[b-8pbl31skhc] {
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    border-color: rgba(255, 255, 255, 0.28);
}

.default-grid-footer:not(.bg-light) .default-grid-page-select option[b-8pbl31skhc] {
    color: #000;
}

@media (prefers-reduced-motion: reduce) {
    .default-grid-loading-bar[b-8pbl31skhc] {
        animation: none;
    }
}

@media print {
    .default-grid-shell[b-8pbl31skhc] {
        height: auto !important;
        overflow: visible;
        display: block;
    }

    .default-grid-table-wrap[b-8pbl31skhc] {
        overflow: visible;
    }

    .default-grid-table[b-8pbl31skhc] {
        min-width: 0;
    }

    .default-grid-table-head[b-8pbl31skhc] {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .default-grid-header[b-8pbl31skhc],
    .default-grid-footer[b-8pbl31skhc] {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .default-grid-header-main[b-8pbl31skhc],
    .default-grid-footer[b-8pbl31skhc] {
        flex-direction: column;
        align-items: stretch;
    }

    .default-grid-toolbar[b-8pbl31skhc],
    .default-grid-footer-controls[b-8pbl31skhc] {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .default-grid-search[b-8pbl31skhc] {
        min-width: 100%;
        max-width: none;
    }

    .default-grid-pagination[b-8pbl31skhc] {
        width: 100%;
        justify-content: space-between;
    }

    .default-grid-page-indicator[b-8pbl31skhc] {
        order: -1;
        width: 100%;
    }
}

/* ---------- Phones: compact header and footer, rows as cards (no sideways scrolling) ---------- */
@media (max-width: 575.98px) {
    .default-grid-header[b-8pbl31skhc] {
        padding: 0.5rem 0.65rem;
    }

    .default-grid-header-main[b-8pbl31skhc] {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem;
    }

    .default-grid-title-block[b-8pbl31skhc] {
        flex: 1 1 auto;
        align-items: center;
        gap: 0.5rem;
    }

    .default-grid-shell[b-8pbl31skhc] {
        --dg-control: 2.1rem;
    }

    .default-grid-title-icon[b-8pbl31skhc] {
        border-radius: 0.55rem;
    }

    .default-grid-title-icon i[b-8pbl31skhc] {
        font-size: 0.95rem;
    }

    .default-grid-title[b-8pbl31skhc] {
        font-size: 1rem;
    }

    /* "N records / Rows 1-10" repeats the footer. */
    .default-grid-header-meta[b-8pbl31skhc],
    .default-grid-title-actions .default-grid-print-btn[b-8pbl31skhc] {
        display: none;
    }

    .default-grid-toolbar[b-8pbl31skhc] {
        flex: 1 1 100%;
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .default-grid-toolbar-custom[b-8pbl31skhc] {
        flex-wrap: nowrap;
    }

    .default-grid-search[b-8pbl31skhc] {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }


    .default-grid-btn-text[b-8pbl31skhc] {
        display: none;
    }

    .default-grid-toolbar-btn[b-8pbl31skhc],
    .default-grid-toolbar .default-grid-filter-toggle[b-8pbl31skhc] {
        padding: 0 0.65rem;
    }

    .default-grid-header-sub[b-8pbl31skhc] {
        margin-top: 0.45rem;
        padding-top: 0;
        border-top: 0;
    }

    /* Rows become cards: the first column is the card's title, the rest are labelled lines. */
    .default-grid-table[b-8pbl31skhc] {
        min-width: 0;
    }

    .default-grid-table thead[b-8pbl31skhc] {
        display: none;
    }

    .default-grid-table[b-8pbl31skhc],
    .default-grid-table tbody[b-8pbl31skhc],
    .default-grid-table tbody tr[b-8pbl31skhc],
    .default-grid-table tbody td[b-8pbl31skhc] {
        display: block;
        width: 100%;
    }

    /* Row colours (e.g. table-danger) normally paint only the cells; paint the whole card so the
       card's padding is a margin of colour around the text rather than a white strip. */
    .default-grid-table tbody tr[b-8pbl31skhc] {
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        background-color: var(--bs-table-bg);
    }

    .default-grid-table tbody td[b-8pbl31skhc] {
        display: flex;
        align-items: baseline;
        gap: 0.6rem;
        width: auto !important;
        max-width: none !important;
        padding: 0.1rem 0;
        border: 0;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    /* Label on the left, everything in the cell stacked on the right. */
    .default-grid-table tbody td[data-label]:not([data-label=""])[b-8pbl31skhc] {
        display: grid;
        grid-template-columns: 6.5rem minmax(0, 1fr);
        column-gap: 0.6rem;
        row-gap: 0;             /* the label spans several implicit rows; gaps between them would add blank space */
        align-items: start;
        justify-items: start;   /* badges and buttons keep their own width */
    }

    .default-grid-table tbody td[data-label]:not([data-label=""]) > *[b-8pbl31skhc] {
        grid-column: 2;
    }

    .default-grid-table tbody td[data-label]:not([data-label=""])[b-8pbl31skhc]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1 / span 8;
        padding-top: 0.15rem;
        color: var(--ece-gray);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .default-grid-table tbody tr[b-8pbl31skhc] {
        position: relative;
    }

    /* Card title: the first column, or the second when the first is an unlabelled status icon. */
    .default-grid-table tbody td:first-child[b-8pbl31skhc],
    .default-grid-table tbody td:first-child[data-label=""] + td[b-8pbl31skhc] {
        font-size: 1rem;
        font-weight: 600;
        padding-right: 2rem;
    }

    .default-grid-table tbody td:first-child[b-8pbl31skhc]::before,
    .default-grid-table tbody td:first-child[data-label=""] + td[b-8pbl31skhc]::before {
        display: none;
    }

    .default-grid-table tbody td[data-label]:first-child[b-8pbl31skhc],
    .default-grid-table tbody td:first-child[data-label=""] + td[data-label][b-8pbl31skhc] {
        display: block;
    }

    /* An unlabelled first column (a status icon) sits in the card's top-right corner. */
    .default-grid-table tbody td:first-child[data-label=""][b-8pbl31skhc] {
        position: absolute;
        top: 0.55rem;
        right: 0.75rem;
        width: auto;
        padding: 0;
    }

    /* Record-keeping dates aren't worth two lines per card on a phone. */
    .default-grid-table tbody td[data-label^="Created"][b-8pbl31skhc],
    .default-grid-table tbody td[data-label^="Updated"][b-8pbl31skhc] {
        display: none !important;
    }

    .default-grid-table tbody td[colspan][b-8pbl31skhc] {
        display: block;
    }

    /* Cards that open a record: one tap opens it (gridViewport.js), shown by a chevron and a pressed state. */
    .default-grid-table tbody tr.default-grid-row-action[b-8pbl31skhc] {
        padding-right: 1.9rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .default-grid-table tbody tr.default-grid-row-action[b-8pbl31skhc]::after {
        content: "\F285"; /* bi-chevron-right */
        position: absolute;
        top: 50%;
        right: 0.6rem;
        transform: translateY(-50%);
        color: var(--ece-gray);
        font-family: "bootstrap-icons";
        font-size: 0.95rem;
        pointer-events: none;
    }

    .default-grid-table tbody tr.default-grid-row-action:active[b-8pbl31skhc] {
        background: rgba(0, 58, 93, 0.06);
    }

    /* Expanded detail (e.g. a child's requirements): use the card's full width. */
    .default-grid-table tbody tr.default-grid-detail-row[b-8pbl31skhc] {
        padding: 0.25rem 0.15rem;
    }

    .default-grid-table tbody td.default-grid-detail-cell[b-8pbl31skhc] {
        padding: 0 !important;
    }

    .default-grid-table tbody td[colspan][b-8pbl31skhc]::before {
        display: none;
    }

    /* Footer: one line — "1-10 of 22   ‹ Page 1 of 3 ›". */
    .default-grid-footer[b-8pbl31skhc] {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 0.65rem;
    }

    .default-grid-footer-summary[b-8pbl31skhc] {
        min-width: 0;
        font-size: 0.8rem;
    }

    .default-grid-footer-summary i[b-8pbl31skhc],
    .default-grid-page-size[b-8pbl31skhc],
    .default-grid-page-edge[b-8pbl31skhc] {
        display: none !important;
    }

    .default-grid-footer-controls[b-8pbl31skhc] {
        margin-left: auto;
        flex-wrap: nowrap;
    }

    .default-grid-pagination[b-8pbl31skhc] {
        width: auto;
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .default-grid-page-indicator[b-8pbl31skhc] {
        order: 0;
        width: auto;
        font-size: 0.8rem;
    }

    .default-grid-page-btn[b-8pbl31skhc] {
        width: 2rem;
        height: 2rem;
        min-height: 2rem;
    }
}

.default-grid-header.bg-light .default-grid-header-sub[b-8pbl31skhc] {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* ==== Dark mode (generated from the rules above; see darkify notes in the form-redesign branch) ==== */
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc] {
    --ece-blue: var(--win-accent);
    --ece-blue-35: var(--win-edge-strong);
    --ece-blue-25: rgba(96, 205, 255, 0.14);
    --ece-blue-20: rgba(96, 205, 255, 0.07);
    --ece-green: var(--win-control);
    --ece-gray: var(--win-text-2);
    --ece-gray-60: var(--win-edge-strong);
    --ece-gray-50: var(--win-subtle);
    --ece-gray-45: var(--win-card);
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-toolbar .btn-outline-light:hover[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-toolbar .btn-outline-light:focus[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-title-actions .btn-outline-light:hover[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-title-actions .btn-outline-light:focus[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-title-actions[b-8pbl31skhc]  .btn-outline-light:hover,
:root[data-bs-theme="dark"] .default-grid-title-actions[b-8pbl31skhc]  .btn-outline-light:focus,
:root[data-bs-theme="dark"] .default-grid-footer .btn-outline-light:hover[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-footer .btn-outline-light:focus[b-8pbl31skhc] {
    border-color: var(--form-line);
}

:root[data-bs-theme="dark"] .default-grid-toolbar .btn-outline-dark[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-footer .btn-outline-dark[b-8pbl31skhc] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-primary-btn[b-8pbl31skhc] {
    border: 1px solid var(--form-line);
}

:root[data-bs-theme="dark"] .default-grid-primary-btn:hover[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-primary-btn:focus[b-8pbl31skhc] {
    border-color: var(--form-line);
}

:root[data-bs-theme="dark"] .default-grid-search[b-8pbl31skhc] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-table-head.text-dark[b-8pbl31skhc] {
    --bs-table-color: var(--form-ink);
    color: var(--form-ink) !important;
}

:root[data-bs-theme="dark"] .default-grid-filter-menu[b-8pbl31skhc] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-filter-menu .form-control[b-8pbl31skhc] {
    background: var(--form-surface) !important;
    color: var(--form-ink) !important;
}

:root[data-bs-theme="dark"] .default-grid-filter-menu .btn-outline-secondary[b-8pbl31skhc] {
    background: var(--form-surface) !important;
}

:root[data-bs-theme="dark"] .default-grid-table tbody td[b-8pbl31skhc] {
    color: var(--form-ink);
}

:root[data-bs-theme="dark"] .default-grid-detail-row > td[b-8pbl31skhc] {
    background: var(--form-surface) !important;
}

:root[data-bs-theme="dark"] .default-grid-empty-cell[b-8pbl31skhc] {
    background: var(--form-surface) !important;
}

:root[data-bs-theme="dark"] .default-grid-loading-cell[b-8pbl31skhc] {
    background: var(--form-surface) !important;
}

:root[data-bs-theme="dark"] .default-grid-loading-overlay[b-8pbl31skhc] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-loading-overlay.is-empty[b-8pbl31skhc] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-loading-panel[b-8pbl31skhc] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-danger,
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-danger,
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-red {
    color: var(--form-muted) !important;
}

:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-danger:hover:not(:disabled),
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-danger:hover:not(:disabled),
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-red:hover:not(:disabled),
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-danger:focus,
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.btn-danger:focus,
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-red:focus {
    color: var(--form-muted) !important;
}

:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn.bg-teal {
    color: var(--form-muted) !important;
}

:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .text-danger {
    color: var(--form-muted) !important;
}

:root[data-bs-theme="dark"] .default-grid-header.bg-light .default-grid-meta-pill[b-8pbl31skhc] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-footer.bg-light .default-grid-page-select[b-8pbl31skhc] {
    background: var(--form-surface);
}

:root[data-bs-theme="dark"] .default-grid-footer:not(.bg-light) .default-grid-page-select option[b-8pbl31skhc] {
    color: var(--form-ink);
}
/* ==== End dark mode ==== */

/* Search box in dark mode: one light field (WinUI text box), white text, accent underline while typing. */
:root[data-bs-theme="dark"] .default-grid-search[b-8pbl31skhc] {
    background: #3a3a3a;
    border-color: var(--win-edge-strong);
    box-shadow: none;
}

:root[data-bs-theme="dark"] .default-grid-search:focus-within[b-8pbl31skhc] {
    background: #2f2f2f;
    box-shadow: inset 0 -2px 0 var(--win-accent);
}

:root[data-bs-theme="dark"] .default-grid-search .default-grid-search-input[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-search .default-grid-search-input:focus[b-8pbl31skhc] {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--win-text);
}

:root[data-bs-theme="dark"] .default-grid-search .default-grid-search-input[b-8pbl31skhc]::placeholder { color: var(--win-text-2); }
:root[data-bs-theme="dark"] .default-grid-search-icon[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-search-clear[b-8pbl31skhc] { color: var(--win-text-2); }

/* "New" in dark mode: the accent button, same as Save / Create on the forms. */
:root[data-bs-theme="dark"] .default-grid-primary-btn[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-primary-btn:hover[b-8pbl31skhc],
:root[data-bs-theme="dark"] .default-grid-primary-btn:focus[b-8pbl31skhc] {
    background: var(--win-fill);
    border-color: var(--win-fill);
    color: var(--win-on-fill);
}

:root[data-bs-theme="dark"] .default-grid-primary-btn:hover[b-8pbl31skhc] { background: var(--win-fill-hover); }

/* Row buttons in dark mode (edit, text, email, deactivate): WinUI buttons with white icons, so they read clearly;
   red / green icons keep their meaning; disabled ones are plainly faded. */
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn {
    background: var(--win-control) !important;
    border: 1px solid var(--win-edge-strong) !important;
    color: var(--win-text) !important;
    box-shadow: none !important;
}

:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn:hover:not(:disabled) {
    background: var(--win-control-hover) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn:is(.bg-danger, .btn-danger, .btn-outline-danger) { color: #ff99a4 !important; }
:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn:is(.bg-success, .btn-success) { color: #6ccb5f !important; }

:root[data-bs-theme="dark"] .default-grid-shell[b-8pbl31skhc]  tbody td .btn:disabled {
    opacity: 0.35;
    background: transparent !important;
}
/* /Components/Shared/FormChangeHistory.razor.rz.scp.css */
/* Record history at the bottom of a form's Summary card. Uses the form tokens, so it follows light / dark. */
.fch[b-kf5u85scuf] {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--form-line);
}

.fch-toggle[b-kf5u85scuf] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    color: var(--form-ink);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
}

.fch-toggle:hover .fch-toggle-text[b-kf5u85scuf] {
    text-decoration: underline;
}

.fch-chevron[b-kf5u85scuf] {
    margin-left: auto;
    color: var(--form-muted);
}

.fch-body[b-kf5u85scuf] {
    margin-top: 0.4rem;
}

.fch-note[b-kf5u85scuf] {
    font-size: 0.8125rem;
    color: var(--form-muted);
    padding: 0.25rem 0;
}

.fch-list[b-kf5u85scuf] {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 45vh;
    overflow-y: auto;
}

.fch-item[b-kf5u85scuf] {
    padding: 0.55rem 0;
    border-top: 1px solid var(--form-line);
    font-size: 0.8125rem;
}

.fch-item:first-child[b-kf5u85scuf] {
    border-top: 0;
    padding-top: 0;
}

.fch-head[b-kf5u85scuf] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.fch-record[b-kf5u85scuf] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--form-ink);
}

.fch-meta[b-kf5u85scuf] {
    margin-top: 0.15rem;
    color: var(--form-muted);
    font-size: 0.75rem;
}

.fch-field[b-kf5u85scuf] {
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
    color: var(--form-text);
}

.fch-field-name[b-kf5u85scuf] {
    color: var(--form-muted);
    margin-right: 0.3rem;
}

.fch-field-name[b-kf5u85scuf]::after {
    content: ":";
}

.fch-old[b-kf5u85scuf] {
    color: var(--form-muted);
    text-decoration: line-through;
}

.fch-new[b-kf5u85scuf] {
    font-weight: 600;
}

.fch-more[b-kf5u85scuf] {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--form-muted);
}

.fch-badge[b-kf5u85scuf] {
    flex: none;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.fch-badge.is-changed[b-kf5u85scuf] {
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
}

.fch-badge.is-added[b-kf5u85scuf] {
    color: var(--bs-success-text-emphasis);
    background: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
}

.fch-badge.is-deleted[b-kf5u85scuf] {
    color: var(--bs-danger-text-emphasis);
    background: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
}

.fch-badge.is-warning[b-kf5u85scuf] {
    color: var(--bs-warning-text-emphasis);
    background: var(--bs-warning-bg-subtle);
    border-color: var(--bs-warning-border-subtle);
}

.fch-footer[b-kf5u85scuf] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--form-line);
}

.fch-footer .btn-link[b-kf5u85scuf] {
    font-size: 0.8125rem;
    min-height: 2.25rem;
}
/* /Components/Shared/FormCommandBar.razor.rz.scp.css */
/* The one bar on every form, in its section's colour (same colours as the old form headers and the menu).
   Text and buttons are white on it; Save after an edit is the one solid white button. */
.form-command-bar[b-38gtzknb7q] {
    --fcb-bg: hsl(195, 100%, 18%);
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--fcb-bg);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.fcb-theme-blue[b-38gtzknb7q] { --fcb-bg: hsl(195, 100%, 18%); }
.fcb-theme-teal[b-38gtzknb7q] { --fcb-bg: hsl(180, 50%, 25%); }
.fcb-theme-red[b-38gtzknb7q] { --fcb-bg: hsl(0, 35%, 33%); }
.fcb-theme-green[b-38gtzknb7q] { --fcb-bg: hsl(81, 50%, 26%); }

.fcb-row[b-38gtzknb7q] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.25rem;
}

.fcb-identity[b-38gtzknb7q] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 20rem;
    min-width: 0;
}

.fcb-text[b-38gtzknb7q] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.fcb-name-row[b-38gtzknb7q] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.fcb-name[b-38gtzknb7q] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcb-sub[b-38gtzknb7q] {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcb-dot[b-38gtzknb7q] {
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.fcb-dot.is-active[b-38gtzknb7q] { background: #3ccf7e; }
.fcb-dot.is-inactive[b-38gtzknb7q] { background: #9aa7b2; }

.fcb-actions[b-38gtzknb7q] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.fcb-status[b-38gtzknb7q] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.35rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.fcb-status.is-unsaved[b-38gtzknb7q] { color: #ffe08a; font-weight: 600; }

.fcb-status-dot[b-38gtzknb7q] {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #ffc53d;
}

.fcb-icon-button[b-38gtzknb7q] {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    background: transparent;
    color: #fff;
}

.fcb-icon-button:hover[b-38gtzknb7q] { background: rgba(255, 255, 255, 0.14); }

.fcb-button[b-38gtzknb7q] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 2.25rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.5rem;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.fcb-button:hover:not(:disabled)[b-38gtzknb7q] {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.fcb-button:disabled[b-38gtzknb7q] { color: rgba(255, 255, 255, 0.6); }

.fcb-ghost[b-38gtzknb7q] { border-color: transparent; }

.fcb-more[b-38gtzknb7q] { padding: 0 0.65rem; }

/* Save after an edit (and Create / Send): solid white, in the section colour. */
.fcb-primary[b-38gtzknb7q],
.fcb-primary:focus[b-38gtzknb7q] {
    padding: 0 1.25rem;
    border-color: #fff;
    background: #fff;
    color: var(--fcb-bg);
    font-weight: 700;
}

.fcb-primary:hover:not(:disabled)[b-38gtzknb7q] { background: rgba(255, 255, 255, 0.88); color: var(--fcb-bg); }
.fcb-primary:disabled[b-38gtzknb7q] { background: rgba(255, 255, 255, 0.55); border-color: transparent; color: var(--fcb-bg); }

.fcb-button:focus-visible[b-38gtzknb7q],
.fcb-icon-button:focus-visible[b-38gtzknb7q] {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: none;
}

.fcb-menu[b-38gtzknb7q] { font-size: 0.875rem; }

/* Inactive record: a strip under the bar with Activate (the Deactivate button lives in the bar). */
.fcb-inactive[b-38gtzknb7q] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 1.25rem;
    background: #fff4d6;
    color: #5c4400;
    font-size: 0.875rem;
}

.fcb-inactive-text[b-38gtzknb7q] { flex: 1 1 12rem; min-width: 0; }

.fcb-activate[b-38gtzknb7q] {
    height: 2rem;
    padding: 0 0.9rem;
    border: 1px solid #5c4400;
    border-radius: 0.5rem;
    background: transparent;
    color: #5c4400;
    font-weight: 600;
}

.fcb-activate:hover:not(:disabled)[b-38gtzknb7q] { background: #5c4400; color: #fff4d6; }
.fcb-activate:disabled[b-38gtzknb7q] { opacity: 0.55; }
.fcb-activate:focus-visible[b-38gtzknb7q] { outline: 2px solid #5c4400; outline-offset: 2px; box-shadow: none; }

@media (max-width: 575.98px) {
    .fcb-row[b-38gtzknb7q] { padding: 0.6rem 1rem; }
    .fcb-name[b-38gtzknb7q] { font-size: 1.1rem; }
    .fcb-actions[b-38gtzknb7q] { width: 100%; }
    .fcb-inactive[b-38gtzknb7q] { padding: 0.5rem 1rem; }
}
