/* BiletSatış — mobile-first styles (primary target: iPhone Safari). */

:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --text: #1b1f2a;
  --muted: #667085;
  --border: #dde1e8;
  --primary: #2459d6;
  --primary-text: #ffffff;
  --brand: #1f2a44;

  /* Seat colors */
  --seat-available: #e8f5ec;
  --seat-available-border: #3f9e5d;
  --seat-selected: #2459d6;
  --seat-reserved: #f6b73c;
  --seat-sold: #9aa1ad;

  --success: #1f8a4c;
  --danger: #c93a3a;
  --warning: #f6b73c;

  --radius: 12px;
  --tap: 48px;          /* minimum comfortable touch target */
  --seat: 38px;         /* seat size; changed by zoom control */
  --row-label: 26px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141b;
    --surface: #1b2029;
    --text: #e8ebf1;
    --muted: #9aa3b2;
    --border: #2d3442;
    --primary: #4d7cf0;
    --seat-available: #1d3326;
    --seat-available-border: #4fbf74;
    --seat-selected: #4d7cf0;
    --seat-sold: #4a505c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--primary); text-decoration: none; }
h1 { font-size: 1.4rem; margin: 0; }
.muted { color: var(--muted); font-size: 0.92rem; }
.empty { color: var(--muted); text-align: center; padding: 2rem 1rem; }

