* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    color: #1f2933;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

body.login-page {
    min-height: 100vh;
}

body.login-page .mleoa-main-header {
    margin-bottom: 0;
}

body.login-page .styled-login-shell {
    margin: 34px auto;
    width: min(1080px, 96%);
}

.mleoa-banner {
    min-height: 200px;
    background: #fff url("../assets/banner.png") no-repeat center top;
    background-size: cover;
}

.mleoa-banner-inner {
    width: 1100px;
    max-width: 96%;
    min-height: 200px;
    margin: 0 auto;
    position: relative;
    padding-top: 15px;
}

.mleoa-banner-spacer {
    height: 15px;
}

.mleoa-wordmark {
    max-width: 72%;
    height: auto;
}

.mleoa-logo {
    position: absolute;
    top: 26px;
    right: 0;
    width: 157px;
    height: 146px;
    object-fit: contain;
}

.mleoa-main-header {
    background: #004f87;
}

.mleoa-navbar {
    min-height: 50px;
    background: #004f87;
    border: 0;
    margin: 0;
}

.mleoa-nav-inner {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 0;
}

.mleoa-nav-brand {
    width: 18px;
    min-height: 50px;
    display: block;
    background: #004f87;
    flex: 0 0 auto;
}

.mleoa-nav-links,
.mleoa-user-links {
    display: flex;
    align-items: center;
}

.mleoa-nav-links {
    flex: 1;
    align-items: stretch;
}

.mleoa-user-links {
    margin-left: auto;
}

.mleoa-nav-item {
    position: relative;
    flex: 0 0 auto;
}

.mleoa-nav-links a,
.mleoa-nav-label,
.mleoa-user-links a {
    display: block;
    min-height: 50px;
    padding: 15px 14px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
}

.mleoa-nav-links a:hover,
.mleoa-nav-item:hover > .mleoa-nav-label,
.mleoa-user-links a:hover {
    background: rgba(0, 0, 0, .16);
    color: #f6f6f6;
}

.mleoa-nav-label {
    cursor: default;
}

.mleoa-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    z-index: 20;
    background: #004f87;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
}

.mleoa-nav-item:hover > .mleoa-dropdown,
.mleoa-nav-item:focus-within > .mleoa-dropdown,
.mleoa-nav-item.is-dropdown-open > .mleoa-dropdown {
    display: block;
}

.mleoa-dropdown .mleoa-nav-item {
    width: 100%;
}

.mleoa-dropdown .mleoa-dropdown {
    top: 0;
    left: 100%;
}

.mleoa-dropdown a,
.mleoa-dropdown .mleoa-nav-label {
    min-height: 0;
    padding: 11px 14px;
    white-space: nowrap;
}

.mleoa-nav-item.has-dropdown > a::after,
.mleoa-nav-item.has-dropdown > .mleoa-nav-label::after {
    content: "";
    display: inline-block;
    margin-left: 7px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    vertical-align: middle;
}

.mleoa-menu-toggle {
    display: none;
    margin-left: auto;
    min-height: 38px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    border-radius: 4px;
}

.default-password-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 20, 32, .62);
}

.default-password-modal {
    position: relative;
    width: min(520px, 100%);
    padding: 38px 34px 34px;
    border: 1px solid rgba(0, 79, 135, .16);
    border-radius: 16px;
    background: #fff;
    color: #1d2440;
    text-align: center;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .34);
}

.default-password-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font-size: 26px;
    line-height: 36px;
}

.default-password-modal-close:hover {
    background: #e2e8f0;
}

.default-password-modal-logo {
    width: 86px;
    height: auto;
    margin-bottom: 16px;
}

.default-password-modal-eyebrow {
    margin: 0 0 8px;
    color: #004f87;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.default-password-modal h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.12;
}

.default-password-modal p:not(.default-password-modal-eyebrow) {
    margin: 16px 0 24px;
    color: #526173;
    font-size: 1rem;
    line-height: 1.55;
}

.default-password-modal-action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    background: #004f87;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(0, 79, 135, .22);
}

.default-password-modal-action:hover {
    background: #06395d;
    color: #fff;
}

a {
    color: #174ea6;
}

.page-shell {
    width: 96%;
    min-height: calc(100vh - 300px);
    margin: 24px auto;
    padding: 22px;
    background: #fff;
    border: 1px solid #000;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .20);
}

.site-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d7dce2;
}

.site-header h1 {
    margin: 0;
    font-size: 1.45rem;
}

.site-footer {
    margin-top: 0;
    color: #a1a1a1;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.footer-top {
    min-height: 190px;
    background: #003468;
    color: #a1a1a1;
}

.site-footer-content {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 30px;
    font-size: 14px;
    line-height: 24px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
    text-decoration: underline;
}

.site-footer-name,
.site-footer-email {
    color: #a1a1a1;
}

.site-footer-copyright {
    margin-top: 0;
    color: #a1a1a1;
    font-size: 10px;
    line-height: 16px;
}

