/* ============================================================
   City Cave Therapist Hub
   Palette: deep cave navy, stone, eucalyptus, warm sand
   ============================================================ */
:root {
  --navy: #000000;
  --navy-2: #1c1c1c;
  --stone: #f6f4ef;
  --card: #ffffff;
  --ink: #22313f;
  --muted: #7d766a;
  --line: #e4dfd4;
  --euc: #38a3dc;        /* accent colour */
  --euc-hover: #2d80ad;  /* accent hover */
  --euc-soft: #e6f3fb;
  --sand: #cdb489;
  --ok: #2e7d5b;   --ok-bg: #e4f2ea;
  --warn: #b57912; --warn-bg: #fbf1dc;
  --bad: #b03a2e;  --bad-bg: #fbe7e4;
  --info: #3b6e93; --info-bg: #e6eff6;
  --pink: #fdeef1; /* warning card background */
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22,36,47,.06), 0 8px 24px rgba(22,36,47,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Proxima Nova', 'proxima-nova', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--stone);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
h1, h2, h3 { font-family: 'Proxima Nova', 'proxima-nova', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 600; letter-spacing: -.01em; }
a { color: var(--euc); }
.muted { color: var(--muted); }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex-shrink: 0; background: var(--navy); color: #e9e4da;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 16px 16px 13px; }
.brand-mark {
  width: 52px; height: auto; display: block; object-fit: contain; flex-shrink: 0;
}
.brand-text { font-size: 14px; font-weight: 700; letter-spacing: 2px; line-height: 1.2; }
.brand-text span { display: block; font-weight: 400; letter-spacing: .5px; font-size: 11px; color: #b8ae9c; }
/* "CITY" sits inline in the brand text at normal weight; "CAVE" stays bold.
   Overrides the block/small/muted styling the subtitle span above uses. */
.brand-text .brand-city { display: inline; font-weight: 400; letter-spacing: 2px; font-size: inherit; color: inherit; }
.sidebar nav { flex: 1; padding: 8px 12px; }
.sidebar nav a {
  display: block; padding: 7px 11px; margin: 1px 0; color: #cfc8ba; text-decoration: none;
  border-radius: 7px; font-size: 13.5px;
}
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.active { background: var(--euc); color: #fff; font-weight: 600; }
.sidebar-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.sidebar-foot .who { font-weight: 600; color: #fff; }
.sidebar-foot .who span { display: block; font-weight: 400; color: #b8ae9c; font-size: 12px; }
.sidebar-foot .logout { display: inline-block; margin-top: 8px; color: var(--sand); text-decoration: none; }

.main { flex: 1; padding: 20px 24px 40px; max-width: 1200px; }
.topbar h1 { margin: 0 0 14px; font-size: 22px; }

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px 16px;
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(56,163,220,.18), transparent 60%),
    var(--navy);
}
.auth-card {
  width: 100%; max-width: 440px; background: var(--card); border-radius: 16px;
  padding: 26px 26px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.auth-card.wide { max-width: 640px; }
.auth-brand { text-align: center; margin-bottom: 16px; }
.auth-brand .brand-mark { margin: 0 auto 10px; width: 52px; height: auto; }
.auth-brand h1 { margin: 0; font-size: 24px; }
.auth-brand p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.role-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 13px; }
.role-tabs label {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 5px; text-align: center;
  font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); user-select: none;
}
.role-tabs input { display: none; }
.role-tabs input:checked + span { color: var(--euc); }
.role-tabs label:has(input:checked) { border-color: var(--euc); background: var(--euc-soft); color: var(--euc); }

/* ---------- Forms ---------- */
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time],
input[type=number], input[type=month], select, textarea {
  width: 100%; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 7px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--euc); outline-offset: 1px; border-color: var(--euc); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--euc); }

.btn {
  display: inline-block; background: var(--euc); color: #fff; border: 0; border-radius: 9px;
  padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--euc-hover); color: #fff; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--euc); border: 1.5px solid var(--euc); }
