/* Block Law Insightful Timecard. Block Law palette: white, light grey, company red. Light mode only. */
/* Poppins (SIL Open Font License), served by the site itself: no Google request. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: light only;
  --ink: #0E1720;
  --ink-2: #4A5561;
  --ink-3: #8A949E;
  --line: #E4E7EA;
  --grey: #F4F4F4;
  --white: #FFFFFF;
  --red: #F50000;
  --red-soft: #FFF1F1;
  --amber: #A15C00;
  --amber-soft: #FFF6E5;
  --r: 10px;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grey); color: var(--ink);
  font: 400 14px/1.45 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
.wrap {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Header */
.bar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; min-height: 44px; }
.brand img { display: block; }
.range { display: flex; gap: 10px; align-items: flex-end; margin: 0; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lbl { font-size: 11px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
select, input[type=date] {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  height: 44px; padding: 0 12px; min-width: 0; width: 100%;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; min-width: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230E1720' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input[type=date] { width: 150px; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
select:focus-visible, input:focus-visible, .btn:focus-visible, .row:focus-visible, .back:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

/* Main */
main { padding-top: 20px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 44px; }
.head h1 { font-size: 18px; font-weight: 600; margin: 0; }
.sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.btn {
  font: 500 13px/1 Poppins, system-ui, sans-serif; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--grey); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: 13px; min-height: 44px; }
.back:hover { color: var(--ink); }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.stat .k { font-size: 12px; color: var(--ink-3); }
.stat .v { font-size: 22px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.main .v { color: var(--red); }

/* Weekly payout chart */
.chart-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 8px; margin-bottom: 16px; }
.chart-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.chart-h .t1 { font-weight: 600; font-size: 14px; }
.chart-h .t2 { font-size: 12px; color: var(--ink-3); }
.chart-body { width: 100%; height: 200px; }
.chart-body svg { display: block; overflow: visible; }
.chart-body .grid { stroke: #ECEEF0; stroke-width: 1; }
.chart-body .base { stroke: #D5D9DD; stroke-width: 1; }
.chart-body .ax { font-size: 11px; fill: var(--ink-3); }
.chart-body .ax.sel { fill: var(--ink); font-weight: 500; }
.chart-body .val { font-size: 12px; font-weight: 600; fill: var(--ink); }
.chart-body .band { fill: var(--ink); opacity: .04; }
.chart-body .hit { fill: transparent; cursor: pointer; outline: none; }
.chart-body .hit:focus-visible { stroke: var(--ink); stroke-width: 1.5; }
.chart-err { color: var(--ink-3); font-size: 13px; padding: 24px 0; }
.tip { position: absolute; z-index: 2; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px rgba(14,23,32,.08); padding: 8px 10px; font-size: 12px; pointer-events: none; white-space: nowrap; }
.tip-h { color: var(--ink-3); }
.tip-v { font-weight: 600; font-size: 14px; color: var(--ink); }
.tip-s { color: var(--ink-2); }

/* Notes */
.notes { background: var(--amber-soft); border: 1px solid #F3DDB0; border-radius: var(--r); padding: 10px 14px; margin-bottom: 16px; color: var(--amber); font-size: 13px; }
.notes ul { margin: 0; padding-left: 18px; }
.notes li + li { margin-top: 2px; }

/* Tables */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0 16px; height: 52px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { height: 40px; font-size: 11px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; background: var(--white); }
td.num, th.num { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 600; background: var(--grey); border-bottom: 0; border-top: 1px solid var(--line); }
.row { cursor: pointer; }
.row:hover td { background: #FAFAFA; }
.name { font-weight: 500; }
.team { color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.cell-name { white-space: normal; line-height: 1.3; }
.chev { width: 28px; padding-left: 0; color: var(--ink-3); text-align: right; }
.pay { font-weight: 600; }
.dim td { color: var(--ink-3); }
.tag { display: inline-block; font-size: 11px; font-weight: 500; line-height: 18px; padding: 0 7px; border-radius: 9px; margin-left: 6px; vertical-align: 1px; }
.tag.open { color: var(--amber); background: var(--amber-soft); }
.tag.now { color: var(--ink-2); background: var(--grey); }
.tag.rate { color: var(--ink-2); background: var(--grey); }

/* Expandable days (VA page): row + timeline of clocked-in stretches */
.day { cursor: pointer; }
.day:hover td { background: #FAFAFA; }
.day:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.dchev { display: inline-block; width: 18px; margin-left: -6px; vertical-align: -2px; color: var(--ink-3); transition: transform .15s; }
.day[aria-expanded="true"] .dchev { transform: rotate(90deg); }
.day[aria-expanded="true"] td { border-bottom-color: transparent; }
.day[aria-expanded="true"]:hover td { background: var(--white); }
.detail td { height: auto; padding: 0 16px 14px 12px; background: var(--white); white-space: normal; }
.vt { list-style: none; margin: 0; padding: 0; max-width: 460px; font-size: 13px; }
.vt li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 16px; padding-left: 16px; }
.vt li.st { min-height: 26px; color: var(--ink); }
.vt li.st::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.vt li.st.missed::before { background: #E9A23B; }
.vt li.gp { min-height: 24px; color: var(--ink-3); font-size: 12px; }
.vt li.gp::before { content: ""; position: absolute; left: 6px; top: -4px; bottom: -4px; border-left: 1px dashed #C9CED3; }
.vt .dur { color: var(--ink-2); }
.vt .sub { grid-column: 1 / -1; font-size: 12px; color: var(--amber); margin-top: -2px; padding-bottom: 2px; }
.vt .sub.now { color: var(--ink-3); }
.days td.wrap { white-space: normal; line-height: 1.35; }
.t { white-space: nowrap; }
.tag { white-space: nowrap; }

/* States */
.state { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 16px; text-align: center; color: var(--ink-3); }
.state.err { color: var(--red); border-color: #F7C6C6; background: var(--red-soft); text-align: left; }
.loading .stats, .loading .card { opacity: .45; transition: opacity .15s; }

/* Tablet */
@media (max-width: 860px) {
  .bar-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .range { width: 100%; }
  .range .field { flex: 1 1 0; }
  select { min-width: 0; }
  input[type=date] { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) { .hide-md { display: none; } }

/* Phone */
@media (max-width: 600px) {
  :root { --gutter: 12px; }
  body { font-size: 13px; }
  .bar { position: static; }
  .range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .range .preset { grid-column: 1 / -1; }
  .stats, .stats.three { gap: 8px; }
  .stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.three .stat:first-child { grid-column: 1 / -1; }
  .stat { padding: 10px 12px; }
  .stat .v { font-size: 18px; }
  .chart-card { padding: 12px 12px 6px; }
  th, td { padding: 0 10px; height: 52px; }
  th { height: 36px; }
  .hide-sm { display: none; }
  .detail td { padding: 0 10px 12px 6px; }
  .head h1 { font-size: 16px; }
  .btn .wide { display: none; }
}
@media (max-width: 360px) {
  th, td { padding: 0 8px; }
  .tag { margin-left: 0; margin-top: 2px; padding: 0 5px; }
}

/* ===================== admin, roles, flags, statement (2026-11-12) ===================== */
[hidden] { display: none !important; }
.link { font: inherit; font-size: 13px; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn.primary:hover { background: #D80000; }
.btn:disabled { opacity: .6; cursor: default; }
.mini { font: 500 12px/1 Poppins, system-ui, sans-serif; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; height: 32px; padding: 0 10px; cursor: pointer; white-space: nowrap; }
.mini:hover { background: var(--grey); }

/* Nav strip under the header */
.subnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:first-child { padding-left: 0; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--red); }
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); white-space: nowrap; min-width: 0; }
.who-n { overflow: hidden; text-overflow: ellipsis; }
.who form { margin: 0; }
.who .link { min-height: 44px; }

/* Head actions */
.head .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.stat .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.more { margin-top: 14px; }

/* Needs review */
.flags { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; }
.card-h { display: flex; align-items: baseline; gap: 8px; }
.card-h .t1 { font-weight: 600; font-size: 14px; }
.card-h .t2 { font-size: 12px; color: var(--ink-3); }
.card-h.pad { padding: 12px 16px 4px; }
.count { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 600; text-align: center; }
.fl-list { list-style: none; margin: 6px 0 0; padding: 0; }
.fl { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.fl:first-child { border-top: 0; }
.fl-go { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 0; min-height: 44px; padding: 8px 0; text-decoration: none; color: var(--ink); font-size: 13px; min-width: 0; }
.fl-go:hover .fl-l { text-decoration: underline; }
.fl-n { font-weight: 500; }
.fl-w { color: var(--ink-2); }
.fl-l { color: var(--amber); font-weight: 500; }
.fl.done .fl-l { color: var(--ink-3); font-weight: 400; }
.fl-rv { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.fl-done { margin-top: 6px; }
.fl-done summary { font-size: 12px; color: var(--ink-3); cursor: pointer; min-height: 32px; display: flex; align-items: center; }

/* Pay items + subtotal rows */
.card.extras { margin-top: 16px; }
tfoot tr.sub-t td { font-weight: 500; background: var(--white); }
.by { color: var(--ink-3); }

/* Timeline additions */
.vt li.st.fixed::before { background: var(--ink-2); }
.vt .sub.fix { color: var(--ink-3); }
.vt li.adj { color: var(--ink-2); }
.vt li.adj::before { background: transparent; border: 1.5px solid var(--ink-3); width: 6px; height: 6px; }
.vt .sub .link { font-size: 12px; margin-left: 6px; color: var(--ink); }
.vt-tools { max-width: 460px; padding: 6px 0 0 16px; }
.vt-tools .link { font-size: 12px; }

/* Admin tables */
tr.dim2 td { color: var(--ink-3); }
tr.dim2 .name { color: var(--ink-2); }
.status { display: inline-block; font-size: 12px; font-weight: 500; line-height: 20px; padding: 0 8px; border-radius: 10px; white-space: nowrap; }
.s-paid { background: #EEF7EF; color: #2E6B36; }
.s-excluded { background: var(--grey); color: var(--ink-2); }
.s-no_rate { background: var(--grey); color: var(--ink-3); }
.t-when { color: var(--ink-2); font-size: 13px; }

/* Dialog */
.dlg { border: 0; border-radius: 14px; padding: 0; width: min(440px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(14,23,32,.25); color: var(--ink); }
.dlg::backdrop { background: rgba(14,23,32,.35); }
.dlg form { padding: 20px; margin: 0; }
.dlg h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.dlg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg-fields .field { grid-column: 1 / -1; }
.dlg-fields .field.half { grid-column: auto; }
.dlg textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; resize: vertical; min-height: 64px; width: 100%; }
.dlg input[type=date] { width: 100%; }
.dlg input[type=text], .dlg input[type=email], .dlg input[type=number], .dlg input[type=time] {
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); height: 44px; padding: 0 12px; width: 100%; min-width: 0; }
.dlg .static { height: 44px; display: flex; align-items: center; color: var(--ink-2); }
.dlg-err { margin-top: 12px; color: var(--red); font-size: 13px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Sign-in page */
body.login { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 24px; }
.login-card { width: min(380px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.login-card .brand { margin-bottom: 14px; }
.picks { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pick { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 0 10px; font: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; cursor: pointer; min-height: 52px; }
.pick:hover { background: var(--grey); }
a.pick { text-decoration: none; color: inherit; }
.pick-n { font-weight: 500; }
.pick-e { grid-column: 1; font-size: 12px; color: var(--ink-3); }
.pick-r { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; color: var(--ink-2); }
.login-note { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; }
.login-err { font-size: 13px; color: var(--red); margin: 0 0 10px; }

/* Pay statement */
.st-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.statement { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; max-width: 820px; margin: 0 auto; }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.st-title { text-align: right; }
.st-k { font-size: 11px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.st-v { font-size: 14px; font-weight: 500; margin-top: 2px; }
.st-title .st-v { font-size: 16px; font-weight: 600; }
.st-who, .st-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-total .st-v { color: var(--red); font-weight: 600; font-size: 16px; }
.st-table { margin-top: 16px; font-size: 13px; }
.st-table th, .st-table td { height: 34px; padding: 0 8px; }
.st-table th:first-child, .st-table td:first-child { padding-left: 0; }
.st-table th:last-child, .st-table td:last-child { padding-right: 0; }
.st-table tfoot td { background: none; border-top: 1px solid var(--ink); }
.st-table tr.st-note td { height: auto; padding-top: 0; padding-bottom: 8px; color: var(--ink-3); font-size: 12px; white-space: normal; border-bottom: 1px solid var(--line); }
.st-table tr:has(+ tr.st-note) td { border-bottom: 0; }
.st-grand { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 600; font-size: 16px; }
.st-foot { margin-top: 22px; font-size: 11px; color: var(--ink-3); }
body.print-page .bar { display: none; }

@media (max-width: 860px) {
  .head { flex-wrap: wrap; }
  .head .actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .head .actions .btn { padding: 0 12px; }
  .who-n { max-width: 60vw; }
  .statement { padding: 16px; }
  .st-who, .st-sum { grid-template-columns: 1fr 1fr; }
  .st-table { font-size: 12px; }
  .st-table th, .st-table td { padding: 0 4px; }
  .st-hide-sm { display: none; }
  .dlg form { padding: 16px; }
}
@media print {
  @page { margin: 14mm; }
  .st-hide-sm { display: table-cell !important; }
  body { background: #fff; }
  body.print-page .bar, .st-tools { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .statement { border: 0; padding: 0; max-width: none; }
  .st-table { font-size: 11px; }
  .st-table tr { break-inside: avoid; }
}

/* Touch targets: text links get a 44px-tall invisible hit area; small buttons grow on touch widths */
.link { position: relative; }
.link::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); }

/* Admin tables wrap instead of overflowing */
table.admin td, table.admin th { white-space: normal; }
table.admin td.num, table.admin .status, table.admin .t-when { white-space: nowrap; }
table.admin .team { overflow-wrap: anywhere; }
table.admin td { padding-top: 8px; padding-bottom: 8px; height: auto; min-height: 52px; }
@media (max-width: 600px) {
  table.admin td.num .link, table.admin td.num button { white-space: normal; text-align: right; }
  table.admin td.num { white-space: normal; }
}
@media (max-width: 400px) {
  .statement { padding: 12px; }
  .st-table td:first-child { white-space: normal; }
  .st-table th, .st-table td { padding: 0 3px; }
}
.st-table td.st-reason { white-space: normal; }

/* Paid & locked weeks */
.locks { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; margin-bottom: 16px; }
.lock-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lock-row:first-child { border-top: 0; }
.lk-w { font-weight: 500; min-width: 140px; }
.lk-s { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.lk-s.on { color: var(--ink); }
.lk { flex: none; }
.lk-s .lk { color: var(--ink-3); }
.lk-s.on .lk { color: #2E6B36; }
.lk-drift { font-size: 12px; color: var(--amber); }
.lk-a { margin-left: auto; }
.st-paid { margin-top: 4px; font-size: 12px; font-weight: 600; color: #2E6B36; }
@media (max-width: 600px) { .lk-a { margin-left: 0; flex-basis: 100%; } .lk-w { min-width: 0; } }


/* Real Block Law logo: wordmark + app name; the B mark replaces the wordmark on phones */
.brand { gap: 12px; }
.brand .logo { height: 20px; width: auto; display: block; }
.brand .logo-mark { height: 26px; width: auto; display: none; }
.brand .app-name { padding-left: 12px; border-left: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 20px; white-space: nowrap; }
.st-brand { display: flex; flex-direction: column; gap: 6px; }
.st-logo { height: 28px; width: auto; display: block; }
.st-entity { font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 600px) {
  .brand .logo { display: none; }
  .brand .logo-mark { display: block; }
  .brand .app-name { padding-left: 0; border-left: 0; }
}
@media print { .st-logo { height: 24px; } }

/* People page: non-VA Insightful records folded away */
.others { margin-top: 16px; }
.others > summary { display: flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.others > summary:hover { color: var(--ink); }
.others[open] > summary { margin-bottom: 4px; }

/* Roster row actions */
.acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.acts .link { white-space: nowrap; }
@media (max-width: 600px) { .acts { flex-direction: column; align-items: flex-end; gap: 10px; } }
table.admin td.num .acts .link { white-space: nowrap; text-align: right; }

/* Roster actions: side by side when there's room, stacked on phones */
.acts { flex-wrap: nowrap; }
table.admin td.num:has(.acts) { width: 1%; white-space: nowrap; }
@media (max-width: 600px) { .acts { flex-direction: column; align-items: flex-end; } }

/* Small buttons (Mark OK, Mark paid & lock): 32px to look at, 44px to tap */
.mini { position: relative; height: 32px; padding: 0 12px; border-radius: 8px; flex: none; }
.mini::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
/* Review rows: room above and below so the button never touches the dividers */
.fl { padding: 6px 0; min-height: 56px; }
.fl-go { min-height: 44px; padding: 0; align-items: center; align-content: center; }
.fl-rv { padding-top: 2px; }

/* Header: name + Sign out sit above the range controls, with room above them */
.bar-in { padding-top: 14px; padding-bottom: 14px; }
.bar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.who { min-height: 24px; gap: 14px; }
.who .link { min-height: 0; }
.subnav { justify-content: flex-start; }
@media (max-width: 860px) {
  .bar-right { display: contents; }
  .who { order: -1; align-self: flex-end; }
}
.bar-in:has(#range[hidden]) { align-items: center; }

/* Profile button + menu (top right) */
.who { position: relative; }
.profile { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 12px; border: 1px solid transparent; border-radius: 18px; background: none; font: 500 13px Poppins, system-ui, sans-serif; color: var(--ink); cursor: pointer; max-width: 100%; }
.profile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.profile:hover, .profile[aria-expanded="true"] { background: var(--grey); }
.profile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.profile .who-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchev { flex: none; color: var(--ink-3); transition: transform .15s; }
.profile[aria-expanded="true"] .pchev { transform: rotate(180deg); }
.pmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 240px; max-width: calc(100vw - 24px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(14,23,32,.12); padding: 6px; white-space: normal; }
.pm-who { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); }
.pm-n { font-weight: 600; font-size: 14px; color: var(--ink); }
.pm-e { font-size: 12px; color: var(--ink-3); margin-top: 1px; overflow-wrap: anywhere; }
.pm-r { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 500; line-height: 18px; padding: 0 8px; border-radius: 9px; background: var(--grey); color: var(--ink-2); }
.pm-out { margin: 4px 0 0; }
.pm-out button { width: 100%; min-height: 44px; text-align: left; padding: 0 10px; font: 500 13px Poppins, system-ui, sans-serif; color: var(--ink); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.pm-out button:hover, .pm-out button:focus-visible { background: var(--grey); outline: none; }

/* Needs review on the Pay page: a row per VA that opens to their issues */
.fl-vas { margin-top: 6px; }
.fl-va { border-top: 1px solid var(--line); }
.fl-va:first-child { border-top: 0; }
.fl-va > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; font-size: 13px; }
.fl-va > summary::-webkit-details-marker { display: none; }
.fl-va > summary .vchev { margin-left: auto; color: var(--ink-3); transition: transform .15s; flex: none; }
.fl-va[open] > summary .vchev { transform: rotate(180deg); }
.fl-va > summary:hover .fl-n { text-decoration: underline; }
.fl-va > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.fl-va .fl-list { margin: 0 0 8px; padding-left: 16px; border-left: 2px solid var(--line); }
