/* ============================================================================
   S8 — People & access.
   Served as _content/ClientSharedLibrary/css/people.css.
   Depends on tokens.css; expects bootstrap-bridge.css to load before it.

   Covers /Admin, /staff, /RegisteredUsers, /attendance, /attendance-records,
   /user-summary-settings, /deleteaccount, /send-otp and the auth pair
   /register + /forgot-password, plus the attendance components they host
   (modern/traditional views, the day and year record tables, the detail,
   leave and salary modals, and the camera capture).

   SPECIFICITY — same strategy as every segment since S2. Rules are prefixed
   .mp-people, added to each page's root, which reaches (0,2,0) and beats a
   component style block at equal weight without a blanket !important. Roots
   carry `class="mp-ui mp-people"`; .mp-ui pulls in the shared Bootstrap layer.

   WHAT THIS SEGMENT IS FOR
   Three different jobs share one segment because they all answer "who":

     · ROSTER — /Admin's user cards, /staff, /RegisteredUsers. Records that
       are read, edited occasionally, and mostly just confirmed. Cards, not
       tables: a user is a small set of labelled facts, and a card survives a
       narrow screen without the label/value pairing coming apart.
     · ATTENDANCE — /attendance and /attendance-records. This IS a table.
       Someone scans a month of in/out times looking for the row that is
       wrong, so the figures are tabular and the state is carried by a chip
       with a shape, not by a background tint alone.
     · AUTH — /register, /forgot-password. One task per screen, no navigation,
       and the only page in the app a person sees before they are signed in.

   DENSITY: default throughout. Attendance tables accept `data-density`
   "compact" from a container if an operator wants more rows.

   THE PURPLE IS GONE. /register and /forgot-password each carried ~520 lines
   of near-identical CSS painting an animated purple gradient with floating
   decorations, hard-coded white surfaces and no dark theme at all. They now
   share one definition here, built from tokens, and read in both themes.
   ========================================================================= */

/* ============================================================================
   1. Page frame
   ========================================================================= */
.mp-people {
  font-family: var(--mp-font);
  font-size: var(--mp-text-ui);
  color: var(--mp-ink);
}

.mp-people h1, .mp-people h2, .mp-people h3,
.mp-people h4, .mp-people h5, .mp-people h6 {
  color: var(--mp-ink);
  font-weight: var(--mp-weight-bold);
  line-height: var(--mp-leading-tight);
}

.mp-people .section-title {
  font-size: var(--mp-text-lg);
  margin: 0 0 var(--mp-space-4);
}

/* Figures — times, salaries, counts. Attendance is read down a column, so the
   digits have to sit in the same place on every row. */
.mp-people .num,
.mp-people .mp-figure {
  font-family: var(--mp-font-num);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* ============================================================================
   2. Tab bar  (/Admin and /attendance share this)
   ========================================================================= */
.mp-people .admin-tabs {
  margin-bottom: var(--mp-space-5);
  border-bottom: 1px solid var(--mp-line);
}

.mp-people .admin-tabs-scroll {
  display: flex;
  gap: var(--mp-space-2);
  overflow-x: auto;
  padding: 0 0 var(--mp-space-2);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.mp-people .admin-tabs-scroll::-webkit-scrollbar { height: 4px; }
.mp-people .admin-tabs-scroll::-webkit-scrollbar-thumb {
  background-color: var(--mp-line-strong);
  border-radius: var(--mp-radius-pill);
}

/* The tab itself. The markup gives these `.btn`, so the shared Bootstrap
   layer already sizes them; this only settles the resting and selected look.
   Both states are defined here rather than one being an inline
   `background-color: {brand}; color: white` — that inline pair was the only
   thing distinguishing a selected tab, and white on a light brand colour is
   unreadable. */
.mp-people .admin-tabs-scroll .btn {
  flex: 0 0 auto;
  min-height: var(--mp-control-h);
  display: inline-flex;
  align-items: center;
  gap: var(--mp-space-2);
  padding: 0 var(--mp-space-4);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-pill);
  background: var(--mp-surface);
  color: var(--mp-ink-2);
  font-size: var(--mp-text-ui);
  font-weight: var(--mp-weight-medium);
  white-space: nowrap;
  box-shadow: none;
}

.mp-people .admin-tabs-scroll .btn svg,
.mp-people .admin-tabs-scroll .btn i { flex: 0 0 auto; }

.mp-people .admin-tabs-scroll .btn:hover {
  background: var(--mp-surface-2);
  color: var(--mp-ink);
}

.mp-people .admin-tabs-scroll .btn.active-tab {
  background: var(--mp-accent);
  border-color: var(--mp-accent);
  color: var(--mp-accent-ink);
  font-weight: var(--mp-weight-bold);
}

.mp-people .admin-tabs-container {
  margin-top: var(--mp-space-5);
}

/* ============================================================================
   3. Roster cards  (/Admin user list)
   ========================================================================= */
.mp-people .admin_card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-sm);
}

.mp-people .admin_card-body {
  padding: var(--mp-pad-card);
}

.mp-people .admin_card-header {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
}

.mp-people .admin_avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--mp-line);
  flex: 0 0 auto;
}

.mp-people .admin_card-title {
  font-size: var(--mp-text-md);
  margin: 0;
}

/* The email under the name. It used to be truncated in C# at 18 characters
   with an ellipsis appended, which cuts a real address in a way the reader
   cannot recover; wrapping is the honest treatment on a card that can grow. */
.mp-people .admin_card-text {
  margin: 2px 0 0;
  font-size: var(--mp-text-sm);
  color: var(--mp-muted);
  overflow-wrap: anywhere;
}

.mp-people .admin_btn-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mp-control-h);
  height: var(--mp-control-h);
  padding: 0;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-sm);
  background: var(--mp-surface);
  color: var(--mp-ink-2);
  text-decoration: none;
  transition: transform .15s ease;
}

.mp-people .admin_btn-toggle:hover {
  background: var(--mp-surface-2);
  color: var(--mp-ink);
}

