/* Page layout for the staff pages, on top of site.css: a quiet header with the organisation's name and small logo
   and "Powered by Talentos", one narrow column (820px, as the website's narrow sections; the HR desk is wider),
   phone first. */
html, body { background: var(--ts-cream); }
body { min-height: 100vh; display: flex; flex-direction: column; }
#app { flex: 1; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
.wrap.wide { max-width: 1200px; }
.top { background: var(--ts-paper); box-shadow: inset 0 -1px 0 var(--ts-line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.org { display: flex; align-items: center; gap: 12px; min-width: 0; }
.org .logo { width: 36px; height: 36px; flex: none; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--ts-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.org .logo img { max-width: 30px; max-height: 30px; display: block; }
.org .name { font-family: var(--ts-heading); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--ts-forest); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: lining-nums; }
.powered { flex: none; font-size: 13px; color: var(--ts-stone); text-decoration: none; }
a.powered:hover .mark, a.powered:focus-visible .mark { text-decoration: underline; text-underline-offset: 3px; }
.powered .mark { font-family: var(--ts-heading); font-weight: 600; font-size: 18px; letter-spacing: 0.03em; color: var(--ts-forest); }
main.page { flex: 1; padding-top: clamp(28px, 5vw, 48px); padding-bottom: 56px; }
.panel { scroll-margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
input.pin { font-family: var(--ts-heading); font-size: 26px; letter-spacing: 10px; max-width: 240px; font-variant-numeric: lining-nums tabular-nums; }
label.tick { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; color: var(--ts-bark); }
.row { display: flex; gap: 14px; }
.row > * { flex: 1; min-width: 0; }
.tools { align-items: center; margin-bottom: 14px; }
.tools input { flex: 3; }
.tools .btn { flex: none; }
tr.left td { color: var(--ts-stone); }
td.acts { text-align: right; }
td.acts .btn { margin: 0 0 6px 6px; }
td.acts .btn { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .top .wrap { min-height: 64px; }
  .powered { font-size: 12px; }
  .powered .mark { font-size: 15px; }
  .org .name { font-size: 19px; }
  .row { flex-direction: column; gap: 0; }
  .actions .btn { width: 100%; }
}
/* The people table becomes cards below 900 px. Its buttons never wrap, so a table kept at this width would push the
   page sideways on tablets. */
@media (max-width: 900px) {
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { padding: 12px 16px; border-bottom: 1px solid var(--ts-line); }
  table.cards tr:last-child { border-bottom: 0; }
  table.cards td { border: 0; padding: 2px 0; }
  table.cards td[data-l]:not(:first-child)::before { content: attr(data-l) ": "; color: var(--ts-stone); font-size: 13px; }
  td.acts { text-align: left; padding-top: 8px; }
  td.acts .btn { margin: 0 6px 6px 0; }
  table.cards td:empty { display: none; }
}
