/* ===== Yönetim Paneli =====
   Görsel ilke: nötr zemin, tek vurgu rengi (--primary) yalnız ana eylemde ve
   seçili menüde. Renk anlam taşır (yeşil=tamam, turuncu=dikkat, kırmızı=hata);
   süs için renk, gradyan, emoji YOK — simgeler simgeler.css (Phosphor). */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #E8002D;
  --primary-dark: #B0001F;
  /* Giris ekrani gradyani — sabit yazilmisti, degiskene alindi ki
     ileride musteri bazli marka rengi tek yerden donsun. */
  --login-ust: #E8002D;
  --login-alt: #8f001c;
  --bg: #f6f7f9;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  /* Hata/red/uzakta — marka renginden AYRI: marka mavi olsa da hata kırmızı kalmalı */
  --hata: #b91c1c;
  --green: #16a34a;
  --amber: #d97706;
  --blue: #2563eb;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16,24,40,0.05);
  --hover: #f9fafb;
  --secili: #f3f4f6;
  --kenar: #111318;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select { font-family: inherit; font-size: 14px; }
a { text-decoration: none; color: inherit; }

/* ===== LOGIN ===== */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 20px;
}
.login-card {
  background: #fff; border-radius: 12px; padding: 36px 32px; width: 100%; max-width: 380px;
  border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(16,24,40,0.08); text-align: center;
}
.login-logo {
  width: 48px; height: 48px; border-radius: 10px; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.login-card h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.login-sub { color: var(--text-muted); margin-bottom: 26px; }
.login-card form { text-align: left; }
.login-card label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; margin-top: 14px; }
.login-card input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fafbfc; transition: border-color .15s;
}
.login-card input:focus { outline: none; border-color: #6b7280; background: #fff; box-shadow: 0 0 0 3px rgba(107,114,128,.15); }
.login-error { color: #b91c1c; font-size: 13px; margin-top: 12px; min-height: 18px; font-weight: 500; }
#loginBtn {
  width: 100%; padding: 10px; background: var(--primary); color: #fff;
  border-radius: var(--radius); font-size: 14px; font-weight: 600; margin-top: 18px;
  transition: background .15s;
}
#loginBtn:hover { background: var(--primary-dark); }
#loginBtn:disabled { opacity: .6; cursor: default; }

/* ===== APP LAYOUT ===== */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 228px; background: var(--kenar); color: #d4d7dc; display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 56px; border-bottom: 1px solid #22252c; }
.sidebar-logo {
  width: 28px; height: 28px; border-radius: 7px; background: var(--primary); color: #fff;
  font-weight: 800; font-size: 12px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-brand span { font-weight: 600; font-size: 14px; color: #fff; }
#nav { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
#nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px; color: #9ca3af; font-weight: 500; font-size: 13.5px;
  transition: background .12s, color .12s; position: relative;
}
#nav a .ik { font-size: 16px; opacity: .85; }
#nav a:hover { background: #1c1f26; color: #e5e7eb; }
#nav a.active { background: #22262e; color: #fff; }
#nav a.active .ik { opacity: 1; color: var(--primary); }
#nav a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--primary); }
.logout-btn {
  margin: 10px; padding: 8px 10px; background: transparent; color: #9ca3af;
  border: 1px solid #262a31; border-radius: 6px; font-weight: 500; font-size: 13px; transition: all .12s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.logout-btn:hover { background: #1c1f26; color: #fff; }

.main { flex: 1; margin-left: 228px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--border); padding: 0 28px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50;
}
.page-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.branch-select {
  padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff;
  color: var(--text); font-weight: 500; font-size: 13px; cursor: pointer;
}
.user-chip { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-muted); font-size: 13px; }
.content { padding: 24px 28px; flex: 1; width: 100%; max-width: 1480px; }

/* ===== COMPONENTS ===== */
.spinner { border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%;
  width: 32px; height: 32px; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-card .val { font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.stat-card .lbl { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.card-pad { padding: 16px 18px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search-input { flex: 1; min-width: 200px; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; }
.search-input:focus, .select-field:focus, .date-field:focus, .branch-select:focus { outline: none; border-color: #6b7280; box-shadow: 0 0 0 3px rgba(107,114,128,.15); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 6px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 13px; }
.tab.active { background: var(--secili); border-color: var(--border-strong); color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border-radius: 6px; font-weight: 500; font-size: 13px; line-height: 1.35; border: 1px solid transparent; transition: background .12s, border-color .12s; white-space: nowrap; }
.btn .ik { font-size: 15px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow); }
.btn-outline:hover { background: var(--hover); }
.btn-green { background: #fff; color: #15803d; border-color: #bbf7d0; }
.btn-green:hover { background: #f0fdf4; }
.btn-red { background: #fff; color: #b91c1c; border-color: #fecaca; }
.btn-red:hover { background: #fef2f2; }
.btn-blue { background: #fff; color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow); }
.btn-blue:hover { background: var(--hover); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; }
.btn-sm .ik { font-size: 14px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge-green { background: #dcfce7; color: var(--green); }
.badge-amber { background: #fef3c7; color: var(--amber); }
.badge-red { background: #fee2e2; color: var(--hata); }
.badge-gray { background: #f3f4f6; color: var(--text-muted); }
.badge-blue { background: #f3f4f6; color: #374151; }

/* staff rows */
.staff-row { border-bottom: 1px solid var(--border); }
.staff-row:last-child { border-bottom: none; }
.staff-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.staff-head:hover { background: var(--hover); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #eef0f3; color: #374151; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.staff-info { flex: 1; min-width: 0; }
.staff-name { font-weight: 600; }
.staff-meta { color: var(--text-muted); font-size: 13px; }
.staff-expand { padding: 0 18px 18px; }
.chevron { color: var(--text-light); font-size: 12px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; padding: 8px 0 16px; }
.info-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f0f1f3; }
.info-item .k { color: var(--text-muted); }
.info-item .v { font-weight: 600; }

.section-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-light); margin: 14px 0 8px; }

.doc-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f1f3; }
.doc-row .doc-name { flex: 1; }
.doc-actions { display: flex; gap: 6px; }

.action-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; padding: 10px 14px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: #f9fafb; }
table.data td { padding: 11px 14px; border-bottom: 1px solid #f0f1f3; }
table.data tr:hover td { background: var(--hover); }

.empty { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty .icon { font-size: 32px; margin-bottom: 10px; color: #c4c8cf; }

.date-field { padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; }

/* modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 20px 48px rgba(16,24,40,.18); width: 100%; max-width: 460px; max-height: 85vh; overflow-y: auto; }
.modal h3 { margin-bottom: 6px; }
.modal .modal-sub { color: var(--text-muted); margin-bottom: 16px; font-size: 13px; }
.modal-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; max-height: 340px; overflow-y: auto; }
.modal-opt { padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.modal-opt:hover { border-color: var(--border-strong); background: var(--hover); }
.modal-opt.selected { border-color: var(--text); background: var(--secili); color: var(--text); font-weight: 600; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; text-align: center; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 500; font-size: 13.5px; z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.toast.err { background: #b91c1c; }

.progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.progress > div { height: 100%; background: #374151; }

@media (max-width: 720px) {
  .sidebar { width: 60px; }
  .sidebar-brand span, #nav a span { display: none; }
  #nav a { text-align: center; padding: 12px 4px; font-size: 11px; }
  .logout-btn { font-size: 11px; }
  .main { margin-left: 60px; }
}

/* ===== PUANTAJ (Gelişmiş) ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 6px; }
.kpi-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi-val { font-size: 24px; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
.kpi-lbl { color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.ot-note { color: var(--text-light); font-size: 12px; margin: 4px 0 18px; }

.chart-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .chart-row { grid-template-columns: 1fr; } }

.bar-chart { display: flex; align-items: flex-end; gap: 5px; height: 175px; margin-top: 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar { width: 78%; background: #9ca3af; border-radius: 4px 4px 0 0; min-height: 2px; transition: height .35s ease; }
.bar-today { background: var(--primary); }
.bar-val { font-size: 11px; color: var(--text-muted); margin-top: 4px; height: 14px; }
.bar-lbl { font-size: 10px; color: var(--text-muted); text-align: center; margin-top: 2px; line-height: 1.2; }

.hbar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.hbar-name { width: 76px; font-size: 12px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { flex: 1; background: #f0f1f3; border-radius: 5px; height: 15px; overflow: hidden; }
.hbar-fill { height: 100%; background: #6b7280; border-radius: 5px; transition: width .35s ease; }
.hbar-val { width: 42px; text-align: right; font-size: 12px; font-weight: 700; }

.view-toggle { display: flex; gap: 6px; margin-bottom: 14px; }
.view-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--border-strong); color: var(--text-muted); font-weight: 500; font-size: 13px; }
.view-btn:hover { background: var(--hover); color: var(--text); }
.view-btn.active { background: var(--secili); border-color: var(--border-strong); color: var(--text); font-weight: 600; }

table.sortable th[data-sort] { cursor: pointer; user-select: none; }
table.sortable th[data-sort]:hover { color: var(--text); }
.click-row { cursor: pointer; }

.cal-scroll { overflow-x: auto; }
.cal-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.cal-table th, .cal-table td { border: 1px solid var(--border); padding: 6px 8px; text-align: center; white-space: nowrap; }
.cal-name-h, .cal-name { text-align: left; position: sticky; left: 0; background: #fff; z-index: 2; font-weight: 600; }
.cal-day-h { color: var(--text-muted); font-weight: 600; min-width: 44px; font-size: 11px; }
.cal-day-h.cal-today { color: var(--primary); }
.cal-cell { cursor: pointer; }
.cal-cell.cal-work { background: #dcfce7; color: #166534; font-weight: 600; }
.cal-cell.cal-ot { background: #fef3c7; color: #92400e; font-weight: 700; }
.cal-cell.cal-active { background: #dbeafe; color: #1e40af; font-weight: 700; }
.cal-cell:hover { outline: 2px solid #6b7280; outline-offset: -2px; }
.cal-total { font-weight: 700; background: #fafbfc; }
.cal-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 4px 0; font-size: 12px; color: var(--text-muted); }
.lg { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.lg-work { background: #dcfce7; border: 1px solid #86efac; }
.lg-ot { background: #fef3c7; border: 1px solid #fcd34d; }
.lg-active { background: #dbeafe; border: 1px solid #93c5fd; }

.ts-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }

/* Pozisyon ücretleri */
.pr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; }
.pr-row.pr-active { border-color: #d1d5db; background: #fafbfc; }
.pr-name strong { font-size: 14px; }
.pr-count { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.pr-count.pr-none { color: var(--text-light); font-style: italic; }
.pr-input { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pr-input input { width: 92px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; text-align: right; font-size: 14px; font-weight: 600; }
.pr-input input:focus { outline: none; border-color: #6b7280; }
.pr-input span { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.pr-hint { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; color: #1e40af; margin-bottom: 12px; line-height: 1.5; }
.pr-hint-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.rate-tag { display: inline-block; background: #e5e7eb; color: #4b5563; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 4px; margin-left: 3px; text-transform: uppercase; }
.rate-btn.rate-pos { background: #f3f4f6; border-color: #e5e7eb; color: #4b5563; }
.rate-btn.rate-pos:hover { background: #e5e7eb; }

/* Zengin puantaj takvimi */
.cal-rich td, .cal-rich th { vertical-align: middle; }
.cal-rich .cal-day-h { min-width: 62px; padding: 6px 4px; }
.cal-dnum { font-size: 13px; color: var(--text); font-weight: 800; }
.cal-day-h.cal-today .cal-dnum { color: var(--primary); }
.cal-we { background: #fafbfc; }
.cal-rich .cal-name { min-width: 150px; line-height: 1.3; }
.cal-pos { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.cal-rich .cal-cell { padding: 4px 3px; height: 46px; }
.cal-h { font-size: 12px; font-weight: 800; line-height: 1.2; }
.cal-t { font-size: 9.5px; opacity: .8; line-height: 1.2; white-space: nowrap; }
.cal-marks { font-size: 9px; line-height: 1; margin-top: 1px; }
.cal-mark { margin: 0 1px; }
.cal-ot-txt { color: var(--amber); font-weight: 800; }
.cal-foot { background: #f7f8fa !important; font-weight: 700; }
.cal-legend span:not(.lg) { margin-right: 10px; }

/* Takvim kazanç sütunu */
.cal-earn { color: var(--green); font-weight: 800; white-space: nowrap; }
.cal-norate { color: var(--text-light); font-weight: 400; }
.cal-rich thead th.cal-total { line-height: 1.25; font-size: 10.5px; min-width: 56px; }

/* Gün kazancı (detay modalı) */
.day-earn { margin-top: 12px; padding: 12px 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; }
.day-earn-top { display: flex; justify-content: space-between; align-items: baseline; }
.day-earn-top span { color: #166534; font-size: 13px; font-weight: 600; }
.day-earn-top strong { color: var(--green); font-size: 22px; font-weight: 900; }
.day-earn-calc { margin-top: 6px; padding-top: 6px; border-top: 1px solid #bbf7d0; color: #4b5563; font-size: 12px; line-height: 1.7; }
.day-earn-src { color: var(--text-muted); font-style: italic; }
.day-earn-empty { margin-top: 12px; padding: 11px 14px; background: #f9fafb; border: 1px dashed var(--border); border-radius: 10px; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }

/* Düzenleme izi */
.edit-trace { margin-top: 12px; padding: 12px 14px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; }
.edit-trace-h { color: var(--blue); font-weight: 800; font-size: 13px; margin-bottom: 5px; }
.edit-trace-b { font-size: 12.5px; color: #374151; line-height: 1.6; }

/* Sysadmin konsolu ek stiller */
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
.cron-line { background: #0d1117; color: #8ddb8c; padding: 8px 10px; border-radius: 6px; margin-bottom: 6px; font-size: 11.5px; word-break: break-all; }
.port-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f1f3; font-size: 12.5px; }
.port-row:last-child { border-bottom: none; }

/* Vardiya kapatmayı unutanlar */
.forget-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f1f3; }
.forget-row:last-child { border-bottom: none; }
.forget-rank { width: 28px; font-size: 17px; text-align: center; font-weight: 800; color: var(--text-muted); }
.forget-name { width: 210px; display: flex; flex-direction: column; }
.forget-name strong { font-size: 14px; }
.forget-name span { font-size: 12px; color: var(--text-muted); }
.forget-bar { flex: 1; height: 10px; background: #f0f1f3; border-radius: 5px; overflow: hidden; min-width: 60px; }
.forget-bar > div { height: 100%; background: var(--amber); border-radius: 5px; }
.forget-count { width: 60px; text-align: right; font-weight: 800; color: var(--amber); font-size: 13px; }
.forget-last { width: 100px; text-align: right; font-size: 12px; color: var(--text-light); }
@media (max-width: 720px) { .forget-name { width: 130px; } .forget-last { display: none; } }

.staff-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.staff-check:hover { background: #fafbfc; }
.staff-check input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.staff-check span:not(.staff-check-pos) { flex: 1; font-weight: 500; }
.staff-check-pos { color: var(--text-muted); font-size: 12px; }
.rate-btn { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rate-btn:hover { background: #e0f2fe; }

.nav-system { margin-top: auto; border-top: 1px solid #262a31; border-radius: 0 !important; font-size: 13px !important; }

/* ===== SİSTEM DASHBOARD ===== */
.health-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 14px; box-shadow: var(--shadow);
}
.pill-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pill-ok .pill-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.pill-warn .pill-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(217,119,6,.15); }
.pill-bad .pill-dot { background: var(--hata); box-shadow: 0 0 0 3px rgba(185,28,28,.15); }
.pill-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-light); font-weight: 700; }
.pill-val { font-size: 14px; font-weight: 800; line-height: 1.1; }
.pill-ok .pill-val { color: var(--green); }
.pill-warn .pill-val { color: var(--amber); }
.pill-bad .pill-val { color: var(--hata); }

.auto-toggle { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); font-weight: 600; cursor: pointer; user-select: none; }
.auto-toggle input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

.res-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }

.tbl-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.tbl-name { width: 110px; font-size: 13px; font-weight: 600; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.tbl-rows { width: 90px; font-size: 12px; color: var(--text-muted); text-align: right; }
.tbl-track { flex: 1; height: 8px; background: #f0f1f3; border-radius: 4px; overflow: hidden; }
.tbl-fill { height: 100%; background: #6b7280; border-radius: 4px; }
.tbl-size { width: 70px; font-size: 12px; font-weight: 700; text-align: right; }

.log-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg-btn { padding: 7px 14px; background: #fff; color: var(--text-muted); font-weight: 600; font-size: 13px; border-right: 1px solid var(--border); }
.seg-btn:last-child { border-right: none; }
.seg-btn.active { background: var(--secili); color: var(--text); }

.term {
  background: #0d1117; border: 1px solid #21262d; border-radius: 10px;
  padding: 14px 16px; height: 340px; overflow-y: auto;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px; line-height: 1.65;
}
.term::-webkit-scrollbar { width: 10px; }
.term::-webkit-scrollbar-thumb { background: #30363d; border-radius: 5px; }
.term::-webkit-scrollbar-track { background: transparent; }
.log-line { color: #8ddb8c; white-space: pre-wrap; word-break: break-all; }
.log-line.log-err { color: #ff7b72; }
.log-line.log-warn { color: #e3b341; }

/* ===== GENEL DASHBOARD BİLEŞENLERİ ===== */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mini-chip { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; box-shadow: var(--shadow); display: flex; align-items: baseline; gap: 7px; }
.mini-chip .v { font-size: 17px; font-weight: 650; }
.mini-chip .l { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.chart-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .chart-row-3 { grid-template-columns: 1fr; } }

.dash-list { display: flex; flex-direction: column; }
.dash-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f1f3; }
.dash-item:last-child { border-bottom: none; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

.doc-progress { display: flex; align-items: center; gap: 8px; margin-top: 5px; max-width: 260px; }
.doc-progress .progress { flex: 1; height: 5px; margin-top: 0; }
.doc-progress span { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.select-field { padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; font-weight: 500; font-size: 13px; cursor: pointer; }

.hbar-sm { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.hbar-sm .n { width: 92px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-sm .t { flex: 1; height: 10px; background: #f0f1f3; border-radius: 5px; overflow: hidden; }
.hbar-sm .f { height: 100%; background: #6b7280; border-radius: 5px; }
.hbar-sm .v { width: 26px; text-align: right; font-size: 12px; font-weight: 700; }

.lnk { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; font-weight: 500; }
.lnk:hover { text-decoration-color: currentColor; }

/* genel cila */
.stat-card, .kpi-card { transition: transform .12s ease, box-shadow .12s ease; }
/* Kartlar üzerine gelince kalkmaz: tıklanamayan şey hareket etmemeli */
#nav a { position: relative; }
#nav a.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; background: #fff; border-radius: 2px; opacity: .9; }


/* ---- Rol bazli gorunum ----
   Ucret sutunlari yalnizca IK'ya gorunur. Asil koruma backend'de:
   mudur/sef yanitinda ucret alanlari hic gonderilmez (stripPay). */
body[data-role="manager"] .pay-col,
body[data-role="manager"] .cal-earn { display: none; }

/* Kilitli sube secici */
.branch-select:disabled { opacity: .75; cursor: not-allowed; }

/* Izin ekleme formu */
.fld-label { display:block; font-size:13px; color:var(--text-muted); font-weight:600; margin:12px 0 6px; }
.al-dates { display:flex; gap:10px; }
.al-dates > div { flex:1; }
.al-dates input { width:100%; }


/* ---- Sayim / envanter ---- */
.inv-table td { padding: 6px 10px; }
.inv-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #666; }
.inv-qty {
  width: 110px; padding: 6px 8px; text-align: right;
  border: 1px solid var(--border, #ddd); border-radius: 6px;
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.inv-qty:focus { outline: 2px solid #6b7280; outline-offset: -1px; border-color: transparent; }
.inv-qty:disabled { background: #f5f5f5; color: #999; }
.inv-qty.inv-bad { border-color: var(--hata); background: #fff5f5; }
.inv-chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.inv-chk input { width: 16px; height: 16px; }

.save-state { font-size: 12px; font-weight: 600; }
.save-state.saving  { color: var(--blue); }
.save-state.pending { color: var(--amber); }
.save-state.ok      { color: var(--green); }

/* Ekranda gizli, yazdirmada gorunen bos kutu */
.print-box { display: none; }
.print-head { display: none; }

/* ---- Yazdirma: bos sayim listesi ----
   Kagida yazip sonra girenler icin. Miktar sutunu bos kutu olarak basilir. */
@media print {
  @page { margin: 12mm; }
  .sidebar, .topbar, .no-print, .toast, .modal-overlay { display: none !important; }
  .app, .main, .content { display: block !important; margin: 0 !important; padding: 0 !important; }
  .card { box-shadow: none !important; border: none !important; }
  .print-head { display: block; margin-bottom: 10px; }
  .print-head h2 { font-size: 16px; margin: 0 0 4px; }
  .print-head p { font-size: 12px; color: #444; margin: 0; }
  .inv-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .inv-table th, .inv-table td { border: 1px solid #bbb; padding: 3px 6px; }
  .inv-table thead { display: table-header-group; }   /* her sayfada baslik */
  .inv-table tr { page-break-inside: avoid; }
  .print-box { display: block; width: 70px; height: 14px; border-bottom: 1px solid #999; }
}


/* Takvimde boş gün — tıklayınca vardiya eklenir */
.cal-empty { cursor: pointer; color: transparent; font-weight: 700; transition: background .12s, color .12s; }
.cal-empty:hover { background: #374151; color: #fff; }


/* Panel imzasi — icerik alaninin en altinda, sayfa sonunda.
   #content'in disinda oldugu icin router her sayfayi degistirse de kalir. */
.panel-sign {
  padding: 18px 24px 22px;
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--text-light, #9aa0aa);
  text-align: center;
  user-select: none;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  transition: color .15s;
}
.panel-sign:hover { color: var(--text-muted, #6b7280); }
@media print { .panel-sign { display: none; } }


/* ---- Ayarlar ---- */
.set-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.set-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 14px 10px; border-radius: 8px; border-bottom: 1px solid var(--border);
}
.set-row:last-child { border-bottom: none; }
.set-row.set-changed { background: #fff8e6; }
.set-info { flex: 1; min-width: 0; }
.set-label { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.set-help { font-size: 12px; color: var(--text-muted, #6b7280); margin-top: 3px; line-height: 1.45; }
.set-key {
  display: inline-block; margin-top: 5px; font-size: 10px; color: #9aa0aa;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.set-badge {
  font-size: 10px; font-weight: 700; color: var(--amber, #92400e);
  background: #fef3c7; padding: 2px 7px; border-radius: 20px;
}
.set-field { flex-shrink: 0; width: 190px; }
.set-input { width: 100%; }
.set-num { display: flex; align-items: center; gap: 7px; }
.set-num input { flex: 1; text-align: right; font-variant-numeric: tabular-nums; }
.set-unit { font-size: 12px; color: var(--text-muted, #6b7280); font-weight: 600; white-space: nowrap; }
.set-switch { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.set-switch input { width: 18px; height: 18px; cursor: pointer; }

@media (max-width: 720px) {
  .set-row { flex-direction: column; gap: 10px; }
  .set-field { width: 100%; }
}


/* ---- Omni satis raporu ---- */
.fld-inline { font-size: 13px; color: var(--text-muted, #6b7280); font-weight: 600; }
.om-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 900px) { .om-grid { grid-template-columns: 1fr; } }

.om-saatlik { margin-top: 8px; }
.om-saat-satir {
  display: grid; grid-template-columns: 108px 1fr 120px 64px;
  align-items: center; gap: 10px; padding: 3px 0; font-size: 12px;
}
.om-saat-satir:hover { background: var(--bg-hover, #f7f7f9); border-radius: 6px; }
.om-saat-etiket { color: var(--text-muted, #6b7280); font-variant-numeric: tabular-nums; }
.om-saat-cubuk { background: var(--border, #e2e4e9); border-radius: 4px; height: 16px; overflow: hidden; }
.om-saat-cubuk i { display: block; height: 100%; background: #6b7280; border-radius: 4px; }
.om-saat-tutar { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.om-saat-adet { text-align: right; color: #9aa0aa; font-variant-numeric: tabular-nums; }


/* ===== POZİSYONLAR ===== */
tr.pasif td { opacity: .55; }
.rozet-pasif {
  font-size: 11px; background: #e5e7eb; color: #374151;
  padding: 1px 7px; border-radius: 999px; font-weight: 600;
}
.poz-yetki {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: #dbeafe; color: #1e40af;
  padding: 2px 8px; border-radius: 999px; margin-right: 4px;
}
/* İK yetkisi görsel olarak ayrılıyor: bordroyu ve tüm şubeleri açar,
   yanlışlıkla verilmesi en pahalı işaret. */
.poz-yetki.poz-ik { background: #fee2e2; color: #991b1b; }
.poz-gizli { color: var(--text-light); }

.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.fld input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff;
}
.fld em { display: block; font-size: 11px; color: var(--text-light); margin-top: 4px; font-style: normal; }

.fld-chk {
  display: flex; gap: 9px; align-items: flex-start;
  margin-bottom: 13px; font-size: 13px; line-height: 1.45;
}
.fld-chk input { margin-top: 2px; flex-shrink: 0; }
.fld-chk span { color: var(--text); }

.uyari-kutu {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 8px; padding: 10px 13px; font-size: 13px; line-height: 1.5;
}

/* ===== ŞUBELER ===== */
.alt-bilgi { font-size: 12px; color: var(--text-muted); }

/* Katılım kodu: telefonda söylenecek/panoya yazılacak, kopyalaması sık. */
.kod-rozet {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  background: #f3f4f6; color: #374151;
  padding: 3px 9px; border-radius: 6px;
  border: 1px solid transparent; cursor: pointer;
}
.kod-rozet:hover { border-color: var(--border-strong); }
.kod-rozet.kopyalandi { background: #dcfce7; color: #166534; }

.gps-var { color: var(--green); font-weight: 600; font-size: 13px; }
.gps-satir { display: flex; gap: 8px; }
.gps-satir input {
  flex: 1; min-width: 0; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}

/* ===== KURULUM KONTROL LİSTESİ ===== */
/* Panelin en üstünde, adımlar bitince kendi kendine kaybolur. */
.kurulum-kart { padding: 18px 20px; margin-bottom: 18px; border-left: 3px solid var(--primary); }
.kur-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kur-ust h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.kur-ust p { font-size: 13px; color: var(--text-muted); }
.kur-kapat {
  background: none; color: var(--text-light); font-size: 16px;
  padding: 2px 6px; border-radius: 6px; line-height: 1;
}
.kur-kapat:hover { background: #f0f1f3; color: var(--text); }

.kur-uyari {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-top: 12px;
}

.kur-liste { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.kur-adim { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f1f3; }
.kur-adim:first-child { border-top: none; }

.kur-no {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 999px;
  background: #f0f1f3; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.kur-adim.tamam .kur-no { background: #dcfce7; color: var(--green); }
.kur-adim.tamam .kur-baslik { color: var(--text-muted); }

.kur-govde { flex: 1; min-width: 0; }
.kur-baslik { font-weight: 600; font-size: 14px; }
.kur-detay {
  font-weight: 400; font-size: 12px; color: var(--green);
  background: #dcfce7; padding: 1px 8px; border-radius: 999px; margin-left: 7px;
}
.kur-aciklama { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 3px; }
.kur-eylem { display: flex; gap: 8px; margin-top: 9px; }
.kur-eylem .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ── İşçilik oranı ekranı ─────────────────────────────────────────── */
/* Oran renkleri: %30 altı sağlıklı, %35 üstü riskli (sektör kabulü).
   Renk tek başına anlam taşımasın diye tabloda yüzde de yazılı — renk
   körlüğünde de okunur. */
.oran-iyi  { color: #16a34a; }
.oran-orta { color: #ca8a04; }
.oran-kotu { color: #dc2626; }
.kpi-card.oran-iyi  { border-left: 3px solid #16a34a; }
.kpi-card.oran-orta { border-left: 3px solid #ca8a04; }
.kpi-card.oran-kotu { border-left: 3px solid #dc2626; }

.iscilik-donem { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.iscilik-donem label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.iscilik-donem input { padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; }
.iscilik-donem .hizli { font-size: 13px; color: var(--text-muted); margin-left: auto; }
.iscilik-donem .hizli a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.iscilik-donem .hizli a:hover { text-decoration: underline; }

.uyari-kucuk { font-size: 11px; color: #ca8a04; }

/* ── İşçilik trendi ───────────────────────────────────────────────── */
.trend-kart { padding-bottom: 8px; }
.trend-ust { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.trend-not { color: var(--text-muted); font-size: 12px; margin: 4px 0 0; }
.trend-svg { width: 100%; height: 150px; display: block; overflow: visible; }
.trend-eksen { stroke: var(--border); stroke-width: 1; }
/* SVG metni preserveAspectRatio="none" ile esnemesin diye vector-effect
   yerine sabit boyut: viewBox genisligi sabit oldugu icin sorun olmuyor. */
.trend-etiket { font-size: 10px; fill: var(--text-muted); text-anchor: middle; }
.trend-oran { font-size: 11px; font-weight: 700; text-anchor: middle; }
.trend-oran.oran-iyi  { fill: #16a34a; }
.trend-oran.oran-orta { fill: #ca8a04; }
.trend-oran.oran-kotu { fill: #dc2626; }

/* ── EBY'den gelen ekranlar (12 Eyl 2026) ─────────────────────────── */
:root { --purple: #7c3aed; }
.modal-input { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: inherit; background: #fff; margin: 4px 0 2px; box-sizing: border-box; }
.modal-input:focus { outline: none; border-color: #6b7280; box-shadow: 0 0 0 3px rgba(107,114,128,.15); }

/* Şu an çalışanlar: liste uzayınca kart büyümesin, kendi içinde kaysın */
.dash-list-scroll { max-height: 320px; overflow-y: auto; }
.dash-list-scroll::-webkit-scrollbar { width: 8px; }
.dash-list-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Personelin hesap silme talebi (Eski Çalışanlar) — turuncu = dikkat,
   30 gün geçince hata kırmızısı */
.silme-rozet { display: inline-block; font-size: 11px; font-weight: 650; line-height: 1;
  padding: 3px 7px; border-radius: 99px; background: #fff7ed; color: #b45309;
  border: 1px solid #fed7aa; vertical-align: middle; margin-left: 6px; }
.silme-rozet.gecikti { background: #fef2f2; color: var(--hata); border-color: #fecaca; }
.mini-chip.silme-chip { border-color: #fed7aa; background: #fff7ed; }
.mini-chip.silme-chip .v { color: #b45309; }

/* Puantajda arşivlenmiş personel işareti */
.arsiv-rozet { display: inline-block; font-size: 10px; font-weight: 600; line-height: 1;
  padding: 3px 6px; border-radius: 99px; background: #f1f3f5; color: #868e96;
  border: 1px solid #dee2e6; vertical-align: middle; }

/* Aylık puantaj raporu — salt okunur takvim */
.cal-cell.cal-leave, .cal-legend-mini .cal-leave { background: #ede9fe; color: #5b21b6; font-weight: 700; }
.cal-cell.cal-bos { background: #fefce8; }
.cal-rapor .cal-cell { cursor: default; text-align: center; font-size: 12px; }
.cal-rapor .cal-cell:hover { outline: none; }
.cal-legend-mini { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.cal-legend-mini > span { padding: 1px 6px; border-radius: 4px; font-size: 11px; }
.cal-legend-mini .cal-work { background: #dcfce7; color: #166534; }
.cal-legend-mini .cal-ot { background: #fef3c7; color: #92400e; }
.cal-legend-mini .cal-bos { background: #fefce8; border: 1px solid #fde68a; }

/* Değişiklik kontrolü düğmesi — içerik alanının üstünde ortalı */
.guncelleme-dugmesi { position: fixed; top: 70px; left: calc(50% + 110px); transform: translateX(-50%);
  z-index: 60; box-shadow: 0 4px 14px rgba(0,0,0,.18); }


/* ---- Vardiya Planı (haftalık çizelge) ---- */
.vp-serit { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 10px; border: 1px solid; }
.vp-serit-gri { background: #f3f4f6; border-color: #e5e7eb; color: #374151; }
.vp-serit-sari { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.vp-serit-yesil { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.vp-tablo { min-width: 880px; }
.vp-tablo th { text-align: center; white-space: nowrap; }
.vp-tablo th:first-child { text-align: left; }
.vp-tablo th.vp-bugun { color: var(--primary); }
.vp-tarih { font-weight: 400; font-size: 11px; color: var(--text-muted); }
.vp-ad { min-width: 150px; }
.vp-poz { font-size: 11px; color: var(--text-muted); }
.vp-hucre { padding: 4px !important; text-align: center; vertical-align: middle; }
.vp-input { width: 88px; padding: 6px 4px; border: 1px solid var(--border); border-radius: 6px; text-align: center; font: inherit; font-size: 13px; background: #fff; }
.vp-input:focus { outline: none; border-color: #6b7280; box-shadow: 0 0 0 3px rgba(107,114,128,.15); }
.vp-input.vp-kirli { background: #eff6ff; border-color: #93c5fd; }
.vp-input.vp-hata { border-color: #dc2626; background: #fef2f2; }
.vp-izinli { background: #fffbeb; }
.vp-haftalik .vp-input { color: #92400e; font-weight: 600; }
.vp-cakisma .vp-input { border-color: #dc2626; }
.vp-izin-etiket { font-size: 10px; color: #92400e; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; margin-inline: auto; }
.vp-kilit { color: var(--text-muted); font-size: 12px; font-style: italic; }
.vp-toplam { text-align: right; font-weight: 600; white-space: nowrap; }
.vp-gun-toplam { text-align: center; font-size: 12px; white-space: nowrap; }
@media print {
  .vp-tablo { min-width: 0; width: 100%; font-size: 11px; }
  .vp-tablo th, .vp-tablo td { border: 1px solid #bbb; }
  .vp-input { border: none !important; background: none !important; width: auto; padding: 0; font-weight: 600; }
  .vp-input::placeholder { color: transparent; }
  .vp-izinli, .vp-haftalik { background: #fef3c7 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Plan ↔ gerçekleşen (yayınlanan planla) */
.vp-sonuc { font-size: 11px; margin-top: 3px; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 3px; }
.vp-sonuc .ik { font-size: 12px; }
.vp-s-ok { color: #15803d; }
.vp-s-gec { color: #b45309; }
.vp-s-yok { color: var(--hata); font-weight: 600; }
.vp-s-bek { color: var(--text-muted); }
.vp-uyum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 14px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.vp-uyum-b { font-weight: 600; }
.vp-uyum-p { color: var(--text-muted); }
.vp-uyum-p strong { color: var(--text); }
.vp-uyum-p.vp-s-gec strong { color: #b45309; }
.vp-uyum-p.vp-s-yok strong { color: var(--hata); }
.vp-uyum-p.vp-s-ok strong { color: #15803d; }
.vp-uyum-tol { margin-left: auto; font-size: 12px; color: var(--text-light); }
@media print { .vp-sonuc { display: none; } }
.vp-oran.oran-iyi { color: #15803d; }
.vp-oran.oran-orta { color: #b45309; }
.vp-oran.oran-kotu { color: var(--hata); }

.vp-takas-satir { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; }