.mp-people .admin_card-content {
  margin-top: var(--mp-space-4);
  padding-top: var(--mp-space-4);
  border-top: 1px solid var(--mp-line);
}

.mp-people .admin_user-info label {
  display: block;
  font-size: var(--mp-text-xs);
  letter-spacing: var(--mp-track-label);
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 2px;
}

.mp-people .admin_user-info p {
  margin: 0 0 var(--mp-space-3);
  overflow-wrap: anywhere;
}

.mp-people .admin_action-buttons,
.mp-people .admin_form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mp-space-2);
}

.mp-people .admin_action-buttons .btn,
.mp-people .admin_form-actions .btn { flex: 1 1 auto; }

/* ============================================================================
   4. Forms  (/Admin add-user, the inline edit form)
   ========================================================================= */
.mp-people .form-container {
  max-width: 520px;
  margin: 0 auto var(--mp-space-5);
  padding: var(--mp-pad-card);
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-sm);
}

/* Was an inline `color: {brand}` on the heading and on every field label, so
   the form was legible only while the business happened to have picked a dark
   brand colour. Labels are label-coloured; the heading is ink. */
.mp-people .form-heading {
  font-size: var(--mp-text-lg);
  margin: 0 0 var(--mp-space-5);
  text-align: center;
}

.mp-people .form-group {
  margin-bottom: var(--mp-space-4);
}

.mp-people .form-group > label {
  display: block;
  margin-bottom: var(--mp-space-1);
  font-size: var(--mp-text-sm);
  font-weight: var(--mp-weight-medium);
  color: var(--mp-ink-2);
}

.mp-people .required-indicator {
  color: var(--mp-danger);
  font-weight: var(--mp-weight-bold);
  margin-left: 2px;
}

.mp-people .validation-message {
  display: block;
  margin-top: var(--mp-space-1);
  font-size: var(--mp-text-xs);
  color: var(--mp-danger);
}

/* ============================================================================
   5. Confirmation dialog  (/Admin delete-user)
   ========================================================================= */
.mp-people .confirmation-dialog {
  position: fixed;
  right: var(--mp-space-5);
  bottom: var(--mp-space-5);
  z-index: var(--mp-z-overlay);
  max-width: min(360px, calc(100vw - var(--mp-space-6)));
  background: var(--mp-surface);
  border: 1px solid var(--mp-line-strong);
  border-left: 3px solid var(--mp-danger);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-lg);
  animation: mp-people-slide-in .25s ease;
}

.mp-people .dialog-content { padding: var(--mp-space-4); }
.mp-people .confirmation-message p { margin: 0 0 var(--mp-space-4); }

.mp-people .dialog-buttons {
  display: flex;
  gap: var(--mp-space-2);
}

.mp-people .dialog-buttons .btn { flex: 1 1 0; }

@keyframes mp-people-slide-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-people .confirmation-dialog { animation: none; }
}

/* ============================================================================
   6. Staff sheet  (/staff)
   ========================================================================= */
.mp-people .staff-card {
  height: 100%;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-sm);
  transition: box-shadow .15s ease;
}

.mp-people .staff-card:hover { box-shadow: var(--mp-shadow); }

.mp-people .staff-card .card-header {
  padding: var(--mp-space-3) var(--mp-space-4);
  background: var(--mp-surface-2);
  border-bottom: 1px solid var(--mp-line);
  font-size: var(--mp-text-ui);
  font-weight: var(--mp-weight-bold);
  border-radius: var(--mp-radius) var(--mp-radius) 0 0;
}

.mp-people .staff-card .card-body { padding: var(--mp-space-4); }
.mp-people .staff-card .card-body p { margin-bottom: var(--mp-space-1); }

/* ============================================================================
   6b. Modals
   ------------------------------------------------------------------------
   Every dialog in this segment is hand-rolled: the markup emits
   `<div class="modal fade show" style="display:block">` with no Bootstrap JS
   behind it, so nothing supplies the dimmed backdrop. Each component used to
   supply its own with a bare `.modal { background-color: rgba(0,0,0,.5) }`,
   which tinted every modal in the app, and StaffAttendancePage went further
   with `.modal-backdrop { pointer-events: none }` — that one disabled
   click-outside-to-close on every real Bootstrap modal anywhere while
   /attendance was mounted.

   The dimming is scoped here instead, and the two components that also
   emitted their own `.modal-backdrop` element no longer do, so nothing
   double-dims.
   ========================================================================= */
.mp-people .modal.show,
.mp-people .modal.d-block {
  background-color: rgba(11, 15, 20, .55);
}

.mp-people .modal-content {
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-lg);
  box-shadow: var(--mp-shadow-lg);
}

.mp-people .modal-header {
  gap: var(--mp-space-3);
  padding: var(--mp-space-4);
  background: var(--mp-surface-2);
  border-bottom: 1px solid var(--mp-line);
}

.mp-people .modal-title {
  font-size: var(--mp-text-md);
  font-weight: var(--mp-weight-bold);
  color: var(--mp-ink);
}

.mp-people .modal-body   { padding: var(--mp-space-4); }
.mp-people .modal-footer {
  gap: var(--mp-space-2);
  padding: var(--mp-space-4);
  border-top: 1px solid var(--mp-line);
}

/* Bootstrap's close glyph is a black SVG data-URI, which vanishes on a dark
   header. `filter: invert()` is the documented way to flip it and is what
   .btn-close-white does in 5.3 — a class Bootstrap 5.1, which the MAUI host
   still ships, does not have. */
.mp-people .btn-close {
  opacity: .7;
  transition: opacity .15s ease;
}
.mp-people .btn-close:hover { opacity: 1; }

.mp-people .modal-header.bg-primary .btn-close,
.mp-people .modal-header.bg-danger  .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* A modal opened from inside another one. Was `.modal:nth-of-type(2)`, which
   counted every .modal in the document rather than the two that stack. */
.mp-people .modal.is-nested { z-index: calc(var(--mp-z-overlay) + 10); }