.footer-bottom {
    min-height: 68px;
    background: #003468 url("../Assets/FooterBannerNew.png") no-repeat center top;
    color: #fff;
}

.top-nav,
.actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.top-nav a,
.button,
button,
input[type=submit] {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #4b5563;
    border-radius: 4px;
    background: #374151;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.primary,
.button.primary {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #1d4ed8 !important;
}

.danger,
.button.danger {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #b91c1c !important;
}

.button.view {
    background: #0891b2 !important;
    color: #fff !important;
    border-color: #0e7490 !important;
}

.button.edit {
    background: #f59e0b !important;
    color: #111827 !important;
    border-color: #d97706 !important;
}

.button.secondary {
    background: #64748b !important;
    color: #fff !important;
    border-color: #475569 !important;
}

.toggle-form {
    margin: 0;
}

.status-toggle {
    min-width: 96px;
    border-radius: 999px;
    font-weight: 700;
    border-width: 0;
    padding: 7px 12px;
}

.status-toggle.active {
    background: #16a34a;
    color: #fff;
}

.status-toggle.inactive {
    background: #dc2626;
    color: #fff;
}

.button.disabled,
button:disabled,
input:disabled,
select:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pagination-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    background: #f8fafc;
}

.pagination-left {
    justify-self: start;
}

.pagination-center {
    justify-self: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-label {
    white-space: nowrap;
    font-weight: 700;
}

.page-size-select {
    width: 76px;
    min-width: 76px;
}

.pagination-right {
    justify-self: end;
}

.page-number-input {
    width: 74px;
}

.pagination-summary {
    margin-left: 8px;
    color: #5f6b7a;
    white-space: nowrap;
}

.muted {
    color: #5f6b7a;
}

.notice,
.success,
.error {
    padding: 12px;
    margin: 12px 0;
    border-radius: 6px;
}

.notice {
    border: 1px solid #f2c94c;
    background: #fff9db;
}

.success {
    border: 1px solid #2f855a;
    background: #ecfdf3;
}

.error {
    border: 1px solid #e5484d;
    background: #fff1f1;
}

.search-panel {
    margin: 18px 0;
    border: 1px solid #c9d1d9;
    border-radius: 6px;
    background: #fbfcfe;
}

.search-panel > summary {
    padding: 12px;
    cursor: pointer;
    font-weight: 700;
}

.search-panel[open] > summary {
    border-bottom: 1px solid #c9d1d9;
}

.search-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-card {
    margin: 18px 0;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    background: #fbfcfe;
}

.form-card h2 {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #d7dce2;
    font-size: 1.05rem;
    background: #eef2f7;
}

.form-grid {
    display: grid;
    gap: 14px;
    padding: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row label {
    font-weight: 700;
}

.form-row small {
    color: #5f6b7a;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #aeb8c4;
    border-radius: 4px;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 130px;
}

.span-2 {
    grid-column: span 2;
}

.span-full {
    grid-column: 1 / -1;
}

.password-tools {
    display: flex;
    gap: 6px;
}

.password-tools input {
    flex: 1;
}

.password-tools .button {
    width: auto;
    min-width: 42px;
    padding: 8px 10px;
}

.password-meter {
    width: 100%;
    height: 12px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 9px;
    border: 1px solid #d7dce2;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef2f7;
}

.record-view {
    max-width: 1100px;
}

.record-view th {
    width: 220px;
}

.styled-login-shell {
    width: min(1080px, 100%);
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(340px, .95fr) minmax(360px, 1.05fr);
    overflow: hidden;
    border: 1px solid rgba(37, 36, 95, .12);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(30, 37, 78, .18);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.styled-login-shell:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 86px rgba(30, 37, 78, .24);
}

.styled-login-brand {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(0, 79, 135, .96), rgba(0, 79, 135, .84)), #004f87;
}

.styled-login-stage {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.styled-video-frame {
    width: 100%;
    height: 100%;
    min-height: 610px;
    overflow: hidden;
    background: #06395d;
}

.styled-login-video,
.styled-login-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.styled-login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 68px);
    background: #fff;
}

.styled-login-logo {
    position: absolute;
    top: 28px;
    right: 32px;
    width: 104px;
    height: auto;
    display: block;
}

.styled-login-header {
    margin-bottom: 30px;
    padding-right: 90px;
}

.styled-login-eyebrow {
    margin: 0 0 8px;
    color: #004f87;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.styled-login-header h2 {
    margin: 0;
    color: #1d2440;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.05;
}

.styled-login-header p:not(.styled-login-eyebrow) {
    max-width: 420px;
    margin: 14px 0 0;
    color: #667085;
    font-size: 1rem;
    line-height: 1.55;
}

.styled-login-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #f2c6c6;
    border-radius: 10px;
    background: #fff5f5;
    color: #9f1d1d;
    font-weight: 700;
}

.styled-login-message.success-message {
    border-color: #9ad3aa;
    background: #effaf2;
    color: #166534;
}

