/* ==================================================================
   SVLIP — Sistem Verifikasi Lapangan & Investigasi Pemegang Saham
   Visual system follows indopi.co.id: navy, gold, hairline borders.
   ================================================================== */

:root {
  --navy: #0c2942;
  --navy-2: #123d59;
  --deep: #071c2e;
  --ink: #173046;
  --muted: #63778a;
  --line: #dce4eb;
  --wash: #f3f6f8;
  --gold: #c3a16b;
  --gold-soft: #ead5b5;
  --gold-ink: #9b773e;
  --ok: #2f6b4f;
  --danger: #8a3b3b;
  --radius: 9px;
  --shadow: 0 14px 34px rgba(11, 47, 74, 0.07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 15px/1.6 Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold-ink); }
h1, h2, h3, h4 { margin: 0; color: var(--navy); letter-spacing: -0.3px; line-height: 1.25; }
p { margin: 0 0 12px; }
img { max-width: 100%; }

.wrap-wide { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }

.eyebrow {
  display: block;
  font-size: 9.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 800;
}
.eyebrow-light { color: var(--gold-soft); }
.gold-rule { height: 2px; width: 46px; background: var(--gold); margin: 14px 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: "Courier New", Courier, monospace; font-size: 12.5px; letter-spacing: 0.3px; }
.block { display: block; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------------- top bar + header ---------------- */

.topbar { background: var(--deep); color: #cfe0eb; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar .conf { display: inline-flex; align-items: center; gap: 8px; color: #a9c2d3; font-weight: 700; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(195, 161, 107, 0.18); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar a { color: #dbe8f0; text-decoration: none; }
.topbar a:hover { color: var(--gold-soft); }
.proj-chip { color: #8fb0c5; letter-spacing: 1.1px; }

.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 40px; overflow: hidden; }
.lang a { padding: 3px 9px; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; color: #d8e6ef; }
.lang a.on { background: var(--gold); color: #0b2c43; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { height: 34px; width: auto; display: block; }
.brand-sep { width: 1px; height: 38px; background: var(--line); flex: none; }
.brand-tag { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-tag b { font-size: 11.5px; letter-spacing: 0.9px; text-transform: uppercase; color: var(--navy); font-weight: 800; line-height: 1.4; }
.brand-tag i { font-style: normal; font-size: 9px; letter-spacing: 1.7px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.header-user { display: flex; align-items: center; gap: 14px; }
.header-user .who { text-align: right; line-height: 1.35; }
.header-user .who b { display: block; font-size: 13px; color: var(--navy); }
.header-user .who span { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------------- shell / sidebar ---------------- */

.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }
.sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
  min-height: calc(100vh - 109px);
  padding: 22px 14px 26px;
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
}
.side-label { margin: 0 10px 14px; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); font-weight: 800; }
.side-nav { display: grid; gap: 3px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  color: #d5e3ec;
  font-size: 12.6px;
  font-weight: 600;
  border-left: 2px solid transparent;
  border-radius: 3px;
  text-decoration: none;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.side-nav a.on { background: rgba(255, 255, 255, 0.1); border-left-color: var(--gold); color: #fff; }
.side-nav .ic { opacity: 0.75; flex: none; }
.side-nav .pill {
  margin-left: auto;
  background: var(--gold); color: #0b2c43;
  border-radius: 20px; font-size: 9.5px; font-weight: 800;
  padding: 1px 7px;
}
.side-foot { margin-top: auto; padding: 24px 10px 0; font-size: 9.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.42); letter-spacing: 0.5px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.side-foot b { color: var(--gold-soft); letter-spacing: 1.2px; }
.side-org { color: rgba(255, 255, 255, 0.32); }

.main { padding: 28px 30px 60px; min-width: 0; }
.main-in { max-width: 1200px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(22px, 2.3vw, 29px); font-weight: 800; margin-top: 6px; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin: 7px 0 0; max-width: 720px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.head-num { font-size: 20px; font-weight: 800; color: var(--navy); }
.head-num i { font-style: normal; font-size: 9px; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; display: block; font-weight: 800; }
.head-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 17px;
  border-radius: 5px;
  border: 1px solid transparent;
  font: inherit; font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}
.btn-primary { background: #0b2f4a; color: #fff; }
.btn-primary:hover { background: #17506f; color: #fff; }
.btn-gold { background: var(--gold); color: #0b2c43; }
.btn-gold:hover { background: #d9b67d; color: #0b2c43; }
.btn-outline { background: #fff; border-color: #c6d6e1; color: var(--navy); }
.btn-outline:hover { background: #f2f7fa; border-color: #a9c0ce; color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-danger { background: #fff; border-color: #e2c8c8; color: var(--danger); }
.btn-danger:hover { background: #fbf1f1; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--navy); background: #eef3f7; }
.btn-sm { padding: 6px 11px; font-size: 11px; border-radius: 4px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.inline-form-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form-row select, .inline-form-row input {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 12.5px; background: #fff;
}

/* ---------------- cards + grids ---------------- */

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 15px; font-weight: 800; }
.card-head .sub { font-size: 12px; color: var(--muted); margin: 4px 0 0; max-width: 620px; }
.card-body { padding: 20px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: #fafcfd; border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
.grid-main-side { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.stack-20 > * + * { margin-top: 20px; }

.stat {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat:before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--navy); opacity: 0.14; }
.stat.gold:before { background: var(--gold); opacity: 0.9; }
.stat.danger:before { background: var(--danger); opacity: 0.75; }
.stat .n { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -1px; line-height: 1.1; }
.stat .l { font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-top: 7px; }
.stat .s { font-size: 10.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }

/* ---------------- badges ---------------- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 30px;
  border: 1px solid var(--line); background: #f4f6f8;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.7px;
  text-transform: uppercase; color: #4a6172; white-space: nowrap;
}
.badge.flat { text-transform: none; letter-spacing: 0.3px; font-weight: 700; }
.st-pending { background: #f4f6f7; border-color: #dfe6ea; color: #6d7f8c; }
.st-assigned { background: #f1f5f8; border-color: #d6e1e8; color: #4a6172; }
.st-scheduled { background: #eef1fb; border-color: #cfd7ee; color: #3a4a86; }
.st-visited { background: #eef6f7; border-color: #cbe1e4; color: #2c5f68; }
.st-evidence { background: #fbf4e8; border-color: #e6d3b2; color: #8a6a32; }
.st-qc { background: #f7f0e4; border-color: #e2cbaa; color: #8a6232; }
.st-verified { background: #eef6f1; border-color: #cfe4d8; color: var(--ok); }
.st-dossier { background: #e9f2f7; border-color: #c5dbe7; color: #17506f; }
.st-delivered { background: #eef6f1; border-color: #cfe4d8; color: var(--ok); }

.rs-found { background: #eef6f1; border-color: #cfe4d8; color: var(--ok); }
.rs-not_found { background: #eef2f6; border-color: #cfdbe6; color: #0b2f4a; }
.rs-moved { background: #eef4f6; border-color: #cbdde3; color: #2c5f68; }
.rs-empty { background: #f3f5f6; border-color: #dbe2e6; color: #5d6f7b; }
.rs-deceased { background: #f7f2e9; border-color: #e2d4bd; color: #7a6338; }
.rs-heirs { background: #fbf4e8; border-color: #e6d3b2; color: #8a6a32; }
.rs-demolished { background: #f6f1ea; border-color: #dfd2c2; color: #7a6350; }
.rs-refused { background: #f9efef; border-color: #e4cfcf; color: var(--danger); }
.rs-open { background: #fbf4e8; border-color: #e6d3b2; color: #8a6a32; }

.pr-high { background: #f9ecec; border-color: #e4c9c9; color: #8a2f2f; }
.pr-normal { background: #f4f6f8; border-color: #dfe6ea; color: #5d6f7b; }
.pr-low { background: #f4f6f8; border-color: #e4eaee; color: #7b8b96; }

.lv-owner { background: #0c2942; border-color: #0c2942; color: #f2d9ae; }
.lv-manager { background: #eef2f6; border-color: #cfdbe6; color: #0b2f4a; }
.lv-coordinator { background: #f3f0e8; border-color: #e0d6bd; color: #7a6338; }
.lv-surveyor { background: #eef6f7; border-color: #cbe1e4; color: #2c5f68; }
.lv-qc { background: #eef6f1; border-color: #cfe4d8; color: var(--ok); }
.lv-viewer, .lv-reviewer, .lv-viewer_client { background: #f4f6f8; border-color: #e1e7eb; color: #5d6f7b; }

/* ---------------- progress ---------------- */

.prog { height: 6px; background: #e8eef2; border-radius: 30px; overflow: hidden; }
.prog > span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-2), var(--gold)); border-radius: 30px; }
.prog-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.prog-row .pct { font-size: 11.5px; font-weight: 800; color: var(--navy); letter-spacing: 0.3px; }

/* ---------------- banners, empty, demo ---------------- */

.banner { margin: 0 0 16px; padding: 12px 16px; border-radius: 5px; font-size: 12.5px; border: 1px solid var(--line); background: #fff; }
.banner.ok { background: #eef6f1; border-color: #cfe4d8; color: var(--ok); }
.banner.err { background: #f9efef; border-color: #e4cfcf; color: var(--danger); }
.banner.info { background: #f1f6fa; border-color: #d3e2ec; color: #1c4a67; }

.demo-note {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding: 9px 14px;
  border: 1px dashed #d8c7a8; background: #fdf9f1; border-radius: 5px;
  font-size: 11.5px; color: #6d5b39;
}
.demo-note b { font-size: 9px; letter-spacing: 1.6px; color: var(--gold-ink); }

.empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .et { display: block; font-weight: 800; color: var(--navy); margin-bottom: 6px; font-size: 14px; }

/* ---------------- tables ---------------- */

.table-wrap, .tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; padding: 11px 14px; background: #f7f9fb;
  border-bottom: 1px solid var(--line);
  font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); font-weight: 800;
  white-space: nowrap;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid #eef2f5; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fafcfd; }
.tbl .num { font-size: 10.5px; font-weight: 800; letter-spacing: 0.7px; color: var(--gold-ink); white-space: nowrap; }
.tbl .title { font-weight: 700; color: var(--navy); }
.tbl.compact td { padding: 9px 12px; font-size: 12.5px; }
.tbl.compact th { padding: 9px 12px; }
.w-120 { width: 120px; }
.w-140 { width: 140px; }
.tbl th.right, .tbl td.right { text-align: right; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pg-group { display: flex; align-items: center; gap: 6px; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--navy); background: #fff; }
.pg:hover { border-color: var(--gold); color: var(--gold-ink); }
.pg.info { border: 0; color: var(--muted); font-size: 11px; }
.pg.disabled { opacity: 0.35; pointer-events: none; }

/* ---------------- forms ---------------- */

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
label, .lbl {
  display: block; margin-bottom: 5px;
  font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); font-weight: 800;
}
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="date"], input[type="datetime-local"], input[type="number"], input[type="file"], select, textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #cfdae2; border-radius: 4px;
  background: #fff; font: inherit; font-size: 13px; color: var(--ink);
}
input[type="file"] { padding: 8px 10px; font-size: 12px; background: #fafcfd; }
textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6d8192 50%), linear-gradient(135deg, #6d8192 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 32px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195, 161, 107, 0.16); }
input[readonly] { background: #f5f8fa; color: #4f6575; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 600; margin: 0 12px 7px 0; cursor: pointer; }
.check input { width: 14px; height: 14px; accent-color: var(--navy-2); }
.perm-grid, .region-picker { display: flex; flex-wrap: wrap; gap: 2px 10px; max-height: 190px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fafcfd; }
.region-picker { max-height: 210px; }
.stack-form .field { margin-bottom: 12px; }
.upload-form { max-width: 560px; }
.assign-strip { margin-top: 18px; }

.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fafcfd;
  border-radius: var(--radius) var(--radius) 0 0;
}
.filter-bar .fld { min-width: 140px; }
.filter-bar .fld.search { flex: 1 1 240px; }
.filter-bar .fld.actions { display: flex; gap: 6px; }
.filter-bar label { margin-bottom: 4px; }

/* ---------------- deadline strip ---------------- */

.deadline {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 20px; padding: 14px 20px;
  background: var(--navy); border-radius: var(--radius); color: #dbe8f0;
}
.deadline .dl-item { display: flex; flex-direction: column; gap: 2px; }
.deadline .dl-l { font-size: 8.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #93b0c4; font-weight: 800; }
.deadline b { font-size: 13px; color: #fff; }
.deadline .days b { font-size: 22px; color: var(--gold-soft); }
.deadline .dl-bar { flex: 1 1 220px; min-width: 160px; }
.deadline .prog { background: rgba(255, 255, 255, 0.16); }
.deadline .dl-cap { display: block; margin-top: 6px; font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: #9db8c9; }
.deadline.urgent { background: #4a1f22; }
.deadline.urgent .days b { color: #f2b3b3; }

/* ---------------- charts ---------------- */

.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 1.05fr) minmax(0, 2.1fr) 66px; gap: 10px; align-items: center; }
.bar-label { display: flex; flex-direction: column; min-width: 0; }
.bar-label a { font-size: 12px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-label a:hover { color: var(--gold-ink); }
.bar-meta { font-size: 9.5px; letter-spacing: 0.4px; color: var(--muted); text-transform: uppercase; }
.bar-track { height: 12px; border-radius: 3px; background: #eef2f5; display: flex; overflow: hidden; }
.bar-track .seg { height: 100%; }
.seg.done { background: linear-gradient(90deg, #123d59, #1d5473); }
.seg.active { background: var(--gold); }
.seg.remaining { background: #e3eaef; }
.bar-value { font-size: 11px; font-weight: 800; color: var(--navy); text-align: right; white-space: nowrap; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 10px; letter-spacing: 0.7px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.sw.done { background: #123d59; }
.sw.active { background: var(--gold); }
.sw.remaining { background: #dfe7ed; }

.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut { flex: none; }
.donut-value { font: 800 21px Arial, Helvetica, sans-serif; fill: var(--navy); }
.donut-label { font: 700 8px Arial, Helvetica, sans-serif; fill: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1 1 150px; min-width: 140px; }
.donut-legend li { display: grid; grid-template-columns: 9px 1fr auto auto; gap: 7px; align-items: center; font-size: 11.5px; }
.donut-legend .dl-name { color: var(--ink); font-weight: 600; }
.donut-legend b { color: var(--navy); font-size: 12px; }
.donut-legend em { font-style: normal; font-size: 10px; color: var(--muted); }

.funnel { display: grid; gap: 10px; }
.fn-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(0, 2.4fr) 46px; gap: 10px; align-items: center; }
.fn-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.fn-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.fn-track { height: 9px; background: #eef2f5; border-radius: 20px; overflow: hidden; }
.fn-track span { display: block; height: 100%; border-radius: 20px; }
.fn-value { text-align: right; font-size: 11.5px; font-weight: 800; color: var(--navy); }

.chart-svg svg { width: 100%; height: auto; display: block; }
.chart-svg .axis { font: 600 8.5px Arial, Helvetica, sans-serif; fill: #8a9ba8; }
.chart-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------------- stepper / timeline ---------------- */

.stepper { list-style: none; margin: 12px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stepper li { display: flex; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); font-weight: 700; }
.stepper li:after { content: "›"; color: #c3d0da; margin: 0 2px; }
.stepper li:last-child:after { content: ""; }
.stepper .dot {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef2f5; color: #7b8b96; font-size: 9px; font-weight: 800;
}
.stepper li.done .dot { background: var(--navy-2); color: #fff; }
.stepper li.current .dot { background: var(--gold); color: #0b2c43; }
.stepper li.current .sl { color: var(--navy); }
.timeline-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 6px; }
.timeline-mini span { display: flex; flex-direction: column; gap: 2px; padding-left: 9px; border-left: 2px solid var(--line); }
.timeline-mini i { font-style: normal; font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.timeline-mini b { font-size: 12px; color: var(--navy); }

/* ---------------- target detail ---------------- */

.crumbs { font-size: 11px; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-ink); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 18px; }
.kv-grid > div { display: flex; flex-direction: column; gap: 2px; }
.kv-grid span { font-size: 8.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.kv-grid b { font-size: 12.5px; color: var(--navy); font-weight: 700; word-break: break-word; }
.kv-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--ink); }
.kv-inline b { display: block; font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 800; }

.ev-grid { display: grid; gap: 14px; }
.ev-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fcfdfe; }
.ev-thumb { width: 76px; height: 58px; border-radius: 4px; background: #eef2f5; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-thumb .ext { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.ev-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ev-meta b { font-size: 12.5px; color: var(--navy); }
.ev-kind { font-size: 8px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-ink); font-weight: 800; }
.ev-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.visit-timeline { list-style: none; margin: 0; padding: 0; }
.visit-timeline > li { position: relative; padding: 0 0 20px 22px; border-left: 2px solid var(--line); }
.visit-timeline > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.visit-timeline > li:before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.vt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.vt-no { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-ink); font-weight: 800; }
.vt-body p { font-size: 12.5px; line-height: 1.65; color: #2b4356; margin: 8px 0; }
.vt-finding { margin-bottom: 4px; }
.qc-note, .blocker { margin-top: 9px; padding: 8px 11px; border-radius: 4px; font-size: 11.5px; background: #f1f6fa; border-left: 3px solid var(--navy-2); color: #24495f; }
.qc-note b, .blocker b { font-size: 8.5px; letter-spacing: 1.2px; text-transform: uppercase; display: block; color: var(--muted); }
.blocker { background: #fbf4e8; border-left-color: var(--gold); color: #6d5b39; }

.qc-card .card-body > p { font-size: 12.5px; }
.qc-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.qc-form .field { margin: 0; flex: 1 1 300px; }

/* ---------------- reviews ---------------- */

.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.review-list li { padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; background: #fcfdfe; }
.review-list p { font-size: 12px; margin: 6px 0 5px; color: #2b4356; line-height: 1.55; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; }

.ready-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ready-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; }
.ready-list b { display: block; font-size: 10px; letter-spacing: 0.8px; color: var(--gold-ink); }
.ready-list span { font-size: 12px; color: var(--navy); }
.ready-actions { display: flex; align-items: center; gap: 9px; }

.daily-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.daily-grid > div { background: #f7f9fb; border-radius: 6px; padding: 10px 12px; text-align: center; }
.daily-grid b { display: block; font-size: 19px; color: var(--navy); font-weight: 800; }
.daily-grid span { font-size: 8.5px; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.pill-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.pill-soft { font-size: 10px; background: #f3f6f8; border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; color: #4a6172; }
.pill-soft b { color: var(--navy); }

/* ---------------- regions ---------------- */

.region-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.region-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); color: var(--ink); }
.region-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.region-card h3 { font-size: 14px; margin: 4px 0 3px; }
.region-card p { font-size: 11px; color: var(--muted); margin: 0 0 10px; }
.rc-top { display: flex; align-items: center; justify-content: space-between; }
.rc-top b { font-size: 15px; color: var(--navy); }
.rc-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.rc-foot b { color: var(--navy); }

/* ---------------- team ---------------- */

.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.member-card.is-off { opacity: 0.72; }
.mc-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; flex: none; }
.mc-id { flex: 1; min-width: 0; }
.mc-id b { display: block; font-size: 13.5px; color: var(--navy); }
.mc-id span { font-size: 11px; color: var(--muted); }
.mc-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.you { font-size: 9.5px; color: var(--gold-ink); font-weight: 700; }
.mc-body { padding: 12px 18px; display: grid; gap: 9px; }
.mc-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: start; }
.mc-row > span { font-size: 8.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); font-weight: 800; padding-top: 2px; }
.mc-row b { font-size: 11.5px; color: var(--navy); word-break: break-word; }
.mc-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 18px; background: #fafcfd; border-top: 1px solid var(--line); }
.edit-details summary { list-style: none; cursor: pointer; }
.edit-details summary::-webkit-details-marker { display: none; }
.edit-details[open] { flex-basis: 100%; }
.member-form { margin-top: 12px; padding: 14px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.perm-chip { font-size: 9px; letter-spacing: 0.4px; background: #eef3f7; border: 1px solid #d8e3ea; color: #3d5768; border-radius: 3px; padding: 2px 6px; font-weight: 700; }
.chip-xs { font-size: 9.5px; background: #f4f6f8; border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; color: #4a6172; font-weight: 700; }
.reveal { background: #fdf9f1; border: 1px dashed #d8c7a8; border-radius: 6px; padding: 14px 18px; margin-bottom: 18px; }
.reveal > b { display: block; font-size: 12px; color: #6d5b39; margin-bottom: 8px; }
.reveal-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 5px 0; border-top: 1px dashed #e7dcc6; font-size: 12px; }
.reveal-row code { font-size: 12.5px; background: #fff; border: 1px solid #e0d4bd; padding: 3px 9px; border-radius: 3px; color: #0b2f4a; font-weight: 700; letter-spacing: 0.5px; }
.big-role { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.security-note { text-align: center; color: var(--muted); }
.security-note .ic { color: var(--gold); }
.security-note p { margin: 8px 0 0; }

/* ---------------- report centre ---------------- */

.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.rep-card .rep-ic { color: var(--gold); }
.rep-card .card-body { min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.prov-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 30px; font-size: 10.5px; color: #3d5768; background: #fafcfd; }
.chip:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ---------------- auth pages ---------------- */

.auth-body { background: var(--wash); }
.auth { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art {
  background: linear-gradient(150deg, var(--navy) 0%, var(--deep) 60%, #04121e 100%);
  color: #dbe8f0; padding: 46px 44px 30px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-art:after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(195, 161, 107, 0.22), transparent 65%);
}
.auth-art-in { position: relative; z-index: 1; max-width: 440px; }
.auth-wordmark {
  display: block;
  font-size: 11px; font-weight: 800; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--gold-soft);
  padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.auth-art .eyebrow { margin-top: 30px; }
.auth-art h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 12px; font-weight: 800; }
.auth-art p { color: #b9cfdd; font-size: 13px; line-height: 1.7; }
.auth-app { font-size: 13px; font-weight: 700; color: var(--gold-soft); letter-spacing: 0.5px; }
.auth-points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.auth-points li { position: relative; padding-left: 18px; font-size: 12px; color: #bfd3e0; }
.auth-points li:before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.auth-demo { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.auth-demo code { display: block; font-size: 10.5px; color: #d5e3ec; margin-top: 6px; letter-spacing: 0.3px; }
.art-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: 0.8px; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; }
.art-foot a { color: var(--gold-soft); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-panel-in { width: 100%; max-width: 420px; }
.auth-top { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.auth-top .lang { border-color: #d3dde5; }
.auth-top .lang a { color: #4a6172; }
.auth-top .lang a.on { background: var(--navy); color: #fff; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 26px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; margin: 8px 0 6px; font-weight: 800; }
.auth-card .lead { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-switch {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  font-weight: 800; color: var(--gold-ink);
}
.auth-switch:hover { color: var(--navy); }
.auth-card .foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.auth-fine { font-size: 11px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.6; }

/* ---------------- landing ---------------- */

.land-body { background: var(--wash); }
.land-hero { background: linear-gradient(150deg, var(--navy) 0%, var(--deep) 65%, #04121e 100%); color: #dbe8f0; padding: 64px 0 70px; position: relative; overflow: hidden; }
.land-hero:before {
  content: ""; position: absolute; left: -160px; bottom: -220px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(195, 161, 107, 0.16), transparent 62%);
}
.land-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); gap: 54px; align-items: center; position: relative; z-index: 1; }
.land-copy h1 { color: #fff; font-size: clamp(27px, 3.6vw, 46px); line-height: 1.14; font-weight: 800; letter-spacing: -1px; margin: 0; max-width: 20ch; }
.land-lead { color: #b9cfdd; font-size: 14.5px; line-height: 1.75; margin: 18px 0 0; max-width: 62ch; }
.land-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 26px; }
.land-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 22px; }
.land-kpis span { display: block; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.8px; }
.land-kpis i { font-style: normal; font-size: 8.5px; letter-spacing: 1.3px; text-transform: uppercase; color: #8fb0c5; font-weight: 800; line-height: 1.5; display: block; margin-top: 4px; }
.land-panel { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); backdrop-filter: blur(6px); }
.land-panel-head { padding: 20px 22px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.land-panel-head h3 { color: #fff; font-size: 17px; margin: 8px 0 4px; }
.land-panel-head p { color: #9db8c9; font-size: 11px; margin: 0; }
.land-panel-body { padding: 16px 22px; }
.lp-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 11.5px; color: #a9c2d3; border-bottom: 1px dashed rgba(255, 255, 255, 0.1); }
.lp-row b { color: #fff; font-size: 12px; }
.lp-prog { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.lp-prog .prog { flex: 1; background: rgba(255, 255, 255, 0.16); }
.lp-prog span { font-size: 11px; font-weight: 800; color: var(--gold-soft); }
.land-panel-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: #8fb0c5; }
.land-panel-foot code { color: var(--gold-soft); letter-spacing: 1.6px; }

.land-section { padding: 58px 0; background: #fff; }
.land-section.alt { background: var(--wash); }
.section-lead { color: var(--muted); font-size: 13.5px; max-width: 74ch; margin: 0 0 26px; }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.process-step { border-top: 2px solid var(--line); padding-top: 14px; }
.ps-no { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; color: var(--gold-ink); }
.process-step h4 { font-size: 13.5px; margin: 6px 0 6px; }
.process-step p { font-size: 11.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.deliv-grid { margin-top: 4px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.land-section.alt .feature-card { background: #fff; }
.fc-ic { display: inline-flex; color: var(--gold); margin-bottom: 10px; }
.feature-card h3 { font-size: 13.5px; margin-bottom: 6px; }
.feature-card p { font-size: 11.5px; color: var(--muted); margin: 0; line-height: 1.6; }

.land-demo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 34px; align-items: start; }
.demo-creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cred-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cred-col h4 { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.cred { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 8px 0; border-top: 1px dashed var(--line); }
.cred b { font-size: 9.5px; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }
.cred code { font-size: 11px; color: var(--navy); font-family: "Courier New", Courier, monospace; }
.land-notice { background: var(--deep); color: #9db8c9; font-size: 10.5px; letter-spacing: 0.7px; padding: 16px 0; }

.footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 18px 0 4px; }
.footer-in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }

/* ---------------- responsive ---------------- */

@media (max-width: 1180px) {
  .grid-main-side { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .land-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .land-demo { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; min-height: 0; padding: 12px 14px; flex-direction: row; align-items: center; gap: 14px; overflow-x: auto; }
  .side-label, .side-foot { display: none; }
  .side-nav { display: flex; gap: 4px; }
  .side-nav a { white-space: nowrap; padding: 7px 10px; border-left: 0; border-bottom: 2px solid transparent; }
  .side-nav a.on { border-left: 0; border-bottom-color: var(--gold); }
  .main { padding: 22px 18px 48px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: minmax(96px, 1.2fr) minmax(0, 1.8fr) 56px; }
  .bar-meta { display: none; }
  .land-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-creds { grid-template-columns: minmax(0, 1fr); }
  .deadline { gap: 14px; }
}

@media (max-width: 720px) {
  .wrap-wide { width: calc(100% - 28px); }
  .brand img { height: 28px; }
  .brand-tag { display: flex; }
  .brand-tag b { font-size: 9px; letter-spacing: 0.4px; line-height: 1.35; max-width: 148px; }
  .brand-tag i { display: none; }
  .brand-sep { display: none; }
  .header-user .who { display: none; }
  .topbar .proj-chip { display: none; }
  .site-header-in { min-height: 62px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .funnel .fn-row { grid-template-columns: minmax(90px, 1fr) minmax(0, 1.4fr) 34px; }
  .fn-label { font-size: 10px; }
  .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { padding: 12px 14px; }
  .filter-bar .fld { min-width: 100%; }
  .ev-item { flex-wrap: wrap; }
  .card-head { flex-direction: column; gap: 10px; }
  .stepper li { font-size: 9px; }
  .stepper .sl { display: none; }
  .land-hero { padding: 42px 0 48px; }
  .land-section { padding: 40px 0; }
  .mc-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .qc-form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 520px) {
  .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .n { font-size: 23px; }
  .deadline .days b { font-size: 18px; }
  .land-kpis span { font-size: 20px; }
}