/* ============================================================================
   7. Attendance tables
   ------------------------------------------------------------------------
   Scoped to .mp-people, so this is every table in the segment. The rules the
   component blocks used to carry for these were written against bare
   `.table-responsive`, `.table`, `.table th` and `.table td`, which redefined
   Bootstrap's table for the whole app whenever an attendance view was mounted.
   ========================================================================= */
.mp-people .admin-content {
  padding: var(--mp-pad-card);
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
}

.mp-people .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  background: var(--mp-surface);
}

.mp-people .table-responsive > table { margin-bottom: 0; }

.mp-people .table-responsive th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--mp-surface-2);
  color: var(--mp-ink-2);
  font-size: var(--mp-text-xs);
  font-weight: var(--mp-weight-bold);
  letter-spacing: var(--mp-track-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.mp-people .table-responsive td {
  vertical-align: middle;
  padding: var(--mp-space-2) var(--mp-space-3);
}

/* Times and money read down a column. */
.mp-people .table-responsive td.time,
.mp-people .table-responsive td.amount,
.mp-people .time-stamp,
.mp-people .salary-display .amount {
  font-family: var(--mp-font-num);
  font-variant-numeric: tabular-nums;
}

.mp-people .selected-row > td { background: var(--mp-accent-soft); }

/* A leave row. The tint alone is a weak signal on a striped table, so the row
   also carries a rail — the same device the stock sheet and the expense
   ledger use for "this one is different". */
.mp-people .leave-record > td { background: var(--mp-warn-soft); }
.mp-people .leave-record > td:first-child {
  box-shadow: inset 3px 0 0 var(--mp-warn);
}

.mp-people .expand-row > td {
  padding: 0;
  border-top: none;
}

.mp-people .expand-content {
  margin: 0 var(--mp-space-3) var(--mp-space-3);
  padding: var(--mp-space-4);
  background: var(--mp-surface-2);
  border-radius: var(--mp-radius);
}

.mp-people .expand-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--mp-radius-sm);
}

.mp-people .min-width-200 { min-width: 200px; }

/* ============================================================================
   8. Attendance state chips
   ------------------------------------------------------------------------
   Present / absent / leave / permission is the thing being scanned for, so
   each state gets its own tint AND its own text colour — a chip that differs
   only by background disappears for a reader who cannot separate the hues.
   ========================================================================= */
.mp-people .attendance-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--mp-space-1);
  padding: 2px var(--mp-space-2);
  border-radius: var(--mp-radius-pill);
  border: 1px solid transparent;
  font-size: var(--mp-text-xs);
  font-weight: var(--mp-weight-bold);
  white-space: nowrap;
  cursor: pointer;
}

.mp-people .attendance-badge.is-present {
  background: var(--mp-good-soft);
  border-color: var(--mp-good);
  color: var(--mp-good);
}

.mp-people .attendance-badge.is-absent {
  background: var(--mp-danger-soft);
  border-color: var(--mp-danger);
  color: var(--mp-danger);
}

.mp-people .attendance-badge.is-leave {
  background: var(--mp-warn-soft);
  border-color: var(--mp-warn);
  color: var(--mp-warn);
}

.mp-people .attendance-badge.is-permission {
  background: var(--mp-info-soft);
  border-color: var(--mp-info);
  color: var(--mp-info);
}

/* ============================================================================
   9. Salary row
   ========================================================================= */
.mp-people .salary-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--mp-space-2);
  padding: var(--mp-space-2);
  border-radius: var(--mp-radius-sm);
}

.mp-people .salary-section:hover { background: var(--mp-surface-2); }

.mp-people .salary-payment {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
}

.mp-people .salary-payment input { max-width: 8rem; }

.mp-people .salary-display .amount {
  font-weight: var(--mp-weight-bold);
  color: var(--mp-good);
}

/* ============================================================================
   10. Attendance detail modal — the in/out timeline
   ========================================================================= */
.mp-people .timeline { position: relative; padding: var(--mp-space-2) 0; }

.mp-people .timeline-item {
  position: relative;
  padding: 0 0 var(--mp-space-5) var(--mp-space-6);
  border-left: 2px solid var(--mp-line);
}

.mp-people .timeline-item:last-child { padding-bottom: var(--mp-space-1); }

.mp-people .time-entry { position: relative; margin-bottom: var(--mp-space-4); }

.mp-people .time-badge {
  position: absolute;
  left: -41px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mp-surface);
  border: 2px solid var(--mp-line-strong);
  color: var(--mp-ink-2);
}

.mp-people .in-time  .time-badge { border-color: var(--mp-good);   color: var(--mp-good); }
.mp-people .out-time .time-badge { border-color: var(--mp-danger); color: var(--mp-danger); }

.mp-people .time-content {
  margin-left: var(--mp-space-2);
  padding: var(--mp-space-2) var(--mp-space-4);
  background: var(--mp-surface-2);
  border-radius: var(--mp-radius-sm);
}

.mp-people .time-content h6 {
  margin: 0;
  font-size: var(--mp-text-sm);
  color: var(--mp-ink-2);
}

.mp-people .time-content p {
  margin: var(--mp-space-1) 0 0;
  font-family: var(--mp-font-num);
  font-variant-numeric: tabular-nums;
  font-size: var(--mp-text-md);
  color: var(--mp-ink);
}

.mp-people .reason-entry .time-badge {
  border-color: var(--mp-line-strong);
  color: var(--mp-muted);
}

.mp-people .reason-entry .time-content {
  border-left: 3px solid var(--mp-line-strong);
}

.mp-people .reason-entry h6 { color: var(--mp-muted); }

.mp-people .reason-text {
  padding: var(--mp-space-2) var(--mp-space-3);
  background: var(--mp-info-soft);
  border-left: 3px solid var(--mp-info);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-ink);
}

.mp-people .reason-entry .reason-text {
  padding: var(--mp-space-1) 0;
  background: transparent;
  border-left: none;
}

.mp-people .location-coordinates {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
  margin-top: var(--mp-space-1);
}

.mp-people .location-coords {
  font-family: var(--mp-font-num);
  font-size: var(--mp-text-xs);
  color: var(--mp-muted);
  overflow-wrap: anywhere;
}

