body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#root {
  height: auto;
  flex: 1 0 auto;
}

.app,
.login-wrap {
  min-height: calc(100vh - 44px);
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 12px 20px;
  border-top: 1px solid var(--line, #e4dece);
  background: var(--bg, #f8f5ee);
  color: var(--text-3, #718078);
  font-size: 12px;
}

.app-footer a {
  color: var(--brand-600, #1f5a3f);
  font-weight: 600;
}

.app-footer a:hover {
  text-decoration: underline;
}

.app-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.tbl tbody tr.employee-login-review > td {
  background: #fff0f0;
}
.tbl tbody tr.employee-login-review:hover > td {
  background: #ffe5e5;
}
.employee-login-review-note {
  color: #9b2c2c;
  margin-top: 4px;
}
.employee-email {
  min-width: 170px;
  max-width: 260px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Only the form body scrolls; the action footer cannot shrink below view. */
.overlay {
  box-sizing: border-box;
  inset: auto 0 auto;
  top: var(--modal-visible-top, 0px);
  height: var(--modal-visible-height, 100vh);
  height: var(--modal-visible-height, 100dvh);
  min-height: 0;
}
.overlay .modal {
  min-height: 0;
  max-height: min(92vh, calc(var(--modal-visible-height, 100vh) - 32px));
  max-height: min(92dvh, calc(var(--modal-visible-height, 100dvh) - 32px));
  overflow: hidden;
}
.modal-head,
.modal-foot {
  flex: 0 0 auto;
}
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-foot {
  background: var(--surface, #fff);
  padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
}
@media (max-width: 800px), (max-height: 600px) {
  .overlay .modal {
    max-height: calc(var(--modal-visible-height, 100vh) - 16px);
    max-height: calc(var(--modal-visible-height, 100dvh) - 16px);
  }
  .modal-foot {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}
