/* Movepro Basics documentation styles */
:root {
  --sidebar-bg: #eef1f4;
  --sidebar-text: #45535e;
  --sidebar-active: #1f3df0;
  --accent: #1f3df0;
  --accent-dark: #1f3df0;
  --text: #24313a;
  --muted: #5b6b76;
  --border: #dde5ea;
  --bg: #f7fafb;
  --card: #ffffff;
  --tip-bg: #eefaf7;
  --tip-border: #17b895;
  --warn-bg: #fef7ec;
  --warn-border: #e8a33d;
  --code-bg: #eef2f5;
  --sidebar-w: 264px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

/* ---------- sidebar ---------- */
nav.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 26px 18px 30px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #050a2e;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  margin-bottom: 24px;
}

.sidebar .logo img {
  height: 21px;
  width: auto;
  display: block;
}

.sidebar .logo span {
  color: #5b6b76;
  font-weight: 600;
  padding-bottom: 2px;
}

/* ---------- search ---------- */
.sidebar .search { position: relative; height: 41px; margin: 0 0 18px; }

.sidebar .search input {
  width: 100%;
  padding: 8px 32px 8px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}

.sidebar .search input::placeholder { color: #8795a1; }

.sidebar .search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 61, 240, .12);
}

.sidebar .search .kbd-hint {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11.5px;
  line-height: 1.5;
  color: #8795a1;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 6px;
  pointer-events: none;
}

.sidebar .search:focus-within .kbd-hint { display: none; }

.search-results {
  position: fixed;
  z-index: 120;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(15, 35, 48, .18);
  max-height: min(480px, 70vh);
  overflow-y: auto;
}

.search-results[hidden] { display: none; }