.styled-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.styled-field {
    margin-bottom: 18px;
}

.styled-field label {
    display: block;
    margin-bottom: 8px;
    color: #1d2440;
    font-weight: 700;
}

.styled-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    background: #fbfcff;
    color: #1d2440;
    font-size: 1rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.styled-field input:focus {
    border-color: #004f87;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 79, 135, .12);
}

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

.styled-password-wrap input {
    padding-right: 52px;
}

.styled-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #004f87;
    cursor: pointer;
    transform: translateY(-50%);
    padding: 0;
}

.styled-password-toggle:hover {
    background: rgba(0, 79, 135, .08);
}

.styled-password-toggle svg {
    width: 20px;
    height: 20px;
}

.register-password-wrap input {
    padding-right: 142px;
}

.reset-password-wrap input {
    padding-right: 230px;
}

.styled-generate-password {
    position: absolute;
    top: 50%;
    right: 50px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d9deea;
    border-radius: 8px;
    background: #fff;
    color: #004f87;
    cursor: pointer;
    font-weight: 700;
    transform: translateY(-50%);
}

.styled-generate-password:hover {
    border-color: #004f87;
    background: #f8fbff;
}

.reset-generate-password {
    min-width: 168px;
}

.styled-submit-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: #004f87;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 12px 22px rgba(0, 79, 135, .22);
}

.styled-submit-btn:hover {
    transform: translateY(-1px);
    background: #003d68;
    box-shadow: 0 16px 28px rgba(0, 79, 135, .28);
}

.styled-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.styled-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    background: #fff;
    color: #004f87;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.styled-secondary-btn:hover {
    border-color: #004f87;
    background: #f8fbff;
    transform: translateY(-1px);
}

.styled-fine-print {
    margin: 22px 0 0;
    color: #667085;
    font-size: .88rem;
    line-height: 1.45;
}

.member-profile-shell {
    grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
}

.member-profile-panel {
    justify-content: flex-start;
}

.member-profile-summary {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #d9deea;
    border-radius: 12px;
    background: #f8fbff;
}

.member-profile-label {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.member-profile-summary strong {
    display: block;
    color: #1d2440;
    font-size: 1.05rem;
}

.member-profile-details {
    display: grid;
    gap: 10px;
}

.member-profile-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f6;
}

.member-profile-row span {
    color: #667085;
    font-weight: 700;
}

.member-profile-row strong {
    color: #1d2440;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.member-profile-actions {
    margin-top: 24px;
}

.permission-toggle {
    min-width: 74px;
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .14);
}

.permission-toggle.allow {
    background: #16803c;
}

.permission-toggle.deny {
    background: #b42318;
}

.permission-toggle:hover {
    filter: brightness(.95);
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .mleoa-banner,
    .mleoa-banner-inner {
        min-height: 145px;
    }

    .mleoa-wordmark {
        max-width: 68%;
    }

    .mleoa-logo {
        width: 105px;
        height: auto;
        top: 24px;
    }

    .mleoa-nav-inner {
        flex-wrap: wrap;
        padding: 6px 12px;
    }

    .mleoa-menu-toggle {
        display: block;
    }

    .mleoa-nav-brand {
        min-height: 38px;
    }

    .mleoa-nav-links,
    .mleoa-user-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .mleoa-nav-links.is-open,
    .mleoa-user-links.is-open {
        display: flex;
    }

    .mleoa-nav-links a,
    .mleoa-nav-label,
    .mleoa-user-links a {
        min-height: 0;
        padding: 10px 8px;
    }

    .mleoa-nav-item {
        width: 100%;
    }

    .mleoa-dropdown {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        padding-left: 16px;
        box-shadow: none;
        background: rgba(0, 0, 0, .10);
    }

    .mleoa-nav-item.is-dropdown-open > .mleoa-dropdown,
    .mleoa-nav-item:focus-within > .mleoa-dropdown {
        display: block;
    }

    .mleoa-dropdown .mleoa-dropdown {
        padding-left: 16px;
    }

    .mleoa-dropdown a,
    .mleoa-dropdown .mleoa-nav-label {
        white-space: normal;
    }

    .span-2 {
        grid-column: span 1;
    }

    .styled-login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .styled-login-brand {
        min-height: 310px;
    }

    .styled-video-frame {
        min-height: 310px;
    }

    .styled-login-logo {
        position: static;
        width: 104px;
        margin: 0 0 24px auto;
    }

    .styled-login-header {
        padding-right: 0;
    }

    .styled-secondary-actions {
        grid-template-columns: 1fr;
    }

    .styled-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .member-profile-shell {
        grid-template-columns: 1fr;
    }

    .member-profile-summary,
    .member-profile-row {
        grid-template-columns: 1fr;
    }

    .member-profile-row {
        gap: 5px;
    }

    .register-password-wrap input,
    .reset-password-wrap input {
        padding-right: 52px;
    }

    .styled-generate-password {
        position: static;
        width: 100%;
        margin-top: 8px;
        transform: none;
    }
}
