/* ============================================================
   EasyPDKS Panel — lavanta SaaS teması
   ============================================================ */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8f8fe;
  --line: #e3e8f0;
  --ink: #1d2130;
  --ink-soft: #5b6172;
  --muted: #9aa0b4;
  --violet: #3b5a8a;
  --violet-deep: #0f2f5f;
  --violet-soft: #e9eff8;
  --good: #16a34a;      --good-bg: #e7f6ee;
  --warn: #d97706;      --warn-bg: #fdf1e0;
  --bad:  #dc2626;      --bad-bg: #fdecec;
  --info: #2563eb;      --info-bg: #e8f0fe;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 30, 60, .07);
  --shadow-lift: 0 10px 30px rgba(15, 47, 95, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14.5px;
}
a { color: inherit; text-decoration: none; }
small { color: var(--muted); }

/* ---------- iskelet ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex: 0 0 232px; background: var(--surface);
  border-right: 1px solid var(--line); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;   /* menü + dil seçici sığmazsa kaydırılabilsin (kısa ekranlar) */
}
.main { flex: 1; padding: 26px 30px; min-width: 0; animation: pageIn .35s ease backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- marka + kullanıcı ---------- */
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand-chip {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--violet), #8fb0dc);
  color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(59, 90, 138, .4);
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.me {
  display: flex; gap: 10px; align-items: center; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.me b { display: block; font-size: 13.5px; }
.me small { font-size: 12px; }

/* ---------- menü ---------- */
.menu-label { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); padding: 10px 10px 4px; font-weight: 700; }
.menu { display: flex; flex-direction: column; gap: 3px; }
.menu-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 11px;
  color: var(--ink-soft); font-weight: 600; transition: background .18s, color .18s, transform .18s;
}
.menu-item:hover { background: var(--violet-soft); color: var(--violet-deep); transform: translateX(2px); }
.menu-item.active {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)); color: #fff;
  box-shadow: 0 6px 16px rgba(59, 90, 138, .35);
}
.mi-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mi-icon svg { width: 18px; height: 18px; opacity: .9; }
.menu-item.active .mi-icon svg { opacity: 1; }
.logout { margin-top: auto; color: var(--muted); }

/* ---------- sayfa başlığı ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; }
.page-sub { color: var(--ink-soft); margin-top: 4px; font-size: 13.5px; }
.page-actions { display: flex; gap: 10px; }

/* ---------- kartlar / stat ---------- */
.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px)  { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } .sidebar { display: none; } .main { padding: 16px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; animation: cardIn .45s ease backwards; /* both DEĞİL: bitince transform kalırsa içindeki fixed pencereler ortalanmaz */
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-lift); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.grid > .card:nth-child(1) { animation-delay: .02s; }
.grid > .card:nth-child(2) { animation-delay: .08s; }
.grid > .card:nth-child(3) { animation-delay: .14s; }
.grid > .card:nth-child(4) { animation-delay: .20s; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .num { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.stat .lbl { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.stat .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 19px; margin-bottom: 4px;
}
.ico-violet { background: var(--violet-soft); color: var(--violet-deep); }
.ico-good   { background: var(--good-bg); color: var(--good); }
.ico-warn   { background: var(--warn-bg); color: var(--warn); }
.ico-info   { background: var(--info-bg); color: var(--info); }

.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)); color: #fff;
  font-weight: 700; font-size: 13.5px; padding: 10px 18px; border-radius: 11px;
  box-shadow: 0 6px 16px rgba(59, 90, 138, .3);
  transition: transform .15s, box-shadow .15s, filter .15s; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(59, 90, 138, .42); filter: brightness(1.04); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: var(--surface); color: var(--violet-deep); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--violet-soft); }
.btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 6px 16px rgba(220, 38, 38, .25); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
/* bir form alanından/paragraftan hemen sonra gelen buton yapışık kalmasın */
.fld + .btn, .frm-row + .btn, p + .btn, label + .btn { margin-top: 14px; }
.btn + .btn { margin-left: 8px; }
/* bölüm başlığı ikonu (Telegram / E-posta / SMS vb.) */
.sec-ico { display: inline-flex; align-items: center; color: var(--violet); }
.sec-ico svg { width: 18px; height: 18px; }

