@charset "UTF-8";
/* ── Design tokens (scoped to this widget) ──────────────── */
.drkriza-profil-app {
  --green: #5EA05A;
  --green-light: #7DBF78;
  --green-dark: #3E7A3B;
  --green-pale: #EEF5EB;
  --green-faint: #F5FAF4;
  --coral: #F07843;
  --coral-light: #FFF0EB;
  --text: #1F2E20;
  --text-mid: #4A5E4B;
  --text-light: #7A937B;
  --border: #C5DAC2;
  --border-focus: #5EA05A;
  --card: #FFFFFF;
  --bg: #F2F7F0;
  --red: #D94040;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(60,100,60,.10);
  --shadow-md: 0 4px 24px rgba(60,100,60,.14);
  --transition: .18s ease;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

.drkriza-profil-app *, .drkriza-profil-app *::before, .drkriza-profil-app *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Hero ──────────────────────────────────────────────── */
.drkriza-profil-app .page-hero {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 50%);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
}

.drkriza-profil-app .page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  color: var(--green-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.drkriza-profil-app .page-hero-badge svg {
  width: 12px;
  height: 12px;
}

.drkriza-profil-app .page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}

.drkriza-profil-app .page-hero p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Layout — wider than login (lists, not a single card) ─ */
.drkriza-profil-app .page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── Tabs ──────────────────────────────────────────────── */
/* Scrollable strip rather than wrapping: three tabs fit on a phone, but a longer
   German label must not push the row into two lines and shift the panel down. */
.drkriza-profil-app .pr-tablist {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.drkriza-profil-app .pr-tablist::-webkit-scrollbar {
  display: none;
}

.drkriza-profil-app .pr-tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: #fff;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.drkriza-profil-app .pr-tab:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.drkriza-profil-app .pr-tab.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* No focus ring on the tabs — the solid-green .is-active state is the selection
   indicator; a click used to leave a thick outline behind (user request). */
.drkriza-profil-app .pr-tab:focus, .drkriza-profil-app .pr-tab:focus-visible {
  outline: none;
}

/* ── Card ──────────────────────────────────────────────── */
.drkriza-profil-app .card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.drkriza-profil-app .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--green-faint);
}

.drkriza-profil-app .card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-pale);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.drkriza-profil-app .card-header-icon svg {
  width: 20px;
  height: 20px;
}

/* Takes the free space so a trailing badge sits hard right. */
.drkriza-profil-app .card-header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.drkriza-profil-app .card-header-text h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.drkriza-profil-app .card-header-text p {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-top: 1px;
  word-break: break-word;
}

.drkriza-profil-app .card-body {
  padding: 20px 24px;
}

/* ── Field list (dl) ───────────────────────────────────── */
/* Two columns on desktop, stacked on a phone. A dl (not a table) because this is
   label→value data, and it reflows without horizontal scrolling. */
.drkriza-profil-app .pr-fields {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: 8px 16px;
}

.drkriza-profil-app .pr-fields dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
  padding-top: 2px;
}

.drkriza-profil-app .pr-fields dd {
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-word;
}

.drkriza-profil-app .pr-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Group heading (one per child) ─────────────────────── */
.drkriza-profil-app .pr-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.drkriza-profil-app .pr-section-title:first-child {
  margin-top: 0;
}

/* ── History row ───────────────────────────────────────── */
/* Every booking card is the SAME height (v1.1.131), and it holds STRUCTURALLY rather than
   by pixel arithmetic: every row carries the same two elements in .pr-row-side — the
   badge, and a cancel button that is greyed out where cancelling isn't possible. The
   min-height below is only a floor for rows with less text (and for the certificate tab,
   which has no button at all).
   position:relative + the right padding reserve the strip the chevron is centred in. */
.drkriza-profil-app .pr-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  min-height: 76px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 44px 14px 18px;
  margin-bottom: 10px;
}

.drkriza-profil-app .pr-row-main {
  min-width: 0;
}

