/* SyncAttend v1.8.0 - application layer on the SyncSols design system (hub.css = SyncSols People Hub styles).
   hub.css supplies tokens + components (dash__*, portal-*, auth__*, st-pill, seg ...). This file maps SyncAttend's
   own classes (.btn/.ghost, .stats/.stat, .chip, .tablewrap, .formgrid, .flash, .toolbar) onto that look. */

body { display: flex; flex-direction: column; min-height: 100vh; }
.mono, code, pre { font-family: var(--ff-mono); }
h1, h2, h3 { color: var(--ink-1000); letter-spacing: -0.015em; margin: 0 0 12px; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
h2 { font-size: 15px; font-weight: 600; color: var(--ink-900); }
h3 { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.small { font-size: 12px; }
.right { text-align: right; }
form.inline { display: inline; margin: 0; }
details summary { cursor: pointer; color: var(--brand-600); font-weight: 600; }
code { font-size: 12px; background: var(--ink-100); color: var(--ink-800); padding: 1px 6px; border-radius: 5px; }
pre { font-size: 12px; background: var(--ink-50); border: 1px solid var(--ink-150); padding: 12px; border-radius: var(--r-md); overflow: auto; }

/* ── Shell (People Hub "dash" top bar + slide-in drawer) ── */
.dash__top { z-index: 30; }
.dash__top-l a.dash__home { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.dash__logo { height: 28px; width: 28px; object-fit: contain; }
.dash__nav a {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-600); text-decoration: none; flex: 0 0 auto;
}
.dash__nav a:hover { background: var(--ink-100); color: var(--ink-800); text-decoration: none; }
.dash__nav a[data-on="true"] { background: var(--brand-100); color: var(--brand-700); }
.dash__nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.dash__nav .nav-sec { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-400); padding: 16px 14px 6px; }
.dash__nav .nav-sec:first-child { padding-top: 6px; }
.dash__nav .nav-brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 14px; border-bottom: 1px solid var(--ink-150); margin-bottom: 8px; }
.dash__nav .nav-brand img { height: 26px; }
.dash__nav .nav-brand strong { font-size: 13.5px; color: var(--ink-900); display: block; }
.dash__nav .nav-brand span { font-size: 11px; color: var(--ink-500); }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-count--soft { background: var(--ink-150); color: var(--ink-700); }
.topbell { position: relative; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-600); }
.topbell:hover { background: var(--ink-100); text-decoration: none; }
.topbell svg { width: 17px; height: 17px; }
.topbell i { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--err); color: #fff; font: 700 10px/16px var(--ff-sans); font-style: normal; text-align: center; }
.dash__me a { color: inherit; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.dash__body { padding-top: 32px; }
.app-foot { text-align: center; font-size: 11.5px; color: var(--ink-500); padding: 18px 24px 26px; border-top: 1px solid var(--ink-150); background: var(--paper); }
.app-foot .mono { color: var(--ink-400); font-size: 11px; }

/* ── Page header (People Hub dash__hero) ── */
.page__eyebrow { margin-bottom: 6px; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar h1, .dash__body > h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink-1000); margin: 0; line-height: 1.15; }
.dash__body > h1 { margin-bottom: 22px; }
.toolbar h1 .muted, .toolbar h1 .small { display: block; font-size: 14.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-600); margin-top: 8px; line-height: 1.4; }
.toolbar h1 .chip { vertical-align: middle; margin-left: 6px; }
.toolbar > form, .toolbar > .row, .toolbar > div { margin: 0; }

/* ── Stat cards (dash__stat) ── */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat {
  background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; box-shadow: var(--sh-1);
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--brand-600); }
.stats .stat:nth-child(4n+2)::before { background: var(--accent-500); }
.stats .stat:nth-child(4n+3)::before { background: var(--warn); }
.stats .stat:nth-child(4n+4)::before { background: var(--ok); }
.stats .stat.bad::before { background: var(--err); }
.stat b { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink-1000); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-500); font-weight: 500; margin-top: 6px; }
.card .stats { margin-bottom: 0; }

