﻿:root {
  --pd-primary: #9E1B32;
  --pd-primary-dark: #7C1527;
  --pd-soft: #F7E7EA;
  --pd-ink: #241A1C;
  --pd-muted: #756569;
  --pd-ground: #F7F4F5;
  --pd-border: #EAE0E2;
  --pd-side-top: #45101B;
  --pd-side-bottom: #2C0A11;
  --pd-star: #C9A227;
  --pd-radius: 14px;
  --pd-shadow: 0 1px 3px rgba(44, 22, 27, 0.07);
}

html { font-size: 17px; }
@media (min-width: 992px) { html { font-size: 18px; } }

body {
  background: var(--pd-ground);
  color: var(--pd-ink);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

/* ---- App shell: sidebar + main ---- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  flex: 0 0 264px;
  position: sticky; top: 0; height: 100vh;
  flex-direction: column;
  background: linear-gradient(180deg, var(--pd-side-top), var(--pd-side-bottom));
  color: #fff;
  padding: 22px 14px;
  overflow-y: auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.98rem; line-height: 1.25;
  padding: 4px 10px 18px; letter-spacing: 0.01em;
}
.brand:hover { color: #fff; }
.brand-logo {
  flex: 0 0 auto; display: grid; place-items: center;
  background: #fff; border-radius: 9px; padding: 6px 9px;
}
.brand-logo img { height: 26px; display: block; }
.login-logo { display: block; height: 52px; margin: 0 auto 14px; }

.side-nav { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  color: #E5C9CE; text-decoration: none;
  font-weight: 600; font-size: 1rem;
  padding: 11px 14px; border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.side-link .bi { font-size: 1.05rem; width: 24px; text-align: center; opacity: 0.9; }
.side-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-link.active { background: var(--pd-primary); color: #fff; }
.side-section {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.7rem; font-weight: 700; color: #BC8B94;
  padding: 16px 14px 6px;
}
.side-footer { margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 14px; }
.side-user { color: #E5C9CE; font-weight: 700; padding: 0 10px 10px; word-break: break-word; }
.btn-side-logout {
  display: block; text-align: center;
  background: rgba(255,255,255,0.1); color: #fff; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
}
.btn-side-logout:hover { background: rgba(255,255,255,0.2); color: #fff; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 26px clamp(14px, 3vw, 40px) 60px; max-width: 1800px; width: 100%; }

/* ---- Mobile topbar + offcanvas ---- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--pd-side-top); color: #fff;
  padding: 10px 14px;
  position: sticky; top: 0; z-index: 1030;
}
.topbar-burger { color: #fff; font-size: 1.5rem; padding: 4px 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: 10px; }
.topbar-brand { font-weight: 800; }
.sidebar-offcanvas {
  background: linear-gradient(180deg, var(--pd-side-top), var(--pd-side-bottom));
  color: #fff; max-width: 300px;
}
.sidebar-offcanvas .offcanvas-body { padding: 10px 14px; }
.sidebar-offcanvas .brand { padding-bottom: 0; }

/* ---- Typography & page headers ---- */
h1, h2, h3, h4, h5 { font-weight: 700; }
.pd-page-title { font-size: 1.45rem; margin-bottom: 4px; text-wrap: balance; }
.card-body h5 { font-size: 1.02rem; }
.pd-page-sub { color: var(--pd-muted); margin-bottom: 22px; }

/* ---- Buttons & forms ---- */
.btn { min-height: 44px; font-size: 0.98rem; font-weight: 600; padding: 8px 18px; border-radius: 8px; }
.btn-primary { background: var(--pd-primary); border-color: var(--pd-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--pd-primary-dark); border-color: var(--pd-primary-dark); }
.btn-outline-secondary { border-color: var(--pd-border); color: var(--pd-ink); }
.btn-outline-secondary:hover { background: var(--pd-soft); border-color: var(--pd-primary); color: var(--pd-primary-dark); }
.btn-sm { min-height: 36px; padding: 4px 14px; font-size: 0.9rem; }
.btn-lg { min-height: 54px; font-size: 1.1rem; }
.btn:focus-visible { outline: 3px solid var(--pd-soft); outline-offset: 1px; }

.form-control, .form-select { min-height: 46px; font-size: 1rem; border-radius: 10px; border-color: var(--pd-border); }
.form-control:focus, .form-select:focus { border-color: var(--pd-primary); box-shadow: 0 0 0 0.2rem rgba(158, 27, 50, 0.15); }
.form-label { font-weight: 700; font-size: 0.98rem; }
.form-check-input:checked { background-color: var(--pd-primary); border-color: var(--pd-primary); }

.pd-alert { font-size: 1rem; font-weight: 600; border-radius: var(--pd-radius); }

/* ---- Cards ---- */
.card {
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow);
}
.card-body { padding: 20px 22px; }
a.text-decoration-none .card { transition: transform 0.12s, box-shadow 0.12s; }
a.text-decoration-none:hover .card { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(22, 38, 44, 0.1); border-color: var(--pd-primary); }
a.text-decoration-none { color: inherit; }

