/* Personal low-vision mode. It is activated only for Margarita by
   personal-accessibility.js and never changes the interface of other staff. */

html.restore-personal-large-ui {
  font-size: 19px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.restore-personal-large-ui {
  overflow-x: hidden;
}

body.restore-personal-large-ui .app-shell {
  overflow-x: clip;
}

body.restore-personal-large-ui .dashboard-shell {
  padding-inline: clamp(14px, 4.5vw, 24px) !important;
}

body.restore-personal-large-ui .employee-strip,
body.restore-personal-large-ui #restore-employee-location-gate,
body.restore-personal-large-ui .dashboard-grid > .dashboard-card,
body.restore-personal-large-ui .restore-accessible-earnings {
  padding: clamp(18px, 5vw, 28px) !important;
}

body.restore-personal-large-ui .employee-strip {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
}

body.restore-personal-large-ui .employee-strip strong {
  font-size: clamp(1.35rem, 6vw, 1.8rem) !important;
  line-height: 1.16 !important;
  min-width: 0;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}

body.restore-personal-large-ui .employee-strip em {
  grid-column: 2;
  justify-self: start;
  white-space: normal !important;
}

body.restore-personal-large-ui .card-title > div {
  min-width: 0;
}

body.restore-personal-large-ui .card-title h2,
body.restore-personal-large-ui .card-title p {
  overflow-wrap: anywhere;
}

body.restore-personal-large-ui .employee-strip span,
body.restore-personal-large-ui .employee-strip em,
body.restore-personal-large-ui .card-title p,
body.restore-personal-large-ui #restore-employee-location-gate p,
body.restore-personal-large-ui #restore-employee-location-gate small {
  font-size: clamp(1rem, 4.6vw, 1.2rem) !important;
  line-height: 1.42 !important;
}

body.restore-personal-large-ui .card-title h2,
body.restore-personal-large-ui #restore-employee-location-gate h2 {
  font-size: clamp(1.55rem, 7vw, 2.05rem) !important;
  line-height: 1.16 !important;
}

body.restore-personal-large-ui .card-icon,
body.restore-personal-large-ui .restore-location-dot {
  min-width: 64px !important;
  width: 64px !important;
  min-height: 64px !important;
  height: 64px !important;
  font-size: 1.65rem !important;
}

body.restore-personal-large-ui .primary-button,
body.restore-personal-large-ui .secondary-button,
body.restore-personal-large-ui .danger-button,
body.restore-personal-large-ui .logout-button,
body.restore-personal-large-ui .restore-location-retry {
  min-height: 78px !important;
  padding: 16px 14px !important;
  font-size: clamp(1.25rem, 5.8vw, 1.65rem) !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

body.restore-personal-large-ui .restore-accessible-primary-card .primary-button,
body.restore-personal-large-ui .restore-accessible-primary-card .danger-button,
body.restore-personal-large-ui .restore-accessible-report-card > .secondary-button {
  min-height: 92px !important;
  font-weight: 900 !important;
}

body.restore-personal-large-ui .elapsed-panel span,
body.restore-personal-large-ui .elapsed-panel small {
  font-size: 1.05rem !important;
}

body.restore-personal-large-ui .elapsed-panel strong {
  font-size: clamp(2.7rem, 13vw, 4rem) !important;
  line-height: 1 !important;
}

body.restore-personal-large-ui .report-grid {
  gap: 16px !important;
}

body.restore-personal-large-ui .report-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 16px !important;
}

body.restore-personal-large-ui .report-row > span {
  font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
  line-height: 1.2 !important;
  text-align: start !important;
}

body.restore-personal-large-ui .report-row > span strong {
  font-size: 1.25em !important;
}

body.restore-personal-large-ui .report-row > div {
  display: grid !important;
  grid-template-columns: minmax(64px, 1fr) minmax(70px, 1fr) minmax(64px, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  gap: 10px !important;
}

body.restore-personal-large-ui .report-row button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 70px !important;
  font-size: 2.1rem !important;
  line-height: 1 !important;
}

body.restore-personal-large-ui .report-row button:first-child:disabled {
  opacity: 0.18 !important;
}

body.restore-personal-large-ui .report-row b {
  font-size: clamp(2rem, 10vw, 2.8rem) !important;
}

body.restore-personal-large-ui .report-total {
  min-height: 76px !important;
  padding: 16px !important;
}

body.restore-personal-large-ui .report-total span,
body.restore-personal-large-ui .report-total strong,
body.restore-personal-large-ui .restore-action-feedback,
body.restore-personal-large-ui .restore-employee-guide {
  font-size: clamp(1.15rem, 5.2vw, 1.45rem) !important;
  line-height: 1.4 !important;
}

body.restore-personal-large-ui .language-switch button {
  min-width: 64px !important;
  min-height: 58px !important;
  font-size: 1.2rem !important;
}

body.restore-personal-large-ui .restore-accessible-earnings {
  display: block !important;
  border: 2px solid rgba(109, 181, 255, 0.72) !important;
  background: rgba(13, 18, 26, 0.96) !important;
}

body.restore-personal-large-ui .restore-accessible-earnings-summary {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  color: #eef6ff;
  font-size: clamp(1.3rem, 6vw, 1.7rem);
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  list-style-position: inside;
}

body.restore-personal-large-ui .restore-accessible-earnings:not([open]) > #restore-employee-earnings {
  display: none !important;
}

body.restore-personal-large-ui .restore-accessible-earnings[open] > #restore-employee-earnings {
  display: block !important;
  margin: 16px 0 0 !important;
  padding: 16px !important;
}

body.restore-personal-large-ui #restore-employee-earnings .restore-earnings-view-switch,
body.restore-personal-large-ui #restore-employee-earnings .restore-earnings-controls {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.restore-personal-large-ui #restore-employee-earnings button {
  min-height: 62px !important;
  white-space: normal !important;
}

@media (max-width: 390px) {
  html.restore-personal-large-ui {
    font-size: 18px;
  }

  body.restore-personal-large-ui .dashboard-shell {
    padding-inline: max(12px, env(safe-area-inset-left)) !important;
  }

  body.restore-personal-large-ui .employee-strip,
  body.restore-personal-large-ui #restore-employee-location-gate,
  body.restore-personal-large-ui .dashboard-grid > .dashboard-card,
  body.restore-personal-large-ui .restore-accessible-earnings {
    padding: 16px !important;
  }

  body.restore-personal-large-ui .report-row > div {
    grid-template-columns: minmax(58px, 1fr) minmax(62px, 1fr) minmax(58px, 1fr) !important;
    gap: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.restore-personal-large-ui *,
  body.restore-personal-large-ui *::before,
  body.restore-personal-large-ui *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
