/*
 * «Personer» (support/people.html), the page's own look on top of tokens.css, admin-v2.css and page.css (round 47, panel
 * redesign R8; it was the page's inline style block). The search, the result rows, the person's facts and the account boxes
 * («BankID», «Profil», «Avstängt», «Stäng av kontot», «Testkonto»). Colours only through the panel's variables: a darker or
 * lighter shade is a mix of two of them (the light theme's darker red, amber and violet were hex of their own), so light and
 * dark both follow the theme button. Logical properties, so Arabic mirrors by itself. Bigger, calmer type (owner, note 86):
 * body text 15 px and up, labels and chips at the panel's 14 px floor and up. Every control 38 px high with a mouse and 44 px on
 * touch (docs/panel-redesign/PLAN.md §2.3; PLAN-V3 ADM.6, measured by tests/flows/admin/admin-personer-look.mjs).
 */
.pp-page [hidden] { display: none !important; }

/* ---- the line icons beside the words (the «Testkonto» mark was a glyph) ---- */
.pp-ico { width: 18px; height: 18px; flex: none; }
.pg-chip .pp-ico { width: 15px; height: 15px; }
.pg-btn .pp-ico { margin-inline-end: 2px; }

/* ---- the header and the search ---- */
.pp-page .pg-sub { font-size: 16px; line-height: 1.5; }
.pp-search { gap: 12px 14px; padding: 16px 18px; }
.pp-search .pg-btn { min-height: 46px; padding: 10px 24px; font-size: 15px; }
/* 16 px: a phone does not zoom the page when the field gets the focus */
#pageContent .pp-search input[type="search"] { min-height: 46px; font-size: 16px !important; border-radius: 12px; }
.pp-page .pg-note { font-size: 15px; }
.pp-page .pg-empty { font-size: 16px; line-height: 1.5; padding: 30px 18px; }
.pp-page .pg-card-title { font-size: 19px; }

/* ---- the result rows and the card's lists (orders, rides, tickets) ---- */
.pp-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; width: 100%; min-height: 60px; padding: 14px 22px; border: 0; border-block-end: 1px solid var(--pg-line); background: none; color: var(--pg-text); font: inherit; text-align: start; text-decoration: none; min-width: 0; transition: background-color 0.16s ease; }
.pp-row:last-child { border-block-end: 0; }
button.pp-row { cursor: pointer; }
button.pp-row:hover, a.pp-row:hover { background: var(--hover); }
button.pp-row:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: -2px; }
.pp-name { font-size: 17px; font-weight: 800; color: var(--pg-text); overflow-wrap: anywhere; }
a.pp-name { color: var(--pg-accent); text-decoration: none; }
a.pp-name:hover { text-decoration: underline; }
.pp-muted { font-size: 15px; color: var(--pg-muted); overflow-wrap: anywhere; }
.pp-id { font-weight: 700; color: var(--pg-muted); font-variant-numeric: tabular-nums; }
.pp-row-side { text-align: end; }
.pp-chips { margin-top: 8px; }

/* ---- the person's facts ---- */
.pg-facts.pp-facts { gap: 10px 18px; }
.pg-facts.pp-facts dt, .pg-facts.pp-facts dd { font-size: 15px; }
.pp-facts dd { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pp-facts a { font-weight: 600; }
/* a link on its own in a fact («Öppna i Förare & dokument») is a control: as high as a button, its line where it was */
.pp-facts dd > a { display: inline-flex; align-items: center; min-height: 38px; margin-block: -8px; }

/* ---- the account's boxes ---- */
.pp-box { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--pg-inner); border: 1px solid var(--pg-line); margin-block-start: 16px; }
.pp-box h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pg-muted); margin: 0 0 10px; }
html[dir="rtl"] .pp-box h3 { letter-spacing: 0; }
.pp-box p { font-size: 15px; color: var(--pg-muted); margin: 0 0 10px; line-height: 1.55; }
.pp-box textarea { width: 100%; min-height: 84px; resize: vertical; margin-block-end: 12px; line-height: 1.5; }
.pp-box .pg-note { margin: 10px 0 0; }
.pp-box .pg-btn { min-height: 42px; padding-inline: 20px; }
/* the small buttons («Visa numret», «Visa hela IP», a person's #) at the panel's 38 px, never the shared 34 */
.pp-page .pg-btn.sm { min-height: 38px; }
.pp-suspended { color: var(--pg-text) !important; }
.pp-suspended b { color: var(--red); color: color-mix(in srgb, var(--red) 82%, var(--pg-text)); }
/* «BankID»: the account's flags, open first, the cleared ones folded under them */
.pp-flags { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--pg-text); overflow-wrap: anywhere; }
.pp-required { color: var(--pg-text) !important; }
.pp-required b { color: var(--orange); color: color-mix(in srgb, var(--orange) 70%, var(--pg-text)); }
.pp-box details { margin: 0 0 12px; font-size: 15px; color: var(--pg-muted); }
.pp-box summary { cursor: pointer; font-weight: 700; margin-block-end: 6px; }

@media (max-width: 640px) {
  .pp-row { padding-inline: 16px; flex-direction: column; }
  .pp-row-side { text-align: start; }
  .pp-box .pg-btn { width: 100%; }
  .pp-search .pg-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-row { transition: none; }
}
/* a finger (an iPad, a phone): every control on the page 44 px high, the hub's tabs too */
@media (pointer: coarse) {
  .pp-page .pg-btn, .pp-page .pg-btn.sm, .pp-box .pg-btn, .pp-page .pg-hubtab { min-height: 44px; }
  .pp-facts dd > a { min-height: 44px; margin-block: -11px; }
  .pp-box summary { padding-block: 10px; }
}

/* ---- the person's photo, or the initials (owner-notes 188) ---- */
.pp-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pp-avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  background: var(--hover); color: var(--pg-muted); font-size: 22px; font-weight: 800; }

/* ---- the sign-ins and the points to friends ---- */
.pp-warn { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 0; }
.pp-warn .pg-note { margin: 0; }
.pp-ip { font-variant-numeric: tabular-nums; }
.pp-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pp-reverse { display: flex; flex-direction: column; gap: 8px; width: 100%; }