/* ---- Tables ---- */
.table-responsive {
  background: #fff; border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius); box-shadow: var(--pd-shadow);
}
.table { font-size: 0.98rem; margin-bottom: 0; }
.table th {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--pd-muted); background: #FBF8F9;
  padding: 12px 16px; border-bottom: 1px solid var(--pd-border); white-space: nowrap;
}
.table td { vertical-align: middle; padding: 13px 16px; border-color: #F2EAEC; }
.table-hover tbody tr:hover { background: var(--pd-soft); }
.card .table th { background: transparent; }
.table td, .table th { font-variant-numeric: tabular-nums; }
.table td.text-end { white-space: nowrap; }
.table td.text-end form { display: inline-block; }
.table td.text-end .btn { margin-left: 6px; }

/* Satir yuksekligi icerige gore degisen tablolarda (metrik kartlari) hucreler ustten hizalanir,
   boylece isim/rozet/butonlar her satirda ayni cizgide baslar. */
.table-align-top td { vertical-align: top; }
.table-align-top td .btn-sm { margin-top: 1px; }

/* ---- Stat cards ---- */
.pd-stat {
  background: #fff; border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius); box-shadow: var(--pd-shadow);
  padding: 18px 22px; height: 100%;
}
.pd-stat .num { font-size: 2rem; font-weight: 700; color: var(--pd-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pd-stat .lbl { color: var(--pd-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 4px; }

/* ---- Badges ---- */
.pd-badge { display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 4px 11px; border-radius: 6px; white-space: nowrap; }
.pd-badge.wrap { white-space: normal; max-width: 100%; }
@media (max-width: 420px) { .card .table-sm td, .card .table-sm th { padding: 8px 10px; } }
.pd-badge::before { content: "●"; font-size: 0.6rem; vertical-align: 2px; margin-right: 6px; }
.pd-badge.on { background: #E9F3EC; color: #256B3C; }
.pd-badge.off { background: #F1EEEF; color: #6B5D61; }
.pd-badge.bad { background: #F8E3E3; color: #A32626; }

.progress { background: #F0E2E5; border-radius: 999px; }
.progress-bar { background: var(--pd-primary); border-radius: 999px; }

/* ---- Scoring cards ---- */
.star-row { display: flex; flex-wrap: wrap; gap: 10px; }
.star-opt {
  flex: 1 1 150px; cursor: pointer; text-align: center;
  border: 2px solid var(--pd-border); border-radius: 12px;
  padding: 14px 10px; background: #fff;
  transition: border-color 0.12s, background 0.12s;
}
.star-opt input { display: none; }
.star-opt .star-face { display: block; font-size: 1.4rem; color: var(--pd-star); letter-spacing: 2px; }
.star-opt .star-label { display: block; margin-top: 6px; font-weight: 700; color: var(--pd-muted); font-size: 0.9rem; }
.star-opt:hover { border-color: var(--pd-primary); }
.star-opt:has(input:checked) { border-color: var(--pd-primary); background: var(--pd-soft); }
.star-opt:has(input:checked) .star-label { color: var(--pd-primary-dark); }
.star-opt:has(input:disabled) { cursor: default; opacity: 0.75; }

.yn-opt {
  flex: 1 1 140px; cursor: pointer; text-align: center;
  border: 2px solid var(--pd-border); border-radius: 12px;
  padding: 16px; background: #fff; font-size: 1.1rem; font-weight: 800;
  transition: border-color 0.12s, background 0.12s;
}
.yn-opt input { display: none; }
.yn-opt:hover { border-color: var(--pd-primary); }
.yn-opt:has(input:checked) { border-color: var(--pd-primary); background: var(--pd-soft); }
.yn-opt:has(input:disabled) { cursor: default; opacity: 0.75; }

.metric-chip {
  display: inline-block; vertical-align: top;
  min-width: 190px; max-width: 100%;
  margin: 2px 10px 2px 0; padding: 6px 10px;
  background: #FCFAFB; border: 1px solid var(--pd-border); border-radius: 10px;
  font-size: 0.82rem; line-height: 1.35;
}
.metric-chip > span:first-child { gap: 12px; }
.metric-chip .chip-bar {
  display: block; height: 6px; border-radius: 999px; background: #EFE5E8; margin: 4px 0; overflow: hidden;
}
.metric-chip .chip-bar span { display: block; height: 100%; border-radius: 999px; }
.metric-chip .chip-nums { color: var(--pd-muted); white-space: nowrap; }

/* Kartlari esit genislikte izgaraya oturt: satirlar birbiriyle hizali kalir */
.metric-cell {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
  max-width: 880px;   /* genis ekranda 4 metrik tek satira sigar, butonlar kesilmez */
}
.metric-cell .metric-chip > span:first-child { gap: 6px; }
.metric-cell .chip-nums { white-space: normal; font-size: 0.78rem; }
.metric-cell .chip-unit { font-size: 0.74rem; }
/* Ozet kartlarinda ikiserli kalsin: kart zaten dar */
.card .metric-cell { max-width: 520px; }
.metric-cell .metric-chip { margin: 0; min-width: 0; }
.chip-unit { font-weight: 500; color: var(--pd-muted); }

.dept-header {
  background: var(--pd-soft) !important; color: var(--pd-primary-dark);
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---- Sayfa sekmeleri ---- */
.pd-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--pd-border); }
.pd-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; margin-bottom: -2px;
  color: var(--pd-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0;
}
.pd-tab:hover { color: var(--pd-primary); background: var(--pd-soft); }
.pd-tab.active { color: var(--pd-primary); border-bottom-color: var(--pd-primary); background: var(--pd-soft); }

/* ---- Hedef girisi satirlari: metrik sayisi artsa da yatay tasma olmaz ---- */
.entry-head, .entry-row {
  display: grid; grid-template-columns: minmax(120px, 1.2fr) 1fr 1fr;
  gap: 10px; align-items: center;
}
.entry-head { padding: 0 2px 4px; }
.entry-row { margin-bottom: 8px; }
.entry-row label { margin: 0; }
@media (max-width: 575.98px) {
  .entry-row { grid-template-columns: 1fr 1fr; }
  .entry-row label { grid-column: 1 / -1; }
}

/* ---- Adim kartlari (aktarim akisi) ---- */
.pd-step { display: flex; gap: 14px; align-items: flex-start; }
.pd-step-no {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--pd-primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Rapor dashboard ---- */
.pd-stat.stat-good .num { color: #2E7D46; }
.pd-stat.stat-bad .num { color: #A32626; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #F2EAEC; color: var(--pd-ink); }
.rank-item:first-of-type { border-top: 0; }
.rank-item:hover { background: var(--pd-soft); border-radius: 8px; }
.avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pd-soft); color: var(--pd-primary-dark); font-weight: 700; font-size: 0.9rem;
}
.avatar-bad { background: #F8E3E3; color: #A32626; }
.pd-details summary {
  cursor: pointer; font-weight: 700; color: var(--pd-muted);
  padding: 10px 0; user-select: none;
}
.pd-details summary:hover { color: var(--pd-primary); }

/* ---- AI result ---- */
.ai-result { background: var(--pd-soft); border: 1px solid #EBD3D8; }
.ai-result .table { background: transparent; }
.ai-score { font-size: 1.6rem; font-weight: 700; color: var(--pd-primary); font-variant-numeric: tabular-nums; }

/* ---- Telefon: kriter tablosu kart gibi alt alta ---- */
/* Kriter tablosu kutunun kendi genisligine gore alt alta duser (yan sutun yuzunden genis ekranda da dar kalabiliyor) */
.ai-result { container-type: inline-size; min-width: 0; }
@container (max-width: 640px) {
  .crit-table thead { display: none; }
  .crit-table, .crit-table tbody, .crit-table tr { display: block; width: 100%; }
  .crit-table tr { padding: 8px 0; border-top: 1px solid #EBD3D8; }
  /* Safari: hucre tablo genisligini korumasin, beyaz zemin/golge kaydirmasin, uzun metin kirilsin */
  .crit-table > :not(caption) > * > td { display: block; width: auto; max-width: 100%; min-width: 0; border: 0; padding: 2px 0;
    background: transparent; box-shadow: none; overflow-wrap: anywhere; }
}
@media (max-width: 767.98px) {
  .crit-table thead { display: none; }
  .crit-table, .crit-table tbody, .crit-table tr { display: block; width: 100%; }
  .crit-table tr { padding: 8px 0; border-top: 1px solid #EBD3D8; }
  .crit-table > :not(caption) > * > td { display: block; width: auto; max-width: 100%; min-width: 0; border: 0; padding: 2px 0;
    background: transparent; box-shadow: none; overflow-wrap: anywhere; }
  .pd-page-title { font-size: 1.35rem; }
}

/* ---- Aday dosyasi: 2. asama, 3. asama, nihai puan ---- */
.pd-tabs { gap: 6px; border-bottom: 1px solid #ecdfe2; flex-wrap: nowrap; overflow-x: auto; }
.pd-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--pd-muted); font-weight: 600; font-size: .9rem; padding: 10px 12px; white-space: nowrap; background: none; }
.pd-tabs .nav-link:hover { color: var(--pd-primary); }
.pd-tabs .nav-link.active { color: var(--pd-primary); border-bottom-color: var(--pd-primary); }
.pd-tabs .tab-score { margin-left: 6px; font-size: .75rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #f6e9ec; color: var(--pd-primary); }
.s2-score { font-size: 1.6rem; font-weight: 800; color: var(--pd-primary); line-height: 1; white-space: nowrap; }
.s2-score span { font-size: .85rem; color: var(--pd-muted); font-weight: 600; margin-left: 2px; }
.s2-bar { height: 6px; background: #f1e7ea; border-radius: 6px; overflow: hidden; }
.s2-bar > div { height: 100%; background: var(--pd-primary); border-radius: 6px; }
.s2-title { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pd-muted); margin: 18px 0 8px; }
.s2-note { font-size: .85rem; color: #5c4a4e; background: #faf6f7; border-left: 3px solid #e8cdd3; border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.s2-video { border: 1px solid #f0e6e9; border-radius: 10px; margin-bottom: 8px; background: #fff; }
.s2-video > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.s2-video > summary::-webkit-details-marker { display: none; }
.s2-video > summary::before { content: "\25B8"; color: var(--pd-muted); transition: transform .15s; }
.s2-video[open] > summary::before { transform: rotate(90deg); }
.s2-video > summary:hover { background: #fcf7f8; border-radius: 10px; }
.s2-q { flex: 1; font-size: .86rem; font-weight: 600; line-height: 1.3; }
.s2-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.s2-pill { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f1eced; color: #6d5a5e; white-space: nowrap; }
.s2-pill.hi { background: #e6f4ea; color: #1f6b36; }
.s2-pill.mid { background: #fff4dc; color: #8a5a00; }
.s2-pill.lo { background: #fbe4e7; color: #9e1b32; }
.s2-warn { font-size: .75rem; font-weight: 700; color: #b3261e; white-space: nowrap; }
.s2-body { padding: 0 12px 12px; }
.s2-body video { width: 100%; max-height: 220px; background: #000; border-radius: 8px; display: block; }
.s2-flags { margin: 10px 0 0; padding: 0; list-style: none; font-size: .8rem; color: #9e1b32; }
.s2-flags li { padding: 2px 0; }
.s2-flags li::before { content: "\2022"; margin-right: 6px; }
.s2-presence { display: grid; grid-template-columns: auto 1fr auto; gap: 5px 10px; align-items: center; font-size: .78rem; color: #6d5a5e; margin-top: 12px; }
.s2-presence .b { height: 5px; background: #f1e7ea; border-radius: 5px; overflow: hidden; }
.s2-presence .b > div { height: 100%; background: #c98a96; }
.s2-small { font-size: .8rem; color: #6d5a5e; margin-top: 8px; }
.s2-answers { border-top: 1px solid #f3eaec; }
.s2-ans { display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; padding: 8px 0; border-bottom: 1px solid #f3eaec; }
.s2-ans .q { font-size: .78rem; color: var(--pd-muted); grid-column: 1; }
.s2-ans .v { font-size: .9rem; font-weight: 600; grid-column: 1; }
.s2-ans .p { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.stars { color: #e0a800; font-size: 1.1rem; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #e3d9dc; }
.op-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #f3eaec; font-size: .85rem; }
.final-total { font-size: 2rem; font-weight: 800; color: var(--pd-primary); line-height: 1; white-space: nowrap; }
.final-total span { font-size: .9rem; color: var(--pd-muted); font-weight: 600; margin-left: 2px; }
.final-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: #f1e7ea; margin: 12px 0 10px; }
.final-bar .cv, .final-legend i.cv { background: #9E1B32; }
.final-bar .fm, .final-legend i.fm { background: #d9822b; }
.final-bar .op, .final-legend i.op { background: #2e7d46; }
.final-legend { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px 10px; font-size: .84rem; align-items: center; }
.final-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.final-legend small { color: var(--pd-muted); font-weight: 500; }
/* Yildizli puan secimi (5'ten 1'e dizilir, gorunumde 1-5) */
.star-rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rate label { font-size: 2.1rem; line-height: 1; color: #e3d9dc; cursor: pointer; transition: color .1s, transform .1s; }
.star-rate input:checked ~ label, .star-rate label:hover, .star-rate label:hover ~ label { color: #e0a800; }
.star-rate label:hover { transform: scale(1.08); }
.star-rate input:focus-visible + label { outline: 2px solid var(--pd-primary); border-radius: 4px; }
.rec-group { display: flex; flex-wrap: wrap; gap: 8px; }
.rec-group .btn { min-width: 130px; }

/* ---- Asama dugmeleri + surec listesi (aday dosyasi) ---- */
.pd-stages { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.pd-stage { border:1px solid #e6dadd; background:#fff; color:#6d5a5e; font-size:.82rem; font-weight:600; padding:5px 11px;
    border-radius:999px; line-height:1.2; cursor:pointer; transition:background .15s, border-color .15s; }
.pd-stage:hover:not(:disabled) { background:#faf4f5; border-color:#d8c6ca; }
.pd-stage.active, .pd-stage:disabled { background:#9E1B32; border-color:#9E1B32; color:#fff; cursor:default; opacity:1; }
.pd-stage.neg:not(.active) { color:#9e1b32; }
.pd-stage.pos:not(.active) { color:#1f6b36; }
.pd-stage.neg.active { background:#b3261e; border-color:#b3261e; }
.pd-stage.pos.active { background:#1f6b36; border-color:#1f6b36; }
.pd-proc-title { font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#a8999e; margin:0 0 6px; }
.pd-proc { border:1px solid #f0e6e9; border-radius:12px; overflow:hidden; margin-bottom:12px; }
.pd-proc-row { display:flex; align-items:center; gap:10px; padding:10px 12px; background:#fff; }
.pd-proc-row + .pd-proc-row { border-top:1px solid #f4ecee; }
.pd-proc-row .dot { flex:0 0 32px; width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
    background:#f6f1f2; color:#b3a3a7; border:2px solid #ece2e4; font-size:.9rem; }
.pd-proc-row .txt { flex:1 1 auto; min-width:0; }
.pd-proc-row .txt b { display:block; font-size:.86rem; font-weight:600; color:#2b2326; }
.pd-proc-row .txt small { display:block; font-size:.76rem; color:#8a7b80; }
.pd-proc-row .act { flex:0 0 auto; }
.pd-proc-row .act form { margin:0; }
.pd-proc-row.done .dot { background:#eef7f0; color:#1f6b36; border-color:#9fd3ad; }
.pd-proc-row.done .txt small { color:#1f6b36; }
.pd-proc-row.wait .dot { background:#fff8e6; color:#8a5a00; border-color:#f0d58e; }
.pd-proc-row.wait .txt small { color:#8a5a00; }
.pd-proc-row.warn .dot { background:#fdf0f2; color:#9e1b32; border-color:#eeb7c1; }
.pd-proc-row.warn .txt small { color:#9e1b32; }
@media (max-width: 420px) { .pd-proc-row { flex-wrap:wrap; } .pd-proc-row .act { flex-basis:100%; padding-left:42px; } }
/* IK arama takibi */
.pd-call { border:1px solid #f0e6e9; border-radius:12px; padding:9px 11px; margin-bottom:14px; background:#fcf9fa; }
.pd-call-h { font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#a8999e; margin-bottom:6px; }
.pd-call-h span { text-transform:none; letter-spacing:0; font-weight:500; margin-left:4px; }
.pd-call-btns { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.pd-call-btn { border:1px solid #e8dde0; background:#fff; color:#6d5a5e; border-radius:999px; padding:4px 11px; font-size:.8rem; font-weight:600; }
.pd-call-btn:hover { background:#faf4f5; }
.pd-call-btn.on.ok { background:#e6f4ea; border-color:#9fd3ad; color:#1f6b36; }
.pd-call-btn.on.wait { background:#fff4dc; border-color:#f0d58e; color:#8a5a00; }
.pd-call-btn.on.warn { background:#fdf0f2; border-color:#eeb7c1; color:#9e1b32; }
.pd-call-clear { border:0; background:none; color:#a8999e; padding:2px 6px; }
.pd-call small { display:block; margin-top:6px; font-size:.75rem; color:#8a7b80; }
/* Basvuru adimlari: asamalar + Mulakat icinde surec adimlari */
.pd-path { list-style:none; margin:0 0 12px; padding:0; }
.pd-path-step { position:relative; display:flex; gap:10px; padding-bottom:12px; }
.pd-path-step:last-child { padding-bottom:0; }
.pd-path-step:not(:last-child)::before { content:""; position:absolute; left:13px; top:28px; bottom:0; width:2px; background:#efe5e8; }
.pd-path-step.done:not(:last-child)::before { background:#9fd3ad; }
.pd-path-step .pin { flex:0 0 28px; width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
    font-size:.78rem; font-weight:700; background:#fff; border:2px solid #e3d6da; color:#a8999e; position:relative; z-index:1; }
.pd-path-step.done .pin { background:#eef7f0; border-color:#9fd3ad; color:#1f6b36; }
.pd-path-step.cur .pin { background:#9E1B32; border-color:#9E1B32; color:#fff; }
.pd-path-step .body { flex:1 1 auto; min-width:0; padding-top:3px; }
.pd-path-step .head { display:flex; align-items:center; gap:8px; }
.pd-path-step .head b { font-size:.9rem; color:#2b2326; }
.pd-path-step.done .head b { color:#1f6b36; }
.pd-path-step .head form { margin:0; }
.pd-path-step .now { font-size:.72rem; font-weight:700; padding:1px 8px; border-radius:999px; background:#9E1B32; color:#fff; }
.pd-path-go { font-size:.78rem; color:#8a7b80; text-decoration:none; }
.pd-path-go:hover { color:#9E1B32; text-decoration:underline; }
.pd-path-out { font-size:.84rem; padding:7px 10px; border-radius:10px; background:#f6f1f2; color:#6d5a5e; margin-bottom:10px; }
.pd-path-out.neg { background:#fdf0f2; color:#9e1b32; }
.pd-path-out.pos { background:#eef7f0; color:#1f6b36; }
.pd-path-side { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; padding-top:10px; border-top:1px dashed #efe5e8; }

/* Asama gecmisi: katlanir, varsayilan kapali */
.pd-hist { font-size:.8rem; color:#8a7b80; margin-top:4px; }
.pd-hist summary { cursor:pointer; color:#9E1B32; font-weight:600; list-style:none; }
.pd-hist summary::-webkit-details-marker { display:none; }
.pd-hist summary::before { content:"A"; display:inline-block; margin-right:6px; transition:transform .15s; }
.pd-hist[open] summary::before { transform:rotate(90deg); }
.pd-hist > div { padding:3px 0 0 14px; }

/* Surec rozetleri: adaya neler yapildi (asamadan bagimsiz) */
.cand-prog { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.pg { display:inline-flex; align-items:center; gap:5px; font-size:.72rem; line-height:1; padding:4px 9px; border-radius:6px;
      background:#f6f1f2; color:#6d5a5e; border:1px solid #ece2e4; white-space:nowrap; }
.pg i { font-size:.8rem; }
.pg b { font-weight:600; }
.pg.ok { background:#eef7f0; color:#1f6b36; border-color:#d3ebd9; }
.pg.wait { background:#fff8e6; color:#8a5a00; border-color:#f6e2b3; }
.pg.warn { background:#fdf0f2; color:#9e1b32; border-color:#f4d3d9; }

/* ---- Surec panosu ---- */
.proc-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.proc-tab { display:inline-flex; align-items:center; gap:7px; padding:7px 12px; border-radius:10px; border:1px solid #ece2e4; background:#fff;
    color:#6d5a5e; font-weight:600; font-size:.86rem; text-decoration:none; }
.proc-tab:hover { background:#faf4f5; color:#6d5a5e; }
.proc-tab .n { min-width:22px; padding:1px 7px; border-radius:999px; background:#f3eaec; font-size:.75rem; text-align:center; }
.proc-tab.active { background:#9E1B32; border-color:#9E1B32; color:#fff; }
.proc-tab.active .n { background:rgba(255,255,255,.22); color:#fff; }
.proc-hint { color:#8a7b80; font-size:.85rem; margin:0 0 10px; }
.proc-list { background:#fff; border:1px solid #f0e6e9; border-radius:14px; overflow:hidden; }
.proc-row { display:grid; grid-template-columns:52px 1fr auto; gap:12px; align-items:center; padding:12px 14px; color:inherit; text-decoration:none; }
.proc-row + .proc-row { border-top:1px solid #f4ecee; }
.proc-row:hover { background:#fcf8f9; color:inherit; }
.proc-row .sc { width:46px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:800; background:#f6f1f2; }
.proc-row .sc.hi { background:#e6f4ea; color:#1f6b36; }
.proc-row .sc.mid { background:#fff4dc; color:#8a5a00; }
.proc-row .sc.lo { background:#f6f1f2; color:#6d5a5e; }
.proc-row .nm { font-weight:700; color:#2b2326; }
.proc-row .st { font-size:.75rem; padding:2px 9px; border-radius:999px; background:#f3eaec; color:#6d5a5e; margin-left:6px; font-weight:600; }
.proc-row .last { text-align:right; font-size:.8rem; color:#8a7b80; white-space:nowrap; }
.proc-row .last b { display:block; color:#2b2326; font-weight:600; }
.proc-feed { background:#fff; border:1px solid #f0e6e9; border-radius:14px; padding:14px 16px; }
.proc-feed h5 { font-size:1rem; margin-bottom:10px; }
.proc-ev { display:flex; gap:10px; padding:8px 0; font-size:.83rem; color:#6d5a5e; }
.proc-ev + .proc-ev { border-top:1px solid #f6eef0; }
.proc-ev i { flex:0 0 28px; width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#f6f1f2; color:#8a7b80; }
.proc-ev i.ok { background:#eef7f0; color:#1f6b36; }
.proc-ev i.warn { background:#fdf0f2; color:#9e1b32; }
.proc-ev i.wait { background:#fff8e6; color:#8a5a00; }
.proc-ev a { font-weight:700; color:#2b2326; text-decoration:none; }
.proc-ev small { display:block; color:#a8999e; }
@media (max-width: 575px) {
    .proc-row { grid-template-columns:44px 1fr; }
    .proc-row .last { grid-column:2; text-align:left; }
    .proc-row .last b { display:inline; margin-right:6px; }
}

/* ---- Sisteme Ogret sohbeti ---- */
.tc-box { background:#fff; border:1px solid #f0e6e9; border-radius:14px; display:flex; flex-direction:column; height:calc(100vh - 230px); min-height:460px; }
.tc-head { display:flex; gap:8px; align-items:center; padding:10px 12px; border-bottom:1px solid #f4ecee; }
.tc-pick { position:relative; }
.tc-pick-list { position:absolute; z-index:20; top:calc(100% + 4px); left:0; right:0; max-height:320px; overflow-y:auto; background:#fff; border:1px solid #f0e6e9; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.08); padding:4px; }
.tc-pick-item { display:flex; justify-content:space-between; gap:8px; padding:6px 10px; border-radius:7px; cursor:pointer; font-size:.88rem; }
.tc-pick-item:hover, .tc-pick-item.on { background:#f8eef0; }
.tc-pick-item.muted { color:#8a7f82; }
.tc-pick-stage { color:#8a7f82; font-size:.78rem; white-space:nowrap; }
.tc-msgs { flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; background:#fcf9fa; }
.tc-msg { display:flex; flex-direction:column; max-width:85%; }
.tc-msg.me { align-self:flex-end; align-items:flex-end; }
.tc-msg.bot { align-self:flex-start; }
.tc-bubble { padding:9px 13px; border-radius:14px; white-space:pre-wrap; font-size:.9rem; line-height:1.45; }
.tc-msg.me .tc-bubble { background:#9E1B32; color:#fff; border-bottom-right-radius:4px; }
.tc-msg.bot .tc-bubble { background:#fff; border:1px solid #efe5e8; color:#2b2326; border-bottom-left-radius:4px; }
.tc-msg.wait .tc-bubble { color:#8a7b80; font-style:italic; }
.tc-msg.err .tc-bubble { background:#fdf0f2; color:#9e1b32; border-color:#f4d3d9; }
.tc-card { margin-top:6px; border:1px solid #e3d6f0; background:#faf7fd; border-radius:12px; padding:10px; width:100%; min-width:280px; }
.tc-card-h { font-weight:700; font-size:.82rem; color:#5b4a86; margin-bottom:6px; }
.tc-card.fix { border-color:#cfe6d6; background:#f5fbf7; }
.tc-card.fix .tc-card-h { color:#2f6b45; }
.tc-note { font-size:.8rem; border-radius:8px; padding:5px 8px; margin-bottom:6px; }
.tc-note.info { background:#eef4fb; color:#2c5282; }
.tc-note.warn { background:#fff4dc; color:#8a5a00; }
.tc-quick { display:flex; flex-wrap:wrap; gap:6px; padding:8px 12px 0; }
.tc-quick button { border:1px solid #ece2e4; background:#fff; color:#6d5a5e; border-radius:999px; padding:4px 11px; font-size:.8rem; }
.tc-quick button:hover { background:#faf4f5; }
.tc-input { display:flex; gap:8px; padding:10px 12px; align-items:flex-end; }
.tc-input textarea { flex:1; resize:none; border:1px solid #e8dde0; border-radius:12px; padding:8px 12px; font-size:.9rem; }
.tc-input textarea:focus { outline:2px solid #e9c6cd; border-color:#c98a96; }
.tc-chat { display:block; padding:7px 8px; border-radius:8px; font-size:.82rem; color:inherit; text-decoration:none; }
.tc-chat:hover, .tc-chat.active { background:#faf4f5; color:inherit; }
@media (max-width: 575px) { .tc-msg { max-width:95%; } .tc-box { height:calc(100vh - 180px); } }

/* ---- Kurallar ---- */
.rules-toc { display:flex; flex-wrap:wrap; gap:6px; }
.rules-toc a { padding:5px 11px; border-radius:999px; border:1px solid #ece2e4; background:#fff; color:#6d5a5e; font-size:.82rem; font-weight:600; text-decoration:none; }
.rules-toc a:hover { background:#faf4f5; }
.rules-split { display:flex; flex-wrap:wrap; gap:8px; }
.rules-split > div { flex:1 1 120px; border:1px solid #f0e6e9; border-radius:12px; padding:10px 12px; background:#fcf8f9; }
.rules-split b { display:block; font-size:1.35rem; color:#9E1B32; line-height:1.1; }
.rules-split span { color:#6d5a5e; font-size:.82rem; }
.rules-chips { display:flex; flex-wrap:wrap; gap:6px; }
.rules-chips span { padding:3px 10px; border-radius:999px; background:#e6f4ea; color:#1f6b36; font-size:.8rem; font-weight:600; }
[id] { scroll-margin-top:16px; }

/* ---- Login ---- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--pd-side-top), var(--pd-side-bottom));
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 440px; background: #fff;
  border-radius: 18px; padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.login-card h1 { font-size: 1.45rem; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--pd-muted); margin-bottom: 26px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
