html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

:root {
    --enti-navy: #173a68;
    --enti-navy-dark: #102d52;
    --enti-blue: #3568b8;
    --enti-blue-soft: #edf3fb;
    --enti-accent: #6b96c9;
    --enti-accent-strong: #4f7fb9;
    --enti-accent-soft: #eaf2fb;
    --enti-green: #2f7d51;
    --enti-green-soft: #eaf5ef;
    --enti-amber: #a96f08;
    --enti-amber-soft: #fff6df;
    --enti-red: #b63746;
    --enti-red-soft: #fbecef;
    --enti-ink: #172b4a;
    --enti-muted: #627188;
    --enti-border: #d8e0ea;
    --enti-border-strong: #c4cfdd;
    --enti-surface: #ffffff;
    --enti-canvas: #f3f6f9;
    --enti-shadow: 0 8px 24px rgba(23, 43, 74, 0.08);
}

.enti-portal-body,
.enti-login-page {
    min-height: 100vh;
    margin: 0;
    color: var(--enti-ink);
    background: var(--enti-canvas);
    font-family: "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

body.modal-open {
    padding-right: 0 !important;
}

.portal-header,
.enti-login-header {
    height: 96px;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--enti-border);
}

.portal-header img,
.enti-login-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

@media (min-width: 1500px) {
    .portal-header,
    .enti-login-header {
        background: #bed8f3;
    }

    .portal-header img,
    .enti-login-header img {
        object-fit: contain;
    }
}

.portal-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 68px;
    padding: 0;
    background: linear-gradient(90deg, var(--enti-navy-dark), var(--enti-navy));
    border-bottom: 3px solid var(--enti-accent);
    box-shadow: 0 5px 16px rgba(16, 45, 82, 0.16);
}

.portal-nav-shell {
    position: relative;
    min-height: 65px;
}

.portal-nav .navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 65px;
    margin-right: 24px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
}

.portal-nav .brand-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 7px;
    font-size: 1.08rem;
}

@media (min-width: 992px) {
    .portal-nav .navbar-collapse {
        min-width: 0;
        justify-content: flex-end;
    }

    .portal-menu {
        position: absolute;
        top: 50%;
        left: 50%;
        display: grid;
        width: 452px;
        padding: 5px;
        grid-template-columns: 116px 198px 116px;
        gap: 3px;
        background: rgba(8, 29, 57, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        transform: translate(-50%, -50%);
    }

    .portal-nav .nav-link {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .portal-nav .navbar-brand {
        width: 280px;
        flex: 0 0 280px;
    }

    .portal-account {
        width: 300px;
        flex: 0 0 300px;
        justify-content: flex-end;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .portal-nav .navbar-brand {
        margin-right: 8px;
    }

    .portal-nav .brand-label,
    .portal-nav .account-name {
        display: none;
    }

    .portal-account {
        padding-left: 12px;
    }
}

.portal-nav .nav-link {
    position: relative;
    display: inline-flex;
    min-height: 43px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.portal-nav .nav-link:hover,
.portal-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.1);
}

.portal-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 -2px 0 #8ab4e2;
}

.portal-nav .nav-link i {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #c7daf6;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    font-size: 0.95rem;
}

.portal-nav .nav-link.active i {
    color: #fff;
    background: rgba(107, 150, 201, 0.46);
}

.portal-account {
    display: flex;
    min-width: 0;
    padding-left: 18px;
    align-items: center;
    gap: 10px;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.portal-account-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.portal-notifications {
    flex: 0 0 auto;
}

.notification-button {
    position: relative;
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1rem;
    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}

.notification-button:hover,
.notification-button:focus,
.notification-button[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.36);
}

.notification-button:focus-visible {
    outline: 3px solid rgba(114, 200, 146, 0.45);
    outline-offset: 2px;
}

.install-app-button[hidden] {
    display: none !important;
}

.install-app-button {
    color: #dbe9ff;
}

.install-app-button:hover,
.install-app-button:focus {
    color: #fff;
}

.install-help-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--enti-border);
    border-radius: 8px;
    box-shadow: 0 22px 56px rgba(12, 35, 67, 0.24);
}

.install-help-modal .modal-header {
    padding: 18px 20px;
    color: #fff;
    background: var(--enti-navy);
    border-bottom: 0;
}

.install-help-modal .btn-close {
    filter: invert(1) grayscale(1);
}

.install-help-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.install-help-heading > span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #e6efff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.install-help-heading .modal-title {
    font-size: 1rem;
    font-weight: 750;
}

.install-help-heading small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
}

.install-help-modal .modal-body {
    padding: 20px;
    color: var(--enti-ink);
    font-size: 0.88rem;
    line-height: 1.65;
}

.install-help-modal .modal-body p {
    margin: 0;
}

.install-help-modal .modal-footer {
    padding: 12px 20px 18px;
    border-top: 0;
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    color: #fff;
    background: #cf3c4d;
    border: 2px solid var(--enti-navy);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
}

.notification-menu {
    width: min(360px, calc(100vw - 24px));
    margin-top: 12px !important;
    padding: 0;
    overflow: hidden;
    color: var(--enti-ink);
    background: #fff;
    border: 1px solid var(--enti-border);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 39, 70, 0.18);
}

.notification-menu-head {
    display: flex;
    padding: 15px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--enti-border);
}

.notification-menu-head strong,
.notification-menu-head span {
    display: block;
}

.notification-menu-head strong {
    font-size: 0.92rem;
}