/* ---------- tablo ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; background: var(--surface); }
.tbl th {
  text-align: left; font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700;
  white-space: nowrap;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: none; }
tr.row-new { animation: rowNew 1.6s ease both; }
@keyframes rowNew { 0% { background: #ddd4ff; } 100% { background: transparent; } }

/* ---------- rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-good { background: var(--good-bg); color: var(--good); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad  { background: var(--bad-bg);  color: var(--bad); }
.b-info { background: var(--info-bg); color: var(--info); }
.b-gray { background: #eef0f5; color: var(--ink-soft); }
.b-violet { background: var(--violet-soft); color: var(--violet-deep); }
.badge.no-dot::before { display: none; }

.pulse { position: relative; }
.pulse::before { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* ---------- avatar ---------- */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 12.5px; font-weight: 800; color: #fff; flex: 0 0 34px;
}
.av-violet { background: linear-gradient(135deg, #4a6fa5, #0f2f5f); }
.av-gray   { background: linear-gradient(135deg, #9aa0b4, #6b7280); }

/* ---------- form ---------- */
.frm { display: grid; gap: 14px; }
.frm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
@media (max-width: 640px) { .frm-row { grid-template-columns: 1fr; } }
label.fld { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
label.fld > input, label.fld > select { margin-top: auto; }
.fld input, .fld select {
  font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.fld input:focus, .fld select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(59, 90, 138, .15); }

/* ---------- modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(25, 20, 60, .45); backdrop-filter: blur(3px);
  display: none; place-items: center; z-index: 50; padding: 20px;
}
.modal-bg.open { display: grid; animation: fadeIn .2s ease; }
.modal {
  background: var(--surface); border-radius: 18px; box-shadow: 0 30px 80px rgba(20, 15, 60, .35);
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 26px;
  animation: modalIn .28s cubic-bezier(.2, 1.1, .4, 1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal h2 { font-size: 18px; margin-bottom: 18px; }
.modal .close-x { float: right; position: sticky; top: -12px; z-index: 5; width: 34px; height: 34px; margin: -8px -8px 0 8px;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
  font-size: 16px; cursor: pointer; color: var(--muted); box-shadow: 0 2px 8px rgba(20, 15, 60, .08); }
.modal .close-x:hover { color: var(--ink); border-color: var(--violet); }

/* ---------- toast ---------- */
.toast {
  position: fixed; top: 18px; right: 18px; z-index: 99; padding: 13px 20px; border-radius: 12px;
  font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-lift);
  animation: toastIn .35s cubic-bezier(.2, 1.2, .4, 1) both, toastOut .4s ease 4s both;
}
.toast-ok  { background: #10321f; color: #7ce6a3; }
.toast-err { background: #3a1214; color: #ff9d9d; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-16px); visibility: hidden; } }

/* ---------- mini bar grafik ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; max-width: 34px; background: var(--violet); border-radius: 4px 4px 0 0;
  min-height: 2px; position: relative; transform-origin: bottom; animation: barGrow .7s cubic-bezier(.2, .9, .3, 1) both;
  transition: filter .15s;
}
.bar:hover { filter: brightness(1.15); }
.bar[data-v]:hover::after {
  content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar-lbl { font-size: 11px; color: var(--muted); font-weight: 600; }
.bar-today { background: linear-gradient(180deg, var(--violet), var(--violet-deep)); box-shadow: 0 4px 12px rgba(59, 90, 138,.3); }
/* yığılmış (giriş/çıkış) sütun */
.bar-stack {
  width: 100%; max-width: 34px; min-height: 2px; border-radius: 4px 4px 0 0; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transform-origin: bottom; animation: barGrow .7s cubic-bezier(.2, .9, .3, 1) both; transition: filter .15s;
}
.bar-stack:hover { filter: brightness(1.08); }
.bar-stack .seg-out { width: 100%; background: #8fb0dc; }
.bar-stack .seg-in  { width: 100%; background: var(--violet); }
.bar-stack[data-v]:hover::after {
  content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; z-index: 3;
}

/* ---------- dashboard ---------- */
.stat .ico svg { width: 20px; height: 20px; }
.ico-bad { background: var(--bad-bg); color: var(--bad); }

.metric-strip { display: flex; gap: 8px; padding: 16px 20px; }
.metric-strip .ms { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.metric-strip .ms + .ms { border-left: 1px solid var(--line); padding-left: 20px; }
.ms-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 38px; }
.ms-ico svg { width: 19px; height: 19px; }
.ms-ico.iv { background: var(--violet-soft); color: var(--violet-deep); }
.ms-ico.ib { background: var(--bad-bg); color: var(--bad); }
.ms-ico.ig { background: var(--warn-bg); color: var(--warn); }
.ms-ico.iw { background: var(--info-bg); color: var(--info); }
.metric-strip .ms b { font-size: 21px; font-weight: 800; letter-spacing: -.5px; display: block; line-height: 1.1; }
.metric-strip .ms small { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 720px) { .metric-strip { flex-wrap: wrap; } .metric-strip .ms { flex: 1 1 45%; } .metric-strip .ms + .ms { border-left: none; padding-left: 6px; } }

.att-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.att-rate b { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--violet-deep); }
.att-rate small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.att-sub { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.sbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--surface-2); margin: 4px 0 14px; }
.sbar > span { display: block; height: 100%; transition: width .5s ease; }
.leg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.leg > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: 0 0 10px; }
.leg b { font-weight: 800; color: var(--ink); }
.mini-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.mini-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.avatar.sm { width: 26px; height: 26px; flex: 0 0 26px; font-size: 10.5px; }
.av-warn { background: linear-gradient(135deg, #f0b45c, #d97706); }

/* ---------- canlı liste ---------- */
.live-item {
  display: flex; align-items: center; gap: 13px; padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.live-item:last-child { border-bottom: none; }
.live-item.fresh { animation: liveIn .5s cubic-bezier(.2, 1.1, .4, 1) both; }
@keyframes liveIn { from { opacity: 0; transform: translateX(-18px); background: var(--violet-soft); } to { opacity: 1; transform: none; } }
.live-item b { font-size: 14px; }
.live-item .meta { font-size: 12.5px; color: var(--muted); }
.live-empty { color: var(--muted); text-align: center; padding: 34px 10px; }

/* ---------- login ---------- */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #eef 0%, #f6f4ff 45%, #efeaff 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: blob 14s ease-in-out infinite alternate; }
.blob.b1 { width: 420px; height: 420px; background: #b7a6ff; top: -110px; left: -80px; }
.blob.b2 { width: 380px; height: 380px; background: #9fd0ff; bottom: -90px; right: -60px; animation-delay: -6s; }
@keyframes blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(50px, 40px) scale(1.15); } }
.auth-card {
  position: relative; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 22px; padding: 38px 34px;
  width: 100%; max-width: 400px; box-shadow: 0 30px 70px rgba(80, 60, 200, .18);
  animation: modalIn .5s cubic-bezier(.2, 1.05, .4, 1) both;
}
.auth-card .brand { padding: 0 0 8px; }
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
.auth-card p.sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 20px; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.flash-err {
  background: var(--bad-bg); color: var(--bad); font-weight: 700; font-size: 13px;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; animation: shake .4s ease;
}
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- yardımcı ---------- */
.muted { color: var(--muted); }
.mono { font-family: Consolas, Menlo, monospace; font-size: 13px; }
.mt { margin-top: 16px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.codebox {
  background: #1c1e2c; color: #cdd6ff; border-radius: 12px; padding: 14px 16px;
  font-family: Consolas, Menlo, monospace; font-size: 12.5px; overflow-x: auto; white-space: pre; line-height: 1.55;
}
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { font-weight: 600; word-break: break-all; }

/* ---------- personel gönderim ilerlemesi ---------- */
.note { border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }
.note.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(217, 119, 6, .25); }

.pbar { height: 10px; border-radius: 99px; background: var(--violet-soft); overflow: hidden; }
.pbar > i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--violet-deep));
  transition: width .25s ease;
}
.pmeta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; }
.pmeta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstats { display: flex; gap: 8px; margin-top: 10px; }

.push-fails { margin-top: 14px; max-height: 190px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.pf-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 8px 11px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.pf-row:last-child { border-bottom: none; }
.pf-row span { color: var(--bad); font-size: 12px; text-align: right; }

/* ---------- dil seçimi ----------
   NOT: emoji bayrak (🇹🇷) KULLANILMAZ — Windows onları çizmez, "TR"/"GB" harfleri görünür.
   Bayraklar inc/dil.php içinde inline SVG. */
.flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .13); flex: none; }

/* Sidebar: açılır dil seçici (details/summary — JS gerekmez) */
.lang-pick { margin: 12px 4px 0; position: relative; }
.lang-pick summary {
  display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none;
  padding: 9px 11px; border-radius: 11px; border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-soft, #4b5063); background: var(--surface);
}
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary:hover { background: var(--violet-soft); border-color: var(--violet); }
.lang-pick summary > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-pick .chev {
  width: 7px; height: 7px; flex: none; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -3px; transition: .18s;
}
.lang-pick[open] .chev { transform: rotate(-135deg); margin-top: 2px; }

.lang-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 5px; box-shadow: 0 10px 30px rgba(15, 30, 60, .16);
  max-height: 300px; overflow-y: auto;
  animation: langIn .16s ease both;
}
@keyframes langIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lang-menu a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: var(--ink, #23263a); font-size: 13px; font-weight: 600;
}
.lang-menu a > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-menu a b { color: var(--violet-deep); font-size: 12px; }
.lang-menu a:hover { background: var(--violet-soft); color: var(--violet-deep); }
.lang-menu a.on { background: var(--violet-soft); color: var(--violet-deep); }

/* Login ve Ayarlar: bayrak ızgarası */
.lang-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.lang-flag {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 4px; border-radius: 9px; text-decoration: none;
  border: 1.5px solid var(--line); background: var(--surface); transition: .15s;
}
.lang-flag b { font-size: 11px; font-weight: 800; letter-spacing: .3px; color: var(--muted); line-height: 1; }
.lang-flag:hover { border-color: var(--violet); background: var(--violet-soft); }
.lang-flag:hover b { color: var(--violet-deep); }
.lang-flag.active { border-color: var(--violet); background: var(--violet-soft); box-shadow: 0 0 0 3px rgba(59, 90, 138, .13); }
.lang-flag.active b { color: var(--violet-deep); }

/* ---------- etiket (dil değerleri) yönetim ekranı ---------- */
.lbl-key { font-size: 12px; font-weight: 700; color: var(--violet-deep); white-space: nowrap; }
.lbl-inp {
  width: 100%; min-width: 190px; font: inherit; font-size: 13px; padding: 6px 9px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface);
}
/* Tek dil seçiliyken sütun sayısı azalır → alanlar iyice genişler */
.lbl-2col .lbl-inp { min-width: 320px; }
.lbl-inp:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(59, 90, 138, .15); }
.lbl-inp.dirty { border-color: var(--warn); background: #fffdf5; }
.lbl-empty { border-style: dashed; border-color: #e5b8b8; background: #fffafa; }
.lbl-langhead { display: inline-flex; align-items: center; gap: 6px; }

/* Tablo hücresinde avatar + isim.
   NOT: <td>'ye doğrudan display:flex VERİLMEZ — hücre tablo davranışını kaybeder,
   satırın alt çizgisi diğer hücrelerle hizasız çizilir (çizgi "kırık" görünür).
   Flex her zaman içteki div'e uygulanır. */
.cell-who { display: flex; align-items: center; gap: 10px; }

/* ---------- hareket detayı (GB-21) ---------- */
.live-item[data-ev] { cursor: pointer; transition: background .15s; border-radius: 10px; }
.live-item[data-ev]:hover { background: var(--surface-2); }
.hd-modal { max-width: 560px; width: 100%; }
.hd-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.hd-kv { grid-template-columns: 140px 1fr; }
.hd-kv dd { word-break: normal; }
.hd-map { width: 100%; height: 210px; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 14px; }
.hd-note { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 13px; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.hd-sub { margin: 18px 0 8px; font-size: 13px; color: var(--ink-soft); letter-spacing: .3px; }
.hd-gun { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hd-gun-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid var(--line); }
.hd-gun-row:last-child { border-bottom: none; }
.hd-gun-row.bu { background: var(--violet-soft); font-weight: 700; }
.hd-yukleniyor { height: 120px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: hdYuk 1.1s linear infinite; }
@keyframes hdYuk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 640px) { .hd-kv { grid-template-columns: 1fr; gap: 2px 0; } .hd-kv dd { margin-bottom: 8px; } }
/* dar ekranda hareket satırı (rozet + "Cihazdan Sil") yatay taşmasın */
@media (max-width: 640px) { .live-item { flex-wrap: wrap; } .live-item > div:last-child { margin-left: auto; } }

/* ---------- menü açılır grupları (GB-22/23) ---------- */
.menu-group > summary { list-style: none; cursor: pointer; }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-group > summary .chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s; opacity: .55; }
.menu-group[open] > summary .chev { transform: rotate(45deg); }
.menu-group > summary.grp-on { color: var(--violet-deep); font-weight: 700; }
.menu-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px 14px; padding-left: 10px; border-left: 2px solid var(--line); }
.menu-sub .menu-item { padding-top: 8px; padding-bottom: 8px; font-size: 13.5px; }

