/* =====================================================================================================================
   team.css — the Team page (team.html, team.js): tabs, calendar, requests, employees, the request / profile box, and
   the full-screen Time Clock (kiosk). Colors from app.css (--ok green, --bad red, --warn orange). Light mode only.
   ===================================================================================================================== */

/* ---- page frame ---- */
.tmpage main .wrap {
  padding-block: 16px 48px;
}

.tm {
  display: grid;
  gap: 14px;
}

.tmhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tmhead h1 {
  margin: 0;
  font: 800 34px var(--display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tmheadbtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* The green "Open Time Clock" button (also used on Home, see app.css). */
.tmclockbtn {
  background: #1f9e45;
  border-color: #1f9e45;
  color: #fff;
  font-weight: 700;
}

/* ---- tabs ---- */
.tmtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tmtab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  font: 700 15px var(--body);
  color: var(--ink);
  cursor: pointer;
}

.tmtab[aria-selected="true"] {
  background: var(--look-tab-on, #15191e);
  border-color: var(--look-tab-on, #15191e);
  color: var(--look-tab-on-text, #fff);
}

.tmcount {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 13px;
}

/* ---- cards and columns ---- */
.tmcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.tmcard h2 {
  margin: 0 0 10px;
  font: 800 20px var(--display);
}

.tmcardhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tmcardhead h2 {
  margin: 0;
}

.tmcardhead .btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.tmcols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 900px) {
  .tmcols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tmsub {
  color: var(--muted);
  font-size: 13px;
}

.tmpill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 12px;
  background: #eef0f2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tmpill.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.tmpill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.tmpill.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.tmlink {
  border: 0;
  background: none;
  color: var(--steel);
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

/* ---- calendar ---- */
.tmcalbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tmcalbar h2 {
  margin: 0 6px;
  min-width: 190px;
  text-align: center;
}

.tmcal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.tmwd {
  text-align: center;
  font-weight: 800;
  color: var(--muted);
  padding: 4px 0;
}

.tmday {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 5px;
  background: var(--panel);
  min-width: 0;
}

.tmday b {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.tmday.weekend {
  background: #f4f5f6;
}

.tmday.other {
  opacity: 0.5;
}

.tmday.today {
  outline: 2px solid #e8701a;
}

.tmev {
  display: block;
  width: 100%;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid transparent;
  font: 700 12px var(--body);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.tmev.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.tmev.wait {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px dashed var(--warn);
}

.tmlegend {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tmlegend .tmev {
  display: inline-block;
  width: auto;
  margin: 0;
  cursor: default;
}

@media (max-width: 700px) {
  .tmday {
    min-height: 64px;
    padding: 2px;
  }
  .tmev {
    font-size: 10px;
    padding: 0 2px;
  }
}

/* ---- requests ---- */
.tmreq {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.tmreq:last-child {
  border-bottom: 0;
}

.tmreqmain {
  min-width: 0;
}

.tmreqbtns {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex-shrink: 0;
}

.tmwarns {
  margin-top: 4px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.btn.tmgo {
  background: #1f9e45;
  border-color: #1f9e45;
  color: #fff;
}

.btn.tmred {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}

/* ---- tables (days left, employees) ---- */
.tmtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tmtable th {
  text-align: left;
  padding: 7px 8px;
  background: var(--look-head-bg, #15191e);
  color: var(--look-head-text, #fff);
  font-weight: 700;
}

.tmtable td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tmarch td {
  opacity: 0.6;
}

.tmarchived summary {
  cursor: pointer;
  margin: 10px 0 4px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .tmtable {
    font-size: 13px;
  }
  .tmtable th,
  .tmtable td {
    padding: 5px 4px;
  }
}

/* ---- the request / profile box ---- */
.tmback {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 22, 0.55);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
}

.tmback[hidden] {
  display: none;
}

.tmform {
  background: var(--panel);
  border-radius: 14px;
  padding: 18px 20px;
  width: min(560px, 100%);
  display: grid;
  gap: 10px;
}

.tmform h2 {
  margin: 0;
  font: 800 24px var(--display);
}

.tmform label {
  display: grid;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}

.tmform input[type="text"],
.tmform input[type="date"],
.tmform input[type="number"],
.tmform select {
  font: 16px var(--body);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.tmform label.tmcheck {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.tmrow2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tmpinrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.tmpinrow input {
  width: 120px;
}

.tmlock {
  border: 1px dashed #b9c0c6;
  border-radius: 8px;
  background: #f6f7f8;
  padding: 8px 12px;
  display: grid;
  gap: 8px;
}

.tmlock legend {
  font-weight: 800;
  padding: 0 4px;
}

.tmformbtns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tmspacer {
  flex: 1;
}

.tmdanger {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- the Time Clock (kiosk), full screen ---- */
body.kiosk-on {
  overflow: hidden;
}

.kiosk {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #15191e;
  color: #fff;
  font-family: var(--body);
  padding: 22px 28px;
  overflow-y: auto;
}

.kiosk[hidden] {
  display: none;
}

.ktop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ktop h1 {
  margin: 0;
  font: 800 40px var(--display);
  letter-spacing: 1px;
}

.ksubline {
  color: #aab3bc;
  font-size: 18px;
}

.kright {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #aab3bc;
}

.kexit {
  background: transparent;
  color: #aab3bc;
  border: 1px solid #3a434c;
  border-radius: 8px;
  padding: 6px 12px;
  font: 600 14px var(--body);
  cursor: pointer;
}

/* The names run down the screen in one column (v135, Tony's call), each a wide bar that's easy to hit. */
.kgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 20px;
  max-width: 760px;
}

.ktile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #232a31;
  border: 0;
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  font: 800 24px var(--display);
  text-align: left;
  cursor: pointer;
}

.ktile:active {
  background: #2f3842;
}

.ktile small {
  display: block;
  font: 600 14px var(--body);
  color: #aab3bc;
}

.kdot {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 6px;
}

.kdot.in {
  background: #22a447;
  box-shadow: 0 0 0 4px rgba(34, 164, 71, 0.3);
}

.kdot.out {
  background: #d13b2f;
  box-shadow: 0 0 0 4px rgba(209, 59, 47, 0.3);
}

.kfoot {
  color: #aab3bc;
  margin-top: 22px;
}

.kover {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 15, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.kbox {
  background: #fff;
  color: #15191e;
  border-radius: 18px;
  padding: 22px 26px;
  width: min(420px, 100%);
  text-align: center;
}

.kbox.wide {
  width: min(620px, 100%);
}

.kbox h2 {
  margin: 0;
  font: 800 30px var(--display);
  text-transform: uppercase;
}

.kbox p {
  color: var(--muted);
  margin: 6px 0;
}

.kbox .kmsg {
  color: var(--bad);
  font-weight: 700;
}

.kdots {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 12px 0;
}

.kdots i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #15191e;
}

.kdots i.on {
  background: #15191e;
}

.kkeys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.kkey {
  background: #eef0f2;
  border: 0;
  border-radius: 12px;
  padding: 16px 0;
  font: 800 30px var(--display);
  color: #15191e;
  cursor: pointer;
}

.kkey.small {
  font: 700 18px var(--body);
}

.kkey:active {
  background: #d9dde1;
}

.kbig {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 24px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: 800 38px var(--display);
  letter-spacing: 1px;
  cursor: pointer;
}

.kbig.in {
  background: #1f9e45;
}

.kbig.out {
  background: #d13b2f;
}

.krow {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.kleft {
  font-weight: 700;
}

.krow2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* The missed clock-out form on the kiosk card (v178). */
.kmissed {
  margin-top: 14px;
  padding: 14px;
  border: 2px solid #d13b2f;
  border-radius: 14px;
  background: #fff5f4;
  text-align: left;
}
.kmissed p {
  margin: 0 0 8px;
}
.kmissed .kbig {
  font-size: 28px;
}
.kmissed input {
  font-size: 22px;
  padding: 8px;
}

.kbox label {
  display: grid;
  gap: 4px;
  text-align: left;
  font-weight: 700;
  margin-top: 8px;
}

.kbox input,
.kbox select {
  font: 18px var(--body);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kdone h2 {
  font-size: 34px;
}

.kdone.in h2 {
  color: #1f9e45;
}

.kdone.out h2 {
  color: #d13b2f;
}

/* ---- hiding wages and vacation days (app version 134; separate eyes since 135) ----
   Wages show as $••• and vacation days as • until their own 👁 is tapped: team.js setGroupShown puts body.wages-shown or
   body.days-shown on; each hides again on a second tap or after 2 minutes untouched. The profile's rate box and day boxes
   are dotted out too, except while typing in them. */
.tmwage .tmwagereal {
  display: none;
}
body.wages-shown .tmprivate-wages .tmwagereal,
body.days-shown .tmprivate-days .tmwagereal {
  display: inline;
}
body.wages-shown .tmprivate-wages .tmwagemask,
body.days-shown .tmprivate-days .tmwagemask {
  display: none;
}
.tmwagemask {
  color: var(--muted);
  letter-spacing: 1px;
}
body:not(.wages-shown) input.tmmask-wages:not(:focus),
body:not(.days-shown) input.tmmask-days:not(:focus) {
  -webkit-text-security: disc;
  text-security: disc;
}
.tmeye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  opacity: 0.85;
  cursor: pointer;
}
.tmeye[aria-pressed="true"] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}
.tmlock legend .tmeye {
  color: var(--ink);
}

/* ---- time cards (app version 140) ----
   Each punch is a small chip: green for in, grey for out. Owners: 📱 phone punches get an orange edge, changed or removed
   punches are crossed out, and tapping a chip opens the fix box. A day with a missed punch is tinted red. */
.tmpunch {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f3f4f6;
  color: var(--ink);
  font: 600 13px var(--body);
  white-space: nowrap;
}
button.tmpunch {
  cursor: pointer;
}
.tmpunch.in {
  background: var(--ok-bg);
  border-color: #b8dfc4;
  color: var(--ok);
}
.tmpunch.phone {
  border: 2px solid #e8701a;
}
/* A clock-out time the employee typed for a missed clock-out (v178), until an owner presses OK. */
.tmpunch.needsok {
  background: #fff4d6;
  border: 2px dashed #c98a00;
  color: #7a5200;
}
.tmpunch.void {
  text-decoration: line-through;
  opacity: 0.55;
  background: transparent;
}
.tmmissed td {
  background: #fff1f0;
}
.tmot {
  color: var(--bad);
}
.tmname {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}
.tmcardname {
  margin: 0 0 6px;
  font: 800 24px var(--display);
}
.tmcardtable tfoot td {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
}
.printonly {
  display: none;
}

/* Print: only the time card or week list, no top bar, tabs or buttons. */
@media print {
  .tmpage .topbar,
  .tmpage .tmhead,
  .tmpage .tmtabs,
  .tmpage .noprint,
  .tmpage #toast,
  .tmpage .tmback {
    display: none !important;
  }
  .tmpage .printonly {
    display: block;
    margin: 0 0 8px;
    font: 700 16px var(--body);
  }
  .tmpage .tmcard {
    border: 0;
    padding: 0;
  }
  .tmpunch {
    border: 1px solid #999;
    background: none;
  }
}

/* "My time card" (v141): a person's own week, on the Time Clock (inside .kbox) and in the Team page's My time box. */
.tmmycard {
  text-align: left;
  margin-top: 8px;
}
.tmmycard .tmcalbar h3 {
  margin: 0 6px;
  font: 800 18px var(--display);
}
.tmmycard tfoot td {
  border-top: 2px solid var(--ink);
}
.kbox.kcardbox {
  max-height: 92vh;
  overflow-y: auto;
}
.tmbadtext {
  color: var(--bad);
  font-weight: 700;
}

/* ───────── Payroll tab (owners, v144) ───────── */
.tmpaystatus {
  margin: 8px 0 10px;
  padding: 8px 12px;
  border-left: 4px solid #B45309;
  background: #FFF7E6;
}
.tmpaystatus.ok {
  border-left-color: #15803D;
  background: #ECFDF3;
}
.tmpaytable td:nth-child(n+2):nth-child(-n+4),
.tmpaytable th:nth-child(n+2):nth-child(-n+4) {
  text-align: right;
}
.tmtotal td {
  font-weight: 800;
  border-top: 2px solid #1F1F1F;
}
.tmpaybtns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.tmpaysend {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.tmpaysend label {
  display: grid;
  gap: 3px;
  flex: 1 1 280px;
  font-weight: 600;
}
.tmpaysend .tmin {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #BDBAB3;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
}

/* ───────── Employee files, training, safety (js/team-hr.js, app version 160) ───────── */
.tmrowbtns {
  white-space: nowrap;
}
.tmrowbtns .btn + .btn {
  margin-left: 6px;
}
.hrform {
  width: min(760px, 100%);
}
.hrboxhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hrx {
  border: 0;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
}
.hrtablewrap {
  overflow-x: auto;
  max-width: 100%;
}
.hrmatrix td,
.hrmatrix th {
  white-space: nowrap;
}
.hrcell,
.hrname {
  border: 0;
  background: none;
  padding: 2px 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.hrname {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.hrchanged {
  display: block;
  font-size: 11px;
  color: var(--warn);
}
.tmpill.bad {
  background: #fde8e8;
  color: #9b1c1c;
}
.hrlist {
  display: grid;
  gap: 8px;
}
.hrdoc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.hrdoc > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hrdocbtns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.hrupload,
.hrhistory {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}
.hrupload[open] {
  display: grid;
  gap: 10px;
}
.hrupload summary,
.hrhistory summary {
  cursor: pointer;
  font-weight: 700;
}
.hrwords {
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 14px;
  background: var(--bg);
  line-height: 1.5;
}
.hrwords h3 {
  margin: 12px 0 4px;
}
.hrwords ul,
.hrwords ol {
  padding-left: 22px;
}
.hrsignpart {
  display: grid;
  gap: 8px;
  border-top: 2px solid var(--line);
  padding-top: 10px;
}
.hrsignpart p {
  margin: 0;
  line-height: 1.45;
}
.hrpadlabel {
  font-size: 13px;
  color: var(--muted);
}
.hrlink {
  border: 0;
  background: none;
  color: var(--steel);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.hrpad {
  width: 100%;
  height: 150px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
.hrsigned {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hrsigned > div {
  display: grid;
  gap: 2px;
  align-content: start;
}
.hrsigned img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-bottom: 1px solid var(--ink);
  background: #fff;
}
.hrproof {
  overflow-wrap: anywhere;
}
.hrvoided td {
  text-decoration: line-through;
  color: var(--muted);
}
.hrright {
  text-align: right;
}
.hrreport {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--bad);
}
.hrreport h2 {
  margin: 0;
}
.hrstation {
  margin: 12px 0 4px;
  font-size: 15px;
}
.hrrow {
  cursor: pointer;
}
.hrrow:hover {
  background: var(--bg);
}
.hrclip {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hrfacts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 0;
}
.hrfacts dt {
  color: var(--muted);
}
.hrfacts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.hrpre {
  white-space: pre-wrap;
}
.hrphotos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hrphotos img {
  height: 110px;
  border-radius: 8px;
}
.hrqrgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.hrqrcard {
  display: grid;
  justify-items: center;
  gap: 2px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  break-inside: avoid;
}
.hrqr {
  width: 160px;
  height: 160px;
}
.hrqrcard span {
  font: 800 20px var(--display);
}
.hrqrcard small {
  color: var(--muted);
}
@media (max-width: 760px) {
  .hrsigned {
    grid-template-columns: 1fr;
  }
  .hrdoc {
    flex-direction: column;
    align-items: stretch;
  }
  .hrreport {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Printing a sign-off, an incident or the QR codes: only the box prints. */
@media print {
  body.hrprinting > *:not(#hrbox) {
    display: none !important;
  }
  body.hrprinting #hrbox {
    display: block !important;
    position: static;
    background: none;
    padding: 0;
    overflow: visible;
  }
  body.hrprinting .hrform {
    width: 100%;
    box-shadow: none;
  }
  body.hrprinting .hrwords {
    max-height: none;
    overflow: visible;
    background: none;
  }
  body.hrprinting .noprint,
  body.hrprinting .hrx {
    display: none !important;
  }
}
/* Keep the Training grid inside the page on a phone (it scrolls sideways in its own box). */
#hrview,
#hrview .tmcard {
  min-width: 0;
  max-width: 100%;
}
/* Data sheet list (v161): to-do line, buttons that wrap on a phone. */
.hrsdstodo {
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.45;
}
.hrsdsbtns {
  white-space: nowrap;
}
.hrsdsbtns .btn + .btn {
  margin-left: 4px;
}
@media (max-width: 760px) {
  .hrsdstable td.hrsdsbtns {
    white-space: normal;
  }
  .hrsdsbtns .btn {
    margin: 2px 0;
  }
}