/* ============================================================================
   11. Attendance photos
   ========================================================================= */
.mp-people .photo-gallery { margin-top: var(--mp-space-2); }
.mp-people .photo-container { position: relative; margin-bottom: var(--mp-space-2); }

.mp-people .attendance-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  transition: transform .15s ease;
}

.mp-people .attendance-photo:hover { transform: scale(1.02); }

.mp-people .photo-time {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px var(--mp-space-1);
  background: rgba(0, 0, 0, .66);
  color: #FFFFFF;
  font-family: var(--mp-font-num);
  font-size: var(--mp-text-xs);
  border-top-left-radius: var(--mp-radius-sm);
}

.mp-people .no-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--mp-space-1);
  height: 120px;
  background: var(--mp-surface-2);
  border: 1px dashed var(--mp-line-strong);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-muted);
}

.mp-people .no-photo i { font-size: 1.75rem; }
.mp-people .no-photo p { margin: 0; font-size: var(--mp-text-xs); }

.mp-people .small-thumbnail {
  margin-top: var(--mp-space-1);
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 2px solid var(--mp-line);
  border-radius: var(--mp-radius-sm);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.mp-people .small-thumbnail:hover {
  border-color: var(--mp-accent);
  transform: scale(1.05);
}

.mp-people .small-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The full-size viewer. Deliberately a fixed dark ground in BOTH themes: it
   is a lightbox over a photograph, and the point is that the surrounding page
   stops competing with the image. */
.mp-people .fullsize-image-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--mp-z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .9);
  cursor: pointer;
}

.mp-people .fullsize-image-container {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  cursor: default;
}

.mp-people .fullsize-image-container img {
  max-width: 100%;
  max-height: 90vh;
  box-shadow: var(--mp-shadow-lg);
  transition: transform .2s ease;
}

.mp-people .fullsize-close,
.mp-people .zoom-controls {
  position: absolute;
  background: rgba(0, 0, 0, .55);
}

.mp-people .fullsize-close {
  top: var(--mp-space-4);
  right: var(--mp-space-4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.mp-people .zoom-controls {
  right: var(--mp-space-4);
  bottom: var(--mp-space-4);
  padding: var(--mp-space-1);
  border-radius: var(--mp-radius-sm);
}

.mp-people .zoom-controls button { margin: 0 2px; }

/* ============================================================================
   12. Year view — the calendar strip and leave chips
   ========================================================================= */
.mp-people .attendance-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mp-space-1);
}

.mp-people .calendar-day {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-sm);
  font-size: var(--mp-text-xs);
}

.mp-people .calendar-day.leave-day {
  background: var(--mp-warn-soft);
  border-color: var(--mp-warn);
}

.mp-people .calendar-day.permission-day {
  background: var(--mp-info-soft);
  border-color: var(--mp-info);
}

.mp-people .day-number {
  font-family: var(--mp-font-num);
  font-weight: var(--mp-weight-bold);
  line-height: 1;
}

.mp-people .day-indicator { font-size: 0.625rem; line-height: 1; }
.mp-people .day-indicator.leave      { color: var(--mp-warn); }
.mp-people .day-indicator.permission { color: var(--mp-info); }

.mp-people .leave-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mp-space-1);
}

.mp-people .leave-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--mp-space-1);
  padding: 2px var(--mp-space-2);
  background: var(--mp-warn-soft);
  border: 1px solid var(--mp-warn);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-warn);
  font-size: var(--mp-text-xs);
}

.mp-people .leave-date {
  font-family: var(--mp-font-num);
  font-weight: var(--mp-weight-bold);
}

.mp-people .leave-indicator { font-size: var(--mp-text-xs); }

.mp-people .no-leave-days {
  display: inline-flex;
  align-items: center;
  gap: var(--mp-space-1);
  padding: 2px var(--mp-space-2);
  color: var(--mp-good);
  background: var(--mp-good-soft);
  border-radius: var(--mp-radius-sm);
  font-size: var(--mp-text-xs);
}

.mp-people .attendance-details-container {
  padding: var(--mp-space-3);
  border-top: 1px solid var(--mp-line);
}

.mp-people .expanded-details-row > td { background: var(--mp-surface-2); }

.mp-people .day-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--mp-space-3);
}

.mp-people .day-card {
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-2);
  padding: var(--mp-space-3);
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-sm);
}

.mp-people .day-card-header {
  display: flex;
  justify-content: space-between;
  gap: var(--mp-space-2);
  font-weight: var(--mp-weight-bold);
  color: var(--mp-ink);
}

.mp-people .day-card-body {
  display: flex;
  justify-content: space-between;
  gap: var(--mp-space-2);
  font-size: var(--mp-text-sm);
  color: var(--mp-ink-2);
}

.mp-people .time-stamp {
  display: inline-flex;
  align-items: center;
  gap: var(--mp-space-1);
  font-size: var(--mp-text-sm);
}

.mp-people .time-stamp.in  { color: var(--mp-good); }
.mp-people .time-stamp.out { color: var(--mp-danger); }
.mp-people .permission-time { color: var(--mp-warn); }

.mp-people .empty-state {
  padding: var(--mp-space-7) var(--mp-space-4);
  text-align: center;
  color: var(--mp-muted);
}

.mp-people .empty-state i {
  display: block;
  margin-bottom: var(--mp-space-3);
  font-size: 2.25rem;
}

.mp-people .loading-spinner {
  padding: var(--mp-space-6);
  text-align: center;
}

/* ============================================================================
   13. Camera capture  (/attendance)
   ========================================================================= */
.mp-people .camera-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* Scoped to the capture frame. This used to be a bare `video { }` rule, which
   mirrored and re-radiused EVERY video element in the app while the component
   was mounted. The mirroring belongs to the selfie preview only. */
.mp-people .camera-container video {
  width: 100%;
  border-radius: var(--mp-radius-sm);
  background: #000000;
  transform: scaleX(-1);
}

