:root {
    --staff-wizard-primary: #0f766e;
    --staff-wizard-primary-dark: #0b5f59;
    --staff-wizard-primary-soft: #e8f6f3;
    --staff-wizard-primary-subtle: #f2fbf9;
    --staff-wizard-ink: #102033;
    --staff-wizard-muted: #64748b;
    --staff-wizard-border: #dbe6ec;
    --staff-wizard-line: #e8eef2;
    --staff-wizard-panel: #ffffff;
    --staff-wizard-page: #f3f7f8;
    --staff-wizard-danger: #e74c3c;
}

.kisii-login-page {
    --kisii-blue: #1f6fae;
    --kisii-blue-dark: #174f7e;
    --kisii-green: #15803d;
    --kisii-green-dark: #0f5f31;
    --kisii-gold: #d6a229;
    --kisii-ink: #102033;
    --kisii-muted: #64748b;
    --kisii-border: #d9e5ec;
    --kisii-page: #f3f7f8;
    --kisii-panel: #ffffff;
    background:
        linear-gradient(90deg, rgba(31, 111, 174, 0.08) 0, rgba(31, 111, 174, 0.08) 18%, transparent 18%),
        linear-gradient(180deg, #f7fbfd 0, var(--kisii-page) 100%);
    box-sizing: border-box;
    color: var(--kisii-ink);
    height: 100vh;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 2rem;
}

.kisii-login-shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 0.85fr);
    margin: 0 auto;
    max-width: 1120px;
    min-height: calc(100vh - 5rem);
    width: 100%;
}

.kisii-login-brand-panel,
.kisii-login-form-panel {
    min-width: 0;
}

.kisii-login-brand-panel {
    background: #123f45;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 24px 55px rgba(15, 35, 55, 0.16);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 3.5rem;
    position: relative;
}

.kisii-login-brand-panel::before {
    background:
        linear-gradient(90deg, rgba(31, 111, 174, 0.78), rgba(31, 111, 174, 0.2)),
        linear-gradient(0deg, rgba(21, 128, 61, 0.82), rgba(21, 128, 61, 0.18));
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0.55;
    position: absolute;
    right: 0;
    top: 0;
}

.kisii-login-brand-panel::after {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.09) 0,
            rgba(255, 255, 255, 0.09) 1px,
            transparent 1px,
            transparent 18px
        );
    content: "";
    inset: 0;
    opacity: 0.38;
    position: absolute;
}

.kisii-brand-lockup,
.kisii-login-intro,
.kisii-county-bands,
.kisii-login-highlights {
    position: relative;
    z-index: 1;
}

