/* Pusora Yönetim — Üyeler (Örnek 3 tablo konsolu). Önek: .yu-  ·  Tema değişkenleri: --bg --card --ink --mute --line --acc --acc2 --ok --no --warn */
.yu, .yu-mod, .yu-dr, .yu-menu, .yu-scrim { --yu-r: var(--r, 14px); --yu-sh: var(--shadow, 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.08));
  --yu-okbg: var(--okbg, color-mix(in srgb, var(--ok) 15%, var(--card))); --yu-nobg: var(--nobg, color-mix(in srgb, var(--no) 14%, var(--card))); --yu-warnbg: var(--warnbg, color-mix(in srgb, var(--warn) 16%, var(--card))); }
.yu [hidden], .yu-mod [hidden], .yu-dr [hidden] { display: none !important; }
.yu *, .yu-mod *, .yu-dr *, .yu-menu * { box-sizing: border-box; }
.yu { color: var(--ink); font: 500 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.yu button, .yu input, .yu select, .yu-mod button, .yu-mod input, .yu-mod select, .yu-dr button, .yu-dr input, .yu-dr select, .yu-menu button { font: inherit; color: inherit; }
.yu button, .yu-mod button, .yu-dr button, .yu-menu button { cursor: pointer; }
.yu :focus-visible, .yu-mod :focus-visible, .yu-dr :focus-visible, .yu-menu :focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
.yu-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yu-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.yu-sp { flex: 1; }
.yu-mute { color: var(--mute); }

/* başlık + düğmeler */
.yu-ph { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.yu-ph h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; font-weight: 800; }
.yu-ph p { margin: 4px 0 0; color: var(--mute); }
.yu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 14px; min-height: 38px; font-weight: 700; transition: border-color .15s, color .15s, background .15s, transform .15s; }
.yu-btn:hover:not(:disabled) { border-color: var(--acc); color: var(--acc); }
.yu-btn:disabled { opacity: .55; cursor: not-allowed; }
.yu-btn.yu-pri { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--acc) 32%, transparent); }
.yu-btn.yu-pri:hover:not(:disabled) { filter: brightness(1.08); color: #fff; }
.yu-btn.yu-dng { color: var(--no); border-color: color-mix(in srgb, var(--no) 40%, var(--line)); }
.yu-btn.yu-dng:hover:not(:disabled) { background: var(--yu-nobg); border-color: var(--no); color: var(--no); }
.yu-btn.yu-ik { width: 38px; padding: 0; }
.yu-btn.yu-sm { padding: 5px 9px; min-height: 32px; font-size: 13px; }

/* KPI */
.yu-kpi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1100px) { .yu-kpi { grid-template-columns: repeat(3, 1fr); } }
.yu-k { background: var(--card); border: 1px solid var(--line); border-radius: var(--yu-r); box-shadow: var(--yu-sh); padding: 14px 18px; }
.yu-kl { color: var(--mute); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.yu-kv { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; line-height: 1.2; }
.yu-ks { color: var(--mute); font-size: 12.5px; }
.yu-uyari { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: var(--yu-warnbg); color: var(--warn); font-weight: 600; }

/* kart + araçlar */
.yu-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--yu-r); box-shadow: var(--yu-sh); overflow: hidden; }
.yu-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.yu-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.yu-chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 13px; font-weight: 700; color: var(--mute); transition: all .15s; }
.yu-chip:hover { border-color: var(--acc); color: var(--acc); }
.yu-chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }
.yu-cn { font-size: 11.5px; background: color-mix(in srgb, currentColor 18%, transparent); border-radius: 99px; padding: 0 7px; }
.yu-search { position: relative; flex: 1 1 220px; max-width: 340px; min-width: 180px; display: block; }
.yu-search .yu-i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.yu-search input { width: 100%; padding: 9px 12px 9px 36px; min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.yu-search input:focus { border-color: var(--acc); }
.yu-msort { display: none; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 10px; min-height: 44px; }

/* tablo */
.yu-twrap { overflow-x: auto; }
.yu-tbl { width: 100%; border-collapse: collapse; min-width: 880px; }
.yu-tbl th, .yu-tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.yu-tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); font-weight: 800; background: color-mix(in srgb, var(--bg) 60%, var(--card)); white-space: nowrap; }
.yu-tbl th button { background: none; border: 0; padding: 2px 0; font-weight: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.yu-tbl th button:hover { color: var(--acc); }
.yu-tbl th[aria-sort="ascending"] button, .yu-tbl th[aria-sort="descending"] button { color: var(--acc); }
.yu-tbl th .yu-i { width: 13px; height: 13px; }
.yu-tbl tbody tr { cursor: pointer; transition: background .12s; }
.yu-tbl tbody tr:hover { background: color-mix(in srgb, var(--acc2) 55%, transparent); }
.yu-tbl tbody tr.sel { background: var(--acc2); }
.yu-tbl tbody tr.yu-mesgul { opacity: .6; pointer-events: none; }
.yu-tbl tbody tr:last-child td { border-bottom: 0; }
.yu-c-chk { width: 44px; padding-right: 0 !important; }
.yu-c-act { width: 56px; text-align: right !important; }
.yu input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--acc); cursor: pointer; }
.yu-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.yu-who > div { min-width: 0; }
.yu-av { width: 36px; height: 36px; border-radius: 50%; background: var(--acc2); color: var(--acc); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.yu-av.yu-big { width: 52px; height: 52px; font-size: 18px; }
.yu-ad { display: block; background: none; border: 0; padding: 0; font-weight: 800; text-align: left; line-height: 1.25; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yu-ad:hover { color: var(--acc); text-decoration: underline; }
.yu-mail { display: block; color: var(--mute); font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; }
.yu-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.yu-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.yu-pill.yu-ok { background: var(--yu-okbg); color: var(--ok); }
.yu-pill.yu-w { background: var(--yu-warnbg); color: var(--warn); }
.yu-pill.yu-no { background: var(--yu-nobg); color: var(--no); }
.yu-pill.yu-m { background: var(--bg); color: var(--mute); border: 1px solid var(--line); }
.yu-mb { width: 38px; height: 38px; }
.yu-durum { padding: 8px 16px 16px; }
.yu-sk { height: 52px; margin-top: 8px; border-radius: 10px; background: linear-gradient(90deg, var(--bg), color-mix(in srgb, var(--line) 60%, var(--bg)), var(--bg)); background-size: 200% 100%; animation: yu-sk 1.2s linear infinite; }
@keyframes yu-sk { to { background-position: -200% 0; } }
.yu-bos { padding: 36px 16px; text-align: center; color: var(--mute); }
.yu-bos b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.yu-bos p { margin: 0 auto 14px; max-width: 460px; }
.yu-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); }