.mp-people .camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mp-people .camera-frame {
  width: 80%;
  height: 80%;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: var(--mp-radius-sm);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5);
}

.mp-people .camera-switch {
  position: absolute;
  right: var(--mp-space-4);
  bottom: var(--mp-space-4);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: #171A21;
  box-shadow: var(--mp-shadow);
}

.mp-people .camera-switch svg { width: 24px; height: 24px; fill: currentColor; }

.mp-people .captured-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
  border-radius: var(--mp-radius-sm);
}

.mp-people .processing-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .7);
  color: #FFFFFF;
  border-radius: var(--mp-radius-sm);
}

/* ============================================================================
   14. Toasts  (/user-summary-settings)
   ========================================================================= */
.mp-people .toast-container {
  position: fixed;
  right: var(--mp-space-4);
  bottom: var(--mp-space-4);
  z-index: var(--mp-z-overlay);
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-2);
}

.mp-people .custom-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-width: 280px;
  max-width: min(420px, calc(100vw - var(--mp-space-6)));
  overflow: hidden;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-lg);
  animation: mp-people-toast-in .25s ease-out forwards;
}

.mp-people .toast-success { border-left: 3px solid var(--mp-good); }
.mp-people .toast-error   { border-left: 3px solid var(--mp-danger); }

.mp-people .toast-icon {
  display: flex;
  align-items: center;
  padding: var(--mp-space-4);
  font-size: 1.25rem;
}

.mp-people .toast-success .toast-icon { color: var(--mp-good); }
.mp-people .toast-error   .toast-icon { color: var(--mp-danger); }

.mp-people .toast-content {
  flex: 1;
  padding: var(--mp-space-3) var(--mp-space-6) var(--mp-space-3) 0;
}

.mp-people .toast-title {
  margin-bottom: 2px;
  font-weight: var(--mp-weight-bold);
  color: var(--mp-ink);
}

.mp-people .toast-message {
  font-size: var(--mp-text-sm);
  color: var(--mp-ink-2);
}

.mp-people .toast-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: var(--mp-space-3) var(--mp-space-4);
  border: none;
  background: transparent;
  color: var(--mp-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.mp-people .toast-close:hover { color: var(--mp-ink); }

.mp-people .toast-progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--mp-line);
}

.mp-people .progress-value { height: 100%; width: 100%; }
.mp-people .toast-success .progress-value {
  background: var(--mp-good);
  animation: mp-people-shrink 3s linear forwards;
}
.mp-people .toast-error .progress-value {
  background: var(--mp-danger);
  animation: mp-people-shrink 3s linear forwards;
}

.mp-people .fade-out { animation: mp-people-toast-out .4s forwards; }

@keyframes mp-people-toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes mp-people-toast-out {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}
@keyframes mp-people-shrink {
  from { width: 100%; }
  to   { width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-people .custom-toast,
  .mp-people .fade-out { animation: none; }
  .mp-people .progress-value { animation: none; width: 0; }
}

/* The per-user card grid on /user-summary-settings. */
.mp-people .user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--mp-space-3);
  margin-top: var(--mp-space-3);
}

.mp-people .user-card {
  overflow: hidden;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-sm);
}

.mp-people .user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mp-space-2);
  padding: var(--mp-space-3);
  background: var(--mp-surface-2);
  border-bottom: 1px solid var(--mp-line);
}

.mp-people .user-header h6 { margin: 0; font-weight: var(--mp-weight-bold); }
.mp-people .user-content { padding: var(--mp-space-4); }
.mp-people .table-selection { margin-bottom: var(--mp-space-2); }

/* ============================================================================
   15. Salary detail rows  (SalaryPaymentDetailsModal)
   ========================================================================= */
.mp-people .payment-details {
  padding: var(--mp-space-4);
  background: var(--mp-surface-2);
  border-radius: var(--mp-radius);
}

.mp-people .detail-row {
  display: flex;
  justify-content: space-between;
  gap: var(--mp-space-4);
  padding: var(--mp-space-2) 0;
  border-bottom: 1px solid var(--mp-line);
}

.mp-people .detail-row:last-child { border-bottom: none; }
.mp-people .detail-row .label { color: var(--mp-ink-2); font-weight: var(--mp-weight-medium); }
.mp-people .detail-row .value {
  font-family: var(--mp-font-num);
  font-variant-numeric: tabular-nums;
  font-weight: var(--mp-weight-bold);
}
.mp-people .detail-row .value.amount {
  color: var(--mp-good);
  font-size: var(--mp-text-md);
}

/* ============================================================================
   16. ERP licence tab  (ErpLoginTab, hosted by /Admin → Business)
   ========================================================================= */
.mp-people .elt-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--mp-space-5);
}

.mp-people .elt-loading {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
  padding: var(--mp-space-6) 0;
  color: var(--mp-muted);
}

.mp-people .elt-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--mp-line);
  border-top-color: var(--mp-accent);
  border-radius: 50%;
  animation: mp-people-spin .7s linear infinite;
}

@keyframes mp-people-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .mp-people .elt-spinner { animation-duration: 2s; }
}

.mp-people .elt-unlinked-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--mp-space-3);
  padding: var(--mp-space-6);
  text-align: center;
  background: var(--mp-warn-soft);
  border: 1px solid var(--mp-warn);
  border-radius: var(--mp-radius-lg);
}

.mp-people .elt-unlinked-icon  { font-size: 2.25rem; }
.mp-people .elt-unlinked-title { font-size: var(--mp-text-lg); font-weight: var(--mp-weight-bold); color: var(--mp-warn); }
.mp-people .elt-unlinked-sub   { max-width: 42ch; font-size: var(--mp-text-sm); color: var(--mp-ink-2); }

.mp-people .elt-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--mp-space-2);
  margin-bottom: var(--mp-space-4);
}

.mp-people .elt-header-title { font-size: var(--mp-text-lg); font-weight: var(--mp-weight-bold); }
.mp-people .elt-header-sub   { margin-top: 2px; font-size: var(--mp-text-xs); color: var(--mp-muted); }

.mp-people .elt-license-list {
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-3);
}

