/* Brosis 17024 — design tokens + base */

:root {
  /* Brand */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-press: #1e40af;
  --primary-soft: #eff5ff;
  --accent: #5fb4e6;
  --navy: #0f2747;
  --navy-2: #0b1d38;
  --navy-3: #1a3458;
  --navy-line: #1e3a5f;

  /* Surfaces */
  --surface: #ffffff;
  --bg: #f6f8fb;
  --bg-soft: #fafbfd;
  --bg-stripe: #f9fafc;

  /* Ink */
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --muted-3: #cbd2dc;

  /* Lines */
  --border: #e5e7eb;
  --border-soft: #eef1f5;
  --border-strong: #d1d5db;

  /* Semantic */
  --success: #059669;
  --success-soft: #d1fae5;
  --success-ink: #065f46;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --warning-ink: #92400e;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --danger-ink: #991b1b;
  --info: #2563eb;
  --info-soft: #dbeafe;
  --info-ink: #1e40af;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --purple-ink: #5b21b6;
  --neutral-soft: #f1f3f6;
  --neutral-ink: #374151;
  --orange: #ea580c;
  --orange-soft: #ffedd5;
  --orange-ink: #9a3412;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 39, 71, 0.04), 0 1px 3px rgba(15, 39, 71, 0.04);
  --shadow-md: 0 4px 10px rgba(15, 39, 71, 0.06), 0 2px 4px rgba(15, 39, 71, 0.04);
  --shadow-pop: 0 12px 32px rgba(15, 39, 71, 0.12), 0 4px 12px rgba(15, 39, 71, 0.06);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 150ms;
  --base: 200ms;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
  letter-spacing: -0.005em;
}

/* ---------- Artboard frame (each screen sits inside) ---------- */
.artboard {
  width: 100%;
  height: 100%;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  overflow: auto;
  display: flex;
}

/* ---------- Sidebar (navy) ---------- */
.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--navy);
  color: #cfdbed;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--navy-2);
}
.sidebar-brand {
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--navy-line);
}
.sidebar-brand-v2 {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--navy-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-logo-pill {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow var(--fast) var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.brand-logo-pill:hover {
  box-shadow: 0 0 0 2px rgba(95, 180, 230, 0.35);
}
.brand-logo-pill img {
  height: 36px;
  width: auto;
  display: block;
}
.brand-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e87ac;
  font-weight: 600;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(95, 180, 230, 0.7);
}
.sidebar-brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.sidebar-brand .wm {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.sidebar-brand .wm b {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.sidebar-brand .wm span {
  color: #7a93b9;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-search {
  padding: 12px;
}
.sidebar-search .field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-md);
  padding: 7px 10px;
  color: #8aa3c7;
  font-size: 12.5px;
}
.sidebar-search .kbd {
  margin-left: auto;
  font-size: 10.5px;
  color: #6e87ac;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.sidebar-nav {
  padding: 6px 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  flex: 1;
}
.nav-group {
  display: flex;
  flex-direction: column;
}
.nav-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e87ac;
  padding: 9px 10px 7px;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  user-select: none;
  font-family: inherit;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.nav-group-label > span {
  flex: 1;
  text-align: left;
}
.nav-group-label:hover {
  color: #95acce;
  background: rgba(255, 255, 255, 0.03);
}
.nav-group-label svg {
  width: 13px;
  height: 13px;
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform var(--fast) var(--ease);
}
.nav-group.open > .nav-group-label svg {
  transform: rotate(180deg);
}
/* Katlanır içerik — grid 0fr→1fr ile yumuşak yükseklik animasyonu */
.nav-group-items {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s var(--ease);
}
.nav-group.open > .nav-group-items {
  grid-template-rows: 1fr;
}
.nav-group-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
@media (prefers-reduced-motion: reduce) {
  .nav-group-items { transition: none; }
  .nav-group-label svg { transition: none; }
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--r-md);
  color: #b8c8e0;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.nav-item.active {
  background: rgba(95, 180, 230, 0.13);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(95, 180, 230, 0.18);
}
.nav-item.active svg {
  opacity: 1;
  color: var(--accent);
}
.nav-item .count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: var(--r-full);
}
.nav-item.active .count {
  background: var(--primary);
}
.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-item .count + .nav-dot,
.nav-dot + .count {
  margin-left: 4px;
}
.nav-dot.red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}
.nav-dot.green {
  background: #10b981;
}

.sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--navy-line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-foot .avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
}
.sidebar-foot .who {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
}
.sidebar-foot .who b {
  color: #fff;
  font-weight: 600;
}
.sidebar-foot .who span {
  color: #7a93b9;
  font-size: 10.5px;
}

.nav-item.stub {
  opacity: 0.55;
  cursor: default;
}
.nav-item.stub:hover {
  background: transparent;
  color: #b8c8e0;
}
.nav-item:not(.stub) {
  cursor: pointer;
}

/* ---------- Density variants (body[data-density]) ---------- */
[data-density="compact"] .t tbody td {
  padding: 7px 12px;
  height: 36px;
}
[data-density="compact"] .t thead th {
  padding: 8px 12px;
}
[data-density="compact"] .topbar {
  height: 50px;
}
[data-density="compact"] .page {
  padding: 16px 20px 24px;
  gap: 12px;
}
[data-density="comfy"] .t tbody td {
  padding: 14px 16px;
  height: 52px;
}
[data-density="comfy"] .page {
  padding: 24px 28px 32px;
  gap: 20px;
}

/* Clickable row */
.t tbody tr.clickable {
  cursor: pointer;
}

/* ---------- Tablet (1024px) responsive ---------- */
@media (max-width: 1024px) {
  /* Sidebar collapses to icon-only rail */
  .sidebar {
    width: 68px !important;
  }
  .sidebar-brand-v2 {
    padding: 16px 8px !important;
  }
  .sidebar-brand-v2 .brand-tag,
  .sidebar-search,
  .sidebar-foot .who,
  .nav-group-label,
  .nav-item span,
  .nav-item .count {
    display: none !important;
  }
  /* İkon-rail: gruplar her zaman açık (tüm ikonlar görünsün) */
  .nav-group-items {
    grid-template-rows: 1fr !important;
  }
  .nav-item {
    justify-content: center !important;
    padding: 10px 8px !important;
    margin: 0 8px !important;
  }
  .nav-item .nav-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    margin-left: 0 !important;
  }
  .nav-item {
    position: relative;
  }
  .sidebar-foot {
    justify-content: center;
    padding: 12px 8px !important;
  }
  .sidebar-foot .avatar {
    margin: 0 auto;
  }

  /* Page-head wraps */
  .page-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .page-head .actions {
    flex-wrap: wrap;
    width: 100%;
  }

  /* Metric grids: stack */
  .page > div[style*="grid-template-columns: repeat(6"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .page > div[style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .page > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page > div[style*="grid-template-columns: 1.2fr 1fr 1fr 1fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* TopBar: smaller breadcrumbs/role */
  .topbar .crumbs {
    font-size: 11.5px;
  }

  /* Tab labels: keep but tighter */
  .tab {
    padding: 10px 12px;
    font-size: 12.5px;
  }
}

/* ---------- Signature pad ---------- */
.sig-pad {
  background: #fff;
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  position: relative;
  cursor: crosshair;
  overflow: hidden;
  touch-action: none;
}
.sig-pad canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.sig-pad .sig-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 14px;
  pointer-events: none;
  font-style: italic;
}

/* ---------- File dropzone ---------- */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  background: var(--bg-soft);
  transition: all 150ms var(--ease);
}
.dropzone.drag-over {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: scale(1.01);
}