.notification-menu-head > div > span {
    margin-top: 2px;
    color: var(--enti-muted);
    font-size: 0.72rem;
}

.notification-summary {
    padding: 4px 8px;
    color: #8a5b04;
    background: var(--enti-amber-soft);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    white-space: nowrap;
}

.notification-item,
.notification-empty {
    display: grid;
    padding: 15px 16px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.notification-item {
    color: var(--enti-ink);
    text-decoration: none;
}

.notification-item:hover,
.notification-item:focus {
    color: var(--enti-ink);
    background: #f8fafc;
}

.notification-item-icon,
.notification-empty > span {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
}

.notification-item-warning .notification-item-icon {
    color: var(--enti-amber);
    background: var(--enti-amber-soft);
}

.notification-empty > span {
    color: var(--enti-green);
    background: var(--enti-green-soft);
}

.notification-item strong,
.notification-item small,
.notification-empty strong,
.notification-empty small {
    display: block;
}

.notification-item strong,
.notification-empty strong {
    font-size: 0.82rem;
}

.notification-item small,
.notification-empty small {
    margin-top: 3px;
    color: var(--enti-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.account-name {
    max-width: 240px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.logout-icon:hover,
.logout-icon:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
}

.portal-main {
    width: min(1480px, calc(100% - 36px));
    margin: 30px auto 44px;
    flex: 1;
}

.profile-view .portal-main,
.password-view .portal-main {
    margin-top: 18px;
    margin-bottom: 24px;
}

.portal-footer {
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.86);
    background: var(--enti-navy-dark);
    border-top: 3px solid var(--enti-accent);
    font-size: 0.8rem;
    text-align: center;
}

.enti-page-heading,
.page-heading,
.page-head {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.enti-page-heading h1,
.page-heading h1,
.page-head h1 {
    margin: 0;
    color: var(--enti-ink);
    font-size: 1.55rem;
    font-weight: 750;
    line-height: 1.25;
}

.enti-eyebrow {
    margin-bottom: 5px;
    color: var(--enti-accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.enti-page-subtitle,
.entity-code,
.page-head .text-muted,
.page-heading .text-muted {
    margin-top: 5px;
    color: var(--enti-muted) !important;
    font-size: 0.88rem;
}

.enti-portal-body .btn,
.enti-login-page .btn,
.enti-admin .btn,
.entity-page .btn,
.admin-panel .btn,
.entity-form .btn {
    display: inline-flex;
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.portal-primary-action {
    width: 210px;
    min-height: 46px !important;
}

.center-add-button {
    display: inline-flex;
    min-height: 50px !important;
    padding: 6px 16px 6px 7px;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: #254878 !important;
    border-color: #315887 !important;
    border-radius: 7px;
    box-shadow: 0 5px 14px rgba(23, 58, 104, 0.14);
}

.center-add-button-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: #e7f1fc;
    background: rgba(124, 169, 220, 0.2);
    border: 1px solid rgba(183, 211, 241, 0.28);
    border-radius: 6px;
    font-size: 1rem;
}

.center-add-button-label {
    flex: 1 1 auto;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.center-add-button:hover,
.center-add-button:focus-visible {
    background: #1d3d6a !important;
    border-color: #7da7d8 !important;
    box-shadow: 0 6px 16px rgba(23, 58, 104, 0.18);
}

.center-add-button:focus-visible {
    outline: 3px solid rgba(107, 150, 201, 0.28);
    outline-offset: 2px;
}

.center-add-button:active {
    background: #132f55 !important;
    box-shadow: 0 3px 9px rgba(23, 58, 104, 0.14);
}

.filter-action {
    width: 132px;
}

.enti-portal-body .btn-primary,
.enti-login-page .btn-primary,
.enti-admin .btn-primary,
.entity-page .btn-primary,
.admin-panel .btn-primary,
.entity-form .btn-primary {
    color: #fff;
    background: var(--enti-navy);
    border-color: var(--enti-navy);
}

.enti-portal-body .btn-primary:hover,
.enti-portal-body .btn-primary:focus,
.enti-login-page .btn-primary:hover,
.enti-login-page .btn-primary:focus,
.enti-admin .btn-primary:hover,
.entity-page .btn-primary:hover,
.admin-panel .btn-primary:hover,
.entity-form .btn-primary:hover {
    color: #fff;
    background: var(--enti-navy-dark);
    border-color: var(--enti-navy-dark);
}

.enti-portal-body .form-control,
.enti-portal-body .form-select,
.enti-login-page .form-control,
.enti-admin .form-control,
.enti-admin .form-select,
.entity-page .form-control,
.entity-page .form-select,
.admin-panel .form-control,
.admin-panel .form-select,
.entity-form .form-control,
.entity-form .form-select {
    min-height: 44px;
    color: var(--enti-ink);
    background-color: #fff;
    border-color: var(--enti-border);
    border-radius: 6px;
}

.enti-portal-body .form-control:focus,
.enti-portal-body .form-select:focus,
.enti-login-page .form-control:focus,
.enti-admin .form-control:focus,
.enti-admin .form-select:focus,
.entity-page .form-control:focus,
.admin-panel .form-control:focus,
.entity-form .form-control:focus {
    border-color: var(--enti-blue);
    box-shadow: 0 0 0 0.2rem rgba(53, 104, 184, 0.12);
}

.enti-portal-body .form-label,
.enti-login-page .form-label,
.enti-admin .form-label,
.admin-panel .form-label,
.entity-form .form-label {
    color: #283d5d;
    font-size: 0.86rem;
    font-weight: 700;
}

.portal-alert {
    display: flex;
    padding: 13px 15px;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--enti-border);
    border-left-width: 4px;
    border-radius: 6px;
    box-shadow: none;
}

.portal-alert.alert-success {
    color: #215f3e;
    border-left-color: var(--enti-green);
}

.portal-alert.alert-danger {
    color: #8e2633;
    border-left-color: var(--enti-red);
}

.metrics,
.summary-grid,
.submission-meta {
    display: grid;
    gap: 14px;
}

.metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.metric,
.summary-item,
.meta-item {
    min-width: 0;
    background: var(--enti-surface);
    border: 1px solid var(--enti-border);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(23, 43, 74, 0.05);
}

.metric {
    display: flex;
    min-height: 112px;
    padding: 18px;
    align-items: center;
    gap: 14px;
}

.metric-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    color: var(--enti-blue);
    background: var(--enti-blue-soft);
    border-radius: 8px;
    font-size: 1.3rem;
}

.metric:nth-child(2) .metric-icon {
    color: var(--enti-green);
    background: var(--enti-green-soft);
}

.metric:nth-child(3) .metric-icon {
    color: var(--enti-amber);
    background: var(--enti-amber-soft);
}

.metric:nth-child(4) .metric-icon {
    color: #65538f;
    background: #f1eef8;
}

.metric-status {
    border-top-width: 3px;
}

.metric-status-success {
    border-top-color: var(--enti-green);
}

.metric-status-warning {
    border-top-color: #d69718;
}

.metric-status-success .metric-icon {
    color: var(--enti-green);
    background: var(--enti-green-soft);
}

.metric-status-warning .metric-icon {
    color: var(--enti-amber);
    background: var(--enti-amber-soft);
}

.metric-status-value {
    font-size: 1.08rem;
}

.metric-status-success .metric-status-value {
    color: var(--enti-green);
}

.metric-status-warning .metric-status-value {
    color: var(--enti-amber);
}

.metric-value {
    overflow-wrap: anywhere;
    color: var(--enti-ink);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.metric-label {
    margin-top: 5px;
    color: var(--enti-muted);
    font-size: 0.82rem;
}

.summary,
.centers-panel,
.availability-panel,
.profile-section,
.password-panel,
.admin-panel,
.enti-admin,
.entity-page,
.entity-form {
    background: #fff;
    border: 1px solid var(--enti-border);
    border-radius: 8px;
    box-shadow: var(--enti-shadow);
}

.summary,
.centers-panel,
.availability-panel,
.profile-section,
.password-panel,
.admin-panel,
.entity-form {
    overflow: hidden;
}

.summary-head,
.enti-section-header {
    display: flex;
    min-height: 58px;
    padding: 14px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border-bottom: 1px solid var(--enti-border);
}

.summary-head h2,
.enti-section-header h2 {
    margin: 0;
    color: var(--enti-ink);
    font-size: 1rem;
    font-weight: 750;
}

.filter-bar,
.filter-row {
    display: grid;
    padding: 15px;
    gap: 11px;
    background: #fff;
    border: 1px solid var(--enti-border);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(23, 43, 74, 0.04);
}

.filter-bar {
    grid-template-columns: minmax(220px, 1fr) 230px;
    margin-bottom: 16px;
}

.auto-filter-form {
    align-items: center;
}

.auto-filter-form[aria-busy="true"] {
    cursor: progress;
}

.auto-filter-form .input-group-text {
    width: 46px;
    justify-content: center;
}

.auto-filter-spinner {
    width: 1rem;
    height: 1rem;
    color: var(--enti-blue);
    border-width: 2px;
}

.centers-results[aria-busy="true"] .centers-panel {
    opacity: 0.72;
}

.filter-row {
    grid-template-columns: minmax(220px, 1fr) auto;
    margin-bottom: 18px;
}

.enti-portal-body .table,
.enti-admin .table,
.entity-page .table,
.admin-panel .table {
    margin: 0;
    color: var(--enti-ink);
    border-color: var(--enti-border);
}

.enti-portal-body .table thead th,
.enti-admin .table thead th,
.entity-page .table thead th,
.admin-panel .table thead th {
    padding: 12px 11px;
    color: #263d5e;
    background: #e8f0fa;
    border-color: #cdd8e6;
    font-size: 0.8rem;
    font-weight: 750;
    vertical-align: middle;
    white-space: nowrap;
}

.enti-portal-body .table tbody td,
.enti-admin .table tbody td,
.entity-page .table tbody td,
.admin-panel .table tbody td {
    padding: 11px;
    border-color: #e2e7ee;
    vertical-align: middle;
}

.enti-portal-body .table tbody tr:hover td,
.enti-admin .table tbody tr:hover td,
.entity-page .table tbody tr:hover td,
.admin-panel .table tbody tr:hover td {
    background: #f7f9fc;
}

.centers-table {
    min-width: 820px;
    table-layout: fixed;
}

.enti-portal-body .centers-table thead th {
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    font-size: 0.72rem;
    line-height: 1.2;
}

.centers-table th:nth-child(1) {
    width: 145px;
}

.centers-table th:nth-child(3) {
    width: 165px;
}

.centers-table th:nth-child(4) {
    width: 120px;
}

.centers-table th:nth-child(5) {
    width: 180px;
}

.center-code {
    color: var(--enti-ink);
    font-size: 0.84rem;
    font-weight: 750;
    white-space: nowrap;
}

.center-table-name {
    color: var(--enti-ink);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.center-table-address {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    line-height: 1.3;
}

.center-table-value {
    display: inline-block;
    font-size: 0.84rem;
}

.center-state-cell,
.center-actions-cell {
    text-align: center;
}

.center-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: var(--enti-green);
    border-radius: 50%;
}

.badge-active,
.status-active {
    color: #216b43;
    background: var(--enti-green-soft);
    border: 1px solid #cce7d8;
}

.badge-inactive,
.badge-closed,
.status-inactive {
    color: #7c3440;
    background: var(--enti-red-soft);
    border: 1px solid #f0cfd5;
}

.badge-temporary {
    color: #80580b;
    background: var(--enti-amber-soft);
    border: 1px solid #eedcae;
}

.badge-active,
.badge-inactive,
.badge-closed,
.badge-temporary,
.status-active,
.status-inactive {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
}

.action-btn {
    display: inline-grid;
    width: 36px;
    height: 36px;
    min-height: 36px !important;
    padding: 0;
    place-items: center;
}

.delete-confirmation {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.delete-confirmation-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--enti-red);
    background: var(--enti-red-soft);
    border: 1px solid #efcbd1;
    border-radius: 7px;
    font-size: 1.15rem;
}

.state-confirmation {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.state-confirmation-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--enti-amber);
    background: var(--enti-amber-soft);
    border: 1px solid #f0dba8;
    border-radius: 7px;
    font-size: 1.15rem;
}

.state-confirmation-icon.state-confirmation-activate {
    color: var(--enti-green);
    background: var(--enti-green-soft);
    border-color: #cde6d7;
}

.center-form-body {
    padding: 24px;
}

.empty-state {
    padding: 48px 22px;
    color: var(--enti-muted);
    text-align: center;
}

.empty-state-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    place-items: center;
    color: var(--enti-blue);
    background: var(--enti-blue-soft);
    border-radius: 8px;
    font-size: 1.45rem;
}

.last-update {
    max-width: 520px;
    padding: 11px 14px;
    color: var(--enti-muted);
    background: #fff;
    border: 1px solid var(--enti-border);
    border-radius: 8px;
    font-size: 0.84rem;
}

.last-update strong {
    color: var(--enti-ink);
}

.availability-table {
    min-width: 1290px;
    table-layout: fixed;
}

.availability-panel .table-responsive {
    overflow: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: #9aa9bc #edf1f5;
}

.enti-portal-body .availability-table thead th {
    padding: 13px 8px;
    overflow: hidden;
    vertical-align: middle;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 0.72rem;
    line-height: 1.25;
}

.availability-table .availability-center-column {
    width: 325px;
}

.availability-table th:not(:first-child):not(:last-child) {
    width: 125px;
}

.availability-table th:first-child,
.availability-table td:first-child {
    position: sticky;
    left: 0;
}

.availability-table th:first-child {
    z-index: 5;
    overflow: hidden;
    background: #e8f0fa;
    box-shadow:
        1px 0 0 #cdd8e6,
        8px 0 12px rgba(23, 43, 74, 0.05);
}

.availability-table td:first-child {
    z-index: 4;
    overflow: hidden;
    background: #fff;
    box-shadow:
        1px 0 0 #e2e7ee,
        8px 0 12px rgba(23, 43, 74, 0.04);
}

.availability-table tbody td:not(:first-child) {
    text-align: center;
}

.availability-center-name {
    color: var(--enti-ink);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.availability-center-type {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    line-height: 1.3;
}

.availability-table th:last-child {
    width: 90px;
}

.availability-input {
    min-width: 76px;
    text-align: center;
}

.availability-input.changed,
.availability-input.has-availability {
    background: var(--enti-amber-soft);
    border-color: #d6a223;
}

.availability-input.has-availability {
    color: #694b00;
    font-weight: 700;
}

.availability-input.has-availability:focus {
    background: var(--enti-amber-soft);
    border-color: #b9860c;
    box-shadow: 0 0 0 3px rgba(214, 162, 35, 0.18);
}

.row-total {
    color: var(--enti-blue);
    font-weight: 800;
}

.submission-bar {
    display: flex;
    padding: 16px 18px;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    background: #f8fafc;
    border-top: 1px solid var(--enti-border);
}

.btn-submit {
    min-width: 210px;
    color: #fff;
    background: var(--enti-green) !important;
    border-color: var(--enti-green) !important;
}

.profile-page {
    max-width: 1380px;
    margin: 0 auto;
}

.profile-page-heading {
    margin-bottom: 14px;
    align-items: center;
}

.profile-page-heading h1 {
    font-size: 1.38rem;
}

.profile-page-heading .enti-page-subtitle {
    margin-top: 3px;
    font-size: 0.82rem;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-action {
    min-width: 190px;
    min-height: 44px !important;
    padding: 5px 13px 5px 6px !important;
    gap: 9px;
    font-size: 0.76rem;
    font-weight: 750 !important;
    text-transform: uppercase;
}

.profile-action-secondary {
    color: var(--enti-navy);
    background: #fff;
    border: 1px solid #adc2dc;
}

.profile-action-secondary:hover,
.profile-action-secondary:focus-visible {
    color: var(--enti-navy-dark);
    background: #f4f7fb;
    border-color: var(--enti-blue);
}

.profile-action-icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: var(--enti-navy);
    background: var(--enti-blue-soft);
    border: 1px solid #d6e2f1;
    border-radius: 5px;
    font-size: 0.9rem;
}

.profile-action.btn-primary .profile-action-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-identity {
    display: grid;
    min-height: 72px;
    margin-bottom: 13px;
    padding: 11px 15px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--enti-border);
    border-top: 3px solid var(--enti-accent);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(23, 43, 74, 0.05);
}

.profile-identity-mark {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--enti-navy);
    background: var(--enti-blue-soft);
    border: 1px solid #dce7f5;
    border-radius: 6px;
    font-size: 1.12rem;
}

.profile-identity-name {
    color: var(--enti-ink);
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.3;
}

.profile-identity-meta {
    display: flex;
    margin-top: 3px;
    flex-wrap: wrap;
    gap: 5px 16px;
    color: var(--enti-muted);
    font-size: 0.74rem;
}

.profile-identity-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 13px;
}