.sr-item {
  display: block;
  padding: 10px 16px 11px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.sr-item:last-child { border-bottom: none; }

.sr-item.active { background: rgba(31, 61, 240, .07); }

.sr-where {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1px;
}

.sr-where .sr-page { color: var(--muted); font-weight: 500; }

.sr-sep { margin: 0 6px; color: #9aa7b1; font-weight: 400; }

.sr-snip {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.sr-empty {
  display: block;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.search-results mark {
  background: #dbe2fd;
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.sidebar h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #8795a1;
  margin: 22px 0 8px;
}

.sidebar a.nav-link {
  display: block;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 14.5px;
  padding: 7px 10px;
  border-radius: 7px;
  margin-bottom: 2px;
}

.sidebar a.nav-link:hover { background: rgba(15,35,48,.07); color: #16232c; }

.sidebar a.nav-link.active {
  background: rgba(31,61,240,.10);
  color: var(--sidebar-active);
  font-weight: 600;
}

.sidebar .num {
  display: inline-block;
  width: 21px;
  color: #9aa7b1;
  font-size: 12.5px;
}

.sidebar a.nav-link.active .num { color: var(--sidebar-active); }

/* ---------- main column ---------- */
main {
  margin-left: var(--sidebar-w);
  padding: 46px 56px 80px;
  max-width: 1010px;
}

.crumbs {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -.4px;
}

p.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 72ch;
}

h2 {
  font-size: 24px;
  margin: 46px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  letter-spacing: -.2px;
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 { font-size: 18.5px; margin: 30px 0 8px; }

p { max-width: 76ch; }

a { color: var(--accent-dark); }

strong.ui { font-weight: 600; color: #123; }

/* mini table of contents */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 22px;
  margin: 0 0 8px;
  font-size: 14.5px;
}

.toc b { display: block; margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc ul { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; }

/* ---------- steps ---------- */
ol.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  max-width: 78ch;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 46px;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.steps > li + li { border-top: none; }

/* ---------- figures ---------- */
figure {
  margin: 18px 0 26px;
}

figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(15,35,48,.08);
  background: #fff;
}

figure.narrow { max-width: 560px; }
figure.mid { max-width: 760px; }

/* portrait phone screenshots */
figure.phone { max-width: 310px; }

.figrow {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
}

.figrow figure { flex: 1 1 250px; max-width: 310px; }

figcaption {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* embedded walkthrough videos (hosted under movepro.com/media/videos/docs) */
figure.video { max-width: 860px; }

figure.video video {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(15, 35, 48, .08);
  background: #0b1220;
}

/* service type icon grid (inline SVGs from the app's own icon set) */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.icon-grid .cell {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 15px;
  font-size: 14.5px;
  font-weight: 600;
}

.icon-grid .cell svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- role access matrix (team.html) ---------- */
.role-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.role-filter button {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sidebar-text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 15px;
  cursor: pointer;
}

.role-filter button:hover { border-color: var(--accent); color: var(--accent); }

.role-filter button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.mp-access-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.mp-access-legend-item { display: inline-flex; gap: 7px; align-items: center; }

.mp-access-table-wrap {
  width: 100%;
  /* cap the height so the table scrolls inside this box; the sticky thead
     below only engages against this scroll container, not the page */
  max-height: 78vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.mp-access-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.mp-access-table.ra-filtered { min-width: 0; }

.mp-access-table th, .mp-access-table td {
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.mp-access-table tr > :last-child { border-right: 0; }
.mp-access-table tbody tr:last-child > * { border-bottom: 0; }

.mp-access-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--code-bg);
  white-space: nowrap;
}

.mp-access-table thead th.mp-access-role-heading { min-width: 74px; text-align: center; }

.mp-access-table tbody tr:not(.mp-access-section-row):hover > * { background: var(--bg); }

.mp-access-section-row th {
  background: #e7ebfe;
  color: #1c2f8f;
  font-size: 14.5px;
  letter-spacing: .01em;
}

.mp-access-page { width: 190px; min-width: 190px; }
.mp-access-page-name { display: block; margin-bottom: 3px; font-weight: 700; }

.mp-access-page code {
  display: inline-block;
  max-width: 100%;
  padding: 1px 6px;
  overflow-wrap: anywhere;
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--muted);
  font-family: Consolas, ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 400;
}

.mp-access-description { width: 320px; min-width: 320px; }
.mp-access-status-cell { width: 115px; min-width: 115px; }

.mp-access-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.mp-access-status--live { background: #e4f8e9; color: #2c9245; }
.mp-access-status--role { background: #e7ebfe; color: #1f3df0; }
.mp-access-status--flag { background: #fff3e0; color: #c07a13; }

.mp-access-role {
  width: 74px;
  min-width: 74px;
  text-align: center !important;
  vertical-align: middle !important;
}

.mp-access-dot { display: inline-block; font-size: 19px; line-height: 1; }
.mp-access-dot--full { color: #17b895; }
.mp-access-dot--limited { color: #e8a33d; }
.mp-access-none { color: #a5afbd; font-weight: 600; }

.mp-access-notes { width: 280px; min-width: 280px; }
.mp-access-muted { color: var(--muted); }

.mp-access-table tr.ra-dim > * { opacity: .38; }

.mp-access-footnote { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }

.mp-access-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;
}

/* ---------- callouts ---------- */
.tip, .note {
  border-left: 4px solid var(--tip-border);
  background: var(--tip-bg);
  border-radius: 0 10px 10px 0;
  padding: 13px 18px;
  margin: 20px 0;
  max-width: 76ch;
  font-size: 15px;
}

.tip b:first-child, .note b:first-child { color: #0d8a70; }

.note { border-left-color: var(--warn-border); background: var(--warn-bg); }
.note b:first-child { color: #b0741f; }

/* ---------- misc ---------- */
.pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 20px;
  padding: 1px 11px;
  vertical-align: 1px;
}

.pill.pending { background: #fff3e0; color: #c07a13; }
.pill.quoted { background: #f3e8fd; color: #8a3ee0; }
.pill.booked { background: #e7ebfe; color: #1f3df0; }
.pill.completed { background: #e4f8e9; color: #2c9245; }
.pill.paid { background: #e4f8e9; color: #2c9245; }
.pill.draft { background: #eceff1; color: #5b6b76; }
.pill.unpaid { background: #fdecea; color: #c0392b; }

kbd {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 7px;
  font-family: inherit;
  font-size: 14px;
}

table.simple {
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 14px 0 22px;
}

table.simple th, table.simple td {
  border: 1px solid var(--border);
  padding: 8px 14px;
  text-align: left;
  vertical-align: top;
}

table.simple th { background: var(--code-bg); }

/* index cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 16px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .15s, transform .15s;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(15,35,48,.10);
  transform: translateY(-2px);
}

.card .card-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card h3 { margin: 4px 0 6px; font-size: 17.5px; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* lifecycle strip on index */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 20px 0 8px;
  font-size: 14.5px;
  font-weight: 600;
}

.flow span.stage {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
}

.flow span.arrow { color: var(--muted); font-weight: 400; }

.flow-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 22px 0 0;
}

.flow span.stage.dim { color: var(--muted); font-weight: 400; }

/* order / services / tasks structure diagram */
.d-order {
  border: 2px solid var(--accent);
  border-radius: 14px;
  background: var(--card);
  padding: 18px 22px 16px;
  margin: 18px 0 10px;
}

.d-title { font-weight: 700; font-size: 16.5px; }
.d-sub { color: var(--muted); font-weight: 400; font-size: 13.5px; }

.d-attach {
  font-size: 13.5px;
  color: var(--muted);
  margin: 8px 0 16px;
}

.chip {
  display: inline-block;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1px 10px;
  font-size: 12.5px;
  margin: 2px 1px;
  color: var(--text);
  white-space: nowrap;
}

.chip.task {
  background: #e7ebfe;
  border-color: #c5cdfb;
  color: #1f3df0;
  font-weight: 600;
}

.chip.none {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}

.d-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.d-service {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px 12px;
  background: var(--bg);
}

.d-service-name { font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.d-service-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }

.d-tasklabel {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 3px;
}

.d-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; max-width: none; }

/* prev/next footer */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.pager a {
  text-decoration: none;
  font-size: 15px;
  color: var(--accent-dark);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 10px;
  max-width: 46%;
}

.pager a:hover { border-color: var(--accent); }
.pager .dir { display: block; font-size: 12px; color: var(--muted); }

/* click-to-enlarge lightbox */
figure img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 34px;
  background: rgba(8, 13, 30, .88);
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1600px, 94vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .5);
}

.lightbox-caption {
  color: #cfd6e4;
  font-size: 14px;
  max-width: 900px;
  text-align: center;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}

.lightbox-close:hover { opacity: 1; }

body.lightbox-open { overflow: hidden; }

/* responsive */
@media (max-width: 900px) {
  nav.sidebar { position: static; width: auto; height: auto; }
  main { margin-left: 0; padding: 30px 22px 60px; }
}