/* ── Cards ── */
.card { margin-bottom: 16px; padding: 22px 24px; }
.card + .card { margin-top: 0; }
.card > h2:first-child, .card > h3:first-child { margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid > .card { margin-bottom: 0; }

/* ── Buttons: .btn = primary, .btn.ghost = secondary (hub default), .small = sm ── */
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: var(--r-md); border: 1px solid var(--brand-600); background: var(--brand-600); color: #fff;
  font: 600 13.5px/1 var(--ff-sans); letter-spacing: .01em; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all 140ms ease;
}
.btn:hover { background: var(--brand-700); border-color: var(--brand-700); text-decoration: none; color: #fff; }
.btn:focus-visible { box-shadow: var(--sh-focus); outline: none; }
.btn.ghost { background: var(--paper); color: var(--ink-800); border-color: var(--ink-200); }
.btn.ghost:hover { background: var(--ink-100); color: var(--ink-900); }
.btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn.danger { background: var(--err); border-color: var(--err); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }

/* ── Pills (st-pill) ── */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .03em; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--err-bg); color: var(--err); }
.chip.off { background: var(--ink-100); color: var(--ink-600); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: 10.5px; font-weight: 700; margin-left: 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); margin-right: 6px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.pt { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ink-100); color: var(--ink-700); font-size: 11.5px; font-weight: 600; white-space: nowrap; margin: 1px 0; font-variant-numeric: tabular-nums; }
.pt.pin { background: var(--ok-bg); color: var(--ok); }
.pt.pout { background: var(--err-bg); color: var(--err); }

/* ── Tables (dash__table) ── */
.tablewrap { background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-lg); overflow: auto; max-height: min(72vh, 820px); box-shadow: var(--sh-1); margin-bottom: 16px; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; color: var(--ink-600); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: var(--ink-50); border-bottom: 1px solid var(--ink-200); }
.tablewrap th { position: sticky; top: 0; z-index: 2; }
td { padding: 13px 16px; border-top: 1px solid var(--ink-150); vertical-align: middle; color: var(--ink-800); }
tr:first-child > td { border-top: 0; }
tbody tr:hover > td, .tablewrap tr:hover > td { background: var(--brand-100); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.card table th { background: transparent; border-bottom: 1px solid var(--ink-200); padding: 10px 12px; }
.card table td { padding: 11px 12px; }
.card table tr:hover > td { background: var(--ink-50); }
th[scope], .card table tr > th:first-child:not(:only-child) { }
.muster th, .muster td { padding: 6px 6px; text-align: center; font-size: 12px; border-right: 1px solid var(--ink-100); }
.muster td.name, .muster th.name { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--paper); z-index: 2; }
.muster th.name { background: var(--ink-50); z-index: 3; }
.muster td.off { background: var(--ink-50); color: var(--ink-400); }
.code-A { color: var(--err); font-weight: 700; }
.code-MP { color: var(--warn); font-weight: 700; }
.code-HD { color: var(--brand-600); font-weight: 600; }
.code-P { color: var(--ok); font-weight: 700; }