/* ---------- istisna yönetimi (GB-23) ---------- */
.ist-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.ist-tabs a { padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink-soft); }
.ist-tabs a.on { background: var(--violet-soft); border-color: var(--violet); color: var(--violet-deep); }
.ist-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ist-form input, .ist-form select { padding: 6px 9px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; }
.ist-form input[name=neden] { min-width: 160px; }
tr[data-ev] { cursor: pointer; }
tr[data-ev]:hover td { background: var(--surface-2); }

/* ---------- yenilikler (GB-03) ---------- */
.yn-wrap { max-width: 760px; margin: 0 auto; }
.yn-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; margin-bottom: 16px; box-shadow: var(--shadow); }
.yn-tabs a { text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; color: var(--ink-soft); }
.yn-tabs a.on { background: var(--violet-deep); color: #fff; }
.yn-item { margin-bottom: 12px; padding: 0; }
.yn-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 600; }
.yn-item > summary::-webkit-details-marker { display: none; }
.yn-item > summary .chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: .2s; }
.yn-item[open] > summary .chev { transform: rotate(-135deg); }
.yn-ico { color: var(--violet); display: inline-flex; }
.yn-not { margin: 0 18px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.yn-not h4 { font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.yn-not p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- üst çubuk + sık kullanılanlar (GB-04) ---------- */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: -8px 0 18px; flex-wrap: wrap; }
.tb-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--ink); cursor: pointer; position: relative; list-style: none; }
.tb-btn::-webkit-details-marker { display: none; }
.tb-btn svg { width: 18px; height: 18px; color: var(--violet-deep); }
.tb-btn:hover { background: var(--violet-soft); }
.tb-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 700; font-style: normal; line-height: 1;
  display: inline-grid; place-items: center; margin-left: -1px; box-shadow: 0 1px 2px rgba(220,38,38,.25); }   /* yazının sağında, satır içi */