.profile-section-head {
    display: flex;
    min-height: 54px;
    padding: 9px 13px;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid var(--enti-border);
}

.profile-section-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--enti-navy);
    background: var(--enti-blue-soft);
    border: 1px solid #e1e9f3;
    border-radius: 5px;
    font-size: 0.88rem;
}

.profile-section-head h2 {
    margin: 0;
    color: var(--enti-ink);
    font-size: 0.9rem;
    font-weight: 750;
}

.profile-section-head p {
    margin: 2px 0 0;
    color: var(--enti-muted);
    font-size: 0.7rem;
}

.profile-list {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    margin: 0;
}

.profile-list dt,
.profile-list dd {
    min-width: 0;
    min-height: 38px;
    margin: 0;
    padding: 8px 13px;
    overflow-wrap: anywhere;
    border-bottom: 1px solid #e8edf3;
    line-height: 1.3;
}

.profile-list dt {
    color: var(--enti-muted);
    background: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
}

.profile-list dd {
    font-size: 0.82rem;
    font-weight: 600;
}

.profile-list dt:nth-last-of-type(1),
.profile-list dd:last-child {
    border-bottom: 0;
}

.profile-editor-dialog {
    width: min(1160px, calc(100% - 32px));
    max-width: 1160px;
    margin-right: auto;
    margin-left: auto;
}