/* toplu işlem çubuğu */
.yu-bulk { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 10px 12px 10px 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; box-shadow: 0 12px 36px rgba(0,0,0,.28); max-width: calc(100vw - 24px); animation: yu-in .2s ease; }
.yu-bulk .yu-btn { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--bg) 32%, transparent); }
.yu-bulk .yu-btn:hover:not(:disabled) { background: var(--acc); border-color: var(--acc); color: #fff; }
.yu-bulk .yu-btn.yu-pri { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: none; }
.yu-bn { font-weight: 800; margin-right: 4px; }
@keyframes yu-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translateX(-50%); } }

/* eylem menüsü (gövdeye eklenir, fixed) */
.yu-menu { position: fixed; z-index: 70; min-width: 220px; max-width: calc(100vw - 16px); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.22); padding: 6px; font: 600 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; max-height: calc(100vh - 16px); overflow: auto; }
.yu-menu button { display: flex; width: 100%; align-items: center; background: none; border: 0; padding: 9px 11px; min-height: 40px; border-radius: 8px; font-weight: 600; text-align: left; }
.yu-menu button:hover, .yu-menu button:focus-visible { background: var(--acc2); color: var(--acc); outline: 0; }
.yu-menu button.yu-d { color: var(--no); }
.yu-menu button.yu-d:hover, .yu-menu button.yu-d:focus-visible { background: var(--yu-nobg); color: var(--no); }
.yu-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

