/* ============================================================
   PCQMS JOBS MODULE STYLESHEET
   Extracted from the existing PCQMS stylesheet.
   Scope: Candidate CV Builder, CV Bank, CV display/print,
   Jobs community chat, and responsive Jobs layouts.
   Loaded only on /modules/jobs pages by includes/header.php.
   ============================================================ */

/* Lightweight CV builder and CV Bank */

.cv-form-grid {
  display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.cv-form-grid label {
  display: block;
    font-weight: 700;
}

.cv-form-grid input,
.cv-form-grid textarea,
.cv-form-grid select {
  display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font: inherit;
    margin-top: 5px;
    background: #fff;
}

.cv-form-grid small {
  display: block;
    color: #64748b;
    font-weight: 400;
}

.cv-form-grid .wide {
  grid-column: 1/-1;
}

.cv-item-row {
  display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e8edf3;
}

.cv-actions {
  display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.cv-paper {
  max-width: 850px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    padding: 42px 48px;
    box-shadow: 0 5px 24px rgba(20, 40, 70, 0.06);
    color: #202938;
}

.cv-person {
  border-bottom: 2px solid #1d5f91;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.cv-person h1 {
  font-size: 30px;
    color: #175b9b;
    margin: 0;
}

.cv-person p {
  margin: 4px 0;
}

.cv-headline {
  font-weight: 700;
    color: #4b5c70;
}

.cv-section {
  margin: 20px 0;
}

.cv-section h2 {
  font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #174f7b;
    border-bottom: 1px solid #cbd6e3;
    padding-bottom: 6px;
}

.cv-entry {
  margin: 14px 0;
}

.cv-entry h3 {
  font-size: 16px;
    margin: 0 0 3px;
}

.cv-preline {
  white-space: pre-line;
    overflow-wrap: anywhere;
}

.cv-search {
  display: flex;
    gap: 10px;
    margin: 10px 0 24px;
}

.cv-search input {
  flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font: inherit;
}

.cv-bank-list {
  max-width: 850px;
}

.cv-bank-list .panel {
  margin: 12px 0;
}

.cv-bank-list h2 {
  margin: 0 0 4px;
}

.cv-bank-list p {
  margin: 8px 0;
}

/* CV builder v2 — lightweight, responsive section navigation */

.cv-progress {
  margin: 16px 0 20px;
}

.cv-progress-head {
  display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cv-progress-track {
  height: 9px;
    background: #e8eef5;
    border-radius: 20px;
    overflow: hidden;
    margin: 9px 0;
}

.cv-progress-track span {
  display: block;
    height: 100%;
    background: #1672a5;
    border-radius: 20px;
}

.cv-step-nav {
  display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0 12px;
    margin-bottom: 8px;
}

.cv-step-nav .cv-tab {
  appearance: none;
    white-space: nowrap;
    padding: 10px 13px;
    border: 1px solid #d6e0ea;
    border-radius: 9px;
    text-decoration: none;
    background: #fff;
    color: #164e75;
    font: inherit;
    font-weight: 650;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.cv-step-nav .cv-tab:hover {
  border-color: #8fb4d2;
    background: #f3f8fc;
}

.cv-step-nav .cv-tab.is-active,
.cv-step-nav .cv-tab[aria-selected="true"] {
  color: #fff;
    background: #164e75;
    border-color: #164e75;
}

.cv-step-nav .cv-tab:focus-visible {
  outline: 3px solid rgba(22, 114, 165, .25);
    outline-offset: 2px;
}

.cv-step[hidden] {
  display: none !important;
}

.cv-step {
  margin: 8px 0 18px;
}

.cv-step h2 {
  margin-top: 0;
}

.cv-privacy-options {
  display: grid;
    gap: 8px;
    padding: 14px 0;
}

.cv-privacy-options label {
  display: flex;
    gap: 9px;
    align-items: flex-start;
    font-weight: 500;
}

.cv-add-record {
  border: 1px solid #dbe4ed;
    border-radius: 9px;
    padding: 12px 14px;
    margin: 12px 0;
}

.cv-add-record summary {
  cursor: pointer;
    color: #155c88;
    font-weight: 700;
}

.cv-add-record form {
  margin-top: 14px;
}

.cv-expertise-list {
  display: block;
    color: #536477;
    margin-top: 5px;
}

.cv-bank-filters {
  display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
}

.cv-bank-filters label {
  font-size: 13px;
    font-weight: 650;
}

.cv-bank-filters input {
  display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font: inherit;
}

.cv-profile-photo {
  width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d7e0e9;
    display: block;
    margin: 12px 0;
}

.cv-photo-form {
  display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.cv-photo-form label {
  display: grid;
    gap: 7px;
}

.cv-person-with-photo {
  display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.cv-paper-photo {
  width: 112px;
    height: 132px;
    object-fit: cover;
    border: 1px solid #dbe2e9;
    border-radius: 4px;
    order: 2;
}

.cv-person-with-photo > div {
  flex: 1;
}

/* PCQMS community chat and member-directory refinements (append-only) */

.chat-page-head {
  display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin: 24px 0 20px;
    padding: 24px 26px;
    border: 1px solid #dfe8ef;
    border-radius: 16px;
    background: linear-gradient(120deg, #f7fbfd, #edf5f8);
}

.chat-page-head > div:first-child {
  min-width: 0;
}

.chat-page-head h1 {
  margin: 4px 0 7px;
    color: #173b56;
    font-size: clamp(25px, 3vw, 34px);
}

.chat-page-head p:not(.eyebrow) {
  margin: 0;
    color: #687d8d;
    line-height: 1.65;
    font-size: 13px;
}

.chat-room-meta {
  flex: 0 0 140px;
    display: grid;
    gap: 2px;
    padding: 13px 15px;
    border: 1px solid #d8e5eb;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.chat-room-meta strong {
  font-size: 25px;
    color: #176c8d;
}

.chat-room-meta span,
.chat-room-meta small {
  font-size: 10px;
    color: #728594;
}

.chat-room-meta small i {
  display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25a56b;
    margin-right: 5px;
}

.community-chat {
  display: flex;
    flex-direction: column;
    min-height: 540px;
    max-height: calc(100svh - 210px);
    border: 1px solid #dce6ee;
    border-radius: 16px;
    overflow: hidden;
    background: #f6f9fc;
    box-shadow: 0 8px 28px rgba(21, 53, 78, 0.06);
}

.chat-room-bar {
  display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    background: #fff;
    border-bottom: 1px solid #e2eaf0;
}

.chat-room-avatar {
  display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: #e8f2f7;
    color: #176a91;
    font-weight: 850;
}

.chat-room-bar > div:nth-child(2) {
  display: grid;
    gap: 3px;
    min-width: 0;
}

.chat-room-bar strong {
  font-size: 13px;
    color: #1c3b53;
}

.chat-room-bar small {
  font-size: 10px;
    color: #80909e;
}

.chat-room-online {
  margin-left: auto;
    font-size: 10px;
    font-weight: 750;
    color: #21865d;
    white-space: nowrap;
}

.chat-messages {
  flex: 1;
    min-height: 240px;
    overflow: auto;
    padding: 18px clamp(12px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 13px;
    scroll-behavior: smooth;
}

.chat-message {
  display: flex;
    align-items: flex-end;
    gap: 9px;
    max-width: min(780px, 92%);
}

.chat-message.own {
  align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-avatar {
  width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e1edf4;
    color: #226587;
    font-size: 12px;
    font-weight: 800;
}

.chat-bubble {
  min-width: 0;
    padding: 11px 13px;
    border: 1px solid #e0e8ee;
    border-radius: 13px 13px 13px 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 48, 72, 0.035);
}

.chat-message.own .chat-bubble {
  border-color: #d5e9e4;
    background: #eff8f5;
    border-radius: 13px 13px 4px 13px;
}

.chat-message-meta {
  display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chat-message-meta strong {
  font-size: 11px;
    color: #24516d;
}

.chat-message-meta time {
  font-size: 9px;
    color: #91a0ac;
}

.chat-message-text {
  margin: 7px 0 0;
    color: #40586a;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-file-actions {
  display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #e7edf1;
}

.chat-file-name {
  max-width: 100%;
    overflow-wrap: anywhere;
    color: #526a7a;
    font-size: 11px;
}

.chat-file-link {
  display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid #d4e2eb;
    border-radius: 7px;
    background: #fff;
    color: #176b96;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.chat-file-link:hover {
  border-color: #8eb8cf;
    background: #f5fafc;
}

.chat-compose {
  display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 13px;
    background: #fff;
    border-top: 1px solid #e1e9ef;
}

.chat-attach {
  display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border: 1px solid #dce6ed;
    border-radius: 10px;
    color: #286d8f;
    font-size: 23px;
    cursor: pointer;
}

.chat-compose-main {
  flex: 1;
    min-width: 0;
}

.chat-compose textarea {
  display: block;
    width: 100%;
    min-height: 44px;
    max-height: 130px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #d5e0e8;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
}

.chat-compose-main > small {
  display: block;
    margin-top: 4px;
    color: #8b99a5;
    font-size: 9px;
}

.chat-send {
  height: 39px;
    padding: 0 17px;
    border: 0;
    border-radius: 9px;
    background: #176e94;
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.chat-send:disabled {
  opacity: 0.55;
    cursor: wait;
}

.chat-error {
  padding: 0 14px 10px;
    color: #b23e3e;
    font-size: 11px;
    background: #fff;
}

.chat-loading,
.chat-empty {
  margin: auto;
    padding: 25px;
    text-align: center;
    color: #82919d;
    font-size: 13px;
}

.chat-pdf-modal {
  display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    padding: 3vh 3vw;
    background: rgba(9, 24, 37, 0.78);
    align-items: center;
    justify-content: center;
}

.chat-pdf-modal.is-open {
  display: flex;
}

.chat-pdf-dialog {
  display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    height: min(92vh, 900px);
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}

.chat-pdf-dialog header {
  display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    border-bottom: 1px solid #e3eaf0;
}

.chat-pdf-title {
  min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1e3c52;
    font-size: 13px;
}

.chat-pdf-dialog header > div {
  display: flex;
    align-items: center;
    gap: 10px;
}

.chat-pdf-download {
  font-size: 11px;
    font-weight: 750;
    color: #176c94;
    text-decoration: none;
}

.chat-pdf-close {
  width: 32px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    background: #edf2f5;
    color: #344e60;
    font-size: 22px;
    cursor: pointer;
}

.chat-pdf-dialog iframe {
  width: 100%;
    height: 100%;
    flex: 1;
    border: 0;
    background: #e7edf1;
}

.chat-file-link:focus-visible {
  outline: 3px solid rgba(30, 117, 164, 0.3);
    outline-offset: 2px;
}

@media (max-width: 760px) {
  .cv-bank-filters {
    grid-template-columns: 1fr;
  }
  .cv-person-with-photo {
    gap: 12px;
  }
  .cv-paper-photo {
    width: 84px;
        height: 100px;
  }
  .chat-page-head {
    align-items: flex-start;
        padding: 18px;
        flex-direction: column;
  }
  .chat-room-meta {
    width: 100%;
        grid-template-columns: auto 1fr;
        align-items: center;
        text-align: left;
  }
  .chat-room-meta strong {
    grid-row: span 2;
  }
  .community-chat {
    min-height: 500px;
        max-height: calc(100svh - 190px);
  }
  .chat-message {
    max-width: 98%;
  }
  .chat-compose {
    gap: 7px;
        padding: 9px;
  }
  .chat-send {
    padding: 0 12px;
  }
  .chat-pdf-modal {
    padding: 0;
  }
  .chat-pdf-dialog {
    height: 100svh;
        border-radius: 0;
  }
}

@media (max-width: 620px) {
  .cv-form-grid {
    grid-template-columns: 1fr;
  }
  .cv-form-grid .wide {
    grid-column: auto;
  }
  .cv-paper {
    padding: 24px 18px;
  }
  .cv-search {
    flex-direction: column;
  }
  .cv-item-row {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .chat-room-bar {
    padding: 10px;
  }
  .chat-room-online {
    font-size: 9px;
  }
  .chat-message-avatar {
    width: 27px;
        height: 27px;
        flex-basis: 27px;
  }
  .chat-bubble {
    padding: 9px 10px;
  }
  .chat-compose-main > small {
    font-size: 8px;
  }
}

@media print {
  .cv-actions {
    display: none !important;
  }
  .cv-paper {
    max-width: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 8mm 10mm;
  }
  .cv-section {
    break-inside: avoid;
  }
  .cv-entry {
    break-inside: avoid;
  }
  .cv-progress {
    display: none !important;
  }
}

/* =========================================================
   PCQMS JOBS CHAT V2 — fixed chat workspace, sticky room bar,
   per-message unread tracking and jump-to-latest control.
   Append to assets/css/pcqms.css. Scoped to page-jobs-chat.
   ========================================================= */

body.page-jobs-chat {
  height:100dvh;overflow:hidden
}

body.page-jobs-chat .container {
  height:calc(100dvh - 74px);min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-top:8px;padding-bottom:8px
}

body.page-jobs-chat .site-footer {
  display:none
}

body.page-jobs-chat .chat-page-head {
  flex:0 0 auto;margin:5px 0 10px;padding:12px 18px;flex-direction:row;align-items:center;border-radius:14px
}

body.page-jobs-chat .chat-page-head h1 {
  font-size:clamp(20px,2.4vw,27px);margin:2px 0 4px
}

body.page-jobs-chat .chat-page-head p:not(.eyebrow) {
  font-size:12px
}

body.page-jobs-chat .chat-room-meta {
  width:auto;flex:0 0 150px;grid-template-columns:auto 1fr;text-align:left
}

body.page-jobs-chat .community-chat {
  position:relative;flex:1 1 auto;min-height:0;height:auto;max-height:none;overflow:hidden;border-radius:18px;box-shadow:0 12px 34px rgba(18,49,77,.09)
}

body.page-jobs-chat .chat-room-bar {
  position:sticky;top:0;z-index:5;min-height:76px;padding:14px 20px;gap:14px;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);box-shadow:0 1px 0 rgba(25,61,92,.07)
}

body.page-jobs-chat .chat-room-avatar {
  width:48px;height:48px;flex-basis:48px;font-size:15px
}

body.page-jobs-chat .chat-room-title {
  display:grid;gap:4px;min-width:0
}

body.page-jobs-chat .chat-room-title strong {
  font-size:15px;color:#173b56
}

body.page-jobs-chat .chat-room-title small {
  font-size:12px;color:#718398
}

body.page-jobs-chat .chat-room-status {
  margin-left:auto;display:flex;align-items:center;gap:7px;color:#16835d;font-size:12px;font-weight:750;white-space:nowrap
}

body.page-jobs-chat .chat-room-status i {
  width:8px;height:8px;border-radius:50%;background:#20aa72;box-shadow:0 0 0 4px rgba(32,170,114,.12)
}

body.page-jobs-chat .chat-unread-indicator {
  padding:7px 11px;border:1px solid #dce7ef;border-radius:999px;background:#f7fafc;color:#718398;font-size:11px;font-weight:750;white-space:nowrap
}

body.page-jobs-chat .chat-unread-indicator span {
  font-variant-numeric:tabular-nums
}

body.page-jobs-chat .chat-unread-indicator.has-unread {
  border-color:#f3d3a0;background:#fff7e9;color:#a65b08
}

body.page-jobs-chat .chat-toolbar {
  display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:5px 18px;background:#f9fbfd;border-bottom:1px solid #e8eef3
}

body.page-jobs-chat #chatReadHint {
  font-size:10px;color:#8291a0
}

body.page-jobs-chat .chat-tool-button {
  border:0;background:transparent;color:#176d9d;font-size:11px;font-weight:750;cursor:pointer
}

body.page-jobs-chat .chat-messages {
  flex:1 1 auto;min-height:0;max-height:none;padding:20px clamp(14px,3vw,42px);gap:15px;background:linear-gradient(180deg,#f7fafd,#f3f7fb);overscroll-behavior:contain
}

body.page-jobs-chat .chat-message {
  max-width:min(850px,88%);gap:10px;scroll-margin-top:12px
}

body.page-jobs-chat .chat-message-avatar {
  width:36px;height:36px;flex-basis:36px;font-size:13px
}

body.page-jobs-chat .chat-bubble {
  padding:13px 16px;border-radius:15px 15px 15px 5px;box-shadow:0 4px 14px rgba(20,48,72,.045)
}

body.page-jobs-chat .chat-message.own .chat-bubble {
  border-radius:15px 15px 5px 15px
}

body.page-jobs-chat .chat-message-meta strong {
  font-size:12px
}

body.page-jobs-chat .chat-message-meta time {
  font-size:10px
}

body.page-jobs-chat .chat-message-text {
  font-size:14px;line-height:1.7
}

body.page-jobs-chat .chat-message.is-unread .chat-bubble {
  border-color:#e9bd70;box-shadow:0 0 0 2px rgba(231,171,70,.12),0 4px 14px rgba(20,48,72,.04)
}

body.page-jobs-chat .chat-unread-tag {
  display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#fff1d9;color:#9a5a08;font-size:9px;font-weight:800
}

body.page-jobs-chat .chat-jump-bottom {
  position:absolute;z-index:7;right:22px;bottom:100px;display:flex;align-items:center;gap:9px;padding:10px 15px;border:1px solid #cfe0ec;border-radius:999px;background:#fff;color:#176b9b;box-shadow:0 8px 25px rgba(19,57,88,.16);cursor:pointer
}

body.page-jobs-chat .chat-jump-bottom[hidden],
body.page-jobs-chat .chat-tool-button[hidden] {
  display:none
}

body.page-jobs-chat .chat-jump-bottom span {
  display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e9f3fa;font-size:17px
}

body.page-jobs-chat .chat-jump-bottom b {
  font-size:11px
}

body.page-jobs-chat .chat-compose {
  position:relative;z-index:4;flex:0 0 auto;align-items:flex-end;padding:13px 16px;background:#fff;box-shadow:0 -5px 18px rgba(24,54,80,.035)
}

body.page-jobs-chat .chat-compose textarea {
  min-height:48px;max-height:130px;padding:12px 14px;border-radius:13px;font-size:14px
}

body.page-jobs-chat .chat-attach {
  width:44px;height:44px;flex-basis:44px;border-radius:12px;background:#f7fafc
}

body.page-jobs-chat .chat-send {
  height:44px;padding:0 20px;border-radius:12px;background:linear-gradient(135deg,#1675ad,#155d91);box-shadow:0 5px 13px rgba(23,105,157,.18)
}

body.page-jobs-chat .chat-error {
  flex:0 0 auto;padding:0 16px 8px
}

body.page-jobs-chat .chat-empty {
  margin:auto
}

@media (max-width:760px) {
  body.page-jobs-chat {
    height:100dvh
  }
  body.page-jobs-chat .container {
    height:calc(100dvh - 62px);padding:5px 10px
  }
  body.page-jobs-chat .chat-page-head {
    display:none
  }
  body.page-jobs-chat .chat-room-bar {
    min-height:66px;padding:10px 12px;gap:9px
  }
  body.page-jobs-chat .chat-room-avatar {
    width:40px;height:40px;flex-basis:40px
  }
  body.page-jobs-chat .chat-room-title strong {
    font-size:12px
  }
  body.page-jobs-chat .chat-room-title small {
    font-size:10px
  }
  body.page-jobs-chat .chat-room-status {
    font-size:0
  }
  body.page-jobs-chat .chat-room-status i {
    width:9px;height:9px
  }
  body.page-jobs-chat .chat-unread-indicator {
    padding:6px 8px;font-size:10px
  }
  body.page-jobs-chat .chat-toolbar {
    padding:4px 12px
  }
  body.page-jobs-chat .chat-messages {
    padding:13px 10px
  }
  body.page-jobs-chat .chat-message {
    max-width:96%
  }
  body.page-jobs-chat .chat-bubble {
    padding:10px 12px
  }
  body.page-jobs-chat .chat-compose {
    padding:9px;gap:7px
  }
  body.page-jobs-chat .chat-send {
    padding:0 12px
  }
  body.page-jobs-chat .chat-jump-bottom {
    right:12px;bottom:91px
  }
}

@media (max-height:620px) {
  body.page-jobs-chat .chat-page-head {
    display:none
  }
  body.page-jobs-chat .container {
    height:calc(100dvh - 74px)
  }
}

/* =========================================================
   PCQMS JOBS CHAT V3 — conversation-first layout polish
   Append AFTER the existing V2 chat CSS in pcqms.css.
   Scoped to body.page-jobs-chat; no global component changes.
   ========================================================= */

body.page-jobs-chat {
  height:100dvh;min-height:0;overflow:hidden;background:#f2f6fa
}

body.page-jobs-chat .container {
  width:100%;max-width:none;height:calc(100dvh - 104px);min-height:0;
  margin:0;padding:8px clamp(8px,1.5vw,24px) 10px;
  display:flex;flex-direction:column;overflow:hidden
}

body.page-jobs-chat .chat-page-head {
  display:none!important
}

body.page-jobs-chat .community-chat {
  position:relative;display:flex;flex:1 1 auto;flex-direction:column;
  width:100%;min-width:0;min-height:0;height:100%;max-height:none;
  overflow:hidden;border:1px solid #dce7f0;border-radius:20px;
  background:#fff;box-shadow:0 12px 38px rgba(23,55,82,.075)
}

body.page-jobs-chat .chat-room-bar {
  position:relative;top:auto;z-index:10;flex:0 0 auto;min-height:62px;
  padding:9px clamp(12px,2vw,24px);gap:12px;
  background:rgba(255,255,255,.98);border-bottom:1px solid #e7edf3;
  box-shadow:0 2px 10px rgba(22,52,78,.035);backdrop-filter:blur(14px)
}

body.page-jobs-chat .chat-room-avatar {
  width:42px;height:42px;flex:0 0 42px;font-size:14px
}

body.page-jobs-chat .chat-room-title {
  display:grid;gap:2px;min-width:0
}

body.page-jobs-chat .chat-room-title strong {
  font-size:15px;line-height:1.25;color:#173b56
}

body.page-jobs-chat .chat-room-title small {
  font-size:11px;line-height:1.3;color:#718398
}

body.page-jobs-chat .chat-room-status {
  margin-left:auto;font-size:11px
}

body.page-jobs-chat .chat-unread-indicator {
  padding:6px 10px;font-size:10px
}

body.page-jobs-chat .chat-toolbar {
  position:relative;z-index:3;flex:0 0 auto;min-height:29px;
  padding:3px 16px;background:#fbfdff;border-bottom:1px solid #edf1f5
}

body.page-jobs-chat #chatReadHint {
  font-size:10px;color:#8191a1
}

body.page-jobs-chat .chat-tool-button {
  font-size:10px;padding:3px 0
}

body.page-jobs-chat .chat-messages {
  display:flex;flex:1 1 auto;flex-direction:column;min-height:0;height:auto;
  max-height:none;overflow-y:auto;overflow-x:hidden;
  padding:clamp(14px,2.2vh,24px) clamp(12px,4vw,64px);
  gap:clamp(10px,1.7vh,17px);
  background:radial-gradient(ellipse at top,#f9fcff 0%,#f3f7fb 70%);
  overscroll-behavior:contain;scrollbar-gutter:stable
}

body.page-jobs-chat .chat-message {
  width:fit-content;max-width:min(760px,82%);gap:9px
}

body.page-jobs-chat .chat-message.own {
  margin-left:auto
}

body.page-jobs-chat .chat-message-avatar {
  width:32px;height:32px;flex:0 0 32px;font-size:12px
}

body.page-jobs-chat .chat-bubble {
  max-width:100%;padding:11px 14px;border:1px solid #e0e9f1;
  border-radius:15px 15px 15px 5px;background:#fff;
  box-shadow:0 3px 12px rgba(20,48,72,.035)
}

body.page-jobs-chat .chat-message.own .chat-bubble {
  border-color:#d2e9e1;border-radius:15px 15px 5px 15px;background:#edf8f4
}

body.page-jobs-chat .chat-message-meta {
  display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin-bottom:5px
}

body.page-jobs-chat .chat-message-meta strong {
  font-size:11px;color:#234a68
}

body.page-jobs-chat .chat-message-meta time {
  font-size:10px;color:#91a0af
}

body.page-jobs-chat .chat-message-text {
  margin:0;font-size:14px;line-height:1.6;color:#3f5b73;overflow-wrap:anywhere
}

body.page-jobs-chat .chat-file-actions {
  display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px;padding-top:9px;border-top:1px solid rgba(80,115,140,.12)
}

body.page-jobs-chat .chat-file-name {
  min-width:0;max-width:100%;font-size:11px;overflow-wrap:anywhere
}

body.page-jobs-chat .chat-file-link {
  min-height:32px;padding:6px 10px;border-radius:9px;font-size:10px
}

body.page-jobs-chat .chat-message.is-unread .chat-bubble {
  border-color:#e8c47f;box-shadow:0 0 0 2px rgba(231,171,70,.1)
}

body.page-jobs-chat .chat-compose {
  position:relative;z-index:5;display:flex;flex:0 0 auto;align-items:flex-end;
  gap:9px;padding:9px clamp(10px,2vw,22px) 10px;
  background:rgba(255,255,255,.985);border-top:1px solid #e6edf3;
  box-shadow:0 -4px 15px rgba(24,54,80,.025)
}

body.page-jobs-chat .chat-compose-main {
  flex:1 1 auto;min-width:0
}

body.page-jobs-chat .chat-compose textarea {
  display:block;width:100%;min-height:44px;max-height:112px;resize:vertical;
  padding:10px 13px;border:1px solid #d5e1ec;border-radius:12px;
  background:#fbfdff;font-size:13px;line-height:1.45
}

body.page-jobs-chat .chat-compose textarea:focus {
  outline:0;border-color:#6ba5ce;box-shadow:0 0 0 3px rgba(39,121,179,.1)
}

body.page-jobs-chat .chat-compose-main>small {
  display:block;margin:4px 2px 0;font-size:9px;color:#91a0af
}

body.page-jobs-chat .chat-attach {
  width:40px;height:40px;flex:0 0 40px;border:1px solid #dce7f0;border-radius:11px;font-size:21px
}

body.page-jobs-chat .chat-send {
  height:42px;min-width:82px;padding:0 16px;border-radius:11px;font-size:12px;box-shadow:0 4px 12px rgba(23,105,157,.14)
}

body.page-jobs-chat .chat-error {
  flex:0 0 auto;padding:0 14px 6px;font-size:11px
}

body.page-jobs-chat .chat-jump-bottom {
  right:20px;bottom:86px;padding:8px 12px
}

body.page-jobs-chat .chat-jump-bottom b {
  font-size:10px
}

body.page-jobs-chat .chat-messages::-webkit-scrollbar {
  width:9px
}

body.page-jobs-chat .chat-messages::-webkit-scrollbar-thumb {
  border:2px solid transparent;border-radius:20px;background:#c7d4df;background-clip:padding-box
}

body.page-jobs-chat .chat-messages::-webkit-scrollbar-track {
  background:transparent
}

body.page-jobs-chat .chat-jump-bottom:focus-visible,
body.page-jobs-chat .chat-tool-button:focus-visible,
body.page-jobs-chat .chat-send:focus-visible,
body.page-jobs-chat .chat-attach:focus-visible {
  outline:3px solid rgba(34,119,180,.25);outline-offset:2px
}

@media (max-width:760px) {
  body.page-jobs-chat .container {
    height:calc(100dvh - 66px);padding:4px 6px 6px
  }
  body.page-jobs-chat .community-chat {
    border-radius:14px
  }
  body.page-jobs-chat .chat-room-bar {
    min-height:56px;padding:7px 9px;gap:8px
  }
  body.page-jobs-chat .chat-room-avatar {
    width:36px;height:36px;flex-basis:36px
  }
  body.page-jobs-chat .chat-room-title small {
    font-size:9px
  }
  body.page-jobs-chat .chat-unread-indicator {
    padding:5px 7px;font-size:9px
  }
  body.page-jobs-chat .chat-toolbar {
    min-height:25px;padding:2px 10px
  }
  body.page-jobs-chat .chat-messages {
    padding:12px 8px;gap:11px
  }
  body.page-jobs-chat .chat-message {
    max-width:94%
  }
  body.page-jobs-chat .chat-bubble {
    padding:9px 11px
  }
  body.page-jobs-chat .chat-message-text {
    font-size:13px
  }
  body.page-jobs-chat .chat-compose {
    gap:6px;padding:7px
  }
  body.page-jobs-chat .chat-compose textarea {
    min-height:42px;padding:9px 10px;font-size:12px
  }
  body.page-jobs-chat .chat-attach {
    width:36px;height:36px;flex-basis:36px
  }
  body.page-jobs-chat .chat-send {
    height:38px;min-width:60px;padding:0 10px;font-size:11px
  }
  body.page-jobs-chat .chat-compose-main>small {
    font-size:8px
  }
  body.page-jobs-chat .chat-jump-bottom {
    right:10px;bottom:75px
  }
}

@media (max-height:560px) and (min-width:761px) {
  body.page-jobs-chat .container {
    height:calc(100dvh - 80px)
  }
  body.page-jobs-chat .chat-room-bar {
    min-height:52px;padding:5px 14px
  }
  body.page-jobs-chat .chat-toolbar {
    min-height:23px
  }
  body.page-jobs-chat .chat-compose {
    padding:6px 12px
  }
  body.page-jobs-chat .chat-compose textarea {
    min-height:38px;max-height:78px
  }
}

/* CV Builder step-by-step workflow */
.cv-next-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 9px;
    font-weight: 700;
}
.cv-next-button span { font-size: 1.15em; line-height: 1; }
.cv-step-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e5edf5;
    margin-top: 24px;
    padding-top: 18px;
}
.cv-record-groups { display: grid; gap: 18px; }
.cv-record-groups > div { min-width: 0; }
.cv-record-groups h3 { margin: 18px 0 8px; color: #173a5e; }
.cv-record-groups .cv-add-record { margin-top: 8px; }
.cv-finalize-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #d6e5f2;
    border-radius: 12px;
    background: #f6faff;
}
.cv-finalize-form p { margin: 0; }
.cv-finalize-form .cv-next-button { min-width: 230px; }
.cv-step .cv-add-record form { padding-bottom: 4px; }
@media (max-width: 640px) {
    .cv-step-actions { justify-content: stretch; }
    .cv-step-actions .cv-next-button,
    .cv-finalize-form .cv-next-button { width: 100%; }
    .cv-finalize-form { padding: 15px; }
}

/* ============================================================
   PCQMS JOBS — COMPACT WORKSPACE OVERRIDES (v2)
   Inspired by compact ERP data-entry screens: short headings,
   dense multi-column forms, restrained spacing and clear groups.
   Scoped to Jobs pages so the rest of PCQMS is unaffected.
   ============================================================ */
body.jobs-area { --jobs-ink:#18344d; --jobs-muted:#60758a; --jobs-line:#cbd8e3; --jobs-teal:#176c72; --jobs-blue:#175b86; }
body.jobs-area main, body.jobs-area .main-content, body.jobs-area .content, body.jobs-area .container { min-width:0; }
body.jobs-area .page-heading { margin: 8px 0 12px !important; padding: 0 !important; min-height:0 !important; }
body.jobs-area .page-heading .eyebrow { margin:0 0 3px !important; font-size:10px !important; letter-spacing:.12em; }
body.jobs-area .page-heading h1 { margin:0 0 4px !important; font-size:21px !important; line-height:1.2 !important; }
body.jobs-area .page-heading p:not(.eyebrow) { margin:0 !important; max-width:100%; font-size:12px !important; line-height:1.4 !important; color:var(--jobs-muted); }
body.jobs-area .panel { padding:12px 14px !important; margin:0 0 10px !important; border-radius:8px !important; box-shadow:none !important; }
body.jobs-area .panel h2 { margin:0 0 8px !important; font-size:17px !important; line-height:1.25; }
body.jobs-area .panel h3 { margin:10px 0 6px !important; font-size:14px !important; }
body.jobs-area .muted { font-size:12px; }
body.jobs-area .btn, body.jobs-area button.btn { min-height:32px; padding:6px 12px !important; border-radius:5px !important; font-size:12px !important; }
body.jobs-area input:not([type=checkbox]):not([type=radio]):not([type=file]),
body.jobs-area select, body.jobs-area textarea { min-height:30px; padding:5px 8px !important; border-radius:5px !important; font-size:12px !important; }
body.jobs-area textarea { min-height:58px; }
body.jobs-area label { font-size:12px; line-height:1.3; }
body.jobs-area label small, body.jobs-area .help-text { font-size:10px; line-height:1.25; }

/* CV builder: reclaim the large hero area and keep progress compact. */
body.jobs-area .page-heading:has(+ .cv-progress) { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
body.jobs-area .page-heading:has(+ .cv-progress) h1 { font-size:20px !important; }
body.jobs-area .page-heading:has(+ .cv-progress) p:not(.eyebrow) { max-width:620px; }
body.jobs-area .cv-progress { padding:8px 12px !important; margin:0 0 8px !important; display:grid; grid-template-columns:auto minmax(100px,1fr) auto; align-items:center; gap:8px 12px; }
body.jobs-area .cv-progress-head { display:contents; }
body.jobs-area .cv-progress-head strong:first-child { font-size:11px; white-space:nowrap; }
body.jobs-area .cv-progress-head strong:last-child { grid-column:3; grid-row:1; font-size:11px; }
body.jobs-area .cv-progress-track { grid-column:2; grid-row:1; height:7px; margin:0 !important; }
body.jobs-area .cv-progress > small { grid-column:1/-1; margin:0; font-size:10px; line-height:1.2; }
body.jobs-area .cv-step-nav { position:sticky; top:0; z-index:20; display:flex; gap:5px !important; flex-wrap:wrap; padding:5px 0 8px !important; margin:0 0 5px !important; background:rgba(244,248,251,.96); backdrop-filter:blur(8px); }
body.jobs-area .cv-step-nav .cv-tab { min-height:30px; padding:5px 10px !important; border:1px solid var(--jobs-line) !important; border-radius:5px !important; font-size:11px !important; line-height:1.2; white-space:nowrap; }
body.jobs-area .cv-step { padding:12px 14px !important; margin-bottom:10px !important; }
body.jobs-area .cv-step > h2 { margin:0 0 4px !important; font-size:17px !important; }
body.jobs-area .cv-step > .muted { margin:0 0 9px !important; font-size:11px; }
body.jobs-area .cv-form-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:8px 12px !important; }
body.jobs-area .cv-form-grid label { min-width:0; font-size:11px; }
body.jobs-area .cv-form-grid input,
body.jobs-area .cv-form-grid select { height:30px; min-height:30px; margin-top:3px !important; padding:4px 7px !important; font-size:11px !important; }
body.jobs-area .cv-form-grid textarea { min-height:52px; margin-top:3px !important; padding:5px 7px !important; font-size:11px !important; }
body.jobs-area .cv-form-grid .wide { grid-column:span 2; }
body.jobs-area .cv-form-grid .wide:has(textarea[name=professional_summary]),
body.jobs-area .cv-form-grid .wide:has(textarea[name=career_objective]),
body.jobs-area .cv-form-grid .wide:has(textarea[name=special_qualification]) { grid-column:1/-1; }
body.jobs-area .cv-form-grid small { margin-top:2px; font-size:9px; }
body.jobs-area .cv-next-button, body.jobs-area .cv-step-actions .btn { min-height:32px; margin-top:8px; padding:6px 13px !important; font-size:11px !important; }
body.jobs-area .cv-privacy-options { display:flex; flex-wrap:wrap; gap:8px 18px; margin:8px 0; }
body.jobs-area .cv-privacy-options label { font-size:11px; }
body.jobs-area .cv-record-groups { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px !important; }
body.jobs-area .cv-record-groups > div { padding:8px; border:1px solid #d6e0e8; border-radius:6px; background:#fbfdfe; }
body.jobs-area .cv-record-groups h3 { margin:0 0 6px !important; padding-bottom:5px; border-bottom:1px solid #dce5ec; font-size:12px !important; }
body.jobs-area .cv-add-record, body.jobs-area .cv-add-record form { margin-top:5px !important; }
body.jobs-area .cv-item-row { padding:6px 0 !important; gap:8px; font-size:11px; }
body.jobs-area .cv-actions { gap:6px; margin:8px 0 !important; }

/* All other Jobs screens: compact search, lists, cards and chat workspace. */
body.jobs-area .cv-search, body.jobs-area .cv-bank-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 10px; align-items:end; padding:10px 12px; margin:0 0 10px; border:1px solid var(--jobs-line); border-radius:8px; background:#fff; }
body.jobs-area .cv-search label, body.jobs-area .cv-bank-filters label { font-size:11px; }
body.jobs-area .cv-bank-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
body.jobs-area .cv-bank-list .panel { margin:0 !important; padding:10px 12px !important; }
body.jobs-area .cv-bank-list h2 { font-size:15px !important; margin:0 0 4px !important; }
body.jobs-area .cv-bank-list p { margin:4px 0; font-size:11px; }
body.jobs-area .cv-paper { margin:10px auto; padding:24px 28px; border-radius:6px; box-shadow:none; }
body.jobs-area .chat-page-head { margin:6px 0 10px !important; }
body.jobs-area .chat-page-head h1 { font-size:20px !important; }
body.jobs-area .chat-page-head p:not(.eyebrow) { font-size:11px !important; }
body.jobs-area .chat-room-bar { min-height:48px; padding:7px 10px; }
body.jobs-area .chat-messages { padding:10px; }
body.jobs-area .chat-compose { padding:8px; gap:7px; }
body.jobs-area .chat-compose textarea { min-height:36px; }
body.jobs-area .notice { padding:8px 10px; margin:8px 0; font-size:11px; }

@media (max-width: 900px) {
  body.jobs-area .cv-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.jobs-area .cv-record-groups { grid-template-columns:1fr !important; }
  body.jobs-area .cv-bank-list { grid-template-columns:1fr; }
  body.jobs-area .cv-search, body.jobs-area .cv-bank-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  body.jobs-area .page-heading:has(+ .cv-progress) { display:block; }
  body.jobs-area .cv-progress { grid-template-columns:auto 1fr auto; }
  body.jobs-area .cv-step-nav { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.jobs-area .cv-step-nav .cv-tab { white-space:normal; text-align:left; }
  body.jobs-area .cv-form-grid { grid-template-columns:1fr !important; }
  body.jobs-area .cv-form-grid .wide { grid-column:1/-1; }
  body.jobs-area .cv-search, body.jobs-area .cv-bank-filters { grid-template-columns:1fr; }
  body.jobs-area .cv-step { padding:10px !important; }
}


/* PCQMS Jobs Candidate CV Builder — Milestone 2 */
.jobs-cv-builder .jcv-shell{max-width:1180px;margin:12px auto 32px;padding:0 14px;color:var(--text,#263445)}
.jobs-cv-builder .jcv-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid var(--border,#dce3ea)}
.jobs-cv-builder .jcv-kicker{font-size:11px;font-weight:800;letter-spacing:.09em;color:#a52a63;margin-bottom:3px}
.jobs-cv-builder .jcv-heading h1{font-size:25px;line-height:1.2;margin:0 0 4px;font-weight:750}
.jobs-cv-builder .jcv-heading p{margin:0;color:var(--muted,#697586);font-size:13px}
.jobs-cv-builder .jcv-preview{white-space:nowrap;text-decoration:none;border:1px solid #d9a2bd;color:#8d2456;background:#fff7fb;padding:8px 12px;border-radius:7px;font-size:13px;font-weight:700}
.jobs-cv-builder .jcv-progress{background:#fff;border:1px solid var(--border,#dce3ea);border-radius:9px;padding:10px 13px;margin-bottom:12px}
.jobs-cv-builder .jcv-progress>div:first-child{display:flex;justify-content:space-between;font-size:13px;margin-bottom:7px}
.jobs-cv-builder .jcv-progress b{color:#a52a63}.jobs-cv-builder .jcv-progress-track{height:6px;border-radius:20px;background:#edf0f4;overflow:hidden}.jobs-cv-builder .jcv-progress-track span{display:block;height:100%;background:#bd4d83;border-radius:20px}
.jobs-cv-builder .jcv-main-tabs{display:flex;gap:4px;overflow-x:auto;padding:5px;background:#f3f5f8;border:1px solid #dfe4ea;border-radius:9px;margin-bottom:10px;scrollbar-width:thin}
.jobs-cv-builder .jcv-main-tabs button,.jobs-cv-builder .jcv-subtabs button{border:0;background:transparent;color:#526071;font-family:inherit;font-weight:600;font-size:13px;line-height:1.25;padding:10px 13px;border-radius:6px;white-space:nowrap;cursor:pointer}
.jobs-cv-builder .jcv-main-tabs button.is-active{background:#fff;color:#982a60;box-shadow:0 1px 4px #17203318;border-bottom:2px solid #b7447b}
.jobs-cv-builder .jcv-main-panel{background:#fff;border:1px solid var(--border,#dce3ea);border-radius:9px;padding:12px;box-shadow:0 2px 8px #16233808}
.jobs-cv-builder .jcv-main-panel[hidden],.jobs-cv-builder .jcv-sub-panel[hidden]{display:none!important}
.jobs-cv-builder .jcv-subtabs{display:flex;gap:3px;overflow-x:auto;border-bottom:1px solid #e2e6eb;margin:-1px 0 12px;padding:0 0 7px;scrollbar-width:thin}
.jobs-cv-builder .jcv-subtabs button{font-size:12px;padding:8px 11px}.jobs-cv-builder .jcv-subtabs button.is-active{background:#fff0f6;color:#982a60;box-shadow:inset 0 -2px #b7447b}
.jobs-cv-builder .jcv-accordion{border:1px solid #e0e5eb;border-radius:7px;margin:0 0 10px;background:#fff;overflow:hidden}
.jobs-cv-builder .jcv-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:11px 13px;background:#f8f9fb;font-size:14px;font-weight:750;color:#354255}
.jobs-cv-builder .jcv-accordion>summary::-webkit-details-marker{display:none}.jobs-cv-builder .jcv-accordion>summary:after{content:'＋';color:#a52a63;font-size:17px}.jobs-cv-builder .jcv-accordion[open]>summary:after{content:'−'}
.jobs-cv-builder .jcv-add-accordion>summary b{font-size:11px;color:#a52a63;background:#fff;border:1px solid #edc9da;padding:4px 8px;border-radius:5px}
.jobs-cv-builder .jcv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 13px;padding:13px}
.jobs-cv-builder .jcv-field{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:650;color:#465365;min-width:0}
.jobs-cv-builder .jcv-field input,.jobs-cv-builder .jcv-field select,.jobs-cv-builder .jcv-field textarea{width:100%;min-height:37px;border:1px solid #cfd7e0;border-radius:5px;padding:7px 9px;background:#fff;color:#263445;font-family:inherit;font-weight:400;font-size:13px;line-height:1.35;box-sizing:border-box}
.jobs-cv-builder .jcv-field textarea{min-height:82px;resize:vertical}.jobs-cv-builder .jcv-field input:focus,.jobs-cv-builder .jcv-field select:focus,.jobs-cv-builder .jcv-field textarea:focus{outline:2px solid #e8b8ce;outline-offset:1px;border-color:#b7447b}
.jobs-cv-builder .jcv-check{display:flex;align-items:center;gap:8px;font-size:13px;color:#485568;padding:8px 2px}.jobs-cv-builder .jcv-check input{accent-color:#a52a63}
.jobs-cv-builder .jcv-note{margin:10px 13px;color:#6b7685;font-size:12px;line-height:1.5}
.jobs-cv-builder .jcv-form-actions{grid-column:1/-1;padding-top:2px}.jobs-cv-builder .jcv-primary,.jobs-cv-builder .jcv-next,.jobs-cv-builder .jcv-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #a52a63;border-radius:6px;background:#a52a63;color:#fff;text-decoration:none;padding:9px 14px;font-size:13px;font-weight:700;cursor:pointer}
.jobs-cv-builder .jcv-back{background:#fff;color:#596678;border-color:#cfd7e0}.jobs-cv-builder .jcv-next{background:#fff7fb;color:#96275d;border-color:#dfabc4}
.jobs-cv-builder .jcv-sticky-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 0 0;margin-top:8px;border-top:1px solid #e8ebef}
.jobs-cv-builder .jcv-records{padding:8px 12px}.jobs-cv-builder .jcv-record{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #edf0f3}.jobs-cv-builder .jcv-record:last-child{border-bottom:0}.jobs-cv-builder .jcv-record-main{display:flex;flex-direction:column;gap:3px;min-width:0}.jobs-cv-builder .jcv-record-main strong{font-size:13px;color:#263445}.jobs-cv-builder .jcv-record-main span,.jobs-cv-builder .jcv-record-main small{font-size:12px;color:#6c7786}.jobs-cv-builder .jcv-record-main p{font-size:12px;margin:3px 0 0;white-space:normal}.jobs-cv-builder .jcv-record-actions{display:flex;align-items:flex-start;gap:9px;white-space:nowrap}.jobs-cv-builder .jcv-record-actions a,.jobs-cv-builder .jcv-record-actions button{border:0;background:none;color:#a12e64;font-size:12px;font-weight:700;text-decoration:none;cursor:pointer;padding:2px}.jobs-cv-builder .jcv-record-actions form{margin:0}.jobs-cv-builder .jcv-empty{padding:12px;color:#788392;font-size:12px;background:#fafbfc;border:1px dashed #d9e0e7;border-radius:6px;margin:10px 12px}
.jobs-cv-builder .jcv-footer-note{font-size:11px;color:#7b8491;text-align:right;padding:10px 2px}
@media(max-width:700px){.jobs-cv-builder .jcv-shell{padding:0 9px}.jobs-cv-builder .jcv-heading{align-items:flex-start}.jobs-cv-builder .jcv-heading h1{font-size:21px}.jobs-cv-builder .jcv-grid{grid-template-columns:1fr;gap:9px;padding:10px}.jobs-cv-builder .jcv-main-panel{padding:9px}.jobs-cv-builder .jcv-main-tabs button{padding:9px 10px;font-size:12px}.jobs-cv-builder .jcv-sticky-actions{flex-wrap:wrap}.jobs-cv-builder .jcv-sticky-actions>*{flex:1}.jobs-cv-builder .jcv-record{flex-direction:column;gap:7px}}
@media print{.jobs-cv-builder .jcv-main-tabs,.jobs-cv-builder .jcv-subtabs,.jobs-cv-builder .jcv-sticky-actions,.jobs-cv-builder .jcv-preview{display:none!important}}

/* Candidate Dashboard & CV Bank — Milestone 3 */
.jobs-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px 0 18px;padding:0 0 12px;border-bottom:1px solid var(--jobs-border,#e5e7eb)}
.jobs-workspace-head h1{font-size:clamp(22px,2.4vw,30px);line-height:1.2;margin:2px 0 5px}.jobs-workspace-head p:not(.eyebrow){margin:0;color:var(--muted,#64748b);font-size:14px}.jobs-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.jobs-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 13px;border:1px solid var(--jobs-border,#d8dee8);border-radius:7px;background:#fff;color:#263449;text-decoration:none;font-size:13px;font-weight:650;cursor:pointer}.jobs-btn:hover{border-color:#c02670;color:#a51d60}.jobs-btn-primary{background:#b42368;border-color:#b42368;color:#fff}.jobs-btn-primary:hover{background:#971b56;color:#fff}
.jobs-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.jobs-stat-card,.jobs-dashboard-panel{background:#fff;border:1px solid var(--jobs-border,#e5e7eb);border-radius:9px;padding:15px;min-width:0}.jobs-stat-card>span{display:block;color:#64748b;font-size:12px;font-weight:650}.jobs-stat-card>strong{display:block;font-size:28px;line-height:1.25;margin:7px 0;color:#172338}.jobs-stat-card small{display:block;color:#718096;font-size:11px;line-height:1.45;margin-top:7px}.jobs-progress{height:6px;background:#edf0f4;border-radius:9px;overflow:hidden}.jobs-progress i{display:block;height:100%;background:#c02670;border-radius:9px}.jobs-stat-card>strong.jobs-visibility{font-size:19px}.jobs-visibility.is-public{color:#16804a}.jobs-visibility.is-private{color:#64748b}
.jobs-dashboard-columns{display:grid;grid-template-columns:1.05fr .95fr;gap:14px}.jobs-panel-heading{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:12px}.jobs-panel-heading h2{font-size:17px;margin:0 0 4px}.jobs-panel-heading p{font-size:12px;color:#718096;margin:0}.jobs-panel-heading>a{font-size:12px;color:#a51d60;text-decoration:none;font-weight:700;white-space:nowrap}.jobs-checklist{display:grid;gap:0}.jobs-check-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #eef0f3;font-size:13px}.jobs-check-row small{margin-left:auto;color:#8792a2;font-size:11px}.jobs-check-icon{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:#f1f3f6;color:#8490a0;font-size:12px}.jobs-check-icon.done{background:#e7f7ef;color:#16804a}.jobs-tool-list{display:grid}.jobs-tool-list>a{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid #eef0f3;color:inherit;text-decoration:none}.jobs-tool-list>a:first-child{border-top:0}.jobs-tool-icon{width:34px;height:34px;border-radius:8px;background:#fff0f6;color:#ae205f;display:grid;place-items:center;font-size:17px}.jobs-tool-list>a>span:nth-child(2){display:grid;gap:3px;flex:1}.jobs-tool-list strong{font-size:13px}.jobs-tool-list small{font-size:11px;color:#718096}.jobs-tool-list b{color:#a51d60}.jobs-dashboard-note{margin-top:14px;padding:11px 13px;border:1px solid #f0d5e2;background:#fff8fb;border-radius:8px;color:#67515d;font-size:12px;line-height:1.55}
.jobs-bank-search{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;align-items:end;gap:10px;padding:13px;background:#fff;border:1px solid var(--jobs-border,#e5e7eb);border-radius:9px}.jobs-bank-search label{display:grid;gap:5px;color:#475569;font-size:12px;font-weight:650}.jobs-bank-search input{width:100%;height:37px;padding:7px 10px;border:1px solid #d7dde6;border-radius:6px;font:inherit;font-size:13px;background:#fff;color:#1e293b}.jobs-search-actions{display:flex;gap:6px}.jobs-bank-summary{display:flex;align-items:center;gap:5px;margin:14px 1px;color:#475569;font-size:12px}.jobs-bank-summary strong{font-size:15px;color:#182438}.jobs-bank-summary span{margin-left:auto;color:#8490a0}.jobs-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.jobs-candidate-card{display:grid;grid-template-columns:40px minmax(0,1fr);gap:0 11px;padding:14px;background:#fff;border:1px solid var(--jobs-border,#e5e7eb);border-radius:9px;min-width:0}.jobs-candidate-avatar{grid-row:1/3;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#fce8f1;color:#a51d60;font-size:17px;font-weight:750}.jobs-candidate-main{min-width:0}.jobs-candidate-main h2{font-size:15px;margin:0 0 3px;color:#182438}.jobs-candidate-main>strong{font-size:12px;color:#455468}.jobs-candidate-location{font-size:11px;color:#778397;margin:5px 0}.jobs-candidate-summary{font-size:12px;line-height:1.5;color:#526174;margin:7px 0}.jobs-candidate-skills{font-size:11px;line-height:1.5;color:#526174;margin:5px 0}.jobs-candidate-open{grid-column:2;justify-self:start;margin-top:9px;color:#a51d60;text-decoration:none;font-size:12px;font-weight:700}.jobs-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:18px 0;font-size:12px;color:#64748b}.jobs-pagination a{color:#a51d60;text-decoration:none;font-weight:700}.jobs-empty-state{padding:34px 15px;text-align:center;border:1px dashed #d7dde6;border-radius:9px;background:#fff}.jobs-empty-state strong{font-size:15px}.jobs-empty-state p{font-size:12px;color:#718096;margin:5px 0 0}
@media(max-width:900px){.jobs-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jobs-bank-search{grid-template-columns:repeat(2,minmax(0,1fr))}.jobs-search-actions{align-self:end}}
@media(max-width:620px){.jobs-workspace-head{align-items:flex-start;flex-direction:column}.jobs-dashboard-columns,.jobs-bank-grid{grid-template-columns:1fr}.jobs-dashboard-grid{gap:8px}.jobs-stat-card{padding:12px}.jobs-stat-card>strong{font-size:24px}.jobs-bank-search{grid-template-columns:1fr}.jobs-bank-summary{align-items:flex-start;flex-wrap:wrap}.jobs-bank-summary span{width:100%;margin-left:0}.jobs-search-actions .jobs-btn{flex:1}}
@media print{.jobs-workspace-head,.jobs-dashboard-grid,.jobs-dashboard-columns,.jobs-dashboard-note,.jobs-bank-search,.jobs-pagination{display:none!important}}

/* Employer workspace — Milestone 4 */
.jobs-employer-form,.jobs-employer-form .jobs-dashboard-panel{display:grid;gap:16px}.jobs-employer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px}.jobs-employer-grid label,.jobs-admin-review-form label{display:grid;gap:5px;font-size:13px;font-weight:700;color:#334155}.jobs-employer-grid input,.jobs-employer-grid select,.jobs-employer-grid textarea,.jobs-admin-review-form textarea,.jobs-employer-verification textarea{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:8px;padding:9px 11px;background:#fff;color:#172033;font:inherit;font-weight:400}.jobs-employer-grid .wide{grid-column:1/-1}.jobs-form-hint{color:#64748b;font-size:13px;margin:8px 0 14px}.jobs-employer-stat{font-size:19px!important;line-height:1.35;overflow-wrap:anywhere}.jobs-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:700;background:#f1f5f9;color:#475569}.jobs-status-pill.pending{background:#fff7ed;color:#9a3412}.jobs-status-pill.active,.jobs-status-pill.verified,.jobs-status-pill.approved{background:#ecfdf5;color:#166534}.jobs-status-pill.rejected,.jobs-status-pill.suspended{background:#fef2f2;color:#991b1b}.jobs-verification-success{padding:12px;border-radius:8px;background:#ecfdf5;color:#166534;font-weight:600}.jobs-employer-doc-list{display:grid;gap:10px}.jobs-employer-doc-list>div{display:grid;grid-template-columns:minmax(130px,1fr) minmax(160px,2fr) auto auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #e2e8f0}.jobs-employer-doc-list small{color:#64748b}.jobs-admin-review-form{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:10px;align-items:end;margin-top:14px}.jobs-btn-danger{background:#fff;color:#b91c1c;border:1px solid #fecaca}.jobs-btn:disabled{opacity:.5;cursor:not-allowed}.jobs-admin-verification-list{display:grid;gap:14px}@media(max-width:720px){.jobs-employer-grid{grid-template-columns:1fr}.jobs-employer-grid .wide{grid-column:auto}.jobs-employer-doc-list>div{grid-template-columns:1fr;gap:5px}.jobs-admin-review-form{grid-template-columns:1fr}.jobs-admin-review-form button{width:100%}}

/* PCQMS Jobs portal landing page */
.jobs-portal-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);gap:28px;align-items:center;padding:clamp(22px,4vw,42px);margin:18px 0 22px;border:1px solid var(--border-color,#e5e7eb);border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f8f7ff 100%)}
.jobs-portal-hero h1{font-size:clamp(28px,4vw,42px);line-height:1.12;margin:6px 0 12px;color:#172033}.jobs-portal-hero h1 span{color:#a33b76}.jobs-portal-hero-copy>p:not(.eyebrow){max-width:650px;color:#667085;line-height:1.65}.jobs-portal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.jobs-portal-hero-mark{min-height:175px;border-radius:16px;background:linear-gradient(145deg,#532c64,#a33b76);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 12px 30px #532c6425}.jobs-portal-hero-mark span{font-size:13px;letter-spacing:.24em}.jobs-portal-hero-mark strong{font-size:54px;line-height:1.1;letter-spacing:.04em}.jobs-portal-hero-mark small{font-size:9px;letter-spacing:.16em;margin-top:8px;opacity:.8}
.jobs-portal-section{margin:20px 0}.jobs-portal-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.jobs-portal-section-head h2,.jobs-portal-community h2{margin:3px 0;font-size:23px}.jobs-portal-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.jobs-portal-card{display:block;padding:18px;border:1px solid var(--border-color,#e5e7eb);border-radius:13px;background:#fff;color:inherit;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.jobs-portal-card:hover{transform:translateY(-2px);border-color:#d69abc;box-shadow:0 8px 24px #1018280c}.jobs-portal-card-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f8eaf2;color:#9c376f;font-size:25px}.jobs-portal-card h3{margin:12px 0 5px;font-size:17px}.jobs-portal-card p{min-height:58px;margin:0 0 12px;color:#667085;font-size:13px;line-height:1.5}.jobs-portal-card b{font-size:12px;color:#9c376f}.jobs-portal-community{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:22px 0;padding:20px 22px;border-radius:14px;background:#f8f5fa;border:1px solid #eee4ef}.jobs-portal-community p:not(.eyebrow){margin:5px 0 0;color:#667085;font-size:13px}
@media(max-width:900px){.jobs-portal-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jobs-portal-hero{grid-template-columns:1fr}.jobs-portal-hero-mark{min-height:125px}}
@media(max-width:560px){.jobs-portal-card-grid{grid-template-columns:1fr}.jobs-portal-community{align-items:flex-start;flex-direction:column}.jobs-portal-hero{padding:20px}}

/* PCQMS Jobs Milestone 6 additions */
.jobs-apply label,.jobs-employer-applicants label{display:block;font-weight:600;margin:12px 0;color:#18324b}
.jobs-apply textarea,.jobs-employer-applicants textarea,.jobs-employer-applicants select{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px 12px;border:1px solid #cbd8e6;border-radius:8px;background:#fff;color:#18324b;font:inherit}
.jobs-apply form{max-width:850px}.jobs-apply .jobs-form-hint{font-size:.9rem;color:#62758a;margin:12px 0}
.jobs-employer-applicants form{margin-top:14px;padding:12px;background:#f7f9fc;border:1px solid #e0e8f1;border-radius:10px}
.jobs-snapshot-record{padding:12px 0;border-bottom:1px solid #e3eaf2}.jobs-snapshot-record:last-child{border-bottom:0}.jobs-snapshot-record small{color:#687b8f}
@media(max-width:700px){.jobs-employer-applicants .jobs-employer-grid{display:block}.jobs-employer-applicants .jobs-employer-grid>*{width:100%}}

/* Shared navigation for every page in the Jobs portal */
.jobs-global-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 20px;padding:10px 12px;background:#fff;border:1px solid #dce5ef;border-radius:12px;box-shadow:0 3px 12px rgba(20,48,76,.045)}
.jobs-global-nav-main{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.jobs-global-nav a{display:inline-flex;align-items:center;min-height:36px;padding:7px 11px;border-radius:8px;color:#24445f;text-decoration:none;font-size:13px;font-weight:650;transition:background .15s ease,color .15s ease}
.jobs-global-nav a:hover,.jobs-global-nav a:focus-visible{background:#edf4fa;color:#0d5f9c}
.jobs-global-nav a.is-active{background:#164f78;color:#fff}
.jobs-global-nav .jobs-global-nav-login{background:#eaf3fb;color:#145b91}
@media(max-width:640px){.jobs-global-nav{align-items:stretch}.jobs-global-nav-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.jobs-global-nav a{justify-content:center;text-align:center;padding:8px 6px;font-size:12px}.jobs-global-nav .jobs-global-nav-login{justify-content:center}}


/* Organized Jobs portal navigation: grouped public, candidate and employer workspaces. */
.jobs-global-nav-organized{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:8px 12px;position:relative;z-index:30}
.jobs-global-nav-groups{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.jobs-nav-group{position:relative}
.jobs-nav-group>summary{list-style:none;cursor:pointer}
.jobs-nav-group>summary::-webkit-details-marker{display:none}
.jobs-nav-group-trigger{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:8px 14px;border:1px solid #dce5ef;border-radius:9px;background:#f8fafc;color:#24445f;font-size:13px;font-weight:750}
.jobs-nav-group-trigger:hover,.jobs-nav-group-trigger:focus-visible,.jobs-nav-group[open]>.jobs-nav-group-trigger{background:#eaf3fb;border-color:#c5d9eb;color:#145b91}
.jobs-nav-group-trigger.is-active{background:#164f78;border-color:#164f78;color:#fff}
.jobs-nav-chevron{font-size:15px;line-height:1;transition:transform .15s ease}
.jobs-nav-group[open] .jobs-nav-chevron{transform:rotate(180deg)}
.jobs-nav-dropdown{position:absolute;top:calc(100% + 7px);left:0;min-width:220px;padding:7px;background:#fff;border:1px solid #dce5ef;border-radius:11px;box-shadow:0 12px 30px rgba(18,43,67,.14);display:grid;gap:3px;z-index:100}
.jobs-nav-dropdown-link{display:flex;align-items:center;min-height:38px;padding:8px 11px;border-radius:7px;color:#24445f;text-decoration:none;font-size:13px;font-weight:600}
.jobs-nav-dropdown-link:hover,.jobs-nav-dropdown-link:focus-visible{background:#edf4fa;color:#0d5f9c}
.jobs-nav-dropdown-link.is-active{background:#164f78;color:#fff}
.jobs-global-nav-organized .jobs-global-nav-login{margin-left:auto;white-space:nowrap}
@media(max-width:640px){.jobs-global-nav-organized{align-items:stretch;flex-direction:column}.jobs-global-nav-groups{display:grid;grid-template-columns:1fr;gap:6px}.jobs-nav-group-trigger{width:100%;justify-content:space-between}.jobs-nav-dropdown{position:static;min-width:0;margin-top:5px;box-shadow:none}.jobs-global-nav-organized .jobs-global-nav-login{justify-content:center;width:100%}}


/* Jobs portal navigation v3: one clear primary row with contextual workspace tabs. */
.jobs-portal-nav{
    position:relative;z-index:40;
    margin:12px 0 20px;
    padding:9px 12px;
    border:1px solid #dce6ef;
    border-radius:13px;
    background:#fff;
    box-shadow:0 4px 16px rgba(18,43,67,.045);
}
.jobs-portal-nav-main{
    display:flex;align-items:center;gap:5px;
    min-width:0;overflow-x:auto;scrollbar-width:thin;
}
.jobs-portal-nav-link{
    display:inline-flex;align-items:center;justify-content:center;
    flex:0 0 auto;min-height:39px;padding:8px 14px;
    border:1px solid transparent;border-radius:8px;
    color:#24445f;text-decoration:none;font-size:13px;font-weight:650;
    white-space:nowrap;transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.jobs-portal-nav-link:hover,.jobs-portal-nav-link:focus-visible{
    background:#f1f6fa;border-color:#e0e9f1;color:#125b8e;
}
.jobs-portal-nav-link.is-active{
    background:#164f78;border-color:#164f78;color:#fff;
}
.jobs-portal-subnav{
    display:flex;align-items:center;gap:5px;flex-wrap:wrap;
    margin-top:8px;padding:8px 2px 0;border-top:1px solid #edf1f5;
}
.jobs-portal-subnav-title{
    margin:0 8px 0 4px;color:#718398;font-size:10px;
    font-weight:800;letter-spacing:.09em;text-transform:uppercase;
}
.jobs-portal-subnav a{
    display:inline-flex;align-items:center;min-height:31px;
    padding:6px 10px;border-radius:7px;
    color:#52667c;text-decoration:none;font-size:12px;font-weight:600;
}
.jobs-portal-subnav a:hover,.jobs-portal-subnav a:focus-visible{
    background:#f3f7fa;color:#145b91;
}
.jobs-portal-subnav a.is-active{
    background:#eaf3fa;color:#145b91;font-weight:750;
}
.jobs-admin-approval-section{margin:18px 0 24px}
.jobs-approval-count{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:23px;height:23px;margin-left:5px;padding:0 6px;
    border-radius:20px;background:#edf4fa;color:#155b8c;
    font-size:12px;vertical-align:middle;
}
.jobs-approval-list{display:grid;gap:13px}
.jobs-approval-card{
    padding:17px;border:1px solid #e1e8ef;border-radius:12px;background:#fff;
}
.jobs-approval-card-head{
    display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
}
.jobs-approval-card-head h3{margin:0 0 4px;color:#173b56;font-size:17px}
.jobs-approval-card-head p{margin:0;color:#6b7c8f;font-size:12px}
.jobs-approval-meta{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 18px;margin:15px 0;color:#506276;font-size:13px;
}
.jobs-approval-meta strong{color:#243d55}
.jobs-approval-actions{
    display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:13px;
}
.jobs-approval-actions form{margin:0}
.jobs-approval-card .jobs-form-hint{margin:11px 0 0}
.jobs-empty-state{padding:15px;border:1px dashed #dce5ee;border-radius:9px;color:#718096;background:#fafcfe}
@media(max-width:680px){
    .jobs-portal-nav{padding:8px}
    .jobs-portal-nav-main{gap:3px}
    .jobs-portal-nav-link{min-height:36px;padding:7px 10px;font-size:12px}
    .jobs-portal-subnav{gap:2px}
    .jobs-portal-subnav-title{width:100%;margin:0 0 3px 4px}
    .jobs-approval-card-head{display:block}
    .jobs-approval-card-head .jobs-status-pill{display:inline-flex;margin-top:9px}
    .jobs-approval-meta{grid-template-columns:1fr}
}


/* Candidate CV photo and custom PDF tools */
.jcv-file-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 22px}
.jcv-file-tool{min-width:0;padding:18px;border:1px solid #dce6ef;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(20,54,82,.045)}
.jcv-file-tool-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.jcv-file-tool-heading h2{margin:0 0 5px;color:#173b56;font-size:16px}
.jcv-file-tool-heading p{margin:0;color:#708197;font-size:12px;line-height:1.55}
.jcv-file-badge{flex:0 0 auto;padding:5px 9px;border-radius:20px;background:#edf6fa;color:#176b8d;font-size:11px;font-weight:700}
.jcv-photo-row{display:flex;align-items:flex-start;gap:15px}
.jcv-photo-preview{width:88px;height:104px;flex:0 0 88px;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid #dce6ef;border-radius:10px;background:#f1f6fa;color:#176b8d;font-size:28px;font-weight:800}
.jcv-photo-preview img{width:100%;height:100%;object-fit:cover}
.jcv-photo-controls{min-width:0;flex:1}
.jcv-photo-controls form,.jcv-upload-form{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}
.jcv-photo-controls form+form{margin-top:8px}
.jcv-photo-controls .jcv-field,.jcv-upload-form .jcv-field{min-width:180px;flex:1}
.jcv-file-tool input[type=file]{display:block;width:100%;max-width:100%;padding:8px;border:1px solid #d8e2ec;border-radius:8px;background:#fbfdff;color:#44576a;font-size:12px}
.jcv-danger{min-height:38px;padding:8px 12px;border:1px solid #f0c8ce;border-radius:8px;background:#fff7f8;color:#a33345;font-weight:700;cursor:pointer}
.jcv-current-file{display:flex;align-items:center;gap:11px;margin:12px 0;padding:11px;border:1px solid #e0e8ef;border-radius:10px;background:#f8fbfd}
.jcv-current-file-icon{display:grid;place-items:center;width:38px;height:42px;border-radius:7px;background:#fff0f0;color:#b43d4b;font-size:11px;font-weight:800}
.jcv-current-file>div{min-width:0;flex:1}
.jcv-current-file strong,.jcv-current-file small{display:block;overflow-wrap:anywhere}
.jcv-current-file strong{color:#243e56;font-size:12px}
.jcv-current-file small{margin-top:3px;color:#75869a;font-size:11px}
.jcv-file-link{color:#176f9c;font-size:12px;font-weight:700}
.jcv-upload-form{margin-top:10px}
.jcv-file-tool .jcv-note{margin:10px 0 0;color:#718197;font-size:11px;line-height:1.5}
.jobs-candidate-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.jobs-candidate-download{background:#f1f8fb}
.jobs-cv-choice{display:grid;gap:10px;margin:16px 0;padding:14px;border:1px solid #dce6ef;border-radius:10px}
.jobs-cv-choice legend{padding:0 6px;color:#1c3d59;font-weight:700}
.jobs-cv-choice label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#304b63}
.jobs-cv-choice label small{flex-basis:100%;margin-left:25px;color:#718197}
@media(max-width:760px){.jcv-file-tools{grid-template-columns:1fr}.jcv-photo-row{align-items:flex-start}.jcv-photo-controls form,.jcv-upload-form{align-items:stretch;flex-direction:column}.jcv-photo-controls .jcv-field,.jcv-upload-form .jcv-field{width:100%}}


/* Shared professional CV preview and print document */

/* CV preview is intentionally self-contained so the global PCQMS theme remains untouched. */
.cv-preview-shell{max-width:980px;margin:26px auto 42px;color:#243447}
.cv-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.cv-preview-toolbar__label{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#547086}
.cv-preview-toolbar__actions{display:flex;gap:8px;flex-wrap:wrap}
.cv-preview-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:9px 14px;border:1px solid #d4e0e9;border-radius:9px;background:#fff;color:#23445e;text-decoration:none;font-size:12px;font-weight:750;cursor:pointer}
.cv-preview-btn--primary{border-color:#176b88;background:#176b88;color:#fff}
.cv-preview-btn:hover{filter:brightness(.97);text-decoration:none}
.cv-document{max-width:850px;margin:0 auto;background:#fff;border:1px solid #dbe5ed;border-radius:14px;box-shadow:0 14px 42px rgba(24,55,78,.10);overflow:hidden;color:#263646;font-family:Arial,Helvetica,sans-serif}
.cv-document__topline{height:7px;background:linear-gradient(90deg,#0d526d,#168b91 65%,#c13b83)}
.cv-document__header{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:28px;align-items:center;padding:36px 42px 30px;background:#f4f8fb;border-bottom:1px solid #e2eaf0}
.cv-document__identity h1{margin:0 0 7px;color:#123d59;font-size:31px;line-height:1.16;font-weight:800;letter-spacing:-.025em}
.cv-document__headline{margin:0 0 13px;color:#13778b;font-size:15px;font-weight:750}
.cv-document__contact{display:flex;flex-wrap:wrap;gap:6px 16px;color:#53687a;font-size:11px;line-height:1.55}
.cv-document__contact span{overflow-wrap:anywhere}
.cv-document__photo{width:108px;height:135px;object-fit:cover;object-position:center;border:4px solid #fff;border-radius:8px;box-shadow:0 3px 12px rgba(20,48,68,.16)}
.cv-document__photo-placeholder{width:108px;height:135px;display:flex;align-items:center;justify-content:center;border:1px solid #d8e4eb;border-radius:8px;background:#e8f0f5;color:#24617d;font-size:34px;font-weight:800}
.cv-document__body{padding:8px 42px 36px}
.cv-document__section{margin:22px 0 0;break-inside:auto}
.cv-document__section h2{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:0 0 8px;border-bottom:1px solid #dbe5ec;color:#14536f;font-size:13px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.cv-document__section h2:after{content:"";height:2px;flex:1;background:#e8eff3}
.cv-document__text{margin:0;color:#405466;font-size:12px;line-height:1.75;white-space:pre-line;overflow-wrap:anywhere}
.cv-document__skills{display:flex;flex-wrap:wrap;gap:7px}
.cv-document__skill{display:inline-block;padding:5px 9px;border:1px solid #d7e7ed;border-radius:20px;background:#f3f9fa;color:#24566a;font-size:10px;font-weight:700}
.cv-document__entry{position:relative;margin:0 0 15px;padding:0 0 14px;border-bottom:1px solid #edf1f4;break-inside:avoid;page-break-inside:avoid}
.cv-document__entry:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
.cv-document__entry-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.cv-document__entry h3{margin:0 0 4px;color:#263d50;font-size:13px;line-height:1.4;font-weight:800}
.cv-document__entry-org{margin:0;color:#16788a;font-size:11px;font-weight:700}
.cv-document__entry-meta{margin:4px 0 0;color:#718292;font-size:10px;line-height:1.5}
.cv-document__entry-date{flex:0 0 auto;color:#64798a;font-size:10px;font-weight:700;text-align:right;white-space:nowrap}
.cv-document__entry-detail{margin:8px 0 0;color:#46596a;font-size:11px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.cv-document__private{margin-top:24px;padding:12px 14px;border:1px dashed #c9d7e0;border-radius:8px;background:#f8fafc}
.cv-document__private h2{margin:0 0 7px;color:#607487;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.cv-document__private p{margin:0;color:#536779;font-size:10px;line-height:1.65;white-space:pre-line}
.cv-document__footer{display:flex;justify-content:space-between;gap:10px;padding:12px 42px;border-top:1px solid #e6edf2;background:#fbfcfd;color:#8292a0;font-size:9px}
.cv-document__empty{padding:18px;border:1px dashed #d8e3ea;border-radius:8px;color:#788b9a;font-size:11px;text-align:center}
@media(max-width:650px){.cv-preview-shell{margin:16px auto 28px}.cv-document__header{grid-template-columns:minmax(0,1fr) 76px;gap:14px;padding:22px 18px}.cv-document__identity h1{font-size:24px}.cv-document__photo,.cv-document__photo-placeholder{width:76px;height:96px}.cv-document__body{padding:4px 18px 24px}.cv-document__footer{padding:10px 18px}.cv-document__entry-head{display:block}.cv-document__entry-date{text-align:left;margin-top:4px}.cv-preview-toolbar{align-items:flex-start}.cv-preview-toolbar__actions{width:100%}.cv-preview-btn{flex:1}}
@page{size:A4;margin:12mm}
@media print{
 html,body{background:#fff!important;color:#1f2d3a!important}
 body{margin:0!important;padding:0!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
 .topbar,.pcqms-global-credit-timer,.jobs-portal-nav,.site-footer,.cv-preview-toolbar{display:none!important}
 main.container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 .cv-preview-shell{max-width:none!important;margin:0!important;padding:0!important}
 .cv-document{max-width:none!important;width:100%!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
 .cv-document__topline{height:4px!important}
 .cv-document__header{padding:8mm 8mm 6mm!important;break-inside:avoid;page-break-inside:avoid}
 .cv-document__body{padding:2mm 8mm 5mm!important}
 .cv-document__section{margin-top:6mm!important}
 .cv-document__entry{break-inside:avoid;page-break-inside:avoid}
 .cv-document__footer{padding:3mm 8mm!important}
 a{color:inherit!important;text-decoration:none!important}
}


/* One CV document is shared by My CV and CV View. Print only that document. */
@media print {
  html, body { background:#fff !important; }
  body { margin:0 !important; padding:0 !important; }
  body.jobs-area > .topbar,
  body.jobs-area > .pcqms-global-credit-timer,
  body.jobs-area > main.container > .jobs-portal-nav,
  body.jobs-area > main.container > .cv-actions,
  body.jobs-area > main.container > .cv-progress,
  body.jobs-area > main.container > .notice,
  body.jobs-area > .site-footer,
  body.jobs-area .cv-preview-toolbar { display:none !important; }
  body.jobs-area main.container { width:100% !important; max-width:none !important; margin:0 !important; padding:0 !important; }
  .cv-preview-shell { max-width:none !important; margin:0 !important; padding:0 !important; }
  .cv-document { width:100% !important; max-width:none !important; margin:0 !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; overflow:visible !important; }
}


@media print {
  body.jobs-area main.container > .cv-actions,
  body.jobs-area main.container > .cv-progress,
  body.jobs-area main.container > .notice { display:none !important; }
}
