/* Leads CRM - original styles */
:root {
  --bg: #eef3fb; --surface: #fff; --text: #4b5563; --head: #1e2a44; --muted: #6b7686; --line: #dbe4f3;
  --brand: #1d5fd1; --brand-dark: #1747b0; --brand-soft: rgba(29, 95, 209, .10); --green: #12805c; --amber: #b25e09; --red: #c0262d; --blue: #1d5fd1;
  --radius: 14px; --shadow: 0 4px 16px rgba(30, 42, 68, .08); --shadow-btn: 0 4px 12px rgba(29, 95, 209, .30);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1522; --surface: #172033; --text: #c9d2e3; --head: #eef2fb; --muted: #94a0b5; --line: #26324a; --brand: #5b93f5; --brand-dark: #7aa9ff; --brand-soft: rgba(91, 147, 245, .16); --shadow: 0 4px 16px rgba(0,0,0,.35); --shadow-btn: 0 4px 12px rgba(0,0,0,.4); --green: #3ccf9a; --amber: #f0a64a; --red: #ff7b80; --blue: #5b93f5; }
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
code { background: var(--line); padding: .1rem .35rem; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.inr { color: var(--muted); font-size: .85em; }

/* top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: .55rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { padding: .35rem .7rem; border-radius: 8px; color: var(--text); }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.active { background: var(--brand); color: #fff; }
.clocks { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: auto; }
.clock { font-variant-numeric: tabular-nums; font-size: .8rem; background: var(--bg); border: 1px solid var(--line); padding: .25rem .55rem; border-radius: 8px; white-space: nowrap; }
.clock-small { font-size: .75rem; padding: .1rem .4rem; }
.usermenu { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.pill { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; color: var(--muted); }
.subnav { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.subnav a { padding: .45rem .8rem; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a.active { color: var(--text); border-bottom-color: var(--brand); }

.container { max-width: 1240px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.page-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }

/* cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 640px; }
.card-danger { border-color: var(--red); }
.pad { padding: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1rem; align-items: start; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.price-card h3 { margin-top: 0; }
.price { font-size: 1.7rem; font-weight: 700; margin: .25rem 0 .5rem; }
@media (max-width: 860px) { .grid-2, .grid-main { grid-template-columns: 1fr; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.stat-num { font-size: 1.9rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-warn { border-color: var(--amber); }
.stat-warn .stat-num { color: var(--amber); }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--bg); }
.table tr:last-child td { border-bottom: 0; }
.table-compact td, .table-compact th { padding: .35rem .6rem; font-size: .85rem; }
.row-overdue td { background: rgba(192, 38, 45, .08); }
.row-stale td { background: rgba(178, 94, 9, .09); }

/* badges / flashes / banner */
.badge { display: inline-block; font-size: .72rem; padding: .08rem .5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); vertical-align: middle; }
.badge-red { background: rgba(192, 38, 45, .12); border-color: var(--red); color: var(--red); }
.badge-amber { background: rgba(178, 94, 9, .12); border-color: var(--amber); color: var(--amber); }
.badge-green { background: rgba(18, 128, 92, .12); border-color: var(--green); color: var(--green); }
.badge-blue { background: rgba(31, 94, 255, .1); border-color: var(--blue); color: var(--blue); }
.badge-grey { color: var(--muted); }
.flash { padding: .65rem .9rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--surface); word-break: break-word; }
.flash-ok { border-color: var(--green); color: var(--green); }
.flash-error { border-color: var(--red); color: var(--red); }
.flash-info { border-color: var(--blue); }
.alert-banner { background: rgba(178, 94, 9, .12); border: 1px solid var(--amber); border-radius: 8px; padding: .7rem .9rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }

/* forms */
label { display: block; font-size: .88rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], select, textarea {
  width: 100%; margin-top: .25rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.stack { display: grid; gap: .75rem; }
.cols { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 860px) { .cols, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; } }
label.check { display: flex; align-items: center; gap: .4rem; font-weight: 500; }
label.check input { width: auto; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; margin: 0; min-width: 140px; }
.inline-label { display: flex; align-items: center; gap: .35rem; }
.inline-label input { width: auto; margin: 0; }
.inline { display: inline; }
.inline-fields { display: flex; gap: .35rem; flex-wrap: wrap; }
.inline-fields select { width: auto; margin: 0; }
.stage-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; }
.stage-row .grow { flex: 1 1 200px; }
.narrow-input { width: 90px !important; }
.contact-form { margin-top: .75rem; }

