/*
 * ReleaseSupport super-admin workspace.
 * Loaded only for super admins (body.ras-super) and on the sign-in page (body.ras-login),
 * so company dashboards keep their own company colors.
 *
 * Tokens: stone neutrals for surfaces, deep teal for navigation, teal for actions.
 */
:root {
  --rs-ink: #1c2b2b;
  --rs-ink-2: #4b5c5b;
  --rs-ink-3: #66726f;
  --rs-canvas: #f3f3f0;
  --rs-canvas-2: #ebeae6;
  --rs-surface: #ffffff;
  --rs-line: #e1e0db;
  --rs-line-strong: #cbc9c2;
  --rs-nav: #12333b;
  --rs-nav-hover: #1c444d;
  --rs-nav-active: #275861;
  --rs-nav-ink: #cfe0df;
  --rs-nav-ink-2: #8fb0b1;
  --rs-accent: #1f7a6d;
  --rs-accent-strong: #165f55;
  --rs-accent-soft: #e2f0ec;
  --rs-warn: #8a5300;
  --rs-warn-soft: #fbf0d9;
  --rs-danger: #b42318;
  --rs-danger-soft: #fdecea;
  --rs-focus: #4fa596;
  --rs-radius-sm: 6px;
  --rs-radius: 10px;
  --rs-radius-lg: 14px;
  --rs-font: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rs-header-h: 64px;
  --rs-nav-w: 236px;
}

/* ---------- Page frame ---------- */
body.ras-super {
  /* Pages that style with the company theme variables get the workspace teal instead of navy. */
  --brand-primary: var(--rs-accent);
  --brand-accent: var(--rs-focus);
  background: var(--rs-canvas);
  color: var(--rs-ink);
  font-family: var(--rs-font);
  font-size: 14px;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
.ras-super a { text-underline-offset: 3px; }
.ras-super :focus-visible { outline: 2px solid var(--rs-focus); outline-offset: 2px; }
.ras-super input:focus, .ras-super select:focus, .ras-super textarea:focus {
  outline: 2px solid var(--rs-focus); outline-offset: 1px; border-color: var(--rs-accent);
}

.ras-skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--rs-surface); color: var(--rs-ink); padding: 10px 14px; border-radius: var(--rs-radius);
  box-shadow: 0 4px 16px rgb(18 51 59 / .18); font-weight: 600;
}
.ras-skip-link:focus { top: 12px; }

/* Header */
.ras-super > header {
  position: sticky; top: 0; z-index: 50; height: var(--rs-header-h);
  background: var(--rs-surface); border-bottom: 1px solid var(--rs-line); box-shadow: none;
}
.ras-super > header > div { max-width: none; height: 100%; padding: 0 22px; }
.ras-super > header h1 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--rs-ink); }
.ras-super > header p { color: var(--rs-ink-3); }
.ras-super #notificationBell {
  border: 1px solid var(--rs-line); background: var(--rs-surface); border-radius: 50%;
  width: 38px; height: 38px; color: var(--rs-ink-2);
}
.ras-super #notificationBell:hover { background: var(--rs-canvas); }
.ras-super #headerNotificationBadge {
  background: var(--rs-danger); right: -3px; top: -3px; border: 2px solid var(--rs-surface);
  font-size: 9px; min-width: 18px; height: 18px;
}
.ras-super #accountMenuButton { border: 0; background: transparent; padding: 4px 6px 4px 10px; gap: 10px; }
.ras-super #accountMenuButton:hover { background: var(--rs-canvas); }
.ras-account-avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--rs-accent-soft); color: var(--rs-accent-strong); font-weight: 700; font-size: 13px;
}
.ras-account-label { text-align: left; line-height: 1.25; min-width: 90px; }
.ras-account-label strong { display: block; font-size: 13px; font-weight: 600; color: var(--rs-ink); }
.ras-account-label small { display: block; font-size: 11px; color: var(--rs-ink-3); margin-top: 2px; }

