:root {
    --portal-green: #30b539;
    --portal-green-dark: #0b5c2b;
    --portal-lime: #c9e54d;
    --portal-ink: #17251d;
    --portal-muted: #68746c;
    --portal-border: #dfe7e1;
    --portal-surface: #f4f8f5;
    --portal-white: #fff;
}

#app {
    min-height: 100vh;
    background: var(--portal-surface);
    font-family: "Plus Jakarta Sans", "Nunito", sans-serif;
}

#app > nav.navbar {
    position: relative;
    z-index: 30;
    min-height: 76px;
    padding: 8px 0;
    border: 0;
    box-shadow: 0 3px 18px rgba(17, 52, 27, .08) !important;
}

#app > nav .navbar-brand {
    width: auto;
    max-width: 210px;
    margin: 0;
    padding: 0;
}

#app > nav .navbar-brand .logo {
    width: 172px !important;
    height: 55px !important;
    display: block;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
}

#app > nav .nav-link {
    color: #415047;
    font-size: .84rem;
    font-weight: 600;
}

#app > main.py-4 {
    padding: 0 !important;
}

.user-portal {
    min-height: calc(100vh - 76px);
    color: var(--portal-ink);
    background: var(--portal-surface);
}

.portal-hero {
    position: relative;
    min-height: 270px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(3, 49, 23, .98), rgba(5, 86, 38, .9) 56%, rgba(4, 68, 30, .72)),
        url('../images/eco1.jpg') center 47% / cover no-repeat;
}

.portal-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -55px;
    width: 210px;
    height: 210px;
    border: 44px solid rgba(201, 229, 77, .08);
    border-radius: 50%;
    pointer-events: none;
}

.portal-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 58px 0 68px;
}

.portal-hero > .container {
    width: min(100% - 40px, 1380px);
    max-width: 1380px;
}

.portal-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--portal-lime);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.portal-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-family: "Montserrat", "Nunito", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-align: left;
    text-transform: none;
}

.user-portal .portal-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 3.1vw, 2.9rem);
    font-weight: 750;
}

.portal-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: .9rem;
    line-height: 1.65;
}

.portal-jobs-button {
    min-height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: .78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    transition: background-color .2s ease, transform .2s ease;
}

.portal-jobs-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    text-decoration: none;
    transform: translateY(-1px);
}

.portal-container {
    position: relative;
    z-index: 4;
    width: min(100% - 40px, 1380px);
    max-width: 1380px;
    padding-top: 42px;
    padding-bottom: 80px;
}

.portal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.portal-sidebar {
    position: sticky;
    top: 24px;
    min-width: 0;
}

.portal-sidebar-card {
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(18, 51, 28, .09);
}

.portal-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1px solid #e7ece8;
}

.portal-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--portal-green-dark);
    background: #eaf8ec;
}

.portal-sidebar-heading strong,
.portal-sidebar-heading small {
    display: block;
}

.portal-sidebar-heading strong {
    max-width: 150px;
    overflow: hidden;
    color: var(--portal-ink);
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-sidebar-heading small {
    margin-top: 3px;
    color: var(--portal-muted);
    font-size: .68rem;
}

.portal-nav-list {
    display: grid;
    gap: 5px;
    padding: 12px;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 11px;
    border-radius: 9px;
    color: #536058;
    transition: color .2s ease, background-color .2s ease;
}

.portal-nav-link:hover {
    color: var(--portal-green-dark);
    background: #f3f9f4;
    text-decoration: none;
}

.portal-nav-link.active {
    color: var(--portal-green-dark);
    background: #eaf8ec;
}

.portal-nav-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #7d8981;
    background: #f1f5f2;
}

.portal-nav-link.active .portal-nav-icon {
    color: #fff;
    background: var(--portal-green);
}

.portal-nav-link strong,
.portal-nav-link small {
    display: block;
}

.portal-nav-link strong {
    font-size: .82rem;
    font-weight: 700;
}

.portal-nav-link small {
    margin-top: 2px;
    color: #879189;
    font-size: .67rem;
}

.portal-main {
    min-width: 0;
}

.portal-main > .user-details-card,
.portal-main > .profile-data-view > #grad1 > .user-details-card {
    border-radius: 18px !important;
}

.portal-section-heading {
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--portal-border);
    text-align: left;
}

.portal-section-heading h2 {
    margin: 5px 0 6px;
    color: var(--portal-ink);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
}