.kisii-brand-lockup,
.kisii-auth-mobile-brand {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.kisii-county-logo {
    align-items: center;
    background: #ffffff;
    border: 3px solid var(--kisii-gold);
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(6, 25, 33, 0.22);
    display: inline-flex;
    flex: 0 0 auto;
    height: 5.2rem;
    object-fit: contain;
    padding: 0.25rem;
    width: 5.2rem;
}

.kisii-brand-kicker {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.kisii-brand-lockup h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.12;
    margin: 0;
}

.kisii-login-intro {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.7;
    margin: 2rem 0 1.5rem;
    max-width: 34rem;
}

.kisii-county-bands {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 0.32fr;
    height: 0.7rem;
    margin: 0 0 2rem;
    overflow: hidden;
    width: min(24rem, 100%);
}

.kisii-county-bands .band-blue {
    background: var(--kisii-blue);
}

.kisii-county-bands .band-white {
    background: #ffffff;
}

.kisii-county-bands .band-green {
    background: var(--kisii-green);
}

.kisii-county-bands .band-gold {
    background: var(--kisii-gold);
}

.kisii-login-highlights {
    display: grid;
    gap: 0.8rem;
}

.kisii-login-highlight {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
}

.kisii-login-highlight i {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    color: #ffffff;
    display: inline-flex;
    font-size: 1.15rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.kisii-login-form-panel {
    align-items: center;
    background: var(--kisii-panel);
    border: 1px solid var(--kisii-border);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 24px 55px rgba(15, 35, 55, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
}

.kisii-auth-card {
    width: min(100%, 28rem);
}

.kisii-auth-mobile-brand {
    display: none;
    margin-bottom: 1.5rem;
}

.kisii-auth-mobile-brand .kisii-county-logo {
    box-shadow: 0 10px 24px rgba(15, 35, 55, 0.12);
    height: 4.05rem;
    width: 4.05rem;
}

.kisii-auth-mobile-brand .kisii-brand-kicker {
    color: var(--kisii-muted);
}

.kisii-auth-mobile-brand h2 {
    color: var(--kisii-ink);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.kisii-auth-heading {
    margin-bottom: 1.5rem;
}

.kisii-auth-eyebrow {
    color: var(--kisii-green);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.kisii-auth-heading h2 {
    color: var(--kisii-ink);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.55rem;
}

.kisii-auth-heading p:last-child {
    color: var(--kisii-muted);
    line-height: 1.55;
    margin: 0;
}

.kisii-auth-form {
    margin: 0;
}

.kisii-auth-field {
    margin-bottom: 1rem;
}

.kisii-auth-label {
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.kisii-auth-input.form-control {
    background: #fbfdfe;
    border: 1px solid var(--kisii-border);
    border-radius: 7px;
    color: var(--kisii-ink);
    font-size: 0.95rem;
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
}

.kisii-auth-input-shell {
    align-items: center;
    display: flex;
    position: relative;
}

.kisii-auth-input-shell .kisii-auth-input.form-control {
    margin: 0;
}

.kisii-auth-input.form-control.has-leading-icon {
    padding-left: 3rem;
}

.kisii-auth-input.form-control.has-trailing-action {
    padding-right: 3.3rem;
}

.kisii-auth-input-icon {
    color: #718096;
    font-size: 1.22rem;
    left: 1.05rem;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.18s ease;
    z-index: 2;
}

.kisii-auth-input-shell:focus-within .kisii-auth-input-icon {
    color: var(--kisii-green);
}

.kisii-auth-password-toggle,
.kisii-auth-captcha-refresh {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.15rem;
    height: 2.15rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.18s ease, color 0.18s ease;
    width: 2.15rem;
    z-index: 3;
}

.kisii-auth-password-toggle:hover,
.kisii-auth-password-toggle:focus,
.kisii-auth-captcha-refresh:hover,
.kisii-auth-captcha-refresh:focus {
    background: rgba(21, 128, 61, 0.1);
    color: var(--kisii-green);
    outline: none;
}

.kisii-auth-captcha-refresh:disabled {
    cursor: wait;
    opacity: 0.72;
}

.kisii-auth-input.form-control:focus {
    background: #ffffff;
    border-color: #8bc9bf;
    box-shadow: 0 0 0 0.16rem rgba(21, 128, 61, 0.12);
    color: var(--kisii-ink);
}

.kisii-auth-field.has-error .kisii-auth-label,
.kisii-auth-field.has-error .help-block {
    color: var(--staff-wizard-danger);
}

.kisii-auth-field.has-error .kisii-auth-input.form-control {
    border-color: var(--staff-wizard-danger);
}

.kisii-auth-field .help-block {
    font-size: 0.82rem;
    margin: 0.28rem 0 0;
}

.kisii-auth-options {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0.5rem 0 1.25rem;
}

.kisii-auth-options-single {
    justify-content: center;
    margin: 1rem 0 0;
}

.staff-readonly-value {
    background: #f8fafc;
    border: 1px solid var(--staff-wizard-border);
    border-radius: 6px;
    color: var(--staff-wizard-ink);
    min-height: 2.75rem;
    padding: 0.68rem 0.85rem;
    word-break: break-word;
}

.kisii-remember-option {
    align-items: center;
    color: var(--kisii-muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.88rem;
    gap: 0.5rem;
    margin: 0;
}

.kisii-remember-option input[type="checkbox"] {
    accent-color: var(--kisii-green);
    height: 1rem;
    width: 1rem;
}

.kisii-auth-link {
    color: var(--kisii-blue-dark);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.kisii-auth-link:hover,
.kisii-auth-link:focus {
    color: var(--kisii-green-dark);
    text-decoration: none;
}

.kisii-auth-submit {
    margin-top: 0.25rem;
}

.kisii-auth-button {
    --bs-btn-bg: var(--kisii-green);
    --bs-btn-border-color: var(--kisii-green);
    --bs-btn-color: #ffffff;
    --bs-btn-disabled-bg: var(--kisii-green);
    --bs-btn-disabled-border-color: var(--kisii-green);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-opacity: 1;
    align-items: center;
    background: var(--kisii-green);
    border: 1px solid var(--kisii-green);
    border-radius: 7px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    gap: 0.55rem;
    justify-content: center;
    min-height: 3rem;
    padding: 0.82rem 1rem;
    text-transform: none;
    width: 100%;
}

.kisii-auth-button:hover,
.kisii-auth-button:focus {
    background: var(--kisii-green-dark);
    border-color: var(--kisii-green-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.kisii-auth-button:disabled,
.kisii-auth-button.disabled,
.kisii-auth-button.is-loading {
    background: var(--kisii-green);
    background-color: var(--kisii-green);
    border-color: var(--kisii-green);
    color: #ffffff;
    opacity: 1;
    transform: none;
}

.kisii-auth-button i {
    font-size: 1rem;
    line-height: 1;
}

.kisii-login-footer {
    color: var(--kisii-muted);
    font-size: 0.8rem;
    margin: 1.25rem 0 0;
    text-align: center;
}

@media (max-width: 991.98px) {
    .kisii-login-page {
        height: auto;
        overflow-y: auto;
        padding: 1.25rem;
    }

    .kisii-login-shell {
        display: block;
        max-width: 36rem;
        min-height: auto;
    }

    .kisii-login-brand-panel {
        border-radius: 8px 8px 0 0;
        padding: 2rem;
    }

    .kisii-brand-lockup h1 {
        font-size: 1.5rem;
    }

    .kisii-login-intro {
        margin: 1.25rem 0;
    }

    .kisii-login-highlights {
        grid-template-columns: 1fr;
    }

    .kisii-login-form-panel {
        border-left: 1px solid var(--kisii-border);
        border-radius: 0 0 8px 8px;
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .kisii-login-page {
        padding: 0.75rem;
    }

    .kisii-login-brand-panel {
        display: none;
    }

    .kisii-login-form-panel {
        border-radius: 8px;
        min-height: calc(100vh - 1.5rem);
        padding: 1.5rem;
    }

    .kisii-auth-mobile-brand {
        display: flex;
    }

    .kisii-auth-heading h2 {
        font-size: 1.45rem;
    }

    .kisii-auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }
}

.has-error .col-form-label, .has-error .control-label, .has-error .error, .has-error .help-block, .has-error .input-icon>i {
    color: var(--staff-wizard-danger);
}

body {
    font-size: 0.875rem;
}

.sidebar {
    background: #0f2f2f;
}

.sidebar .sidebar-brand-wrapper {
    background: #0b2424;
    border-right: 1px solid rgba(185, 221, 215, 0.08);
    justify-content: center;
    min-height: 4.375rem;
    padding: 0.55rem 1rem;
}

.sidebar .sidebar-brand-wrapper .brand-logo,
.sidebar .sidebar-brand-wrapper .brand-logo-mini {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-weight: 800;
    gap: 0.65rem;
    letter-spacing: 0;
    padding: 0;
    text-decoration: none;
}

.sidebar .sidebar-brand-wrapper .brand-logo-mini {
    display: none;
}

.sidebar .sidebar-brand-wrapper .brand-logo img,
.sidebar .sidebar-brand-wrapper .brand-logo-mini img {
    background: #ffffff;
    border: 2px solid #d6a229;
    border-radius: 50%;
    flex: 0 0 auto;
    height: 2.7rem;
    object-fit: contain;
    padding: 0.15rem;
    width: 2.7rem;
}

.sidebar .sidebar-brand-wrapper .brand-logo span {
    color: #f8fafc;
    font-size: 0.98rem;
}

.sidebar .nav {
    background: #0f2f2f;
}

.sidebar .nav .nav-item .nav-link {
    color: #c7ded9;
}

.sidebar .nav .nav-item .nav-link .menu-title {
    color: inherit;
}

.sidebar .nav .nav-item .nav-link i.menu-icon {
    color: #8bc9bf;
}

.sidebar .nav .nav-item .nav-link:hover,
.sidebar .nav:not(.sub-menu) > .nav-item:hover:not(.nav-category):not(.nav-profile) > .nav-link {
    background: rgba(15, 118, 110, 0.22);
    color: #ffffff;
}

.sidebar .nav .nav-item.active {
    background: rgba(15, 118, 110, 0.26);
}

.sidebar .nav .nav-item.active > .nav-link {
    border-left: 3px solid #5eead4;
    color: #ffffff;
}

.sidebar .nav .nav-item.active > .nav-link .menu-title,
.sidebar .nav .nav-item.active > .nav-link i {
    color: #ffffff;
}

.sidebar .nav .nav-item.nav-profile .nav-link {
    align-items: center;
    background: rgba(11, 36, 36, 0.72);
    border-bottom: 1px solid rgba(185, 221, 215, 0.1);
    color: #e6f6f3;
    gap: 0.85rem;
    padding-bottom: 1.05rem;
    padding-top: 1.05rem;
}

.sidebar .nav .nav-item.nav-profile .nav-link .font-weight-normal {
    color: #9ecdc5;
}

.sidebar .nav-profile-initials {
    align-items: center;
    background: linear-gradient(135deg, #e8f6f3, #ffffff);
    border: 2px solid rgba(214, 162, 41, 0.9);
    border-radius: 50%;
    color: #0f5f31;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 800;
    height: 2.85rem;
    justify-content: center;
    position: relative;
    width: 2.85rem;
}

.sidebar .nav-profile-initials .login-status {
    background: #22c55e;
    border: 2px solid #0b2424;
    border-radius: 50%;
    bottom: 0.05rem;
    height: 0.72rem;
    position: absolute;
    right: 0.02rem;
    width: 0.72rem;
}

.sidebar .nav-profile-text {
    min-width: 0;
}

.sidebar .nav-profile-text .font-weight-medium,
.sidebar .nav-profile-text .font-weight-normal {
    display: block;
    max-width: 10.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar {
    background: transparent;
}

.navbar .navbar-menu-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--staff-wizard-line);
    box-shadow: 0 10px 24px rgba(15, 35, 55, 0.05);
    min-height: 4.375rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.staff-navbar-left {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
}

.staff-navbar-left .navbar-toggler {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--staff-wizard-border);
    border-radius: 7px;
    color: #475569;
    display: inline-flex;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.staff-navbar-left .navbar-toggler:hover,
.staff-navbar-left .navbar-toggler:focus {
    background: #eef7f6;
    border-color: #b9ddd7;
    color: var(--staff-wizard-primary-dark);
}

.staff-navbar-left .brand-logo-mini {
    align-items: center;
    background: var(--staff-wizard-primary-subtle);
    border: 1px solid #b9ddd7;
    border-radius: 7px;
    color: var(--staff-wizard-primary-dark);
    display: inline-flex;
    font-weight: 800;
    height: 2.4rem;
    justify-content: center;
    text-decoration: none;
    width: 2.4rem;
}

.staff-navbar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.staff-navbar-title span {
    color: var(--staff-wizard-ink);
    font-size: 0.98rem;
    font-weight: 800;
}

.staff-navbar-title small {
    color: var(--staff-wizard-muted);
    font-size: 0.78rem;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-navbar-actions {
    align-items: center;
    display: flex;
    margin-left: auto;
}

.staff-navbar-icon {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #f0c98a;
    border-radius: 7px;
    color: #975a16;
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.45rem;
    justify-content: center;
    position: relative;
    text-decoration: none;
    width: 2.45rem;
}

.staff-navbar-icon:hover,
.staff-navbar-icon:focus {
    background: #ffedd5;
    border-color: #d89435;
    color: #7c3f08;
    outline: 0;
    text-decoration: none;
    transform: translateY(-1px);
}

.staff-navbar-icon::after {
    background: #102033;
    border-radius: 6px;
    bottom: -2.45rem;
    color: #ffffff;
    content: attr(aria-label);
    font-size: 0.72rem;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 0.35rem 0.55rem;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, -0.25rem);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
    z-index: 20;
}

.staff-navbar-icon:hover::after,
.staff-navbar-icon:focus::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link .menu-title,
.sidebar-icon-only .sidebar .nav .nav-item.hover-open .collapse,
.sidebar-icon-only .sidebar .nav .nav-item.hover-open .collapsing {
    background: #0b2424;
    color: #e6f6f3;
}

.sidebar-icon-only .sidebar {
    overflow: visible;
}

.sidebar-icon-only .sidebar .nav {
    overflow: visible;
}

.sidebar-icon-only .sidebar .nav .nav-item {
    position: relative;
}

.sidebar-icon-only .sidebar .nav .nav-item.hover-open {
    z-index: 30;
}

.sidebar-icon-only .sidebar .nav .nav-item.hover-open > .nav-link {
    background: rgba(15, 118, 110, 0.28);
    color: #ffffff;
}

.sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link .menu-title {
    align-items: center;
    border: 1px solid rgba(185, 221, 215, 0.12);
    border-left: 0;
    border-radius: 0 7px 7px 0;
    box-shadow: 12px 16px 30px rgba(2, 22, 22, 0.22);
    display: flex;
    font-size: 0.88rem;
    font-weight: 800;
    left: 70px;
    line-height: 1.25;
    min-height: 100%;
    min-width: 12rem;
    padding: 0.65rem 1.1rem;
    position: absolute;
    text-align: left;
    top: 0;
    white-space: nowrap;
    z-index: 31;
}

.sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link i.menu-icon {
    color: #ffffff;
}

.sidebar-icon-only .sidebar .sidebar-brand-wrapper .brand-logo span,
.sidebar-icon-only .sidebar .nav-profile-text {
    display: none !important;
}

.sidebar-icon-only .sidebar .sidebar-brand-wrapper {
    justify-content: center;
    padding: 0;
}

.sidebar-icon-only .sidebar .sidebar-brand-wrapper .brand-logo {
    display: none !important;
}

.sidebar-icon-only .sidebar .sidebar-brand-wrapper .brand-logo-mini {
    align-items: center;
    display: flex !important;
    height: 4.375rem;
    justify-content: center;
    padding: 0;
    width: 70px;
}

.sidebar-icon-only .sidebar .sidebar-brand-wrapper .brand-logo-mini img {
    height: 2.45rem;
    min-width: 2.45rem;
    width: 2.45rem;
}

.sidebar-icon-only .sidebar .nav .nav-item.nav-profile .nav-link {
    align-items: center;
    display: flex;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.staff-dashboard-page,
.staff-list-page {
    color: var(--staff-wizard-ink);
}

.staff-dashboard-hero,
.staff-list-hero {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 35, 55, 0.06);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
}

.staff-dashboard-kicker {
    color: var(--staff-wizard-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.staff-dashboard-hero h1,
.staff-list-hero h1 {
    color: var(--staff-wizard-ink);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.staff-dashboard-summary,
.staff-list-hero p:last-child {
    color: var(--staff-wizard-muted);
    line-height: 1.5;
    margin: 0.45rem 0 0;
}

.staff-dashboard-action {
    flex: 0 0 auto;
}

.staff-dashboard-primary {
    align-items: center;
    background: var(--staff-wizard-primary);
    border: 1px solid var(--staff-wizard-primary);
    border-radius: 7px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    min-height: 2.65rem;
    padding: 0.72rem 1rem;
    text-decoration: none;
}

.staff-dashboard-primary:hover,
.staff-dashboard-primary:focus {
    background: var(--staff-wizard-primary-dark);
    border-color: var(--staff-wizard-primary-dark);
    color: #ffffff;
    text-decoration: none;
}

.staff-dashboard-overview {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
    margin-bottom: 1.25rem;
}

.staff-dashboard-progress-card,
.staff-dashboard-status-card,
.staff-list-metrics > div {
    background: #ffffff;
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 35, 55, 0.06);
}

.staff-dashboard-progress-card {
    align-items: center;
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
}

.staff-dashboard-progress-ring {
    align-items: center;
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(var(--staff-wizard-primary) var(--progress), #e8eef2 0);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 5.25rem;
    justify-content: center;
    width: 5.25rem;
}

.staff-dashboard-progress-ring span {
    color: var(--staff-wizard-primary-dark);
    font-size: 1.08rem;
    font-weight: 800;
}

.staff-dashboard-progress-card h2,
.staff-dashboard-status-card h3 {
    color: var(--staff-wizard-ink);
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.staff-dashboard-progress-card p,
.staff-dashboard-status-card p {
    color: var(--staff-wizard-muted);
    line-height: 1.5;
    margin: 0;
}

.staff-dashboard-status-card {
    padding: 1.25rem;
}

.staff-status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.75rem;
    padding: 0.42rem 0.65rem;
}

.staff-status-pill.is-complete {
    background: #e8f6f3;
    color: var(--staff-wizard-primary-dark);
}

.staff-status-pill.is-pending {
    background: #fff7ed;
    color: #975a16;
}

.staff-status-pill.is-info {
    background: #eaf3fb;
    color: #1f6fae;
}

.staff-status-pill.is-muted {
    background: #f1f5f9;
    color: #64748b;
}

.staff-dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-dashboard-step {
    background: #ffffff;
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 35, 55, 0.06);
    display: flex;
    gap: 0.85rem;
    min-width: 0;
    padding: 1rem;
}

.staff-dashboard-step.is-complete {
    border-color: #b9ddd7;
}

.staff-dashboard-step-icon {
    align-items: center;
    background: var(--staff-wizard-primary-subtle);
    border: 1px solid #b9ddd7;
    border-radius: 7px;
    color: var(--staff-wizard-primary-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.25rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.staff-dashboard-step.is-pending .staff-dashboard-step-icon {
    background: #f8fafc;
    border-color: var(--staff-wizard-border);
    color: #64748b;
}

.staff-dashboard-step-body {
    min-width: 0;
    width: 100%;
}

.staff-dashboard-step-heading {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.staff-dashboard-step-heading span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
}

.staff-dashboard-step-heading strong {
    color: var(--staff-wizard-ink);
    font-size: 0.95rem;
    line-height: 1.25;
}

.staff-dashboard-step p {
    color: var(--staff-wizard-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0.45rem 0 0.75rem;
}

.staff-dashboard-step-meta {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.staff-dashboard-step-meta span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.staff-step-link {
    color: var(--staff-wizard-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.staff-step-link:hover,
.staff-step-link:focus {
    color: var(--staff-wizard-primary-dark);
    text-decoration: none;
}

.staff-list-hero {
    align-items: stretch;
}

.staff-list-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(7.5rem, 1fr));
}

.staff-list-metrics > div {
    box-shadow: none;
    min-width: 0;
    padding: 0.85rem 1rem;
}

.staff-list-metrics strong {
    color: var(--staff-wizard-primary-dark);
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.staff-list-metrics span {
    color: var(--staff-wizard-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.staff-list-page .staff-section-card {
    background: #ffffff;
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 35, 55, 0.06);
    padding: 1.5rem;
}

.staff-list-page .staff-section-header {
    border-bottom: 1px solid var(--staff-wizard-line);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.staff-list-page .fs-title {
    color: var(--staff-wizard-ink);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    text-align: left;
}

.staff-list-page .staff-section-subtitle {
    color: var(--staff-wizard-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0.35rem 0 0;
}

.staff-table-card .table-responsive {
    border: 1px solid var(--staff-wizard-line);
    border-radius: 8px;
}

.staff-data-table {
    margin-bottom: 0;
}

.staff-data-table thead th,
.staff-data-table th {
    background: #fbfdfe;
    border-bottom: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: middle;
}

.staff-data-table td {
    color: #334155;
    vertical-align: middle;
}

.staff-data-table .staff-status-pill {
    margin-bottom: 0;
}

.staff-data-table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fbfdfe;
}

.staff-soft-badge {
    background: #f1f5f9;
    border: 1px solid #dbe6ec;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.38rem 0.6rem;
}

@media (max-width: 1199.98px) {
    .staff-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-list-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .staff-dashboard-hero,
    .staff-dashboard-progress-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .staff-dashboard-overview,
    .staff-dashboard-grid,
    .staff-list-metrics {
        grid-template-columns: 1fr;
    }

    .staff-dashboard-action,
    .staff-dashboard-primary {
        width: 100%;
    }
}

body {
    overflow: hidden;
}

.container-scroller,
.page-body-wrapper {
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.main-panel {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.content-wrapper {
    background: var(--staff-wizard-page);
    flex: 1 1 auto;
    overflow-y: auto;
}

.footer {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    min-height: 3.75rem;
    padding-bottom: 0;
    padding-top: 0;
}

.footer > .d-flex {
    align-items: center;
    min-height: 100%;
    width: 100%;
}

.page-header .breadcrumb a,
.breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
}

.page-header .breadcrumb a:hover,
.page-header .breadcrumb a:focus,
.breadcrumb .breadcrumb-item a:hover,
.breadcrumb .breadcrumb-item a:focus {
    color: var(--staff-wizard-primary-dark);
    text-decoration: none;
}

#msform.staff-profile-wizard {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    text-align: left;
}

#msform.staff-profile-wizard .staff-wizard-nav,
#msform.staff-profile-wizard > fieldset {
    background: var(--staff-wizard-panel);
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 35, 55, 0.06);
}

#msform.staff-profile-wizard .staff-wizard-nav {
    padding: 1.5rem 1.125rem;
}

#msform.staff-profile-wizard > fieldset {
    min-width: 0;
    padding: 1.875rem 2rem;
}

#msform.staff-profile-wizard > .staff-profile-content {
    min-width: 0;
}

#msform.staff-profile-wizard .staff-section-card {
    background: var(--staff-wizard-panel);
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 35, 55, 0.06);
    margin-bottom: 1.25rem;
    min-width: 0;
    padding: 1.5rem 1.5rem 1.25rem;
}

.staff-form-page .staff-section-card {
    background: var(--staff-wizard-panel);
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 35, 55, 0.06);
    padding: 1.5rem 1.5rem 1.25rem;
}

.staff-form-page .staff-section-header {
    border-bottom: 1px solid var(--staff-wizard-line);
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
}

.staff-form-page .fs-title {
    color: var(--staff-wizard-ink);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    text-align: left;
}

.staff-form-page .staff-section-subtitle {
    color: var(--staff-wizard-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0.35rem 0 0;
}

.staff-form-page .staff-section-actions {
    margin: 0 0 1rem;
}

.staff-form-page .staff-section-actions .btn-success,
.staff-form-page .btn-submit {
    align-items: center;
    background: var(--staff-wizard-primary-subtle);
    border: 1px solid #b9ddd7;
    border-radius: 7px;
    color: var(--staff-wizard-primary-dark);
    display: inline-flex;
    font-weight: 700;
    min-height: 2.35rem;
    padding: 0.55rem 0.95rem;
    text-decoration: none;
    box-shadow: none;
}

.staff-form-page .staff-section-actions .btn-success:hover,
.staff-form-page .staff-section-actions .btn-success:focus,
.staff-form-page .btn-submit:hover,
.staff-form-page .btn-submit:focus {
    background: #e6f6f3;
    border-color: #8bc9bf;
    color: var(--staff-wizard-primary-dark);
    text-decoration: none;
}

.staff-form-page .btn-cancel {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5df;
    border-radius: 7px;
    color: #475569;
    display: inline-flex;
    font-weight: 700;
    min-height: 2.35rem;
    padding: 0.55rem 0.95rem;
    text-decoration: none;
    box-shadow: none;
}

.staff-form-page .btn-cancel:hover,
.staff-form-page .btn-cancel:focus {
    background: #f8fafc;
    color: #27384c;
    text-decoration: none;
}

.staff-form-page .form-group label {
    color: #475569;
    font-weight: 700;
}

.staff-form-page .has-error .col-form-label,
.staff-form-page .has-error .control-label,
.staff-form-page .has-error .error,
.staff-form-page .has-error .help-block,
.staff-form-page .has-error .input-icon > i,
#msform.staff-profile-wizard .has-error .col-form-label,
#msform.staff-profile-wizard .has-error .control-label,
#msform.staff-profile-wizard .has-error .error,
#msform.staff-profile-wizard .has-error .help-block,
#msform.staff-profile-wizard .has-error .input-icon > i {
    color: var(--staff-wizard-danger);
}

.staff-form-page .help-block,
#msform.staff-profile-wizard .help-block {
    display: block;
    font-size: 0.875em;
    margin-bottom: 0;
    margin-top: 0.25rem;
    width: 100%;
}

.staff-form-page .staff-textarea-field {
    margin-bottom: 0.35rem;
}

.staff-form-page .staff-textarea-field .control-label {
    line-height: 1.35;
    margin-bottom: 0.45rem;
}

.staff-form-page .staff-plain-textarea {
    color: #334155;
    line-height: 1.55;
    min-height: 10.75rem;
    resize: vertical;
}

.staff-form-page .staff-plain-textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.staff-form-page .staff-field-hint {
    color: var(--staff-wizard-muted);
    display: block;
    font-size: 0.84rem;
    line-height: 1.45;
    margin-top: 0.4rem;
}

.staff-form-page .staff-character-counter {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 1.2rem;
    margin-top: 0;
    text-align: right;
}

.staff-form-page .has-error .staff-field-hint {
    color: var(--staff-wizard-danger);
}

#msform.staff-profile-wizard .staff-answer-block {
    border-top: 1px solid var(--staff-wizard-line);
    padding: 1rem 0;
}

#msform.staff-profile-wizard .staff-answer-block:first-of-type {
    border-top: 0;
    padding-top: 0;
}

#msform.staff-profile-wizard .additional-information .staff-section-actions + .staff-answer-block {
    border-top: 0;
    padding-top: 0;
}

#msform.staff-profile-wizard .staff-answer-block h6 {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.55rem;
}

#msform.staff-profile-wizard .staff-plain-answer {
    background: #fbfdfe;
    border-left: 3px solid #b9ddd7;
    border-radius: 7px;
    color: #475569;
    line-height: 1.6;
    min-height: 2.75rem;
    padding: 0.75rem 0.9rem;
}

#msform.staff-profile-wizard .staff-empty-answer {
    color: #94a3b8;
    font-style: italic;
}

.staff-form-page .form-control,
.staff-form-page .select2-container {
    max-width: 100%;
}

.staff-form-page .form-control,
#msform.staff-profile-wizard .form-control,
.staff-form-page .select2-container--default .select2-selection--single,
.staff-form-page .select2-container--default .select2-selection--multiple,
#msform.staff-profile-wizard .select2-container--default .select2-selection--single,
#msform.staff-profile-wizard .select2-container--default .select2-selection--multiple {
    border-radius: 7px;
}

.staff-form-page .select2-container {
    display: block;
    width: 100% !important;
}

#msform.staff-profile-wizard select:not(.select2-hidden-accessible):not([multiple]):not([size]),
#msform.staff-profile-wizard select:not(.select2-hidden-accessible):not([multiple])[size="1"],
.staff-form-page select:not(.select2-hidden-accessible):not([multiple]):not([size]),
.staff-form-page select:not(.select2-hidden-accessible):not([multiple])[size="1"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: right 0.85rem center !important;
    background-repeat: no-repeat !important;
    background-size: 0.9rem 0.75rem !important;
    border: 1px solid #dbe6ec;
    border-radius: 7px;
    color: #334155;
    min-height: 2.375rem;
    outline: 0;
    padding-right: 2.45rem !important;
}

#msform.staff-profile-wizard select:not(.select2-hidden-accessible):focus,
.staff-form-page select:not(.select2-hidden-accessible):focus {
    background-color: #ffffff;
    border-color: #9fd4cc;
    box-shadow: 0 0 0 0.16rem rgba(15, 118, 110, 0.12);
    color: #102033;
    outline: 0;
}

#msform.staff-profile-wizard select:not(.select2-hidden-accessible).is-valid,
#msform.staff-profile-wizard select:not(.select2-hidden-accessible).is-invalid,
.staff-form-page select:not(.select2-hidden-accessible).is-valid,
.staff-form-page select:not(.select2-hidden-accessible).is-invalid {
    background-position: right 0.85rem center !important;
    padding-right: 2.45rem !important;
}

.staff-form-page .has-error .form-control,
.staff-form-page .has-error .form-select,
#msform.staff-profile-wizard .has-error .form-control,
#msform.staff-profile-wizard .has-error .form-select,
.staff-form-page .form-control.is-invalid,
.staff-form-page .form-select.is-invalid,
#msform.staff-profile-wizard .form-control.is-invalid,
#msform.staff-profile-wizard .form-select.is-invalid {
    border-color: var(--staff-wizard-danger) !important;
    color: #b42318;
}

.staff-form-page .has-error .form-control:focus,
.staff-form-page .has-error .form-select:focus,
#msform.staff-profile-wizard .has-error .form-control:focus,
#msform.staff-profile-wizard .has-error .form-select:focus,
.staff-form-page .form-control.is-invalid:focus,
.staff-form-page .form-select.is-invalid:focus,
#msform.staff-profile-wizard .form-control.is-invalid:focus,
#msform.staff-profile-wizard .form-select.is-invalid:focus {
    border-color: var(--staff-wizard-danger) !important;
    box-shadow: 0 0 0 0.16rem rgba(231, 76, 60, 0.14);
}

.staff-form-page .has-error .select2-container--default .select2-selection--single,
.staff-form-page .has-error .select2-container--default .select2-selection--multiple,
#msform.staff-profile-wizard .has-error .select2-container--default .select2-selection--single,
#msform.staff-profile-wizard .has-error .select2-container--default .select2-selection--multiple {
    border-color: var(--staff-wizard-danger) !important;
}

.staff-form-page .modal-footer {
    border-top: 1px solid var(--staff-wizard-line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding: 1rem 0 0;
}

.staff-form-page .modal-footer::before,
.staff-form-page .modal-footer::after {
    content: none;
}

.staff-form-page .modal-footer .btn-cancel,
.staff-form-page .modal-footer .btn-submit,
#msform.staff-profile-wizard .modal-footer .btn-cancel,
#msform.staff-profile-wizard .modal-footer .btn-submit,
.staff-styled-modal .modal-footer .btn-cancel,
.staff-styled-modal .modal-footer .btn-submit,
.staff-styled-modal .modal-dialog .modal-content .modal-footer .btn-cancel,
.staff-styled-modal .modal-dialog .modal-content .modal-footer .btn-submit {
    align-items: center;
    border-radius: 7px;
    box-shadow: none;
    display: inline-flex;
    font-weight: 700;
    height: auto;
    justify-content: center;
    line-height: 1;
    min-height: 2.4rem;
    min-width: 5.5rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
}

.staff-form-page .modal-footer .btn-submit,
#msform.staff-profile-wizard .modal-footer .btn-submit,
.staff-styled-modal .modal-footer .btn-submit,
.staff-styled-modal .modal-dialog .modal-content .modal-footer .btn-submit {
    background: var(--staff-wizard-primary-subtle);
    border: 1px solid #b9ddd7;
    color: var(--staff-wizard-primary-dark);
}

.staff-form-page .modal-footer .btn-submit:hover,
.staff-form-page .modal-footer .btn-submit:focus,
#msform.staff-profile-wizard .modal-footer .btn-submit:hover,
#msform.staff-profile-wizard .modal-footer .btn-submit:focus,
.staff-styled-modal .modal-footer .btn-submit:hover,
.staff-styled-modal .modal-footer .btn-submit:focus,
.staff-styled-modal .modal-dialog .modal-content .modal-footer .btn-submit:hover,
.staff-styled-modal .modal-dialog .modal-content .modal-footer .btn-submit:focus {
    background: #e6f6f3;
    border-color: #8bc9bf;
    color: var(--staff-wizard-primary-dark);
    text-decoration: none;
}

.staff-form-page .modal-footer .btn-cancel,
#msform.staff-profile-wizard .modal-footer .btn-cancel,
.staff-styled-modal .modal-footer .btn-cancel,
.staff-styled-modal .modal-dialog .modal-content .modal-footer .btn-cancel {
    background: #ffffff;
    border: 1px solid #f0c98a;
    color: #975a16;
}

.staff-form-page .modal-footer .btn-cancel:hover,
.staff-form-page .modal-footer .btn-cancel:focus,
#msform.staff-profile-wizard .modal-footer .btn-cancel:hover,
#msform.staff-profile-wizard .modal-footer .btn-cancel:focus,
.staff-styled-modal .modal-footer .btn-cancel:hover,
.staff-styled-modal .modal-footer .btn-cancel:focus,
.staff-styled-modal .modal-dialog .modal-content .modal-footer .btn-cancel:hover,
.staff-styled-modal .modal-dialog .modal-content .modal-footer .btn-cancel:focus {
    background: #fff7ed;
    border-color: #d89435;
    color: #7c3f08;
    text-decoration: none;
}

.staff-form-page .modal .modal-content,
#msform.staff-profile-wizard .modal .modal-content,
.staff-styled-modal .modal-content {
    background: var(--staff-wizard-page);
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(15, 35, 55, 0.2);
    overflow: hidden;
}

.staff-form-page .modal .modal-header,
#msform.staff-profile-wizard .modal .modal-header,
.staff-styled-modal .modal-header {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--staff-wizard-line);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.staff-form-page .modal .modal-title,
#msform.staff-profile-wizard .modal .modal-title,
.staff-styled-modal .modal-title {
    color: var(--staff-wizard-ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.staff-form-page .modal .modal-body,
#msform.staff-profile-wizard .modal .modal-body,
.staff-styled-modal .modal-body {
    background: #ffffff;
    padding: 1.25rem;
}

.staff-form-page .modal .modal-footer,
#msform.staff-profile-wizard .modal .modal-footer,
.staff-styled-modal .modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--staff-wizard-line);
    margin: 1.25rem -1.25rem -1.25rem;
    padding: 1rem 1.25rem;
}

.staff-form-page .modal .close,
#msform.staff-profile-wizard .modal .close,
.staff-styled-modal .close,
.staff-form-page .modal .modal-header [data-bs-dismiss="modal"],
#msform.staff-profile-wizard .modal .modal-header [data-bs-dismiss="modal"],
.staff-styled-modal .modal-header [data-bs-dismiss="modal"],
.staff-form-page .modal .btn[data-dismiss="modal"],
#msform.staff-profile-wizard .modal .btn[data-dismiss="modal"],
.staff-styled-modal .btn[data-dismiss="modal"] {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe6ec;
    border-radius: 7px;
    color: #475569;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    min-width: 2rem;
    opacity: 1;
    padding: 0.25rem 0.5rem;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.staff-form-page .modal .close:hover,
.staff-form-page .modal .close:focus,
#msform.staff-profile-wizard .modal .close:hover,
#msform.staff-profile-wizard .modal .close:focus,
.staff-styled-modal .close:hover,
.staff-styled-modal .close:focus,
.staff-form-page .modal .modal-header [data-bs-dismiss="modal"]:hover,
.staff-form-page .modal .modal-header [data-bs-dismiss="modal"]:focus,
#msform.staff-profile-wizard .modal .modal-header [data-bs-dismiss="modal"]:hover,
#msform.staff-profile-wizard .modal .modal-header [data-bs-dismiss="modal"]:focus,
.staff-styled-modal .modal-header [data-bs-dismiss="modal"]:hover,
.staff-styled-modal .modal-header [data-bs-dismiss="modal"]:focus,
.staff-form-page .modal .btn[data-dismiss="modal"]:hover,
.staff-form-page .modal .btn[data-dismiss="modal"]:focus,
#msform.staff-profile-wizard .modal .btn[data-dismiss="modal"]:hover,
#msform.staff-profile-wizard .modal .btn[data-dismiss="modal"]:focus,
.staff-styled-modal .btn[data-dismiss="modal"]:hover,
.staff-styled-modal .btn[data-dismiss="modal"]:focus {
    background: #eef7f6;
    border-color: #b9ddd7;
    box-shadow: 0 8px 18px rgba(15, 35, 55, 0.16);
    color: var(--staff-wizard-primary-dark);
    transform: translateY(-2px);
}

.staff-form-page .modal .close span,
#msform.staff-profile-wizard .modal .close span,
.staff-styled-modal .close span {
    display: block;
    line-height: 1;
}

.staff-modal-loading {
    color: var(--staff-wizard-muted);
    font-weight: 600;
    padding: 1rem 0;
    text-align: center;
}

#msform.staff-profile-wizard .staff-section-card:last-of-type {
    margin-bottom: 0;
}

#msform.staff-profile-wizard .staff-section-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

#msform.staff-profile-wizard .staff-section-header .fs-title {
    margin-bottom: 0;
}

#msform.staff-profile-wizard .staff-section-subtitle {
    color: var(--staff-wizard-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0.35rem 0 0;
}

#msform.staff-profile-wizard .staff-section-actions {
    margin: 0 0 1rem;
    text-align: left;
}