/* Brand mark: a booking-calendar tile (no letter monogram) */
.ras-mark {
  position: relative; display: inline-block; width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px; background: var(--rs-nav); font-size: 0; color: transparent; overflow: hidden;
}
.ras-mark::before { /* calendar header band */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--rs-accent);
}
.ras-mark::after { /* check mark: the confirmed booking */
  content: ""; position: absolute; left: 11px; top: 13px; width: 12px; height: 7px;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
}
.ras-mark em { display: none; }

/* Workspace grid: sidebar + content */
.ras-super > main.grid {
  display: grid; grid-template-columns: var(--rs-nav-w) minmax(0, 1fr);
  max-width: none; margin: 0; padding: 0; gap: 0;
  min-height: calc(100dvh - var(--rs-header-h));
  /* Paint the navigation column full height, however long the page gets. */
  background: linear-gradient(to right, var(--rs-nav) var(--rs-nav-w), transparent var(--rs-nav-w));
}
.ras-super > main.grid > aside, .ras-super > main.grid > section,
.ras-super > main.grid > div { grid-column: auto; min-width: 0; }
.ras-super > main.grid > section { padding: 28px 32px 56px; max-width: 1280px; }

/* Sidebar */
.ras-super > main.grid > aside, .ras-super > main.grid > div:first-child:has(> aside) {
  position: sticky; top: var(--rs-header-h); align-self: start;
}
.ras-super aside > nav {
  background: var(--rs-nav); color: var(--rs-nav-ink); border: 0; border-radius: 0; box-shadow: none;
  min-height: calc(100dvh - var(--rs-header-h)); padding: 18px 12px 24px;
  display: flex; flex-direction: column; gap: 2px;
}
.ras-super aside > nav > a {
  display: flex; align-items: center; gap: 10px; color: var(--rs-nav-ink);
  font-size: 13.5px; font-weight: 500; padding: 9px 12px; border-radius: 8px; margin: 0;
  text-decoration: none; transition: background-color .12s;
}
.ras-super aside > nav > a:hover { background: var(--rs-nav-hover); color: #fff; }
.ras-super aside > nav > a.bg-slate-900, .ras-super aside > nav > a[aria-current="page"] {
  background: var(--rs-nav-active); color: #fff; box-shadow: inset 3px 0 0 #7cc7b8;
}
.ras-super aside > nav svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .9; }
.ras-super aside > nav > .ras-nav-group, .ras-super aside > nav > div.border-t {
  border: 0; margin: 18px 12px 6px; padding: 0; color: var(--rs-nav-ink-2);
  font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.ras-nav-count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f4c56b; color: #3d2a00; font-size: 11px; font-weight: 700;
}
.ras-nav-count.hidden { display: none; }

/* ---------- Page heading ---------- */
.ras-kicker, .ras-crumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 13px; color: var(--rs-ink-3); font-weight: 500; letter-spacing: 0; text-transform: none;
}
.ras-crumbs a { color: var(--rs-ink-2); text-decoration: none; }
.ras-crumbs a:hover { color: var(--rs-accent-strong); text-decoration: underline; }
.ras-crumbs span[aria-hidden] { color: var(--rs-line-strong); }
.ras-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 6px 0 24px; }
.ras-heading h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--rs-ink); }
.ras-heading p { font-size: 14px; color: var(--rs-ink-2); margin-top: 6px; max-width: 64ch; }
.ras-heading .ras-actions { margin-top: 0; }
.ras-role { display: none; }
.ras-section-title { font-size: 16px; font-weight: 700; margin: 32px 0 12px; color: var(--rs-ink); }