.portal-section-heading p {
    margin: 0;
    color: var(--portal-muted);
    font-size: .92rem;
}

.interview-form-view {
    min-width: 0;
}

.portal-mobile-menu {
    width: 100%;
    min-height: 50px;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    padding: 11px 15px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    color: #3e4d44;
    background: #fff;
    font-size: .78rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(18, 51, 28, .06);
}

.portal-mobile-menu.d-md-none {
    display: none;
}

/* Shared applicant content surfaces */
.user-portal #grad1,
.user-portal .container-fluid#grad1,
.user-portal .employee-mobile-fullwidth > div,
.candidate-onboarding #grad1 {
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.user-portal .user-details-card,
.candidate-onboarding .user-details-card {
    overflow: hidden;
    margin: 0 !important;
    border: 1px solid var(--portal-border) !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 9px 28px rgba(18, 51, 28, .065);
}

.user-portal .user-details-card > .card-body,
.candidate-onboarding .user-details-card > .card-body {
    padding: 38px;
}

.user-portal .user-details-card .card,
.candidate-onboarding .user-details-card .card {
    margin-bottom: 22px;
    border: 1px solid var(--portal-border);
    border-radius: 11px;
    box-shadow: none;
}

.user-portal .user-details-card .card > .card-body,
.candidate-onboarding .user-details-card .card > .card-body {
    padding: 24px;
}

.user-portal h1,
.user-portal h2,
.user-portal h3,
.candidate-onboarding h1,
.candidate-onboarding h2,
.candidate-onboarding h3 {
    color: var(--portal-ink);
    font-family: "Montserrat", "Nunito", sans-serif;
    font-weight: 700;
    letter-spacing: -.025em;
    text-transform: none;
}

.user-portal .user-details-card > .card-body > .row:first-child h2,
.user-portal .user-details-card > .card-body > .row:first-child h3,
.candidate-onboarding .onboarding-heading h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    text-align: center;
}

.user-portal hr,
.candidate-onboarding hr {
    border-top-color: #e5ebe7;
}

.user-portal .form-group,
.candidate-onboarding .form-group {
    margin-bottom: 20px;
}

.user-portal .form-group label,
.candidate-onboarding .form-group label,
.user-portal fieldset label,
.candidate-onboarding fieldset label {
    margin-bottom: 8px;
    color: #35433a;
    font-size: .75rem;
    font-weight: 700 !important;
}