.drkriza-profil-app .pr-row-when {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.drkriza-profil-app .pr-row-meta {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 2px;
}

/* Clamped to one line: a long reason would otherwise stretch its card past the others,
   and the full text is one click away in the detail popup. */
.drkriza-profil-app .pr-row-comment {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Badge above the button, right-aligned, so a row keeps one visual "action corner".
   Safe to stack again now that EVERY booking row has both (v1.1.131) — it was the
   button's presence on some rows only, not the stacking, that made heights differ. */
.drkriza-profil-app .pr-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

/* Booking rows carry the status badge in the TOP-LEFT corner (v1.1.149, user request):
   the row lays out as a COLUMN — badge (flush left) on top, the date/category below it,
   the cancel button in the bottom-right. Same proven pattern the mobile @media block
   below uses for every row, here scoped to bookings on ALL widths. Certificate rows keep
   the plain horizontal layout (badge top-right). The chevron stays absolutely centred on
   the right edge either way. */
.drkriza-profil-app .pr-row--booking {
  flex-direction: column;
  align-items: stretch;
}

.drkriza-profil-app .pr-row--booking .pr-row-side {
  display: contents;
}

.drkriza-profil-app .pr-row--booking .pr-badge {
  order: -1;
  align-self: flex-start;
}

.drkriza-profil-app .pr-row--booking .pr-row-main {
  order: 0;
}

.drkriza-profil-app .pr-row--booking .pr-cancel {
  order: 1;
  align-self: flex-end;
  flex: 0 0 auto;
}

/* ── Badges ────────────────────────────────────────────── */
.drkriza-profil-app .pr-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}

.drkriza-profil-app .pr-badge.is-upcoming,
.drkriza-profil-app .pr-badge.is-yes {
  background: var(--green-pale);
  border-color: var(--border);
  color: var(--green-dark);
}

.drkriza-profil-app .pr-badge.is-past {
  background: #F0F2F0;
  border-color: #DCE3DC;
  color: var(--text-light);
}

/* Coral, not red: a cancelled appointment is a normal outcome, not an error. */
.drkriza-profil-app .pr-badge.is-cancelled {
  background: var(--coral-light);
  border-color: #F6C9B4;
  color: #B4501F;
}

.drkriza-profil-app .pr-badge.is-pending {
  background: #FFF6E5;
  border-color: #F0DCA8;
  color: #8A6100;
}

.drkriza-profil-app .pr-badge.is-no {
  background: #F0F2F0;
  border-color: #DCE3DC;
  color: var(--text-light);
}

/* ── Buttons (same shapes as the login page) ───────────── */
.drkriza-profil-app .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(62, 122, 59, 0.3);
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.drkriza-profil-app .btn-submit:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 24px rgba(62, 122, 59, 0.4);
}

.drkriza-profil-app .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  background: #fff;
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.drkriza-profil-app .btn-secondary:hover {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
}

/* Cancelling is destructive, so the button reads as a warning on hover — but it
   stays SECONDARY: the page's primary action is never "cancel". */
.drkriza-profil-app .pr-cancel:hover {
  border-color: var(--coral);
  background: var(--coral-light);
  color: #B4501F;
}

/* Past / already-cancelled booking: the button stays for layout and to show that
   cancelling is what would go here, but it is visibly out of action and inert.
   pointer-events:none is deliberate — the click then reaches the card underneath and
   opens the detail popup, instead of landing on a dead control. */
.drkriza-profil-app .pr-cancel.is-disabled {
  border-color: #DCE3DC;
  background: #F6F8F6;
  color: #AFBAAF;
  cursor: default;
  pointer-events: none;
}

/* ── Empty states ──────────────────────────────────────── */
/* Two levels (see note 14): a whole-tab block when there is nothing at all, and a
   quiet one-liner under a child who simply has no rows. */
.drkriza-profil-app .pr-empty {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 4px 0 12px;
}

.drkriza-profil-app .pr-empty-block {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.drkriza-profil-app .pr-empty-block p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.drkriza-profil-app .pr-empty-block p:last-child {
  margin-bottom: 0;
}

/* ── Clickable row + details affordance (v1.1.128) ─────── */
/* The whole row opens the detail popup for the mouse; the chevron button is the
   keyboard/AT path (see templates/profile.php for why the row itself is not a button). */
.drkriza-profil-app .pr-row.is-clickable {
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.drkriza-profil-app .pr-row.is-clickable:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

/* A bare chevron, not a button (v1.1.130): no circle, no border, no fill — just the
   arrow, vertically centred on the card's right edge. Still a real <button> element, so
   the keyboard/screen-reader path the popup needs is untouched; only the paint changed.
   Absolutely positioned so it stays centred even where .pr-row stacks (narrow screens). */
.drkriza-profil-app .pr-details-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.drkriza-profil-app .pr-details-btn svg {
  width: 16px;
  height: 16px;
}

/* The whole card is the hit area, so the chevron reacts to hovering the ROW, not just
   itself — otherwise it looks inert while the card is clearly highlighted. */
.drkriza-profil-app .pr-row.is-clickable:hover .pr-details-btn {
  color: var(--green);
  transform: translateY(-50%) translateX(2px);
}

.drkriza-profil-app .pr-details-btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 3px;
  color: var(--green-dark);
}

/* ── Detail popup ──────────────────────────────────────── */
/* Hidden via the `hidden` attribute in the markup, so it is invisible before this
   stylesheet loads and stays invisible with JS off. */
.drkriza-profil-app .pr-modal-overlay[hidden] {
  display: none;
}

.drkriza-profil-app .pr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 46, 32, 0.55);
  overflow-y: auto;
}

.drkriza-profil-app .pr-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 24px 24px;
}

.drkriza-profil-app .pr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.drkriza-profil-app .pr-modal-close svg {
  width: 16px;
  height: 16px;
}

.drkriza-profil-app .pr-modal-close:hover {
  background: var(--green-pale);
  color: var(--text);
}

.drkriza-profil-app .pr-modal-close:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.drkriza-profil-app .pr-detail-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 32px 16px 0;
  line-height: 1.35;
}

/* One label/value line. Same shape as .pr-fields, but a flex pair rather than a grid:
   the popup is narrow and the values (comment, reference) vary wildly in length. */