.mp-people .elt-lic {
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-1);
  padding: var(--mp-space-3) var(--mp-space-4);
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
}

/* Expiry urgency. Rail plus text colour, not tint alone — "expires in 4 days"
   has to reach a reader who cannot separate amber from green. */
.mp-people .elt-lic--ok     { border-left: 3px solid var(--mp-good); }
.mp-people .elt-lic--warn   { border-left: 3px solid var(--mp-warn); }
.mp-people .elt-lic--urgent { border-left: 3px solid var(--mp-danger); }

.mp-people .elt-lic-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--mp-space-2);
}

.mp-people .elt-lic-product { font-weight: var(--mp-weight-bold); }
.mp-people .elt-lic-meta    { font-size: var(--mp-text-sm); color: var(--mp-muted); }
.mp-people .elt-lic-days    { margin-left: var(--mp-space-1); font-weight: var(--mp-weight-bold); }

.mp-people .elt-lic--ok     .elt-lic-days { color: var(--mp-good); }
.mp-people .elt-lic--warn   .elt-lic-days { color: var(--mp-warn); }
.mp-people .elt-lic--urgent .elt-lic-days { color: var(--mp-danger); }

.mp-people .elt-lic-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mp-space-1);
  margin-top: 2px;
}

.mp-people .elt-feature-chip {
  padding: 1px var(--mp-space-2);
  background: var(--mp-accent-soft);
  /* --mp-accent-ink pairs with the SOLID accent. On the tint the readable
     ink is the accent itself. */
  color: var(--mp-accent);
  border-radius: var(--mp-radius-pill);
  font-size: var(--mp-text-xs);
  font-weight: var(--mp-weight-bold);
}

.mp-people .elt-actions { display: flex; gap: var(--mp-space-2); }

/* ============================================================================
   17. Responsive
   ========================================================================= */
@media (max-width: 767.98px) {
  .mp-people .form-container { padding: var(--mp-space-4); }

  .mp-people .admin_avatar { width: 44px; height: 44px; }

  .mp-people .confirmation-dialog {
    left: var(--mp-space-3);
    right: var(--mp-space-3);
    bottom: var(--mp-space-3);
    max-width: none;
  }

  .mp-people .calendar-day { width: 28px; height: 28px; }

  .mp-people .attendance-photo,
  .mp-people .no-photo { height: 100px; }

  .mp-people .toast-container {
    left: var(--mp-space-3);
    right: var(--mp-space-3);
    bottom: var(--mp-space-3);
  }

  .mp-people .custom-toast { max-width: none; min-width: 0; }

  .mp-people .day-card-body,
  .mp-people .location-coordinates {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--mp-space-1);
  }
}

@media (max-width: 575.98px) {
  .mp-people .timeline-item { padding-left: var(--mp-space-5); }
  .mp-people .time-badge { left: -31px; width: 18px; height: 18px; font-size: 0.7rem; }
  .mp-people .time-content { padding: var(--mp-space-2) var(--mp-space-3); margin-left: var(--mp-space-1); }
  .mp-people .time-content p { font-size: var(--mp-text-base); }

  .mp-people .admin_action-buttons .btn,
  .mp-people .admin_form-actions .btn { flex: 1 1 100%; }
}

/* ============================================================================
   18. Auth  (/register, /forgot-password)
   ------------------------------------------------------------------------
   Scoped .mp-auth rather than .mp-people because these two pages render
   OUTSIDE the app shell — no sidebar, no topbar, no signed-in user — and the
   segment's roster/attendance rules have nothing to say about them.

   These two files previously carried ~520 lines EACH of near-identical CSS
   for the same layout. That is one definition now.

   WHAT CHANGED AND WHY
   · The purple gradient, the animated radial pulse, the drifting SVG dot
     pattern and three floating circles are gone. They ran continuously — a
     `pulse` every 15s, a `patternMove` every 60s, three `float` loops — on
     the one screen where a person is trying to read an error message and type
     a password. The panel keeps its accent ground; nothing moves.
   · Every surface was hard-coded white with #1f2937 text and there was no
     dark block at all, so on a dark host the page was the only white
     rectangle in the app. It is built from tokens now and reads in both.
   · `.form-control`, `.form-group`, `.input-group`, `.alert` and `.text-white`
     were redefined at global scope by both files. They are scoped here.
   ========================================================================= */
.mp-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--mp-space-5);
  background: var(--mp-bg);
  font-family: var(--mp-font);
  color: var(--mp-ink);
}

.mp-auth .grid-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%;
  max-width: 960px;
  overflow: hidden;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-lg);
  box-shadow: var(--mp-shadow-lg);
}

/* The identity panel. A flat accent ground: the app's own colour, stated
   once, instead of a gradient that belonged to no theme. */
.mp-auth .illustration-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--mp-space-7) var(--mp-space-6);
  background: var(--mp-accent);
  color: var(--mp-accent-ink);
}

.mp-auth .illustration-content { text-align: center; }

.mp-auth .illustration-content h1 {
  margin: 0 0 var(--mp-space-3);
  font-size: var(--mp-text-2xl);
  font-weight: var(--mp-weight-bold);
  line-height: var(--mp-leading-tight);
  color: var(--mp-accent-ink);
  text-wrap: balance;
}

.mp-auth .subtitle,
.mp-auth .illustration-section .text-white {
  margin: 0;
  font-size: var(--mp-text-md);
  /* Not a flat opacity: a dimmed white over the accent is what the previous
     `opacity: .9` was reaching for, and this states it once for both themes. */
  color: var(--mp-on-brand-dim);
}

.mp-auth .form-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--mp-space-7) var(--mp-space-6);
  background: var(--mp-surface);
}

.mp-auth .form-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.mp-auth .branding {
  position: relative;
  margin-bottom: var(--mp-space-6);
  padding-left: 2.5rem;
  text-align: center;
}

.mp-auth .branding h2 {
  /* Clears the absolutely-positioned back button above it. Was an inline
     `margin-top: 20px` on the element in both files. */
  margin: var(--mp-space-5) 0 0;
  font-size: var(--mp-text-xl);
  font-weight: var(--mp-weight-bold);
  color: var(--mp-ink);
}

