/* Mobile employee shell. Composes UI Foundation tokens. Desktop layout is unchanged without .hr-m-on. */
body.hr-m-on {
  overflow-x: hidden;
}
body.hr-m-on .hr-app-shell {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}
body.hr-m-on .hr-app-sidebar,
body.hr-m-on #hr-btn-menu,
body.hr-m-on #hr-btn-collapse,
body.hr-m-on #ui-drawer,
body.hr-m-on .hr-page-header,
body.hr-m-on .hr-user-chip {
  display: none;
}
body.hr-m-on .ui-tabs {
  flex-wrap: wrap;
}
body.hr-m-on .ui-tab {
  min-height: 44px;
}
body.hr-m-on .hr-app-content {
  padding: 12px 16px calc(96px + env(safe-area-inset-bottom));
  max-width: 100%;
}
body.hr-m-on .hr-app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: var(--ui-surface);
  border-bottom: 1px solid var(--ui-border);
}
.hr-m-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
}
.hr-m-who span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hr-m-net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  color: var(--ui-text-secondary);
  font-size: 13px;
}
.hr-m-net__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ui-success);
}
.hr-m-net.is-offline .hr-m-net__dot {
  background: var(--ui-warning);
}
.hr-m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--ui-surface);
  border-top: 1px solid var(--ui-border);
}
.hr-m-tab {
  flex: 1 1 0;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ui-text-secondary);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.1;
}
.hr-m-tab[aria-current="page"] {
  color: var(--ui-primary);
  font-weight: 600;
}
.hr-m-home,
.hr-m-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hr-m-card,
.hr-m-qr-card,
.hr-m-setup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hr-m-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hr-m-qr canvas {
  width: 210px;
  height: 210px;
  max-width: 100%;
  background: var(--ui-surface);
}
.hr-m-rcp {
  font-size: 1.25rem;
  font-weight: 700;
}
.hr-m-action,
.hr-m-card .ui-btn,
.hr-m-setup .ui-btn,
.hr-m-qr .ui-btn {
  min-height: 44px;
}
.hr-m-steps {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hr-m-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.hr-m-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: var(--ui-page-bg);
}
.hr-m-gate .hr-pinpad-screen,
.hr-pinpad {
  width: min(100%, 420px);
}
.hr-pinpad__hello,
.hr-pinpad__title,
.hr-pinpad__error {
  text-align: center;
}
.hr-pinpad__hello {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}
.hr-pinpad__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}
.hr-pinpad__dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ui-text, #111);
}
.hr-pinpad__dots span.is-on {
  background: var(--ui-text, #111);
}
.hr-pinpad__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 12px;
}
.hr-pinpad__key {
  min-width: 64px;
  min-height: 68px;
  font-size: 28px;
  justify-content: center;
  touch-action: manipulation;
}
.hr-pinpad__key--empty {
  visibility: hidden;
}
.hr-m-qr,
.hr-m-qr-card,
.hr-m-tab,
.ui-btn,
.hr-pinpad__key {
  touch-action: manipulation;
}
@media (max-width: 768px) {
  .ui-input,
  .ui-select,
  .ui-textarea,
  input,
  select,
  textarea {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .hr-pinpad__key {
    min-height: 56px;
    font-size: 22px;
  }
}
body.hr-m-keyboard .hr-m-tabbar {
  display: none;
}
body.hr-m-keyboard .hr-app-content {
  padding-bottom: 16px;
}
.hr-m-passkey {
  padding: 8px 0;
  border-top: 1px solid var(--ui-border);
}
.hr-offline {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hr-offline .ui-card {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 769px) {
  body.hr-m-on .hr-m-tabbar {
    display: none;
  }
}
