/* Signed-in candidate portal (JobsPortal.Master). Load after css/jobs-auth.css. */
:root { --ja-yellow: #F2C200; }

.ja-header-portal { position: sticky; top: 0; z-index: 50; }
.ja-header-portal .ja-header-inner { padding-top: 8px; padding-bottom: 8px; }
.ja-header-portal .ja-logo { height: 46px; }
.ja-brand { flex: 0 0 auto; display: block; }

.ja-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ja-nav-link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 12px; border-radius: 6px;
    color: var(--ja-text); text-decoration: none; font-size: 14.5px; font-weight: 600;
    white-space: nowrap;
}
.ja-nav-link i { font-size: 16px; color: var(--ja-muted); }
.ja-nav-link:hover, .ja-nav-link:focus { background: #f4f4f2; color: var(--ja-red); outline: none; }
.ja-nav-link:hover i { color: var(--ja-red); }
.ja-nav-link.is-active { color: var(--ja-red); background: #fdf1ec; }
.ja-nav-link.is-active i { color: var(--ja-red); }

.ja-nav-user { display: flex; align-items: center; gap: 8px; margin-left: 10px; padding-left: 12px; border-left: 1px solid #ececec; }
.ja-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--ja-dark-teal); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex: 0 0 auto;
}
.ja-nav-user-email { display: none; font-size: 13px; color: var(--ja-muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ja-nav-signout span { display: none; }

.ja-nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--ja-border); border-radius: 8px;
    background: #fff; color: var(--ja-text); font-size: 22px; cursor: pointer;
    align-items: center; justify-content: center;
}

/* Page body */
.ja-page { flex: 1 0 auto; width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 16px 48px; }
.ja-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ja-page-head h1 { font-size: 28px; font-weight: 300; color: var(--ja-red); margin: 0 0 4px; line-height: 1.25; }
.ja-page-head p { margin: 0; color: var(--ja-muted); }
.ja-page-head .ja-btn { width: auto; }

.ja-panel {
    background: #fff; border-radius: var(--ja-radius);
    box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05);
    padding: 24px; margin-bottom: 24px;
}
.ja-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ja-panel-head h2 { font-size: 18px; font-weight: 600; margin: 0; color: var(--ja-dark-teal); }
.ja-panel-head p { margin: 4px 0 0; color: var(--ja-muted); font-size: 14px; }

.ja-layout-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ja-layout-2 > .ja-panel { margin-bottom: 0; }

/* Application list */
.ja-app-list { list-style: none; margin: 0; padding: 0; }
.ja-app {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 0; border-top: 1px solid #f0f0f0;
}
.ja-app:first-child { border-top: 0; padding-top: 0; }
.ja-app-title { font-weight: 600; margin: 0 0 3px; }
.ja-app-meta { font-size: 13px; color: var(--ja-muted); margin: 0; }
.ja-app-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ja-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
    background: #eef3f4; color: var(--ja-dark-teal);
}
.ja-badge-green { background: #e5f4ea; color: #2d7a4a; }
.ja-badge-yellow { background: #fdf4d6; color: #7a5d00; }
.ja-badge-red { background: #fbe6df; color: #a03a17; }
.ja-badge-grey { background: #f0f0f0; color: #555; }

.ja-empty { text-align: center; padding: 28px 12px; color: var(--ja-muted); }
.ja-empty i { font-size: 34px; color: #d0d0d0; display: block; margin-bottom: 8px; }
.ja-empty .ja-btn { width: auto; margin-top: 14px; }

/* Definition list (contact details) */
.ja-dl { margin: 0; }
.ja-dl dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ja-muted); margin-top: 14px; }
.ja-dl dt:first-child { margin-top: 0; }
.ja-dl dd { margin: 3px 0 0; word-break: break-word; }

/* Category cards (open positions) */
.ja-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ja-cat {
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--ja-radius);
    box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05);
    padding: 24px; border-top: 4px solid var(--ja-red);
    color: inherit; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.ja-cat:hover, .ja-cat:focus { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.09); outline: none; }
.ja-cat h2 { font-size: 19px; font-weight: 600; margin: 0 0 8px; color: var(--ja-text); }
.ja-cat p { margin: 0 0 18px; color: #555; font-size: 15px; flex: 1 0 auto; }
.ja-cat-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ja-red); font-size: 15px; }
.ja-cat-cta i { transition: transform .15s; }
.ja-cat:hover .ja-cat-cta i { transform: translateX(3px); }
.ja-cat.c-teal { border-top-color: var(--ja-teal); }
.ja-cat.c-yellow { border-top-color: var(--ja-yellow); }
.ja-cat.c-green { border-top-color: var(--ja-green); }