.btn-ghost:hover { background: var(--euc-soft); color: var(--euc-hover); border-color: var(--euc-hover); }
.btn-dark { background: var(--navy); } .btn-dark:hover { background: var(--navy-2); }
.btn-danger { background: var(--bad); } .btn-danger:hover { background: #93291f; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Cards, grids, tables ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h2 { margin: 0 0 10px; font-size: 16.5px; }
.card h3 { margin: 13px 0 7px; font-size: 14.5px; }
.grid { display: grid; gap: 11px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .main { padding: 20px 16px; } }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; }
.stat b { display: block; font-size: 22px; font-weight: 600; font-family: 'Proxima Nova', 'proxima-nova', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.stat span { font-size: 12px; color: var(--muted); }

table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; border-bottom: 1.5px solid var(--line); }
table.list td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:hover td { background: #faf8f3; }

/* ---------- Pills / status labels ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-approved, .pill-complete, .pill-current { background: var(--ok-bg); color: var(--ok); }
.pill-uploaded, .pill-pending { background: var(--info-bg); color: var(--info); }
.pill-missing, .pill-incomplete { background: #efece5; color: var(--muted); border: 1px dashed #c9c2b4; }
.pill-expiring, .pill-attention { background: var(--warn-bg); color: var(--warn); }
.pill-expired, .pill-rejected { background: var(--bad-bg); color: var(--bad); }
.pill-former { background: #ece9e2; color: #6d675c; }
.pill-remedial { background: #e9e2f4; color: #5b3f8e; }
.pill-nonremedial { background: var(--euc-soft); color: var(--euc); }
.pill-warning { background: var(--bad); color: #fff; }

/* ---------- Therapist cards ---------- */
.t-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; box-shadow: var(--shadow); position: relative;
}
.t-card.warned { background: var(--pink); border-color: #f2c2cc; }
.warn-banner {
  display: inline-block; background: var(--bad); color: #fff; font-weight: 800; letter-spacing: .08em;
  font-size: 12px; padding: 5px 12px; border-radius: 7px; margin-bottom: 10px; text-transform: uppercase;
}
.t-head { display: flex; gap: 11px; align-items: center; margin-bottom: 9px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--euc-soft);
  color: var(--euc); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 19px; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line);
}
.t-name { font-weight: 700; font-size: 16px; }
.t-meta { font-size: 13px; color: var(--muted); }
.t-rows { font-size: 13px; }
.t-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 2.5px 0; border-bottom: 1px dashed var(--line); }
.t-rows div:last-child { border-bottom: 0; }
.t-rows span:first-child { color: var(--muted); }
.t-actions { margin-top: 9px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Flash + modal ---------- */
.flash { padding: 9px 13px; border-radius: 8px; margin-bottom: 11px; font-weight: 500; font-size: 13.5px; }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-info { background: var(--info-bg); color: var(--info); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(22,36,47,.55); display: flex;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal {
  background: #fff; border-radius: 14px; max-width: 560px; width: 100%; padding: 20px;
  max-height: 88vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.modal h2 { margin-top: 0; }
.hidden { display: none !important; }

/* ---------- Stars ---------- */
.stars { color: var(--sand); font-size: 15px; letter-spacing: 2px; }
.stars b { color: var(--ink); font-size: 13px; letter-spacing: 0; margin-left: 4px; }
.star-input { display: flex; gap: 4px; font-size: 26px; cursor: pointer; user-select: none; }
.star-input span { color: #d9d2c2; transition: color .1s; }
.star-input span.on { color: var(--sand); }

/* ---------- Onboarding steps ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.steps div { flex: 1; height: 5px; border-radius: 4px; background: var(--line); }
.steps div.done { background: var(--euc); }

/* ---------- Search results carousel ---------- */
.rec-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.rec-count { font-size: 13px; color: var(--muted); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 13px; }
.toolbar input, .toolbar select { width: auto; min-width: 170px; }
.toolbar .spacer { flex: 1; }

@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
}

/* ---- Onboarding: qualification pathway picker ---- */
.ob-intro { margin: 0 0 14px; line-height: 1.5; }
.pathway-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.pathway {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pathway:hover { border-color: var(--euc); }
.pathway input[type="radio"] { margin: 3px 2px 0 0; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--euc); }
.pathway:has(input:checked) { border-color: var(--euc); background: var(--euc-soft); box-shadow: 0 0 0 2px rgba(28,151,212,.15); }
.pathway-body { display: block; flex: 1; }
.pathway-title { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.pathway-desc { display: block; font-size: 13.5px; line-height: 1.5; color: #6b6356; }
.ob-note { text-align: center; font-size: 13px; color: #6b6356; margin: 12px 0 0; line-height: 1.5; }
.ob-note-left { font-size: 13px; color: #6b6356; margin: -4px 0 14px; line-height: 1.5; }

/* ---- Onboarding: details form, one field per line ---- */
.ob-heading { margin: 22px 0 6px; font-size: 16px; }
.ob-form .ob-heading:first-of-type { margin-top: 4px; }
.ob-field { margin-bottom: 14px; }
.ob-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.ob-field input { display: block; width: 100%; box-sizing: border-box; }
.ob-help { font-size: 12.5px; color: #6b6356; margin-top: 4px; }
.req { color: #c0392b; font-weight: 700; }

/* ---- Onboarding: one card per document, each part on its own line ---- */
.doc-req {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 12px; background: #fff;
}
.doc-req-label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.doc-req-note { display: block; font-size: 13px; line-height: 1.5; color: #6b6356; margin-bottom: 12px; }
.doc-req-row { display: block; margin-top: 10px; }
.doc-req-row label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.doc-req-row input[type="file"] { display: block; width: 100%; font-size: 13px; }
.doc-req-row input[type="date"] { display: block; width: 100%; max-width: 260px; box-sizing: border-box; }
.ob-declaration { margin: 18px 0 16px; }

/* ---- Admin "log in as" banner ---- */
.impersonate-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  background: #1c97d4; color: #fff;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
  font-size: 13.5px;
}
.impersonate-bar b { color: #fff; }
.impersonate-bar form { margin: 0; }
.impersonate-bar .btn { background: #fff; color: #1c97d4; border-color: #fff; }
.impersonate-bar .btn:hover { background: #e6f3fb; }

/* ---- Collapsible therapist-profile sections ---- */
details.collapsible > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
details.collapsible > summary::-webkit-details-marker { display: none; }
details.collapsible > summary h2 { margin: 0; }
details.collapsible > summary::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px;
  border-right: 2px solid var(--euc); border-bottom: 2px solid var(--euc);
  transform: rotate(45deg); margin-top: -4px; transition: transform .15s;
}
details.collapsible[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.collapsible[open] > summary { margin-bottom: 14px; }
details.collapsible > summary:hover h2 { color: var(--euc); }
details.collapsible > summary:focus-visible { outline: 2px solid var(--euc); outline-offset: 4px; border-radius: 4px; }
/* A closed section beside an open one in a two-column row shouldn't
   stretch to match its neighbour's height. */
.grid > details.collapsible:not([open]) { align-self: start; }

/* ---- Therapist profile: Remuneration section ---- */
.rem-status { font-size: 13.5px; margin: 0 0 14px; }
.rem-choice { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rem-option {
  flex: 1 1 220px; display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px;
  cursor: pointer; background: #fff; font-weight: 600; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.rem-option input { width: 17px; height: 17px; margin: 0; accent-color: #1c97d4; }
.rem-option:hover { border-color: #1c97d4; }
.rem-option.is-selected { border-color: #1c97d4; background: #e8f5fc; color: #0f5f87; }
.rem-panel {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px;
  transition: opacity .15s;
}
.rem-heading { margin: 0 0 10px; font-size: 14.5px; }
.rem-table { margin-top: 4px; }
.rem-table th.num, .rem-table td.num { text-align: right; }
.rem-table b { color: #0f5f87; }
.money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.money span { padding: 0 8px 0 11px; color: #6b6356; font-size: 14px; }
.money input { border: 0 !important; outline-offset: -2px; flex: 1; min-width: 0; padding-left: 2px; }
/* Whichever option isn't selected is greyed out and can't be edited. */
.rem-inactive { opacity: .42; pointer-events: none; filter: grayscale(1); user-select: none; }
.rem-addons { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.rem-addon-options { margin: 10px 0 0 27px; display: flex; flex-direction: column; gap: 8px; }
.rem-addon-flat { max-width: 180px; margin: -2px 0 4px 27px; }
.table-scroll { overflow-x: auto; }
.rem-gst { font-size: 13px; line-height: 1.5; margin: -4px 0 14px; padding: 9px 12px; border-radius: 8px; background: #f7f5f0; border: 1px solid var(--line); }
.rem-gst.is-gst { background: #e8f5fc; border-color: #b9def2; }
.rem-gst .muted { display: block; margin-top: 2px; }

/* ---- Onboarding: pick a state, then a Cave ---- */
.state-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.state-btn {
  flex: 1 1 calc(33.333% - 7px); min-width: 92px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 8px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s, background .15s, transform .05s;
}
.state-btn:hover { border-color: #1c97d4; background: #f2fafe; }
.state-btn:active { transform: translateY(1px); }
.state-code { font-weight: 700; font-size: 17px; letter-spacing: .5px; color: #0f5f87; }
.state-count { font-size: 12px; color: #6b6356; }
.cave-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; max-height: 420px; overflow-y: auto; }
.cave-option {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px;
  cursor: pointer; background: #fff; font-size: 14.5px;
  transition: border-color .15s, background .15s;
}
.cave-option:hover { border-color: #1c97d4; }
.cave-option input { width: 17px; height: 17px; margin: 0 2px 0 0; flex: 0 0 auto; accent-color: #1c97d4; }
.cave-option:has(input:checked) { border-color: #1c97d4; background: #e8f5fc; font-weight: 600; }
@media (max-width: 460px) { .state-btn { flex-basis: calc(50% - 5px); } }

/* ---- Documentation Control ---- */
.stat b.stat-bad { color: #c0392b; }
.stat b.stat-warn { color: #b9770e; }
.dc-filters .field { margin-bottom: 12px; }
.dc-loc-grid {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  max-height: 190px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff;
}
.dc-loc { flex: 0 0 auto; min-width: 190px; font-size: 13px; }
.dc-therapist > summary h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; }
.dc-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dc-table td { vertical-align: top; }
.dc-table .dc-mode { font-size: 11.5px; margin-top: 2px; }
.dc-table tr.dc-bad { background: #fdf3f2; }
.dc-table tr.dc-warn { background: #fdf8ec; }
.dc-date, .dc-upload { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.dc-date input[type=date], .dc-upload input[type=date] { max-width: 150px; }
.dc-upload input[type=file] { max-width: 150px; font-size: 12px; }
.dc-nodate { font-size: 11.5px; color: #c0392b; margin-top: 3px; }
.dc-remove { color: #c0392b; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.modal-actions .btn { flex: 1 1 auto; }
.add-cave { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.add-cave h3 { margin: 0 0 4px; font-size: 14.5px; }
.doc-approval { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 3px 0 0; }
.doc-approval .loc-name { font-size: 12px; font-weight: 600; min-width: 92px; }

/* ---------- Contract signing ---------- */
.pdf-frame-card { padding: 8px; }
.pdf-frame { width: 100%; height: 75vh; min-height: 480px; border: 0; border-radius: 8px; background: #fff; }
.sig-pad { position: relative; border: 2px dashed var(--line); border-radius: 10px; background: #fff; }
.sig-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; }
.sig-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); pointer-events: none; font-size: 14px; }
.esign-log { font-size: 12.5px; }
.esign-log td { vertical-align: top; }
@media (max-width: 800px) { .pdf-frame { height: 60vh; } .sig-pad canvas { aspect-ratio: 2 / 1; } }

/* ---------- Location checkboxes ---------- */
.loc-picker { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.loc-filter { margin-bottom: 8px; }
.loc-picker-list { max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.loc-state { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.loc-item { font-size: 13.5px; align-items: center; }
.loc-count { margin-top: 6px; }

/* ---------- Document viewer ---------- */
.doc-viewer { padding: 10px; }
.doc-viewer-bar { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; }
.doc-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  font-size: 28px; line-height: 1; color: var(--ink); text-decoration: none; background: var(--stone); border: 1px solid var(--line); }
.doc-close:hover { background: var(--euc-soft); color: var(--euc-hover); }
.doc-viewer-img { text-align: center; background: #f2f0eb; border-radius: 8px; padding: 10px; }
.doc-viewer-img img { max-width: 100%; max-height: 78vh; height: auto; }
.pill-optional { background: #f3f1ec; color: var(--muted); }

/* ---------- Bulk upload ---------- */
.bulk-steps { padding-left: 20px; margin: 0 0 12px; font-size: 14px; }
.bulk-steps li { margin-bottom: 8px; }
.bulk-cols { margin-bottom: 14px; font-size: 13px; }
.bulk-cols summary { cursor: pointer; color: var(--euc); font-weight: 600; margin-bottom: 6px; }
.bulk-cols code { font-size: 12.5px; }
