/* ONNO Booked CRM. Brand: bottle green, lime used sparingly, off-white, Montserrat. */

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0F3A2C;
  --green-2: #185040;
  --green-3: #2F6B57;
  --lime: #C9EA8C;
  --lime-soft: #EAF5D6;
  --paper: #EEEEEA;
  --card: #F8F8F5;
  --card-2: #F2F2EE;
  --line: #D9DBD3;
  --line-2: #E5E6E0;
  --ink: #14251E;
  --ink-2: #3D4F47;
  --muted: #66756D;
  --red: #9A3324;
  --red-soft: #F5E3DE;
  --amber: #7E5A00;
  --amber-soft: #F5ECD2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 58, 44, 0.06), 0 4px 14px rgba(15, 58, 44, 0.05);
  --font: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* The hidden attribute always wins over display rules such as .field's flex (the ad spend field
   showed for every product before). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.45 var(--font);
  font-feature-settings: 'lnum' 1;
}
a { color: var(--green); }
a:hover { color: var(--green-3); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 15px; }
h3 { font-size: 13px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, td.num, .kpi-value, .money { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; background: var(--green); color: #E9EFEA;
  display: flex; flex-direction: column; padding: 22px 14px 18px;
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: #fff; padding: 0 10px 22px; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.01em; }
.brand-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--green); background: var(--lime); padding: 2px 6px; border-radius: 4px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px;
  color: #CFDCD4; text-decoration: none; font-weight: 550; position: relative;
}
.nav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
@media (hover: hover) { .nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; } }
.nav a.active { background: rgba(255, 255, 255, 0.09); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lime); }
.side-foot { margin-top: auto; font-size: 12px; color: #A9BDB2; padding: 0 10px; line-height: 1.5; }
.side-foot button { background: none; border: 0; color: #D7E4DC; padding: 0; text-decoration: underline; cursor: pointer; font-size: 12px; }
.topbar { display: none; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.main { padding: 26px 32px 60px; min-width: 0; outline: none; flex: 1; }
.fx-credit { padding: 0 32px 22px; font-size: 11.5px; color: var(--muted); }
.fx-credit a { color: var(--muted); }
.loading { color: var(--muted); padding: 40px 0; }

.page-head { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin-right: auto; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ------------------------------------------------------------------ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #BFC3B8; background: #fff; color: var(--ink); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-2); }
.btn.danger { color: var(--red); border-color: #E2C2BA; background: #FBF4F2; }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--green); padding: 0 8px; }
.btn.ghost:hover { background: rgba(15, 58, 44, 0.06); }
.btn.small { height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.input, select.input, textarea.input {
  height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0;
}
textarea.input { height: auto; min-height: 76px; padding: 8px 11px; resize: vertical; line-height: 1.45; }
select.input { padding-right: 30px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230F3A2C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center / 11px; }
.input:focus { border-color: var(--green-3); outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 87, 0.15); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span, .label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field small, .hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--green); }

.seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; flex-wrap: wrap; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--green); color: #fff; }
.seg button:hover:not([aria-pressed='true']) { background: rgba(15, 58, 44, 0.06); }

/* ------------------------------------------------------------------ cards and tiles */
.cards { display: grid; gap: 16px; }
.card-box { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-box > h2 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-box > h2 .aside { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.1; }
.kpi-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi-value.text { font-size: 18px; margin-top: 10px; line-height: 1.25; }
.kpi.accent { background: var(--green); border-color: var(--green); color: #fff; }
.kpi.accent .kpi-label, .kpi.accent .kpi-note { color: #BFD2C7; }
.dots { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #8FB5A3; }
.dots i.on { background: var(--lime); border-color: var(--lime); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.funnel { display: grid; grid-template-columns: max-content minmax(0, 1fr) 48px; gap: 9px 14px; align-items: center; }
.funnel .f-label { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.funnel .f-track { height: 14px; border-radius: 0 4px 4px 0; position: relative; }
.funnel .f-bar { height: 100%; background: var(--green); border-radius: 0 4px 4px 0; min-width: 2px; }
.funnel .f-bar.zero { background: var(--line); }
.funnel .f-num { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.rates { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.rate b { display: block; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rate span { font-size: 12px; color: var(--muted); }

.meter { height: 12px; background: var(--line-2); border-radius: 6px; overflow: hidden; margin: 12px 0 8px; position: relative; }
.meter > i { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.big-fig { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big-fig small { font-size: 15px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.status-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.status-line .tag { flex: none; }

.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv td, .kv th { padding: 7px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.kv th { font-weight: 600; color: var(--muted); font-size: 12px; }
.kv tr:last-child td { border-bottom: 0; }
.kv td.num, .kv th.num { text-align: right; }
/* The By industry card: room between the figures and the lead sources, and between the columns. */
.ind-figs th, .ind-figs td { padding-left: 14px; }
.ind-figs th:first-child, .ind-figs td:first-child { padding-left: 10px; }
.ind-figs td:last-child, .ind-figs th:last-child { padding-left: 22px; padding-right: 10px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-size: 13px; padding: 6px 0; }

.attention { list-style: none; margin: 0; padding: 0; }
.attention li { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.attention li:last-child { border-bottom: 0; }
.attention a { font-weight: 600; text-decoration: none; }
details.how { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
details.how summary { cursor: pointer; font-weight: 600; color: var(--green); }
details.how dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; }
details.how dt { font-weight: 600; }
details.how dd { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ tags */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 650; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.tag.green { background: var(--green); color: #fff; border-color: var(--green); }
.tag.lime { background: var(--lime); color: var(--green); border-color: #B5D877; }
.tag.red { background: var(--red-soft); color: var(--red); border-color: #E8C6BD; }
.tag.amber { background: var(--amber-soft); color: var(--amber); border-color: #E6D6A8; }
.tag svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.tag.wrap { height: auto; min-height: 20px; padding: 2px 7px; white-space: normal; max-width: 100%; }
.tier { font-weight: 700; }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 9px; margin-bottom: 14px; font-size: 13px; }
.banner.red { background: var(--red-soft); color: #5E1F15; border: 1px solid #E8C6BD; }
.banner.amber { background: var(--amber-soft); color: #4E3A00; border: 1px solid #E6D6A8; }
.banner { flex-wrap: wrap; }
.banner > div { flex: 1 1 260px; min-width: 0; }
.banner strong { display: block; margin-bottom: 2px; }
.banner ul { margin: 6px 0 0; padding-left: 18px; }

/* ------------------------------------------------------------------ pipeline board */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 220px; max-width: 320px; }
.toolbar .count { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.board-wrap { position: relative; }
.board {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: none;
  scrollbar-color: #BFC5BB transparent;
}
.col { flex: 0 0 262px; display: flex; flex-direction: column; background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--radius); max-height: calc(100vh - 210px); min-height: 220px; transition: background 0.12s, border-color 0.12s; }
.col.side-stage { flex-basis: 222px; }
.col.over { background: var(--lime-soft); border-color: #A9CF6A; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--line-2); }
.col-head h2 { font-size: 13px; font-weight: 650; line-height: 1.25; }
.col-head .n { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--muted); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.col-body { padding: 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.col-empty { color: var(--muted); font-size: 12px; padding: 10px 6px; text-align: center; }
.bcard {
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 10px 9px 8px; cursor: pointer;
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 2px 6px; box-shadow: 0 1px 1px rgba(15, 58, 44, 0.04);
  user-select: none; -webkit-user-select: none;
}
.bcard:hover { border-color: #C5CABF; }
.bcard.dragging { opacity: 0.35; }
.bcard.ghost { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; box-shadow: 0 12px 28px rgba(15, 58, 44, 0.22); transform-origin: 0 0; opacity: 0.96; }
.bcard.is-dnc { background: #FBF6F4; }
.grip { grid-row: 1 / span 3; align-self: start; width: 16px; height: 22px; border: 0; padding: 0; background: none; color: #A7AFA8; cursor: grab; touch-action: none; display: flex; align-items: center; justify-content: center; }
.grip svg { width: 10px; height: 16px; fill: currentColor; }
.bcard .b-name { grid-row: 1; grid-column: 2; font-weight: 650; font-size: 13px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bcard .b-meta { grid-row: 2; grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.bcard .b-tags { grid-row: 3; grid-column: 2 / 4; display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.bcard .b-days { grid-row: 1; grid-column: 3; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bcard .move { display: none; }
.stage-chips { display: none; }

/* ------------------------------------------------------------------ table */
.table-wrap { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-size: 12px; font-weight: 650; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card-2); position: sticky; top: 0; white-space: nowrap; }
table.data th button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
table.data th[aria-sort] button::after { content: ''; border: 4px solid transparent; }
table.data th[aria-sort='ascending'] button::after { border-bottom-color: currentColor; margin-top: -4px; }
table.data th[aria-sort='descending'] button::after { border-top-color: currentColor; margin-top: 4px; }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: #fff; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .t-name { font-weight: 600; }
table.data .t-sub { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ business detail */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 12px; }
.biz-head { display: flex; gap: 16px 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.biz-head .title { flex: 1 1 380px; min-width: 0; }
.biz-head h1 { font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.biz-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--ink-2); align-items: center; }
.biz-meta a { overflow-wrap: anywhere; }
.stage-box { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; min-width: 300px; box-shadow: var(--shadow); }
.stage-box .now { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.stage-box .now b { font-size: 15px; }
.stage-box form { display: grid; grid-template-columns: minmax(0, 1fr) 132px auto; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; min-width: 0; }
.log-form { display: grid; grid-template-columns: 170px 140px minmax(0, 1fr); gap: 8px; margin-bottom: 6px; }
.log-form .summary { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.log-block { font-size: 12.5px; color: var(--red); margin: 4px 0 8px; display: flex; gap: 6px; align-items: center; }
.timeline { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.timeline .ic { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card-2); color: var(--green); border: 1px solid var(--line-2); }
.timeline .ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.timeline .ic.stage { background: var(--green); color: var(--lime); border-color: var(--green); }
.timeline .ic.form { background: var(--lime); color: var(--green); border-color: #B5D877; }
.timeline .ic.warn { background: var(--red-soft); color: var(--red); border-color: #E8C6BD; }
.timeline .t-title { font-weight: 600; font-size: 13px; }
.timeline .t-text { font-size: 13px; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.timeline .t-date { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; }
.timeline .t-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; margin-top: 4px; text-decoration: underline; }
dl.facts { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13px; }
dl.facts dt { color: var(--muted); font-weight: 550; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.issues { margin: 0; padding-left: 18px; }
.line-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.line-item:last-of-type { border-bottom: 0; }
.line-item .li-title { font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.line-item .li-sub { font-size: 12px; color: var(--muted); }
.line-item .li-amt { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.line-item .li-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.sub-form { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.suggest { font-size: 12px; color: var(--ink-2); background: var(--lime-soft); border: 1px solid #D5EBB0; border-radius: 7px; padding: 8px 10px; }

/* ------------------------------------------------------------------ founding */
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.slot { border: 1px solid var(--line-2); background: #fff; border-radius: 9px; padding: 12px; min-height: 104px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.slot .s-no { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; }
.slot .s-name { font-weight: 650; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.slot .s-sub { font-size: 12px; color: var(--muted); margin-top: auto; }
.slot.open { background: transparent; border: 1.5px dashed #C3C8BE; color: var(--muted); justify-content: center; align-items: center; text-align: center; }
.slot.taken { border-color: #B5D877; }
.slot.taken .s-no span:first-child { color: var(--green); }
.price-table td, .price-table th { padding: 9px 10px 9px 0; }

/* ------------------------------------------------------------------ rand */
.zar { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.35; margin-top: 1px; white-space: nowrap; }
.zar.inline { display: inline; margin-left: 6px; }
.zar .after { color: var(--muted); }
.kpi .kpi-zar { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; white-space: normal; }
.kpi .kpi-zar .after { color: var(--muted); }
.kpi.accent .kpi-zar, .kpi.accent .kpi-zar .after { color: #DCE7E0; }
.rate .zar { margin: 1px 0 2px; }
.li-amt .zar { font-weight: 500; }
.zar-hint { font-size: 12px; color: var(--muted); min-height: 16px; font-variant-numeric: tabular-nums; }
.fx-line { font-size: 12.5px; margin-top: 4px; }
.check-tag { display: inline-block; font-size: 11px; font-weight: 650; color: var(--amber); background: var(--amber-soft); border: 1px solid #E6D6A8; border-radius: 5px; padding: 0 6px; line-height: 18px; white-space: nowrap; }
.field .check-tag { align-self: flex-start; }
.small-link { font-size: 12.5px; font-weight: 600; }

/* ------------------------------------------------------------------ money page */
.dash-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi-value.ok { color: var(--green-3); }
.kpi-value.off { color: var(--red); }
.converter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; align-items: start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.conv-out { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.conv-out .label { line-height: 1.35; }
.conv-out b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.conv-out .check-tag { align-self: flex-start; }
.diff-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.diff-line b { font-size: 18px; font-variant-numeric: tabular-nums; }
.diff-line.ok { background: var(--lime-soft); border: 1px solid #D5EBB0; color: var(--green); }
.diff-line.off { background: var(--red-soft); border: 1px solid #E8C6BD; color: #5E1F15; }
.breakdown .kv tr.total td { border-top: 1px solid var(--line); }
.breakdown .kv tr.total.off td { color: var(--red); }
.breakdown .kv tr.total.ok td { color: var(--green-3); }
details.checks { margin-top: 12px; font-size: 13px; }
details.checks summary, details.add-ptx summary { cursor: pointer; font-weight: 600; color: var(--green); font-size: 13px; }
details.add-ptx { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.imports { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.mapper .map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; }
.map-counts { margin-top: 12px; }
.skipped { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: var(--amber); }
.table-wrap.flat { box-shadow: none; margin-top: 10px; }
table.mini, table.ledger { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.mini th, table.ledger th { text-align: left; font-size: 12px; font-weight: 650; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--card-2); white-space: nowrap; }
table.mini td, table.ledger td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.mini td { white-space: nowrap; }
table.mini tr.dup td { color: var(--muted); }
table.mini .num, table.ledger .num { text-align: right; font-variant-numeric: tabular-nums; }
table.ledger tr:last-child td { border-bottom: 0; }
table.ledger .t-name { font-weight: 600; overflow-wrap: anywhere; }
table.ledger .t-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
table.ledger .l-kind select { height: 30px; font-size: 12px; max-width: 190px; }
table.ledger .l-amt { white-space: nowrap; font-weight: 600; }
table.ledger .l-date { white-space: nowrap; }
table.ledger .amt-in { color: var(--green-3); }
table.ledger .t-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; }
.um-list { list-style: none; margin: 0; padding: 0; }
.um-list li { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; display: grid; gap: 6px; }
.um-list li:last-child { border-bottom: 0; }
.um-main b { font-variant-numeric: tabular-nums; }
.um-sugg { display: flex; gap: 6px; flex-wrap: wrap; }
.um-sugg .btn { white-space: normal; height: auto; min-height: 30px; padding: 4px 10px; text-align: left; }
.um-acts select { height: 30px; font-size: 12px; flex: 1 1 200px; max-width: 360px; }
.um-none { font-size: 12.5px; }
.t-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; }

/* ------------------------------------------------------------------ settings */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; }
.stage-list .pos { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.stage-list .acts { display: flex; gap: 2px; }
.icon-btn { width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.icon-btn:hover { background: rgba(15, 58, 44, 0.07); }
.icon-btn:disabled { opacity: 0.3; cursor: default; background: none; }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prod-table input.input { height: 32px; width: 100%; }
.prod-table td { padding: 5px 6px 5px 0; vertical-align: middle; }
.report { font-size: 13px; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; margin-top: 12px; }
.report ul { margin: 6px 0 0; padding-left: 18px; }
.report li { margin: 3px 0; }

/* ------------------------------------------------------------------ dialog and toasts */
.dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(10, 30, 22, 0.28); }
.dialog::backdrop { background: rgba(12, 34, 26, 0.42); }
.dialog form { padding: 22px; display: grid; gap: 14px; }
.dialog h2 { font-size: 17px; }
.dialog .lead { color: var(--ink-2); font-size: 13px; margin-top: -6px; }
.dialog .choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fff; cursor: pointer; }
.choice input { margin-top: 3px; accent-color: var(--green); }
.choice.disabled { opacity: 0.55; cursor: not-allowed; }
.choice b { display: block; font-size: 13px; }
.choice span { font-size: 12px; color: var(--muted); }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--green); color: #fff; padding: 11px 14px; border-radius: 9px; font-size: 13px; box-shadow: 0 10px 28px rgba(10, 30, 22, 0.25); pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-top: 6px; flex: none; }
.toast.error { background: #5E1F15; }
.toast.error::before { background: #F0A595; }
.login { max-width: 380px; margin: 12vh auto 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .dash-grid.three { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-grid.even { grid-template-columns: minmax(0, 1fr); }
  .mapper .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .shell { display: block; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 40; padding: 0 6px calc(6px + env(safe-area-inset-bottom)); flex-direction: row; background: var(--green); }
  .side .brand, .side-foot { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 0; }
  .nav a { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 8px 4px 6px; flex: 1; text-align: center; border-radius: 0; }
  .nav a.active { background: none; }
  .nav a.active::before { left: 28%; right: 28%; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .topbar { display: flex; align-items: center; height: 52px; padding: 0 16px; background: var(--green); position: sticky; top: 0; z-index: 30; }
  .topbar .brand { padding: 0; }
  .main { padding: 18px 16px 24px; }
  .main-col { padding-bottom: 72px; }
  .fx-credit { padding: 0 16px 20px; }
  .converter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .converter .field { grid-column: 1 / -1; }
  .mapper .map-grid { grid-template-columns: minmax(0, 1fr); }
  table.ledger thead { display: none; }
  table.ledger, table.ledger tbody { display: block; }
  table.ledger tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
  table.ledger td { display: block; padding: 0; border: 0; }
  table.ledger td.l-date { grid-column: 1; grid-row: 1; font-size: 12px; color: var(--muted); }
  table.ledger td.l-desc { grid-column: 1; grid-row: 2; }
  table.ledger td.l-amt { grid-column: 2; grid-row: 1 / span 2; }
  table.ledger td.l-kind { grid-column: 1 / -1; grid-row: 3; }
  table.ledger td.l-inv { grid-column: 1 / -1; grid-row: 4; }
  table.ledger td.l-act { grid-column: 1 / -1; grid-row: 5; }
  table.ledger td.l-inv:empty { display: none; }
  h1 { font-size: 20px; }
  .page-head { margin-bottom: 14px; }
  .kpis { gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi-value { font-size: 22px; }
  .kpi-value.text { font-size: 15px; }
  .banner > svg { display: none; }
  .card-box { padding: 15px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .funnel { grid-template-columns: 112px minmax(0, 1fr) 36px; gap: 8px 10px; }
  .funnel .f-label { font-size: 12px; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .toolbar .count { margin-left: 0; }
  .stage-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .stage-chips button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
  .stage-chips button b { color: var(--muted); font-weight: 650; margin-left: 4px; }
  .board { scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 14px; scroll-padding: 0 16px; }
  .col, .col.side-stage { flex-basis: 84vw; scroll-snap-align: start; max-height: calc(100vh - 290px); }
  .bcard .move { display: inline-flex; grid-row: 1; grid-column: 3; height: 26px; padding: 0 8px; font-size: 11px; }
  .bcard .b-meta { grid-column: 2; }
  .bcard .b-days { grid-row: 2; grid-column: 3; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: 10px 14px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  table.data td { padding: 0; border: 0; }
  table.data td.hide-sm { display: none; }
  /* Settings, Industries: the showcase column folds away and long addresses wrap on a phone. */
  .ind-table .hide-sm { display: none; }
  .ind-table td { overflow-wrap: anywhere; }
  .ind-table td .btn { white-space: nowrap; }
  table.data td.num { text-align: right; }
  .stage-box { min-width: 0; width: 100%; }
  .stage-box form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stage-box form .btn { grid-column: 1 / -1; }
  .log-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .log-form .subject { grid-column: 1 / -1; }
  .log-form .summary { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 28px minmax(0, 1fr); }
  .timeline .t-date { grid-column: 2; text-align: left; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dl.facts { grid-template-columns: 100px minmax(0, 1fr); }
  .toasts { bottom: 84px; }
  .dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Onboarding, accounts, to-dos and the showcase on a spa's page */
.linkbox { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.linkbox .input { flex: 1 1 auto; min-width: 0; font-size: 12.5px; }
.sub-h { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.acct-table td { vertical-align: top; }
.acct-det { font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.todos { list-style: none; margin: 8px 0 0; padding: 0; }
.todos li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.todos li:first-child { border-top: 0; }
.todos li .muted { font-size: 12.5px; margin-top: 3px; overflow-wrap: anywhere; }
.todos li.done .todo-title { text-decoration: line-through; color: var(--muted); }
.todo-title { font-weight: 600; overflow-wrap: anywhere; }
.todo-link { display: inline-block; margin-top: 4px; font-weight: 600; font-size: 12.5px; }
.todo-done { margin-top: 10px; font-size: 13px; }
.todo-done summary { cursor: pointer; color: var(--muted); }
.changes { margin: 8px 0 14px; padding-left: 18px; font-size: 13px; }
.case-steps { display: grid; gap: 6px; }
.case-step { gap: 8px; }
