/* ===== The Intelligent Firm — design system (lifted from the main app) =====
   Kept in sync with Intelligent Firm vX.Y.Z.html so the PNC site reads as the
   same firm. PNC-specific additions are grouped at the bottom. */
:root{
  --ink:#1b1d1a; --muted:#7c7a72; --paper:#f6f3ec; --surface:#ffffff;
  --surface-2:#fbf9f4; --line:#e7e1d4; --brand:#1f3a34; --brand-700:#152a25;
  --accent:#9c7a4a; --accent-bright:#c9a86b; --danger:#8f3a2f; --ok:#22674f;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --shadow:0 1px 2px rgba(21,42,37,.04), 0 12px 32px rgba(21,42,37,.06);
}
*{ box-sizing:border-box; }
html,body{ overflow-x:hidden; }
body{ font-family:var(--sans); background:var(--paper); color:var(--ink); margin:0;
      line-height:1.5; -webkit-font-smoothing:antialiased; }
.wrap{ max-width:980px; margin:0 auto; padding:0 24px 56px; }

.masthead{ width:100vw; position:relative; left:50%; margin-left:-50vw;
  background:linear-gradient(180deg,#274a42 0%,#1a322c 100%);
  border-bottom:3px solid var(--accent); text-align:center; padding:34px 24px 26px; color:#f3efe4; }
.masthead .logo{ width:48px; height:48px; display:inline-block; }
.brand-title{ font-family:var(--serif); color:#f6f3ec; font-size:30px; font-weight:600;
  letter-spacing:.5px; margin:10px 0 0; }
.brand-sub{ text-transform:uppercase; letter-spacing:3px; font-size:11px; font-weight:600;
  color:var(--accent-bright); margin:9px 0 0; }
.topnav{ display:flex; gap:18px; justify-content:center; margin:16px 0 0; }
.topnav a{ color:#e7efe9; text-decoration:none; font-size:13px; font-weight:600;
  letter-spacing:.4px; padding-bottom:3px; border-bottom:2px solid transparent; }
.topnav a:hover,.topnav a.active{ color:#fff; border-bottom-color:var(--accent-bright); }

h2.section{ font-family:var(--serif); font-size:26px; font-weight:600; color:var(--ink);
  letter-spacing:.2px; margin:34px 0 3px; }
.sub{ color:var(--muted); margin:0 0 24px; font-size:14.5px; }

.card{ background:var(--surface); border:1px solid var(--line); border-radius:16px;
  padding:26px; margin-bottom:18px; box-shadow:var(--shadow); }

label{ display:block; font-weight:600; margin:16px 0 5px; font-size:12px;
  text-transform:uppercase; letter-spacing:.7px; color:#4b4e48; }
input,select,textarea{ width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px;
  font-size:15px; font-family:var(--sans); background:#fff; color:var(--ink);
  transition:border-color .15s, box-shadow .15s; }
input::placeholder,textarea::placeholder{ color:#bdb9ad; }
textarea{ min-height:96px; resize:vertical; line-height:1.5; }
input:focus,select:focus,textarea:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(31,58,52,.13); }
.row{ display:flex; gap:16px; flex-wrap:wrap; } .row>div{ flex:1; min-width:140px; }

.btn{ background:var(--brand); color:#f6f3ec; border:none; border-radius:11px; padding:15px 30px;
  font-size:14px; font-weight:600; cursor:pointer; font-family:var(--sans); letter-spacing:.6px;
  text-transform:uppercase; transition:background .15s, transform .12s, box-shadow .15s;
  box-shadow:0 2px 8px rgba(31,58,52,.18); }
.btn:hover{ background:var(--brand-700); transform:translateY(-1px); box-shadow:0 6px 16px rgba(31,58,52,.22); }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; }
.minibtn{ background:var(--surface-2); border:1px solid var(--line); border-radius:9px;
  padding:9px 15px; font-size:13px; font-weight:600; cursor:pointer; color:var(--ink); margin-right:8px; }
.minibtn:hover{ border-color:var(--brand); }
.back{ display:inline-block; color:var(--brand); text-decoration:none; font-size:13px; font-weight:600;
  cursor:pointer; letter-spacing:.3px; margin-top:24px; }
.back:hover{ color:var(--accent); }
.note{ font-size:12.5px; color:var(--muted); margin-top:7px; }
.err{ color:var(--danger); font-weight:600; margin:0 0 14px; }
.ok{ color:var(--ok); font-weight:600; margin:14px 0 0; }

footer{ border-top:1px solid var(--line); margin-top:40px; padding:26px 0 10px; text-align:center;
  color:var(--muted); font-size:12px; line-height:1.85; }
footer strong{ font-family:var(--serif); color:var(--brand); font-weight:600; }

table.batch{ width:100%; border-collapse:collapse; margin-top:8px; font-size:14px; }
table.batch th{ text-align:left; font-size:11px; letter-spacing:.04em; text-transform:uppercase;
  color:var(--muted); font-weight:700; padding:8px 8px; border-bottom:1px solid var(--line); }
table.batch th[data-key]{ cursor:pointer; user-select:none; white-space:nowrap; }
table.batch th[data-key]:hover{ color:var(--ink); }
table.batch th[data-key]::after{ content:"\2195"; opacity:.35; margin-left:5px; font-size:10px; }
table.batch th.sorted{ color:var(--brand); }
table.batch th.sorted::after{ content:"\2191"; opacity:1; }
table.batch th.sorted.desc::after{ content:"\2193"; }
table.batch td{ padding:10px 8px; vertical-align:middle; border-bottom:1px solid var(--surface-2); }
table.batch tr.clickable{ cursor:pointer; }
table.batch tr.clickable:hover td{ background:var(--surface-2); }
table.batch td{ white-space:nowrap; }
/* Wide dashboard table: scroll horizontally rather than overflow the page. */
.tablescroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; margin:0 -8px; padding:0 8px; }
table.batch.wide{ min-width:1180px; }
.cell-clip{ display:inline-block; max-width:150px; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; vertical-align:bottom; }
.tick{ color:var(--ok); font-weight:700; font-size:15px; }
.muted-sm{ color:var(--muted); font-size:11px; }

/* ===== PNC-specific ===== */
.counts{ display:flex; gap:14px; flex-wrap:wrap; margin:8px 0 22px; }
.count{ flex:1; min-width:150px; background:var(--surface); border:1px solid var(--line);
  border-radius:14px; padding:16px 18px; box-shadow:var(--shadow); }
.count .n{ font-family:var(--serif); font-size:30px; font-weight:600; line-height:1; }
.count .l{ font-size:11px; text-transform:uppercase; letter-spacing:.7px; color:var(--muted); margin-top:6px; }
.count.overdue .n{ color:var(--danger); }
.count.due_soon .n{ color:var(--accent); }
.count.open .n{ color:var(--brand); }

.chip{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase;
  padding:3px 9px; border-radius:999px; border:1px solid var(--line); color:var(--muted); background:var(--surface-2); }
.chip.not_called{ color:#7a5b1f; background:#f7efdd; border-color:#e9d9b0; }
.chip.called{ color:#1f3a34; background:#e4efe9; border-color:#c4ddd1; }
.chip.reached{ color:#fff; background:var(--ok); border-color:var(--ok); }
.chip.closed{ color:var(--muted); }
.chip.overdue{ color:#fff; background:var(--danger); border-color:var(--danger); }

.filters{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:6px; }
.filters input,.filters select{ width:auto; flex:0 0 auto; }
.tab{ background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:8px 16px;
  font-size:13px; font-weight:600; cursor:pointer; color:var(--muted); }
.tab.active{ background:var(--brand); color:#f6f3ec; border-color:var(--brand); }

.review{ display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; }
@media (max-width:820px){ .review{ grid-template-columns:1fr; } }
.scanbox{ position:sticky; top:16px; background:var(--surface-2); border:1px solid var(--line);
  border-radius:14px; padding:12px; text-align:center; }
.scanbox img,.scanbox embed{ max-width:100%; border-radius:8px; }
.lowconf{ border-color:var(--accent) !important; background:#fdf8ef; }
.dropzone{ border:2px dashed var(--line); border-radius:16px; padding:48px 24px; text-align:center;
  color:var(--muted); cursor:pointer; background:var(--surface-2); }
.dropzone.drag{ border-color:var(--brand); background:#fff; color:var(--ink); }

.timeline{ list-style:none; padding:0; margin:0; }
.timeline li{ padding:12px 0; border-bottom:1px solid var(--surface-2); }
.timeline .when{ font-size:12px; color:var(--muted); }
.spinner{ display:inline-block; width:18px; height:18px; border:2px solid var(--line);
  border-top-color:var(--brand); border-radius:50%; animation:spin .8s linear infinite; vertical-align:middle; }
@keyframes spin{ to{ transform:rotate(360deg); } }
