@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #102f5c;
    --blue: #174f91;
    --blue-bright: #2269b7;
    --ink: #1d2c40;
    --muted: #68778a;
    --line: #e2e9f1;
    --surface: #ffffff;
    --soft: #f3f7fc;
    --green: #3ba784;
    --danger-bg: #fff0f0;
    --danger: #a62b2b;
    --shadow: 0 24px 70px rgba(14, 42, 78, .13);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: 'DM Sans', Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(54, 116, 188, .10), transparent 32%),
        radial-gradient(circle at 88% 90%, rgba(58, 168, 132, .08), transparent 30%),
        #f2f6fb;
}
button, input { font: inherit; }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 36px 22px; }
.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    width: min(1120px, 100%);
    min-height: 680px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(220, 230, 241, .9);
    border-radius: 26px;
    box-shadow: var(--shadow);
}
.login-shell-single { display: block; width: min(540px, 100%); min-height: 0; }
.login-shell-single .form-panel { padding-top: 42px; }
.help-request-panel { justify-content: flex-start; }
.help-request-panel .login-brand { margin-bottom: 32px; }
.help-request-panel .field-group textarea {
    display: block;
    width: 100%;
    min-height: 105px;
    padding: 12px 14px;
    border: 1px solid #dce5ef;
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    resize: vertical;
}
.help-request-panel .field-group textarea:focus,
.help-request-panel .field-group input:focus,
.help-request-panel .field-group select:focus { border-color: #7db6f0; outline: 3px solid rgba(125,182,240,.2); }
.help-request-panel .file-input {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: var(--soft);
}
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.help-back-link { margin: 20px 0 0; text-align: center; font-size: 12px; }
.help-back-link a, .alert-success a { color: var(--blue); font-weight: 600; }
.request-status-card { margin: 0 0 24px; padding: 18px; border: 1px solid #cfe5dc; border-radius: 12px; background: #f3fbf7; }
.request-status-card > p { margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.request-status-card > strong { display: block; margin-bottom: 16px; color: var(--navy); font: 700 16px 'Manrope', sans-serif; overflow-wrap: anywhere; }
.request-status-card .profile-grid { gap: 8px; }
.request-status-card .profile-grid div { background: #fff; }
.request-admin-reply { margin-top: 14px; padding: 14px; border: 1px solid #cfe5dc; border-radius: 9px; background: #fff; }
.request-admin-reply strong { color: #22694f; font: 700 12px 'Manrope', sans-serif; }
.request-admin-reply p { margin: 7px 0 0; color: var(--ink); font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.help-request-update-form { min-width: 230px; }
.help-request-update-form label { display: block; margin: 0 0 9px !important; color: #52647a; font-size: 10px !important; font-weight: 700; }
.help-request-update-form select,
.help-request-update-form textarea { display: block; width: 100%; margin-top: 5px; padding: 8px 9px; border: 1px solid #dce5ef; border-radius: 7px; color: var(--ink); background: #fff; font: 12px 'DM Sans', sans-serif; }
.help-request-update-form textarea { min-height: 76px; resize: vertical; }
.help-request-update-form button { white-space: nowrap; }
.help-communication { min-width: 210px; margin-top: 10px; }
.help-communication summary { color: var(--blue); font-size: 11px; font-weight: 700; cursor: pointer; }
.help-message-list { display: grid; max-height: 280px; gap: 9px; margin: 10px 0 0; padding: 0 6px 0 0; overflow-y: auto; list-style: none; }
.help-message { padding: 10px 11px; border: 1px solid #dce8f5; border-radius: 9px; background: #f7faff; }
.help-message-employee { border-color: #cfe5dc; background: #f3fbf7; }
.help-message strong { display: inline-block; color: var(--navy); font-size: 10px; }
.help-message time { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.help-message p { margin: 7px 0 0; color: var(--ink); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 42px; color: var(--navy); text-decoration: none; }
.login-brand .brand-subtitle { display: block; }
.login-brand .brand-subtitle { color: var(--muted); opacity: 1; }
.brand-logo { display: block; width: 130px; height: auto; max-height: 56px; flex: 0 0 auto; object-fit: contain; }
.login-shell-single .form-heading h1 { margin: 0; font: 800 27px/1.3 'Manrope', sans-serif; letter-spacing: -.8px; }
.login-shell-single .input-wrap input { padding-left: 14px; }
.welcome-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 44px 32px;
    color: white;
    background:
        linear-gradient(145deg, rgba(13, 43, 83, .70), rgba(21, 71, 126, .58) 58%, rgba(26, 92, 150, .54)),
        url('../images/coalfield-bg.svg') center / cover no-repeat,
        radial-gradient(circle at 84% 22%, rgba(90, 151, 220, .25), transparent 26%),
        radial-gradient(circle at 12% 90%, rgba(55, 158, 139, .18), transparent 27%),
        #0d2b53;
    position: relative;
    isolation: isolate;
}
.welcome-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    right: -155px;
    bottom: 80px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 75px rgba(255,255,255,.02);
}
.brand-lockup, .mobile-brand { display: flex; align-items: center; gap: 13px; }
.brand-lockup .brand-logo { width: 150px; max-height: 65px; }
.mobile-brand .brand-logo { width: 120px; max-height: 54px; }
.brand-subtitle { margin: 5px 0 0; font-size: 11px; opacity: .72; }
.welcome-copy { max-width: 480px; padding: 30px 0; }
.eyebrow { color: #6ca6e5; font-size: 11px; font-weight: 700; letter-spacing: 1.7px; }
.welcome-copy h1 {
    margin: 17px 0 18px;
    font: 800 clamp(34px, 4vw, 48px)/1.15 'Manrope', sans-serif;
    letter-spacing: -1.8px;
}
.welcome-copy h1 span { color: #9cc8f6; }
.welcome-description { max-width: 390px; margin: 0; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.8; }
.welcome-actions { display: grid; gap: 10px; margin-top: 23px; }
.welcome-actions-mobile { display: none; }
.welcome-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 10px 17px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 11px;
    color: #fff;
    background: rgba(255,255,255,.10);
    text-decoration: none;
    transition: transform .18s, background-color .18s, box-shadow .18s;
}
.welcome-action:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.welcome-action:focus-visible { outline: 3px solid #9cc8f6; outline-offset: 3px; }
.welcome-action-primary { color: var(--navy); border-color: #fff; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.welcome-action-primary:hover { background: #edf5ff; }
.welcome-action strong, .welcome-action small { display: block; }
.welcome-action strong { font: 700 15px 'Manrope', sans-serif; }
.welcome-action small { margin-top: 3px; color: inherit; opacity: .76; font-size: 11px; }
.welcome-action-arrow { margin-left: 14px; font-size: 21px; }
.feature-list { display: grid; gap: 17px; margin-top: 35px; }
.feature-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); font-size: 13px; }
.feature-icon {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(155, 215, 199, .42);
    border-radius: 50%;
    color: #9ce3c8;
    font-weight: 700;
    font-size: 12px;
}
.welcome-footer { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72); font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #66d4ad; box-shadow: 0 0 0 4px rgba(102,212,173,.12); }
.form-panel { display: flex; flex-direction: column; justify-content: center; padding: 52px clamp(32px, 5vw, 64px) 28px; }
.mobile-brand { display: none; margin-bottom: 38px; }
.mobile-brand .brand-subtitle { color: var(--muted); opacity: 1; }
.form-heading { margin-bottom: 30px; }
.form-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 25px;
    color: var(--blue);
    background: #eaf3ff;
    border-radius: 13px;
    font-size: 24px;
    font-weight: 600;
}
.form-heading .eyebrow { margin: 0 0 9px; color: var(--blue-bright); }
.form-heading h2 { margin: 0; font: 800 27px/1.3 'Manrope', sans-serif; letter-spacing: -.8px; }
.form-heading > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.registration-shell { min-height: 640px; }
.registration-panel { justify-content: flex-start; padding-top: 42px; }
.registration-panel .form-heading { margin-bottom: 24px; }
.registration-panel .field-group { margin-bottom: 17px; }
.registration-panel .field-group label { font-size: 15px; }
.registration-panel .input-wrap input { padding-left: 14px; }
.registration-panel .input-wrap input:only-child { padding-left: 14px; }
.registration-panel .input-wrap input { font-size: 16px; }
.registration-details { margin-top: 24px; }
.registration-details h3 { margin: 0 0 7px; color: var(--ink); font: 700 19px 'Manrope', sans-serif; }
.registration-note { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.registration-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; padding: 12px; border: 1px solid #e3edf8; border-radius: 11px; background: #f7faff; }
.registration-summary div { min-width: 0; padding: 10px; border: 1px solid #e3edf8; border-radius: 8px; background: #fff; }
.registration-summary span, .registration-summary strong { display: block; overflow-wrap: anywhere; }
.registration-summary span { margin-bottom: 5px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.registration-summary strong { color: var(--ink); font-size: 17px; line-height: 1.5; }
.select-wrap select { width: 100%; min-width: 0; height: 49px; padding: 0 13px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 12px; }
.alert-pending { margin: 18px 0 12px; color: #674f17; border: 1px solid #f1dfa6; background: #fff9e7; }
.alert-success { margin: 18px 0 12px; color: #17623c; border: 1px solid #b7e5cb; background: #effaf3; }
.credential-dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); box-shadow: var(--shadow); }
.credential-dialog::backdrop { background: rgba(13, 35, 62, .58); backdrop-filter: blur(3px); }
.credential-dialog-content { padding: 30px; }
.credential-dialog .eyebrow { margin: 0 0 8px; color: var(--blue-bright); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.credential-dialog h2 { margin: 0; font: 800 24px/1.3 'Manrope', sans-serif; }
.credential-dialog-content > p:not(.eyebrow) { margin: 10px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.credential-list { margin: 0 0 22px; }
.credential-list div { padding: 12px 14px; border: 1px solid var(--line); background: var(--soft); }
.credential-list div + div { border-top: 0; }
.credential-list div:first-child { border-radius: 10px 10px 0 0; }
.credential-list div:last-child { border-radius: 0 0 10px 10px; }
.credential-list dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.credential-list dd { margin: 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 700; }
.credential-dialog form { margin: 0; }
.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    margin-top: 10px;
    padding: 12px 24px;
    border: 2px solid #4a8fd6;
    border-radius: 10px;
    color: #fff;
    background: var(--blue-bright);
    box-shadow: 0 6px 16px rgba(34,105,183,.25);
    font: 800 15px/1.3 'Manrope', sans-serif;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background-color .15s;
}
.primary-button:hover { transform: translateY(-2px); background: #2b78cc; box-shadow: 0 10px 22px rgba(34,105,183,.35); }
.primary-button:focus-visible, .password-toggle:focus-visible { outline: 3px solid #7db6f0; outline-offset: 3px; }
.alert { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.alert-error { color: var(--danger); border: 1px solid #ffd4d4; background: var(--danger-bg); }
.registration-prompt { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.help-card { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; padding: 15px; border: 1px solid #e3edf8; border-radius: 12px; background: #f7faff; }
.help-symbol { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; color: #1c66ad; background: #e3efff; font-size: 13px; font-weight: 700; }
.help-card strong { display: block; margin: 1px 0 5px; color: #34465c; font-size: 11px; }
.help-card p { margin: 0; color: #7b899a; font-size: 10px; line-height: 1.6; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; color: #8b98a7; font-size: 10px; }
.form-footer { margin-top: 22px; color: #a0aab6; text-align: center; font-size: 9px; }
.employee-page { min-height: 100vh; padding: 28px 20px; }
.employee-shell { width: min(1120px, 100%); min-height: calc(100vh - 56px); margin: 0 auto; padding: 24px clamp(20px, 4vw, 48px); border: 1px solid rgba(220, 230, 241, .9); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.employee-header { display: flex; align-items: center; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.portal-header { gap: 18px; }
.employee-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.employee-brand .brand-logo { width: 100px; max-height: 44px; }
.employee-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.employee-nav { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; }
.employee-nav a { padding: 10px 14px; border: 0; border-radius: 8px; color: #52647a; background: transparent; font: 700 13px 'Manrope', sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.employee-nav a:hover { color: var(--blue); background: var(--soft); }
.employee-logout button { min-height: 40px; padding: 9px 20px; border: 2px solid var(--blue); border-radius: 8px; color: var(--blue); background: #fff; font: 800 13px 'Manrope', sans-serif; cursor: pointer; transition: background-color .15s, color .15s; }
.employee-logout button:hover { color: #fff; background: var(--blue); }
.employee-nav a[aria-current="page"] { color: var(--blue); background: #eaf3ff; }
.employee-nav a:focus-visible, .employee-logout button:focus-visible { outline: 3px solid #7db6f0; outline-offset: 2px; }
.portal-nav { justify-content: flex-start; }
.portal-account-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.portal-account-actions a, .portal-account-actions button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    color: var(--blue);
    background: #fff;
    font: 800 13px 'Manrope', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.portal-account-actions a:hover, .portal-account-actions button:hover { color: #fff; background: var(--blue); }
.portal-account-actions form { margin: 0; }
.portal-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.portal-summary-card {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 20px;
    border: 1px solid #e3edf8;
    border-radius: 13px;
    color: var(--ink);
    background: linear-gradient(145deg, #fff, #f7faff);
    text-decoration: none;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.portal-summary-card:hover { transform: translateY(-2px); border-color: #aac9eb; box-shadow: 0 10px 24px rgba(14,42,78,.08); }
.portal-summary-card:focus-visible { outline: 3px solid #7db6f0; outline-offset: 3px; }
.portal-summary-card strong { color: var(--blue); font: 700 16px 'Manrope', sans-serif; }
.portal-summary-card span { color: var(--muted); font-size: 12px; }
.portal-summary-card .portal-summary-link { display: flex; width: 100%; justify-content: space-between; margin-top: auto; color: var(--blue); font-weight: 700; }
.portal-header + .employee-content { width: 100%; }
.employee-content > .employee-card form label { display: block; margin: 0 0 12px; color: #52647a; font-size: 12px; font-weight: 600; }
.employee-content > .employee-card input:not([type="hidden"]),
.employee-content > .employee-card select {
    display: block;
    width: 100%;
    min-height: 40px;
    margin-top: 6px;
    padding: 9px 11px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font-size: 13px;
}
.employee-content > .employee-card input:focus,
.employee-content > .employee-card select:focus { border-color: #7db6f0; outline: 3px solid rgba(125,182,240,.2); }
.employee-content > .employee-card button {
    min-height: 40px;
    margin: 4px 6px 4px 0;
    padding: 9px 18px;
    border: 2px solid #4a8fd6;
    border-radius: 9px;
    color: #fff;
    background: var(--blue-bright);
    font: 800 13px 'Manrope', sans-serif;
    cursor: pointer;
    transition: transform .15s, background-color .15s, box-shadow .15s;
}
.employee-content > .employee-card button:hover { transform: translateY(-1px); background: #2b78cc; box-shadow: 0 6px 14px rgba(34,105,183,.3); }
.employee-content > .employee-card form.employee-card { padding: 17px; }
.account-password-reset { min-width: 205px; }
.account-password-reset label { margin-bottom: 8px !important; }
.account-password-reset input { min-width: 180px; }
.account-password-reset button { width: 100%; }
.admin-portal .employee-shell { width: min(1440px, 100%); }
.admin-portal .employee-content { max-width: none; }
.admin-portal .form-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-section-card { padding: clamp(18px, 3vw, 30px); }
.admin-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.admin-section-heading h2 { margin: 0; color: var(--navy); font: 800 19px/1.35 'Manrope', sans-serif; }
.admin-section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.admin-reviewer-create {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e3edf8;
    border-radius: 12px;
    background: #f7faff;
}
.admin-reviewer-create label { min-width: 0; margin: 0 !important; color: #52647a; font-size: 12px; font-weight: 700; }
.admin-reviewer-create input,
.admin-reviewer-create select { margin-top: 7px !important; }
.admin-reviewer-create button { min-width: 170px; }
.admin-accounts-heading { margin: 30px 0 12px; padding-top: 23px; border-top: 1px solid var(--line); }
.admin-accounts-scroll { border: 1px solid var(--line); border-radius: 11px; }
.admin-account-table { min-width: 970px; background: #fff; }
.admin-account-table th { padding: 13px 14px; color: #41556e; background: #f3f7fc; font-size: 11px; letter-spacing: .35px; text-transform: uppercase; }
.admin-account-table td { padding: 14px; vertical-align: middle; }
.admin-account-table tbody tr:last-child td { border-bottom: 0; }
.admin-account-table tbody tr:hover { background: #fbfdff; }
.admin-account-table td:first-child { color: var(--navy); font-weight: 700; }
.admin-account-table td:nth-child(2) { color: #52647a; font-size: 11px; font-weight: 700; }
.admin-account-table .account-password-reset { display: grid; min-width: 390px; grid-template-columns: repeat(2, minmax(140px, 1fr)); align-items: end; gap: 9px; }
.admin-account-table .account-password-reset label { margin: 0 !important; color: #52647a; font-size: 10px; }
.admin-account-table .account-password-reset input { min-width: 0; min-height: 38px; padding: 8px 10px; }
.admin-account-table .account-password-reset button { grid-column: 1 / -1; justify-self: start; min-width: 155px; }
.employee-content { width: min(850px, 100%); margin: 0 auto; padding: 38px 0 22px; }
.employee-content .form-heading { margin-bottom: 24px; }
.employee-content .form-heading h1 { margin: 0; font: 800 29px/1.3 'Manrope', sans-serif; letter-spacing: -.8px; }
.employee-content .form-heading > p:last-child { margin-top: 8px; }
.employee-card { margin-top: 20px; padding: 22px; border: 1px solid #e3edf8; border-radius: 13px; background: #fff; }
.employee-card h2 { margin: 0 0 16px; font: 700 18px 'Manrope', sans-serif; }
.employee-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.employee-action-card { display: flex; min-height: 115px; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid #e3edf8; border-radius: 12px; color: var(--ink); background: #f7faff; text-decoration: none; transition: border-color .18s, transform .18s; }
.employee-action-card:hover { transform: translateY(-2px); border-color: #aac9eb; }
.employee-action-card:focus-visible { outline: 3px solid #7db6f0; outline-offset: 3px; }
.employee-action-card strong { color: var(--blue); font: 700 14px 'Manrope', sans-serif; }
.employee-action-card span, .employee-muted { color: var(--muted); font-size: 12px; line-height: 1.5; }
.employee-password-content { width: min(540px, 100%); }
.employee-password-content .field-group { margin-bottom: 18px; }
.employee-password-content .input-wrap input { padding-left: 14px; }
.upload-form { margin: 0; }
.upload-form input[type="file"][hidden], .photo-capture [hidden] { display: none !important; }
.upload-form input[type="file"] { display: block; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); color: var(--ink); }
.upload-subject { margin-bottom: 18px; }
.upload-slot { margin-bottom: 18px; }
.upload-slot-status { margin: 6px 0 10px; font-size: 12px; line-height: 1.6; }
.upload-status-needs_correction { color: var(--danger); }
.upload-status-accepted { color: #1f7a5c; }
.photo-capture-video, .photo-capture-preview { display: block; width: 100%; max-width: 280px; margin-bottom: 10px; border-radius: 9px; background: #000; }
.certificate-preview { margin-top: 10px; }
.certificate-preview img { display: block; max-width: 100%; max-height: 360px; border: 1px solid var(--line); border-radius: 9px; }
.uploaded-preview { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.uploaded-preview img { max-height: 280px; }
.certificate-preview[hidden] { display: none; }
.photo-capture-message { color: var(--danger); }
.photo-capture-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-dialog { max-width: 420px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.upload-dialog::backdrop { background: rgba(16, 47, 92, .45); }
.upload-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.stats-section { margin: 0 0 22px; }
.stats-heading { margin: 0 0 14px; font-size: 18px; color: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stats-card { --accent: var(--blue); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 28px rgba(14, 42, 78, .08); }
.stats-employee { --accent: #174f91; }
.stats-spouse { --accent: #8a3fb5; }
.stats-divyang { --accent: #d9822b; }
.stats-card header { padding: 18px 20px 14px; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); }
.stats-card h3 { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.stats-total { display: block; margin-top: 6px; font-size: 40px; font-weight: 800; line-height: 1; }
.stats-card header small { display: block; margin-top: 4px; font-size: 12px; opacity: .85; }
.stats-bar { height: 6px; background: var(--line); }
.stats-bar span { display: block; height: 100%; background: #2fa57d; }
.stats-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 16px 20px 20px; list-style: none; }
.stats-chips li { padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.stats-chips strong { display: block; font-size: 22px; line-height: 1.1; }
.stats-chips span { font-size: 11px; color: var(--muted); }
.stats-accepted strong { color: #1f7a5c; }
.stats-rejected strong { color: var(--danger); }
.stats-pending strong { color: #b27a12; }
.stats-photos strong { color: var(--blue); }
.table-scroll { overflow-x: auto; }
.employee-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.employee-table th, .employee-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.employee-table th { color: #52647a; font-weight: 700; white-space: nowrap; }
.employee-table td { overflow-wrap: anywhere; }
.employee-download-link { color: var(--blue); font-weight: 600; }
.employee-download-link:hover { text-decoration: none; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.profile-grid div { min-width: 0; padding: 12px; border: 1px solid #e3edf8; border-radius: 9px; background: #f7faff; }
.profile-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.profile-grid dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }

@media (max-width: 850px) {
        .login-page { padding: 22px 16px; }
    .login-shell { min-height: 620px; }
    .welcome-panel { padding: 32px 28px 26px; }
    .form-panel { padding: 38px clamp(24px, 4vw, 40px) 24px; }
    .welcome-copy h1 { font-size: clamp(32px, 4vw, 37px); }
}
@media (max-width: 650px) {
    .login-page { display: block; padding: 0; background: #f2f6fb; }
    .login-shell { display: block; width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .welcome-panel { display: none; }
    .form-panel { min-height: 100vh; justify-content: flex-start; padding: 0 23px 22px; }
    .mobile-brand {
        position: relative;
        display: flex;
        min-height: 116px;
        margin: 0 -23px 28px;
        padding: 23px;
        overflow: hidden;
        color: #fff;
        background:
            linear-gradient(100deg, rgba(13, 43, 83, .78), rgba(21, 71, 126, .58)),
            url('../images/coalfield-bg.svg') center 48% / cover no-repeat;
    }
    .mobile-brand .brand-logo { position: relative; z-index: 1; }
    .mobile-brand > div:last-child { position: relative; z-index: 1; }
    .mobile-brand .brand-subtitle { color: rgba(255,255,255,.8); }
    .welcome-actions-desktop { display: none; }
    .welcome-actions-mobile { display: grid; margin: 0 0 28px; }
    .welcome-action { min-height: 62px; color: var(--ink); border-color: #dce5ef; background: #fff; box-shadow: 0 4px 12px rgba(14,42,78,.06); }
    .welcome-action:hover { background: #f7faff; }
    .welcome-action-primary { color: #fff; border-color: var(--blue); background: linear-gradient(100deg, #174f91, #2269b7); box-shadow: 0 8px 18px rgba(34,105,183,.18); }
    .welcome-action-primary:hover { background: linear-gradient(100deg, #174f91, #2269b7); }
    .welcome-action-primary small { color: #fff; }
    .form-heading { margin: 15px 0 27px; }
    .form-icon { margin-bottom: 20px; }
    .form-heading h2 { font-size: 25px; }
    .help-card { margin-top: 28px; }
    .security-note { margin-top: 25px; }
    .form-footer { margin-top: auto; padding-top: 28px; }
    .employee-page { padding: 0; background: #f2f6fb; }
    .employee-shell { width: 100%; min-height: 100vh; padding: 16px 20px 24px; border: 0; border-radius: 0; box-shadow: none; }
    .employee-header { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
    .employee-brand { flex: 1; }
    .employee-nav { order: 3; flex: 1 0 100%; justify-content: flex-start; gap: 2px; }
    .employee-nav a { padding: 9px 10px; }
    .portal-header { gap: 8px; }
    .portal-account-actions { order: 2; }
    .portal-nav { order: 3; flex: 1 0 100%; }
    .portal-summary-grid { grid-template-columns: 1fr; gap: 11px; }
    .portal-summary-card { min-height: 125px; padding: 17px; }
    .account-password-reset { min-width: 0; }
    .account-password-reset input { min-width: 0; }
    .admin-reviewer-create { grid-template-columns: 1fr; gap: 11px; padding: 14px; }
    .admin-reviewer-create button { width: 100%; }
    .admin-account-table .account-password-reset { min-width: 340px; }
    .employee-logout { align-self: center; }
    .employee-content { padding-top: 25px; }
    .employee-action-grid { grid-template-columns: 1fr; }
    .employee-action-card { min-height: 0; }
    .employee-card { padding: 17px; }
    .employee-password-content { min-height: auto; }
    .registration-panel { padding-top: 0; }
    .registration-panel .form-heading { margin: 0 0 24px; }
}
@media (max-width: 360px) {
    .form-panel { padding-right: 17px; padding-left: 17px; }
    .mobile-brand { margin-right: -17px; margin-left: -17px; padding-right: 17px; padding-left: 17px; }
    .mobile-brand .brand-subtitle { font-size: 10px; }
    .registration-summary { grid-template-columns: minmax(0, 1fr); }
    .profile-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Landing page */
.home-page { display: flex; flex-direction: column; min-height: 100vh; background: #0d2b53; }
.site-header { background: #fff; border-bottom: 4px solid var(--blue-bright); box-shadow: 0 4px 18px rgba(14,42,78,.12); position: relative; z-index: 2; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1180px, 100%); margin: 0 auto; padding: 14px 32px; }
.site-brand { display: flex; align-items: center; gap: 18px; color: var(--navy); text-decoration: none; }
.site-brand .brand-logo { width: 170px; max-height: 74px; }
.site-title { padding-left: 18px; border-left: 2px solid var(--line); }
.site-title strong { display: block; font: 800 17px/1.3 'Manrope', sans-serif; letter-spacing: .3px; }
.site-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.site-header-links { display: flex; gap: 8px; }
.home-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(13, 43, 83, .93), rgba(21, 71, 126, .86)),
        url('../images/coalfield-bg.svg') center / cover no-repeat,
        #0d2b53;
}
.home-content { width: min(1360px, 100%); }
.home-eyebrow { display: inline-block; margin: 0 0 18px; padding: 7px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #cfe4fb; background: rgba(255,255,255,.08); font: 700 12px 'Manrope', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; }
.home-content h2 { margin: 0; font: 800 clamp(34px, 4.6vw, 56px)/1.18 'Manrope', sans-serif; letter-spacing: -1.4px; }
.home-lead { max-width: 680px; margin: 20px auto 0; color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.75; }
.site-footer { color: rgba(255,255,255,.78); background: #091f3f; border-top: 4px solid var(--blue-bright); }
.site-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; width: min(1180px, 100%); margin: 0 auto; padding: 44px 32px 32px; }
.site-footer h3 { margin: 0 0 14px; color: #fff; font: 800 13px 'Manrope', sans-serif; letter-spacing: 1.3px; text-transform: uppercase; }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.8; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 13px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-visits { display: inline-block; margin-top: 8px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.06); font-size: 13px; }
.footer-visits strong { color: #fff; font: 800 20px 'Manrope', sans-serif; letter-spacing: .5px; }
.site-footer-bottom { padding: 16px 32px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); font-size: 12px; text-align: center; }
@media (max-width: 850px) {
    .site-footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 34px 24px 24px; }
        }
@media (max-width: 650px) {
    .site-header-inner { justify-content: center; padding: 12px 16px; }
    .site-brand { flex-direction: column; gap: 8px; text-align: center; }
    .site-brand .brand-logo { width: 140px; max-height: 62px; }
    .site-title { padding: 0; border: 0; }
    .site-title strong { font-size: 14px; }
    .home-main { padding: 40px 18px; }
    .home-lead { font-size: 15px; }
    .site-footer-bottom { padding: 14px 18px; }
}

/* Landing page buttons */
.home-actions { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 10px; margin: 44px 0 0; }
.home-actions .btn { min-width: 0; min-height: 52px; padding: 13px 18px; font-size: 15px; white-space: nowrap; }
@media (min-width: 1024px) {
    .home-actions { flex-wrap: nowrap; gap: 10px; }
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 30px;
    border: 2px solid transparent;
    border-radius: 10px;
    font: 800 16px/1.3 'Manrope', sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
    transition: transform .15s, background-color .15s, box-shadow .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.28); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #9cc8f6; outline-offset: 3px; }
.btn-light { min-width: 190px; color: var(--navy); background: #fff; }
.btn-light:hover { background: #edf5ff; }
.btn-blue { color: #fff; background: var(--blue-bright); border-color: #4a8fd6; }
.btn-blue:hover { background: #2b78cc; }
.btn-outline { color: #fff; border-color: #fff; background: transparent; box-shadow: none; }
.btn-outline:hover { color: var(--navy); background: #fff; }
.btn-sm { min-height: 42px; padding: 9px 22px; border-radius: 8px; font-size: 14px; box-shadow: none; }
.btn-ghost { color: var(--blue); border-color: var(--blue); background: #fff; }
.btn-ghost:hover { color: #fff; background: var(--blue); box-shadow: 0 6px 14px rgba(23,79,145,.3); }
.site-header .btn-blue { border-color: var(--blue-bright); }
@media (max-width: 650px) {
    .home-actions { flex-direction: column; max-width: 360px; margin-right: auto; margin-left: auto; }
    .home-actions .btn { width: 100%; white-space: normal; }
    .btn { width: 100%; }
}

/* Shared header/footer layout for inner pages */
.has-site-chrome { display: flex; flex-direction: column; min-height: 100vh; padding: 0; }
.has-site-chrome > main { flex: 1 0 auto; max-width: calc(100% - 32px); min-height: 0; margin: 40px auto; }
.has-site-chrome.employee-page > main { width: min(1120px, 100%); }
.site-footer-inner.site-footer-compact { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 850px) {
    .site-footer-inner.site-footer-compact { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
    .has-site-chrome > main { max-width: 100%; margin: 0; }
    .has-site-chrome.login-page { background: #f2f6fb; }
    .has-site-chrome .login-shell, .has-site-chrome .form-panel, .has-site-chrome .employee-shell { min-height: 0; }
    .has-site-chrome .mobile-brand { display: none; }
    .has-site-chrome .form-panel { padding-top: 28px; }
}

/* Language switcher */
.site-header-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; overflow: hidden; border: 2px solid var(--blue); border-radius: 8px; }
.lang-switch a { padding: 7px 14px; color: var(--blue); background: #fff; font: 700 13px 'Manrope', sans-serif; text-decoration: none; }
.lang-switch a + a { border-left: 2px solid var(--blue); }
.lang-switch a:hover { background: var(--soft); }
.lang-switch a[aria-current="true"] { color: #fff; background: var(--blue); }
.lang-switch a:focus-visible { outline: 3px solid #7db6f0; outline-offset: 2px; }
html[lang="hi"] body, html[lang="hi"] button, html[lang="hi"] input, html[lang="hi"] .btn, html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3,
html[lang="hi"] .home-eyebrow, html[lang="hi"] .lang-switch a, html[lang="hi"] .primary-button { font-family: 'Noto Sans Devanagari', 'DM Sans', Arial, sans-serif; }
html[lang="hi"] .home-content h2 { letter-spacing: 0; line-height: 1.4; }
@media (max-width: 650px) {
    .lang-switch a { padding: 6px 10px; font-size: 12px; }
}

/* Header responsive layout */
.site-header-right { flex-wrap: nowrap; justify-content: flex-end; }
.site-header-links { justify-content: flex-end; }
.site-header-links .btn { white-space: nowrap; }
.menu-toggle { display: none; width: 42px; height: 38px; padding: 0; border: 2px solid var(--blue); border-radius: 8px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--blue); transition: transform .2s, opacity .2s; }
.site-header.menu-open .menu-toggle { background: var(--blue); }
.site-header.menu-open .menu-toggle span { background: #fff; }
.site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1000px) {
    .site-header-inner { flex-wrap: nowrap; justify-content: space-between; padding: 10px 16px; }
    .site-brand .brand-logo { width: 130px; max-height: 58px; }
    .site-header-right { flex-direction: row; gap: 10px; }
    .menu-toggle { display: inline-flex; }
    .site-header-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 8px; padding: 14px 16px 18px; background: #fff; border-top: 1px solid var(--line); border-bottom: 4px solid var(--blue-bright); box-shadow: 0 14px 24px rgba(14,42,78,.18); }
    .site-header.menu-open .site-header-links { display: flex; }
    .site-header-links .btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 14px; }
}
@media (max-width: 650px) {
    .site-header-inner { justify-content: space-between; }
    .site-brand { flex-direction: row; text-align: left; }
    .site-brand .brand-logo { width: 120px; max-height: 54px; }
}
@media (max-width: 650px) {
    .site-brand { gap: 10px; }
    .site-title { padding-left: 10px; }
    .site-title strong { font-size: 14px; }
    .site-title small { font-size: 11px; }
}
@media (max-width: 400px) {
    .site-brand .brand-logo { width: 80px; }
    .site-title small { display: none; }
}

/* Full-width header/footer on chrome pages */
.has-site-chrome { display: flex; flex-direction: column; align-items: stretch; place-items: unset; }
.has-site-chrome > .site-header, .has-site-chrome > .site-footer { width: 100%; }

/* Form controls */
.field-group { margin-bottom: 20px; }
.field-group label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.field-group small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.input-wrap, .select-wrap { display: flex; align-items: center; overflow: hidden; border: 1.5px solid #cfdbe9; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within, .select-wrap:focus-within { border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(34,105,183,.14); }
.input-wrap input { flex: 1; width: 100%; min-width: 0; height: 49px; padding: 0 14px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.input-wrap input::placeholder { color: #9aa8b8; }
.field-group > input, .field-group > select, .field-group > textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cfdbe9; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.primary-button { width: 100%; margin-top: 6px; }
.text-link { color: var(--blue-bright); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.registration-prompt { margin-top: 20px; font-size: 13px; }
.help-card strong { font-size: 13px; }
.help-card p { font-size: 12px; }


/* Registration: panel spans the full page width */
.has-site-chrome > main.registration-shell { display: block; width: 100%; max-width: none; min-height: 0; margin: 0; flex: 1 0 auto; border: 0; border-radius: 0; box-shadow: none; background: var(--surface); overflow: visible; }
.has-site-chrome > main.registration-shell .registration-panel { width: 100%; min-height: 0; padding: 44px clamp(20px, 5vw, 72px) 40px; }
.registration-panel > * { width: min(760px, 100%); margin-left: auto; margin-right: auto; }
.registration-panel .primary-button { width: min(760px, 100%); }
@media (max-width: 650px) {
    .has-site-chrome > main.registration-shell .registration-panel { padding: 28px 16px 28px; }
    .registration-summary { grid-template-columns: 1fr; }
}

/* Login, help and track pages: panel spans the full page width */
.has-site-chrome > main.login-shell-single { display: block; width: 100%; max-width: none; min-height: 0; margin: 0; flex: 1 0 auto; border: 0; border-radius: 0; box-shadow: none; background: var(--surface); overflow: visible; }
.has-site-chrome > main.login-shell-single .form-panel { width: 100%; min-height: 0; padding: 44px clamp(20px, 5vw, 72px) 40px; }
.login-shell-single .form-panel > * { width: min(760px, 100%); margin-left: auto; margin-right: auto; }
.login-shell-single .primary-button { width: min(760px, 100%); }
@media (max-width: 650px) {
    .has-site-chrome > main.login-shell-single .form-panel { padding: 28px 16px; }
}

/* Professional content band: blue banner with an overlapping white card */
.has-site-chrome > main.login-shell-single, .has-site-chrome > main.registration-shell { background: #f2f6fb; }
.has-site-chrome > main.login-shell-single .form-panel, .has-site-chrome > main.registration-shell .registration-panel {
    padding: 0 clamp(16px, 4vw, 48px) 56px;
    background: linear-gradient(135deg, #0d2b53 0%, #174f91 60%, #2269b7 100%) top / 100% 190px no-repeat, #f2f6fb;
}
.form-panel > *, .registration-panel > *, .login-shell-single .form-panel > * { width: auto; margin-left: 0; margin-right: 0; }
.panel-card { width: min(780px, 100%); margin: 56px auto 0; padding: 38px clamp(22px, 4vw, 48px) 34px; background: #fff; border: 1px solid #dfe8f3; border-top: 5px solid var(--blue-bright); border-radius: 16px; box-shadow: 0 22px 54px rgba(14,42,78,.16); }
.panel-card .form-heading { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-card .primary-button, .login-shell-single .primary-button, .registration-panel .primary-button { width: 100%; }
.panel-card .help-card { margin-top: 26px; }
@media (max-width: 650px) {
    .has-site-chrome > main.login-shell-single .form-panel, .has-site-chrome > main.registration-shell .registration-panel { padding: 0 12px 32px; background-size: 100% 140px; }
    .panel-card { margin-top: 28px; padding: 26px 18px 24px; border-radius: 12px; }
}

/* Laptop/desktop: keep content band contained, not stretched */
.has-site-chrome > main.login-shell-single, .has-site-chrome > main.registration-shell { width: min(1180px, calc(100% - 48px)); max-width: 1180px; margin: 32px auto; border-radius: 18px; overflow: hidden; background: #f2f6fb; box-shadow: 0 16px 44px rgba(14,42,78,.12); }
.has-site-chrome > main.login-shell-single .form-panel, .has-site-chrome > main.registration-shell .registration-panel { padding-bottom: 44px; }
.panel-card { width: min(620px, 100%); margin-top: 44px; }
@media (max-width: 650px) {
    .has-site-chrome > main.login-shell-single, .has-site-chrome > main.registration-shell { width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
}

/* Already-registered / register prompt */
.registration-prompt { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 15px; line-height: 1.6; }
.registration-prompt .text-link { margin-left: 6px; font-size: 15px; font-weight: 800; color: var(--blue-bright); }
.registration-prompt .text-link:hover { color: var(--navy); text-decoration: underline; }

/* Logged-in employee menu (inside the site header) */
.site-logout { display: contents; margin: 0; }
.site-logout .btn { min-width: 0; color: var(--blue-bright); background: #fff; border: 2px solid var(--blue-bright); }
.site-logout .btn:hover { color: #fff; background: var(--blue-bright); }
.site-header-links .btn[aria-current="page"] { background: var(--navy); border-color: var(--navy); }
@media (min-width: 1001px) {
    .site-header-employee .site-header-inner { gap: 14px; }
    .site-header-employee .site-brand { flex: 0 0 auto; gap: 12px; }
    .site-header-employee .site-brand .brand-logo { width: 120px; }
    .site-header-employee .site-title { padding-left: 12px; white-space: nowrap; }
    .site-header-right { gap: 12px; }
    .site-header-links-employee { gap: 6px; }
    .site-header-links-employee .btn { min-height: 38px; padding: 9px 11px; font-size: 13px; }
}
@media (min-width: 1001px) and (max-width: 1180px) {
    .site-header-employee .site-header-inner { flex-wrap: nowrap; padding: 10px 16px; }
    .site-header-employee .site-brand .brand-logo { width: 110px; max-height: 58px; }
    .site-header-employee .menu-toggle { display: inline-flex; }
    .site-header-employee .site-header-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 8px; padding: 14px 16px 18px; background: #fff; border-top: 1px solid var(--line); border-bottom: 4px solid var(--blue-bright); box-shadow: 0 14px 24px rgba(14,42,78,.18); }
    .site-header-employee.menu-open .site-header-links { display: flex; }
    .site-header-employee .site-header-links .btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 14px; }
}
.panel-card.panel-card-wide { width: min(1040px, 100%); }
.panel-card-wide h3 { margin: 26px 0 10px; font-size: 16px; color: #34465c; }

/* ==========================================================================
   Public Nodal Officers Directory Table & Layout
   ========================================================================== */
.has-site-chrome > main.nodal-shell {
    width: min(1220px, calc(100% - 32px));
    max-width: 1220px;
}
.panel-card.nodal-card {
    width: min(1160px, 100%);
    padding: 36px clamp(18px, 3.5vw, 42px) 40px;
}
.nodal-card .form-heading {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.nodal-card .form-heading h2 {
    font: 800 clamp(24px, 3vw, 32px)/1.25 'Manrope', sans-serif;
    color: var(--navy);
    margin: 6px 0 10px;
}
.nodal-card .form-heading p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Table Card Section */
.nodal-table-card {
    margin-bottom: 32px;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(16, 47, 92, .05);
    overflow: hidden;
    transition: box-shadow .15s ease;
}
.nodal-table-card:hover {
    box-shadow: 0 8px 24px rgba(16, 47, 92, .09);
}
.nodal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #f9fbfe 0%, #f3f7fc 100%);
    border-bottom: 1.5px solid #dbe5f2;
}
.nodal-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nodal-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
}
.nodal-icon-hq {
    background: #eaf1fb;
    color: var(--blue);
}
.nodal-icon-area {
    background: #e6f6ee;
    color: #0c7b54;
}
.nodal-section-title {
    margin: 0;
    font: 700 16px/1.3 'Manrope', sans-serif;
    color: var(--navy);
    letter-spacing: -.2px;
}
.nodal-section-desc {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--muted);
}
.nodal-badge-count {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #174f91;
    background: #e6effa;
    border: 1px solid #c9def5;
    border-radius: 999px;
    white-space: nowrap;
}

/* Modern Nodal Table */
.nodal-table-card .table-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbdbee transparent;
}
.nodal-table-card .table-scroll::-webkit-scrollbar {
    height: 6px;
}
.nodal-table-card .table-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.nodal-table-card .table-scroll::-webkit-scrollbar-thumb {
    background-color: #cbdbee;
    border-radius: 4px;
}

.nodal-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 13.5px;
}
.nodal-table thead th {
    padding: 13px 18px;
    font: 700 12px/1.2 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #4b627f;
    background: #f4f8fc;
    border-bottom: 2px solid #d7e3f1;
    white-space: nowrap;
}
.nodal-table tbody td {
    padding: 14px 18px;
    color: var(--ink);
    border-bottom: 1px solid #e7eff7;
    vertical-align: middle;
    background: #fff;
    transition: background-color .15s ease;
}
.nodal-table tbody tr:nth-child(even) td {
    background: #fafcfe;
}
.nodal-table tbody tr:hover td {
    background: #edf5fc;
}
.nodal-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Table Cells Formatting */
.nodal-table th.col-num,
.nodal-table td.col-num {
    width: 54px;
    text-align: center;
    padding-left: 14px;
    padding-right: 14px;
}
.nodal-row-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 12px;
    font-weight: 700;
    color: #43638a;
    background: #ebf2fa;
    border-radius: 50%;
}
.nodal-area-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #114582;
    background: #eaf2fc;
    border: 1px solid #c9dff7;
    border-radius: 999px;
    white-space: nowrap;
}
.nodal-area-badge svg {
    color: #216fc7;
    flex-shrink: 0;
}
.nodal-officer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nodal-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #174f91 0%, #2972c7 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(23, 79, 145, .25);
    flex-shrink: 0;
}
.nodal-officer-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #0d2b53;
    line-height: 1.35;
}
.nodal-designation {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #4a5e76;
    line-height: 1.4;
}

/* Contact Action Buttons */
.nodal-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: transform .12s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.nodal-contact-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}
.nodal-contact-phone {
    color: #0b694b;
    background: #eaf7f2;
    border: 1px solid #c1ebd9;
}
.nodal-contact-phone:hover {
    color: #fff;
    background: #0b7852;
    border-color: #0b7852;
    box-shadow: 0 4px 10px rgba(11, 105, 75, .25);
}
.nodal-contact-email {
    color: #174f91;
    background: #edf5fc;
    border: 1px solid #cfe2f7;
}
.nodal-contact-email:hover {
    color: #fff;
    background: #174f91;
    border-color: #174f91;
    box-shadow: 0 4px 10px rgba(23, 79, 145, .25);
}
.nodal-contact-btn svg {
    flex-shrink: 0;
}
.nodal-empty-val {
    color: #9ab0c7;
    font-size: 15px;
    font-weight: 600;
}

/* Table Empty and Search No Results Row */
.nodal-table tr.nodal-no-data-row td,
.nodal-table tr.nodal-search-empty td {
    padding: 38px 24px;
    text-align: center;
    color: #637790;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
}

/* Responsive Mobile Card View (Zero Horizontal Scroll on Mobile) */
@media (max-width: 768px) {
    .panel-card.nodal-card {
        padding: 22px 12px 28px;
    }
    .nodal-table-card {
        margin-bottom: 20px;
        border-radius: 12px;
    }
    .nodal-section-header {
        padding: 14px 16px;
    }
    .nodal-table-card .table-scroll {
        overflow: visible;
        overflow-x: visible;
    }
    .nodal-table {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
    }
    .nodal-table thead {
        display: none;
    }
    .nodal-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        background: #f4f8fc;
    }
    .nodal-table tbody tr.nodal-data-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 14px 15px;
        background: #fff;
        border: 1px solid #dce6f2;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(16, 47, 92, .04);
    }
    .nodal-table tbody tr.nodal-data-row td {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        background: transparent !important;
        text-align: left;
    }
    .nodal-table tr.nodal-data-row td.col-num {
        display: none;
    }
    .nodal-table tr.nodal-data-row td.col-area {
        margin-bottom: 2px;
    }
    .nodal-table tr.nodal-data-row td.col-area .nodal-area-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
    .nodal-table tr.nodal-data-row td.col-name .nodal-officer-cell {
        gap: 10px;
    }
    .nodal-table tr.nodal-data-row td.col-name .nodal-avatar {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .nodal-table tr.nodal-data-row td.col-name .nodal-officer-name {
        font-size: 15px;
        color: #0d2b53;
    }
    .nodal-table tr.nodal-data-row td.col-desig {
        padding-left: 48px;
        margin-top: -6px;
        margin-bottom: 4px;
    }
    .nodal-table tr.nodal-data-row td.col-desig .nodal-designation {
        font-size: 13px;
        color: #556a82;
    }
    .nodal-table tr.nodal-data-row td.col-phone {
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px dashed #e1eaf4;
    }
    .nodal-table tr.nodal-data-row td.col-phone .nodal-contact-btn,
    .nodal-table tr.nodal-data-row td.col-email .nodal-contact-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 9px 12px;
        font-size: 13px;
        border-radius: 8px;
        min-height: 40px;
        box-sizing: border-box;
    }
    .nodal-table tr.nodal-data-row td.col-phone .nodal-contact-btn span,
    .nodal-table tr.nodal-data-row td.col-email .nodal-contact-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nodal-table tr.nodal-data-row td.col-phone .nodal-empty-val,
    .nodal-table tr.nodal-data-row td.col-email .nodal-empty-val {
        display: none;
    }
    .nodal-table tr.nodal-no-data-row td {
        display: block;
        padding: 24px 16px;
        border: none;
    }
}
@media (max-width: 650px) {
    .has-site-chrome > main.nodal-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    .panel-card.nodal-card {
        padding: 18px 10px 24px;
        margin-top: 16px;
        border-radius: 10px;
    }
}

/* ==========================================================================
   User Manual PDF Viewer & Layout
   ========================================================================== */
.user-manual-shell {
    width: min(1200px, 100%);
    max-width: 100%;
}
.panel-card.user-manual-card {
    width: 100%;
    max-width: 100%;
    padding: 30px;
    box-sizing: border-box;
}
.user-manual-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    text-align: left;
}
.user-manual-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.user-manual-actions .btn {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 14px;
    gap: 8px;
}
.user-manual-viewer-card {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #383c40;
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 24px rgba(13, 43, 83, 0.08);
}
.pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #2a2e33;
    border-bottom: 1px solid #444950;
    color: #e2e8f0;
}
.pdf-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pdf-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #4b525d;
    border-radius: 6px;
    background: #3a4049;
    color: #f1f5f9;
    font: 600 13px 'Manrope', sans-serif;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.pdf-tool-btn:hover:not(:disabled) {
    background: #4a525f;
    border-color: #64748b;
}
.pdf-tool-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.pdf-btn-icon {
    padding: 6px 10px;
}
.pdf-page-indicator {
    font-size: 13px;
    color: #cbd5e1;
    padding: 0 6px;
}
.pdf-page-indicator strong {
    color: #fff;
}
.pdf-zoom-level {
    font-size: 13px;
    font-weight: 700;
    min-width: 44px;
    text-align: center;
    color: #93c5fd;
}
.pdf-stage {
    position: relative;
    width: 100%;
    height: 82vh;
    min-height: 700px;
    overflow-y: auto;
    overflow-x: auto;
    background: #525659;
    padding: 24px 16px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 100px 20px;
    color: #fff;
    font-size: 15px;
}
.pdf-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: pdf-spin 0.8s linear infinite;
}
@keyframes pdf-spin {
    to { transform: rotate(360deg); }
}
.pdf-pages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}
.pdf-page-wrapper {
    display: inline-block;
    max-width: 100%;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}
.pdf-page-canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
}
.pdf-error {
    padding: 60px 24px;
    text-align: center;
    background: #f8fafc;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 500px;
    color: #0d2b53;
}
.pdf-error p {
    font-size: 15px;
    margin: 0 0 16px;
    color: #334155;
}
.pdf-error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .panel-card.user-manual-card {
        padding: 18px 10px;
    }
    .user-manual-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .user-manual-actions {
        width: 100%;
    }
    .user-manual-actions .btn {
        flex: 1;
        justify-content: center;
    }
    .pdf-toolbar {
        justify-content: center;
        gap: 8px;
        padding: 8px 10px;
    }
    .pdf-stage {
        height: 72vh;
        min-height: 480px;
        padding: 14px 6px 24px;
    }
}