.user-portal .form-control,
.candidate-onboarding .form-control,
.user-portal .custom-select,
.candidate-onboarding .custom-select {
    min-height: 47px;
    border: 1px solid #dce4de;
    border-radius: 8px;
    color: #28372e;
    background-color: #fff;
    font-size: .8rem;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.user-portal textarea.form-control,
.candidate-onboarding textarea.form-control {
    min-height: 110px;
    line-height: 1.55;
}

.user-portal .form-control:focus,
.candidate-onboarding .form-control:focus,
.user-portal .custom-select:focus,
.candidate-onboarding .custom-select:focus {
    border-color: var(--portal-green);
    box-shadow: 0 0 0 3px rgba(48, 181, 57, .11);
}

.user-portal .form-control:disabled,
.user-portal .form-control[readonly],
.candidate-onboarding .form-control:disabled,
.candidate-onboarding .form-control[readonly] {
    color: #69756d;
    background: #f3f6f4;
}

.user-portal .select2-container,
.candidate-onboarding .select2-container {
    width: 100% !important;
}

.user-portal .select2-container--bootstrap4 .select2-selection,
.candidate-onboarding .select2-container--bootstrap4 .select2-selection {
    min-height: 47px;
    border-color: #dce4de;
    border-radius: 8px;
    box-shadow: none;
}

.user-portal .custom-file,
.candidate-onboarding .custom-file {
    min-height: 48px;
}

.user-portal .custom-file-label,
.candidate-onboarding .custom-file-label,
.user-portal .custom-label,
.candidate-onboarding .custom-label {
    min-height: 47px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 12px 15px;
    border: 1px dashed #bdcac1;
    border-radius: 8px;
    color: #6f7b73;
    background: #f8faf8;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-portal .custom-file-label::after,
.candidate-onboarding .custom-file-label::after {
    min-height: 45px;
    display: flex;
    align-items: center;
    color: var(--portal-green-dark);
    background: #eaf8ec;
    font-weight: 700;
}

/* File upload with persisted-file state */
.portal-file-upload { position: relative; }

.portal-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.portal-file-control {
    min-height: 58px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin: 0;
    border: 1px solid #cfdbd2;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.portal-file-control:hover {
    border-color: rgba(48, 181, 57, .65);
    box-shadow: 0 5px 16px rgba(24, 91, 42, .07);
}

.portal-file-input:focus + .portal-file-control {
    border-color: var(--portal-green);
    box-shadow: 0 0 0 3px rgba(48, 181, 57, .13);
}

.portal-file-input.is-invalid + .portal-file-control { border-color: #dc3545; }

.portal-file-input.is-invalid ~ .invalid-feedback { display: block; }

.portal-file-name {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 13px 18px;
    color: #3e4c43;
    font-size: .86rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-file-name::before {
    content: "PDF";
    flex: 0 0 auto;
    margin-right: 11px;
    padding: 4px 6px;
    border-radius: 5px;
    color: #fff;
    background: #d94242;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.portal-image-upload .portal-file-name::before {
    content: "IMG";
    background: #3987c9;
}

.portal-file-name.has-new-file::after {
    content: "Baru";
    flex: 0 0 auto;
    margin-left: 10px;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--portal-green-dark);
    background: #e7f7e9;
    font-size: .6rem;
    font-weight: 800;
}

.portal-file-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-left: 1px solid #dce5de;
    color: var(--portal-green-dark);
    background: #eef8f0;
    font-size: .78rem;
    font-weight: 800;
    transition: color .2s ease, background-color .2s ease;
}

.portal-file-control:hover .portal-file-action {
    color: #fff;
    background: var(--portal-green);
}

.portal-file-upload > small {
    display: block;
    margin-top: 8px;
}

.user-portal .form-group small,
.candidate-onboarding .form-group small {
    display: block;
    margin-top: 7px;
    color: #89938c;
    font-size: .68rem;
    line-height: 1.45;
}

.user-portal .custom-control-label,
.candidate-onboarding .custom-control-label {
    font-weight: 500 !important;
}

.user-portal .custom-control-input:checked ~ .custom-control-label::before,
.candidate-onboarding .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--portal-green);
    background: var(--portal-green);
}

.user-portal .invalid-feedback,
.user-portal .invalid-feedback2,
.candidate-onboarding .invalid-feedback,
.candidate-onboarding .invalid-feedback2 {
    margin-top: 6px;
    color: #c63d38;
    font-size: .7rem;
}

.user-portal .alert,
.candidate-onboarding .alert {
    border: 0;
    border-radius: 9px;
    font-size: .78rem;
}

.user-portal .btn,
.candidate-onboarding .btn,
.user-portal button.next-step,
.user-portal button.pre-step,
.user-portal input.next-step,
.user-portal input.pre-step {
    min-height: 44px;
    padding: 9px 17px;
    border-radius: 8px;
    font-size: .77rem;
    font-weight: 700;
    box-shadow: none;
}

.user-portal .btn-success,
.candidate-onboarding .btn-success,
.user-portal .btn-primary,
.candidate-onboarding .btn-primary,
.user-portal .next-step,
.user-portal .action-button {
    border-color: var(--portal-green) !important;
    color: #fff !important;
    background: var(--portal-green) !important;
}

.user-portal .btn-success:hover,
.candidate-onboarding .btn-success:hover,
.user-portal .btn-primary:hover,
.candidate-onboarding .btn-primary:hover,
.user-portal .next-step:hover,
.user-portal .action-button:hover {
    border-color: var(--portal-green-dark) !important;
    background: var(--portal-green-dark) !important;
}

.user-portal .pre-step,
.user-portal .btn-outline-secondary,
.candidate-onboarding .btn-outline-secondary {
    border: 1px solid #d5ded8 !important;
    color: #56635b !important;
    background: #fff !important;
}

.user-portal .rounded-circle,
.candidate-onboarding .rounded-circle {
    width: 128px;
    height: 128px;
    object-fit: cover;
    padding: 4px;
    border: 1px solid rgba(48, 181, 57, .3);
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 59, 29, .1);
}

.user-portal table,
.candidate-onboarding table {
    color: #3d4a42;
    font-size: .76rem;
}

.user-portal .table thead th,
.candidate-onboarding .table thead th {
    border-top: 0;
    border-bottom: 1px solid #dfe6e1;
    color: #5e6a62;
    background: #f6f9f7;
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Multi-step forms */
.user-portal #form,
.user-portal #form-interview {
    margin-top: 0 !important;
}