.profile-modal .modal-content {
    max-height: calc(100dvh - 32px);
}

.profile-modal .modal-title i {
    display: inline-grid;
    width: 32px;
    height: 32px;
    margin-right: 10px !important;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    font-size: 0.92rem;
}

.profile-modal .btn-close {
    width: 32px;
    height: 32px;
    padding: 0;
    background-size: 14px;
    border-radius: 6px;
    opacity: 0.82;
}

.profile-edit-form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.profile-edit-body {
    display: grid;
    min-height: 0;
    padding: 16px;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, 0.8fr);
    align-items: start;
    gap: 14px;
    overflow-y: auto;
    background: #f5f7fa;
}

.profile-edit-group {
    padding: 15px;
    background: #fff;
    border: 1px solid var(--enti-border);
    border-radius: 8px;
}

.profile-edit-group-head {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 10px;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #e8edf3;
}

.profile-edit-group-head > i {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: var(--enti-navy);
    background: var(--enti-blue-soft);
    border: 1px solid #e0e9f4;
    border-radius: 5px;
}

.profile-edit-group-head h3 {
    margin: 0;
    color: var(--enti-ink);
    font-size: 0.88rem;
    font-weight: 750;
}

.profile-edit-group-head p {
    margin: 2px 0 0;
    color: var(--enti-muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.profile-edit-group .row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 12px;
}

.profile-edit-group .form-label {
    margin-bottom: 5px;
    font-size: 0.76rem;
}

.profile-edit-group .form-control {
    min-height: 42px;
    font-size: 0.86rem;
}

.profile-edit-group .form-control[readonly] {
    color: var(--enti-muted);
    background: #f2f5f8;
}

.profile-edit-group-account .row > [class*="col-"] {
    width: 100%;
}

.profile-modal .modal-footer {
    flex: 0 0 auto;
}

.profile-modal .modal-footer .btn {
    min-width: 150px;
    font-size: 0.76rem;
    font-weight: 750;
}

.profile-save-action {
    width: 190px;
}

.password-page {
    max-width: 1080px;
    margin: 0 auto;
}

.password-page-heading {
    margin-bottom: 14px;
    align-items: center;
}

.password-page-heading h1 {
    font-size: 1.38rem;
}

.password-back-action {
    min-height: 42px !important;
    padding: 0 14px !important;
    gap: 8px;
    color: var(--enti-navy);
    background: #fff;
    border: 1px solid #adc2dc;
    font-size: 0.74rem;
    font-weight: 750 !important;
}

.password-back-action:hover,
.password-back-action:focus-visible {
    color: var(--enti-navy-dark);
    background: #f4f7fb;
    border-color: var(--enti-blue);
}

.password-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(390px, 1.22fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--enti-border);
    border-radius: 8px;
    box-shadow: var(--enti-shadow);
}