/* ---------- Buttons & links ---------- */
.ras-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.ras-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--rs-accent);
  background: var(--rs-accent); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .12s, border-color .12s;
}
.ras-button:hover { background: var(--rs-accent-strong); border-color: var(--rs-accent-strong); }
.ras-button.secondary {
  background: var(--rs-surface); color: var(--rs-ink); border-color: var(--rs-line-strong);
}
.ras-button.secondary:hover { background: var(--rs-canvas); border-color: var(--rs-ink-3); }
.ras-button.quiet { background: transparent; border-color: transparent; color: var(--rs-accent-strong); padding: 0 10px; }
.ras-button.quiet:hover { background: var(--rs-accent-soft); }
.ras-button svg { width: 16px; height: 16px; }
.ras-text-link { color: var(--rs-accent-strong); font-weight: 600; font-size: 13px; text-decoration: none; }
.ras-text-link:hover { text-decoration: underline; }
.ras-skip-button {
  border: 1px solid var(--rs-line-strong); border-radius: 8px; padding: 9px 14px;
  background: var(--rs-surface); color: var(--rs-ink-2); font-size: 13px; font-weight: 600;
}
.ras-super .flex.justify-between:has(.ras-skip-button) { gap: 10px; flex-wrap: wrap; }

/* Restyle legacy Tailwind markup inside the super-admin workspace */
.ras-super .bg-slate-900 { background-color: var(--rs-ink); }
.ras-super button.bg-slate-900, .ras-super a.bg-slate-900:not(aside a) {
  background-color: var(--rs-accent); border-color: var(--rs-accent);
}
.ras-super button.bg-slate-900:hover, .ras-super a.bg-slate-900:not(aside a):hover { background-color: var(--rs-accent-strong); }
.ras-super .bg-emerald-600 { background-color: var(--rs-accent); }
.ras-super .hover\:bg-emerald-700:hover { background-color: var(--rs-accent-strong); }
.ras-super .text-slate-900 { color: var(--rs-ink); }
.ras-super .text-slate-500, .ras-super .text-slate-600 { color: var(--rs-ink-2); }
.ras-super .text-slate-400 { color: var(--rs-ink-3); }
.ras-super .bg-slate-50 { background-color: #f8f8f6; }
.ras-super .bg-slate-100 { background-color: var(--rs-canvas); }
.ras-super .border, .ras-super .border-b, .ras-super .border-t, .ras-super .border-slate-200,
.ras-super .border-slate-300 { border-color: var(--rs-line); }
.ras-super .rounded-2xl { border-radius: var(--rs-radius-lg); }
.ras-super .rounded-xl { border-radius: var(--rs-radius); }
.ras-super .shadow-sm { box-shadow: none; }
.ras-super .text-blue-700, .ras-super .text-blue-600 { color: var(--rs-accent-strong); }
.ras-super .app-select { border-color: var(--rs-line-strong); }
.ras-super input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),
.ras-super select, .ras-super textarea { border-color: var(--rs-line-strong); background-color: var(--rs-surface); }

/* Tables */
.ras-super table { border-collapse: separate; border-spacing: 0; }
.ras-super table.border { border: 0; }
.ras-super thead.bg-slate-900, .ras-super thead.bg-slate-900 th, .ras-super thead th {
  background: transparent; color: var(--rs-ink-3);
}
.ras-super th {
  font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--rs-line-strong);
}
.ras-super td { padding: 12px; border-bottom: 1px solid var(--rs-line); vertical-align: middle; }
.ras-super tbody tr:last-child td { border-bottom: 0; }
.ras-super tbody tr.border-b { border: 0; }

/* ---------- Surfaces ---------- */
.ras-panel {
  background: var(--rs-surface); border: 1px solid var(--rs-line); border-radius: var(--rs-radius-lg);
}
.ras-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--rs-line);
}
.ras-panel__head h2 { font-size: 15px; font-weight: 700; }
.ras-panel__head p { font-size: 13px; color: var(--rs-ink-2); margin-top: 2px; }
.ras-panel__body { padding: 16px 20px; }
.ras-empty { padding: 28px 20px; color: var(--rs-ink-2); text-align: center; }
.ras-empty strong { display: block; color: var(--rs-ink); font-size: 15px; margin-bottom: 4px; }