/* çekmece */
.yu-scrim { position: fixed; inset: 0; background: rgba(20,12,6,.45); z-index: 60; opacity: 0; transition: opacity .2s; }
.yu-scrim.on { opacity: 1; }
.yu-dr { position: fixed; top: 0; right: 0; height: 100%; width: min(480px, 100vw); background: var(--card); color: var(--ink); z-index: 61; transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0,0,0,.2); font: 500 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.yu-dr.on { transform: none; }
.yu-dh { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center; padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.yu-dhm { flex: 1; min-width: 0; }
.yu-dh h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.yu-dh h2:focus { outline: 0; }
.yu-db { padding: 8px 20px 24px; overflow: auto; flex: 1; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.yu-db h3 { margin: 20px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.yu-db dl { margin: 0; }
.yu-dl { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.yu-dl dt { flex: 0 0 120px; color: var(--mute); }
.yu-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.yu-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.yu-uform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }

/* pencere (modal) */
.yu-mod { position: fixed; inset: 0; z-index: 75; background: rgba(20,12,6,.5); display: grid; place-items: center; padding: 16px; overflow: auto; animation: yu-fade .15s ease; }
@keyframes yu-fade { from { opacity: 0; } to { opacity: 1; } }
.yu-modal { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; width: min(520px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.35); font: 500 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.yu-modal.yu-genis { width: min(680px, 100%); }
.yu-mh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.yu-mh h2 { margin: 0; font-size: 17px; flex: 1; overflow-wrap: anywhere; }
.yu-mb2 { padding: 16px 18px 18px; overflow: auto; }
.yu-kod { font: 800 34px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-align: center; padding: 18px 10px; margin: 12px 0; border-radius: 12px; background: var(--acc2); color: var(--acc); user-select: all; overflow-wrap: anywhere; }
.yu-warn { color: var(--warn); font-weight: 700; margin: 6px 0; }
.yu-err { color: var(--no); font-weight: 700; margin: 8px 0; }
.yu-msg { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font: 500 13px/1.5 inherit; max-height: 160px; overflow: auto; }
.yu-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.yu-row.yu-end { justify-content: flex-end; }
.yu-f { display: block; font-weight: 700; margin: 10px 0; }
.yu-f input, .yu-f select, .yu-uform select, .yu-uform input { display: block; width: 100%; margin-top: 4px; padding: 9px 12px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 500; }
.yu-uform .yu-f { margin: 0; flex: 1 1 140px; }
.yu-plan { max-height: 46vh; overflow: auto; }
.yu-chk { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.yu-chk input { width: 18px; height: 18px; accent-color: var(--acc); margin-top: 2px; }
.yu-kodlar { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.yu-kr { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.yu-kr:first-child { border-top: 0; }
.yu-kr > div { flex: 1; min-width: 0; }
.yu-kr code { font: 800 16px ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--acc); }
.yu-hatalar { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--yu-nobg); color: var(--no); }
.yu-hatalar ul { margin: 6px 0 0; padding-left: 18px; }

/* mobil: tablo satırları kart olur */
@media (max-width: 820px) {
  .yu-kpi { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .yu-kv { font-size: 24px; }
  .yu-ph h1 { font-size: 24px; }
  .yu-tools { padding: 12px; }
  .yu-search { max-width: none; flex-basis: 100%; }
  .yu-search input { min-height: 44px; }
  .yu-msort { display: block; flex: 1; }
  .yu-seg { flex-wrap: nowrap; overflow-x: auto; margin: 0 -2px; padding: 2px; scrollbar-width: none; width: 100%; }
  .yu-chip { white-space: nowrap; min-height: 44px; }
  .yu-btn { min-height: 44px; }
  .yu-btn.yu-ik { width: 44px; }
  .yu-btn.yu-sm { min-height: 44px; }
  .yu-twrap { overflow-x: visible; }
  .yu-tbl, .yu-tbl tbody { display: block; min-width: 0; width: 100%; }
  .yu-tbl thead { display: none; }
  .yu-tbl tbody tr { display: grid; grid-template-columns: 44px 1fr 44px; gap: 4px 6px; padding: 12px 12px 12px 4px; border-bottom: 1px solid var(--line); }
  .yu-tbl td { display: block; border: 0; padding: 0; white-space: normal; min-width: 0; }
  .yu-tbl td.yu-c-chk { grid-column: 1; grid-row: 1; width: auto; padding: 0 !important; display: grid; place-items: center; min-height: 44px; }
  .yu-tbl td.yu-c-chk input { width: 22px; height: 22px; }
  .yu-tbl td.yu-c-who { grid-column: 2; grid-row: 1; align-self: center; }
  .yu-tbl td.yu-c-act { grid-column: 3; grid-row: 1; width: auto; text-align: center !important; }
  .yu-mb { width: 44px; height: 44px; }
  .yu-tbl td.yu-c-tur, .yu-tbl td.yu-c-kad, .yu-tbl td.yu-c-dur, .yu-tbl td.yu-c-tar { grid-column: 2 / 4; font-size: 13px; }
  .yu-tbl td[data-l]::before { content: attr(data-l) ": "; color: var(--mute); font-weight: 700; font-size: 12px; }
  .yu-tbl td.yu-c-dur::before { content: none; }
  .yu-tbl td.yu-c-kad .yu-mail, .yu-tbl td.yu-c-tar .yu-mail { display: inline; margin-left: 6px; }
  .yu-ad { max-width: none; white-space: normal; padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
  .yu-dr { width: 100vw; border-left: 0; }
  .yu-dl { flex-direction: column; gap: 0; }
  .yu-dl dt { flex: none; }
  .yu-bulk { left: 8px; right: 8px; transform: none; max-width: none; animation: none; }
  .yu-modal { border-radius: 14px; }
  .yu-kod { font-size: 26px; letter-spacing: .1em; }
  .yu-kr { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .yu *, .yu-mod, .yu-dr, .yu-scrim, .yu-bulk, .yu-sk { transition: none !important; animation: none !important; }
}

/* sayfa gövdesi yatay taşmasın; tablo yalnız kendi kapsayıcısında kayar */
.yu { min-width: 0; max-width: 100%; }
.yu-card { min-width: 0; max-width: 100%; }
.yu-twrap { max-width: 100%; }

/* e-posta kapalı uyarısı */
.yu-uyari.yu-epk { background: var(--yu-warnbg); border-color: var(--warn); }

/* çekmece: Paket ve erişim */
.yu-pk dl { margin: 0 0 8px; }
.yu-pkc { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.yu-pkr { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.yu-pkr input { flex: 1 1 140px; min-width: 0; padding: 9px 12px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.yu-pkg { margin-top: 10px; font-size: 13px; }
.yu-pkg ul { margin: 6px 0 0; padding-left: 18px; }
.yu-pk .yu-err { color: var(--no); margin: 4px 0; }

/* Üyeler: toplu gün atama penceresi, "Daha fazla" gizleme */
.yu [hidden], .yu-card [hidden] { display: none !important; }
.yu-gozet ul { margin: 6px 0; padding-left: 18px; max-height: 180px; overflow: auto; }
.yu-gozet .yu-hata { color: var(--no, #b3261e); font-weight: 700; }
.yu-gdurum { margin: 6px 0; min-height: 1.3em; font-weight: 600; }
.yu-gdurum.yu-err { color: var(--no, #b3261e); }
.yu-kpi .yu-k:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 721px) { .yu-kpi .yu-k:last-child:nth-child(odd) { grid-column: auto; } }
.yu-dvt { width: 100%; border-collapse: collapse; }
.yu-dvt th, .yu-dvt td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
.yu-dvt th { color: var(--mute); font-weight: 700; }
.yu-dvrow { align-items: flex-end; }