@media (max-width: 720px) { .tb-badge { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; margin: 0; box-shadow: 0 0 0 2px #fff; } }
.tb-drop { position: relative; }
.tb-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 240px; max-width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.tb-menu a { padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.tb-menu a:hover { background: var(--violet-soft); color: var(--violet-deep); }
.tb-menu p { padding: 8px 10px; font-size: 13px; }
.tb-menu-h { padding: 6px 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.tb-gun { display: flex; gap: 10px; padding: 6px 10px; font-size: 13px; }
.tb-gun .mono { color: var(--violet-deep); font-weight: 700; }
.tb-more { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 !important; }
.tb-user { display: flex; flex-direction: column; align-items: flex-end; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); line-height: 1.25; }
.tb-user b { font-size: 13.5px; } .tb-user small { font-size: 12px; }
.fav-star { background: none; border: none; cursor: pointer; vertical-align: middle; margin-left: 6px; color: var(--muted); padding: 2px; }
.fav-star svg { width: 20px; height: 20px; }
.fav-star.on { color: #f5a524; } .fav-star.on svg { fill: #f5a524; }
@media (max-width: 720px) { .tb-btn span { display: none; } .tb-user { display: none; } }

/* ---------- şirket yapısı ağacı (GB-27) ---------- */
.org-agac { display: flex; flex-direction: column; }
.org-satir { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px calc(12px + var(--d) * 28px); border-bottom: 1px solid var(--line); position: relative; }
.org-satir::before { content: ''; position: absolute; left: calc(var(--d) * 28px - 8px); top: 0; bottom: 50%; width: 12px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 6px; display: var(--cizgi, block); }
.org-satir[style*="--d:0"]::before { display: none; }
.org-satir.pasif { opacity: .55; }
.org-is { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.org-is form { display: inline; }

/* ---------- dar ekranda menü düğmesi (eskiden menü tamamen gizleniyordu) ---------- */
.tb-menu-ac { display: none; margin-right: auto; }
@media (max-width: 720px) {
  .tb-menu-ac { display: inline-flex; }
  body.menu-acik .sidebar { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 80; width: 260px; overflow-y: auto; box-shadow: 0 0 0 100vmax rgba(15, 23, 42, .35); }
}

/* ---------- talepler + izin hakları (GB-10/11/15) ---------- */
tr.talep-panel td { background: #fff8e1; }
.ih-profil { margin-bottom: 14px; padding: 0; }
.ih-profil > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ih-profil > summary::-webkit-details-marker { display: none; }
.ih-profil > summary .chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.ih-profil[open] > summary .chev { transform: rotate(-135deg); }
.ih-govde { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 18px 20px; }
.ih-tablo { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ih-tablo h4 { color: var(--violet-deep); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--violet-deep); }
.ih-bas, .ih-satir { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.ih-bas span { font-size: 12.5px; color: var(--muted); }
.ih-satir input { padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: #fff; width: 100%; }
.ih-sil { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--bad); color: var(--bad); background: #fff; cursor: pointer; font-weight: 800; }
.ih-ayar { display: flex; flex-direction: column; gap: 12px; }
.ih-anahtar { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.ih-anahtar input { display: none; }
.ih-anahtar span { width: 40px; height: 22px; border-radius: 11px; background: var(--line); position: relative; flex: none; transition: .2s; }
.ih-anahtar span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.ih-anahtar input:checked + span { background: var(--violet-deep); }
.ih-anahtar input:checked + span::after { left: 21px; }
.ih-dugmeler { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.ih-sil-form { padding: 0 20px 16px; text-align: right; }
b.neg { color: var(--bad); }
@media (max-width: 1100px) { .ih-govde { grid-template-columns: 1fr; } }

/* ---- Personel kartı (GB-02) ---- */
.pk-modal { max-width: 860px; }
.pk-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.pk-foto { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); font-size: 20px; flex: none; }
.pk-ad { font-size: 18px; }
.pk-sure { background: var(--violet-soft, #e9eff8); border-radius: 12px; padding: 8px 12px; text-align: right; }
.pk-sure small { display: block; color: var(--muted); font-size: 11.5px; }
.pk-sure b { color: var(--violet-deep); font-size: 14px; }
.pk-kv { grid-template-columns: max-content 1fr max-content 1fr; }
@media (max-width: 640px) { .pk-kv { grid-template-columns: max-content 1fr; } }
.pk-tabs { margin-top: 16px; }
.pk-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.pk-tabs > label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.pk-tabs > label small { background: var(--line); border-radius: 8px; padding: 1px 7px; font-size: 11.5px; }
.pk-tabs > input:checked + label { background: var(--violet-soft, #e9eff8); color: var(--violet-deep); }
.pk-p { display: none; margin-top: 10px; }
#pk-s1:checked ~ .pk-p1, #pk-s2:checked ~ .pk-p2, #pk-s3:checked ~ .pk-p3 { display: block; }
.pk-tbl { max-height: 340px; overflow: auto; }
.pk-alt { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; }
.hd-kisi { color: inherit; text-decoration: none; }
.hd-kisi:hover b { color: var(--violet-deep); }
button.avatar { border: none; cursor: pointer; padding: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* ---- Şu An / Bu Ay / destek (GB-02, GB-31) ---- */
.suan { display: grid; gap: 12px; margin-top: 10px; }
.suan-row { display: grid; grid-template-columns: 40px 110px 1fr; gap: 10px; align-items: center; }
.suan-row b { font-size: 20px; display: block; line-height: 1.1; }
.suan-row small { color: var(--muted); font-size: 12px; }
.av-dizi { display: flex; flex-wrap: wrap; gap: 4px; }
.buay .mini-row { gap: 10px; }
.buay .gecti { opacity: .55; }
.buay .bugun { background: var(--violet-soft, #e9eff8); border-radius: 10px; }
.buay-gun { display: flex; flex-direction: column; align-items: center; width: 34px; line-height: 1.05; }
.buay-gun b { font-size: 16px; }
.buay-gun small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; }
.buay-ad { color: inherit; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.destek-kutu { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pano-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 16px; }
@media (max-width: 520px) { .pano-sec { grid-template-columns: 1fr; } .suan-row { grid-template-columns: 40px 90px 1fr; } }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--violet); }

/* GB-19: kenar çubuğunda gerçek logo (eski "E" rozeti yerine) */
.brand-logo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-logo img { height: 30px; width: auto; max-width: 170px; object-fit: contain; object-position: left center; }
.brand-logo small { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* GB-18: örnek veri modu şeridi */
.ornek-serit { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff7e0; border: 1px solid #f3d27a; color: #7a5600; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-weight: 600; font-size: 13.5px; }
.ornek-serit span { display: flex; align-items: center; gap: 8px; }
.ornek-serit svg { width: 18px; height: 18px; }
.tb-ornek { display: inline; margin: 0; }
.tb-ornek .tb-btn { border: none; background: none; cursor: pointer; font: inherit; }

/* 22.11.2026 geri bildirimi — firma alanı (easyPDKS logosunun altında: hizmet verilen firmanın logosu ya da adı) */
.firma-marka { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.firma-marka.has-logo { margin-top: 0; padding-top: 0; border-top: 0; }   /* firma logosu yüklüyse tek başına durur */
.firma-marka.has-logo img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.firma-logo-onizleme { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; margin: 10px 0; min-height: 64px; }
.firma-logo-onizleme img { max-height: 48px; max-width: 200px; object-fit: contain; }

/* Saha formu: enlem/boylam açıklaması + adres arama sonuç listesi */
.koord-bilgi { display: grid; gap: 4px; margin: -4px 0 12px; padding: 9px 12px; background: var(--surface-2); border-radius: 10px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.koord-bilgi b { color: var(--ink); }
.adres-liste { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-height: 210px; overflow-y: auto; }
.adres-liste button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: none; border-bottom: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 12.5px; cursor: pointer; }
.adres-liste button:last-child { border-bottom: none; }
.adres-liste button:hover { background: var(--violet-soft); }
/* Üst çubuk takvimi (22.11.2026): ay ızgarası + özel gün işaretleri */
.tb-takvim .tb-menu { min-width: 300px; }
.tk-bas { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.tk-bas b { font-size: 14px; }
.tk-git { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--ink); }
.tk-git:hover { border-color: var(--violet); color: var(--violet-deep); }
.tk-izgara { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 0 2px 8px; border-bottom: 1px solid var(--line); }
.tk-gad { font-size: 10.5px; font-weight: 700; color: var(--muted); text-align: center; padding: 2px 0 4px; text-transform: uppercase; }
.tk-gun { position: relative; text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 0; border-radius: 8px; color: var(--ink); }
.tk-gun.hs { color: var(--muted); }
.tk-gun.bugun { background: var(--violet); color: #fff; }
.tk-gun.tk-tatil { background: #e6f7ed; color: #1a7f45; }
.tk-gun.tk-anma { box-shadow: inset 0 0 0 1.5px #9aa4b2; }
.tk-gun.tk-dogum::after, .tk-gun.tk-yildonumu::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.tk-gun.tk-yildonumu::after { background: #d68910; }
.tk-gun.bugun.tk-dogum::after { background: #fff; }
.tk-liste { max-height: 200px; overflow-y: auto; padding-top: 6px; }
.tk-nokta.tk-tatil { color: #1a7f45; } .tk-nokta.tk-dogum { color: var(--violet-deep); } .tk-nokta.tk-yildonumu { color: #b9770e; }
/* Ayarlar: açma-kapama anahtarı + ayar tablosu (22.11.2026, mobofis kartları) */
.anahtar { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.anahtar input { opacity: 0; width: 0; height: 0; position: absolute; }
.anahtar i { position: absolute; inset: 0; background: #d5dae3; border-radius: 22px; cursor: pointer; transition: .18s; }
.anahtar i::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.anahtar input:checked + i { background: var(--violet); }
.anahtar input:checked + i::before { transform: translateX(18px); }
.anahtar input:disabled + i { opacity: .5; cursor: default; }
.ayar-tbl { margin: 8px 0 14px; }
.ayar-tbl td, .ayar-tbl th { padding: 8px 10px; vertical-align: middle; }
.ayar-tbl input:not([type=checkbox]) { padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; }
/* Terminal Ayarları (GB-28): satır başına form (tablo içinde form geçersiz olduğu için grid) */
.ca-tablo { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ca-satir { display: grid; grid-template-columns: minmax(200px, 1.6fr) 1fr 1fr 80px 150px; gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); margin: 0; }
.ca-satir.ca-bas { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px; }
.ca-satir select, .ca-satir input[type=number] { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; max-width: 100%; }
.ca-satir:not(.ca-bas):hover { background: var(--surface-2); }
@media (max-width: 900px) { .ca-satir { grid-template-columns: 1fr 1fr; } .ca-satir.ca-bas { display: none; } }
/* Vardiya planı — SGA özellikleri (29.11.2026): sıralama tutamacı, görev rozeti, planlayan, A·B·= toplamı, resmi tatil başlığı, lejant */
.pl-yerlesim { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; align-items: start; }
@media (max-width: 1400px) { .pl-yerlesim { grid-template-columns: minmax(0, 1fr); } }
.pl-araclar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn.ok { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; }
.pl-wrap { max-height: 72vh; overflow: auto; }
.pl-tbl { font-size: 12.5px; border-collapse: separate; border-spacing: 0; }
.pl-tbl thead th { position: sticky; top: 0; z-index: 3; background: #1f3a68; color: #fff; padding: 4px 3px; font-weight: 700; text-align: center; }
.pl-tbl thead th small { color: rgba(255,255,255,.75); font-weight: 600; }
.pl-tbl thead th.hs { background: #2c4c80; }
.pl-tbl thead th.rt { background: #111; cursor: help; }
.pl-ad-th { left: 0; z-index: 5 !important; text-align: left !important; min-width: 230px; }
.pl-top-th { right: 0; z-index: 5 !important; min-width: 96px; font-size: 11px; }
.pl-gun { min-width: 46px; }
.pl-tbl td { padding: 3px 2px; }
.pl-tbl td.pl-ad { padding: 4px 8px; }
.pl-tbl td.pl-top { padding: 3px 6px; }
.pl-ad { position: sticky; left: 0; z-index: 2; background: #fff; text-align: left; cursor: context-menu; border-right: 1px solid var(--line); }
.pl-ad-ic { display: flex; align-items: center; gap: 8px; }
.pl-ad-metin { flex: 1; min-width: 0; line-height: 1.25; }
.pl-tut { cursor: grab; color: var(--muted); font-size: 18px; padding: 0 2px; user-select: none; touch-action: none; }
.pl-tut:active { cursor: grabbing; }
.pl-kay { display: inline-flex; gap: 3px; white-space: nowrap; }
.pl-planlayan { display: block; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-rozet { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin-left: 4px; text-transform: uppercase; letter-spacing: .02em; vertical-align: 1px; }
.pl-rozet.g-gecici { background: #ffedd5; color: #c2410c; }
.pl-rozet.g-ek     { background: #ede9fe; color: #6d28d9; }
.pl-rozet.g-kadro  { background: #fee2e2; color: #b91c1c; }
.pl-onay { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: 11px; font-weight: 800; margin-left: 4px; cursor: help; vertical-align: 1px; }
.pl-onay.ev { background: #dcfce7; color: #15803d; }
.pl-onay.ha { background: #fee2e2; color: #b91c1c; }
.pl-h { padding: 2px; position: relative; }
.pl-h.hs { background: rgba(59, 90, 138, .04); }
.pl-h select { width: 100%; min-width: 44px; height: 28px; padding: 0 2px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; font-weight: 800; color: var(--ink);
  -webkit-appearance: none; appearance: none; background-image: none; text-align: center; text-align-last: center; cursor: pointer; }
.pl-h select:focus { outline: 2px solid var(--violet); outline-offset: 0; }
.pl-h select:not(.dolu) { color: var(--muted); font-weight: 400; }
.pl-cak { position: absolute; top: -3px; right: -3px; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: #dc2626; color: #fff;
  font-size: 10px; font-weight: 800; font-style: normal; display: inline-grid; place-items: center; cursor: help; box-shadow: 0 0 0 2px #fff; }
.pl-destek { position: absolute; bottom: 1px; left: 3px; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: #7c3aed; display: inline-block; cursor: help; }
.pl-top { position: sticky; right: 0; z-index: 2; background: #fff; border-left: 1px solid var(--line); white-space: nowrap; text-align: center; }
.pl-top span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 6px; font-size: 11.5px; font-weight: 800; margin: 0 1px; }
.pl-top .tA { background: #dbeafe; color: #1d4ed8; }
.pl-top .tB { background: #ffedd5; color: #c2410c; }
.pl-top .tT { background: #1f3a68; color: #fff; }
tr.pl-suruk td { background: #fff3cd !important; }
tr.pl-tamam td { background: #d1e7dd !important; transition: background .4s; }
.pl-lejant h3 { margin-bottom: 10px; }
.pl-lj { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin: 6px 0; flex-wrap: wrap; }
.pl-lj-kod { min-width: 34px; text-align: center; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); font-weight: 800; font-size: 12px; }
.pl-lejant hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.pl-ctx-baslik { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; margin: 8px 6px 4px; }
.pl-gorev-btn.on { background: var(--violet-soft); }
.pl-onay-ozet { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pl-onay-ozet .chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pl-onay-ozet .chip.on { background: var(--violet-soft); border-color: var(--violet-deep); color: var(--violet-deep); }

/* açılır indirme menüsü (raporlar + vardiya planı) */
.rp-xls{position:relative;display:inline-block}
.rp-xls-m{display:none;position:absolute;right:0;top:100%;padding-top:6px;z-index:40;min-width:240px}
.rp-xls-m div{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(30,30,60,.14);padding:6px}
.rp-xls-m a{display:block;padding:8px 12px;border-radius:8px;color:var(--ink);text-decoration:none;font-size:13.5px;font-weight:600}
.rp-xls-m a:hover{background:var(--violet-soft)}
.rp-xls:hover .rp-xls-m,.rp-xls:focus-within .rp-xls-m{display:block}