/* buttons */
.btn { display: inline-block; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.btn:hover { background: var(--bg); text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; }
.btn-small { padding: .25rem .6rem; font-size: .82rem; }

/* lists */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 1rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.tl-body { margin-top: .2rem; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: .4rem .75rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; }
.pager { display: flex; gap: .35rem; flex-wrap: wrap; margin: 1rem 0; }
.pager a { padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.pager a.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(10, 14, 20, .55); z-index: 50; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: 12px; padding: 1.25rem; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; border: 1px solid var(--line); }
.modal-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

/* auth pages */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; width: 100%; max-width: 440px; }
.auth-brand { font-size: 1.3rem; margin-bottom: 1rem; }
.codes { background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: .75rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; white-space: pre-wrap; word-break: break-all; letter-spacing: .05em; }

/* CSV import */
input[type=file] { width: 100%; padding: .45rem; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); }
.import-report h2 { margin-top: 0; }
.import-report .table { margin-top: .5rem; }

/* bulk assign */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.bulk-bar select { width: auto; min-width: 11rem; }
.col-check { width: 2rem; }
.col-check input { width: auto; margin: 0; }
.card-highlight { border-color: var(--blue); }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .4rem; user-select: all; }

/* tickets + chat */
.nav-badge { margin-left: .25rem; }
.ticket-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.ticket-old { border: 1px solid var(--red); background: rgba(192, 38, 45, .08); color: var(--red); border-radius: 8px; padding: .5rem .8rem; margin-bottom: 1rem; font-weight: 600; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; margin-bottom: .55rem; background: var(--surface); max-width: 94%; position: relative; }
.msg-me { background: rgba(31, 94, 255, .07); margin-left: auto; }
.msg-meta { font-size: .76rem; color: var(--muted); margin-bottom: .15rem; }
.msg-body { word-break: break-word; white-space: pre-wrap; }
.ticket-sys { text-align: center; margin: .5rem 0; }
.snippet { margin: .25rem 0 0; padding: .5rem .6rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font: .8rem/1.4 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; max-height: 14rem; overflow: auto; }
.snippet-copy { position: absolute; top: .3rem; right: .4rem; }
.msg-file { display: inline-block; margin-top: .25rem; word-break: break-all; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; flex: none; }
.dot-on { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 128, 92, .2); }
.dot-off { background: var(--line); }