#msform.staff-profile-wizard .staff-section-card .table-responsive {
    border: 1px solid var(--staff-wizard-line);
    border-radius: 8px;
}

#msform.staff-profile-wizard .staff-section-card .table {
    margin-bottom: 0;
}

#msform.staff-profile-wizard .staff-section-card .table thead th,
#msform.staff-profile-wizard .staff-section-card .table th {
    background: #fbfdfe;
    border-bottom: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    vertical-align: middle;
}

#msform.staff-profile-wizard .staff-section-card .table thead th a,
#msform.staff-profile-wizard .staff-section-card .table th a {
    color: #64748b;
    text-decoration: none;
}

#msform.staff-profile-wizard .staff-section-card .table thead th a:hover,
#msform.staff-profile-wizard .staff-section-card .table thead th a:focus,
#msform.staff-profile-wizard .staff-section-card .table th a:hover,
#msform.staff-profile-wizard .staff-section-card .table th a:focus {
    color: #475569;
    text-decoration: none;
}

#msform.staff-profile-wizard .staff-section-card .table tbody tr:first-child td {
    border-top-color: var(--staff-wizard-line);
}

#msform.staff-profile-wizard .staff-section-card .table td {
    color: #334155;
    vertical-align: middle;
}

#msform.staff-profile-wizard .staff-section-card .table-striped tbody tr:nth-of-type(odd) {
    background-color: #fbfdfe;
}

