.login-shell.apply-shell {
    background: var(--admin-gray-900);
}
.apply-shell .login-main {
    align-items: center;
    justify-content: center;
    padding: 32px 24px 48px;
    overflow: auto;
    min-height: 100vh;
}
.apply-shell .login-box {
    max-width: 640px;
}
.apply-form .form-label {
    font-size: 13px;
    margin-bottom: 4px;
}
.apply-form .form-control,
.apply-form .form-select {
    min-height: 40px;
    padding: 6px 10px;
    font-size: 14px;
}
.apply-form .row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .7rem;
    margin-bottom: 14px;
}
.apply-summary {
    font-size: 12px;
    color: var(--admin-muted);
    padding: 8px 10px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: var(--admin-gray-50, #f8fafc);
    line-height: 1.45;
}
.apply-firm-card {
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius-lg, 12px);
    background: var(--admin-gray-50, #f8fafc);
    overflow: hidden;
}
.apply-firm-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--admin-line);
}
.apply-firm-card__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--admin-muted);
    margin-bottom: 2px;
}
.apply-firm-card__head strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--admin-ink);
    line-height: 1.3;
}
.apply-firm-card__edit {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--admin-primary);
    text-decoration: none;
    padding-top: 2px;
}
.apply-firm-card__edit:hover {
    color: var(--admin-primary-hover, #e65300);
}
.apply-firm-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
}
.apply-firm-card__grid > div {
    padding: 10px 14px;
    border-bottom: 1px solid var(--admin-line);
}
.apply-firm-card__grid > div:nth-child(odd) {
    border-right: 1px solid var(--admin-line);
}
.apply-firm-card__grid > div:nth-last-child(-n+2) {
    border-bottom: 0;
}
.apply-firm-card__grid dt {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--admin-muted);
    margin: 0 0 3px;
}
.apply-firm-card__grid dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-ink);
    line-height: 1.35;
}
@media (max-width: 575px) {
    .apply-firm-card__grid {
        grid-template-columns: 1fr;
    }
    .apply-firm-card__grid > div:nth-child(odd) {
        border-right: 0;
    }
    .apply-firm-card__grid > div:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--admin-line);
    }
    .apply-firm-card__grid > div:last-child {
        border-bottom: 0;
    }
}
.apply-form .invalid-feedback {
    font-size: 11px;
    margin-top: 3px;
}
.apply-form select.is-invalid + .select2-container .select2-selection {
    border-color: #dc3545 !important;
}
.apply-form .select2-container--bootstrap-5 .select2-selection {
    display: flex;
    align-items: center;
    min-height: 40px;
    height: 40px;
    padding: 0 10px;
    border-color: var(--admin-line);
    font-size: 14px;
    line-height: 1.4;
}
.apply-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    display: flex;
    align-items: center;
    padding: 0 1.5rem 0 0;
    margin: 0;
    line-height: 1.4;
    height: 100%;
}
.apply-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    top: 0;
    height: 100%;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apply-form .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.apply-form .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 .2rem rgba(255, 96, 0, .12);
}
.select2-container--bootstrap-5 .select2-dropdown {
    font-size: 13px;
    border-color: var(--admin-line);
}
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field,
.select2-container--bootstrap-5 .select2-dropdown .select2-search--dropdown .select2-search__field {
    font-size: 13px !important;
    line-height: 1.35 !important;
    min-height: 32px;
    height: 32px;
    padding: 4px 8px;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.35 !important;
    padding: 5px 10px;
}
.apply-shell--home .login-box.apply-home-box {
    max-width: 640px;
}

.apply-aside-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 48px;
}
.apply-aside-brand .login-brand {
    margin-bottom: 0;
    flex-shrink: 0;
}
.apply-aside-brand-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}
.apply-aside-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--btn-radius, var(--admin-radius, 6px));
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.apply-aside-nav-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .06);
}
.apply-aside-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.apply-aside-channels {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    max-width: 28rem;
}
.apply-aside-channels li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 600;
}
.apply-aside-channels i {
    color: var(--admin-primary);
    font-size: 13px;
}

.apply-type-grid {
    display: grid;
    gap: 0;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius-lg);
    overflow: hidden;
}
.apply-type-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 0;
    border-bottom: 1px solid var(--admin-line);
    border-radius: 0;
    background: var(--admin-card);
    color: inherit;
    text-decoration: none;
    transition: background .12s ease, color .12s ease;
}
.apply-type-card:last-child {
    border-bottom: 0;
}
.apply-type-card:hover {
    border-color: var(--admin-line);
    box-shadow: none;
    background: var(--admin-primary-light);
    color: inherit;
}
.apply-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--admin-primary-light);
    color: var(--admin-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.apply-type-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.apply-type-body strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--admin-ink);
}
.apply-type-body small {
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.4;
}
.apply-type-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--admin-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.apply-type-card:hover .apply-type-meta {
    color: var(--admin-primary);
}
.apply-empty {
    padding: 18px 16px;
    border: 1px dashed var(--admin-line);
    border-radius: var(--admin-radius-lg);
    color: var(--admin-muted);
    font-size: 13px;
    text-align: center;
}

.apply-wizard {
    margin: 0 0 16px;
    padding: 0;
}
.apply-wizard .form-wizard-label {
    font-size: 11px;
}
.apply-hint {
    font-size: 12px;
    color: var(--admin-muted);
    margin-top: 4px;
}
.apply-debug {
    font-size: 12px;
    background: var(--admin-primary-light);
    border: 1px dashed var(--admin-primary);
    color: var(--admin-primary-hover);
    border-radius: var(--admin-radius);
    padding: 8px 10px;
    margin-bottom: 14px;
}
.apply-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--admin-success-bg);
    color: var(--admin-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 4px auto 14px;
}
.apply-done .login-box-head {
    margin-bottom: 8px;
}
.apply-done .login-box-head p {
    margin-bottom: 0;
}
.apply-done-next {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.apply-done-next li {
    position: relative;
    padding: 0 0 10px 18px;
    font-size: 13px;
    color: var(--admin-muted);
    line-height: 1.45;
}
.apply-done-next li:last-child {
    padding-bottom: 0;
}
.apply-done-next li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--admin-primary);
}
@media (max-width: 960px) {
    .login-shell.apply-shell {
        grid-template-columns: 1fr;
    }
    .apply-shell .login-aside {
        min-height: auto;
        padding: 24px 20px;
    }
    .apply-shell .login-aside-copy,
    .apply-shell .login-features,
    .apply-shell .login-aside-foot {
        display: none;
    }
    .apply-shell .login-brand {
        margin-bottom: 0;
    }
    .apply-aside-brand {
        margin-bottom: 0;
    }
    .apply-aside-brand .login-brand-logo {
        width: 128px;
    }
    .apply-aside-nav-btn {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 11px;
    }
}