/* ── Forms (field / input) ── */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea {
  background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-md); padding: 0 12px; height: 40px;
  color: var(--ink-900); font: 400 13.5px var(--ff-sans); min-width: 0; outline: none; transition: border 120ms ease, box-shadow 120ms ease;
}
textarea { padding: 10px 12px; height: auto; min-height: 84px; line-height: 1.5; resize: vertical; }
select {
  appearance: none; padding-right: 34px; background-repeat: no-repeat; background-position: right 12px center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%235A6675' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/></svg>");
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-500); box-shadow: var(--sh-focus); }
input::placeholder, textarea::placeholder { color: var(--ink-400); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand-600); width: 16px; height: 16px; }
input[type=file] { font-size: 12.5px; color: var(--ink-600); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 18px; }
.formgrid label, .row > label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-800); letter-spacing: .01em; }
.formgrid label input, .formgrid label select, .formgrid label textarea { width: 100%; }
.row { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.row.card { align-items: flex-end; }
label .small, label .muted { font-weight: 400; }

/* ── Banners (flash) ── */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; background: var(--brand-100); border: 1px solid var(--brand-200); border-left: 3px solid var(--brand-600); color: var(--ink-800); font-size: 13.5px; line-height: 1.5; }
.flash.ok { background: var(--ok-bg); border-color: #CDE8D8; border-left-color: var(--ok); }
.flash.error { background: var(--err-bg); border-color: #F0CFCB; border-left-color: var(--err); color: #7A2722; }
.flash a { font-weight: 600; }

/* ── Request-type picker (radio-card) ── */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kinds a { border: 1.5px solid var(--ink-200); background: var(--paper); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-900); text-decoration: none; transition: all 160ms ease; }
.kinds a:hover { border-color: var(--brand-300); text-decoration: none; }
.kinds a.on { border-color: var(--brand-600); background: var(--brand-100); box-shadow: var(--sh-focus); }
.kinds a b { font-weight: 600; font-size: 14px; }
.kinds a span { font-size: 12px; color: var(--ink-500); line-height: 1.4; }
.kinds.compact { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds.compact a { padding: 0 14px; height: 34px; border-radius: 999px; flex-direction: row; align-items: center; }
.kinds.compact a b { font-size: 12.5px; }
.kinds.compact a span { display: none; }

/* ── Timeline ── */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 4px 0 14px 22px; font-size: 13px; color: var(--ink-700); border-left: 2px solid var(--ink-150); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand-500); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li b { color: var(--ink-900); }
.pwbox { font-family: var(--ff-mono); font-size: 13px; background: var(--ink-100); color: var(--ink-900); padding: 3px 8px; border-radius: 6px; }

/* ── Calendar (year view) ── */
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.cal table th { position: static; padding: 4px; text-align: center; font-size: 10.5px; background: transparent; border: 0; }
.cal table td { padding: 4px; text-align: center; font-size: 12px; border: 0; border-radius: 6px; }
.cal td.WO { background: var(--ink-50); color: var(--ink-400); }
.cal td.H { background: var(--brand-100); color: var(--brand-700); font-weight: 700; }
.cal td.today { box-shadow: inset 0 0 0 2px var(--brand-600); }

/* ── Portal pieces reused on dashboards ── */
.portal-tile { text-decoration: none; color: inherit; }
.portal-tile:hover { text-decoration: none; }
.portal-tile__ico svg { width: 18px; height: 18px; }
.portal-tile__badge { margin-left: 8px; }
.holiday-row { text-decoration: none; color: inherit; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--ink-150); border-radius: 10px; background: var(--paper); color: inherit; text-decoration: none; }
a.list-row:hover { border-color: var(--brand-300); background: var(--brand-100); text-decoration: none; }
.list-row__main { flex: 1; min-width: 0; }
.list-row__t { font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.list-row__d { font-size: 12px; color: var(--ink-500); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-trail { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.today-trail .pt { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 8px; }

/* ── Mobile ── */
@media (max-width: 760px) {
  .dash__top { padding: 10px 14px; gap: 8px; }
  .dash__me-text, .dash__brand-text span { display: none; }
  .dash__me { border-left: 0; padding-left: 0; }
  .dash__body { padding: 22px 16px 60px; }
  .toolbar h1, .dash__body > h1 { font-size: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px 14px; }
  .stat b { font-size: 22px; }
  .g2 { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }
  .formgrid { grid-template-columns: 1fr; }
  .dash__hero { flex-direction: column; align-items: flex-start; }
}
@media print {
  .dash__top, .app-foot, .toolbar form, .noprint, .nav-scrim, .dash__nav { display: none !important; }
  body { background: #fff; }
  .tablewrap { max-height: none; overflow: visible; border: 0; box-shadow: none; }
  .dash__body { padding: 0; }
}

/* checkbox rows inside form grids */
.formgrid label:has(> input[type=checkbox]), .row > label:has(> input[type=checkbox]) { flex-direction: row !important; align-items: flex-start; justify-content: flex-start; text-align: left; font-weight: 500; gap: 10px !important; align-self: center; }
.formgrid label:has(> input[type=checkbox]) input { margin-top: 2px; flex-shrink: 0; }
@media (max-width: 760px) {
  .dash__stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; margin-bottom: 20px; }
  .dash__stat { padding: 14px; }
  .dash__stat-val { font-size: 24px; }
  .portal-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .portal-tile { padding: 14px !important; }
  .portal-tile__d { display: none; }
  .portal-tile__t { font-size: 13.5px; }
  .dash__hero-actions { width: 100%; }
  .dash__hero-actions .btn { flex: 1; }
}
.formgrid label input[type=checkbox], .formgrid label input[type=radio], .row label input[type=checkbox] { width: 16px !important; height: 16px; flex: 0 0 16px; }
input[type=file]::file-selector-button { height: 32px; padding: 0 12px; margin-right: 10px; border: 1px solid var(--ink-200); border-radius: var(--r-md); background: var(--paper); color: var(--ink-800); font: 600 12.5px var(--ff-sans); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--ink-100); }

/* Sign-in: everything on the blue panel is white (v1.8.1) */
.auth__side, .auth__side h1, .auth__side h2, .auth__side h3, .auth__side p, .auth__side strong, .auth__side span,
.auth__side .auth__quote-title, .auth__side .auth__quote-eyebrow, .auth__side .auth__quote-body, .auth__side .auth__quote-stats strong, .auth__side .auth__quote-stats span { color: #fff; }
.auth__side .auth__quote-eyebrow, .auth__side .auth__quote-stats span { opacity: .85; }
.auth__side .auth__quote-body { opacity: .92; }

/* ── Pinned side menu on desktop (v1.8.2): open by default, burger hides/shows it ── */
:root { --side-w: 256px; --topbar-h: 69px; }
@media (min-width: 1100px) {
  html:not(.nav-collapsed) .dash__nav {
    transform: none; visibility: visible; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); bottom: auto;
    width: var(--side-w); box-shadow: none; z-index: 20; padding-top: 10px; transition: none;
  }
  html:not(.nav-collapsed) .dash__nav .nav-brand { display: none; }
  html:not(.nav-collapsed) .nav-scrim { display: none; }
  html:not(.nav-collapsed) .dash__body, html:not(.nav-collapsed) .app-foot { margin-left: var(--side-w); width: auto; max-width: none; }
  html:not(.nav-collapsed) .dash__body { padding-left: 40px; padding-right: 40px; }
  html.nav-collapsed .dash__nav { transition: none; }
}

/* Live time in office (v1.9.0) */
.hrs-live { display: flex; align-items: baseline; gap: 10px; padding: 4px 2px 0; }
.hrs-live span { font: 700 34px/1 var(--ff-sans); letter-spacing: -0.02em; color: var(--ink-1000); font-variant-numeric: tabular-nums; }
.hrs-live small { color: var(--ink-500); font-size: 12.5px; font-weight: 500; }

/* Notification panel (v1.9.0) */
.notif { position: relative; }
.topbell { border: 0; background: transparent; cursor: pointer; }
.notif__panel { position: absolute; right: -8px; top: 46px; width: min(380px, calc(100vw - 24px)); background: var(--paper); border: 1px solid var(--ink-200); border-radius: 14px; box-shadow: var(--sh-3); z-index: 140; display: none; overflow: hidden; }
.notif__panel.on { display: block; }
.notif__hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--ink-150); }
.notif__hd b { font-size: 14px; color: var(--ink-900); }
.notif__list { max-height: min(60vh, 440px); overflow-y: auto; }
.notif__item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--ink-100); color: var(--ink-800); text-decoration: none; }
.notif__item:hover { background: var(--brand-100); text-decoration: none; }
.notif__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: transparent; }
.notif__item.is-unread .notif__dot { background: var(--brand-600); }
.notif__item.is-unread b { color: var(--ink-1000); }
.notif__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif__txt b { font-size: 13px; font-weight: 600; color: var(--ink-700); line-height: 1.35; }
.notif__txt span { font-size: 12px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif__txt small { font-size: 11px; color: var(--ink-400); }
.notif__empty { padding: 26px 14px; text-align: center; color: var(--ink-500); font-size: 13px; }
.notif__ft { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 12.5px; font-weight: 600; background: var(--ink-50); }
@media (max-width: 760px) { .notif__panel { position: fixed; right: 12px; top: 64px; } }

/* Units next to numbers (v1.9.2) */
.u { font-size: .62em; font-weight: 600; color: var(--ink-500); margin-left: 3px; letter-spacing: 0; }

/* Repeat taps that are not counted (v1.9.3) */
.pt.px { background: transparent; border: 1px dashed var(--ink-300); color: var(--ink-400); text-decoration: line-through; }

/* Employee ID under the name in the top bar (v1.9.5) */
.dash__me-code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; color: var(--ink-500); letter-spacing: .02em; }