#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child {
    white-space: nowrap;
}

#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > a,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > button,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > .dropdown > button {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe6ec;
    border-radius: 7px;
    color: #64748b;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    margin-left: 0.25rem;
    margin-right: 0.35rem;
    padding: 0;
    text-decoration: none;
    width: 2rem;
}

#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > a:hover,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > a:focus,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > button:hover,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > button:focus,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > .dropdown > button:hover,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > .dropdown > button:focus {
    background: #eef7f6;
    border-color: #b9ddd7;
    color: var(--staff-wizard-primary-dark);
    text-decoration: none;
}

#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > a .fa,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > button .fa {
    font-size: 0.95rem;
    line-height: 1;
}

#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > a .fa-edit,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > button .fa-edit {
    color: var(--staff-wizard-primary-dark);
}

#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > a .fa-trash,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > button .fa-trash {
    color: #b45353;
}

#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > a:hover .fa-trash,
#msform.staff-profile-wizard .staff-section-card .table tbody td:last-child > a:focus .fa-trash {
    color: #9f2f2f;
}

#msform.staff-profile-wizard .staff-skills-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

#msform.staff-profile-wizard .staff-skill-group {
    background: #ffffff;
    border: 1px solid var(--staff-wizard-line);
    border-radius: 8px;
    overflow: visible;
}