.ras-guide-card {
  background: var(--rs-surface); border: 1px solid var(--rs-line); border-radius: var(--rs-radius-lg);
  padding: 22px 24px; margin: 16px 0;
}
.ras-guide-card h2 { font-size: 17px; font-weight: 700; color: var(--rs-ink); }
.ras-guide-card p, .ras-guide-card li { font-size: 14px; line-height: 1.7; color: var(--rs-ink-2); max-width: 78ch; }
.ras-guide-card ol { padding-left: 22px; list-style: decimal; }
.ras-guide-card li { padding: 4px 0; }
.ras-guide-card code { font-size: 12.5px; background: var(--rs-canvas); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; color: var(--rs-ink); }
.ras-guide-card a:not(.ras-button) { color: var(--rs-accent-strong); text-decoration: underline; }
.ras-guide-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rs-line); }
.ras-guide-step:last-of-type { border-bottom: 0; }
.ras-step-number {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--rs-accent-soft); color: var(--rs-accent-strong); font-size: 13px; font-weight: 700;
}
.ras-guide-step h3 { font-size: 15px; font-weight: 700; margin: 3px 0 4px; color: var(--rs-ink); }
.ras-guide-step p { margin: 0; }
.ras-step-help {
  background: var(--rs-accent-soft); border: 1px solid #c9e3dc; border-radius: var(--rs-radius);
  padding: 14px 16px; margin: 0 0 20px; color: #24524b; font-size: 13.5px; line-height: 1.65;
}
.ras-step-help strong { display: block; margin-bottom: 2px; color: var(--rs-ink); }
.ras-form-error {
  background: var(--rs-danger-soft); border: 1px solid #f5c6c1; color: #8f1d14;
  padding: 12px 14px; border-radius: var(--rs-radius); font-size: 13.5px;
}

/* Pills & badges */
.ras-pill, .ras-badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5;
}
.ras-pill::before, .ras-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ras-pill--live, .ras-badge.active { background: var(--rs-accent-soft); color: var(--rs-accent-strong); }
.ras-pill--progress { background: var(--rs-warn-soft); color: var(--rs-warn); }
.ras-pill--danger { background: var(--rs-danger-soft); color: var(--rs-danger); }
.ras-pill--muted, .ras-badge.inactive { background: var(--rs-canvas-2); color: var(--rs-ink-2); }
.ras-badge.neutral { background: var(--rs-canvas); color: var(--rs-ink-2); }
.ras-badge.neutral::before { display: none; }

/* Switch */
.ras-super .ras-switch { display: inline-flex !important; position: relative; align-items: center; gap: 12px; cursor: pointer; margin: 18px 0 4px !important; font-size: 14px; font-weight: 600; }
.ras-switch input { position: absolute; width: 1px !important; height: 1px; opacity: 0; left: 0; margin: 0 !important; }
.ras-switch-track { position: relative; display: inline-block; width: 42px; height: 24px; border-radius: 12px; background: var(--rs-line-strong); transition: background .15s; flex-shrink: 0; }
.ras-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(21 50 57 / .2); transition: transform .15s; }
.ras-switch input:checked + .ras-switch-track { background: var(--rs-accent); }
.ras-switch input:checked + .ras-switch-track::after { transform: translateX(18px); }
.ras-switch input:focus-visible + .ras-switch-track { outline: 2px solid var(--rs-focus); outline-offset: 3px; }

/* Wizard steps (company setup) */
.ras-wizard-step { display: block; border-radius: 4px; text-decoration: none; min-width: 0; }
.ras-wizard-step:hover { opacity: .8; }
.ras-super .ras-wizard-step .bg-slate-900 { background: var(--rs-accent); }
.ras-super .ras-wizard-step .bg-slate-200 { background: var(--rs-line); }

.ras-training-content .training-page-shell { width: 100%; padding: 0; }
.ras-training-content > div:first-child { margin-top: 0; }