.password-security-summary {
    display: flex;
    padding: 26px;
    flex-direction: column;
    align-items: flex-start;
    background: #f7f9fc;
    border-right: 1px solid var(--enti-border);
}

.password-security-mark {
    display: inline-grid;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    place-items: center;
    color: var(--enti-navy);
    background: var(--enti-blue-soft);
    border: 1px solid #d7e3f2;
    border-radius: 7px;
    font-size: 1.25rem;
}

.password-security-summary h2,
.password-form-header h2 {
    margin: 0;
    color: var(--enti-ink);
    font-size: 1rem;
    font-weight: 750;
}

.password-security-summary p,
.password-form-header p {
    margin: 5px 0 0;
    color: var(--enti-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.password-requirements {
    width: 100%;
    margin-top: 22px;
    padding: 13px 14px;
    color: #4f6077;
    background: var(--enti-blue-soft);
    border: 1px solid #d8e5f3;
    border-radius: 7px;
    font-size: 0.74rem;
}

.password-requirements strong {
    display: block;
    margin-bottom: 7px;
    color: var(--enti-ink);
}

.password-requirements ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 5px;
    list-style: none;
}

.password-requirements li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.password-requirements li i {
    color: var(--enti-blue);
}

.password-form-panel {
    padding: 26px 28px;
}

.password-form-header {
    display: flex;
    margin-bottom: 18px;
    padding-bottom: 14px;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid #e7ecf2;
}

.password-form-header > span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--enti-navy);
    background: var(--enti-blue-soft);
    border-radius: 6px;
}