.mp-auth .back-button {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--mp-space-1);
  padding: var(--mp-space-1);
  border: none;
  border-radius: var(--mp-radius-sm);
  background: none;
  color: var(--mp-ink-2);
  font-weight: var(--mp-weight-medium);
  cursor: pointer;
}

.mp-auth .back-button:hover {
  background: var(--mp-surface-2);
  color: var(--mp-ink);
}

.mp-auth .auth-form { width: 100%; }

.mp-auth .form-group {
  position: relative;
  margin-bottom: var(--mp-space-5);
}

.mp-auth .form-group label {
  display: block;
  margin-bottom: var(--mp-space-1);
  font-size: var(--mp-text-sm);
  font-weight: var(--mp-weight-bold);
  color: var(--mp-ink-2);
}

.mp-auth .input-group { position: relative; display: block; }

.mp-auth .input-icon {
  position: absolute;
  left: var(--mp-space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--mp-muted);
  pointer-events: none;
  z-index: 6; /* above the field (Bootstrap lifts an invalid or focused field to 3–5 inside .input-group) */
}

.mp-auth .form-control {
  width: 100%;
  height: 3rem;
  padding: 0 2.75rem;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line-strong);
  border-radius: var(--mp-radius);
  color: var(--mp-ink);
  font-size: var(--mp-text-md);
}

/* Bootstrap's `.input-group > .form-control { width: 1% }` (meant for its flex row) loads
   after this file and won on order, shrinking every field to its minimum on the phone. */
.mp-auth .input-group > .form-control { width: 100%; flex: none; }

.mp-auth .form-control::placeholder { color: var(--mp-muted); }

.mp-auth .form-control:focus {
  border-color: var(--mp-accent);
  box-shadow: var(--mp-focus);
  outline: none;
}

.mp-auth .form-control.is-invalid { border-color: var(--mp-danger); }
.mp-auth .form-control.is-valid   { border-color: var(--mp-good); }

.mp-auth .btn-eye {
  position: absolute;
  right: var(--mp-space-3);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--mp-muted);
  cursor: pointer;
}

.mp-auth .btn-eye:hover,
.mp-auth .btn-eye:focus-visible {
  background: var(--mp-surface-2);
  color: var(--mp-ink);
  outline: none;
}

.mp-auth .submit-button {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mp-space-4);
  padding: 0 var(--mp-space-5);
  border: none;
  border-radius: var(--mp-radius);
  background: var(--mp-accent);
  color: var(--mp-accent-ink);
  font-size: var(--mp-text-md);
  font-weight: var(--mp-weight-bold);
  cursor: pointer;
}

.mp-auth .submit-button:hover:not(:disabled) { background: var(--mp-accent-hover); }
.mp-auth .submit-button:focus-visible { box-shadow: var(--mp-focus); outline: none; }

.mp-auth .submit-button:disabled {
  background: var(--mp-surface-sunk);
  color: var(--mp-muted);
  cursor: not-allowed;
}

.mp-auth .btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mp-space-2);
}

.mp-auth .spinner {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: mp-people-spin .8s linear infinite;
}

/* The step indicator on /register. */
.mp-auth .form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mp-space-5);
}

.mp-auth .step {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mp-surface-2);
  color: var(--mp-ink-2);
  font-weight: var(--mp-weight-bold);
}

.mp-auth .step.active {
  background: var(--mp-accent);
  color: var(--mp-accent-ink);
}

.mp-auth .step-line {
  width: 60px;
  height: 2px;
  margin: 0 var(--mp-space-2);
  background: var(--mp-line-strong);
}

/* Messages. Both files styled `.alert` globally with a 1px border and a
   shadow; scoped here, and both variants take a rail so the kind of message
   is readable without relying on the tint. */
.mp-auth .alert {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
  margin: var(--mp-space-5) 0;
  padding: var(--mp-space-3) var(--mp-space-4);
  border: 1px solid transparent;
  border-radius: var(--mp-radius);
}

.mp-auth .alert-success {
  background: var(--mp-good-soft);
  border-color: var(--mp-good);
  border-left-width: 3px;
  color: var(--mp-good);
}

.mp-auth .alert-warning {
  background: var(--mp-warn-soft);
  border-color: var(--mp-warn);
  border-left-width: 3px;
  color: var(--mp-warn);
}

.mp-auth .alert i { flex: 0 0 auto; }

.mp-auth .validation-message {
  display: block;
  margin-top: var(--mp-space-1);
  font-size: var(--mp-text-sm);
  color: var(--mp-danger);
}

/* The address verified in step 1, shown rather than edited. */
.mp-auth .verified-id {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
  margin-bottom: var(--mp-space-5);
  padding: var(--mp-space-3) var(--mp-space-4);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  background: var(--mp-surface-2);
}
.mp-auth .verified-icon { font-size: 1.25rem; color: var(--mp-good); flex: 0 0 auto; }
.mp-auth .verified-text { flex: 1 1 auto; min-width: 0; }
.mp-auth .verified-label { font-size: var(--mp-text-xs, .75rem); color: var(--mp-muted); }
.mp-auth .verified-value {
  font-weight: var(--mp-weight-bold);
  color: var(--mp-ink);
  overflow-wrap: anywhere;
}

.mp-auth .link-button {
  flex: 0 0 auto;
  padding: var(--mp-space-1) var(--mp-space-2);
  border: none;
  background: none;
  color: var(--mp-accent);
  font-weight: var(--mp-weight-bold);
  cursor: pointer;
}
.mp-auth .link-button:disabled { opacity: .5; cursor: default; }
.mp-auth .link-button.resend { display: block; margin: var(--mp-space-3) auto 0; }

.mp-auth .form-group label .optional { font-weight: normal; color: var(--mp-muted); }