/* Forms inside portal panels */
.ja-file {
    display: block; width: 100%; font: inherit; font-size: 15px;
    border: 1px dashed var(--ja-border); border-radius: 6px; padding: 12px; background: #fafafa;
}
.ja-file-current { font-size: 13px; color: #2d7a4a; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.ja-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.ja-actions .ja-btn { width: auto; min-width: 160px; }

/* ---------- Tablet & mobile ---------- */
@media (min-width: 1000px) {
    .ja-nav-user-email { display: inline; }
}
@media (max-width: 860px) {
    .ja-nav-toggle { display: inline-flex; }
    .ja-header-portal .ja-header-inner { flex-wrap: wrap; }
    .ja-nav {
        display: none; flex-direction: column; align-items: stretch;
        width: 100%; margin: 6px 0 4px; gap: 2px;
        border-top: 1px solid #eee; padding-top: 8px;
    }
    .ja-nav.is-open { display: flex; }
    .ja-nav-link { padding: 12px 10px; font-size: 16px; }
    .ja-nav-user { margin: 8px 0 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid #eee; flex-wrap: wrap; }
    .ja-nav-user-email { display: inline; max-width: none; flex: 1 1 auto; }
    .ja-nav-signout span { display: inline; }
    .ja-layout-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    body.ja-portal { background: var(--ja-bg); }
    .ja-header-portal .ja-logo { height: 38px; }
    .ja-page { padding: 20px 16px 32px; }
    .ja-page-head h1 { font-size: 24px; }
    .ja-page-head .ja-btn { width: 100%; }
    .ja-panel { padding: 18px 16px; }
    .ja-cat-grid { grid-template-columns: 1fr; gap: 14px; }
    .ja-cat { padding: 20px 18px; }
    .ja-app { flex-direction: column; align-items: flex-start; }
    .ja-actions .ja-btn { width: 100%; }
}

/* ---------- Open positions list (jobsOpenPositionsList) ---------- */
.ja-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ja-muted); margin-bottom: 10px; flex-wrap: wrap; }
.ja-breadcrumb a { color: var(--ja-dark-teal); font-weight: 600; text-decoration: none; }
.ja-breadcrumb a:hover { color: var(--ja-red); text-decoration: underline; }
.ja-breadcrumb i { font-size: 11px; }
.ja-cat-intro { font-size: 15px; color: #444; }
.ja-cat-intro p:last-child { margin-bottom: 0; }

.ja-chips {
    position: sticky; top: 63px; z-index: 20;
    display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 10px 0; margin: 0 0 8px; background: var(--ja-bg);
    scrollbar-width: thin;
}
.ja-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ja-border); background: #fff;
    color: var(--ja-text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ja-chip:hover, .ja-chip:focus { border-color: var(--ja-red); color: var(--ja-red); outline: none; }
.ja-chip.is-active { background: var(--ja-red); border-color: var(--ja-red); color: #fff; }
.ja-chip-count { font-size: 12px; font-weight: 700; background: rgba(0,0,0,.07); border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }
.ja-chip.is-active .ja-chip-count { background: rgba(255,255,255,.25); }

.ja-job-section { scroll-margin-top: 130px; margin-bottom: 28px; }
.ja-job-section-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ja-dark-teal); margin: 18px 0 12px; }
.ja-job-none { color: var(--ja-muted); font-size: 14.5px; background: #fff; border: 1px dashed #e2e2e2; border-radius: 8px; padding: 14px 16px; margin: 0; }
.ja-job-list { display: grid; gap: 12px; }
.ja-job {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: #fff; border-radius: var(--ja-radius); padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.04);
    border-left: 4px solid var(--ja-red);
}
.ja-job-title { font-size: 16.5px; font-weight: 600; margin: 0; line-height: 1.35; }
.ja-job-meta { margin: 5px 0 0; font-size: 13px; color: var(--ja-muted); display: flex; align-items: center; gap: 6px; }
.ja-job-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.ja-job-actions .ja-btn { width: auto; min-height: 42px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }
.ja-job-actions .ja-btn-secondary { min-height: 42px; }

@media (min-width: 861px) {
    .ja-chips { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 860px) {
    .ja-chips { top: 61px; }
}
@media (max-width: 600px) {
    .ja-chips { top: 55px; margin: 0 -16px 8px; padding: 10px 16px; }
    .ja-job { flex-direction: column; align-items: stretch; padding: 16px; }
    .ja-job-actions .ja-btn { flex: 1 1 0; padding: 8px 10px; font-size: 14.5px; }
}

/* ---------- My applications (jobsapplicationsHistory) ---------- */
button.ja-chip { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ja-chips.ja-chips-static { position: static; flex-wrap: wrap; overflow: visible; background: transparent; padding: 0; margin: 0 0 14px; }
.ja-btn.ja-btn-sm { width: auto; min-height: 36px; padding: 6px 14px; font-size: 14px; }
.ja-app.ja-hidden { display: none; }

/* ---------- Instructions (jobsInstructions) ---------- */
.ja-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ja-step {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border-radius: var(--ja-radius); padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.04);
}
.ja-step-num {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
    background: var(--ja-red); color: #fff; font-weight: 700; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
}
.ja-step h2 { font-size: 17px; font-weight: 600; margin: 4px 0 6px; }
.ja-step p { margin: 0; color: #444; font-size: 15px; }
.ja-note { border-left: 4px solid var(--ja-teal); }
.ja-note h2 { font-size: 17px; font-weight: 600; color: var(--ja-dark-teal); margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.ja-note p { color: #444; margin: 0 0 10px; }
.ja-signoff { font-weight: 600; color: var(--ja-text) !important; margin-bottom: 0 !important; }

@media (max-width: 860px) {
    .ja-steps { grid-template-columns: 1fr; }
}

/* ---------- Public header (signed out) ---------- */
.ja-nav-public { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ja-nav-public .ja-btn { width: auto; min-height: 40px; padding: 7px 16px; font-size: 14.5px; }

/* ---------- Job description page (jobsPage) ---------- */
.ja-jobpage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ja-jobpage > .ja-panel { margin-bottom: 0; }
.ja-jobpage-title { font-size: 28px; font-weight: 300; color: var(--ja-red); margin: 0 0 12px; line-height: 1.25; }
.ja-jobpage-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ja-muted); }
.ja-jobpage-meta li { display: inline-flex; align-items: center; gap: 6px; }
.ja-jobpage-side { position: sticky; top: 84px; }
.ja-jobpage-side .ja-btn { width: 100%; }
.ja-jobpage-side .ja-app-meta { margin-top: 10px; text-align: center; }
.ja-jobpage-side .ja-referral { margin-bottom: 14px; }
.ja-jobpage-deadline { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.ja-jobpage-deadline .ja-label { margin: 0; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ja-muted); }
.ja-jobpage-deadline strong { font-size: 20px; font-weight: 600; color: var(--ja-text); }

/* Admin-written description HTML: one consistent font, readable spacing */
.ja-prose { font-size: 16px; line-height: 1.65; color: #333; overflow-wrap: anywhere; }
.ja-prose * { font-family: 'Open Sans', Arial, sans-serif !important; max-width: 100%; }
.ja-prose span, .ja-prose font, .ja-prose p, .ja-prose div, .ja-prose li, .ja-prose td { font-size: inherit !important; line-height: 1.65 !important; }
.ja-prose p { margin: 0 0 12px; }
.ja-prose [style*="justify"], .ja-prose [align="justify"] { text-align: left !important; }
.ja-prose h1, .ja-prose h2, .ja-prose h3, .ja-prose h4 { color: var(--ja-dark-teal); font-weight: 600; line-height: 1.3; margin: 22px 0 10px; }
.ja-prose h1 { font-size: 22px; } .ja-prose h2 { font-size: 20px; } .ja-prose h3 { font-size: 18px; } .ja-prose h4 { font-size: 16px; }
.ja-prose ul, .ja-prose ol { padding-left: 22px; margin: 0 0 14px; }
.ja-prose li { margin-bottom: 6px; }
.ja-prose a { color: var(--ja-dark-teal); font-weight: 600; }
.ja-prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.ja-prose td, .ja-prose th { border: 1px solid #e5e5e5; padding: 6px 10px; }
.ja-prose img { height: auto; }

.ja-applybar { display: none; }

/* ---------- Application forms (JobsApplicationPage1 / 2V2 / 2V2PTC) ---------- */
.ja-appform { max-width: 860px; margin: 0 auto; }
.ja-step-label { margin: 0 0 4px !important; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ja-dark-teal) !important; }
.ja-appform-dates { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.ja-appform-dates span:empty { display: none; }
.ja-appform-intro p { margin: 0 0 6px; }
.ja-appform-intro p:last-child { margin-bottom: 0; }
.ja-appform-intro a { color: inherit; font-weight: 600; }
.ja-optional { font-weight: 400; color: var(--ja-muted); font-size: 14px; }
.ja-input[readonly] { background: #f6f6f4; color: var(--ja-dark-teal); font-weight: 600; letter-spacing: .04em; cursor: default; }
.ja-submitted i { color: var(--ja-green); }
.ja-submitted h2 { color: var(--ja-text); font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.ja-submitted p { margin: 0; }

.ja-form-section-title {
    font-size: 18px; font-weight: 600; color: var(--ja-dark-teal);
    margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #eee;
    display: flex; align-items: center; gap: 8px;
}
/* Sub-headings inside a section, e.g. "(A) Data Experience" */
.ja-form-section h6 {
    font-size: 13px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ja-red); margin: 26px 0 8px; padding-top: 0 !important; text-align: left;
}
.ja-form-section > p { color: var(--ja-muted); font-size: 14px; margin: 0 0 8px; text-align: left !important; }

/* One question = label + answer */
.ja-form-section .rw1 { display: block; margin: 0 0 20px; }
.ja-form-section .lblcol { float: none; width: 100% !important; padding: 0 0 7px; text-align: left; font-weight: 600; font-size: 15px; color: var(--ja-text); }
.ja-form-section .lblcol label { font-weight: 600; margin: 0; }
.ja-form-section .lblcol div[style*="italic"] {
    font-style: normal !important; font-weight: 400; font-size: 13px !important; color: var(--ja-muted);
    padding: 3px 0 0 !important;
}
.ja-form-section .rw1 > div[style*="italic"] {
    font-style: normal !important; font-size: 13px !important; color: var(--ja-muted); padding: 12px 0 6px !important;
}
.ja-form-section .rw1 > div[style*="padding-left:18px"] { padding-left: 0 !important; }
.ja-form-section div[style*="dimgray"] { font-size: 13px !important; color: var(--ja-muted) !important; margin-top: 6px; }

/* Grids such as languages (Read/Write/Speak) and software (Beginner/…) */
/* Only the plain grid tables in the markup — not the tables DevExpress renders inside its controls */
.ja-form-section .rw1 > div > table:not([class*="dx"]) { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.ja-form-section .rw1 > div > table:not([class*="dx"]) > tbody > tr > th { font-size: 12.5px; font-weight: 700; color: var(--ja-muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 8px 8px !important; text-align: center; }
.ja-form-section .rw1 > div > table:not([class*="dx"]) > tbody > tr > td { padding: 6px 8px !important; border-top: 1px solid #f0f0f0; }
.ja-form-section .rw1 > div > table:not([class*="dx"]) > tbody > tr > td:first-child { font-weight: 600; padding-left: 0 !important; padding-right: 24px !important; }
.ja-form-section .rw1 > div { overflow-x: auto; }

/* ---------- Thank-you page (jobsThankYou) ---------- */
.ja-thanks { max-width: 720px; margin: 0 auto; }
.ja-thanks-hero { text-align: center; padding-top: 32px; padding-bottom: 28px; border-top: 4px solid var(--ja-green); }
.ja-thanks-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
    background: #e5f4ea; color: #2d7a4a; font-size: 34px;
    display: flex; align-items: center; justify-content: center;
}
.ja-thanks-hero h1 { font-size: 28px; font-weight: 300; color: var(--ja-red); margin: 0 0 8px; }
.ja-thanks-job { font-size: 17px; font-weight: 600; color: var(--ja-text); margin: 0 0 4px; }
.ja-thanks-hero p { margin: 0 0 6px; }
.ja-thanks-hero p:last-child { margin: 14px 0 0; color: #444; }
.ja-timeline { list-style: none; margin: 0; padding: 0; }
.ja-timeline li { display: flex; gap: 14px; align-items: flex-start; position: relative; padding: 0 0 18px; }
.ja-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: #f0d6cb; }
.ja-timeline-dot {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
    background: #fff; border: 2px solid var(--ja-red); color: var(--ja-red);
    font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
}
.ja-timeline li div { padding-top: 4px; }
.ja-timeline b { display: block; font-weight: 600; }
.ja-timeline span:not(.ja-timeline-dot) { display: block; font-size: 13.5px; color: var(--ja-muted); }
.ja-thanks-actions { justify-content: center; margin-bottom: 32px; }

/* Free-text "Other" answer under a radio list (PTC Q7) */
.ja-form-section .ja-other-input { margin: 6px 0 0 30px; max-width: 420px; }
.ja-form-section .ja-other-input input[readonly] { background: #f6f6f4 !important; cursor: not-allowed; }
@media (max-width: 600px) { .ja-form-section .ja-other-input { margin-left: 0; max-width: none; } }

/* DevExpress radio-button lists (e.g. Q23 relocation): compact, text right next to its button */
.ja-form-section table.dxeRadioButtonList_Material,
.ja-form-section table[class*="dxeRadioButtonList"] { width: 100% !important; border: 0 !important; }
.ja-form-section table[class*="dxeRadioButtonList"] table { width: 100% !important; }
.ja-form-section table[class*="dxeRadioButtonList"] td { border: 0 !important; padding: 2px 0 !important; font-weight: 400 !important; }
.ja-form-section table[class*="dxeRadioButtonList"] td.dxichCellSys { width: 1% !important; padding-right: 6px !important; }
.ja-form-section table[class*="dxeRadioButtonList"] td.dxichTextCellSys { text-align: left !important; width: 99% !important; padding-right: 8px !important; }
.ja-form-section table[class*="dxeRadioButtonList"] .dxichTextCellSys label,
.ja-form-section table[class*="dxeRadioButtonList"] .dxichTextCellSys span { font-size: 15px; }

/* DevExpress editors: match the portal inputs */
.ja-appform .dxeTextBoxSys, .ja-appform .dxeButtonEditSys, .ja-appform .dxeMemoSys, .ja-appform .dxeSpinEdit_Material {
    border-radius: 6px !important;
}
.ja-appform .dxeTextBoxSys, .ja-appform .dxeButtonEditSys, .ja-appform .dxeMemoSys {
    border: 1px solid var(--ja-border) !important; background: #fff !important; box-shadow: none !important;
}
.ja-appform .dxeFocused_Material, .ja-appform .dxeTextBoxSys.dxeFocused_Material, .ja-appform .dxeButtonEditSys.dxeFocused_Material {
    border-color: var(--ja-red) !important; box-shadow: 0 0 0 3px rgba(227,89,37,.18) !important;
}
.ja-appform input.dxeEditArea_Material, .ja-appform textarea.dxeMemoEditArea_Material, .ja-appform .dxeEditAreaSys {
    font-family: 'Open Sans', Arial, sans-serif !important; font-size: 16px !important; color: var(--ja-text) !important;
}
.ja-appform .dxeErrorCellSys, .ja-appform .dxeErrorFrameSys td.dxeErrorCellSys { color: #b03a2e !important; font-size: 13px !important; }
.ja-appform .dxucControl_Material, .ja-appform .dxucControl_Material table { width: 100% !important; }
.ja-appform .dxucInputs_Material, .ja-appform .dxucDropZone_Material { border-radius: 6px; }

/* Submit button (ASPxButton) */
.ja-appform-submit { margin: 8px 0 40px; }
.ja-appform .ja-dxbtn, .ja-appform .ja-dxbtn.dxbButton_Material {
    background: var(--ja-red) !important; border: 1px solid var(--ja-red) !important; border-radius: 6px !important;
    color: #fff !important; min-width: 220px; min-height: 48px; box-shadow: none !important;
}
.ja-appform .ja-dxbtn:hover { background: var(--ja-red-dark) !important; border-color: var(--ja-red-dark) !important; }
.ja-appform .ja-dxbtn .dxb, .ja-appform .ja-dxbtn .dx-vam {
    font-family: 'Open Sans', Arial, sans-serif !important; font-weight: 600 !important; font-size: 16px !important;
    color: #fff !important; text-transform: none !important; letter-spacing: 0 !important;
}

@media (max-width: 600px) {
    .ja-form-section .rw1 td:first-child { padding-right: 12px !important; }
    .ja-form-section .rw1 th, .ja-form-section .rw1 td { padding-left: 4px !important; padding-right: 4px !important; }
    .ja-appform .ja-dxbtn { width: 100% !important; }
    .ja-appform-submit { margin-bottom: 24px; }
}

@media (max-width: 860px) {
    .ja-jobpage { grid-template-columns: 1fr; }
    .ja-jobpage-side { position: static; order: -1; }
    .ja-jobpage-side .ja-btn, .ja-jobpage-side .ja-app-meta { display: none; }
    .ja-jobpage-side .ja-divider { display: none; }
    .ja-applybar {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    }
    .ja-applybar .ja-btn { width: 100%; }
    body.ja-portal .ja-page:has(.ja-applybar) { padding-bottom: 96px; }
}
@media (max-width: 600px) {
    .ja-jobpage-title { font-size: 23px; }
    .ja-nav-public .ja-btn-secondary { display: none; }
    .ja-prose { font-size: 15.5px; }
}
@media (max-width: 600px) {
    .ja-step { padding: 16px; gap: 12px; }
    .ja-app-right { flex-wrap: wrap; }
}