.password-field {
    margin-bottom: 14px;
}

.password-field .form-label {
    margin-bottom: 5px;
    font-size: 0.78rem;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap .form-control {
    min-height: 44px;
    padding-right: 48px;
}

.password-visibility-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--enti-muted);
    background: transparent;
    border: 0;
    border-left: 1px solid var(--enti-border);
    border-radius: 0 6px 6px 0;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
    color: var(--enti-navy);
    background: #f5f8fc;
}

.password-visibility-toggle:focus-visible {
    outline: 2px solid rgba(53, 104, 184, 0.28);
    outline-offset: -2px;
}

.password-actions {
    display: flex;
    margin-top: 20px;
    padding-top: 16px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e7ecf2;
}

.password-actions .btn {
    min-width: 170px;
    font-size: 0.76rem;
    font-weight: 750;
}

.modal-content {
    overflow: hidden;
    border: 1px solid var(--enti-border);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(15, 39, 70, 0.16);
}

.modal-header {
    min-height: 68px;
    padding: 16px 22px;
    color: #fff;
    background: var(--enti-navy) !important;
    border-bottom: 0;
}

.modal-title {
    display: flex;
    align-items: center;
    font-weight: 750;
    letter-spacing: 0;
}

.center-modal .modal-title i {
    display: inline-grid;
    width: 32px;
    height: 32px;
    margin-right: 10px !important;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    font-size: 0.95rem;
}

.center-modal .btn-close {
    width: 32px;
    height: 32px;
    padding: 0;
    background-size: 14px;
    border-radius: 6px;
    opacity: 0.82;
}

.center-modal .btn-close:hover,
.center-modal .btn-close:focus {
    opacity: 1;
}

.center-editor-dialog {
    width: min(880px, calc(100% - 32px));
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
}

.center-confirmation-dialog {
    width: min(500px, calc(100% - 32px));
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
}

.center-modal .center-form-body {
    padding: 24px 26px;
}

.center-form-grid {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

.center-form-grid .form-label {
    margin-bottom: 7px;
    color: #304362;
    font-size: 0.78rem;
    font-weight: 750;
}

.center-form-grid .form-control,
.center-form-grid .form-select {
    min-height: 44px;
}

.center-modal .state-confirmation,
.center-modal .delete-confirmation {
    align-items: center;
}

.modal-footer {
    min-height: 72px;
    padding: 13px 22px;
    gap: 8px;
    background: #f8fafc;
    border-top-color: var(--enti-border);
}

.center-modal .modal-footer .btn {
    min-width: 126px;
}

.enti-admin,
.entity-page,
.admin-panel,
.entity-form {
    width: min(1500px, calc(100% - 36px));
    margin: 34px auto;
}

.enti-admin {
    overflow: hidden;
}

.enti-head,
.entity-banner,
.admin-panel > header,
.entity-form > header {
    display: flex;
    min-height: 68px;
    padding: 17px 21px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    background: var(--enti-navy) !important;
    border-radius: 0;
}

.enti-head h1,
.entity-banner h1,
.admin-panel > header h1,
.entity-form > header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.22rem;
    font-weight: 750;
}

.enti-body,
.entity-content,
.admin-body,
.entity-form-body {
    padding: 22px;
    background: #fff;
}

.entity-nav {
    display: flex;
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8fafc;
    border-bottom: 1px solid var(--enti-border);
}

.summary-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 20px;
}

.summary-item {
    padding: 15px;
    box-shadow: none;
}

.summary-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--enti-blue);
    font-size: 1.4rem;
}

.summary-item span {
    color: var(--enti-muted);
    font-size: 0.82rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    border: 1px solid var(--enti-border);
}

.detail-grid > div {
    min-width: 0;
    padding: 10px 14px;
    overflow-wrap: anywhere;
    border-bottom: 1px solid #e8edf3;
}

.detail-grid .label {
    color: var(--enti-muted);
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 700;
}

.submission-meta {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
}

.meta-item {
    padding: 13px;
    box-shadow: none;
}

.meta-item small {
    display: block;
    margin-bottom: 4px;
    color: var(--enti-muted);
}

.history-block {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--enti-border);
}

.section-title {
    margin: 4px 0 13px;
    color: var(--enti-ink);
    font-size: 1rem;
    font-weight: 750;
}

.pagination-row {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.enti-login-page {
    display: flex;
    flex-direction: column;
}

.enti-login-bar {
    padding: 12px 20px;
    color: #fff;
    background: var(--enti-navy);
    border-bottom: 3px solid var(--enti-accent);
    font-size: 0.85rem;
    font-weight: 750;
    text-align: center;
}

.login-shell {
    display: grid;
    width: min(1060px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    flex: 1;
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.72fr);
    align-items: stretch;
}

.login-context {
    padding: 44px 42px;
    color: #fff;
    background: var(--enti-navy);
    border-radius: 8px 0 0 8px;
}

.login-context-mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 26px;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    font-size: 1.4rem;
}

