:root {
    --bg-soft: #eef2fb;
    --bg-card: #ffffff;
    --bg-card-strong: #f9fbff;
    --line: #d9e0ef;
    --text: #2e3642;
    --muted: #6f7a88;
    --navy: #132f4c;
    --indigo: #6156f3;
    --indigo-dark: #5449e7;
    --pink: #f5628d;
    --green: #2d8b55;
    --shadow-soft: 0 18px 44px rgba(28, 42, 71, 0.06);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Tahoma, sans-serif; color: var(--text); }
a { color: var(--indigo); text-decoration: none; }
button, input, select, textarea { font: inherit; }

.auth-body { background: #f8f8fb; }
.app-body { background: var(--bg-soft); }
.app-shell.sidebar-collapsed { grid-template-columns: 92px 1fr; }
.app-shell.sidebar-collapsed .sidebar-brand p,
.app-shell.sidebar-collapsed .nav-parent span,
.app-shell.sidebar-collapsed .nav-item { font-size: 0; }
.app-shell.sidebar-collapsed .nav-item { padding: 16px 12px; }
.shell { min-height: 100vh; padding: 36px; }
.main { max-width: 1220px; margin: 0 auto; }

.alert { margin: 0 auto 18px; padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.alert-error { background: #fff1f4; color: #d94b75; border: 1px solid #ffb8ca; }
.alert-success { background: #ecfff2; color: var(--green); border: 1px solid #bde5ca; }

.login-layout {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 22px 60px rgba(24, 39, 75, 0.08);
}

.landing-layout {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

.landing-hero-panel,
.landing-info-panel {
    border-radius: 28px;
    overflow: hidden;
}

.landing-hero-panel {
    position: relative;
    padding: 56px;
    background:
        radial-gradient(circle at top left, rgba(245, 98, 141, 0.22), transparent 34%),
        linear-gradient(140deg, #132f4c 0%, #2e4c7e 44%, #6156f3 100%);
    color: #fff;
    box-shadow: 0 22px 60px rgba(24, 39, 75, 0.12);
    display: grid;
    gap: 28px;
    align-content: space-between;
}

.landing-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-copy h1 {
    margin: 0 0 18px;
    max-width: 720px;
    font-size: 58px;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.landing-copy p {
    margin: 0;
    max-width: 680px;
    color: rgba(255,255,255,0.86);
    font-size: 22px;
    line-height: 1.5;
}

.landing-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.landing-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-stat-card,
.landing-info-card {
    border-radius: 22px;
    border: 1px solid rgba(217, 224, 239, 0.9);
    background: rgba(255,255,255,0.08);
    padding: 22px;
    backdrop-filter: blur(6px);
}

.landing-stat-card strong,
.landing-info-card h2 {
    display: block;
    margin-bottom: 10px;
}

.landing-stat-card p {
    margin: 0;
    color: rgba(255,255,255,0.84);
    line-height: 1.55;
}

.landing-info-panel {
    display: grid;
    gap: 20px;
}

.landing-info-card {
    background: #fff;
    box-shadow: 0 18px 44px rgba(28, 42, 71, 0.06);
}

.landing-info-card h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.1;
}

.landing-info-card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.landing-info-card.accent {
    background: linear-gradient(180deg, #f8f9ff 0%, #eef1ff 100%);
    border-color: #d7ddff;
}

.landing-list {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.7;
}

.login-panel { padding: 68px 72px; display: flex; flex-direction: column; justify-content: center; }
.login-copy h1 { margin: 0; font-size: 54px; line-height: 1; letter-spacing: -0.04em; }
.login-copy p { margin: 14px 0 34px; color: var(--muted); font-size: 20px; }
.auth-form { max-width: 420px; }
.nec-login-layout {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 72px);
    border-radius: 0;
    box-shadow: none;
}
.nec-login-info {
    min-height: 100%;
    padding: 52px 54px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
}
.nec-login-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}
.nec-login-brand img {
    width: 104px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(39, 85, 55, 0.18);
}
.nec-login-brand strong {
    display: block;
    font-size: 36px;
    line-height: 1;
    color: #2454b8;
}
.nec-login-brand span {
    display: block;
    margin-top: 4px;
    color: #7d8190;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.nec-login-help {
    width: min(430px, 100%);
    border: 1px solid #d8dde8;
}
.nec-login-help details {
    border-bottom: 1px solid #d8dde8;
    background: #fff;
}
.nec-login-help details:last-child {
    border-bottom: 0;
}
.nec-login-help summary {
    cursor: pointer;
    padding: 13px 16px;
    color: #242b38;
    font-size: 17px;
    list-style: none;
}
.nec-login-help summary::-webkit-details-marker {
    display: none;
}
.nec-login-help summary::before {
    content: "›";
    margin-right: 10px;
    font-size: 22px;
    line-height: 0;
}
.nec-login-help details[open] summary::before {
    content: "⌄";
}
.nec-login-help p {
    margin: 0;
    padding: 0 16px 14px 40px;
    color: #5f6878;
    line-height: 1.45;
}
.nec-login-copyline {
    margin: auto 0 0;
    max-width: 520px;
    text-align: center;
    color: #283240;
    font-size: 13px;
}
.nec-login-blue {
    min-height: 100%;
    padding: 80px 34px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 62px;
    background:
        radial-gradient(circle at 18% 12%, rgba(127, 211, 91, 0.46), transparent 24%),
        radial-gradient(circle at 88% 78%, rgba(255, 198, 84, 0.42), transparent 26%),
        linear-gradient(145deg, #0f3b8e 0%, #2667bd 44%, #21a6b8 72%, #eff9ef 100%);
}
.nec-login-card {
    width: min(468px, 100%);
    padding: 58px 78px 40px;
    background: #fff;
    text-align: center;
}
.nec-login-card .login-copy h1 {
    font-size: 38px;
    line-height: 1.1;
    color: #252c38;
    letter-spacing: 0;
}
.nec-login-card .login-copy p {
    margin: 10px 0 16px;
    font-size: 17px;
    color: #6f7784;
}
.nec-login-form {
    max-width: none;
    gap: 14px;
}
.nec-login-form label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.nec-login-form input,
.nec-login-form .password-input input {
    border-radius: 2px;
    padding: 9px 12px;
    min-height: 40px;
    border-color: #bfc6d1;
    font-size: 16px;
}
.nec-login-form .password-input {
    grid-template-columns: 1fr 42px;
    gap: 0;
    border: 1px solid #bfc6d1;
    border-radius: 2px;
    background: #fff;
}
.nec-login-form .password-input input {
    border: 0;
}
.nec-login-form input:focus,
.nec-login-form .password-input:focus-within {
    outline: 2px solid rgba(47, 111, 189, 0.22);
    border-color: #2f6fbd;
}
.nec-login-form .password-toggle {
    min-height: 40px;
    width: 42px;
    border-radius: 2px;
    border: 0;
    background: #fff;
    color: #7d8491;
}
.nec-login-form .primary-auth-button {
    margin-top: 14px;
    width: 100%;
    border-radius: 3px;
    background: #2854b7;
    box-shadow: none;
    text-transform: uppercase;
    font-size: 18px;
}
.nec-login-links {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 10px;
    text-transform: uppercase;
}
.nec-login-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 3px;
    border: 0;
    background: #2854b7;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: none;
}
.nec-login-links a:first-child {
    background: #eef4ff;
    color: #1849b6;
    border: 1px solid #d5def4;
}
.nec-login-support {
    text-align: center;
    color: #fff;
}
.nec-login-support p {
    margin: 0 0 26px;
}
.nec-login-support a {
    color: #fff;
    text-decoration: underline;
}
.nec-login-support span {
    margin: 0 8px;
}

.auth-form label span,
.form-grid label span { display: block; margin-bottom: 9px; color: var(--text); font-weight: 600; }

.auth-form input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.search-box input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.form-grid input[disabled] { background: #f5f7fb; color: #6f7a88; }

.auth-links { display: flex; justify-content: flex-end; }

.primary-auth-button,
.form-grid button,
.toolbar-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 14px 20px;
    background: linear-gradient(90deg, var(--indigo), var(--indigo-dark));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(97, 86, 243, 0.26);
}

.toolbar-button.secondary,
.secondary-button {
    background: #eef1ff;
    color: var(--indigo);
    border: 1px solid #d7ddff;
    box-shadow: none;
}

.top-gap { margin-top: 24px; }
.top-gap-sm { margin-top: 14px; }
.split-actions { justify-content: flex-start; }
.empty-state { padding: 28px; border: 1px dashed var(--line); border-radius: 18px; background: #fbfcff; }
.profile-grid,
.user-admin-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.password-input { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.password-toggle {
    width: 52px;
    min-height: 52px;
    display: inline-grid;
    place-items: center;
    box-shadow: none;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f8faff;
    color: #4b5773;
    font-size: 18px;
}
.password-toggle.is-visible {
    background: #eeedff;
    color: var(--indigo);
}
.profile-picture-field {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfcff;
}
.profile-picture-preview {
    width: 104px;
    height: 104px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #15805f, #24a87e);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}
.profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-picture-input {
    display: grid;
    gap: 8px;
}
.profile-picture-input small {
    color: var(--muted);
    line-height: 1.45;
}
.upload-list { display: grid; gap: 10px; }
.upload-item { display: inline-flex; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.upload-item-with-remove {
    justify-content: space-between;
    gap: 10px;
}
.upload-item-with-remove a,
.upload-item-with-remove span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.upload-remove-button {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff1f4;
    color: #c6426d;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: none;
}
.upload-remove-button:hover {
    background: #ffdce6;
}
.doc-preview-trigger { width: 100%; text-align: left; box-shadow: none; color: var(--text); cursor: pointer; }
.workflow-bar { display: flex; gap: 12px; align-items: center; }
.workflow-bar select,
.workflow-bar button {
    min-height: 48px;
}
.doc-modal { position: fixed; inset: 0; z-index: 60; }
.doc-modal-backdrop { position: absolute; inset: 0; background: rgba(19,47,76,.45); }
.doc-modal-panel { position: relative; margin: 4vh auto; width: min(1100px, 92vw); height: 88vh; background: #fff; border-radius: 18px; box-shadow: var(--shadow-soft); padding: 16px; display: grid; grid-template-rows: auto 1fr; }
.doc-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.doc-modal-frame { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 12px; }
.timeline { display: grid; gap: 12px; }
.timeline-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcff; }
.workflow-table td { vertical-align: top; }
.workflow-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.badge-pending { background: #fff4d8; color: #815600; }
.badge-info { background: #e8f2ff; color: #0b5cab; }
.badge-approved { background: #e4f8ee; color: #0f7a3f; }
.badge-rejected { background: #ffe5e5; color: #a31919; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }

.register-note { margin-top: 24px; color: var(--muted); }

.login-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    padding: 68px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-orb { position: absolute; border-radius: 50%; background: rgba(36, 69, 109, 0.62); }
.orb-one { width: 480px; height: 480px; left: -70px; top: -110px; }
.orb-two { width: 360px; height: 360px; left: 180px; top: -80px; opacity: 0.5; }
.hero-content { position: relative; max-width: 560px; z-index: 2; }
.hero-content h2 { margin: 0 0 24px; font-size: 64px; line-height: 1.05; letter-spacing: -0.05em; }
.hero-content p { margin: 0 0 14px; font-size: 24px; line-height: 1.45; color: rgba(255,255,255,0.85); }
.status-check-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(620px, 100%);
}
.status-check-card {
    min-height: 132px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.95);
    color: #1d2540;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 42px rgba(8, 16, 40, 0.18);
}
.status-check-card-main {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #58e0ff, #9fffc2);
}
.status-check-card-muted {
    background: #f4f7ff;
}
.status-check-card-error {
    width: min(520px, 100%);
    background: #fff1f4;
    color: #8c1d3d;
}
.status-check-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(29,37,64,0.62);
}
.status-check-card strong {
    margin: 10px 0;
    font-size: 28px;
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.status-check-card-main strong {
    font-size: 42px;
}
.status-check-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(29,37,64,0.7);
}
.hero-mark {
    position: absolute;
    right: 50px;
    bottom: 16px;
    font-size: 360px;
    line-height: 0.8;
    font-weight: 800;
    color: rgba(103, 96, 248, 0.65);
    transform: rotate(18deg);
}

.auth-card,
.auth-card-narrow {
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(20, 32, 61, 0.08);
    padding: 30px;
}

.auth-card { max-width: 960px; }
.auth-card-narrow { max-width: 620px; }
.auth-card-head h1 { margin: 0 0 8px; font-size: 34px; }
.auth-card-head p { margin: 0 0 24px; color: var(--muted); }

.form-grid { display: grid; gap: 22px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.full { grid-column: 1 / -1; }
.button-row,
.resend-row { display: flex; justify-content: flex-end; }
.resend-row { margin-top: 14px; }
.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-shell { display: grid; grid-template-columns: 255px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 18px 0 26px; }
.sidebar-brand { padding: 8px 18px 22px; text-transform: uppercase; letter-spacing: 0.15em; font-size: 13px; color: #313949; }
.sidebar-brand p { margin: 0 0 8px; }
.brand-line { display: block; width: calc(100% - 10px); height: 1px; background: var(--line); margin-bottom: 20px; }
.sidebar-nav { padding: 0 8px; display: grid; gap: 18px; }
.nav-group { display: grid; gap: 6px; }
.nav-parent {
    width: 100%;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    color: #323b47;
    cursor: pointer;
    text-align: left;
}

.nav-item {
    display: block;
    padding: 14px 18px;
    margin: 0 6px;
    border-radius: 14px;
    color: #3e4652;
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, var(--indigo), var(--indigo-dark));
    box-shadow: 0 12px 26px rgba(97, 86, 243, 0.26);
}
.sidebar-workflow-list {
    display: grid;
    gap: 8px;
    margin: 6px 6px 0;
    padding: 12px;
    border: 1px solid #e5eaf4;
    border-radius: 14px;
    background: #f8faff;
}
.sidebar-workflow-list strong {
    color: #2f3a4d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sidebar-workflow-list p {
    margin: 0;
    color: #7a87a4;
    font-size: 12px;
    line-height: 1.4;
}
.sidebar-workflow-item {
    display: grid;
    gap: 2px;
    padding-left: 10px;
    border-left: 2px solid #d8def0;
}
.sidebar-workflow-item span {
    color: #4b5773;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.sidebar-workflow-item small {
    color: #8a94ad;
    font-size: 11px;
}

.workspace { padding: 20px 28px 34px; }
.workspace-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.menu-button,
.profile-button {
    border: 0;
    background: transparent;
    color: #5c6470;
    cursor: pointer;
}

.menu-button { font-size: 20px; letter-spacing: 0.18em; }
.profile-button { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.topbar-user { display: flex; align-items: center; gap: 14px; }
.user-role { color: var(--muted); font-size: 14px; }
.topbar-add-menu { position: relative; }
.topbar-add-menu summary {
    list-style: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--indigo);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.topbar-add-menu summary::-webkit-details-marker { display: none; }
.topbar-add-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.topbar-add-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #303948;
}
.topbar-add-panel a:hover { background: #f4f6fb; }
.workspace-main { display: grid; gap: 22px; }

.page-banner,
.panel {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(217, 224, 239, 0.85);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.page-banner { padding: 28px 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.page-banner h1 { margin: 0; font-size: 38px; letter-spacing: -0.04em; }
.banner-copy { margin: 10px 0 0; max-width: 720px; color: var(--muted); line-height: 1.6; }
.banner-crumbs { display: flex; align-items: center; gap: 12px; color: #2e3642; }
.crumb-dot { width: 6px; height: 6px; border-radius: 50%; background: #333b47; }
.crumb-pill { padding: 5px 12px; border-radius: 999px; background: #eeedff; color: var(--indigo); font-size: 14px; }

.panel { padding: 28px; }
.panel-head {display: flex;justify-content: space-between;align-items: flex-start;gap: 18px;margin-bottom: 8px;}
.panel-head h2 {margin: 0 0 6px;font-size: 19px;letter-spacing: -0.04em;}
.panel-head p { margin: 0; color: var(--muted); }
.application-applicant-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.application-profile-image {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #15805f, #24a87e);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(21, 128, 95, 0.18);
}
.application-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.application-applicant-head h2,
.application-applicant-head p {
    overflow-wrap: anywhere;
}
.workspace-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.compact-head { margin-bottom: 18px; }

.summary-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-bottom: 24px; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.status-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.status-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.status-grid article { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.status-grid .label { color: var(--muted); }
.status-grid strong { display: block; margin-top: 8px; font-size: 30px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dashboard-grid-tables { align-items: start; }
.dashboard-card { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.card-head h3 { margin: 0; font-size: 22px; }
.card-head span { color: var(--muted); font-size: 14px; }
.chart-row + .chart-row { margin-top: 16px; }
.chart-row-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; color: #39414d; }
.chart-track { height: 12px; border-radius: 999px; background: #e9eef8; overflow: hidden; }
.chart-fill { display: block; height: 100%; border-radius: 999px; }
.chart-fill.indigo { background: linear-gradient(90deg, #5b57ff 0%, #7b89ff 100%); }
.chart-fill.teal { background: linear-gradient(90deg, #0f9d8a 0%, #46c5b1 100%); }
.chart-fill.amber { background: linear-gradient(90deg, #e59d12 0%, #f5c65e 100%); }
.chart-fill.slate { background: linear-gradient(90deg, #56657d 0%, #9aa8bc 100%); }
.compact-table th, .compact-table td { padding-top: 12px; padding-bottom: 12px; }
.employment-entry-table { table-layout: fixed; }
.employment-entry-table .employment-entry-main td { width: 50%; }
.employment-entry-table .employment-entry-details td:nth-child(1),
.employment-entry-table .employment-entry-details td:nth-child(2) { width: 18%; }
.employment-entry-table .employment-entry-details td:nth-child(3) { width: 50%; }
.employment-entry-table .employment-entry-details td:nth-child(4) { width: 14%; }
.employment-entry-details { border-bottom: 2px solid var(--line); }
.table-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.info-card {
    height: 100%;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #162f4d, #21426a);
    color: #fff;
}

.info-card h3 { margin: 0 0 14px; font-size: 24px; }
.info-card p { margin: 0 0 12px; color: rgba(255,255,255,0.84); line-height: 1.6; }

.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.toolbar-form { flex-wrap: wrap; }
.inline-select { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.inline-select select { min-width: 76px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search-box { position: relative; width: min(100%, 560px); }
.search-box span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }

.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: #4b5360;
}

.filter-pill.active {
    border-color: #d6d1ff;
    background: #f1efff;
    color: var(--indigo);
    font-weight: 700;
}

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 18px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { font-size: 16px; color: #333c48; }
.data-table td { color: #4c5664; }
.applicants-table { table-layout: fixed; }
.applicants-table .applicant-name-col { width: 22%; min-width: 200px; }
.applicants-table .applicant-name-cell {
    max-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.data-table td input,
.data-table td select,
.data-table td textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}
.inline-language-picker {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}
.repeatable-table .secondary-button,
#languageTable .secondary-button {
    width: auto;
    white-space: nowrap;
}
.report-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.report-filters label { display: grid; gap: 8px; color: #4b5563; font-size: 14px; }
.report-filters input,
.report-filters select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.report-search { grid-column: span 2; }
.report-filter-actions { align-items: end; display: flex; gap: 12px; flex-wrap: wrap; }
.report-view-tabs { margin-bottom: 18px; }
.report-card-grid article small { display: block; margin-top: 8px; color: var(--muted); }

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef0ff;
    color: var(--indigo);
    font-size: 13px;
    font-weight: 700;
}

.table-link { font-weight: 700; }
.tab-strip,
.form-progress { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; color: #2f3741; }
.tab-links a { color: #4d5663; }
.tab-active { color: var(--indigo); border-bottom: 2px solid var(--indigo); padding-bottom: 6px; }
.form-tab-nav {
    padding: 10px;
    border-radius: 20px;
    background: #f4f7ff;
    border: 1px solid var(--line);
}

.form-tab-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    border-radius: 14px;
    color: #4d5663;
    font-weight: 600;
    cursor: pointer;
}

.form-tab-link.tab-active {
    background: #fff;
    color: var(--indigo);
    border-bottom: 0;
    box-shadow: 0 10px 22px rgba(97, 86, 243, 0.12);
}

.form-tab-panels {
    display: grid;
    gap: 18px;
}

.tab-validation-message {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #ffb8ca;
    background: #fff1f4;
    color: #c6426d;
    font-weight: 600;
}
.field-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}
.field-error-message {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.form-tab-panel {
    display: none;
}

.form-tab-panel.is-active {
    display: block;
}
.email-tab-panel {
    display: none;
}
.email-tab-panel.is-active {
    display: block;
}
.email-tab-nav {
    margin-bottom: 22px;
}
.email-settings-grid {
    margin-top: 18px;
}

.form-section {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,0.9);
}

.section-title { margin-bottom: 18px; }
.section-title h3 { margin: 0 0 6px; font-size: 24px; }
.section-title p { margin: 0; color: var(--muted); line-height: 1.6; }

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg-card-strong);
}

.checkbox-row input {
    width: auto;
    margin: 2px 0 0;
}

.checkbox-row span { margin: 0; font-weight: 500; line-height: 1.6; }
.declaration-acceptance-row {
    align-items: center;
    justify-content: space-between;
}
.declaration-acceptance-row span {
    padding-right: 16px;
}
.declaration-acceptance-row input {
    flex: 0 0 auto;
}

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

.secondary-accent {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 14px 20px;
    background: linear-gradient(90deg, var(--pink), #ff6f96);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.personal-form-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.personal-form-layout .detail-card:last-child {
    grid-column: 1 / -1;
}
.personal-form-layout .detail-card:last-child .compact-cluster {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.personal-record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.personal-record-grid .detail-card:last-child {
    grid-column: 1 / -1;
}
.personal-record-grid .detail-card:last-child .auto-detail-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.personal-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 18px;
    align-items: start;
}
.personal-review-main {
    min-width: 0;
}
.personal-document-panel {
    position: sticky;
    top: 18px;
}
.personal-document-list {
    display: grid;
    gap: 10px;
}
.personal-document-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.personal-document-item:last-child {
    border-bottom: 0;
}
.personal-document-item strong,
.personal-document-item span {
    display: block;
    overflow-wrap: anywhere;
}
.personal-document-item span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}
.field-cluster { display: grid; gap: 14px; }
.compact-cluster { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.field-span-2 { grid-column: span 2; }
.detail-span-2 { grid-column: span 2; }
.detail-card {
    padding: 22px;
    border-radius: 20px;
   
    background: #fff;
}
.detail-card h3 { margin: 0 0 16px; font-size: 20px; }
.detail-card label {
    display: grid;
    gap: 8px;
}
.detail-card label span {
    display: block;
    color: var(--text);
    font-weight: 600;
}
.detail-card input,
.detail-card select,
.detail-card textarea,
.workflow-bar select {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.detail-card textarea {
    min-height: 120px;
    resize: vertical;
}
.workflow-bar button,
.form-actions button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 14px 20px;
    background: linear-gradient(90deg, var(--indigo), var(--indigo-dark));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(97, 86, 243, 0.26);
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.detail-card h3 { margin: 0 0 18px; font-size: 22px; }
.detail-list { margin: 0; display: grid; gap: 12px; }
.detail-list div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f8;
}

.detail-list dt { font-weight: 700; color: #344050; }
.detail-list dd { margin: 0; color: #556170; line-height: 1.6; }
.record-section .detail-card { padding: 12px; }
.record-section .detail-list { gap: 14px; }
.record-section .auto-detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.record-section .detail-list div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcff;
}
.record-section .detail-list dt {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4d5663;
}
.record-section .detail-list dd {
    color: #dd671f;
    line-height: 1.45;
    min-height: 22px;
}
.record-section .data-table.compact-table th,
.record-section .data-table.compact-table td {
    padding: 14px 12px;
}
.declaration-review-table select[disabled] {
    color: #243244;
    opacity: 1;
    cursor: default;
    background: #fff;
}
.record-form-actions {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.comment-box {
    display: grid;
    gap: 8px;
}
.review-grid {
    align-items: stretch;
}
.review-grid > .comment-box,
.review-grid > label {
    display: grid;
    align-content: start;
}
.review-field {
    height: 100%;
}
.review-field textarea {
    min-height: 140px;
}
.review-grid .comment-box {
    grid-template-rows: 1fr auto;
}
.review-grid .comment-box label {
    height: 100%;
}
.comment-save-row {
    display: flex;
    justify-content: flex-end;
}
.small-save-button {
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: none;
}

.record-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px;
    margin-bottom: 0px;
    border-radius: 18px;
    background: #f4f7ff;
    border: 1px solid var(--line);
}

.record-tabs a {
    padding: 11px 14px;
    border-radius: 12px;
    color: #4c5664;
    font-weight: 600;
}

.record-tab-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 7px 5px;
    border-radius: 12px;
    color: #4c5664;
    font-weight: 600;
    cursor: pointer;
}

.record-tabs a.tab-active,
.record-tabs a:hover,
.record-tab-link.tab-active,
.record-tab-link:hover {
    background: #fff;
    color: var(--indigo);
    box-shadow: 0 10px 22px rgba(97, 86, 243, 0.12);
}

.record-section {margin-top: 14px;scroll-margin-top: 24px;}
.record-section:not(.is-active) { display: none; }
.applicant-group-tabs {
    margin-top: 18px;
    margin-bottom: 18px;
}
.applicant-group-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}
.applicant-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(97, 86, 243, 0.12);
    color: var(--indigo);
    font-size: 12px;
    font-weight: 700;
}
.applicant-empty-state {
    margin-top: 8px;
}
.modal-panel {padding: 13px;}
.admin-table-gap { margin-top: 22px; }

.inline-form,
.inline-stack { display: inline; }
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-modal[hidden] { display: none !important; }
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
}
.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(3px);
}
.admin-modal-panel {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}
.admin-modal-panel.small {
    width: min(520px, calc(100vw - 32px));
}
.admin-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.admin-modal-head h3 {
    margin: 0;
}
body.modal-open {
    overflow: hidden;
}
@media (max-width: 720px) {
    .table-actions {
        flex-direction: column;
    }
    .admin-modal-panel {
        width: calc(100vw - 20px);
        margin: 10px auto;
        padding: 18px;
        border-radius: 18px;
    }
}

@media (max-width: 1180px) {
    .landing-layout,
    .login-layout { grid-template-columns: 1fr; }
    .nec-login-layout { grid-template-columns: 1fr; }
    .nec-login-info,
    .nec-login-blue { min-height: auto; }
    .landing-copy h1 { font-size: 44px; }
    .landing-copy p { font-size: 18px; }
    .landing-stat-grid { grid-template-columns: 1fr; }
    .hero-mark { font-size: 220px; }
}

@media (max-width: 1080px) {
    .summary-layout,
    .dashboard-grid,
    .detail-grid { grid-template-columns: 1fr; }
    .status-grid-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .three-col { grid-template-columns: 1fr 1fr; }
    .profile-grid,
    .user-admin-grid,
    .report-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .two-col,
    .three-col { grid-template-columns: 1fr; }
    .personal-review-layout { grid-template-columns: 1fr; }
    .personal-document-panel { position: static; }
    .page-banner,
    .panel-head,
    .table-toolbar { flex-direction: column; align-items: flex-start; }
    .status-grid,
    .status-grid-four,
    .dashboard-grid { grid-template-columns: 1fr; }
    .report-filters,
    .report-search { grid-template-columns: 1fr; grid-column: auto; }
    .record-section .detail-list,
    .detail-list div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 720px) {
    .landing-hero-panel,
    .landing-info-card,
    .login-panel,
    .login-hero { padding: 28px; }
    .nec-login-info { padding: 34px 22px; }
    .nec-login-blue { padding: 34px 22px; gap: 28px; }
    .nec-login-card { padding: 34px 24px; }
    .nec-login-brand { align-items: center; margin-bottom: 24px; }
    .nec-login-brand img { width: 72px; }
    .nec-login-brand strong { font-size: 30px; }
    .nec-login-brand span { font-size: 11px; letter-spacing: 0.12em; }
    .landing-copy h1 { font-size: 34px; }
    .status-check-grid { grid-template-columns: 1fr; }
    .status-check-card-main strong { font-size: 34px; }
}

/* Finance-style shell override */
.app-body {
    background:
        radial-gradient(circle at top right, rgba(145, 115, 255, 0.26), transparent 20%),
        linear-gradient(180deg, #f6f8ff 0%, #edf2fb 100%);
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}
.app-shell {
    grid-template-columns: 248px 1fr;
    gap: 0;
    padding: 0;
}
.sidebar {
    background: #ffffff;
    padding: 0;
    border-right: 1px solid rgba(213, 220, 238, 0.9);
    box-shadow: 14px 0 36px rgba(53, 71, 108, 0.05);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 16px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}
.sidebar-brand strong {
    display: block;
    font-size: 15px;
    color: #24314f;
}
.sidebar-brand p {
    margin: 4px 0 0;
    color: #7a87a4;
    font-size: 12px;
}
.brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(121, 166, 70, 0.28);
    box-shadow: 0 10px 22px rgba(39, 85, 55, 0.16);
}
.brand-line { display: none; }
.sidebar-nav {
    gap: 12px;
    padding: 6px 12px 18px;
}
.nav-parent {
    padding: 10px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #98a4bf;
}
.nav-item {
    padding: 12px 14px;
    margin: 0;
    border-radius: 14px;
    font-size: 14px;
    color: #4b5773;
}
.nav-item.active {
    background: linear-gradient(90deg, #5f4cf6, #7f6cff);
}
.workspace {
    padding: 0 18px 24px;
}
.workspace-topbar {
    margin: 0 -18px 18px;
    padding: 18px 24px;
    background: linear-gradient(90deg, #4935c8 0%, #6c43d8 48%, #9c58d1 100%);
    color: #fff;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}
.menu-button,
.profile-button,
.topbar-links a,
.user-role,
.topbar-icon { color: #fff; }
.menu-button {
    border-radius: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.12);
    font-size: 14px;
    letter-spacing: 0.02em;
}
.topbar-search {
    flex: 1;
    max-width: 380px;
}
.topbar-search input {
    width: 100%;
    border: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.14);
    color: #fff;
}
.topbar-search input::placeholder { color: rgba(255,255,255,0.72); }
.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
}
.topbar-links a {
    font-size: 13px;
    opacity: 0.92;
}
.topbar-user { gap: 10px; }
.topbar-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
}
.profile-button {
    background: rgba(255,255,255,0.14);
    border: 0;
}
.page-banner { display: none; }
.dashboard-hero,
.dashboard-surface {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(35, 53, 90, 0.08);
    border: 1px solid rgba(221, 227, 240, 0.9);
}
.dashboard-hero {
    padding: 22px;
    overflow: hidden;
}
.dashboard-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.dashboard-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8c97b2;
}
.dashboard-hero h2 {
    margin: 0;
    font-size: 30px;
    color: #263150;
}
.finance-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.finance-card {
    min-height: 146px;
    padding: 20px;
    border-radius: 18px;
    color: #1d2540;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.finance-label {
    font-size: 13px;
    font-weight: 700;
}
.finance-card strong {
    font-size: 36px;
    letter-spacing: -0.04em;
}
.finance-card p {
    margin: 0;
    font-size: 13px;
    color: rgba(29,37,64,0.72);
}
.finance-card-lime { background: linear-gradient(135deg, #efffbe, #a0f0b2); }
.finance-card-coral { background: linear-gradient(135deg, #ff915f, #ff6f86); color: #fff; }
.finance-card-coral p { color: rgba(255,255,255,0.82); }
.finance-card-cyan { background: linear-gradient(135deg, #58e0ff, #38c7dc); }
.mini-stat-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.mini-stat-row article {
    padding: 12px 6px;
}
.mini-stat-row span {
    display: block;
    font-size: 12px;
    color: #7e8aa5;
}
.mini-stat-row strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    color: #283451;
}
.dashboard-surface {
    margin-top: 18px;
    padding: 22px;
}
.dashboard-donut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.dashboard-two-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}
.dashboard-pane {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
    border: 1px solid rgba(222, 227, 239, 0.9);
}
.compact-feed {
    display: grid;
    gap: 10px;
}
.feed-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f8;
}
.feed-item:last-child { border-bottom: 0; }
.feed-item strong {
    display: block;
    font-size: 14px;
    color: #263250;
}
.feed-item p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #8a94ad;
}
.feed-item span {
    font-weight: 700;
    color: #ff7b6c;
}
.donut-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
    border: 1px solid rgba(222, 227, 239, 0.9);
}
.donut-card-compact .card-head {
    margin-bottom: 12px;
}
.donut-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
}
.donut-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
}
.donut-ring-sm {
    width: 130px;
    height: 130px;
}
.donut-hole {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(222, 227, 239, 0.9);
}
.donut-hole strong {
    font-size: 26px;
    line-height: 1;
    color: #263250;
}
.donut-hole span {
    margin-top: 6px;
    font-size: 12px;
    color: #8a94ad;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.donut-legend {
    display: grid;
    gap: 10px;
}
.donut-card-compact .donut-legend {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: start;
}
.donut-legend-item {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 10px;
    align-items: start;
    min-width: 0;
}
.donut-swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-top: 4px;
}
.donut-legend-item strong {
    display: block;
    font-size: 14px;
    color: #263250;
    overflow-wrap: anywhere;
}
.donut-legend-item small {
    display: block;
    margin-top: 2px;
    color: #8a94ad;
}
.trend-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 220px;
}
.trend-bar-wrap {
    display: grid;
    gap: 8px;
    align-items: end;
    justify-items: center;
}
.trend-value {
    font-size: 12px;
    color: #8a94ad;
}
.trend-bar {
    width: 100%;
    max-width: 56px;
    height: 150px;
    padding: 8px;
    display: flex;
    align-items: flex-end;
    border-radius: 18px;
    background: linear-gradient(180deg, #eef2fb 0%, #e1e7f6 100%);
}
.trend-bar span {
    display: block;
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(180deg, #5b57ff 0%, #1fc1c8 100%);
}
.trend-bar-wrap label {
    font-size: 12px;
    color: #5d6882;
    font-weight: 700;
}
.nec-swal-progress {
    width: 100%;
    height: 10px;
    margin-top: 14px;
    accent-color: #1fc1c8;
}
.uploaded-document-links {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}
.nec-profile-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(222, 230, 236, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(25, 45, 60, 0.14);
}
.nec-profile-banner {
    position: relative;
    min-height: 178px;
    padding: 34px;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(9, 30, 43, 0.98), rgba(21, 92, 77, 0.93)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1400&q=80") center / cover;
}
.nec-profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(56, 211, 159, 0.25), transparent 30%);
    pointer-events: none;
}
.nec-banner-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.nec-company-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: #9ce8ce;
}
.nec-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 800;
    color: #d9fff1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}
.nec-availability-dot {
    width: 9px;
    height: 9px;
    background: #4ae39f;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(74, 227, 159, 0.15);
}
.nec-profile-main {
    position: relative;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 30px;
    padding: 0 38px 38px;
}
.nec-profile-sidebar {
    position: relative;
    z-index: 2;
    margin-top: -70px;
}
.nec-avatar-frame {
    width: 158px;
    height: 158px;
    padding: 6px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(15, 38, 49, 0.18);
}
.nec-avatar {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 44px;
    font-weight: 900;
    border-radius: 23px;
    background: linear-gradient(135deg, #15805f, #24a87e);
}
.nec-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nec-quick-info {
    display: grid;
    gap: 14px;
}
.nec-quick-info-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 13px;
    color: #52616b;
}
.nec-quick-info-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #12765b;
    background: #e8f7f1;
    border-radius: 10px;
    font-weight: 900;
}
.nec-quick-info-content span {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 800;
    color: #8b969d;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.nec-quick-info-content a,
.nec-quick-info-content p {
    margin: 0;
    color: #3c4b54;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.nec-profile-content {
    padding-top: 28px;
}
.nec-profile-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.nec-profile-name {
    margin: 0 0 6px;
    color: #15242c;
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.08;
}
.nec-profile-role {
    margin: 0;
    color: #168062;
    font-size: 16px;
    font-weight: 700;
}
.nec-verified {
    display: inline-grid;
    width: 25px;
    height: 25px;
    margin-left: 7px;
    place-items: center;
    color: #ffffff;
    font-size: 13px;
    background: #1ca878;
    border-radius: 50%;
    vertical-align: middle;
}
.nec-profile-actions {
    display: flex;
    gap: 10px;
}
.nec-btn {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.nec-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #15805f, #24a87e);
    box-shadow: 0 8px 18px rgba(21, 128, 95, 0.22);
}
.nec-btn-secondary {
    color: #35444c;
    background: #f0f4f5;
}
.nec-profile-description {
    max-width: 650px;
    margin: 25px 0;
    color: #66747c;
    font-size: 14px;
    line-height: 1.8;
}
.nec-section-title {
    margin: 0 0 12px;
    color: #89959b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.nec-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 27px;
}
.nec-skill {
    padding: 9px 13px;
    color: #385047;
    font-size: 12px;
    font-weight: 800;
    background: #eff8f4;
    border: 1px solid #dcefe6;
    border-radius: 10px;
}
.nec-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    background: #f7f9fa;
    border: 1px solid #e9edef;
    border-radius: 16px;
}
.nec-stat {
    padding: 18px;
    text-align: center;
}
.nec-stat + .nec-stat {
    border-left: 1px solid #e3e8ea;
}
.nec-stat strong {
    display: block;
    margin-bottom: 5px;
    color: #1a2b32;
    font-size: 21px;
}
.nec-stat span {
    color: #89949a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
@media (max-width: 1080px) {
    .finance-cards,
    .mini-stat-row,
    .dashboard-two-col,
    .dashboard-donut-grid {
        grid-template-columns: 1fr;
    }
    .nec-profile-main {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 24px 28px;
    }
    .nec-profile-sidebar {
        margin-top: -65px;
    }
    .nec-avatar-frame {
        width: 132px;
        height: 132px;
    }
    .nec-quick-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nec-profile-heading {
        flex-direction: column;
    }
    .nec-profile-actions {
        width: 100%;
    }
    .nec-profile-actions .nec-btn {
        flex: 1;
    }
    .workspace-topbar {
        flex-wrap: wrap;
    }
}
@media (max-width: 720px) {
    .donut-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .trend-chart {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .nec-banner-top,
    .nec-profile-actions {
        flex-direction: column;
    }
    .nec-quick-info,
    .nec-profile-stats {
        grid-template-columns: 1fr;
    }
    .nec-stat + .nec-stat {
        border-top: 1px solid #e3e8ea;
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .workspace {
        padding: 0 12px 18px;
    }

    .workspace-main {
        gap: 14px;
    }

    .workspace-topbar {
        margin: 0 -12px 14px;
        padding: 14px 16px;
        gap: 10px;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .topbar-search {
        order: 3;
        flex: 1 0 100%;
        max-width: none;
    }

    .topbar-links,
    .topbar-icon {
        display: none;
    }

    .topbar-user {
        margin-left: auto;
        min-width: 0;
    }

    .user-role {
        max-width: 38vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .panel,
    .dashboard-hero,
    .dashboard-surface {
        padding: 16px;
        border-radius: 18px;
    }

    .panel-head,
    .card-head,
    .dashboard-hero-top,
    .table-toolbar {
        gap: 12px;
    }

    .panel-head h2,
    .card-head h3,
    .section-title h3,
    .detail-card h3 {
        font-size: 18px;
        letter-spacing: 0;
    }

    .panel-head p,
    .section-title p,
    .banner-copy {
        font-size: 14px;
        line-height: 1.5;
    }

    .form-grid,
    .field-cluster,
    .compact-cluster,
    .detail-grid,
    .two-col,
    .three-col,
    .profile-grid,
    .user-admin-grid,
    .report-filters {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-grid input,
    .form-grid select,
    .form-grid textarea,
    .search-box input,
    .data-table td input,
    .data-table td select,
    .data-table td textarea {
        min-height: 46px;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 16px;
    }

    .form-grid label span,
    .report-filters label {
        font-size: 13px;
    }

    .form-tab-nav,
    .record-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0 -16px 14px;
        padding: 8px 16px;
        overflow-x: auto;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .form-tab-link,
    .record-tab-link {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 10px 12px;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .form-tab-panels {
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .form-section,
    .detail-card,
    .dashboard-pane,
    .donut-card {
        padding: 14px;
        border-radius: 16px;
    }

    .personal-form-layout .detail-card:last-child {
        grid-column: auto;
    }

    .personal-form-layout .detail-card:last-child .compact-cluster {
        grid-template-columns: 1fr;
    }

    .inline-language-picker,
    .password-input {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .form-actions,
    .action-row,
    .button-row,
    .resend-row,
    .workspace-actions,
    .report-filter-actions {
        width: 100%;
        justify-content: stretch;
    }

    .form-actions button,
    .action-row button,
    .button-row button,
    .resend-row button,
    .workspace-actions .toolbar-button,
    .primary-auth-button,
    .secondary-button,
    .toolbar-button {
        width: 100%;
        min-height: 46px;
    }

    .table-wrap {
        margin: 0 -16px;
        padding: 0 16px 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 680px;
    }

    .data-table th,
    .data-table td,
    .record-section .data-table.compact-table th,
    .record-section .data-table.compact-table td {
        padding: 10px;
        font-size: 14px;
    }

    .employment-entry-table {
        min-width: 760px;
    }

    .uploaded-document-links,
    .upload-list {
        min-width: 0;
    }

    .upload-item {
        width: 100%;
        align-items: flex-start;
    }

    .profile-picture-field {
        grid-template-columns: 78px minmax(0, 1fr);
        padding: 12px;
    }

    .profile-picture-preview {
        width: 78px;
        height: 78px;
        border-radius: 18px;
        font-size: 26px;
    }

    .workflow-bar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .workflow-bar select,
    .workflow-bar button {
        width: 100%;
    }

    .admin-modal-panel,
    .doc-modal-panel {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        padding: 14px;
        border-radius: 16px;
    }

    .admin-modal-head,
    .doc-modal-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .doc-modal-panel {
        height: calc(100vh - 16px);
    }
}

@media (max-width: 480px) {
    .workspace {
        padding-inline: 8px;
    }

    .workspace-topbar {
        margin-inline: -8px;
        padding-inline: 12px;
    }

    .panel,
    .dashboard-hero,
    .dashboard-surface,
    .form-section,
    .detail-card,
    .dashboard-pane,
    .donut-card {
        padding: 12px;
        border-radius: 14px;
    }

    .form-tab-nav,
    .record-tabs,
    .table-wrap {
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .application-applicant-head {
        align-items: flex-start;
    }

    .application-profile-image {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 20px;
    }

    .donut-ring {
        width: 128px;
        height: 128px;
    }

    .donut-hole {
        width: 78px;
        height: 78px;
    }

    .trend-chart {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .auth-body .shell {
        min-height: 100vh;
        padding: 0;
    }

    .auth-body .main {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .nec-login-layout {
        width: 100%;
        min-height: 100vh;
        overflow: hidden;
        border-radius: 0;
    }

    .nec-login-blue {
        order: 1;
        width: 100%;
        min-width: 0;
        padding: 28px 16px;
        gap: 20px;
    }

    .nec-login-card {
        width: 100%;
        max-width: 440px;
        padding: 32px 20px 24px;
    }

    .nec-login-card .login-copy h1 {
        font-size: 34px;
    }

    .nec-login-card .login-copy p {
        margin-bottom: 18px;
        font-size: 15px;
    }

    .nec-login-info {
        order: 2;
        width: 100%;
        min-width: 0;
        padding: 28px 16px 22px;
    }

    .nec-login-brand {
        width: 100%;
        max-width: 360px;
        gap: 12px;
        justify-content: center;
        margin-bottom: 20px;
    }

    .nec-login-brand img {
        width: 64px;
        flex: 0 0 64px;
    }

    .nec-login-brand strong {
        font-size: 30px;
    }

    .nec-login-brand span {
        max-width: 210px;
        font-size: 10px;
        line-height: 1.35;
        letter-spacing: 0.08em;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .nec-login-help {
        width: 100%;
        max-width: 440px;
        overflow: hidden;
    }

    .nec-login-help summary {
        padding: 12px 14px;
        font-size: 15px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .nec-login-help p {
        padding: 0 14px 14px 34px;
        font-size: 14px;
    }

    .nec-login-copyline {
        width: 100%;
        max-width: 440px;
        margin-top: 18px;
        font-size: 12px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .nec-login-support {
        max-width: 440px;
        font-size: 14px;
        line-height: 1.45;
    }

    .nec-login-support p {
        margin-bottom: 12px;
    }

    .nec-login-support span {
        display: none;
    }

    .nec-login-support a {
        display: block;
        margin-top: 6px;
    }
}

@media (max-width: 380px) {
    .nec-login-card {
        padding-inline: 16px;
    }

    .nec-login-brand {
        justify-content: flex-start;
    }

    .nec-login-brand span {
        max-width: 170px;
        font-size: 9px;
    }

    .nec-login-help summary {
        font-size: 14px;
    }
}

@media (max-width: 720px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .app-shell,
    .app-shell.sidebar-collapsed {
        display: block;
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .workspace {
        width: 100%;
        min-width: 0;
        padding: 0 12px 18px;
    }

    .workspace-topbar {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0 0 14px;
        padding: 12px;
        gap: 10px;
        border-radius: 0 0 16px 16px;
    }

    .menu-button {
        grid-column: 1;
    }

    .topbar-add-menu {
        grid-column: 2;
        position: relative;
        justify-self: start;
    }

    .topbar-user {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
        min-width: 0;
    }

    .profile-button {
        min-height: 40px;
        padding: 10px 12px;
    }

    .user-role {
        max-width: 34vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-search {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        min-width: 0;
        order: initial;
    }

    .topbar-search input {
        width: 100%;
        min-width: 0;
    }

    .topbar-add-panel {
        right: auto;
        left: 0;
        width: min(220px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }

    .panel,
    .dashboard-hero,
    .dashboard-surface,
    .summary-layout,
    .application-applicant-head {
        width: 100%;
        min-width: 0;
    }

    .applicant-status-summary .card-head {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .applicant-status-summary .status-pill {
        justify-self: start;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .record-tabs {
        width: calc(100% + 32px);
        max-width: none;
    }

    .record-tab-link {
        max-width: 72vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .application-applicant-head > div:last-child {
        min-width: 0;
    }

    .nec-login-layout,
    .nec-login-blue,
    .nec-login-info,
    .nec-login-card,
    .nec-login-form,
    .nec-login-form label,
    .nec-login-form .password-input {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .nec-login-card {
        overflow: hidden;
    }

    .nec-login-form {
        width: 100%;
    }

    .nec-login-form label {
        display: block;
        width: 100%;
    }

    .nec-login-form input,
    .nec-login-form .password-input input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .nec-login-form .password-input {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 0;
        overflow: hidden;
    }

    .nec-login-form .password-toggle {
        width: 42px;
        min-width: 42px;
        padding: 0;
    }

    .nec-login-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .nec-login-links a {
        min-width: 0;
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 430px) {
    .nec-login-blue {
        padding: 18px 12px 24px;
    }

    .nec-login-card {
        padding: 28px 14px 20px;
    }

    .nec-login-links {
        grid-template-columns: 1fr;
    }

    .nec-login-links a {
        font-size: 13px;
    }
}