#msform.staff-profile-wizard .staff-skill-group-header {
    align-items: flex-start;
    background: #f8fafc;
    border-bottom: 1px solid var(--staff-wizard-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 5.15rem;
    padding: 0.9rem 1rem;
}

#msform.staff-profile-wizard .staff-skill-group-header h3 {
    color: var(--staff-wizard-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

#msform.staff-profile-wizard .staff-skill-group-header p {
    color: var(--staff-wizard-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    margin: 0.35rem 0 0;
}

#msform.staff-profile-wizard .staff-skill-count {
    align-items: center;
    background: var(--staff-wizard-primary-subtle);
    border: 1px solid #c8e4df;
    border-radius: 999px;
    color: var(--staff-wizard-primary-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0 0.55rem;
}

#msform.staff-profile-wizard .staff-skill-table-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
}

#msform.staff-profile-wizard .staff-skill-table {
    table-layout: fixed;
}

#msform.staff-profile-wizard .staff-skill-table tbody tr:first-child td {
    border-top: 0;
}

#msform.staff-profile-wizard .staff-skill-table td {
    border-top-color: #edf2f6;
    padding: 0.78rem 0.95rem;
}

#msform.staff-profile-wizard .staff-skill-name {
    color: #334155;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

#msform.staff-profile-wizard .staff-skill-meta {
    color: var(--staff-wizard-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

#msform.staff-profile-wizard .staff-skill-actions {
    padding-left: 0;
    padding-right: 1rem;
    text-align: right;
    width: 3.35rem;
}