.user-portal #form fieldset,
.user-portal #form-interview fieldset {
    padding: 0 0 10px !important;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.user-portal #progressbar {
    display: flex;
    align-items: flex-start;
    margin: 0 0 30px;
    padding: 0;
    color: #8a958e;
}

.user-portal #progressbar li {
    min-width: 0;
    float: none !important;
    color: #7d8881;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.35;
}

.user-portal #progressbar li::before {
    width: 38px !important;
    height: 38px !important;
    display: block;
    margin: 0 auto 8px !important;
    padding: 0 !important;
    color: #6f7a73 !important;
    background: #e7ede9 !important;
    font-size: .8rem !important;
    line-height: 38px !important;
}

.user-portal #progressbar li::after {
    top: 19px !important;
    height: 2px !important;
    background: #dde5df !important;
}

.user-portal #progressbar li.active {
    color: var(--portal-green-dark) !important;
}

.user-portal #progressbar li.active::before,
.user-portal #progressbar li.active::after {
    color: #fff !important;
    background: var(--portal-green) !important;
}

.user-portal .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--portal-border);
    border-radius: 10px 10px 0 0;
    background: #f7faf8;
}

.user-portal .card-header h4,
.user-portal .card-header h5,
.user-portal .card-header h6 {
    margin: 0;
    color: var(--portal-ink);
    font-size: .85rem;
    font-weight: 700;
}

.user-portal .employee-mobile-fullwidth {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Application list */
.portal-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.portal-page-heading .portal-eyebrow {
    color: var(--portal-green);
}

.portal-page-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    text-align: left;
}

.portal-page-heading p {
    margin: 0;
    color: var(--portal-muted);
    font-size: .8rem;
}

.application-list {
    display: grid;
    gap: 13px;
}

.application-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    padding: 22px 24px;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    color: inherit;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.application-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, var(--portal-green), #198d30);
    box-shadow: 0 8px 18px rgba(48, 181, 57, .22);
}

.application-copy {
    min-width: 0;
}

.application-item:hover {
    color: inherit;
    border-color: rgba(48, 181, 57, .35);
    box-shadow: 0 10px 25px rgba(18, 51, 28, .08);
    text-decoration: none;
    transform: translateY(-2px);
}

.application-company {
    display: block;
    margin-bottom: 5px;
    color: var(--portal-green);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.application-title {
    display: block;
    color: var(--portal-ink);
    font-size: 1rem;
    font-weight: 800;
}

.application-hint {
    display: block;
    margin-top: 5px;
    color: var(--portal-muted);
    font-size: .72rem;
}

.application-status {
    padding: 8px 13px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
}

/* Profile identity */
.profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 4px 0 28px;
    padding: 20px;
    border: 1px solid #dfe9e1;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fbf8, #eef8f0);
}

.profile-photo-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, var(--portal-green), var(--portal-green-dark));
    box-shadow: 0 8px 20px rgba(20, 99, 44, .16);
    font-size: 1.55rem;
    font-weight: 800;
}

.profile-photo-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity small {
    color: var(--portal-green-dark);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.profile-identity h3 {
    margin: 3px 0 3px;
    font-size: 1.2rem;
    font-weight: 800;
}

.profile-identity p {
    margin: 0;
    color: var(--portal-muted);
    font-size: .78rem;
}

.status-accepted { color: #126528; background: #e4f7e8; }
.status-declined { color: #a52f2b; background: #fbe9e8; }
.status-hold { color: #8a6608; background: #fff5d8; }
.status-process { color: #315f8d; background: #e8f2fb; }

.application-arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--portal-green-dark);
    background: #edf7ef;
}

.portal-empty-state {
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 40px 24px;
    border: 1px dashed #cbd6ce;
    border-radius: 13px;
    background: rgba(255, 255, 255, .7);
    text-align: center;
}

.portal-empty-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    color: var(--portal-green);
    background: #eaf8ec;
}

.portal-empty-state h3 {
    margin: 0 0 7px;
    font-size: 1rem;
}

.portal-empty-state p {
    max-width: 410px;
    margin: 0 auto 18px;
    color: var(--portal-muted);
    font-size: .78rem;
    line-height: 1.6;
}

/* Standalone applicant onboarding page */
.candidate-onboarding {
    min-height: calc(100vh - 76px);
    padding: 55px 0 85px;
    color: var(--portal-ink);
    background:
        linear-gradient(rgba(244, 248, 245, .95), rgba(244, 248, 245, .98)),
        url('../images/eco1.jpg') center / cover fixed;
    font-family: "Plus Jakarta Sans", "Nunito", sans-serif;
}

.candidate-onboarding .onboarding-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 15px;
}

.candidate-onboarding .onboarding-heading {
    max-width: 680px;
    margin: 0 auto 28px;
    text-align: center;
}

.candidate-onboarding .onboarding-heading .portal-eyebrow {
    color: var(--portal-green);
}

.candidate-onboarding .onboarding-heading p {
    margin: 10px 0 0;
    color: var(--portal-muted);
    font-size: .82rem;
    line-height: 1.65;
}

/* Mobile drawer */
.user-portal .offcanvas {
    position: fixed;
    top: 0;
    left: -310px;
    z-index: 1055;
    width: min(310px, 86vw);
    height: 100vh;
    display: block;
    overflow-y: auto;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: 12px 0 35px rgba(8, 39, 18, .18);
    visibility: hidden;
    transition: left .28s ease, visibility .28s ease;
}

.user-portal .offcanvas.show {
    left: 0;
    visibility: visible;
}

.user-portal .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 18px;
    border-bottom: 1px solid var(--portal-border);
}

