/* Linchpin Operations System — operational, minimal. Brand colours used sparingly. */
:root {
  --navy: #0A1530;
  --navy-2: #142248;
  --lime: #CCFF00;
  --orange: #FF6800;
  --blue: #2D6CFF;
  --aqua: #00C4FF;
  --ink: #0A1530;
  --text: #24304A;
  --muted: #5E6B85;
  --line: #E1E6EF;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --ok: #1F8A4C;
  --red: #D92D20;
  --warn-bg: #FFF4EA;
  --bad-bg: #FFEDE3;
  --radius: 8px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5rem; line-height: 1.25; }
h1 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 600; margin-top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt { margin-top: 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.break { word-break: break-all; }

/* Top bar + navigation */
.topbar { display: none; }
.brand { display: flex; flex-direction: column; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { font-family: var(--display); font-size: 22px; letter-spacing: .06em; color: #fff; }
.brand-sub { font-size: 11px; color: var(--lime); letter-spacing: .04em; }
.shell { display: flex; min-height: 100vh; }
.sidenav { width: 220px; flex: 0 0 220px; background: var(--navy); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.sidenav::before { content: "LINCHPIN"; font-family: var(--display); color: #fff; font-size: 22px; letter-spacing: .06em; padding: 0 10px; }
.sidenav::after { content: ""; }
.sidenav a { color: #C9D2E6; padding: 9px 10px; border-radius: 6px; border-left: 3px solid transparent; }
.sidenav a:first-of-type { margin-top: 22px; }
.sidenav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.sidenav a.active { color: #fff; background: var(--navy-2); border-left-color: var(--lime); }
.sidenav .nav-cta { margin-top: 14px; color: var(--navy); background: var(--lime); font-weight: 600; text-align: center; border-left: 0; }
.sidenav .nav-cta:hover { background: #dbff4d; color: var(--navy); }
.nav-user { margin-top: auto; color: #8E9BB8; font-size: 12px; padding: 0 10px; display: flex; flex-direction: column; gap: 4px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; }
.nav-user .linkbtn { color: #C9D2E6; }
.main { flex: 1; min-width: 0; padding: 28px 32px 60px; max-width: 1280px; }

/* Page furniture */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.crumb { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.panel-alert { border-color: var(--orange); background: var(--bad-bg); }
.narrow { max-width: 680px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.empty { color: var(--muted); margin: .25rem 0; }

/* Stats: counts that link to the list behind them */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { flex: 1 1 150px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); display: flex; flex-direction: column; }
a.stat:hover { border-color: var(--blue); text-decoration: none; }
.stat-n { font-family: var(--display); font-size: 30px; color: var(--ink); line-height: 1.1; }
.stat-l { font-size: 12px; color: var(--muted); }
.stat-new { border-top: 3px solid var(--lime); }
.stat-warn { border-top: 3px solid var(--aqua); }
.stat-bad { border-top: 3px solid var(--orange); }
.stat-bad .stat-n { color: var(--orange); }

/* Lists */
.list, .plain, .feed, .tasks, .timeline { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.list li:last-child { border-bottom: 0; }
.list-main { font-weight: 500; }
.list-sub { font-size: 12px; color: var(--muted); }
.plain li { padding: 4px 0; }
.feed li { padding: 7px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 13px; }
.feed-time { color: var(--muted); font-size: 12px; }

/* Tasks */
.task { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.task:last-child { border-bottom: 0; }
.task-done { margin: 0; }
.check { width: 20px; height: 20px; border: 2px solid #B5C0D4; border-radius: 50%; background: #fff; cursor: pointer; padding: 0; flex: 0 0 20px; margin-top: 1px; display: inline-block; }
.check:hover { border-color: var(--ok); background: #E8F6EE; }
.check.checked { background: var(--ok); border-color: var(--ok); cursor: default; }
.task-title { font-weight: 500; color: var(--ink); }
.task-done-row .task-title, .task-done .task-title { text-decoration: line-through; color: var(--muted); }
.task-meta { font-size: 12px; color: var(--muted); }
.due { font-size: 12px; white-space: nowrap; }
.due-overdue { color: var(--orange); font-weight: 600; }
.due-soon { color: var(--ink); font-weight: 600; }
.tag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 10px; background: #EEF2F8; color: var(--muted); }
.tag-warn { background: var(--warn-bg); color: #A04500; }

/* Tables (become cards on phones) */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FAFBFD; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-duplicate td { background: var(--warn-bg); }
.row-invalid td { background: var(--bad-bg); }
.stage { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #EEF2F8; color: var(--ink); white-space: nowrap; }
.stage-won { background: var(--lime); }
/* Not Proceeding: red with white text (status colour, not a brand colour) */
.stage-lost { background: var(--red); color: #fff; }
.stage-select.is-lost, option.opt-lost { background: var(--red); color: #fff; }
.stage-select.is-won, option.opt-won { background: var(--lime); color: var(--navy); }
.stage-select option:not(.opt-lost):not(.opt-won) { background: #fff; color: var(--text); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink); }
.form-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
.form-inline .grow { flex: 1 1 220px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=date], input[type=time], input[type=file], select, textarea {
  font: inherit; font-size: 14px; color: var(--text); padding: 8px 10px; border: 1px solid #C8D0DE; border-radius: 6px; background: #fff; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus, a:focus, button:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.check-label { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; }
.check-label input { width: auto; }
.btn { display: inline-block; font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 6px; border: 1px solid #C8D0DE; background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--navy); text-decoration: none; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filters select, .filters input { width: auto; flex: 0 1 260px; }
.stage-form { display: flex; gap: 8px; align-items: center; }
.stage-form select { width: auto; }
.inline { display: inline; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

/* Flash */
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; border: 1px solid; }
.flash-ok { background: #EEF9E0; border-color: #B9E27A; color: #2F4A00; }
.flash-warn { background: var(--warn-bg); border-color: #FFC48F; color: #6B3000; }
.flash-error { background: var(--bad-bg); border-color: var(--orange); color: #7A2600; }

/* Lead page */
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
.dl dt { color: var(--muted); font-size: 12px; padding-top: 1px; }
.dl dd { margin: 0; }
.message { background: #FAFBFD; border: 1px solid var(--line); border-radius: 6px; padding: 12px; white-space: normal; }
.timeline .tl { border-left: 2px solid var(--line); padding: 0 0 14px 14px; position: relative; }
.timeline .tl::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #B5C0D4; }
.tl-lead_received::before, .tl-lead_created::before { background: var(--lime) !important; box-shadow: 0 0 0 1px var(--navy); }
.tl-email_sent::before { background: var(--aqua) !important; }
.tl-email_failed::before, .tl-duplicate_flagged::before { background: var(--orange) !important; }
.tl-stage_changed::before { background: var(--blue) !important; }
.tl-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tl-body { font-size: 13px; color: var(--text); }
details summary { cursor: pointer; color: var(--muted); margin-top: 10px; font-size: 12px; }

/* Pipeline board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.col { background: #EAEEF5; border-radius: var(--radius); padding: 10px; min-height: 200px; }
.col h2 { font-size: 13px; display: flex; justify-content: space-between; }
.col-won { background: #F3FFD0; }
.col-lost { background: #EDEEF1; }
.col-lost h2 { color: var(--red); }
.count { color: var(--muted); font-weight: 500; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; color: var(--text); gap: 1px; }
.card:hover { border-color: var(--blue); text-decoration: none; }
.card-title { font-weight: 500; color: var(--ink); }
.card-sub { font-size: 12px; color: var(--muted); }
.more { font-size: 12px; }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--navy); font-weight: 500; }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* Sign-in page */
body.bare { background: var(--navy); }
.bare-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.auth-card { background: #fff; border-radius: 10px; padding: 28px; width: 100%; max-width: 400px; }
.auth-brand { display: flex; flex-direction: column; margin-bottom: 18px; background: var(--navy); margin: -28px -28px 20px; padding: 18px 28px; border-radius: 10px 10px 0 0; }

/* Tablet and phone */
@media (max-width: 1000px) {
  .grid-2, .grid-lead { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { display: flex; justify-content: space-between; align-items: center; background: var(--navy); padding: 10px 16px; position: sticky; top: 0; z-index: 10; }
  .nav-toggle { background: none; border: 1px solid #3A4A72; color: #fff; font: inherit; padding: 6px 12px; border-radius: 6px; }
  .shell { display: block; }
  .sidenav { display: none; position: static; width: auto; height: auto; padding: 8px 16px 16px; }
  .sidenav::before { display: none; }
  .sidenav a:first-of-type { margin-top: 0; }
  .sidenav.open { display: flex; }
  .nav-user { margin-top: 12px; }
  .main { padding: 18px 16px 48px; }
  h1 { font-size: 24px; }
  .row-2, .dl { grid-template-columns: 1fr; }
  .dl dt { padding-top: 6px; }
  .feed li { grid-template-columns: 1fr; gap: 0; }
  .filters select, .filters input { flex: 1 1 100%; }
  .table-wrap { border: 0; background: none; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 0; }
  .table td { border: 0; padding: 4px 12px; display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .stage-form { width: 100%; }
  .stage-form select { flex: 1; }
}

/* ===== Go-live additions ===== */
.nav-brand-sub { font-size: 11px; color: var(--lime); letter-spacing: .04em; padding: 0 10px 8px; }
.nav-group { color: #7E8DAE; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; padding: 12px 10px 3px; }
.sidenav { overflow-y: auto; }
.sidenav a:first-of-type { margin-top: 4px; }
.sidenav .nav-account { padding: 0; color: #C9D2E6; border: 0; margin: 0; }

/* Panels, headings */
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.section-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 18px; margin: 6px 0 10px; }
.panel-won { border-color: var(--lime); border-left: 5px solid var(--lime); }
.flash-won { background: #F6FFD9; border-color: var(--lime); color: var(--navy); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-sm { font-size: 12px; padding: 4px 10px; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #B42318; }
.linkbtn.danger { color: var(--red); }
.danger-zone { border: 1px solid #F3C1BC; background: #FFF6F5; border-radius: 6px; padding: 12px; }
.plainlink { color: inherit; }
code { background: #EEF2F8; padding: 0 4px; border-radius: 4px; font-size: 12px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.kpis-wide { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.kpi { background: #FAFBFD; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; color: var(--text); border-top: 3px solid var(--blue); }
a.kpi:hover { border-color: var(--blue); text-decoration: none; }
.kpi-n { font-family: var(--display); font-size: 28px; color: var(--ink); line-height: 1.1; }
.kpi-l { font-size: 12px; color: var(--muted); }
.kpi-d { font-size: 11px; color: var(--muted); margin-top: 2px; }
.kpi-won { border-top-color: var(--lime); }
.kpi-lost { border-top-color: var(--red); }
.kpi-bad { border-top-color: var(--orange); }
.kpi-bad .kpi-n { color: var(--orange); }

/* Bar charts (pure CSS) */
.bars { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 34px; gap: 8px; align-items: center; font-size: 12.5px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: #EEF2F8; border-radius: 4px; height: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.bar-fill.fill-won { background: var(--lime); box-shadow: inset 0 0 0 1px #9BC400; }
.bar-fill.fill-lost { background: var(--red); }
.bar-fill.fill-onboarding { background: var(--aqua); }
.bar-fill.fill-active { background: var(--blue); }
.bar-fill.fill-on_hold { background: var(--orange); }
.bar-fill.fill-completed { background: var(--lime); }
.bar-fill.fill-cancelled { background: #9AA4B8; }
.bar-n { text-align: right; font-weight: 600; color: var(--ink); }

/* Column chart */
.colchart { display: flex; gap: 8px; align-items: flex-end; height: 180px; padding: 18px 0 6px; overflow-x: auto; }
.colchart-col { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.colchart-bars { flex: 1; display: flex; gap: 3px; align-items: flex-end; width: 100%; justify-content: center; }
.cb { width: 40%; max-width: 22px; min-height: 2px; border-radius: 3px 3px 0 0; position: relative; }
.cb em { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--muted); }
.cb-enq { background: var(--blue); }
.cb-won { background: var(--lime); box-shadow: inset 0 0 0 1px #9BC400; }
.colchart-label { font-size: 10.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.lg-enq { background: var(--blue); }
.lg-won { background: var(--lime); margin-left: 10px; }

/* Chips (report periods) */
.chip { display: inline-block; padding: 6px 12px; border: 1px solid #C8D0DE; border-radius: 16px; color: var(--ink); background: #fff; font-size: 13px; }
.chip:hover { text-decoration: none; border-color: var(--navy); }
.chip-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; }

/* Badges */
.badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 10px; background: #EEF2F8; color: var(--ink); white-space: nowrap; vertical-align: middle; }
.badge-onboarding { background: #DDF6FF; color: #004E66; }
.badge-active { background: #E3ECFF; color: #1A3F99; }
.badge-on_hold { background: var(--warn-bg); color: #A04500; }
.badge-completed { background: var(--lime); color: var(--navy); }
.badge-cancelled { background: #ECEEF2; color: #5E6B85; }
.badge-t-open { background: #EEF2F8; }
.badge-t-in_progress { background: #E3ECFF; color: #1A3F99; }
.badge-t-waiting { background: var(--warn-bg); color: #A04500; }
.badge-t-done { background: #EEF9E0; color: #2F4A00; }
.badge-p-urgent { background: var(--red); color: #fff; }
.badge-p-high { background: var(--orange); color: #fff; }
.badge-p-low { background: #ECEEF2; color: var(--muted); }
.badge-org-client { background: var(--lime); color: var(--navy); }
.badge-org-prospect { background: #E3ECFF; color: #1A3F99; }
.badge-org-former_client { background: #ECEEF2; color: var(--muted); }
.badge-role-owner { background: var(--navy); color: #fff; }
.badge-role-contributor { background: #E3ECFF; color: #1A3F99; }
.badge-role-viewer { background: #ECEEF2; color: var(--muted); }

/* Progress */
.progress { height: 8px; background: #EEF2F8; border-radius: 4px; overflow: hidden; margin: 4px 0; min-width: 90px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--aqua)); border-radius: 4px; }
.progress-panel .kpis { margin-top: 0; }

/* Task board */
.task-board { grid-auto-columns: minmax(230px, 1fr); }
.col-t-in_progress { background: #E9F0FF; }
.col-t-waiting { background: #FFF4EA; }
.col-t-done { background: #F3FFD0; }
.task-card { gap: 3px; }
.task-card.prio-urgent { border-left: 4px solid var(--red); }
.task-card.prio-high { border-left: 4px solid var(--orange); }
.move-form { display: flex; gap: 6px; margin-top: 6px; }
.move-form select { font-size: 12px; padding: 3px 6px; }
.js .nojs { display: none; }
.row-overdue td { background: #FFF8F2; }
.row-inactive td { color: var(--muted); }
.row-warn td { background: var(--warn-bg); }
.table.compact td, .table.compact th { padding: 6px 10px; font-size: 13px; }
.form-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.form-row select, .form-row input { width: auto; flex: 1 1 120px; font-size: 13px; padding: 4px 8px; }
.view-switch .btn { min-width: 70px; text-align: center; }

/* Convert form */
.step { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--lime); font-size: 12px; align-items: center; justify-content: center; margin-right: 6px; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.checks legend { font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Documents */
.dropzone { border: 2px dashed #B5C0D4; border-radius: var(--radius); padding: 16px; background: #FAFBFD; cursor: pointer; }
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: #F2F6FF; }
.dz-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.dz-files { font-size: 12px; color: var(--ink); }

@media (max-width: 760px) {
  .bars li { grid-template-columns: 38% 1fr 30px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media print {
  .sidenav, .topbar, .noprint, .flash { display: none !important; }
  .main { padding: 0; max-width: none; }
  .panel { break-inside: avoid; }
  body { background: #fff; }
}

.grid-2 > *, .grid-lead > * { min-width: 0; }
.filters .inline-form input { flex: 0 1 160px; }

/* ===== Release 003: sales evidence chain and Success Plan ===== */
input[type=number] { font: inherit; font-size: 14px; color: var(--text); padding: 6px 8px; border: 1px solid #C8D0DE; border-radius: 6px; background: #fff; width: 100%; max-width: 120px; }
.kpi-money { font-size: 22px; }
.text-ok { color: var(--ok); font-weight: 600; }
.lost-fields { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lost-fields select, .lost-fields input { width: auto; }
.js .lost-fields.is-hidden { display: none; }
.badge-m-booked { background: #E3ECFF; color: #1A3F99; }
.badge-m-held { background: #EEF9E0; color: #2F4A00; }
.badge-m-no_show { background: var(--red); color: #fff; }
.badge-m-cancelled, .badge-m-rescheduled { background: #ECEEF2; color: var(--muted); }
.badge-pr-draft { background: #ECEEF2; color: var(--muted); }
.badge-pr-sent { background: #E3ECFF; color: #1A3F99; }
.badge-pr-revised { background: var(--warn-bg); color: #A04500; }
.badge-pr-accepted { background: var(--lime); color: var(--navy); }
.badge-pr-declined { background: var(--red); color: #fff; }
.badge-pr-withdrawn { background: #ECEEF2; color: var(--muted); }
.badge-pillar { background: var(--navy); color: var(--lime); }
.kpi-cat { margin-top: 1.1rem; padding-left: 8px; border-left: 4px solid var(--blue); }
.kpi-cat-outcome { border-left-color: var(--lime); }
.kpi-cat-output { border-left-color: var(--aqua); }
.kpi-cat-activity { border-left-color: var(--blue); }
.kpi-cat-input { border-left-color: #9AA4B8; }
.kpi-cat-capability { border-left-color: var(--orange); }
.sub-row td { background: #FAFBFD; padding-top: 0; }

/* Printable Success Plan */
.print-doc { background: #fff; color: #1b2233; width: 100%; max-width: 900px; padding: 32px 36px; border-radius: 10px; font-size: 13px; }
.print-doc h1 { font-size: 26px; margin-top: 12px; }
.print-doc h2 { font-size: 15px; margin-top: 1.4rem; border-bottom: 2px solid var(--navy); padding-bottom: 3px; }
.print-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--lime); padding-bottom: 10px; }
.print-brand { color: var(--navy); }
.print-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.print-table th, .print-table td { border: 1px solid #D5DBE6; padding: 5px 7px; text-align: left; vertical-align: top; }
.print-table th { background: #F1F4F9; font-weight: 600; }
.print-foot { margin-top: 2rem; border-top: 1px solid #D5DBE6; padding-top: 10px; }
@media print {
  body.bare { background: #fff; }
  .bare-main { padding: 0; display: block; min-height: 0; }
  .print-doc { max-width: none; padding: 0; border-radius: 0; }
}

/* Bulk actions */
.bulk-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.row-select { margin-right: 6px; vertical-align: middle; }