/* ---------- Print preview ---------- */
.print-shell {
  background: linear-gradient(180deg, #2a3447 0%, #1a2233 100%);
  padding: 32px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 700px;
}
.print-paper {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  transform-origin: top center;
  transition: transform 200ms var(--ease);
}
.print-paper.zoom-50 { transform: scale(0.5); }
.print-paper.zoom-75 { transform: scale(0.75); }
.print-paper.zoom-100 { transform: scale(1); }
.print-paper.zoom-125 { transform: scale(1.25); }
.qe-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 71, 0.55);
  backdrop-filter: blur(6px);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn 150ms ease-out;
}
.qe-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: popIn 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.qe-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.qe-body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px;
  background: var(--bg-soft);
}
.qe-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* Score table: keep first column sticky */
.score-table {
  font-size: 13px;
}
.score-table .score-cell {
  vertical-align: middle;
}
.score-table input[type="number"]::-webkit-inner-spin-button,
.score-table input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.score-table input[type="number"] {
  -moz-appearance: textfield;
}

/* NCAR card hover */
.ncar-card {
  transition: box-shadow 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.ncar-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ---------- Main ---------- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  min-width: 1200px; /* prototype: keep dashboard usable; horizontal scroll on tiny viewports */
}

/* ---------- Top bar ---------- */
.topbar {
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  flex-shrink: 0;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs b {
  color: var(--text);
  font-weight: 600;
}
.crumbs svg {
  width: 12px;
  height: 12px;
  color: var(--muted-2);
}
.topbar .spacer {
  flex: 1;
}
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--info-ink);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #dbeafe;
}
.role-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--primary);
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}
.icon-btn:hover {
  background: var(--bg);
  color: var(--text);
}
.icon-btn .dot-notify {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--danger);
  border: 2px solid var(--surface);
}
.avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #2563eb, #5fb4e6);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 11.5px;
}

/* ---------- Page content ---------- */
.page {
  padding: 20px 24px 28px;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.page-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.page-head .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.page-head .actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast)
    var(--ease), transform 80ms var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover {
  background: var(--bg);
}
.btn:active {
  transform: scale(0.98);
}
.btn svg {
  width: 14px;
  height: 14px;
}
.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.ghost:hover {
  background: var(--bg);
  color: var(--text);
}
.btn.sm {
  padding: 4px 8px;
  font-size: 12px;
  gap: 5px;
}
.btn.sm svg {
  width: 12px;
  height: 12px;
}
.btn.danger {
  color: var(--danger);
  border-color: #fecaca;
  background: #fef2f2;
}
.btn.danger:hover {
  background: #fee2e2;
}

/* ---------- Cards ---------- */
.card {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.card-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.card-head .meta {
  font-size: 12px;
  color: var(--muted);
}
.card-head .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-body {
  padding: 16px;
}
.card-body.flush {
  padding: 0;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  line-height: 1.5;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: currentColor;
  opacity: 0.85;
}
.badge.gray {
  background: var(--neutral-soft);
  color: var(--neutral-ink);
}
.badge.blue {
  background: var(--info-soft);
  color: var(--info-ink);
}
.badge.purple {
  background: var(--purple-soft);
  color: var(--purple-ink);
}
.badge.green {
  background: var(--success-soft);
  color: var(--success-ink);
}
.badge.red {
  background: var(--danger-soft);
  color: var(--danger-ink);
}
.badge.dark {
  background: #d1d5db;
  color: #1f2937;
}
.badge.orange {
  background: var(--orange-soft);
  color: var(--orange-ink);
}
.badge.yellow {
  background: var(--warning-soft);
  color: var(--warning-ink);
}
.badge.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ---------- Tables ---------- */
table.t {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.t thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--bg-stripe);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}
.t tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  height: 44px;
}
.t tbody tr:hover td {
  background: var(--bg-soft);
}
.t tbody tr:last-child td {
  border-bottom: none;
}
.t .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}
.t .nm {
  display: flex;
  align-items: center;
  gap: 9px;
}
.t .nm .av {
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.t .nm b {
  font-weight: 600;
  color: var(--text);
}
.t .nm small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.t .actions {
  text-align: right;
  white-space: nowrap;
}
.t .actions .icon-btn {
  width: 28px;
  height: 28px;
  /* icon-btn blok seviyesinde; hücrede birden fazlası alt alta diziliyordu.
     Aday listesine ikinci ikon (Aday Dosyası) eklenince ortaya çıktı. */
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
}
.t .actions .icon-btn svg {
  width: 14px;
  height: 14px;
}
.checkbox {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox.checked::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -1px);
}

/* ---------- Stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.step .ix {
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.step .lab {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.step .lab b {
  font-size: 13px;
  font-weight: 600;
}
.step .lab span {
  font-size: 11.5px;
  color: var(--muted);
}
.step.done .ix {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step.done .lab b {
  color: var(--text);
}
.step.active .ix {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--info-soft);
}
.step.active .lab b {
  color: var(--primary-press);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.step-line.done {
  background: var(--success);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  background: var(--surface);
}
.tab {
  padding: 12px 14px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab .pill {
  font-size: 10.5px;
  background: var(--bg);
  color: var(--muted);
  padding: 1px 6px;
  border-radius: var(--r-full);
  font-weight: 600;
}
.tab.active .pill {
  background: var(--primary-soft);
  color: var(--primary-press);
}

/* ---------- Metric card ---------- */
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.metric .lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.metric .ic {
  width: 26px;
  height: 26px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
}
.metric .ic svg {
  width: 14px;
  height: 14px;
}
.metric.tone-blue .ic {
  background: var(--info-soft);
  color: var(--info-ink);
}
.metric.tone-green .ic {
  background: var(--success-soft);
  color: var(--success-ink);
}
.metric.tone-orange .ic {
  background: var(--orange-soft);
  color: var(--orange-ink);
}
.metric.tone-purple .ic {
  background: var(--purple-soft);
  color: var(--purple-ink);
}
.metric.tone-red .ic {
  background: var(--danger-soft);
  color: var(--danger-ink);
}
.metric .val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.metric .delta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.metric .delta b {
  font-weight: 600;
}
.metric .delta.up b {
  color: var(--success);
}
.metric .delta.dn b {
  color: var(--danger);
}

/* ---------- Misc ---------- */
.kbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.kbar .search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px 10px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
}
.kbar .search input {
  border: 0;
  background: transparent;
  outline: none;
  flex: 1;
  font: inherit;
  color: var(--text);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--border-strong);
}
.chip.on {
  background: var(--primary-soft);
  border-color: #bfdbfe;
  color: var(--info-ink);
}
.chip .x {
  color: var(--muted-2);
  width: 12px;
  height: 12px;
}

.divider {
  height: 1px;
  background: var(--border-soft);
}
.kv {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kv span {
  font-size: 11.5px;
  color: var(--muted);
}
.kv b {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.003em;
}

/* Utility */
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--font-mono);
}