#msform.staff-profile-wizard .staff-skill-actions .dropdown {
    display: inline-flex;
}

#msform.staff-profile-wizard .staff-skill-actions .staff-action-menu {
    margin: 0;
}

#msform.staff-profile-wizard .staff-skill-actions .staff-action-menu::after {
    content: none;
}

#msform.staff-profile-wizard .staff-skill-actions .dropdown-menu {
    border: 1px solid var(--staff-wizard-line);
    border-radius: 7px;
    box-shadow: 0 14px 30px rgba(15, 35, 55, 0.12);
    min-width: 8.5rem;
    padding: 0.35rem;
}

#msform.staff-profile-wizard .staff-skill-actions .dropdown-item {
    border: 0;
    border-radius: 6px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.55rem 0.65rem;
    text-align: left;
    width: 100%;
}

#msform.staff-profile-wizard .staff-skill-actions .dropdown-item:hover,
#msform.staff-profile-wizard .staff-skill-actions .dropdown-item:focus {
    background: #eef7f6;
    color: var(--staff-wizard-primary-dark);
}

#msform.staff-profile-wizard .staff-skill-actions .dropdown-item.text-danger {
    color: #b45353 !important;
}

#msform.staff-profile-wizard .staff-skill-actions .dropdown-item.text-danger:hover,
#msform.staff-profile-wizard .staff-skill-actions .dropdown-item.text-danger:focus {
    background: #fff1f1;
    color: #9f2f2f !important;
}

#msform.staff-profile-wizard .staff-skill-empty {
    color: var(--staff-wizard-muted);
    font-size: 0.86rem;
    padding: 1rem;
    text-align: center;
}

#msform.staff-profile-wizard .staff-section-actions .btn-success {
    align-items: center;
    background: var(--staff-wizard-primary-subtle);
    border: 1px solid #b9ddd7;
    border-radius: 7px;
    color: var(--staff-wizard-primary-dark);
    display: inline-flex;
    font-weight: 700;
    min-height: 2.35rem;
    padding: 0.55rem 0.95rem;
    text-decoration: none;
    box-shadow: none;
}

#msform.staff-profile-wizard .staff-section-actions .btn-success:hover,
#msform.staff-profile-wizard .staff-section-actions .btn-success:focus {
    background: #e6f6f3;
    border-color: #8bc9bf;
    color: var(--staff-wizard-primary-dark);
    text-decoration: none;
}

#msform.staff-profile-wizard .staff-academic-card .nav-pills-custom {
    background: #f8fafc;
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0.45rem;
}

#msform.staff-profile-wizard .staff-academic-card .nav-pills-custom .nav-item {
    margin: 0;
}

#msform.staff-profile-wizard .staff-academic-card .nav-pills-custom .nav-link {
    align-items: center;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #52657a;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 2.4rem;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

#msform.staff-profile-wizard .staff-academic-card .nav-pills-custom .nav-link:hover,
#msform.staff-profile-wizard .staff-academic-card .nav-pills-custom .nav-link:focus {
    background: #eef7f6;
    border-color: #c9e3de;
    color: var(--staff-wizard-primary-dark);
    text-decoration: none;
}

#msform.staff-profile-wizard .staff-academic-card .nav-pills-custom .nav-link.active,
#msform.staff-profile-wizard .staff-academic-card .nav-pills-custom .nav-item.show .nav-link {
    background: var(--staff-wizard-primary);
    border-color: var(--staff-wizard-primary);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
    color: #ffffff;
}

#msform.staff-profile-wizard .staff-academic-card .tab-content-custom-pill {
    background: #ffffff;
    border: 1px solid var(--staff-wizard-line);
    border-radius: 8px;
    padding: 1rem;
}

#msform.staff-profile-wizard .staff-academic-card .tab-pane .staff-section-actions {
    margin-top: 0;
}

#msform.staff-profile-wizard .staff-education-tabs {
    border-bottom: 1px solid var(--staff-wizard-border);
    display: flex;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1rem;
    overflow-x: auto;
    padding: 0;
}

#msform.staff-profile-wizard .staff-education-tabs .nav-item {
    flex: 0 0 auto;
    margin: 0;
}

#msform.staff-profile-wizard .staff-education-tab {
    border: 1px solid transparent;
    border-radius: 7px 7px 0 0;
    color: #475569;
    display: inline-flex;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
}

#msform.staff-profile-wizard .staff-education-tab:hover,
#msform.staff-profile-wizard .staff-education-tab:focus {
    background: #f5faf9;
    color: var(--staff-wizard-primary-dark);
    text-decoration: none;
}

#msform.staff-profile-wizard .staff-education-tab.active {
    background: #ffffff;
    border-color: var(--staff-wizard-border) var(--staff-wizard-border) #ffffff;
    color: var(--staff-wizard-primary-dark);
    margin-bottom: -1px;
}