/* ---------- Launch pipeline (dashboard) ---------- */
.ras-pipeline {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--rs-surface); border: 1px solid var(--rs-line); border-radius: var(--rs-radius-lg);
  overflow: hidden;
}
.ras-pipeline__stage { position: relative; padding: 18px 18px 20px; min-width: 0; border-left: 1px solid var(--rs-line); }
.ras-pipeline__stage:first-child { border-left: 0; }
.ras-pipeline__rail { /* the connecting track across the top of the band */
  position: relative; height: 4px; margin: -18px -18px 16px; background: var(--rs-canvas-2);
}
.ras-pipeline__stage.has-items .ras-pipeline__rail { background: #f0cf8a; }
.ras-pipeline__stage--live.has-items .ras-pipeline__rail { background: var(--rs-accent); }
.ras-pipeline__title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ras-pipeline__title h3 { font-size: 13.5px; font-weight: 700; color: var(--rs-ink); }
.ras-pipeline__count { font-size: 22px; font-weight: 700; color: var(--rs-ink); letter-spacing: -.02em; }
.ras-pipeline__stage:not(.has-items) .ras-pipeline__count { color: var(--rs-line-strong); }
.ras-pipeline__hint { font-size: 12.5px; color: var(--rs-ink-3); margin-top: 2px; min-height: 2.6em; }
.ras-pipeline__list { margin-top: 12px; display: grid; gap: 6px; }
.ras-pipeline__list a {
  display: block; padding: 8px 10px; border-radius: 8px; background: var(--rs-canvas);
  text-decoration: none; color: var(--rs-ink); min-width: 0;
}
.ras-pipeline__list a:hover { background: var(--rs-accent-soft); }
.ras-pipeline__list strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ras-pipeline__list small { display: block; font-size: 12px; color: var(--rs-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ras-pipeline__list a.is-failing { background: var(--rs-danger-soft); }
.ras-pipeline__list a.is-failing small { color: var(--rs-danger); }
.ras-pipeline__more { font-size: 12.5px; color: var(--rs-accent-strong); font-weight: 600; text-decoration: none; padding: 4px 2px; }

/* Dashboard lower row */
.ras-dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.ras-todo { list-style: none; margin: 0; padding: 0; }
.ras-todo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--rs-line); }
.ras-todo li:first-child { border-top: 0; }
.ras-todo strong { display: block; font-size: 14px; font-weight: 600; }
.ras-todo p { font-size: 13px; color: var(--rs-ink-2); margin-top: 1px; }
.ras-facts { margin: 0; }
.ras-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--rs-line); }
.ras-facts > div:first-child { border-top: 0; }
.ras-facts dt { color: var(--rs-ink-2); font-size: 13.5px; }
.ras-facts dd { font-weight: 700; font-size: 15px; margin: 0; }
.ras-facts a { color: inherit; text-decoration: none; }
.ras-facts a:hover { color: var(--rs-accent-strong); text-decoration: underline; }

/* ---------- Companies list ---------- */
.ras-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--rs-line); }
.ras-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--rs-canvas); border-radius: 9px; }
.ras-filter a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--rs-ink-2); text-decoration: none;
}
.ras-filter a:hover { color: var(--rs-ink); }
.ras-filter a[aria-current="true"] { background: var(--rs-surface); color: var(--rs-ink); box-shadow: 0 1px 2px rgb(28 43 43 / .12); }
.ras-filter a span { font-weight: 500; color: var(--rs-ink-3); }
.ras-search { position: relative; flex: 0 1 300px; min-width: 200px; }
.ras-search input {
  width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--rs-line-strong);
  border-radius: 8px; font: inherit; font-size: 13.5px; background: var(--rs-surface);
}
.ras-search svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--rs-ink-3); }
.ras-company-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ras-company-cell img, .ras-logo-fallback {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--rs-line);
}
.ras-logo-fallback { display: grid; place-items: center; background: var(--rs-canvas); color: var(--rs-ink-2); font-weight: 700; font-size: 13px; }
.ras-company-cell a { color: var(--rs-ink); font-weight: 600; text-decoration: none; }
.ras-company-cell a:hover { color: var(--rs-accent-strong); text-decoration: underline; }
.ras-company-cell small, .ras-sub { display: block; font-size: 12.5px; color: var(--rs-ink-3); }
.ras-row-actions { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.ras-row-actions a {
  padding: 6px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--rs-accent-strong); text-decoration: none;
}
.ras-row-actions a:hover { background: var(--rs-accent-soft); }

