/* The client portal demo. Colours and buttons come from site.css. */
.pt-body { background: var(--bg); padding-bottom: 0 !important; }
.concept a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* login */
.pt-login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: calc(100vh - 34px); }
.pt-pitch { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(32px, 7vw, 96px); background: var(--grad); color: #fff; }
.pt-pitch::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.pt-pitch > * { position: relative; z-index: 1; }
.pt-pitch .kicker { color: #fff; }
.pt-pitch .kicker::before { background: #fff; }
.pt-pitch h1 { margin-top: 14px; font-size: clamp(34px, 4vw, 52px); font-weight: 800; }
.pt-pitch > p { margin-top: 16px; max-width: 480px; font-size: 18px; color: rgba(255, 255, 255, .94); }
.pt-pitch ul { list-style: none; display: grid; gap: 12px; margin-top: 28px; font-weight: 700; }
.pt-pitch li { display: flex; gap: 10px; align-items: center; }
.pt-pitch li .ico { width: 20px; height: 20px; stroke-width: 2.8; }
.pt-enter { display: grid; place-items: center; padding: 40px 20px; background: #fff; }
.pt-enter-in { width: min(400px, 100%); }
.pt-enter img { height: 52px; width: auto; }
.pt-enter h2 { margin-top: 22px; font-size: 28px; }
.pt-enter p.sub { margin-top: 6px; color: var(--muted); }
.pt-enter form { display: grid; gap: 14px; margin-top: 22px; }
.pt-enter label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pt-enter input { height: 48px; padding: 0 14px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg); font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pt-enter .btn { width: 100%; margin-top: 6px; }
.pt-demo { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fff4f1; font-size: 13.5px; font-weight: 600; color: #8f1f19; }
.pt-back { display: block; margin-top: 16px; text-align: center; font-size: 14px; font-weight: 700; color: var(--red-text); }

/* app shell */
.pt-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 34px); }
.pt-side { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh; padding: 22px 16px; background: var(--navy); color: #d6dbea; }
.pt-brand { display: inline-block; align-self: flex-start; padding: 6px 10px; border-radius: 10px; background: #fff; }
.pt-brand img { height: 36px; width: auto; }
.pt-who { margin: 18px 6px 18px; font-size: 14px; }
.pt-who b { display: block; color: #fff; font-size: 15px; }
.pt-nav { display: grid; gap: 4px; }
.pt-nav button, .pt-side-foot button, .pt-side-foot a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; font-family: inherit; font-size: 15px; font-weight: 700; color: inherit; cursor: pointer; text-align: left; }
.pt-nav button:hover, .pt-side-foot button:hover, .pt-side-foot a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pt-nav button[aria-current] { background: var(--grad); color: #fff; }
.pt-nav .ico, .pt-side-foot .ico { width: 19px; height: 19px; }
.pt-nav small { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 800; color: #fff; }
.pt-side-foot { display: grid; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pt-main { min-width: 0; padding: 30px clamp(18px, 3vw, 40px) 60px; }
.pt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.pt-head h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.pt-head p { margin-top: 4px; color: var(--ink-2); }
.pt-head .btn { height: 46px; font-size: 14.5px; }

/* stat tiles */
.pt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pt-tile { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.pt-tile span { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.pt-tile b { display: block; margin-top: 4px; font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.pt-tile small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* cards */
.pt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pt-card { min-width: 0; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.pt-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.pt-card h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pt-link { border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--red-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pt-tag { padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 800; color: var(--ink-2); }

/* chart colours: checked for colour blindness and contrast. One colour for each lead type, everywhere. */
.sql { --s: #c62a22; } .mql { --s: #4f6bd1; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pt-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; background: var(--s); }
.mchart { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 18px 56px 0 26px; }
.mc-grid { position: absolute; left: 0; right: 0; top: 0; height: 200px; pointer-events: none; }
.mc-grid span { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.mc-grid u { position: absolute; left: -26px; bottom: -8px; width: 20px; text-align: right; text-decoration: none; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.mc { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; border-radius: 8px; outline-offset: 2px; cursor: default; }
.mc-plot { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 200px; }
.mc-bar { position: relative; display: flex; flex-direction: column; gap: 2px; width: min(30px, 62%); }
.mc-bar b { position: absolute; left: -12px; right: -12px; top: -20px; text-align: center; font-size: 13px; font-weight: 800; color: var(--ink); }
.mc-bar i { display: block; background: var(--s); }
.mc-bar i:first-of-type { border-radius: 4px 4px 0 0; }
.mc small { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.mc:hover .mc-bar, .mc:focus .mc-bar { filter: brightness(1.08); }
.dl { position: absolute; left: calc(50% + 18px); transform: translateY(50%); white-space: nowrap; font-size: 12px; font-style: normal; font-weight: 700; color: var(--ink-2); }
.hbars { list-style: none; display: grid; gap: 16px; margin-top: 18px; }
.hbars li { display: grid; grid-template-columns: 138px minmax(0, 1fr) 26px; align-items: center; gap: 12px; padding: 2px 0; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: default; outline-offset: 3px; }
.hb { height: 12px; }
.hb i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #c62a22; }
.hbars b { text-align: right; font-weight: 800; }
.pt-tip { position: fixed; z-index: 60; max-width: 260px; padding: 7px 11px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35; pointer-events: none; box-shadow: 0 8px 22px rgba(28, 37, 64, .25); }

/* latest leads, account manager */
.pt-latest { list-style: none; margin-top: 8px; }
.pt-latest li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.pt-latest li:first-child { border-top: 0; }
.pt-latest b { display: block; font-size: 14.5px; font-weight: 700; }
.pt-latest small { display: block; font-size: 13px; color: var(--ink-2); }
.pt-date { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ty { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink); }
.ty i { width: 9px; height: 9px; border-radius: 3px; background: var(--s); }
.pt-am { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-content: center; gap: 14px; }
.pt-am-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.pt-am-av img { width: 26px; height: 30px; object-fit: cover; object-position: left center; }
.pt-am p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.pt-am .ctas { grid-column: 1 / -1; margin-top: 4px; }
.pt-am .btn { flex: 1; height: 46px; font-size: 14.5px; }

/* leads table */
.pt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.pt-tools .filters { margin: 0; justify-content: flex-start; }
.pt-tools select, .pt-tools input { height: 42px; min-width: 0; padding: 0 12px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
.pt-tools input { flex: 1 1 200px; }
.pt-flush { margin-top: 14px; padding: 0; overflow: hidden; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th { padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fbfcfe; border-bottom: 1px solid var(--line); }
.pt-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.pt-table tr:last-child td, .pt-table tr:last-child th { border-bottom: 0; }
.pt-table td b { display: block; font-weight: 700; color: var(--ink); }
.pt-table td small { display: block; font-size: 13px; color: var(--muted); }
.pt-table select { height: 38px; max-width: 150px; padding: 0 8px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pt-table.compact { margin-top: 14px; }
.pt-table.compact th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; color: var(--ink); background: none; }
.pt-none { padding: 30px; text-align: center; font-weight: 600; }
.pt-count { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* reports */
.pt-inline { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pt-report { margin-top: 14px; }
.pt-sum { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.pt-up { font-weight: 800; color: var(--green) !important; }
.pt-down { font-weight: 800; color: var(--red-text) !important; }

@media (max-width: 1100px) {
  .pt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .pt-login { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pt-pitch { padding: 40px 20px; }
  .pt-pitch ul { display: none; }
  .pt-app { grid-template-columns: minmax(0, 1fr); }
  .pt-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; }
  .pt-who { display: none; }
  .pt-nav { order: 3; flex: 1 1 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-nav button { justify-content: center; padding: 9px 6px; font-size: 14px; }
  .pt-nav small { margin-left: 2px; }
  .pt-side-foot { margin: 0 0 0 auto; padding: 0; border: 0; grid-auto-flow: column; }
  .pt-side-foot a, .pt-side-foot button { padding: 8px 10px; font-size: 13.5px; }
  .pt-side-foot .ico { display: none; }
  .pt-main { padding: 22px 16px 48px; }
  /* the leads table becomes one card per lead */
  .pt-flush { overflow: visible; background: none; border: 0; }
  .pt-flush .pt-table thead { display: none; }
  .pt-flush .pt-table, .pt-flush .pt-table tbody, .pt-flush .pt-table tr, .pt-flush .pt-table td { display: block; }
  .pt-flush .pt-table tr { margin-bottom: 10px; padding: 8px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
  .pt-flush .pt-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
  .pt-flush .pt-table tr td:last-child { border-bottom: 0; }
  .pt-flush .pt-table td::before { content: attr(data-l); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .pt-flush .pt-table td.pt-none { display: block; }
  .pt-flush .pt-table td.pt-none::before { content: none; }
  .pt-table select { max-width: 100%; width: 100%; }
}
@media (max-width: 560px) {
  .pt-tile { padding: 16px; }
  .pt-tile b { font-size: 30px; }
  .pt-card { padding: 18px 16px; }
  .pt-flush { padding: 0; }
  .mchart { margin: 18px 48px 0 24px; }
  .mc-bar { width: min(22px, 70%); }
  .dl { left: calc(50% + 13px); font-size: 11px; }
  .hbars li { grid-template-columns: 112px minmax(0, 1fr) 22px; gap: 8px; font-size: 13px; }
  .pt-table.compact th, .pt-table.compact td { padding: 10px 6px; font-size: 13px; }
  .pt-table.compact thead th { font-size: 10.5px; letter-spacing: .02em; }
  .pt-latest li { grid-template-columns: 50px minmax(0, 1fr); }
  .pt-latest .pt-date { display: none; }
}
@media print {
  .concept, .pt-side, .no-print { display: none !important; }
  .pt-app { display: block; }
  .pt-main { padding: 0; }
  .pt-card { border: 0; padding: 0; }
  body { background: #fff; }
}