/* ---------- Shell ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 56px;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: var(--brand);
  color: #fff;
}
.topbar .brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
.topbar-user { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; min-width: 0; }
.topbar-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.topbar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* Section navigation. On narrow phones it scrolls sideways inside itself only. */
.mainnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mainnav-inner {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav a {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 0.6rem;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.mainnav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.view {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
body.has-action-bar .view { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  min-height: var(--tap);
}
.page-head h1 { min-width: 0; overflow-wrap: anywhere; }
.page-title { margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.section-title { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }
.wrap { min-width: 0; overflow-wrap: anywhere; }
.list-footer { text-align: center; margin: 1.25rem 0 0; }
.back { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-warning { background: var(--warning); color: #1b1f2a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-text { color: var(--danger); }
.btn-small { min-height: 40px; padding: 0 0.8rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Cards & forms ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.form { display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; flex: 1; }
.form-row { display: flex; gap: 0.75rem; align-items: flex-end; }
.form-row > * { min-width: 0; }
.form-error { color: var(--danger); margin: 0; }

input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--tap);
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  font-weight: 400;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
textarea { min-height: 88px; padding: 0.65rem 0.85rem; resize: vertical; line-height: 1.4; }
/* iOS Safari gives date/time inputs an intrinsic width that can overflow narrow rows. */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; }
input::-webkit-date-and-time-value { text-align: left; }
select { text-overflow: ellipsis; }

.notice {
  background: rgba(246, 183, 60, 0.15);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

/* ---------- Login ---------- */

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.login-box { width: 100%; max-width: 380px; }
.login-box .brand { text-align: center; margin-bottom: 1.25rem; }

/* ---------- Event list ---------- */

.list { display: flex; flex-direction: column; gap: 0.75rem; }
.event-card { display: flex; flex-direction: column; gap: 0.5rem; color: var(--text); }
.event-card:active { transform: scale(0.99); }
.event-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.event-name { font-size: 1.1rem; min-width: 0; overflow-wrap: anywhere; }

.badge {
  flex-shrink: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--border);
  color: var(--text);
}
.status-on_sale { background: #d6f0df; color: #14653a; }
.status-closed { background: #e4e6eb; color: #4a505c; }
.status-cancelled { background: #f8d9d9; color: #9b2525; }
.status-archived { background: #e8e1f5; color: #4b3b78; }

.occupancy {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--seat-available);
}
.occ-sold { background: var(--seat-sold); }
.occ-reserved { background: var(--seat-reserved); }

.counts { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.9rem; color: var(--muted); }
.counts span, .legend span { display: inline-flex; align-items: center; gap: 0.35rem; }

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.dot-available { background: var(--seat-available); border: 2px solid var(--seat-available-border); }
.dot-selected { background: var(--seat-selected); }
.dot-reserved { background: var(--seat-reserved); }
.dot-sold { background: var(--seat-sold); }

/* ---------- Seat map ---------- */

.event-title { margin-bottom: 0.25rem; overflow-wrap: anywhere; }
.event-meta { margin-bottom: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }

.seatmap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: 0.85rem; }
.zoom { display: flex; gap: 0.35rem; flex-shrink: 0; }
.zoom .btn { width: 44px; min-height: 44px; padding: 0; font-size: 1.3rem; }

.seatmap-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 12px 16px 0;
  margin-bottom: 0.75rem;
}

.stage {
  margin: 0 auto 16px;
  width: 60%;
  padding: 0.35rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  border-bottom: 3px solid var(--border);
  border-radius: 0 0 50% 50% / 0 0 12px 12px;
}

.seatmap-inner { width: max-content; margin: 0 auto; }

.seatmap {
  display: grid;
  gap: 5px;
}

.row-label {
  grid-column: 1;
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}
.row-label-end { position: static; }

.seat {
  width: var(--seat);
  height: var(--seat);
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  font: inherit;
  font-size: calc(var(--seat) * 0.36);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.08s;
}
.seat:active { transform: scale(0.92); }
.seat-available { background: var(--seat-available); border-color: var(--seat-available-border); color: var(--text); }
.seat-reserved { background: var(--seat-reserved); color: #1b1f2a; }
.seat-sold { background: var(--seat-sold); color: rgba(255, 255, 255, 0.8); cursor: not-allowed; }
.seat-selected {
  background: var(--seat-selected);
  border-color: var(--seat-selected);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(36, 89, 214, 0.35);
}
.seat-reserved.seat-selected { border-color: var(--seat-reserved); }

/* ---------- Bottom action bar ---------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
.selection-labels { color: var(--muted); font-size: 0.9rem; max-height: 3em; overflow-y: auto; }
.action-buttons { display: flex; gap: 0.5rem; }
.action-buttons .btn { flex: 1; padding: 0 0.5rem; }
.action-buttons .btn-sell { flex: 1.6; font-size: 1.05rem; }

@media (min-width: 720px) {
  .action-bar { margin: 0 auto; max-width: 960px; border-radius: var(--radius) var(--radius) 0 0; flex-direction: row; align-items: center; }
  .selection-text { flex: 1; }
  .action-buttons .btn { flex: 0 0 auto; padding: 0 1.2rem; }
}

/* ---------- Sheet (dialog) ---------- */

body.sheet-open { overflow: hidden; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 14, 24, 0.5);
}
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.sheet-head h2 { margin: 0; font-size: 1.15rem; min-width: 0; overflow-wrap: anywhere; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }

@media (min-width: 720px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 16px; max-height: 85vh; }
}

/* ---------- Sell form ---------- */

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.chip {
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  touch-action: manipulation;
}
.sell-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.sell-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 7.5rem;
  align-items: center;
  gap: 0.5rem;
}
.sell-seat { font-weight: 700; }
.sell-row select { padding: 0 0.5rem; font-size: 16px; }
.form .sell-price { flex-direction: row; align-items: center; gap: 0.35rem; font-weight: 400; }
.sell-price input { text-align: right; }
input.invalid { border-color: var(--danger); outline-color: var(--danger); }
.sell-footer {
  position: sticky;
  bottom: -16px;
  margin: 0 -16px -16px;
  padding: 12px 16px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sell-total-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.sell-total { font-size: 1.35rem; }
.sell-buttons { display: flex; gap: 0.5rem; }
.sell-buttons .btn { flex: 1; }
.sell-buttons .btn-primary { flex: 2; }

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  margin: 0 0 1rem;
}
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: calc(64px + env(safe-area-inset-top));
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ---------- Confirm dialog ---------- */

.confirm-content p { margin: 0 0 0.75rem; }
.confirm-name { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.sheet-buttons { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.sheet-buttons .btn { flex: 1; min-width: 0; padding: 0 0.6rem; }
.danger-zone { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.danger-zone p { margin: 0; }

/* ---------- Shared list/report building blocks ---------- */

.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.filters label { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; font-weight: 600; font-size: 0.9rem; }
@media (min-width: 560px) {
  .filters { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.amount { flex-shrink: 0; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.note { margin: 0; white-space: pre-wrap; font-size: 0.95rem; }

.summary-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin: 0 0 1rem;
}
.summary-line > span { min-width: 0; overflow-wrap: anywhere; }

.sale-card, .expense-card, .price-card, .event-finance { display: flex; flex-direction: column; gap: 0.5rem; color: var(--text); }
.price-card.inactive { opacity: 0.75; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 0.75rem; font-size: 0.95rem; }

.seat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.seat-chips li {
  max-width: 100%;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.seat-chips li.refunded { text-decoration: line-through; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding: 14px; }
.stat-wide { grid-column: 1 / -1; }
.stat-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.stat-value { font-size: clamp(1.1rem, 5.2vw, 1.5rem); line-height: 1.2; overflow-wrap: anywhere; }
.stat-wide .stat-value { font-size: clamp(1.4rem, 7vw, 1.9rem); }
.stat-sub { color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.positive .stat-value, .metric.positive strong { color: var(--success); }
.negative .stat-value, .metric.negative strong { color: var(--danger); }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-wide { grid-column: auto; }
}

.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.75rem; }
.metric { display: flex; flex-direction: column; min-width: 0; }
.metric span { font-size: 0.8rem; }
.metric strong { overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rank-list { display: flex; flex-direction: column; padding-top: 4px; padding-bottom: 4px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding: 0.4rem 0;
  color: var(--text);
}
.rank-row + .rank-row { border-top: 1px solid var(--border); }
.rank-name { flex: 1; font-weight: 600; }
.rank-sub { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.rank-count { flex-shrink: 0; white-space: nowrap; }

.inline-form { display: flex; gap: 0.5rem; align-items: stretch; margin-top: 0.75rem; }
.inline-form > input, .inline-form > label { flex: 1; min-width: 0; }
.inline-form .btn { flex-shrink: 0; }
.price-card .inline-form { margin-top: 0; }
.price-input { display: flex; align-items: center; gap: 0.4rem; }
.price-input input { text-align: right; }

/* ---------- Roles & user management ---------- */

.user-label { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 0; }
.topbar-user .user-label > * { max-width: 100%; }
.user-role { opacity: 0.75; font-size: 0.75rem; }
.sell-price input[readonly] { background: var(--bg); color: var(--muted); }
.user-card { display: flex; flex-direction: column; gap: 0.5rem; }
.user-card.inactive { opacity: 0.75; }
.user-card .card-bottom .btn { flex: 1 1 auto; }
.role-admin { background: #dbe5fb; color: #1d3f94; }
.role-finance { background: #fbe8cf; color: #7a4a08; }
.role-seller { background: #d6f0df; color: #14653a; }
.sheet-head .btn { min-width: 44px; flex-shrink: 0; }

/* ---------- Refunds & deleted events ---------- */

.seat-refunded { border-style: dashed; }
.seat-available.seat-refunded { border-color: var(--danger); }
.dot-refunded { background: var(--seat-available); border: 2px dashed var(--danger); }
.status-deleted { background: #f8d9d9; color: #9b2525; }

.tabs { display: flex; gap: 0.5rem; margin: 0 0 1rem; }
.tabs a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.tabs a.active { border-color: var(--primary); color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); }

.summary-sub { flex-basis: 100%; font-size: 0.85rem; }
.card-actions { display: flex; justify-content: flex-end; }

.refund-form .info-list { margin: 0; }
.refund-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; min-height: 40px; }
.refund-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.form .refund-row {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.refund-row input[type="checkbox"] { width: 24px; height: 24px; min-height: 0; flex-shrink: 0; padding: 0; }
.refund-row.refunded {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: var(--tap);
  padding: 0.4rem 0.75rem;
  border: 1px dashed var(--border);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.refund-row.refunded > span:first-child { text-decoration: line-through; color: var(--muted); font-weight: 600; }

.archived-entry { display: flex; flex-direction: column; gap: 0.4rem; }
.archived-entry > .btn { align-self: flex-end; }
.archived-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
.deleted-section { margin-top: 1.5rem; }
.deleted-card { display: flex; flex-direction: column; gap: 0.4rem; border-style: dashed; }
.deleted-card > .btn { align-self: flex-start; }
.deleted-meta { font-size: 0.9rem; font-weight: 600; color: var(--danger); overflow-wrap: anywhere; }

/* Sell sheet: who recorded the sale (the logged-in account). */
.sell-recorder { margin: 0; font-size: 0.85rem; }

/* Salespeople ("Satıcılar") on the users page. */
.salespeople-section { margin-top: 1.5rem; }
.salesperson-card { display: flex; flex-direction: column; gap: 0.4rem; }
.salesperson-card.inactive { opacity: 0.75; }