/* ============================================================= */
/*  Brosis CRM — gerçek uygulama uyarlaması (prototip → tam ekran) */
/* ============================================================= */
html, body { height: 100%; margin: 0; }
.artboard { height: 100vh; }
.main { min-width: 0; }            /* prototipteki 1200px zorlamasını kaldır */
a { color: inherit; text-decoration: none; }
.nav-item a { display: contents; } /* link sarmalı layout'u bozmasın */
input, button, select, textarea { font-family: inherit; }

[x-cloak] { display: none !important; }


/* ============================================================= */
/* Mobile Responsive (640px + 1024px breakpoints) */
/* ============================================================= */

/* ---------- Hamburger button (mobile only) ---------- */
.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0;
  transition: background var(--fast) var(--ease);
}
.hamburger:hover {
  background: var(--bg);
}
.hamburger:active {
  transform: scale(0.96);
}
.hamburger svg {
  width: 20px;
  height: 20px;
}

/* Scrim overlay (blocks interaction with content) */
.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 250;
}
.sidebar-scrim.open {
  display: block;
}

/* ---------- Tablet (1024px) — icon-only sidebar ---------- */
@media (max-width: 1024px) {
  .sidebar {
    width: 68px !important;
  }
  
  .sidebar-brand-v2 {
    padding: 16px 8px !important;
  }
  
  .sidebar-brand-v2 .brand-tag,
  .sidebar-search,
  .sidebar-foot .who,
  .nav-group-label,
  .nav-item span,
  .nav-item .count {
    display: none !important;
  }
  /* İkon-rail: gruplar her zaman açık (tüm ikonlar görünsün) */
  .nav-group-items {
    grid-template-rows: 1fr !important;
  }
  
  .nav-item {
    justify-content: center !important;
    padding: 10px 8px !important;
    margin: 0 8px !important;
    position: relative;
  }
  
  .nav-item .nav-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    margin-left: 0 !important;
  }
  
  .sidebar-foot {
    justify-content: center;
    padding: 12px 8px !important;
  }
  
  .sidebar-foot .avatar {
    margin: 0 auto;
  }
  
  .page-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .page-head .actions {
    flex-wrap: wrap;
    width: 100%;
  }
  
  .page > div[style*="grid-template-columns: repeat(6"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .page > div[style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .page > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .page > div[style*="grid-template-columns: 1.2fr 1fr 1fr 1fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .topbar .crumbs {
    font-size: 11.5px;
  }
  
  .tab {
    padding: 10px 12px;
    font-size: 12.5px;
  }
}

/* ---------- Mobile (640px) — off-canvas drawer ---------- */
@media (max-width: 640px) {
  #root, html, body {
    height: 100dvh;
  }
  
  .artboard {
    overflow-x: hidden !important;
  }
  
  .main {
    min-width: 0 !important;
    overflow: visible;
  }
  
  /* Sidebar becomes fixed off-canvas drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px !important;
    transform: translateX(-100%);
    transition: transform 240ms var(--ease);
    z-index: 300;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  /* Restore full labels inside drawer (override tablet icon-rail) */
  .sidebar .sidebar-brand-v2 {
    padding: 14px 14px 12px !important;
  }
  
  .sidebar .brand-tag,
  .sidebar .sidebar-search,
  .sidebar .sidebar-foot .who,
  .sidebar .nav-group-label,
  .sidebar .nav-item span,
  .sidebar .nav-item .count {
    display: revert !important;
  }
  
  .sidebar .nav-item {
    justify-content: flex-start !important;
    padding: 9px 12px !important;
    margin: 1px 8px !important;
  }
  
  .sidebar .nav-item .nav-dot {
    position: static !important;
    margin-left: auto !important;
  }
  
  .sidebar .nav-item .count {
    margin-left: auto !important;
  }
  
  .sidebar .sidebar-foot {
    justify-content: flex-start !important;
    padding: 12px !important;
  }
  
  /* Scrim blocks interaction when drawer is open */
  .sidebar-scrim.open {
    display: block;
  }
  
  /* Show hamburger button, tighten topbar */
  .hamburger {
    display: inline-flex !important;
  }
  
  .topbar {
    height: 52px !important;
    padding: 0 12px !important;
    gap: 10px;
  }
  
  .topbar .crumbs {
    font-size: 12px;
    max-width: 45vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  
  .topbar .crumbs span:not(:last-child),
  .topbar .crumbs svg:nth-of-type(-n+1) {
    display: none;
  }
  
  .role-pill {
    display: none !important;
  }
  
  .topbar .spacer {
    flex: 1;
  }
  
  /* Page content tighter on mobile */
  .page {
    padding: 12px 12px 28px !important;
    gap: 12px !important;
  }
  
  .page-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .page-head h1 {
    font-size: 18px !important;
  }
  
  .page-head .actions {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .page-head .actions .btn {
    /* `flex:1; min-width:100px` üç düğmeyi tek satıra sıkıştırıp
       etiketleri KIRPIYORDU ("Soğuk Aramadan Çev…", "Toplu Kampany…").
       Kap zaten flex-wrap:wrap — içeriğe göre büyüyüp sığmayan alt
       satıra insin. (25.08.2026) */
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    min-height: 40px;
  }
  
  /* Collapse multi-column grids to single column */
  .artboard .page [style*="repeat(2"],
  .artboard .page [style*="repeat(3"],
  .artboard .page [style*="repeat(4"],
  .artboard .page [style*="repeat(5"],
  .artboard .page [style*="repeat(6"],
  .artboard .page [style*="fr 1fr"],
  .artboard .page [style*="260px 1fr"],
  .artboard .page [style*="280px 1fr"],
  .artboard .page [style*="320px 1fr"],
  .artboard .page [style*="340px 1fr"],
  .artboard .page [style*="380px 1fr"],
  .artboard .page [style*="1fr 320px"],
  .artboard .page [style*="1fr 280px"],
  .artboard .page [style*="1fr 340px"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Multi-pane layouts (tasks/chats) stack with min-height reset */
  .page [style*="260px 1fr 340px"],
  .page [style*="320px 1fr 320px"],
  .page [style*="380px 1fr"] {
    min-height: 0 !important;
  }
  
  /* Tables scroll horizontally inside their card */
  .page {
    overflow-x: hidden !important;
  }
  
  .artboard .page .card:has(table.t),
  .artboard .page [style*="overflow"]:has(> table.t) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .page table.t {
    min-width: 560px;
  }
  
  /* Sticky panels become static on mobile */
  .page [style*="position: sticky"] {
    position: static !important;
  }
  
  /* Modal sizing */
  .artboard div[style*="position: fixed"][style*="inset"] > div {
    max-width: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
  }
  
  /* Stepper wraps on mobile */
  .stepper {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ÇALIŞMA ALANI ŞERİDİ (workspace bar)
   Üç alan: CRM·Satış / Belgelendirme·17024 / Kalite·Sistem
   Şerit tam genişlikte, sidebar'ın ÜSTÜNDE durur; body flex column olur.
   bkz. docs/crm-recon/17024-icerik-mimarisi.md
   ═══════════════════════════════════════════════════════════════ */
body.has-ws {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
}
body.has-ws .artboard {
  flex: 1;
  min-height: 0;
  height: auto;
}

.wsbar {
  flex: none;
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 40px;
  padding: 0 10px;
  background: var(--navy-2);
  border-bottom: 1px solid #071528;
  overflow-x: auto;
  scrollbar-width: none;
}
.wsbar::-webkit-scrollbar { display: none; }

.wsb {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: #8fa8c8;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .13s, background .13s, border-color .13s;
}
.wsb:hover { color: #d6e3f5; background: rgba(255,255,255,.05); }
.wsb.on {
  color: #fff;
  font-weight: 600;
  background: var(--navy);
  border-bottom-color: #5b8def;
}
.wsb:focus-visible { outline: 2px solid #5b8def; outline-offset: -2px; }

/* Uzun etiket masaüstünde, kısa etiket dar ekranda */
.wsb-kisa { display: none; }
@media (max-width: 640px) {
  /* mobilde adres çubuğu payı: sabit 100vh yerine dinamik yükseklik */
  body.has-ws { height: 100dvh; min-height: 100dvh; }
  .wsbar { height: 38px; padding: 0 6px; }
  .wsb { padding: 0 12px; font-size: 12.5px; }
  .wsb-uzun { display: none; }
  .wsb-kisa { display: inline; }
}

/* ---------- Saha mobil uygulaması ----------
   Uygulama kendi alt sekmelerini çiziyor (Bugün · Soğuk Arama · Lead ·
   Adaylar · Çağrılar). Sol menü orada ikinci bir navigasyon oluyor:
   tablette 68px'lik ikon rayı alt sekmelerle yan yana duruyordu, telefonda
   da dar ekrandan yer yiyordu. Uygulama içinde tamamen kaldırılıyor —
   tarayıcıda hiçbir şey değişmez. */
/* Marka şeridi uygulamada gereksiz — uygulamanın kendisi zaten Brosis,
   ikonu ve adı sistem tarafında görünüyor. Grup şeridi KALIR: alt sekmeler
   yalnız 5 kısayol, kalan modüllere oradan gidiliyor. */
html[data-saha-app] .wsbar {
  display: none !important;
}
html[data-saha-app] .artboard {
  height: 100%;
}
html[data-saha-app] .main {
  width: 100% !important;
}

/* ==========================================================================
   Yatay navigasyon
   Sol menü 248px yiyordu; soğuk arama / aday listeleri gibi geniş tablolarda
   içerik sıkışıyordu. Gruplar üstte açılır menüye taşındı. Tık sayısı
   artmadı: sol menüde de yalnız aktif grup açıktı.
   ========================================================================== */
body.yatay-nav .artboard { display: block; }
body.yatay-nav .main { width: 100%; }

/* Marka + çalışma alanı şeridi */
.ws-brand {
  display: inline-flex;
  align-items: center;
  padding: 0 12px 0 2px;
  flex: none;
}
.ws-brand img { height: 22px; width: auto; display: block; }
.ws-tek {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  color: #8fa8c8;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

/* Grup şeridi */
.topnav {
  flex: none;
  display: flex;
  align-items: stretch;
  height: 42px;
  padding: 0 8px;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-2);
  position: relative;
  z-index: 60;
}
.tn-liste {
  display: flex;
  align-items: stretch;
  gap: 1px;
  flex: 1;
  min-width: 0;
  /* overflow YOK: `overflow-x: auto` tarayıcıda overflow-y'yi de auto yapar
     (spec gereği ikisi birden visible olmalı) ve aşağı açılan menü kırpılır.
     Sığmayan gruplar alt satıra insin — kaydırma çubuğu aramaktan iyi. */
  flex-wrap: wrap;
}
.tn-grup { position: relative; display: flex; }

.tn-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #b9cbe3;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.1px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tn-label:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.tn-label svg { width: 13px; height: 13px; opacity: 0.6; }
/* Bulunduğun grup şeritte işaretli kalsın — açılır menü kapalıyken de
   hangi bölümde olduğun görünsün. */
.tn-label.on {
  color: #fff;
  border-bottom-color: var(--primary, #3b82f6);
}

/* Açılır menü */
.tn-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 236px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  border-top: 0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 6px;
  z-index: 200;
}
.tn-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.tn-item:hover { background: var(--bg-soft); }
.tn-item.active { background: var(--primary-soft, #eff6ff); color: var(--primary); font-weight: 500; }
.tn-item svg { width: 15px; height: 15px; flex: none; opacity: 0.7; }
.tn-item .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 999px;
}
.tn-item.stub { opacity: 0.5; pointer-events: none; }

/* Üst çubuğa taşınan arama */
.tb-ara {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 210px;
  max-width: 320px;
  padding: 0 10px;
  height: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.tb-ara svg { width: 14px; height: 14px; opacity: 0.5; flex: none; }
.tb-ara input {
  border: 0; outline: 0; background: transparent; flex: 1; min-width: 0;
  font: inherit; font-size: 13px; color: inherit;
}

.tn-ham { display: none; }

/* Dar ekran: 8 grubu parmakla yatay kaydırmak zahmetli — dikey panel. */
@media (max-width: 820px), screen and (max-width: 1100px) and (max-height: 520px) {
  .tn-ham {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #b9cbe3;
    cursor: pointer;
  }
  .tn-liste {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-2);
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px;
    gap: 2px;
  }
  .tn-liste.acik { display: flex; }
  .tn-grup { display: block; }
  .tn-label { width: 100%; justify-content: space-between; padding: 11px 12px; }
  .tn-menu {
    position: static;
    box-shadow: none;
    border-radius: 8px;
    border-top: 1px solid var(--border);
    margin: 2px 0 6px;
  }
  .tb-ara { min-width: 0; }
  .tb-ara .kbd { display: none; }
}

/* ---------- Modal katmanı ----------
   Alpine'ın x-show'u inline `display` özelliğini YÖNETİR: gizlerken
   `display:none` yazar, gösterirken inline display'i siler — elemana
   `style="display:flex"` yazılmışsa o da silinir ve kutu `block` olarak
   sola yapışır. Bu yüzden display sınıfta durmalı, inline'da değil. */
.modal-katman {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
}

/* Seçim yapılınca beliren toplu işlem çubuğu. x-show ile açıldığı için
   display yukarıdaki gerekçeyle burada; inline yazılırsa kayboluyor. */
.toplu-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.toplu-bar .sayac { font-size: 13px; margin-right: 2px; }
.toplu-bar label { display: flex; align-items: center; gap: 5px; font-size: 12.5px; }

/* ---------- 17024 Aday Dosyası (Vidco `applicant/view` eşdeğeri) ----------
   Sol menü + içerik; künye bandı 3 kolon. Vidco'nun yerleşimi bilerek
   korunuyor: ekip iki sistem arasında gidip gelirken aradığını aynı
   yerde bulsun. */
/* Alanlar kutulu (tasarım). Önce üç kolonlu, alt çizgili satırlardı;
   uzun değerler sarınca hangi değerin hangi etikete ait olduğu göz
   taramada karışıyordu. Kutu sınırı bunu bitiriyor: etiket üstte küçük,
   değer altında. */
.kunye {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
/* Bölümler alanları üç sarmalayıcı <div> içinde gruplu tutuyor;
   display:contents onları ızgaradan siliyor, alanlar doğrudan hücre
   oluyor. HTML'i düzleştirmek yerine bu — sarmalayıcılar bazı
   bölümlerde mantıksal ayrımı taşıyor. */
.kunye > div:not(.kv) { display: contents; }
.kunye .kv {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  min-width: 0;
}
.kunye .kv .k {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.kunye .kv .v {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  min-width: 0;
  word-break: break-word;
}
.kunye .kv .v.mono { font-family: var(--mono, ui-monospace, monospace); font-weight: 500; }

/* Alan grubu başlığı (BAŞVURU · ONAY · GEÇERLİLİK). Alanlar tek yığın
   hâlindeyken "onay tarihi mi geçerlilik mi" ayrımı okuyarak yapılıyordu. */
.dosya-grup { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.dosya-grup > .gb {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--muted-3);
}
/* Bölüm başlığı + sağdaki aksiyonlar */
.dosya-bas {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.dosya-bas h3 { font-size: 16px; font-weight: 700; margin: 0; }
.dosya-bas .akt { display: flex; gap: 8px; flex-wrap: wrap; }
/* Bilgi şeridi — bölüm neden boş / ne yapılmalı */
.dosya-bilgi {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; border-radius: 10px;
  background: var(--bg-soft); color: var(--muted-2);
  font-size: 12.5px; margin-bottom: 14px;
}
@media (max-width: 1100px) { .kunye { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .kunye { grid-template-columns: minmax(0, 1fr); } }

.dosya {
  display: grid;
  grid-template-columns: 232px 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.dosya-menu {
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 6px 0;
}
.dosya-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--text-2);
  border-left: 3px solid transparent;
}
.dosya-menu a span {
  flex: 0 0 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--border-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.dosya-menu a:hover { background: #fff; }
.dosya-menu a.on {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}
.dosya-menu a.on span { background: var(--primary-soft); color: var(--primary); }

/* Grup başlığı + eksik rozeti (tasarım). `.dosya-menu a span` kuralı
   TÜM span'leri numara kutusuna çeviriyordu; ad ve rozet ondan
   muaf tutuluyor. */
.dosya-menu .dm-grup {
  padding: 12px 14px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--muted-3);
}
.dosya-menu .dm-grup:first-child { padding-top: 6px; }
.dosya-menu a .dm-ad {
  flex: 1;
  height: auto;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  display: block;
  text-align: left;
}
.dosya-menu a .dm-rozet {
  flex: none;
  height: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning-ink);
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
}
/* Not sayısı bir uyarı değil, bilgi — turuncu olması "eksik" gibi
   okunuyordu. */
.dosya-menu a .dm-rozet.sayi {
  background: var(--success-soft);
  color: var(--success-ink);
}

.dosya-icerik { padding: 16px 18px; min-width: 0; }
.dosya-h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.dosya-not {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 9px 12px;
}
.dosya-not code { font-size: 11px; }
.dosya-bos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 0;
  color: var(--muted-2);
  font-size: 12.5px;
}
.dosya-modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 430px;
  max-width: 94vw;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}
.dosya-modal-bas {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .kunye { grid-template-columns: 1fr; }
  .dosya { grid-template-columns: 1fr; }
  .dosya-menu {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
  }
  .dosya-menu a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .dosya-menu a.on { border-left: 0; border-bottom-color: var(--primary); }
}

/* ---------- Kolon filtre satırı (Vidco aday listesi deseni) ----------
   Her kolonun ALTINDA kendi filtresi. Vidco'nun "çok detaylı" hissinin
   teknik karşılığı bu; tek arama kutusu aynı işi görmüyor. */
.kolon-filtre th {
  padding: 5px 8px 8px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.kolon-filtre input,
.kolon-filtre select {
  width: 100%;
  min-width: 84px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 7px;
  font: inherit;
  font-size: 11.5px;
  background: #fff;
  outline: 0;
  color: var(--text);
}
.kolon-filtre input:focus,
.kolon-filtre select:focus { border-color: var(--primary); }
.kolon-filtre input::placeholder { color: var(--muted-2); }

/* ── v2 aday ekranları ortak birimleri ─────────────────────────────
   Buton · aşama hapı · renk noktası. Önce candidates.html'in kendi
   <style>'ındaydı; aday detayı da aynılarını kullanıyor ve kopyalayınca
   iki yerde ayrı ayrı kayıyorlardı. Ton sınıfları YALNIZ hap ve noktaya
   kapsamlı — kapsamsız bırakınca aynı sınıfı taşıyan her şeyi boyuyor. */
.abtn{height:38px;padding:0 13px;display:inline-flex;align-items:center;gap:7px;
      border-radius:8px;border:1px solid var(--border);background:var(--surface);
      color:var(--text-2);font:inherit;font-size:13px;font-weight:500;cursor:pointer;
      text-decoration:none;white-space:nowrap}
.abtn:hover{border-color:var(--border-strong)}
.abtn.mavi{border-color:var(--primary);background:var(--primary);color:#fff;font-weight:600}
.abtn.sm{height:32px;padding:0 11px;font-size:12.5px}

.apil{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 9px;
      border-radius:999px;font:inherit;font-size:11.5px;font-weight:600;white-space:nowrap;
      border:1px solid transparent;cursor:pointer}
.apil svg{opacity:.65}
.apil.t-blue{background:var(--primary-soft);color:var(--info-ink)}
.apil.t-orange{background:var(--warning-soft);color:var(--warning-ink)}
.apil.t-purple{background:var(--purple-soft);color:var(--purple-ink)}
.apil.t-green{background:var(--success-soft);color:var(--success-ink)}
.apil.t-red{background:var(--danger-soft);color:var(--danger-ink)}
.apil.t-gray{background:var(--bg-soft);color:var(--muted)}
.adot{width:6px;height:6px;border-radius:999px;flex:none;display:inline-block}
.adot.t-blue{background:var(--primary)}.adot.t-orange{background:var(--warning)}
.adot.t-purple{background:var(--purple)}.adot.t-green{background:var(--success)}
.adot.t-red{background:var(--danger)}.adot.t-gray{background:var(--muted-2)}


/* ── Aday künye kartı + sekme şeridi ──────────────────────────────
   Detay ekranı ile Aday Dosyası ORTAK kullanıyor (tasarımda dosya
   ayrı sayfa değil, üçüncü sekme). Şablon içi <style>'da kalınca
   dosya ekranında stilsiz çıkıyordu. */
.ad{display:flex;flex-direction:column;gap:14px}
.ad-ust{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ad-gez{display:flex;align-items:center;gap:5px}
.ad-ok{width:30px;height:30px;display:flex;align-items:center;justify-content:center;
       border-radius:8px;border:1px solid var(--border);background:var(--surface);
       color:var(--text-2);text-decoration:none}
.ad-ok:hover{background:var(--bg-soft)}
.ad-ok.pasif{opacity:.4;pointer-events:none}
.ad-konum{font-size:12px;color:var(--muted);min-width:48px;text-align:center}
.ad-kart{background:var(--surface);border:1px solid var(--border);border-radius:14px}
.ad-kunye{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
          padding:16px 18px;flex-wrap:wrap}
.ad-sol{display:flex;align-items:center;gap:13px;min-width:0}
.ad-avatar{width:50px;height:50px;flex:none;border-radius:12px;display:flex;
           align-items:center;justify-content:center;background:var(--primary);
           color:#fff;font-size:16px;font-weight:700;letter-spacing:.02em}
.ad-kim{display:flex;flex-direction:column;gap:5px;min-width:0}
.ad-satir1{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ad-ad{font-size:20px;font-weight:700;letter-spacing:-.01em;overflow-wrap:anywhere}
.ad-bot{padding:2px 8px;border-radius:999px;background:var(--success-soft);
        color:var(--success-ink);font-size:11px;font-weight:600}
.ad-satir2{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
           font-size:12.5px;color:var(--muted-2)}
.ad-akt{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ad-wa{height:38px;padding:0 15px;display:flex;align-items:center;gap:8px;
       border-radius:10px;border:1px solid var(--success);background:var(--success);
       color:#fff;font-size:13px;font-weight:600;text-decoration:none}
.ad-nokta{padding:0 11px}
.ad-sekme{display:flex;gap:4px;padding:0 18px;border-top:1px solid var(--border-soft)}
.ad-sk{padding:11px 12px;font-size:13.5px;font-weight:600;color:var(--muted-2);
       text-decoration:none;border-bottom:2px solid transparent;display:flex;
       align-items:center;gap:6px}
.ad-sk:hover{color:var(--text)}
.ad-sk.on{color:var(--primary);border-bottom-color:var(--primary)}
.ad-sy{padding:0 6px;border-radius:999px;background:var(--bg-soft);
       font-size:11px;color:var(--muted)}
/* Sol kolon geniş: iş orada. Sağ kolon sabit — durum kartları dar. */
.ad-govde{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
          gap:14px;align-items:start}
.ad-kol{display:flex;flex-direction:column;gap:14px;min-width:0}
.ad-k{background:var(--surface);border:1px solid var(--border);border-radius:14px;
      padding:15px 16px;display:flex;flex-direction:column;gap:11px}
.ad-k-bas{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ad-k-b{font-size:14px;font-weight:700}
.ad-k-m{font-size:12px;color:var(--muted)}
.ad-bos{font-size:12.5px;color:var(--muted-3)}
.ad-adim{display:flex;align-items:center;justify-content:space-between;gap:12px;
         padding:14px 15px;border-radius:12px;background:var(--info-soft)}
.ad-adim-m{display:flex;flex-direction:column;gap:3px;min-width:0}
.ad-adim-b{font-size:15px;font-weight:700;color:var(--info-ink)}
.ad-adim-i{font-size:12.5px;color:var(--info-ink);opacity:.82}
.ad-cipler{display:flex;flex-wrap:wrap;gap:7px}
.ad-cipler a{display:flex;align-items:center;gap:4px;padding:7px 12px;
             border-radius:999px;border:1px solid var(--border);color:var(--text-2);
             font-size:12.5px;font-weight:600;text-decoration:none}
.ad-cipler a:hover{border-color:var(--primary);color:var(--primary)}
.ad-zaman{display:flex;flex-direction:column;gap:11px}
.ad-olay{display:flex;align-items:flex-start;gap:9px}
.ad-nokta-i{width:7px;height:7px;flex:none;margin-top:5px;border-radius:999px;
            background:var(--primary)}
.ad-olay-m{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.ad-olay-b{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.ad-olay-a{font-size:11.5px;color:var(--muted-3)}
.ad-olay-t{font-size:11.5px;color:var(--muted);white-space:nowrap}
.ad-tut{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.ad-tut-b{font-size:26px;font-weight:700;letter-spacing:-.02em}
.ad-tut-k{font-size:13px;color:var(--muted)}
.ad-bar{height:6px;border-radius:999px;background:var(--bg-soft);overflow:hidden}
.ad-bar-i{height:100%;border-radius:999px}
.ad-kalan{display:flex;align-items:center;justify-content:space-between;
          font-size:12.5px;color:var(--muted-2)}
.ad-git{height:38px;display:flex;align-items:center;justify-content:center;gap:6px;
        border-radius:10px;border:1px solid var(--border);color:var(--text-2);
        font-size:12.5px;font-weight:600;text-decoration:none}
.ad-git:hover{border-color:var(--primary);color:var(--primary)}
.ad-liste{display:flex;flex-direction:column;gap:9px}
.ad-sat{display:flex;align-items:center;justify-content:space-between;gap:10px;
        font-size:12.5px;color:var(--muted-2)}
.ad-sat b{font-weight:600;color:var(--text-2)}
/* Eksik olan turuncu: "atanmadı" ile "12.06.2026" aynı renkte olursa
   göz taramada ayıramıyor. */
.ad-eksik{color:var(--warning-ink)}
.ad-mini{padding:5px 10px;border-radius:8px;border:1px solid var(--border);
         background:var(--surface);color:var(--primary);font-size:12px;
         font-weight:600;cursor:pointer;text-decoration:none}
.ad-satis{flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap}
.ad-satis-m{font-size:12.5px;color:var(--muted-2)}
.ad-chat{display:flex;flex-direction:column;overflow:hidden}
.ad-chat-bas{display:flex;align-items:center;gap:11px;padding:13px 16px;
             border-bottom:1px solid var(--border-soft)}
.ad-chat-k{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;
           color:var(--success-ink)}
.ad-chat-t{font-size:12.5px;color:var(--muted-2)}
.ad-chat-m{margin-left:auto;font-size:12px;color:var(--muted)}
.ad-chat-govde{padding:16px;display:flex;flex-direction:column;gap:9px;
               max-height:460px;overflow-y:auto;background:var(--bg-soft)}
.ad-baloncuk{max-width:76%;padding:9px 12px;border-radius:12px;
             background:var(--surface);border:1px solid var(--border-soft);
             display:flex;flex-direction:column;gap:3px}
.ad-baloncuk.ben{align-self:flex-end;background:var(--success-soft);
                 border-color:transparent}
.ad-b-metin{font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}
.ad-b-t{font-size:10.5px;color:var(--muted);align-self:flex-end}
.ad-chat-bos{padding:30px;display:flex;flex-direction:column;align-items:center;
             gap:5px;font-size:13px;color:var(--muted-2)}
.ad-chat-alt{padding:12px 16px;border-top:1px solid var(--border-soft);
             display:flex;flex-wrap:wrap;gap:8px}
/* "⋯" açılır menüsü — yıkıcı işler (sil / lead'e geri al) burada. */
.ad-dd{position:relative}
.ad-dd>summary{list-style:none;padding:0 11px}
.ad-dd>summary::-webkit-details-marker{display:none}
.ad-dd-i{position:absolute;top:42px;right:0;z-index:40;min-width:210px;padding:6px;
         background:var(--surface);border:1px solid var(--border);border-radius:12px;
         box-shadow:0 12px 32px rgba(15,23,42,.14);display:flex;flex-direction:column;gap:2px}
.ad-dd-i>*,.ad-dd-i form>button,.ad-dd-i button{width:100%;display:flex;align-items:center;
         gap:8px;padding:8px 10px;border-radius:8px;border:0;background:none;
         color:var(--text-2);font:inherit;font-size:12.5px;font-weight:600;
         text-align:left;text-decoration:none;cursor:pointer}
.ad-dd-i form{padding:0}
.ad-dd-i>*:hover,.ad-dd-i button:hover{background:var(--bg-soft)}
.ad-dd-uyari{color:var(--warning-ink)!important}
.ad-bos a{color:var(--primary);text-decoration:none}
/* Dar ekranda iki kolon yan yana sığmıyor. */
@media (max-width:1080px){ .ad-govde{grid-template-columns:1fr} }
@media (max-width:640px){ .ad-kunye{flex-direction:column;align-items:stretch} }

/* ── Paylaşılan <dialog> modalı ─────────────────────────────────────
   Bu kurallar _lead_yeni.html içinde sayfa-yerel <style> bloğundaydı;
   o parçayı içermeyen ekranda (Aday Dosyası tahsilat iptali) modal
   biçimsiz açılıyordu. Aynı tuzağa daha önce .abtn/.ad-* ile düşüldü. */
.lmodal{max-width:520px;width:calc(100% - 32px);padding:0;border:1px solid var(--border);
        border-radius:14px;background:var(--surface);color:var(--text);
        box-shadow:0 18px 48px rgba(15,23,42,.24)}
.lmodal::backdrop{background:rgba(15,23,42,.5)}
.lm-bas{padding:14px 16px;border-bottom:1px solid var(--border-soft);font-weight:700;
        display:flex;align-items:center;justify-content:space-between}
.lm-govde{padding:16px;display:grid;gap:10px}
.lm-govde label{font-size:12px;font-weight:600;display:block}
.lm-govde .mi{margin-top:4px}
.lm-iki{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lm-alt{padding:0 16px 16px;display:flex;justify-content:flex-end;gap:8px}

/* İptal edilmiş tahsilat/link satırı: listede DURUYOR ama para
   sayılmıyor — soluk satır + üstü çizili TUTAR. Gizlemek denetimde
   savunulamıyor.

   Çizgi yalnız tutarda: text-decoration bir bloğa verilince alt inline
   elemanlara geçiyor ve onlar bunu KALDIRAMIYOR (CSS kuralı) — satırın
   tamamı çizilince "İptal" rozetinin de üstü çiziliyordu. Zaten geçersiz
   olan şey tutar; okunması gereken sebep değil. */
.t tr.od-iptal td{color:var(--muted)}
.t tr.od-iptal .tutar{text-decoration:line-through;
                      text-decoration-color:var(--muted-3)}
.od-iz{color:var(--muted-2);font-size:11px}

/* ---------- KPI şeridi (v2/_macros.html kpibar) ----------
   Sütun sayısı --kpi-n ile geliyor. Daha önce satır içi
   `repeat(N,1fr)` idi ve 640px altındaki "çok sütunlu ızgaraları tek
   sütuna indir" kuralına yakalanıyordu: telefonda 4-5 sayaç alt alta
   dizilip ekranın yarısını yiyordu. auto-fit, sayı kaç olursa olsun
   sığdığı kadar sütun açıyor — 375px'te 2, tablette 4. */
.kpibar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(var(--kpi-n, 4), minmax(0, 1fr));
}
@media (max-width: 900px) {
  .kpibar { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBİL DÜZELTMELERİ — 25.09.2026, Hüseyin: «mobil responsivite olarak
   tarar mısın, hatalar var». Gerçek Chromium, 375px (iPhone), 62 ekran.
   Sayfa yatay taşması hiçbir ekranda yoktu — çünkü body overflow-x:hidden
   taşan içeriği KIRPIYOR: 9 ekranda içerik sağdan görünmeden kesiliyordu.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 1) iOS Safari, yazısı 16px'ten küçük kutuya dokununca SAYFAYI
        YAKINLAŞTIRIYOR ve geri uzaklaşmıyor. 62/62 ekranda üstteki arama
        kutusu 13px'ti (#globalSearch); Sınav Bekleyenler'de 661 kutu.
        16px iOS'un eşiği. maximum-scale=1 ile kapatmıyoruz: Android'de
        kullanıcının parmakla yakınlaştırmasını da engeller (erişilebilirlik). */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
  select, textarea { font-size: 16px !important; }
  /* Seçim kutusu en uzun seçeneği kadar genişliyor (Soru Bankası: 476px
     "Tüm birimler A1 · İSG, Çevre ve Kalite…") ve kartın dışına kesiliyordu. */
  select { max-width: 100%; }

  /* 2) Başlıktaki sayfa adı harf ortasından kesiliyordu ("Sınav Planlaı").
        .crumbs flex kap; text-overflow flex KAPTA çalışmaz, metni taşıyan
        öğede çalışır — kural oraya taşındı. */
  .topbar .crumbs { min-width: 0; }
  .topbar .crumbs b, .topbar .crumbs > span:last-child {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  /* 3) Sekme şeritleri sığmayınca son sekme kesiliyordu (Belgeler:
        "MYK No Eksik", Sistem: "Yetki Haritası"). Artık yatay kaydırılır. */
  .tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { flex: none; white-space: nowrap; }

  /* 4) Kart başlığındaki özet/süzgeç satırı sığmayınca kesiliyordu. */
  .card-head { flex-wrap: wrap; }
  .card-head .meta { white-space: normal; }
}

/* ═══════════════════════════════════════════════════════════════════════
   GÖRÜNÜM A · KLASİK — 27.09.2026
   Hüseyin, dört görünüm galerisinden "A"yı seçti: personel Vidco'nun
   yerlerine ve renklerine alışkın. Düzen Vidco'nunkiyle aynı sırada:
     koyu modül şeridi (.wsbar) → mavi bölüm çubuğu (.topnav)
     → beyaz araç çubuğu (.topbar) → açık mavi başlık bandı (.page-head)
     → açık mavi tablo başlığı (.t thead).
   Yalnız token ve kabuk stilleri — sayfa şablonlarına dokunulmadı.
   Geri almak: bu bloğu silmek + fonts.css'teki Fira Sans bloğu.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --font-sans: "Fira Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Rakamlar da Fira Sans, hizalı (tabular) — eş aralıklı yazı tipi telefon
     ve yeterlilik kodunu dar sütunda iki satıra bölüyordu. */
  --font-mono: "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  --bg: #e8ecf2;
  --bg-soft: #f5f7fb;
  --bg-stripe: #f5f7fb;
  --text: #17202f;
  --text-2: #334058;
  --muted: #586379;
  --border: #dce2eb;
  --border-soft: #e8edf3;
  --border-strong: #c3ccda;
  --primary-soft: #e3ecfe;
  --r-md: 7px;
  --r-lg: 10px;
  /* Klasik kabuk renkleri */
  --k-l1: #1e2436;
  --k-l1-ink: #c3cbdd;
  --k-l2: #2f5db3;
  --k-l2-ink: #e6edfb;
  --k-l2-hover: #2a54a6;
  --k-l2-on: #244c99;
  --k-band: #dce8fd;
  --k-band-ink: #14306a;
  --k-band-sub: #48618f;
  --k-th: #d6e3fa;
  --k-th-ink: #1b3a78;
  --k-th-line: #c5d5f2;
  --k-row-hover: #f3f7fe;
}
body { font-feature-settings: normal; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* 1. katman — modül şeridi: etkin modül, mavi çubuğa yapışık sekme */
.wsbar {
  height: 46px;
  align-items: flex-end;
  gap: 3px;
  padding: 0 12px;
  background: var(--k-l1);
  border-bottom: 0;
}
.ws-brand, .ws-tek { align-self: center; }
.wsb {
  height: 38px;
  padding: 0 16px;
  border-radius: 7px 7px 0 0;
  border-bottom: 0;
  color: var(--k-l1-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wsb:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.wsb.on { color: #fff; background: var(--k-l2); }
.ws-tek { color: var(--k-l1-ink); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* 2. katman — bölüm çubuğu */
.topnav {
  height: 44px;
  padding: 0 6px;
  background: var(--k-l2);
  border-bottom: 0;
}
.tn-label {
  padding: 0 13px;
  color: var(--k-l2-ink);
  font-size: 13.5px;
  border-bottom: 3px solid transparent;
}
.tn-label:hover { color: #fff; background: var(--k-l2-hover); }
.tn-label.on { color: #fff; font-weight: 600; background: var(--k-l2-on); border-bottom-color: #fff; }
.tn-label svg { opacity: .75; }
.tn-ham { color: var(--k-l2-ink); }
.tn-menu { border-radius: 0 0 10px 10px; box-shadow: 0 14px 34px rgba(20, 35, 70, .18); }
.tn-item.active { background: var(--primary-soft); color: #1f58c7; }
@media (max-width: 820px), screen and (max-width: 1100px) and (max-height: 520px) {
  .tn-liste { background: var(--k-l2); border-bottom-color: var(--k-l2-on); }
}

/* 3. katman — araç çubuğu: solda yol, sağda arama ve kullanıcı */
.topbar { height: 48px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.topbar .crumbs { order: 1; font-size: 12.5px; }
.topbar .spacer { order: 2; }
.topbar .tb-ara { order: 3; height: 34px; min-width: 260px; max-width: 380px; background: var(--bg-soft); border-radius: 7px; }
.topbar > .row { order: 4; }
.avatar-sm { background: #34405c; }
@media (max-width: 820px), screen and (max-width: 1100px) and (max-height: 520px) {
  .topbar .tb-ara { min-width: 0; flex: 1; }
}

/* İçerik — gri zemin, açık mavi başlık bandı */
.page { padding: 16px 16px 24px; }
.page-head {
  align-items: center;
  padding: 13px 16px;
  background: var(--k-band);
  border-radius: var(--r-lg);
}
.page-head h1 { color: var(--k-band-ink); font-size: 20px; font-weight: 600; letter-spacing: 0; }
.page-head .sub { color: var(--k-band-sub); }
.card { border-radius: var(--r-lg); }
.card-head { background: var(--bg-soft); }

/* Sekmeler — Vidco'nun gri sekmeleri; etkin olan beyaz, üstünde mavi çizgi */
.tabs { gap: 3px; padding: 8px 12px 0; background: var(--bg-soft); }
.tab {
  margin-bottom: 0;
  padding: 8px 14px;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #dde3ec;
}
.tab:hover { background: #d3dae6; }
.tab.active { color: var(--text); background: var(--surface); box-shadow: inset 0 3px 0 var(--k-l2); }

/* Tablolar — açık mavi başlık, sıkı satır */
.t thead th {
  padding: 9px 12px;
  background: var(--k-th);
  color: var(--k-th-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-bottom-color: var(--k-th-line);
}
.t tbody td { padding: 9px 12px; height: 40px; }
.t tbody tr:hover td { background: var(--k-row-hover); }

/* Vidco açılır menüsündeki ara başlıklar (ADAY İŞLEMLERİ, KAYIT İŞLEMLERİ…) */
.tn-baslik {
  padding: 10px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tn-baslik:first-child { padding-top: 4px; }
a.tn-label { text-decoration: none; }

/* Aday süreç çizgisi + sıradaki adım (Aday Dosyası, 27.09.2026) */
.surec {
  list-style: none; margin: 0 0 12px; padding: 16px 10px 12px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.surec li { position: relative; text-align: center; font-size: 12px; color: var(--muted); padding: 0 4px; }
.surec li::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--border-strong); }
.surec li:first-child::before { display: none; }
.surec .sh-d {
  position: relative; z-index: 1; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--surface);
  font-weight: 700; font-size: 12px; color: var(--muted);
}
.surec b { display: block; color: var(--text); font-weight: 600; font-size: 12.5px; }
.surec .sh-alt { display: block; min-height: 16px; font-size: 11.5px; }
.surec li.sh-tamam .sh-d { background: var(--success); border-color: var(--success); color: #fff; }
.surec li.sh-tamam::before, .surec li.sh-simdi::before { background: var(--success); }
.surec li.sh-simdi .sh-d { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.surec li.sh-kapali { opacity: .45; }
.sirdaki {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--r-md);
}
.sirdaki.t-orange { border-left-color: var(--warning); }
.sirdaki.t-red { border-left-color: var(--danger); }
.sirdaki.t-green { border-left-color: var(--success); }
.sirdaki.t-gray { border-left-color: var(--muted-2); }
.sirdaki-e { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sirdaki-m { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.sirdaki-m b { font-size: 14px; }
.sirdaki-m span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .surec { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .surec li:nth-child(4)::before { display: none; }
}

/* Sınav doluluk çubuğu (Sınav Programları, 27.09.2026) */
.doluluk { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.doluluk .dl-ray { flex: 1; height: 6px; border-radius: 99px; background: var(--border-soft); overflow: hidden; display: block; }
.doluluk .dl-ray i { display: block; height: 100%; border-radius: 99px; background: var(--success); }
.doluluk.dolu .dl-ray i { background: var(--warning); }
.doluluk.tas .dl-ray i { background: var(--danger); }
.doluluk .dl-n { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.doluluk.tas .dl-n { color: var(--danger-ink); }

/* ── Uzun modül menüleri (Vidco birebir, 27.09.2026): 15+ ekranlı grup iki
   sütuna bölünür; ekran yüksekliğini aşarsa kendi içinde kayar. ── */
.tn-menu.cok { columns: 2; column-gap: 6px; min-width: 560px; max-width: calc(100vw - 24px);
  max-height: calc(100vh - 150px); overflow-y: auto; }
.tn-menu.cok .tn-item, .tn-menu.cok .tn-baslik { break-inside: avoid; }
.tn-menu.cok .tn-baslik { break-after: avoid; }
.tn-menu .tn-item { white-space: normal; line-height: 1.3; }
.tn-grup:nth-last-child(-n+4) .tn-menu { left: auto; right: 0; }
@media (max-width: 820px), screen and (max-width: 1100px) and (max-height: 520px) {
  .tn-menu.cok { columns: 1; min-width: 0; max-height: none; }
}
/* 12 modül grubu 1440px'te tek satıra sığsın (Vidco birebir menü). */
@media (min-width: 821px) {
  .topnav .tn-label { padding: 0 9px; font-size: 12.5px; gap: 3px; }
  .topnav .tn-label svg { width: 11px; height: 11px; }
}
@media (min-width: 821px) and (max-width: 1360px) {
  .topnav .tn-label { padding: 0 6px; font-size: 12px; }
}