#msform.staff-profile-wizard .staff-education-panel {
    display: none;
}

#msform.staff-profile-wizard .staff-education-panel.active {
    display: block;
}

#msform.staff-profile-wizard .staff-wizard-actions {
    align-items: center;
    background: var(--staff-wizard-panel);
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 35, 55, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
}

#msform.staff-profile-wizard .staff-wizard-status {
    margin-bottom: 1.125rem;
}

#msform.staff-profile-wizard .staff-wizard-title {
    color: var(--staff-wizard-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

#msform.staff-profile-wizard .staff-wizard-count {
    color: var(--staff-wizard-muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

#msform.staff-profile-wizard .staff-wizard-current,
#msform.staff-profile-wizard .staff-wizard-note {
    display: none;
}

#msform.staff-profile-wizard .staff-wizard-meter {
    background: var(--staff-wizard-line);
    border-radius: 999px;
    height: 0.45rem;
    margin-top: 0.75rem;
    overflow: hidden;
}

#msform.staff-profile-wizard .staff-wizard-meter span {
    background: var(--staff-wizard-primary);
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 1.35rem;
}

#msform.staff-profile-wizard .staff-wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#msform.staff-profile-wizard .staff-wizard-step {
    display: block;
    float: none;
    margin: 0;
    min-width: 0;
    padding: 0;
    position: relative;
    width: 100%;
}

#msform.staff-profile-wizard .staff-wizard-step-content {
    align-items: center;
    background: #f8fafb;
    border: 1px solid var(--staff-wizard-line);
    border-radius: 8px;
    color: #27384c;
    display: flex;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.65rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 100%;
}

#msform.staff-profile-wizard a.staff-wizard-step-content:hover,
#msform.staff-profile-wizard a.staff-wizard-step-content:focus {
    background: #eef7f6;
    border-color: #9fd4cc;
    color: var(--staff-wizard-primary-dark);
    text-decoration: none;
}

#msform.staff-profile-wizard .staff-wizard-step-number {
    align-items: center;
    background: #eef4f6;
    border: 1px solid #d2dde5;
    border-radius: 999px;
    color: #52657a;
    display: inline-flex;
    flex: 0 0 1.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    line-height: 1;
    width: 1.75rem;
}

#msform.staff-profile-wizard .staff-wizard-step-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#msform.staff-profile-wizard .staff-wizard-step.active .staff-wizard-step-content {
    background: var(--staff-wizard-primary);
    border-color: var(--staff-wizard-primary);
    color: #ffffff;
}

#msform.staff-profile-wizard .staff-wizard-step.active .staff-wizard-step-number {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--staff-wizard-primary);
}

#msform.staff-profile-wizard .staff-wizard-step.is-complete .staff-wizard-step-content {
    border-color: #bfddd7;
}

#msform.staff-profile-wizard .staff-wizard-step.is-complete .staff-wizard-step-number {
    background: var(--staff-wizard-primary-soft);
    border-color: #bfddd7;
    color: var(--staff-wizard-primary-dark);
}

#msform.staff-profile-wizard .fs-title {
    color: var(--staff-wizard-ink);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1.35rem;
    text-align: left;
}

#msform.staff-profile-wizard .form-group,
#msform.staff-profile-wizard .form-control,
#msform.staff-profile-wizard .select2-container {
    max-width: 100%;
}

#msform.staff-profile-wizard .select2-container {
    display: block;
    width: 100% !important;
}

#msform.staff-profile-wizard .select2-container .select2-selection--single {
    min-height: 2.375rem;
}

#msform.staff-profile-wizard .select2-container .select2-selection__rendered {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#msform.staff-profile-wizard .action-button,
#msform.staff-profile-wizard .action-button-previous {
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.65rem 1.25rem;
    text-decoration: none;
    box-shadow: none;
    font-weight: 700;
    min-width: 7.5rem;
}

#msform.staff-profile-wizard .action-button {
    background: var(--staff-wizard-primary);
    border: 1px solid var(--staff-wizard-primary);
    border-color: var(--staff-wizard-primary);
    color: #ffffff;
}

#msform.staff-profile-wizard .action-button:hover,
#msform.staff-profile-wizard .action-button:focus {
    background: var(--staff-wizard-primary-dark);
    color: #ffffff;
    text-decoration: none;
}

#msform.staff-profile-wizard .action-button-previous {
    background: #ffffff;
    border: 1px solid #94a3b8;
    color: #475569;
}

#msform.staff-profile-wizard .action-button-previous:hover,
#msform.staff-profile-wizard .action-button-previous:focus {
    background: #f8fafc;
    color: #27384c;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    #msform.staff-profile-wizard {
        display: block;
    }

    #msform.staff-profile-wizard .staff-wizard-nav {
        margin-bottom: 1rem;
        overflow: hidden;
        padding: 1rem;
    }

    #msform.staff-profile-wizard > fieldset {
        padding: 1.25rem 1rem;
    }

    #msform.staff-profile-wizard .staff-section-card {
        padding: 1.25rem 1rem;
    }

    .staff-form-page .staff-section-card {
        padding: 1.25rem 1rem;
    }

    #msform.staff-profile-wizard .staff-section-header {
        display: block;
    }

    #msform.staff-profile-wizard .staff-academic-card .nav-pills-custom {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    #msform.staff-profile-wizard .staff-academic-card .nav-pills-custom::-webkit-scrollbar {
        height: 0.25rem;
    }

    #msform.staff-profile-wizard .staff-academic-card .nav-pills-custom::-webkit-scrollbar-thumb {
        background: #cbd5df;
        border-radius: 999px;
    }

    #msform.staff-profile-wizard .staff-academic-card .nav-pills-custom .nav-item {
        flex: 0 0 auto;
    }

    #msform.staff-profile-wizard .staff-academic-card .nav-pills-custom .nav-link {
        white-space: nowrap;
    }

    #msform.staff-profile-wizard .staff-academic-card .tab-content-custom-pill {
        padding: 0.85rem;
    }

    #msform.staff-profile-wizard .staff-wizard-title {
        display: none;
    }

    #msform.staff-profile-wizard .staff-wizard-count {
        color: var(--staff-wizard-primary);
        font-size: 0.92rem;
        font-weight: 700;
        margin-bottom: 0.65rem;
    }

    #msform.staff-profile-wizard .staff-wizard-current {
        color: var(--staff-wizard-ink);
        display: block;
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 0.35rem;
    }

    #msform.staff-profile-wizard .staff-wizard-note {
        color: var(--staff-wizard-muted);
        display: block;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    #msform.staff-profile-wizard .staff-wizard-meter {
        margin-top: 0.85rem;
        margin-bottom: 1.25rem;
    }

    #msform.staff-profile-wizard .staff-wizard-steps {
        flex-direction: row;
        gap: 0;
        margin: 0 -1rem;
        overflow-x: auto;
        padding: 0 1rem 0.35rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    #msform.staff-profile-wizard .staff-wizard-steps::-webkit-scrollbar {
        height: 0.25rem;
    }

    #msform.staff-profile-wizard .staff-wizard-steps::-webkit-scrollbar-thumb {
        background: #cbd5df;
        border-radius: 999px;
    }

    #msform.staff-profile-wizard .staff-wizard-step {
        flex: 0 0 12.25rem;
        margin-right: -0.15rem;
        scroll-snap-align: start;
    }

    #msform.staff-profile-wizard .staff-wizard-step-content {
        background: #ffffff;
        border-radius: 0;
        clip-path: polygon(0 0, calc(100% - 1.15rem) 0, 100% 50%, calc(100% - 1.15rem) 100%, 0 100%, 1.15rem 50%);
        min-height: 3.45rem;
        padding: 0.6rem 1.45rem 0.6rem 1.35rem;
    }

    #msform.staff-profile-wizard .staff-wizard-step.active .staff-wizard-step-content {
        background: var(--staff-wizard-primary-soft);
        border-color: #9fd4cc;
        color: var(--staff-wizard-ink);
        position: relative;
    }

    #msform.staff-profile-wizard .staff-wizard-step.active .staff-wizard-step-content::after {
        background: var(--staff-wizard-primary);
        bottom: 0.08rem;
        content: "";
        height: 0.18rem;
        left: 1.55rem;
        position: absolute;
        right: 1.45rem;
    }

    #msform.staff-profile-wizard .staff-wizard-step.active .staff-wizard-step-number {
        background: var(--staff-wizard-primary);
        border-color: var(--staff-wizard-primary);
        color: #ffffff;
    }

    #msform.staff-profile-wizard .staff-wizard-step-label {
        white-space: normal;
    }

    #msform.staff-profile-wizard .staff-wizard-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 1rem;
    }

    #msform.staff-profile-wizard .staff-wizard-actions .action-button,
    #msform.staff-profile-wizard .staff-wizard-actions .action-button-previous {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .content-wrapper {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    #msform.staff-profile-wizard .staff-wizard-nav,
    #msform.staff-profile-wizard > fieldset {
        border-radius: 8px;
    }

    #msform.staff-profile-wizard .fs-title {
        font-size: 1.1rem;
    }

    #msform.staff-profile-wizard .staff-wizard-step {
        flex-basis: 11.75rem;
    }
}
.modal .modal-dialog .modal-content .modal-header .close span {
    font-size: 28px!important;
}

