/* CliniOps Patient Recruitment — shares the CliniOps CTMS design tokens */
:root {
  --c-ink: #042d43;
  --c-ink2: #27485a;
  --c-text: #183b4e;
  --c-sub: #5d7888;
  --c-muted: #9db3c2;
  --c-blue: #07a7f9;
  --c-blue2: #1e75c6;
  --c-sky: #e8f7ff;
  --c-mint: #8bed4f;
  --c-green: #20b486;
  --c-green-bg: #e5f7f0;
  --c-amber: #c27a0e;
  --c-amber-bg: #fdf3e2;
  --c-red: #d2454a;
  --c-red-bg: #fdecec;
  --c-purple: #6a5fe0;
  --c-purple-bg: #efedfd;
  --c-line: #dbeaf2;
  --c-line2: #eef5f9;
  --c-surface: #ffffff;
  --c-canvas: #f4f8fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(4, 45, 67, .06), 0 6px 18px rgba(4, 45, 67, .05);
  --side: 236px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--c-canvas); }
a { color: var(--c-blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--c-ink); margin: 0; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 10px; }
.muted { color: var(--c-sub); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 14px; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

/* ---- Shell ---- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--c-ink); color: #cfe3ee; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; color: #fff; font-weight: 700; font-size: 15px; }
.brand small { display: block; font-weight: 500; color: var(--c-muted); font-size: 11px; letter-spacing: .02em; }
.brand .org-logo { width: 34px; height: 34px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.brand .org-logo img { max-width: 30px; max-height: 30px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: #0b4363; display: grid; place-items: center; }
/* The menu scrolls inside the sidebar so the name and Sign out below it stay on screen however long the menu is. */
.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.nav a { display: flex; align-items: center; gap: 10px; color: #cfe3ee; padding: 9px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav a.active { background: rgba(7, 167, 249, .16); color: #fff; box-shadow: inset 3px 0 0 var(--c-blue); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav-group { margin-top: 14px; }
.nav-head { display: flex; align-items: flex-start; gap: 8px; line-height: 18px; padding: 0 10px 4px; color: #8fb3c7; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav-head span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #cfe3ee; font-size: 10px; letter-spacing: 0; }
.nav-group a { padding-top: 7px; padding-bottom: 7px; }
.side .who { flex: none; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 12px 8px 0; font-size: 12px; }
.side .who b { color: #fff; display: block; font-size: 13px; }
.side .who button { margin-top: 8px; }
.main { min-width: 0; }
.topbar { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: 10px 24px; display: flex; gap: 14px; align-items: center; position: sticky; top: 0; z-index: 5; }
.topbar .study-pick { display: flex; gap: 8px; align-items: center; min-width: 0; }
.topbar select { max-width: 420px; }
.page { padding: 22px 24px 48px; max-width: 1360px; }
.page-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--c-sub); margin-top: 4px; }
.menu-btn { display: none; }

/* ---- Cards & grids ---- */
.card { background: var(--c-surface); border: 1px solid #e5e9f2; border-radius: 4px; box-shadow: 0 1px 3px 0 rgba(54, 74, 99, .05); padding: 16px 18px; min-width: 0; transition: box-shadow .2s ease; }
.card:has(.pr-chart):hover { box-shadow: 0 6px 22px rgba(4, 45, 67, .08); } /* the LMS's dashboard charts lift on hover */
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
.card-head h2 { color: #042d43; font-weight: 700; }
.card > h2, .card > .card-head { margin-bottom: 12px; }
.card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-head .muted { font-size: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-kpi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }

/* Headline figures in the LMS's Report Center tiles (.rc-kpi): a pale tile with a 4 px top edge in its tone, and the
   number in the same tone. Tones as in the LMS; navy unless a page says otherwise. */
.card.kpi { --tone: #042d43; background: #f5f8fb; border: 1px solid #dce4ec; border-top: 4px solid var(--tone); border-radius: 8px; box-shadow: none;
  padding: 14px 10px; text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 116px; }
.kpi .label { order: 2; margin-top: 5px; color: #546e7a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; overflow-wrap: anywhere; }
.kpi .value { order: 1; font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--tone); font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 16px; color: #607d8b; font-weight: 700; margin-left: 2px; }
.kpi .foot { order: 4; color: #546e7a; font-size: 12px; margin-top: 5px; }
.kpi .meter { order: 5; margin: 8px auto 0; width: 80%; }
.kpi > :not(.label):not(.value):not(.foot):not(.meter) { order: 3; }
.kpi.tone-navy { --tone: #042d43; } .kpi.tone-teal { --tone: #00838f; } .kpi.tone-grey { --tone: #607d8b; }
.kpi.tone-green { --tone: #2e7d32; } .kpi.tone-amber { --tone: #b26a00; } .kpi.tone-red { --tone: #c62828; }
.meter { height: 6px; background: var(--c-line2); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, #6aa5e6, #2a78d6); border-radius: 3px; }

/* ---- Buttons & forms ---- */
button, .btn { font: inherit; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); padding: 7px 13px; cursor: pointer; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--c-blue); text-decoration: none; }
button.primary, .btn.primary { background: var(--c-blue2); border-color: var(--c-blue2); color: #fff; }
button.primary:hover { background: #1866ae; }
button.success { background: var(--c-green); border-color: var(--c-green); color: #fff; }
button.danger { color: var(--c-red); }
button.ghost { background: transparent; border-color: transparent; color: inherit; }
button.ghost:hover { background: rgba(255, 255, 255, .08); }
button.sm, .btn.sm { padding: 4px 9px; font-size: 12px; }
.btn.primary:hover { background: #1866ae; color: #fff; }
[hidden] { display: none !important; }
input::placeholder { text-transform: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 600; color: var(--c-ink2); font-size: 12px; margin-bottom: 4px; }
input, select, textarea { font: inherit; color: var(--c-text); border: 1px solid #c9dce7; border-radius: 8px; padding: 8px 10px; width: 100%; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--c-blue); outline: none; box-shadow: 0 0 0 3px rgba(7, 167, 249, .15); }
input:disabled, select:disabled { background: var(--c-line2); color: var(--c-sub); }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { min-height: 72px; resize: vertical; }
.field { margin-bottom: 12px; }
.field .hint { color: var(--c-sub); font-size: 12px; margin-top: 3px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 13px; color: var(--c-text); }
.check input { margin-top: 3px; }
/* A choice between a few options, each a bordered row; the chosen one is outlined (the wizard's demonstration-data step). */
.choice-group { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice-group legend { font-weight: 600; color: var(--c-ink); margin-bottom: 6px; padding: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 8px; font-size: 13px; color: var(--c-text); cursor: pointer; }
.choice input { margin-top: 3px; }
.choice:has(input:checked) { border-color: var(--c-blue); box-shadow: 0 0 0 1px var(--c-blue) inset; background: rgba(7, 167, 249, .05); }
.yn { display: flex; gap: 6px; }
.yn label { display: inline-flex; gap: 6px; align-items: center; border: 1px solid #c9dce7; border-radius: 8px; padding: 7px 14px; cursor: pointer; font-weight: 500; margin: 0; color: var(--c-text); font-size: 13px; }
.yn input { margin: 0; }
.yn label:has(input:checked) { border-color: var(--c-blue2); background: var(--c-sky); color: var(--c-ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters > * { width: auto; min-width: 160px; }
.filters input[type=search] { min-width: 240px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-sub); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--c-line2); vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f8fbfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--c-line2); color: var(--c-ink2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-info { background: var(--c-sky); color: var(--c-blue2); }
.b-good { background: var(--c-green-bg); color: #13805f; }
.b-warn { background: var(--c-amber-bg); color: var(--c-amber); }
.b-bad { background: var(--c-red-bg); color: var(--c-red); }
.b-purple { background: var(--c-purple-bg); color: var(--c-purple); }
.b-done { background: var(--c-ink); color: #fff; }
.b-done::before { background: var(--c-mint); opacity: 1; }
.b-mute { background: var(--c-line2); color: var(--c-sub); }
.outcome { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 12px; white-space: nowrap; }
.outcome svg { width: 16px; height: 16px; }
.o-pass { color: #13805f; }
.o-fail { color: var(--c-red); }
.o-pending { color: var(--c-amber); }

/* ---- Workflow stepper ---- */
.stepper { display: flex; gap: 0; margin: 4px 0 2px; overflow-x: auto; }
.step { flex: 1; min-width: 120px; position: relative; padding-top: 30px; text-align: center; font-size: 12px; color: var(--c-sub); font-weight: 600; }
.step::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--c-line); }
.step:first-child::before { display: none; }
.step .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--c-line); display: grid; place-items: center; z-index: 1; font-size: 11px; }
.step.done { color: var(--c-ink); }
.step.done .dot { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.step.done::before, .step.current::before { background: var(--c-green); }
.step.current { color: var(--c-blue2); }
.step.current .dot { border-color: var(--c-blue2); color: var(--c-blue2); box-shadow: 0 0 0 4px rgba(30, 117, 198, .14); }
.step.stopped .dot { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.step.stopped { color: var(--c-red); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--c-line); margin: 18px 0 16px; overflow-x: auto; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--c-sub); padding: 9px 14px; }
.tabs button.active { color: var(--c-ink); border-bottom-color: var(--c-blue2); }
.tabs .count { background: var(--c-line2); border-radius: 999px; padding: 0 7px; font-size: 11px; }

/* ---- Info lists, timeline, callouts ---- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--c-sub); }
.kv dd { margin: 0; color: var(--c-ink); font-weight: 500; }
.callout { border-radius: 8px; padding: 10px 14px; background: var(--c-sky); color: var(--c-ink2); font-size: 13px; border-left: 3px solid var(--c-blue2); }
.callout.warn { background: var(--c-amber-bg); border-color: var(--c-amber); }
.callout.bad { background: var(--c-red-bg); border-color: var(--c-red); }
.callout.good { background: var(--c-green-bg); border-color: var(--c-green); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-blue2); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--c-line); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--c-sub); font-size: 12px; }
.empty { color: var(--c-sub); text-align: center; padding: 22px 10px; font-size: 13px; }
.list-actions { list-style: none; margin: 0; padding: 0; }
.list-actions li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--c-line2); font-size: 13px; }
.list-actions li:last-child { border-bottom: 0; }
.qcount { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--c-sky); color: var(--c-blue2); font-weight: 700; display: inline-grid; place-items: center; font-size: 12px; }
details.queue summary { cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--c-line2); font-weight: 600; color: var(--c-ink); list-style: none; }
details.queue summary::-webkit-details-marker { display: none; }
details.queue summary::after { content: "›"; margin-left: auto; color: var(--c-muted); font-size: 18px; transition: transform .15s; }
details.queue[open] summary::after { transform: rotate(90deg); }
details.queue .items { padding: 4px 0 8px 36px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Charts ---- */
/* Charts (public/js/charts.js): ECharts boxes in the LMS's look. The hidden table under each repeats its numbers. */
.pr-chart-wrap { position: relative; min-width: 0; }
.pr-chart { width: 100%; min-width: 0; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--c-sub); margin-top: 6px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#tip { position: fixed; pointer-events: none; z-index: 60; background: var(--c-ink); color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px; opacity: 0; transition: opacity .1s; max-width: 260px; box-shadow: var(--shadow); }
#tip.on { opacity: 1; }

/* ---- Documents ---- */
.dropzone { border: 2px dashed #b8d3e2; border-radius: 10px; padding: 18px; text-align: center; color: var(--c-sub); background: #fafdff; transition: background .15s, border-color .15s; }
.dropzone.over { border-color: var(--c-blue2); background: var(--c-sky); }
.doc-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-line2); flex-wrap: wrap; }
.doc-row:last-child { border-bottom: 0; }
.doc-ico { width: 34px; height: 40px; border-radius: 5px; background: var(--c-red-bg); color: var(--c-red); display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; }
.doc-ico.img { background: var(--c-sky); color: var(--c-blue2); }
.doc-main { flex: 1; min-width: 180px; }
.doc-main b { color: var(--c-ink); }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.req-list li { display: flex; gap: 8px; align-items: center; font-size: 13px; }

/* ---- Modal & toast ---- */
.modal-back { position: fixed; inset: 0; background: rgba(4, 45, 67, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(4, 45, 67, .3); }
.modal.wide { width: min(860px, 100%); }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--c-line); display: flex; align-items: center; gap: 10px; }
.modal .body { padding: 18px 20px; }
.modal footer { padding: 12px 20px; border-top: 1px solid var(--c-line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.esign { background: var(--c-line2); border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.esign .meaning { font-size: 12px; color: var(--c-ink2); margin-bottom: 8px; }
.form-error { color: var(--c-red); font-size: 13px; margin-top: 8px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--c-ink); color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; transition: all .2s; z-index: 70; pointer-events: none; font-weight: 500; max-width: calc(100% - 32px); }
#toast.on { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--c-red); }

/* ---- Auth & portal ---- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, var(--c-ink) 0 40%, var(--c-canvas) 40%); }
.auth .card { width: min(420px, 100%); padding: 26px; }
.auth .brand { color: var(--c-ink); padding: 0 0 16px; }
.portal { max-width: 860px; margin: 0 auto; padding: 0 16px 60px; }
.portal-top { background: var(--c-ink); color: #fff; }
.portal-top .inner { max-width: 860px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.portal-top .brand { padding: 0; }
.portal-hero { background: var(--c-ink); color: #cfe3ee; padding: 8px 0 60px; }
.portal-hero .inner { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.portal-hero h1 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.portal .card { margin-top: 16px; }
.portal .lift { margin-top: -44px; }
.icf section { margin-bottom: 14px; }
.icf h3 { margin-bottom: 4px; }
.quiz fieldset { border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 14px; margin: 0 0 10px; }
.quiz legend { font-weight: 600; color: var(--c-ink); padding: 0 4px; }
.quiz .opt { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-weight: 500; font-size: 13px; color: var(--c-text); margin: 0; }
.quiz fieldset.wrong { border-color: var(--c-red); background: var(--c-red-bg); }
.sig { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 22px; color: var(--c-ink); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .g-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 40; width: 250px; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(4, 45, 67, .4); }
  .menu-btn { display: inline-flex; }
  .topbar, .page { padding-left: 16px; padding-right: 16px; }
  .g2, .g3, .form-grid { grid-template-columns: 1fr; }
  .g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span2 { grid-column: auto; }
  .filters > * { flex: 1 1 100%; }
  .hbar { grid-template-columns: minmax(90px, 38%) 1fr 48px; }
  /* Organisation, Study and Site each take a full row, label on the left. */
  .topbar { flex-wrap: wrap; gap: 8px 12px; }
  .topbar .study-pick { order: 2; flex: 1 1 100%; }
  .topbar .study-pick label { flex: 0 0 82px; }
  .topbar .study-pick select { flex: 1; min-width: 0; max-width: none; }
  .step { min-width: 62px; font-size: 11px; padding-top: 28px; }
  .step::before { left: -50%; }
}

/* ---- LMS-style sign-in (matches lms.cliniops.com) ---- */
.lms { min-height: 100vh; display: flex; flex-direction: column; background: #f5f6fa; color: #526484; }
.lms-head { background: #fff; box-shadow: 0 1px 3px rgba(54, 74, 99, .05); height: 64px; display: flex; align-items: center; padding: 0 24px; gap: 16px; }
.lms-head img { height: 44px; width: auto; display: block; }
.lms-head-btn { margin-left: auto; border-radius: 4px; padding: 5px 12px; font-size: 13px; background: #1e75c6; border-color: #1e75c6; color: #fff; }
.lms-head-btn:hover { color: #fff; }
.lms-head .prod { color: #364a63; font-weight: 600; font-size: 14px; border-left: 1px solid #dbdfea; padding-left: 14px; }
.lms-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 48px 16px; }
.lms-card { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(54, 74, 99, .05); width: 100%; max-width: 420px; padding: 28px 24px 22px; }
.lms-card h1 { font-size: 18px; text-align: center; color: #364a63; font-weight: 700; margin-bottom: 22px; }
.lms-card p { font-size: 14px; }
.lms-card label { font-size: 14px; color: #344357; font-weight: 600; margin-bottom: 6px; }
.lms-card .label-row { display: flex; justify-content: space-between; align-items: baseline; }
.lms-card .label-row a { font-size: 12px; font-weight: 500; }
.lms-card input:not([type=checkbox]) { height: 38px; border: 1px solid #dbdfea; border-radius: 4px; padding: 6px 12px; font-size: 14px; }
.lms-card input:focus { border-color: #1e75c6; box-shadow: 0 0 0 3px rgba(30, 117, 198, .12); }
.lms-card .field { margin-bottom: 16px; }
.lms-card .remember { display: flex; gap: 8px; align-items: center; font-weight: 400; color: #526484; font-size: 14px; margin: 0 0 16px; }
.lms-card button.primary { width: 100%; justify-content: flex-start; height: 38px; border-radius: 4px; background: #1e75c6; border-color: #1e75c6; font-weight: 600; padding: 0 16px; }
.lms-card button.primary:hover { background: #175c9c; }
.lms-card .divider { border-top: 1px solid #e5e9f2; margin: 20px 0 12px; }
.lms-card .center { text-align: center; font-size: 13px; }
.lms-card .center a { text-decoration: underline; }
.lms-card a { color: #175c9c; }
.lms-card .notice { font-size: 13px; background: #f5f6fa; border-radius: 4px; padding: 10px 12px; margin-bottom: 16px; }
.lms-card .notice.ok { background: #e5f7f0; color: #13805f; }
/* ---- Site footer, after customerexperience.cliniops.com ---- */
body { display: flex; flex-direction: column; min-height: 100vh; }
#app { flex: 1 0 auto; }
/* Footer, as on the CliniOps LMS (DashLite's nk-footer): a white bar, wordmark and release on the left, policies on the right. */
.site-footer { margin-top: auto; background: #fff; border-top: 1px solid #e5e9f2; box-shadow: 0 1px 3px 0 rgba(54, 74, 99, .05); padding: 20px 22px; font-size: 13px; color: #4d5c73; }
.site-footer .footer-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.site-footer .footer-copyright { display: flex; align-items: center; gap: 8px; color: #4d5c73; }
.site-footer .footer-brand { height: 20px; width: auto; flex: 0 0 auto; display: block; } /* the wordmark is 5:1: height fixed, width follows */
.site-footer .footer-copyright a:hover .footer-brand { opacity: .75; }
.site-footer .footer-build { color: #4d5c73; opacity: .85; }
.site-footer .footer-links { display: flex; gap: 4px 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer .footer-links a { color: #4d5c73; }
.site-footer .footer-links a:hover { color: #1e75c6; text-decoration: none; }
@media (max-width: 575px) { .site-footer .footer-wrap { justify-content: center; text-align: center; } }
.main { display: flex; flex-direction: column; min-height: 100vh; }
.main > .page { flex: 1 0 auto; width: 100%; }
.lms-doc { max-width: 760px; padding: 28px 28px; }
.lms-doc h1 { text-align: left; font-size: 22px; }
.lms-doc h2 { font-size: 15px; margin: 18px 0 6px; color: #364a63; }
@media (max-width: 600px) {
  .lms-main { padding: 24px 12px; }
  .lms-head-btn { margin-left: auto; border-radius: 4px; padding: 5px 12px; font-size: 13px; background: #1e75c6; border-color: #1e75c6; color: #fff; }
.lms-head-btn:hover { color: #fff; }
.lms-head .prod { display: none; }
}

/* ---- Site guide & print ---- */
.guide { max-width: 980px; }
.guide h1 { font-size: 22px; margin: 4px 0 6px; }
.guide h2 { font-size: 15px; margin: 18px 0 8px; border-bottom: 1px solid var(--c-line); padding-bottom: 4px; }
.guide h3 { font-size: 13px; margin: 10px 0 4px; }
.guide table { margin-bottom: 4px; }
.guide td, .guide th { padding: 6px 8px; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .side, .topbar, .no-print, #toast, #tip { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .guide section { break-inside: avoid-page; }
  .guide tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ---- Site performance ---- */
.perf td:first-child { min-width: 210px; }
.perf td:last-child { min-width: 230px; }
.alert-chip { display: block; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; margin: 0 0 4px; }

/* ---- Installation wizard ---- */
.wiz { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.wiz-steps { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(54, 74, 99, .05); padding: 16px 14px; }
.wiz-title { font-weight: 700; color: #364a63; margin-bottom: 10px; }
.wiz-step { display: flex; gap: 10px; align-items: center; padding: 7px 4px; font-size: 14px; color: #8094ae; }
.wiz-step .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #dbdfea; display: grid; place-items: center; font-size: 12px; flex: none; }
.wiz-step.current { color: #1e75c6; font-weight: 600; }
.wiz-step.current .n { border-color: #1e75c6; background: #1e75c6; color: #fff; }
.wiz-step.done { color: #364a63; }
.wiz-step.done .n { background: #e5f7f0; border-color: #20b486; color: #13805f; }
.wiz-body { max-width: none; }
.wiz-body h1 { margin-bottom: 10px; }
@media (max-width: 760px) { .wiz { grid-template-columns: 1fr; } .wiz-steps { display: flex; flex-wrap: wrap; gap: 4px 12px; } .wiz-title { width: 100%; } }
.wiz-body button.primary { width: auto; justify-content: center; padding: 0 18px; }
.wiz-body .row button { height: 38px; }
input[readonly] { background: #f5f6fa; color: var(--c-sub); }
.site-pick { border: 1px solid var(--c-line); border-radius: 8px; padding: 8px 12px 10px; margin: 0 0 8px; }
.site-pick legend { font-size: 12px; font-weight: 600; color: var(--c-ink2); padding: 0 4px; }
.site-pick label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 13px; margin: 4px 0 0; }
.site-pick input { width: auto; }
.search-box { min-width: 220px; flex: 1 1 260px; max-width: 420px; }
.lms-card .or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: #8094ae; font-size: 12px; }
.lms-card .or::before, .lms-card .or::after { content: ''; flex: 1; border-top: 1px solid #e5e9f2; }

/* Approved consent form PDF: viewer, the blanks the participant completes, and the signed copy */
.pdf-frame { border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; background: var(--c-canvas); }
.pdf-frame iframe { display: block; width: 100%; height: min(75vh, 900px); border: 0; }
.pdf-page { border: 1px solid var(--c-line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.pdf-page-no { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--c-sub); margin-bottom: 8px; }
.pdf-page fieldset { border: 0; padding: 0; margin: 0; }
input.initials { width: 6em; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.initials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.initials-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.initials-grid input.initials { width: 100%; }
.signed-copy { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--c-canvas); }

/* ---- Referral journey (REF-04) ---- */
.journey { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.journey::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.journey li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 10px 0; position: relative; }
.journey .seq { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--c-line); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: var(--c-sub); position: relative; z-index: 1; }
.journey li.primary .seq { border-color: var(--c-blue2); color: var(--c-blue2); background: var(--c-sky); }
.journey li.voided .body { opacity: .6; }
.journey li.voided .body b { text-decoration: line-through; }
.journey .body { border-bottom: 1px solid var(--c-line2); padding-bottom: 10px; min-width: 0; }
.journey li:last-child .body { border-bottom: 0; }
