/* VectaurATS base styles: dense, scannable, keyboard-friendly, usable on a phone.
   --accent and --highlight come from Company settings (see templates/base.html). */
:root { --ink: #1f2933; --muted: #52606d; --line: #d9e2ec; --soft: #f5f7fa; --bg: #fff;
  --accent: #1f5f8b; --highlight: #c2410c; --danger: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 6px 10px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.topbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 8px 16px; border-bottom: 3px solid var(--accent); }
.brand { font-weight: 600; font-size: 16px; color: var(--accent); text-decoration: none; display: flex; align-items: center; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.topbar nav .who { color: var(--muted); }
.topbar form { margin: 0; }
.menu-toggle { display: none; }
@media (max-width: 720px) {
  .menu-toggle { display: inline-block; }
  .topbar nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0; }
  .topbar nav.is-open { display: flex; }
  .hide-sm { display: none; }
}

main { max-width: 1200px; margin: 0 auto; padding: 16px; }
main:focus { outline: none; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 17px; margin: 24px 0 8px; }
.muted, .help { color: var(--muted); }
.crumbs { margin: 0; font-size: 13px; }

button, .button { font: inherit; padding: 6px 14px; border: 1px solid var(--accent); border-radius: 4px;
  background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.link { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; text-align: left; }

.form { display: grid; gap: 12px; max-width: 560px; }
.form.inline { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: start; max-width: 900px; }
.form.inline > button { margin-top: 22px; justify-self: start; }
.field { display: grid; gap: 3px; }
.field label { font-weight: 500; }
.field input:not([type=checkbox]):not([type=color]), .field select, .field textarea, input[type=email], input[type=password], input[type=text] {
  font: inherit; padding: 6px 8px; width: 100%; border: 1px solid #bcccdc; border-radius: 4px; background: var(--bg); }
.field .error { color: var(--danger); }
.has-error input, .has-error select { border-color: var(--danger); }

.table-wrap { overflow-x: auto; }
table.grid { border-collapse: collapse; width: 100%; }
table.grid th, table.grid td { text-align: left; padding: 5px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid thead th { background: var(--soft); font-weight: 600; position: sticky; top: 0; }
table.grid tbody tr:hover { background: var(--soft); }
tr.retired td { color: var(--muted); text-decoration: line-through; }
.nowrap { white-space: nowrap; }
.changes { margin: 0; padding-left: 16px; }

.cards { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards li { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: grid; gap: 4px; }
.cards a { font-weight: 600; }
.cards small { color: var(--muted); }
.facts th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 16px 4px 0; }
.messages { padding: 8px 12px; background: var(--soft); border-left: 3px solid var(--accent); list-style: none; }
code.token { font-size: 15px; padding: 4px 8px; background: #fff; border: 1px solid var(--line); word-break: break-all; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; }
.pill-succeeded { border-color: #3f9142; }
.pill-failed, .pill-aborted { border-color: var(--danger); color: var(--danger); }
.pill-doing { border-color: var(--accent); }
p.error { color: var(--danger); }
.messages.warning { border-left-color: var(--highlight); background: #fff7ed; }
.messages ul { margin: 4px 0; padding-left: 18px; }
.page-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 8px; }
.filters input[type=search] { min-width: 260px; flex: 1 1 260px; max-width: 420px; }
.filters select, .filters input[type=search] { font: inherit; padding: 6px 8px; border: 1px solid #bcccdc; border-radius: 4px; }
.check { display: inline-flex; gap: 6px; align-items: center; }
.count { margin: 4px 0; }
.pager { display: flex; gap: 16px; align-items: center; margin: 12px 0; }
.pill-warn { border-color: var(--highlight); color: var(--highlight); }
.columns { display: grid; gap: 8px 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.notes { max-width: 80ch; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px 12px; margin: 0 0 14px; }
legend { font-weight: 600; padding: 0 6px; }
.form.grid2, .form.grid3 { display: grid; gap: 10px 16px; max-width: 900px; }
.form.grid2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form.grid3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.inline-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: 6px; }
button.secondary { background: #fff; color: var(--accent); }
.field .label { font-weight: 500; }
.lookup { position: relative; display: flex; gap: 8px; align-items: center; }
.lookup input[type=text] { flex: 1; }
.lookup-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.08); max-height: 260px; overflow-y: auto; }
.lookup-results ul { list-style: none; margin: 0; padding: 4px 0; display: block; }
.lookup-results li { padding: 2px 10px; }
.lookup-results button { text-align: left; width: 100%; padding: 4px 0; }
.chips { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-size: 13px; }
.chip-role { border-color: #9fb3c8; } .chip-functional { border-color: #c7a4e0; } .chip-domain { border-color: #e3b77a; } .chip-naics { border-color: #8fc79a; }
.chip-x { background: none; border: none; color: var(--muted); padding: 0 6px; font-size: 15px; line-height: 1; cursor: pointer; }
.tag-add { max-width: 420px; }
.create-tag { padding: 6px 10px; border-top: 1px solid var(--line); }
.skill-filter { min-width: 200px; }
.tag-section h2 { margin-top: 12px; }

/* activities */
.num { text-align: right; white-space: nowrap; }
.timeline { margin-top: 24px; }
.activity-form { border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin-bottom: 12px; background: var(--soft); }
.activities { list-style: none; padding: 0; margin: 0; }
.activity { border-left: 3px solid var(--accent); padding: 6px 10px; margin-bottom: 8px; }
.activity-system { border-left-color: var(--line); }
.activity-corrected { opacity: .65; }
.activity-corrected .activity-body { text-decoration: line-through; }
.activity-body { margin-top: 4px; white-space: normal; }
.activity-more { list-style: none; }
[x-cloak] { display: none !important; }

/* jobs and pipeline */
.muted-row td { color: var(--muted, #6b7280); }
.tabs { display: flex; gap: 12px; }
.tabs a[aria-current="page"] { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }
.pipeline-head { margin-top: 24px; }
.board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.board-column { flex: 0 0 200px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
.board-column.closed { opacity: .85; }
.board-column h3 { font-size: 14px; margin: 2px 4px 6px; display: flex; justify-content: space-between; gap: 4px; }
.board-column .count { font-weight: 400; color: var(--muted, #6b7280); }
.board-column ul { list-style: none; margin: 0; padding: 0; min-height: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; margin-bottom: 6px; cursor: grab; font-size: 14px; }
.board-readonly .card { cursor: default; }
.card.saving { opacity: .5; }
.card .muted { font-size: 12px; }
.sortable-ghost { opacity: .4; }
.submission { border-left: 3px solid var(--accent); padding: 4px 12px; margin-bottom: 12px; }
.feedback { list-style: none; padding: 0; }
.feedback li { padding: 4px 0; border-bottom: 1px solid var(--line); }
h2.inline { display: inline; }
.status-open { border-color: #3f9142; }
.status-on_hold { border-color: var(--highlight); }
.status-cancelled, .status-filled { color: var(--muted, #6b7280); }

/* resumes and search */
.resume-text { white-space: pre-wrap; font-family: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 12px; max-height: 70vh; overflow: auto; }
.found { border-left: 3px solid var(--highlight); padding: 4px 12px; margin: 12px 0; }
mark { background: #fde68a; color: inherit; padding: 0 1px; }
.snippet { font-size: 13px; color: var(--muted, #6b7280); }
.search-form fieldset { margin-bottom: 8px; }
.chips-inline { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0; }
.saved-searches { list-style: none; padding: 0; }
.saved-searches li { display: flex; gap: 8px; align-items: center; padding: 2px 0; }
.form.grid4 { display: grid; gap: 10px 16px; max-width: 1000px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* duplicates and merge */
.compare th[scope="row"] { width: 20%; }
.compare td label, .compare th label { display: flex; gap: 6px; align-items: flex-start; font-weight: normal; }
.dup-notice ul { margin: 4px 0 0; padding-left: 18px; }
.dup-group { margin-bottom: 16px; }

/* lists and bulk actions */
.bulk-bar { margin: 8px 0; }
.bulk-bar .form.inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.bulk-bar .form.inline > *, .bulk-bar .inline-actions { flex: 0 0 auto; width: auto; }
.bulk-bar .inline-actions { display: inline-flex; align-items: center; gap: 6px; }
.bulk-bar select, .bulk-bar input[type=text] { width: auto; min-width: 12em; }
.add-to-list { margin: 12px 0; }
.add-to-list summary { cursor: pointer; }

/* public careers pages */
.public-main { max-width: 820px; margin: 0 auto; padding: 16px; }
.job-cards { list-style: none; padding: 0; }
.job-cards li { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.apply-form .form.grid2 { max-width: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* notifications (2.1) */
.notification-grid th.aud { font-size: 12px; font-weight: 500; vertical-align: bottom; min-width: 84px; }
.notification-grid tr.area th { background: var(--soft); text-align: left; }
.notification-grid td.cell, .notification-grid td.na { text-align: center; white-space: nowrap; }
.notification-grid td.na { color: var(--muted); }
.notification-grid form { display: inline; }
button.check { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); background: #fff; color: var(--accent); border-radius: 4px; line-height: 1; }
td.on button.check { background: var(--accent); color: #fff; border-color: var(--accent); }
a.small { font-size: 12px; margin-left: 4px; }
.two-col { display: grid; gap: 24px; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
table.compact td { padding: 2px 8px; font-size: 13px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
pre.email-body { white-space: pre-wrap; border: 1px solid var(--line); padding: 12px; border-radius: 6px; background: var(--soft); font-family: inherit; }
p.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* email (2.2) */
.editor { background: #fff; min-height: 220px; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--line); }
.code-list { list-style: none; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.code-list button { font-family: ui-monospace, monospace; }
.actions-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
h3.inline { display: inline; font-size: 1rem; }
.inline-form { display: inline; }

/* calendar (2.4) */
.agenda { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 12px 0; }
.agenda-day { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; min-height: 90px; }
.agenda-day.is-today { border-color: var(--accent); }
.agenda-day h2 { font-size: 14px; margin: 0 0 4px; }
.agenda-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.agenda-item .time { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: 4px; }
.agenda-item.is-busy { opacity: .7; }
.agenda-item.needs-review a { color: var(--highlight); }
input.wide { width: 100%; max-width: 640px; }
.lookup-inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.form.grid2 { align-items: start; }

/* opportunities (2.5) */
.stage-counts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.stage-counts a[aria-current] { font-weight: 600; text-decoration: none; }
.overdue { color: var(--danger); }

/* tasks (2.6) */
.task-row.is-overdue td:first-child { color: var(--danger); font-weight: 600; }
.task-actions { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.small-button { display: inline-block; padding: 2px 8px; font-size: 13px; border: 1px solid var(--accent); border-radius: 4px; background: #fff; color: var(--accent); text-decoration: none; cursor: pointer; }
.small-button:hover { background: var(--accent); color: #fff; }
td.reach { font-size: 13px; }
ol.steps { padding-left: 20px; }
.muted-link { color: var(--muted); }

/* reports (2.8) */
.chart-box { position: relative; height: 260px; max-width: 1000px; margin: 12px 0 20px; }
table.report td.num a { font-weight: 600; }
table.report small.split { display: block; color: var(--muted); font-size: 11px; }
table.report tfoot th, table.report tfoot td { border-top: 2px solid var(--line); }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 12px 0; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 24px; }
.stat-label { color: var(--muted); font-size: 13px; }
.process-text { max-width: 80ch; }
.process-text img { max-width: 100%; height: auto; }
.checklist li { margin: 4px 0; }
.board-column h4 { font-size: 12px; font-weight: 600; margin: 8px 4px 4px; color: var(--muted, #6b7280); display: flex; justify-content: space-between; }
.board-column.grouped ul { min-height: 32px; border-top: 1px dashed var(--line); }
.preview-frame { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.preview-image { max-width: 100%; height: auto; border: 1px solid var(--line); }
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu ul { position: absolute; right: 0; z-index: 20; margin: 4px 0 0; padding: 4px 0; list-style: none; background: var(--bg, #fff); border: 1px solid var(--line); border-radius: 6px; min-width: 240px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
details.menu li a { display: block; padding: 6px 12px; white-space: nowrap; }
.hours-grid input.hours { width: 6em; text-align: right; }
.hours-grid tr.weekend th, .hours-grid tr.weekend td { background: var(--soft); }
.person-photo, .portal-photo { border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.person-photo { float: right; margin: 0 0 8px 12px; }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head h1 { margin: 0; }
.profile-headline { font-size: 1.1em; margin: 4px 0; }
.profile-pitch { max-width: 70ch; }
.profile-preview { border: 1px solid var(--line); border-radius: 8px; padding: 16px; max-width: 760px; }
.contract-text { max-width: 75ch; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; background: var(--bg, #fff); }
.sign-box { margin-top: 16px; }
.score-bars { display: grid; gap: 8px; max-width: 640px; }
.score-bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 9.5em; gap: 10px; align-items: center; }
.score-track { height: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.score-fill { display: block; height: 100%; background: var(--accent, #1f5f8b); }
.test-question { margin: 12px 0; }
.test-question label.choice { display: block; padding: 4px 0; }
.test-passage { margin: 20px 0 8px; padding: 10px 14px; border-left: 4px solid var(--accent); background: #f5f7fa; }
.test-passage p { margin: 0 0 8px; }
.test-passage table.exhibit td, .test-passage table.exhibit th { font-variant-numeric: tabular-nums; }
.rubric-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; margin: 6px 0; }
.countdown { position: sticky; top: 0; background: var(--bg, #fff); padding: 6px 0; }
.dictate { display: inline-block; margin: 2px 0 6px; font-size: 13px; }
.dictate[aria-pressed="true"] { color: #b42318; font-weight: 600; }
.assist { margin: 4px 0 10px; }
.assist-panel { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-top: 6px; background: var(--soft); }
.assist-text { white-space: pre-wrap; font-family: inherit; margin: 0 0 8px; }
.assist-text.assist-error { color: #b42318; }