.staff-admin-action-menu {
    display: inline-block;
}

.staff-admin-action-btn {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    height: 2.1rem;
    justify-content: center;
    padding: 0;
    width: 2.1rem;
}

.staff-admin-action-btn::after {
    display: none;
}

.staff-admin-action-menu .dropdown-menu {
    border: 1px solid #d7dee8;
    border-radius: 7px;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12);
    min-width: 13rem;
}

.staff-admin-action-menu .dropdown-item {
    color: #253349;
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
}

.staff-admin-action-menu .dropdown-item i {
    color: #1d4ed8;
    margin-right: 0.45rem;
}

.backend-staff-wizard-page {
    --staff-wizard-primary: #1d4ed8;
    --staff-wizard-primary-dark: #1e3a8a;
    --staff-wizard-primary-soft: #dbeafe;
    --staff-wizard-primary-subtle: #eff6ff;
    --staff-wizard-ink: #102033;
    --staff-wizard-muted: #64748b;
    --staff-wizard-border: #d7dee8;
    --staff-wizard-line: #e6edf5;
    --staff-wizard-panel: #ffffff;
    --staff-wizard-page: #f4f7fb;
    background: #f4f7fb;
    padding: 1rem 0 2rem;
}

.backend-wizard-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.backend-staff-wizard-page #msform.staff-profile-wizard {
    margin: 0;
}

.backend-staff-wizard #progressbar {
    margin-bottom: 0;
}

.backend-staff-wizard .staff-wizard-nav {
    border-top: 4px solid #1d4ed8;
}

.backend-staff-wizard .staff-wizard-title {
    letter-spacing: 0;
    text-transform: uppercase;
}

.backend-staff-wizard .staff-wizard-step.is-complete .staff-wizard-step-content,
.backend-staff-wizard .staff-wizard-step-content:hover,
.backend-staff-wizard .staff-wizard-step-content:focus {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.backend-staff-wizard .staff-wizard-step.is-complete .staff-wizard-step-number {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.backend-staff-wizard .staff-section-card {
    border-top: 3px solid #f59e0b;
}

.backend-readonly-badge {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #9a3412;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
}

.backend-readonly-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backend-readonly-field {
    background: #f8fafc;
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    min-width: 0;
    padding: 0.75rem;
}

.backend-readonly-label {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.backend-readonly-value {
    color: #172033;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.backend-readonly-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-style: italic;
    padding: 0.85rem;
}

td.backend-readonly-empty {
    background: #f8fafc;
    border-radius: 0;
    text-align: center;
}

.backend-readonly-subtitle {
    color: #1e3a8a;
    font-size: 1rem;
    font-weight: 800;
    margin: 1.35rem 0 0.75rem;
}

.backend-readonly-table {
    color: #1f2937;
    min-width: 760px;
}

.backend-readonly-table thead th {
    background: #eaf2ff;
    border-bottom: 1px solid #bfd3f2;
    color: #1e3a8a;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.backend-readonly-table td {
    vertical-align: top;
}

.backend-readonly-list {
    display: grid;
    gap: 0.55rem;
}

.backend-readonly-list > div:not(.backend-readonly-empty) {
    background: #f8fafc;
    border: 1px solid var(--staff-wizard-border);
    border-radius: 8px;
    color: #172033;
    padding: 0.75rem 0.85rem;
}

.backend-readonly-answer {
    background: #f8fafc;
    border-left: 4px solid #1d4ed8;
    border-radius: 8px;
    margin-bottom: 0.85rem;
    padding: 0.9rem 1rem;
}

.backend-readonly-answer h6 {
    color: #1e3a8a;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.backend-readonly-answer div {
    color: #253349;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .backend-readonly-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .backend-staff-wizard .staff-section-card {
        border-top-width: 2px;
    }
}

@media (max-width: 575.98px) {
    .backend-wizard-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
    }

    .backend-readonly-grid {
        grid-template-columns: 1fr;
    }

    .backend-readonly-field,
    .backend-readonly-answer,
    .backend-readonly-empty {
        border-radius: 7px;
    }

    .backend-readonly-table {
        min-width: 680px;
    }
}

.backend-review-hero {
    align-items: flex-start;
    background: linear-gradient(135deg, #0f2f5f 0%, #1d4ed8 64%, #2563eb 100%);
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    padding: 1.25rem 1.35rem;
}

.backend-review-eyebrow {
    color: #bfdbfe;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.backend-review-hero h1 {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.backend-review-identity {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.backend-review-identity span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #eef6ff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
}

.backend-review-status {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: right;
}

.backend-review-status .backend-readonly-badge {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.backend-review-status > span:last-child {
    color: #dbeafe;
    font-size: 0.82rem;
    font-weight: 700;
}

.backend-review-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.backend-review-summary > div {
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    min-width: 0;
    padding: 0.85rem 0.95rem;
}

.backend-review-summary span {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.backend-review-summary strong {
    color: #102033;
    display: block;
    font-size: 0.98rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.backend-staff-wizard {
    align-items: start;
}

.backend-staff-wizard .staff-wizard-nav {
    position: sticky;
    top: 0.75rem;
}

.backend-staff-wizard .staff-wizard-step-content {
    min-height: 4rem;
}

.backend-step-meta {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.12rem;
}

.backend-staff-wizard .staff-wizard-step.active .backend-step-meta {
    color: rgba(255, 255, 255, 0.82);
}

.backend-staff-wizard .backend-review-panel {
    display: none;
    margin-bottom: 0;
}

.backend-staff-wizard .backend-review-panel.active {
    display: block;
}

.backend-staff-wizard .staff-section-header {
    border-bottom: 1px solid #e6edf5;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
}

.backend-staff-wizard .staff-section-header .fs-title {
    color: #102033;
    font-size: 1.28rem;
}

.backend-readonly-groups {
    display: grid;
    gap: 1rem;
}

.backend-readonly-group {
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    padding: 0.95rem;
}

.backend-readonly-group h3 {
    color: #1e3a8a;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.75rem;
}

.backend-staff-wizard .backend-readonly-field {
    background: #fbfdff;
    border-color: #dde6f2;
}

.backend-staff-wizard .backend-readonly-table {
    min-width: 0;
}

.backend-staff-wizard .table-responsive {
    background: #ffffff;
}

.backend-review-footer {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    display: flex;
    gap: 0.85rem;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding: 0.85rem;
}

.backend-review-footer .btn {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-weight: 800;
    gap: 0.45rem;
}

.backend-review-footer .btn-primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.backend-review-footer .btn-primary:hover,
.backend-review-footer .btn-primary:focus {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.backend-review-position {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 800;
}

@media (max-width: 1199.98px) {
    .backend-review-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .backend-staff-wizard .staff-wizard-nav {
        position: static;
    }

    .backend-staff-wizard .staff-wizard-step-content {
        min-height: 3.75rem;
    }

    .backend-step-meta {
        display: none;
    }

    .backend-staff-wizard .backend-readonly-table {
        min-width: 720px;
    }
}

@media (max-width: 575.98px) {
    .backend-review-hero {
        display: block;
        padding: 1rem;
    }

    .backend-review-hero h1 {
        font-size: 1.2rem;
    }

    .backend-review-status {
        align-items: flex-start;
        margin-top: 0.85rem;
        text-align: left;
    }

    .backend-review-summary {
        grid-template-columns: 1fr;
    }

    .backend-review-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .backend-review-footer .btn {
        justify-content: center;
        width: 100%;
    }

    .backend-review-position {
        order: -1;
        text-align: center;
    }
}