.user-portal .offcanvas-title {
    margin: 0;
    color: var(--portal-ink);
    font-size: 1rem;
}

.user-portal .offcanvas .portal-eyebrow {
    color: var(--portal-green);
}

.user-portal .offcanvas-body {
    padding: 7px;
}

.user-portal .offcanvas .close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #5c6860;
    background: #f2f5f3;
    font-size: 1.35rem;
    opacity: 1;
}

.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    background: rgba(6, 29, 14, .52);
    opacity: 0;
    transition: opacity .28s ease;
}

.offcanvas-backdrop.show {
    display: block;
    opacity: 1;
}

body.portal-menu-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .portal-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    .user-portal .user-details-card > .card-body,
    .candidate-onboarding .user-details-card > .card-body {
        padding: 24px;
    }
}

@media (max-width: 767.98px) {
    #app > nav.navbar {
        min-height: 68px;
    }

    #app > nav .navbar-brand .logo {
        width: 145px !important;
        height: 48px !important;
    }

    .portal-hero {
        min-height: 220px;
    }

    .portal-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 40px 0 50px;
    }

    .portal-hero h1 {
        font-size: 1.75rem;
    }

    .portal-jobs-button {
        min-height: 44px;
    }

    .portal-container {
        padding-top: 20px;
        padding-bottom: 55px;
    }

    .portal-layout {
        display: block;
    }

    .portal-mobile-menu.d-md-none {
        display: flex !important;
    }

    .user-portal .user-details-card > .card-body,
    .candidate-onboarding .user-details-card > .card-body,
    .user-portal .user-details-card .card > .card-body,
    .candidate-onboarding .user-details-card .card > .card-body {
        padding: 20px 17px;
    }

    .user-portal .rounded-circle,
    .candidate-onboarding .rounded-circle {
        width: 105px;
        height: 105px;
    }

    .user-portal #progressbar {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .user-portal #progressbar li {
        min-width: 90px;
    }

    .portal-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .application-item {
        grid-template-columns: 46px minmax(0, 1fr) 34px;
        gap: 12px;
        padding: 17px;
    }

    .application-icon {
        width: 44px;
        height: 44px;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .application-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .application-status {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .application-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .application-hint {
        display: none;
    }

    .profile-identity {
        align-items: flex-start;
        padding: 16px;
    }

    .candidate-onboarding {
        padding: 38px 0 60px;
    }

    .table-responsive {
        border: 0;
    }
}

@media (max-width: 479.98px) {
    .portal-hero p {
        font-size: .8rem;
    }

    .portal-hero-inner {
        gap: 23px;
    }

    .user-portal .form-group,
    .candidate-onboarding .form-group {
        margin-bottom: 17px;
    }

    .user-portal .custom-control-inline,
    .candidate-onboarding .custom-control-inline {
        display: block;
        margin: 9px 0 9px 24px !important;
    }

    .portal-file-control { flex-direction: column; }

    .portal-file-name { min-height: 52px; }

    .portal-file-action {
        min-height: 44px;
        border-top: 1px solid #dce5de;
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .user-portal *,
    .candidate-onboarding * {
        transition: none !important;
        animation: none !important;
    }
}