/* ---------- Company page header ---------- */
.ras-company-head { background: var(--rs-surface); border: 1px solid var(--rs-line); border-radius: var(--rs-radius-lg); margin-bottom: 20px; }
.ras-company-head__top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 20px 22px 16px; }
.ras-company-head__id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ras-company-head__id img, .ras-company-head__id .ras-logo-fallback { width: 48px; height: 48px; border-radius: 10px; }
.ras-company-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ras-company-head__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--rs-ink-2); }
.ras-company-head__meta a { color: var(--rs-accent-strong); }
.ras-company-head__status { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--rs-line); background: #fafaf8; }
.ras-company-head__next { font-size: 13px; color: var(--rs-ink-2); }
.ras-company-head__next strong { color: var(--rs-ink); }
.ras-tabs { display: flex; gap: 2px; padding: 0 16px; border-top: 1px solid var(--rs-line); overflow-x: auto; }
.ras-tabs a {
  padding: 12px 10px; margin-bottom: -1px; font-size: 13.5px; font-weight: 600; color: var(--rs-ink-2);
  text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap;
}
.ras-tabs a:hover { color: var(--rs-ink); }
.ras-tabs a[aria-current="page"] { color: var(--rs-accent-strong); border-bottom-color: var(--rs-accent); }

/* Launch track */
.ras-track { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.ras-track__step { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--rs-ink-3); }
.ras-track__step + .ras-track__step::before { content: ""; width: 22px; height: 2px; background: var(--rs-line-strong); margin: 0 8px; }
.ras-track__dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--rs-line-strong); background: var(--rs-surface); }
.ras-track__step.is-done { color: var(--rs-accent-strong); }
.ras-track__step.is-done .ras-track__dot { background: var(--rs-accent); border-color: var(--rs-accent); }
.ras-track__step.is-done + .ras-track__step::before { background: var(--rs-accent); }
.ras-track__step.is-current { color: var(--rs-ink); }
.ras-track__step.is-current .ras-track__dot { border-color: #c98a12; background: #f4c56b; box-shadow: 0 0 0 3px #fbf0d9; }
.ras-track__step.is-failing .ras-track__dot { border-color: var(--rs-danger); background: #f39b93; box-shadow: 0 0 0 3px var(--rs-danger-soft); }

/* Status tiles on the launch page */
.ras-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.ras-checks > div { padding: 14px 20px; border-left: 1px solid var(--rs-line); }
.ras-checks > div:first-child { border-left: 0; }
.ras-checks dt { font-size: 12.5px; color: var(--rs-ink-3); display: flex; align-items: center; gap: 7px; }
.ras-checks dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rs-danger); }
.ras-checks .is-ok dt::before { background: var(--rs-accent); }
.ras-checks dd { margin: 3px 0 0; font-weight: 600; font-size: 14px; }