/* Mobile app (v2.0.0): selfie thumbnails and the request-page check-in card */
.mthumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ink-200, #e2e8f0); display: block; }
.mshot { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: start; }
.mshot img { width: 140px; height: 175px; object-fit: cover; border-radius: 12px; border: 1px solid var(--ink-200, #e2e8f0); }
.mshot table { width: 100%; }
.mshot th { white-space: nowrap; width: 1%; padding-right: 10px; }
@media (max-width: 560px) { .mshot { grid-template-columns: 1fr; } .mshot img { width: 100%; height: auto; } }

/* Trips, visit notes and expense claims (v2.1.0) */
.route-map { height: 440px; border-radius: 12px; border: 1px solid var(--ink-200, #e2e8f0); z-index: 0; }
.rthumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ink-200, #e2e8f0); display: block; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.note { border: 1px solid var(--ink-100, #eef2f7); border-radius: 12px; padding: 10px; background: #fff; }
.note img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 8px; }
.note p { margin: 4px 0 0; }
.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt input { width: 110px; text-align: right; }
.flagline { color: #b45309; font-size: 12px; }
.kind-fields[hidden] { display: none; }
@media (max-width: 760px) { .route-map { height: 320px; } }

/* v2.1.6 dashboard number cards filter the list */
button.dash__stat--btn{font:inherit;text-align:left;width:100%;color:inherit;background:var(--paper);border:1px solid var(--ink-200)}
.dash__stat--on{outline:2px solid var(--brand-600,#2E6BB4);outline-offset:-2px;background:var(--brand-50,#EEF4FB)}
.dash__filter{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line,#E4E7EC);font-size:13px;color:var(--ink-700,#344054)}
/* v2.2.0 visit detail */
table.kv{width:100%;border-collapse:collapse}
table.kv th{width:150px;text-align:left;vertical-align:top;color:var(--ink-500);font-weight:600;font-size:13px;padding:8px 10px 8px 0}
table.kv td{padding:8px 0;vertical-align:top}
table.kv tr+tr th,table.kv tr+tr td{border-top:1px solid var(--ink-100)}
.vpick{max-height:190px;overflow:auto;border:1px solid var(--ink-200);border-radius:10px;padding:6px 10px;display:flex;flex-direction:column;gap:2px;background:var(--paper)}
.vpick label{display:flex;align-items:center;gap:8px;font-weight:400;padding:3px 0;cursor:pointer}
#newvisit select,#newvisit input,#newvisit textarea{max-width:100%;min-width:0}
.vpick label{align-self:stretch!important;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;width:100%;text-align:left}
.vpick input[type=checkbox]{width:auto;margin:0}
/* v2.2.1 pickers: [hidden] must win over display rules */
[hidden]{display:none!important}
tr.row-on td{background:var(--brand-50,#EEF4FB)}
.pick-search{width:100%;margin-bottom:6px}
.vpick label.on{background:var(--brand-50,#EEF4FB);border-radius:8px}
.vpick label{padding:5px 6px!important}
.vpick label span{font-weight:500}
.vpick .pick-new{border-bottom:1px dashed var(--ink-200);border-radius:0}
.vpick label[hidden],.vpick [hidden],tr[hidden]{display:none!important}
/* v2.2.1: two-column page grids (inline styles) stack on tablets and phones */
@media (max-width: 900px) {
  .grid[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  table.kv th { width: 96px; font-size: 12px; }
}

/* v2.3.0 organisation tree (Reporting lines) */
.orgtree summary{cursor:pointer;list-style:none}
.orgtree summary::-webkit-details-marker{display:none}
ul.tree,ul.tree ul{list-style:none;margin:0;padding-left:20px}
ul.tree{padding-left:0;margin-top:10px}
ul.tree li{position:relative;padding:3px 0 3px 18px}
ul.tree ul li::before{content:"";position:absolute;left:0;top:0;bottom:0;border-left:1px solid var(--line,#D5DBE5)}
ul.tree ul li:last-child::before{bottom:auto;height:15px}
ul.tree ul li::after{content:"";position:absolute;left:0;top:15px;width:14px;border-top:1px solid var(--line,#D5DBE5)}
ul.tree .otn{display:inline-block;padding:3px 10px;border:1px solid var(--line,#D5DBE5);border-radius:8px;background:var(--card,#fff)}
ul.tree>li>.otn{border-color:var(--accent,#2563EB)}
@media (max-width:640px){ul.tree,ul.tree ul{padding-left:10px}ul.tree li{padding-left:12px}}

/* v2.3.0: keep the top bar on screen so the pinned side menu always sits right under it (hub.css set it to relative) */
.dash__top { position: sticky; top: 0; }
/* v2.3.0: wide tables scroll inside their box instead of pushing the whole page sideways */
.dash__body { min-width: 0; box-sizing: border-box; }
.dash__body .tablewrap, .dash__body .card { max-width: 100%; }
@media (min-width: 1100px) {
  html:not(.nav-collapsed) .dash__body { width: calc(100% - var(--side-w)); }
}
.grid > * { min-width: 0; }

/* v2.4.3: switch employee */
.empswitch{display:flex;justify-content:flex-end;margin:-4px 0 8px}
.empswitch label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted,#64748B)}
.empswitch select{min-width:220px;max-width:100%}
@media (max-width:640px){.empswitch{justify-content:stretch}.empswitch label{width:100%}.empswitch select{flex:1;min-width:0}}