.drkriza-profil-app .pr-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-size: 0.92rem;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.drkriza-profil-app .pr-detail-row:last-of-type {
  border-bottom: 0;
}

.drkriza-profil-app .pr-detail-label {
  color: var(--text-light);
  flex-shrink: 0;
}

.drkriza-profil-app .pr-detail-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.drkriza-profil-app .pr-detail-actions {
  margin-top: 18px;
}

.drkriza-profil-app .pr-detail-actions .btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
}

/* Scroll lock while the dialog is open, so the backdrop doesn't move under it. */
body.pr-modal-open {
  overflow: hidden;
}

/* ── Preferred-language control (the one editable field) ─ */
/* A label, a select and the save button on one row, wrapping on a phone. The only
   form control on this read-only page, so the select is styled here rather than
   reused from a form stylesheet the profile page never loads. */
.drkriza-profil-app .pr-lang-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.drkriza-profil-app .pr-lang-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}

.drkriza-profil-app .pr-lang-select {
  flex: 0 1 200px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.drkriza-profil-app .pr-lang-select:hover {
  border-color: var(--green);
}

.drkriza-profil-app .pr-lang-select:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(94, 160, 90, 0.25);
}

/* The save button is a touch smaller than a page-level submit — it is a settings
   action, not the page's headline call to action. */
.drkriza-profil-app .pr-lang-form .btn-submit {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.drkriza-profil-app .pr-lang-status {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.drkriza-profil-app .pr-lang-status.is-ok {
  color: var(--green-dark);
}

.drkriza-profil-app .pr-lang-status.is-error {
  color: #B4501F;
}

/* ── Version footer (mirrors the other pages) ──────────── */
.drkriza-profil-app .drkriza-version-footer {
  text-align: center;
  padding: 18px 0 28px;
  font-size: 12px;
  color: #5f6b66;
  letter-spacing: 0.03em;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Reclaim horizontal space on small screens: trim the hero/body/card side padding
     so the usable content area is wider on phones (matches the booking page). */
  .drkriza-profil-app .page-hero {
    padding: 36px 18px 30px;
  }
  .drkriza-profil-app .page-body {
    padding: 28px 16px 60px;
  }
  .drkriza-profil-app .card-header {
    padding: 16px 18px 14px;
  }
  .drkriza-profil-app .card-body {
    padding: 18px 16px;
  }
  .drkriza-profil-app .pr-fields {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .drkriza-profil-app .pr-fields dd {
    margin-bottom: 10px;
  }
  /* The row stacks, so the badge/cancel corner moves under the text. The chevron is
     absolutely positioned, so it stays centred on the right edge either way — and the
     row keeps its right padding so the stacked content never runs under it. */
  .drkriza-profil-app .pr-row {
    flex-direction: column;
    align-items: stretch;
  }
  /* Status hint to the card's TOP-left, cancel button to the BOTTOM-right, the booking
     text between them. `display:contents` dissolves .pr-row-side so its badge and button
     reorder as direct flex children of the (now column) .pr-row; each is sized to its own
     content (align-self, not stretched/shrunk), so a long German/English label — "Lezajlott"
     / "Termin stornieren" — never slides off its pill the way the squeezed side-by-side
     row did. Desktop keeps the corner badge-over-button layout (this is mobile-only). */
  .drkriza-profil-app .pr-row-side {
    display: contents;
  }
  .drkriza-profil-app .pr-row .pr-badge {
    order: -1;
    align-self: flex-start;
  }
  .drkriza-profil-app .pr-row-main {
    order: 0;
  }
  .drkriza-profil-app .pr-row .pr-cancel {
    order: 1;
    align-self: flex-end;
    flex: 0 0 auto;
  }
  /* Narrow screens: the label/value pair stacks so a long value keeps its own line. */
  .drkriza-profil-app .pr-detail-row {
    flex-direction: column;
    gap: 2px;
  }
  .drkriza-profil-app .pr-detail-value {
    text-align: left;
  }
  .drkriza-profil-app .pr-modal {
    padding: 24px 18px 20px;
  }
}
/* ── Saját adatok szerkesztése (v1.1.217) ─────────────────────────────── */
.drkriza-profil-app .pr-edit-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.drkriza-profil-app .pr-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.drkriza-profil-app .pr-edit-grid .pr-span-2 {
  grid-column: 1/-1;
}

.drkriza-profil-app .pr-edit-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.drkriza-profil-app .pr-edit-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  color: var(--text);
  background: #fff;
}

.drkriza-profil-app .pr-edit-input:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px var(--green-pale);
}

.drkriza-profil-app .pr-edit-error {
  margin-top: 12px;
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 520px) {
  .drkriza-profil-app .pr-edit-grid {
    grid-template-columns: 1fr;
  }
}
/* The `hidden` attribute must win over the class-based display rules above (e.g.
   .pr-fields{display:grid}, .btn-secondary/.btn-submit) so the view↔edit toggle and
   the Save/Cancel vs. Edit button swap actually hide what JS marks hidden. */
.drkriza-profil-app [hidden] {
  display: none !important;
}