/* ---------- Sign-in page ---------- */
body.ras-login {
  margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 24px; box-sizing: border-box;
  background: var(--rs-canvas); color: var(--rs-ink); font: 15px/1.6 var(--rs-font); -webkit-font-smoothing: antialiased;
}
.ras-login * { box-sizing: border-box; }
.ras-login-shell {
  display: grid; grid-template-columns: 1.05fr 1fr; width: min(980px, 100%); min-height: 560px;
  background: var(--rs-surface); border: 1px solid var(--rs-line); border-radius: 18px; overflow: hidden;
}
.ras-login-brand {
  position: relative; background: var(--rs-nav); color: #e3efee; padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px; overflow: hidden;
}
.ras-login-brand .ras-mark { background: #0c262c; }
.ras-login-logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.3; }
.ras-login-logo small { display: block; font-size: 12.5px; font-weight: 500; color: var(--rs-nav-ink-2); }
.ras-login-brand h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 14px; color: #fff; font-weight: 700; max-width: 14ch; }
.ras-login-brand p { font-size: 14.5px; color: #b7cfce; max-width: 36ch; margin: 0; }
.ras-login-week { /* a week strip: the booking calendar this platform fronts */
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 340px; margin-top: 28px;
}
.ras-login-week span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-size: 12px; font-weight: 600;
  color: #9fbcbc; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .07);
}
.ras-login-week span.is-booked { background: var(--rs-accent); border-color: var(--rs-accent); color: #fff; }
.ras-login-footer { font-size: 12.5px; color: var(--rs-nav-ink-2); }
.ras-login-form { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.ras-login-form h2 { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 6px; font-weight: 700; }
.ras-login-form > p { font-size: 14px; color: var(--rs-ink-2); margin: 0 0 26px; }
.ras-login-form label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.ras-login-form input {
  width: 100%; background: var(--rs-surface); border: 1px solid var(--rs-line-strong); border-radius: 9px;
  color: var(--rs-ink); padding: 12px 14px; font: 15px var(--rs-font); line-height: 1.4;
}
.ras-login-form input:focus { outline: 2px solid var(--rs-focus); outline-offset: 1px; border-color: var(--rs-accent); }
.ras-password { position: relative; }
.ras-password input { padding-right: 68px; }
.ras-password button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  font: 600 13px var(--rs-font); color: var(--rs-accent-strong); cursor: pointer; padding: 6px 8px; border-radius: 6px;
}
.ras-password button:hover { background: var(--rs-accent-soft); }
.ras-login-form .ras-form-error { margin-top: 16px; }
.ras-login-submit {
  width: 100%; margin-top: 24px; padding: 13px 16px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--rs-accent); color: #fff; font: 600 15px var(--rs-font);
}
.ras-login-submit:hover { background: var(--rs-accent-strong); }
.ras-login-submit:focus-visible { outline: 2px solid var(--rs-focus); outline-offset: 3px; }
.ras-login-form .ras-login-footnote { font-size: 13px; margin: 20px 0 0; color: var(--rs-ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --rs-nav-w: 212px; }
  .ras-super > main.grid > section { padding: 24px 22px 48px; }
  .ras-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ras-pipeline__stage:nth-child(3) { border-left: 0; }
  .ras-pipeline__stage:nth-child(n+3) { border-top: 1px solid var(--rs-line); }
  .ras-dash-grid { grid-template-columns: 1fr; }
  .ras-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ras-checks > div:nth-child(3) { border-left: 0; }
  .ras-checks > div:nth-child(n+3) { border-top: 1px solid var(--rs-line); }
}
@media (max-width: 767px) {
  .ras-super > header > div { padding: 0 14px; }
  .ras-account-label { display: none; }
  .ras-super > main.grid { display: block; background: none; min-height: 0; }
  .ras-super > main.grid > aside, .ras-super > main.grid > div:first-child:has(> aside) { position: static; }
  .ras-super aside > nav {
    min-height: 0; flex-direction: row; overflow-x: auto; gap: 4px; padding: 8px 10px;
    scrollbar-width: none;
  }
  .ras-super aside > nav > a { white-space: nowrap; flex-shrink: 0; padding: 8px 11px; }
  .ras-super aside > nav > a.bg-slate-900, .ras-super aside > nav > a[aria-current="page"] { box-shadow: none; }
  .ras-super aside > nav > .ras-nav-group, .ras-super aside > nav > div.border-t { display: none; }
  .ras-super > main.grid > section { padding: 20px 16px 40px; }
  .ras-heading { flex-direction: column; align-items: flex-start; }
  .ras-heading h1 { font-size: 23px; }
  .ras-pipeline { grid-template-columns: 1fr; }
  .ras-pipeline__stage { border-left: 0 !important; border-top: 1px solid var(--rs-line); }
  .ras-pipeline__stage:first-child { border-top: 0; }
  .ras-pipeline__hint { min-height: 0; }
  .ras-checks { grid-template-columns: 1fr; }
  .ras-checks > div { border-left: 0 !important; border-top: 1px solid var(--rs-line); }
  .ras-checks > div:first-child { border-top: 0; }
  .ras-search { flex-basis: 100%; }
  .ras-track__step + .ras-track__step::before { width: 12px; margin: 0 5px; }
  /* Companies table becomes stacked rows */
  .ras-stack thead { display: none; }
  .ras-stack, .ras-stack tbody, .ras-stack tr, .ras-stack td { display: block; width: 100%; }
  .ras-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--rs-line); }
  .ras-stack td { border: 0 !important; padding: 3px 0; }
  .ras-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--rs-ink-3); font-size: 12.5px; }
  .ras-stack .ras-row-actions { justify-content: flex-start; margin-top: 6px; }
  .ras-login-shell { grid-template-columns: 1fr; max-width: 460px; min-height: 0; }
  .ras-login-brand { padding: 22px 24px; gap: 0; }
  .ras-login-brand > div, .ras-login-footer { display: none; }
  .ras-login-form { padding: 28px 24px 32px; }
  body.ras-login { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ras-super *, .ras-login * { transition: none !important; animation: none !important; }
}
@media (max-width: 767px) { .ras-stack td .ras-sub { display: inline; margin-left: 4px; } }