.mp-auth .step.done { background: var(--mp-good); color: #fff; }
.mp-auth .step-line.done { background: var(--mp-good); }

.mp-auth .auth-overlay {
  position: absolute;
  inset: 0;
  background: var(--mp-surface);
  opacity: 0.85;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--mp-space-3);
  z-index: 10;
  border-radius: var(--mp-radius);
  animation: mp-auth-fade-in .2s ease-in-out;
}

.mp-auth .auth-overlay .spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
  color: var(--mp-accent);
}

.mp-auth .auth-overlay-text {
  font-size: var(--mp-text-md);
  font-weight: var(--mp-weight-medium);
  color: var(--mp-ink);
  text-align: center;
  padding: 0 var(--mp-space-3);
}

@keyframes mp-auth-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-auth .spinner { animation-duration: 2s; }
  .mp-auth .auth-overlay { animation: none; }
}

/* On a phone the identity panel is a band, not a column, and the form takes
   the rest. The old rule dropped a 2.5rem radius and a negative margin to
   overlap the two; the panel is short enough that the seam is just a seam. */
@media (max-width: 767.98px) {
  .mp-auth { padding: 0; align-items: stretch; }

  .mp-auth .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-width: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  /* On a phone the form already says what this is ("Create Account" / "Reset Password");
     the identity band only pushed the first field down. */
  .mp-auth .illustration-section { display: none; }

  .mp-auth .illustration-content h1 { font-size: var(--mp-text-xl); }

  /* Top-aligned, not centred. The panel above is a fixed band and the form
     cell takes the rest of the column, so centring inside it drops the first
     field into the middle of the screen with a screenful of empty above it. */
  .mp-auth .form-section {
    justify-content: flex-start;
    padding: var(--mp-space-6) var(--mp-space-4);
  }
  .mp-auth .form-wrapper { max-width: none; }
  .mp-auth .form-group { margin-bottom: var(--mp-space-4); }
  .mp-auth .branding { margin-bottom: var(--mp-space-5); }
}

@media (max-width: 379.98px) {
  .mp-auth .illustration-content h1 { font-size: var(--mp-text-lg); }
  .mp-auth .form-section { padding: var(--mp-space-5) var(--mp-space-3); }
  .mp-auth .branding h2 { font-size: var(--mp-text-lg); }
}

/* ───────────────────────────────────────────────────────────────────────────
   20. Sample data creator (DummyProductandcategroycreate, mounted inside
       /Admin). Found while verifying S9 — this one was missed on the first
       S8 pass because it carries no @page.

       Its <style> block was the worst leak in the app: bare `form`, `img`,
       `label`, `select`, `input[type=text]` and `h1, h2, h3` rules, plus
       redefinitions of `.mb-2`, `.mb-3`, `.mx-2` and `.d-flex` carrying
       `!important` — so while the tab was open, every margin utility in the
       document took this component's numbers instead of Bootstrap's. The
       utility overrides are simply gone; the rest is scoped below.
   ─────────────────────────────────────────────────────────────────────────── */
.mp-people.dummy-create form {
    background: var(--mp-surface);
    color: var(--mp-ink);
    border: 1px solid var(--mp-line);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow-sm);
    padding: var(--mp-pad-card);
    margin: 0 auto var(--mp-space-6);
    max-width: 600px;
}

.mp-people.dummy-create h1,
.mp-people.dummy-create h2,
.mp-people.dummy-create h3 {
    font-weight: var(--mp-weight-bold);
    color: var(--mp-ink);
    margin-bottom: var(--mp-space-4);
}

.mp-people.dummy-create .form-group { margin-bottom: var(--mp-space-4); }

.mp-people.dummy-create label {
    font-weight: var(--mp-weight-medium);
    color: var(--mp-ink-2);
    margin-bottom: var(--mp-space-2);
    display: block;
}

.mp-people.dummy-create input[type="text"],
.mp-people.dummy-create input[type="number"],
.mp-people.dummy-create select {
    border-radius: var(--mp-radius-sm);
    border: 1px solid var(--mp-line-strong);
    background: var(--mp-surface);
    color: var(--mp-ink);
    min-height: var(--mp-control-h);
    padding: 0 var(--mp-control-pad);
    width: 100%;
    font-size: var(--mp-text-ui);
    transition: border-color .2s, box-shadow .2s;
}

.mp-people.dummy-create input[type="text"]:focus,
.mp-people.dummy-create input[type="number"]:focus,
.mp-people.dummy-create select:focus {
    border-color: var(--mp-accent);
    box-shadow: 0 0 0 3px var(--mp-accent-soft);
    outline: none;
}

.mp-people.dummy-create .btn-group {
    display: flex;
    justify-content: center;
    margin-bottom: var(--mp-space-6);
    gap: var(--mp-space-2);
}

.mp-people.dummy-create .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--mp-space-6);
    background: var(--mp-surface);
    color: var(--mp-ink);
    border: 1px solid var(--mp-line);
    border-radius: var(--mp-radius);
    overflow: hidden;
}

.mp-people.dummy-create .table th,
.mp-people.dummy-create .table td {
    padding: var(--mp-space-3) var(--mp-space-4);
    text-align: left;
    border-bottom: 1px solid var(--mp-line);
}

.mp-people.dummy-create .table th {
    background: var(--mp-surface-2);
    font-weight: var(--mp-weight-bold);
    color: var(--mp-ink);
}

.mp-people.dummy-create .table tr:last-child td { border-bottom: none; }

/* The thumbnails this page lists. Was a bare `img` rule, which capped every
   image in the app — logos included — at 100px. */
.mp-people.dummy-create .table img,
.mp-people.dummy-create form img {
    border-radius: var(--mp-radius-sm);
    border: 1px solid var(--mp-line);
    margin: var(--mp-space-2) 0;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
}

@media (max-width: 699.98px) {
    .mp-people.dummy-create form { padding: var(--mp-space-4); }
    .mp-people.dummy-create .table th,
    .mp-people.dummy-create .table td { padding: var(--mp-space-2); font-size: var(--mp-text-sm); }
    .mp-people.dummy-create .btn-group { flex-direction: column; gap: var(--mp-space-1); }
}