/* chat widget, bottom-right corner */
.cw { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.cw-toggle { border: 0; background: var(--brand); color: #fff; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.cw-panel { width: 340px; max-width: calc(100vw - 2rem); height: 480px; max-height: calc(100vh - 6rem); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); display: flex; flex-direction: column; overflow: hidden; }
.cw-panel[hidden], .cw-list[hidden], .cw-conv[hidden] { display: none; }
.cw-head { display: flex; align-items: center; gap: .4rem; padding: .55rem .7rem; background: var(--brand); color: #fff; }
.cw-title { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-icon { border: 0; background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1; padding: .1rem .35rem; }
.cw-list { flex: 1; overflow-y: auto; }
.cw-person { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .8rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.cw-person:hover { background: var(--bg); }
.cw-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cw-name { font-weight: 600; flex: 1; }
.cw-who .cw-name { flex: none; }
.cw-state { font-size: .75rem; color: var(--muted); }
.cw-heading { padding: .5rem .8rem .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cw-pad { padding: .6rem .8rem; }
.cw-conv { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cw-sub { padding: .25rem .8rem; font-size: .75rem; color: var(--muted); border-bottom: 1px solid var(--line); min-height: 1.2rem; }
.cw-sub-on { color: var(--green); }
.cw-log { flex: 1; overflow-y: auto; padding: .6rem; background: var(--bg); }
.cw-fileinfo { padding: .25rem .8rem; font-size: .78rem; color: var(--muted); word-break: break-all; }
.cw-form { padding: .5rem .6rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; }
.cw-form textarea { width: 100%; resize: none; }
.cw-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.cw-actions { display: flex; gap: .4rem; align-items: center; }
.cw-actions .btn-primary:last-child { margin-left: auto; }
.cw-attach { cursor: pointer; }
.cw-note { margin: 0; padding: .3rem .8rem .5rem; font-size: .7rem; color: var(--muted); }
.cw-offscreen { position: fixed; left: -9999px; top: 0; }
@media (max-width: 760px) {
  .ticket-layout { grid-template-columns: 1fr; }
  .msg { max-width: 100%; }
  .cw-panel { height: 70vh; }
}
.cw-problem { margin: 0; padding: .5rem .8rem; background: rgba(192, 38, 45, .1); color: var(--red); font-size: .8rem; }
.badge[hidden] { display: none; }
.cw-toggle .badge { background: var(--red); border-color: #fff; color: #fff; margin-left: .35rem; font-weight: 700; }

/* growth pages */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.task-form { align-items: center; }
.log-sent { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.bar-cell { width: 55%; }
progress { width: 100%; height: .8rem; accent-color: var(--brand); }
.doc { max-width: 820px; margin-left: auto; margin-right: auto; }
.doc-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.doc-meta { text-align: right; }
.right { text-align: right; }
.agreement { white-space: pre-wrap; font: .95rem/1.55 Georgia, 'Times New Roman', serif; margin: 0; }
@media print {
  .topbar, .no-print, .cw, .flash { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: none; padding: 0; }
  .card { border: 0; box-shadow: none; }
}
.tag { display: inline-flex; align-items: center; gap: .25rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .2rem .05rem .6rem; font-size: .8rem; margin: 0 .25rem .25rem 0; }
.tag-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .3rem; }
.wrap { word-break: break-all; display: block; margin-bottom: .5rem; }
.tool-links li { padding: .3rem 0; }
.topbar-inner { flex-wrap: wrap; }
.topsearch input { width: 9rem; padding: .3rem .6rem; }
.saved-views { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: -.25rem 0 1rem; }

/* click-to-contact menus */
.actmenu{display:inline-block;position:relative}
.actmenu>summary{cursor:pointer;color:var(--link,#1d5fd1);list-style:none;text-decoration:underline dotted}
.actmenu>summary::-webkit-details-marker{display:none}
.actmenu[open]>.actmenu-body{position:absolute;z-index:20;left:0;top:1.6em;background:var(--card,#fff);border:1px solid var(--border,#cfd6e4);border-radius:8px;padding:.35rem;min-width:11rem;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.actmenu-body a{display:block;padding:.4rem .6rem;border-radius:6px;white-space:nowrap}
.actmenu-body a:hover{background:rgba(29,95,209,.12)}
.bulk-bar select,.bulk-bar input[type=text]{max-width:12rem}
.biz-badge{background:rgba(120,90,200,.15)}

/* ===== AccutixHealth theme: white header, blue brand, navy headings, soft cards ===== */
body { background: linear-gradient(180deg, #f4f7fc 0, var(--bg) 380px) fixed; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2, h3, .stat-num, .price { color: var(--head); letter-spacing: -.01em; }
h1 { font-weight: 800; }
.topbar { box-shadow: 0 2px 10px rgba(30, 42, 68, .07); border-bottom: 0; }
.topbar-inner { padding: .7rem 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--brand); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 1.9rem; height: 1.9rem; flex: none; }
.nav a { color: var(--head); font-weight: 600; border-radius: 10px; }
.nav a:hover { background: var(--brand-soft); color: var(--brand); }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.card, .stat, .auth-card { border-color: var(--line); box-shadow: var(--shadow); }
.card-highlight { border-color: var(--brand); }
.btn { border-radius: 10px; border-color: var(--line); color: var(--brand); background: var(--surface); }
.btn:hover { background: var(--brand-soft); }
.btn-primary { background: linear-gradient(180deg, #2a6fe0, #1747b0); border-color: #1747b0; color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: linear-gradient(180deg, #2f78ee, #1a50c2); }
.btn-ghost { box-shadow: none; }
.btn-danger { color: #fff; }
.table th { background: var(--brand-soft); color: var(--head); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=url], input[type=tel], select, textarea { border-radius: 10px; border: 1px solid var(--line); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.subnav a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.auth-page { background: linear-gradient(135deg, #f4f7fc, #e3ecfa 60%, #d7e5f8); }
.auth-card { border-radius: 16px; padding: 2rem; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--brand); font-size: 1.6rem; font-weight: 800; }
.auth-brand .brand-logo { width: 2.2rem; height: 2.2rem; }


/* staff details, signature and salary forms */
.uc { text-transform: uppercase; }
.check-row { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; }
.check-row legend { padding: 0; margin-bottom: .25rem; }
.secret-value { font: 1rem/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .03em; }
.log-sent-wrap { margin-top: 1rem; }
.log-sent-wrap summary { cursor: pointer; margin-bottom: .5rem; }
.facts-wide { grid-template-columns: 150px 1fr; margin-bottom: .75rem; }

/* ---- lead local-time panel ---- */
.page-head-r { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.clock-lead { background: var(--brand-soft); border-color: var(--brand); color: var(--head); font-weight: 600; }
.ltp { border-top: 4px solid var(--brand); }
.ltp-place { font-weight: 600; color: var(--head); }
.ltp-time { font-size: 2.4rem; font-weight: 700; line-height: 1.1; color: var(--head); font-variant-numeric: tabular-nums; margin-top: .25rem; }
.ltp-date, .ltp-zone { color: var(--muted); font-size: .9rem; }
.ltp-status { display: inline-block; margin: .7rem 0 .3rem; padding: .3rem .75rem; border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--line); color: var(--head); }
.ltp-status.is-good { background: rgba(18, 128, 92, .15); color: var(--green); }
.ltp-status.is-maybe { background: rgba(178, 94, 9, .15); color: var(--amber); }
.ltp-status.is-bad { background: rgba(192, 38, 45, .14); color: var(--red); }
.ltp-note { font-size: .88rem; margin-bottom: .6rem; }
.ltp-you { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .5rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .9rem; }
.ltp-you dt { color: var(--muted); } .ltp-you dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ltp-foot { margin: .6rem 0 0; }

/* ---- work-list filters and 12h/24h switch ---- */
.check-inline { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; white-space: nowrap; }
.check-inline input { width: auto; min-width: 0; margin: 0; }
.h12-btn { min-width: 3rem; font-variant-numeric: tabular-nums; }
.plain-list .clock-small { margin-left: .25rem; }

/* ---- compact lead page + NPI ---- */
.hero { padding: .7rem .9rem; }
.kvgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .55rem 1rem; }
.kv { display: flex; flex-direction: column; min-width: 0; }
.kv-l { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kv-v { font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
.npi-card { padding: .7rem .9rem; }
.npi-card > summary { cursor: pointer; list-style: none; }
.npi-card > summary h2 { display: inline; }
.npi-card > summary::-webkit-details-marker { display: none; }
.npi-cols { align-items: start; margin-top: .6rem; }
.stack-sm { display: grid; gap: .5rem; min-width: 0; }
.mini-list { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .2rem; font-weight: 400; }
.row-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .6rem; }
.dense { gap: .5rem .6rem; }
.dense label { font-size: .8rem; }
.dense input[type=text], .dense input[type=date], .dense select { padding: .35rem .5rem; }
.span2 { grid-column: span 2; }
@media (max-width: 860px) { .span2 { grid-column: auto; } }
.table-wrap { overflow-x: auto; }
.table.dense th, .table.dense td { padding: .3rem .5rem; }
.npi-cols > .stack-sm:first-child { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem 1rem; }
@media (min-width: 861px) { .npi-cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

.dt-pair { display: inline-flex; align-items: center; gap: .3rem; font-weight: 500; font-size: .85rem; white-space: nowrap; }
.dt-pair input { width: auto; min-width: 0; }
.modal-box fieldset.stack-sm { display: grid; gap: .3rem; }