.login-context h1 {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 750;
}

.login-context p {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.login-context-list {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.login-context-list li {
    display: flex;
    margin-top: 12px;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
}

.login-context-list i {
    color: #b9d4f1;
}

.login-panel {
    padding: 38px 36px;
    background: #fff;
    border: 1px solid var(--enti-border);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--enti-shadow);
}

.login-heading {
    margin-bottom: 24px;
}

.login-heading .eyebrow {
    margin-bottom: 6px;
    color: var(--enti-accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0;
    color: var(--enti-ink);
    font-size: 1.42rem;
    font-weight: 750;
}

.login-heading p {
    margin: 7px 0 0;
    color: var(--enti-muted);
    font-size: 0.87rem;
}

.login-panel .input-group-text {
    min-width: 45px;
    justify-content: center;
    color: var(--enti-navy);
    background: #f8fafc;
    border-color: var(--enti-border);
}

.login-panel .password-toggle {
    min-width: 44px;
    color: var(--enti-muted);
    background: #fff;
    border-color: var(--enti-border);
}

.login-submit {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 6px 20px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff !important;
    appearance: none;
    background-color: #173a68 !important;
    border: 1px solid #294d7d !important;
    border-radius: 7px;
    box-shadow: 0 6px 15px rgba(16, 45, 82, 0.16);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.login-submit:hover {
    color: #fff !important;
    background-color: #102d52 !important;
    border-color: #426b9d !important;
    box-shadow: 0 7px 17px rgba(16, 45, 82, 0.21);
}

.login-submit:focus-visible {
    color: #fff !important;
    background-color: #102d52 !important;
    border-color: #6b96c9 !important;
    outline: 3px solid rgba(79, 127, 185, 0.3);
    outline-offset: 2px;
    box-shadow: none;
}

.login-submit:active {
    color: #fff !important;
    background-color: #0b2748 !important;
    border-color: #0b2748 !important;
    box-shadow: 0 3px 8px rgba(16, 45, 82, 0.17);
}

.login-submit:disabled {
    color: #fff !important;
    background-color: #627997 !important;
    border-color: #627997 !important;
    box-shadow: none;
    cursor: wait;
    opacity: 1;
}

.login-submit-label {
    color: inherit;
    text-align: center;
    white-space: nowrap;
}

.login-footer {
    padding: 13px;
    color: var(--enti-muted);
    font-size: 0.76rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .portal-nav,
    .portal-nav-shell {
        min-height: 62px;
    }

    .portal-nav .navbar-brand {
        order: 1;
        min-height: 59px;
        margin-right: 12px;
    }

    .portal-nav .navbar-toggler {
        display: inline-grid;
        order: 3;
        width: 42px;
        height: 42px;
        padding: 0;
        place-items: center;
        border-radius: 6px;
    }

    .portal-nav .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    }

    .portal-nav .navbar-collapse {
        order: 4;
        flex-basis: 100%;
        padding: 10px 0 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .portal-menu {
        padding: 5px;
        gap: 3px;
        background: rgba(8, 29, 57, 0.24);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .portal-nav .nav-link {
        min-height: 44px;
        justify-content: flex-start;
    }

    .portal-account {
        order: 2;
        margin: 0 8px 0 auto;
        padding: 0;
        gap: 7px;
        border-top: 0;
        border-left: 0;
    }

    .portal-account .account-name {
        display: none;
    }
}

@media (max-width: 1050px) {
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-edit-body {
        grid-template-columns: 1fr;
    }

    .profile-edit-group-account .row > [class*="col-"] {
        width: 33.333333%;
    }

    .login-shell {
        width: min(760px, calc(100% - 28px));
        grid-template-columns: 1fr;
    }

    .login-context {
        padding: 28px 30px;
        border-radius: 8px 8px 0 0;
    }

    .login-context-list {
        display: none;
    }

    .login-context-mark {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }

    .login-panel {
        border-top: 0;
        border-left: 1px solid var(--enti-border);
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 900px) {
    .center-editor-dialog {
        width: calc(100% - 28px);
    }

    .center-confirmation-dialog {
        width: min(500px, calc(100% - 28px));
    }

    .centers-panel {
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .centers-table-wrap {
        overflow: visible;
    }

    .centers-table {
        display: block;
        min-width: 0;
        border: 0;
        table-layout: auto;
    }

    .centers-table thead {
        display: none;
    }

    .centers-table tbody {
        display: grid;
        gap: 12px;
    }

    .centers-table tbody tr {
        display: block;
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--enti-border);
        border-radius: 8px;
        box-shadow: 0 5px 16px rgba(23, 43, 74, 0.06);
    }

    .enti-portal-body .centers-table tbody td {
        display: grid;
        width: 100%;
        min-height: 46px;
        padding: 10px 12px;
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        background: #fff;
        border: 0;
        border-bottom: 1px solid #e6ebf2;
        text-align: left;
    }

    .enti-portal-body .centers-table tbody tr:hover td {
        background: #fff;
    }

    .enti-portal-body .centers-table tbody td:last-child {
        border-bottom: 0;
    }

    .enti-portal-body .centers-table tbody td::before {
        content: attr(data-label);
        grid-column: 1;
        color: var(--enti-muted);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .enti-portal-body .centers-table tbody td > * {
        min-width: 0;
        grid-column: 2;
    }

    .center-table-name,
    .center-table-address {
        overflow-wrap: anywhere;
    }

    .center-table-name {
        font-size: 0.84rem;
    }

    .center-state-cell,
    .center-actions-cell {
        text-align: left;
    }

    .center-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 850px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .password-workspace {
        grid-template-columns: 1fr;
    }

    .password-security-summary {
        padding: 20px 22px;
        border-right: 0;
        border-bottom: 1px solid var(--enti-border);
    }

    .password-security-mark {
        width: 42px;
        height: 42px;
        margin-bottom: 12px;
    }

    .password-requirements {
        margin-top: 14px;
    }

    .submission-meta,
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .portal-header,
    .enti-login-header {
        height: 76px;
    }

    .portal-main {
        width: min(100% - 20px, 1480px);
        margin-top: 20px;
    }

    .account-name {
        display: none;
    }

    .enti-page-heading,
    .page-heading,
    .page-head,
    .submission-bar,
    .enti-head,
    .entity-banner,
    .admin-panel > header,
    .entity-form > header {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar,
    .filter-row {
        grid-template-columns: 1fr;
    }

    .portal-primary-action,
    .filter-action {
        width: 100%;
    }

    .center-modal .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .center-modal .modal-dialog-scrollable {
        height: calc(100dvh - 20px);
    }

    .center-modal .modal-content {
        max-height: calc(100dvh - 20px);
    }

    .center-modal .modal-header {
        min-height: 58px;
        padding: 11px 14px;
    }

    .center-modal .modal-title {
        font-size: 0.96rem !important;
    }

    .center-modal .modal-title i {
        width: 30px;
        height: 30px;
        margin-right: 8px !important;
    }

    .center-modal .center-form-body {
        padding: 16px;
    }

    .center-form-grid {
        --bs-gutter-x: 14px;
        --bs-gutter-y: 14px;
    }

    .center-modal .modal-footer {
        min-height: 64px;
        padding: 11px 14px;
    }

    .btn-submit {
        width: 100%;
    }

    .availability-table {
        min-width: 1235px;
    }

    .availability-table .availability-center-column {
        width: 220px;
    }

    .availability-table th:not(:first-child):not(:last-child) {
        width: 132px;
    }

    .availability-input {
        min-width: 64px;
    }

    .availability-center-name {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .availability-center-type {
        font-size: 0.7rem;
    }

    .submission-bar {
        padding: 12px;
    }

    .enti-admin,
    .entity-page,
    .admin-panel,
    .entity-form {
        width: min(100% - 20px, 1500px);
        margin: 22px auto;
    }

    .profile-list,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .profile-list dt {
        min-height: 0;
        padding: 8px 12px 2px;
        background: #fff;
        border-bottom: 0;
    }

    .profile-list dd {
        min-height: 0;
        padding: 2px 12px 8px;
    }

    .profile-actions {
        width: 100%;
    }

    .profile-action {
        min-width: 0;
        width: auto;
        flex: 1 1 0;
    }

    .profile-identity {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 13px;
    }

    .profile-identity-mark {
        width: 48px;
        height: 48px;
    }

    .profile-identity > .badge {
        grid-column: 2;
        justify-self: start;
    }

    .profile-edit-body {
        padding: 14px;
    }

    .profile-edit-group {
        padding: 14px;
    }

    .profile-edit-group-account .row > [class*="col-"] {
        width: 100%;
    }

    .profile-modal .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .profile-modal .modal-dialog-scrollable {
        height: calc(100dvh - 20px);
    }

    .profile-modal .modal-content {
        max-height: calc(100dvh - 20px);
    }

    .profile-modal .modal-header {
        min-height: 58px;
        padding: 11px 14px;
    }

    .profile-modal .modal-title {
        font-size: 0.94rem !important;
    }

    .profile-modal .modal-footer {
        min-height: 64px;
        padding: 11px 14px;
    }

    .password-form-panel {
        padding: 20px 22px;
    }

    .password-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .password-actions .btn {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .portal-nav .brand-label {
        display: none;
    }

    .portal-nav .navbar-brand {
        width: 48px;
        margin-right: 0;
    }

    .portal-account-icon,
    .notification-button,
    .logout-icon {
        width: 38px;
        height: 38px;
    }

    .metrics,
    .submission-meta,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        min-height: 92px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-action {
        width: 100%;
    }

    .profile-identity {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .profile-identity-mark {
        width: 42px;
        height: 42px;
    }

    .profile-identity-name {
        overflow-wrap: anywhere;
        font-size: 0.9rem;
    }

    .profile-edit-body,
    .profile-edit-group {
        padding: 12px;
    }

    .profile-modal .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .profile-modal .modal-footer .btn,
    .profile-save-action {
        width: 100%;
    }

    .password-security-summary,
    .password-form-panel {
        padding: 17px;
    }

    .password-form-header {
        align-items: flex-start;
    }

    .login-shell {
        width: min(100% - 20px, 760px);
        padding: 20px 0;
    }

    .login-context,
    .login-panel {
        padding: 24px 20px;
    }

    .login-context h1 {
        font-size: 1.42rem;
    }

    .enti-portal-body .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .enti-portal-body .modal-footer > .btn,
    .enti-portal-body .modal-footer > form,
    .enti-portal-body .modal-footer > form .btn {
        width: 100%;
    }

    .state-confirmation,
    .delete-confirmation {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
    }

    .state-confirmation-icon,
    .delete-confirmation-icon {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
