/* ===== EBY Yönetim Paneli ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #E8002D;
  --primary-dark: #B0001F;
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e3e6ea;
  --text: #1a1d21;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --green: #16a34a;
  --amber: #d97706;
  --blue: #2563eb;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
}
.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: linear-gradient(135deg, #E8002D 0%, #8f001c 100%); padding: 20px;
}
.login-card {
  background: #fff; border-radius: 16px; padding: 40px 32px; width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25); text-align: center;
}
.login-logo {
  width: 72px; height: 72px; border-radius: 18px; background: var(--primary);
  color: #fff; font-weight: 900; font-size: 24px; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.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: var(--primary); background: #fff; }
.login-error { color: var(--primary); font-size: 13px; margin-top: 12px; min-height: 18px; font-weight: 500; }
#loginBtn {
  width: 100%; padding: 13px; background: var(--primary); color: #fff;
  border-radius: var(--radius); font-size: 15px; font-weight: 700; 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: 220px; background: #16181d; 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: 20px 18px; border-bottom: 1px solid #262a31; }
.sidebar-logo {
  width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #fff;
  font-weight: 900; font-size: 14px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-brand span { font-weight: 600; font-size: 15px; color: #fff; }
#nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
#nav a {
  padding: 11px 14px; border-radius: 8px; color: #9ca3af; font-weight: 500; font-size: 14px;
  transition: background .15s, color .15s;
}
#nav a:hover { background: #22262d; color: #fff; }
#nav a.active { background: var(--primary); color: #fff; }
.logout-btn {
  margin: 12px; padding: 11px; background: transparent; color: #9ca3af;
  border: 1px solid #2f333b; border-radius: 8px; font-weight: 600; transition: all .15s;
}
.logout-btn:hover { background: #22262d; color: #fff; }

.main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--border); padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50;
}
.page-title { font-size: 18px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.branch-select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff;
  color: var(--text); font-weight: 500; cursor: pointer;
}
.user-chip { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-muted); font-size: 13px; }
.content { padding: 24px; flex: 1; }

/* ===== 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: 20px; box-shadow: var(--shadow); border-top: 3px solid var(--primary); }
.stat-card .val { font-size: 34px; font-weight: 800; }
.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: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.search-input:focus { outline: none; border-color: var(--primary); }

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

.btn { padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; border: 1px solid transparent; transition: all .12s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: #f7f8fa; }
.btn-green { background: #dcfce7; color: var(--green); border-color: #bbf7d0; }
.btn-green:hover { background: #bbf7d0; }
.btn-red { background: #fee2e2; color: var(--primary); border-color: #fecaca; }
.btn-red:hover { background: #fecaca; }
.btn-blue { background: #dbeafe; color: var(--blue); border-color: #bfdbfe; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge-green { background: #dcfce7; color: var(--green); }
.badge-amber { background: #fef3c7; color: var(--amber); }
.badge-red { background: #fee2e2; color: var(--primary); }
.badge-gray { background: #f3f4f6; color: var(--text-muted); }
.badge-blue { background: #dbeafe; color: var(--blue); }

/* 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: #fafbfc; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.staff-info { flex: 1; min-width: 0; }
.staff-name { font-weight: 700; }
.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: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 1px solid var(--border); background: #fafbfc; }
table.data td { padding: 12px 14px; border-bottom: 1px solid #f0f1f3; }
table.data tr:hover td { background: #fafbfc; }

.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty .icon { font-size: 44px; margin-bottom: 12px; }

.date-field { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

/* modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal { background: #fff; border-radius: 14px; padding: 24px; 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(--primary); background: #fff5f6; }
.modal-opt.selected { border-color: var(--primary); background: #fff5f6; color: var(--primary); 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: #16181d; color: #fff; padding: 12px 22px; border-radius: 10px; font-weight: 600; z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.toast.err { background: var(--primary); }

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

@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: 26px; font-weight: 800; line-height: 1.1; }
.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: linear-gradient(180deg, #ff5a76, var(--primary)); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .35s ease; }
.bar-today { background: linear-gradient(180deg, #4ade80, var(--green)); }
.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: linear-gradient(90deg, var(--primary), #ff7a8f); 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 { padding: 9px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 13px; }
.view-btn:hover { background: #f7f8fa; }
.view-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

table.sortable th[data-sort] { cursor: pointer; user-select: none; }
table.sortable th[data-sort]:hover { color: var(--primary); }
.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 var(--primary); 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: var(--primary); }
.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: linear-gradient(90deg, var(--amber), #fbbf24); 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(--primary); box-shadow: 0 0 0 3px rgba(232,0,45,.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(--primary); }

.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: linear-gradient(90deg, var(--blue), #60a5fa); 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(--primary); color: #fff; }

.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: 18px; font-weight: 800; }
.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: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-weight: 500; 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: linear-gradient(90deg, var(--primary), #ff7a8f); border-radius: 5px; }
.hbar-sm .v { width: 26px; text-align: right; font-size: 12px; font-weight: 700; }

.lnk { color: var(--blue); text-decoration: none; font-weight: 600; }
.lnk:hover { text-decoration: underline; }

/* genel cila */
.stat-card, .kpi-card { transition: transform .12s ease, box-shadow .12s ease; }
.stat-card:hover, .kpi-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
#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; }