/* Signups and billing alerts on Overview */
.ras-alerts .ras-todo li { border-left: 3px solid #f0cf8a; }
.ras-alerts .ras-todo li.is-danger { border-left-color: var(--rs-danger); }
.ras-alert-link { color: var(--rs-ink); text-decoration: none; }
.ras-alert-link:hover { color: var(--rs-accent-strong); text-decoration: underline; }
form.inline { display: inline; }

/* Match the external booking admin palette; keep company themes and login unchanged. */
body.ras-super {
  --rs-ink: #0b2137;
  --rs-ink-2: #526276;
  --rs-ink-3: #667085;
  --rs-canvas: #f5f7fa;
  --rs-canvas-2: #edf0f4;
  --rs-line: #e4e9ef;
  --rs-line-strong: #ccd6e0;
  --rs-nav: #ffffff;
  --rs-nav-hover: #f5f7fa;
  --rs-nav-active: #fff1e7;
  --rs-nav-ink: #526276;
  --rs-nav-ink-2: #667085;
  --rs-accent: #e96512;
  --rs-accent-strong: #b84d05;
  --rs-accent-soft: #fff1e7;
  --rs-focus: #b84d05;
}
.ras-super aside > nav { border-right: 1px solid var(--rs-line); }
.ras-super aside > nav > a:hover { color: var(--rs-ink); }
.ras-super aside > nav > a.bg-slate-900,
.ras-super aside > nav > a[aria-current="page"] {
  color: var(--rs-accent-strong);
  box-shadow: inset 3px 0 0 #f46a06;
}
.ras-super .ras-mark { background: var(--rs-ink); }
.ras-super .ras-step-help { border-color: #ffddc4; color: var(--rs-ink-2); }
.ras-super .bg-slate-50, .ras-super .ras-company-head__status { background: var(--rs-canvas); }
.ras-super .ras-nav-count { background: var(--rs-accent-soft); color: var(--rs-accent-strong); }
/* Navy text keeps small action labels readable on the booking orange. */
.ras-super .ras-button:not(.secondary):not(.quiet),
.ras-super button.bg-slate-900, .ras-super a.bg-slate-900:not(aside a),
.ras-super .bg-emerald-600 { color: var(--rs-ink); }
.ras-super .ras-button:not(.secondary):not(.quiet):hover,
.ras-super button.bg-slate-900:hover, .ras-super a.bg-slate-900:not(aside a):hover,
.ras-super .hover\:bg-emerald-700:hover { color: #fff; }

/* Shared account screens use the same booking palette as the super-admin portal. */
body.ras-login {
  --rs-ink: #0b2137;
  --rs-ink-2: #526276;
  --rs-ink-3: #667085;
  --rs-canvas: #f5f7fa;
  --rs-line: #e4e9ef;
  --rs-line-strong: #ccd6e0;
  --rs-nav: #0b2137;
  --rs-nav-ink-2: #cbd5e1;
  --rs-accent: #e96512;
  --rs-accent-strong: #b84d05;
  --rs-accent-soft: #fff1e7;
  --rs-focus: #b84d05;
}
.ras-login-brand { color: #e4e9ef; }
.ras-login-brand .ras-mark { background: #0b2137; }
.ras-login-brand p, .ras-login-week span { color: #cbd5e1; }
.ras-login-submit, .ras-login-week span.is-booked { color: #0b2137; }
.ras-login-submit:hover { color: #fff; }
