/* Droneturk Panel — tasarım dili. Derleme adımı gerektirmez. */
:root {
  --navy: #0a2647;
  --navy-2: #0f3460;
  --navy-deep: #071c36;
  --blue: #1e88e5;
  --blue-dark: #1565c0;
  --blue-soft: #e8f2fd;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #13233a;
  --muted: #64748b;
  --line: #e5ebf2;
  --line-2: #d6dfea;
  --danger: #d93a45;
  --danger-bg: #fdecee;
  --ok: #1f9d55;
  --ok-bg: #e7f7ee;
  --warn: #e08a00;
  --warn-bg: #fff4de;
  --wa: #25a244;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 38, 71, .05), 0 6px 20px rgba(10, 38, 71, .06);
  --shadow-lg: 0 20px 60px rgba(7, 28, 54, .25);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14.5px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.icon { flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }

/* ---------- Giriş ekranları ---------- */
.auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: radial-gradient(1200px 600px at 20% 0%, var(--navy-2), var(--navy-deep));
}
.auth-card { width: 100%; max-width: 410px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-logo { background: var(--navy); padding: 22px 32px; text-align: center; }
.auth-logo img { max-width: 240px; width: 100%; height: auto; display: block; margin: 0 auto; }
.auth-body { padding: 28px 28px 24px; }
.auth-body h1 { font-size: 20px; margin-bottom: 6px; }
.auth-foot { padding: 0 28px 24px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=url], input[type=search], input[type=month], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(30, 136, 229, .18); border-color: var(--blue); }
input[readonly], input:disabled, select:disabled, textarea[readonly] { background: #f6f8fb; color: #475569; }
input[type=file] { font: inherit; font-size: 13.5px; max-width: 100%; }
td select { min-width: 120px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 36px; }
.money-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.money-grid .stat { box-shadow: none; border: 1px solid var(--line); padding: 12px 14px; }
.money-grid .value { font-size: 20px; white-space: nowrap; }
@media (max-width: 560px) { .money-grid { grid-template-columns: 1fr; } }
input.code { font-size: 26px; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.error { color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border: 1px solid transparent; border-radius: var(--radius-sm); font: inherit; font-weight: 600;
  background: var(--navy); color: #fff; cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.btn:hover { background: var(--navy-2); text-decoration: none; }
.btn-primary { background: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { background: #f5f8fc; }
.btn-ok, .btn-wa { background: var(--wa); }
.btn-ok:hover, .btn-wa:hover { background: #1e8a39; }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { background: none; color: var(--blue-dark); padding: 0; font-weight: 500; border: 0; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--blue-soft); text-decoration: none; }
.icon-btn.solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.icon-btn.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.icon-btn.ok { background: var(--wa); color: #fff; border-color: var(--wa); }
.icon-btn.off { background: #eef2f6; color: #9aa8b8; border-color: #e2e8f0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Uyarılar ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-info { background: var(--blue-soft); color: var(--blue-dark); }
.alert-warn { background: var(--warn-bg); color: #9a5b00; }

/* ---------- Panel yerleşimi ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0; color: #c9d6e3; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: sticky; top: 0; height: 100vh;
}
.sidebar-logo { padding: 18px 18px 8px; }
.sidebar-logo img { width: 100%; max-width: 190px; display: block; }
.nav { padding: 6px 12px 16px; flex: 1; overflow-y: auto; scrollbar-width: thin; }
.nav-title { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #7891ab; padding: 16px 10px 6px; }
.nav a, .nav span.soon, .nav summary {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px; color: #dbe5ef; font-size: 14px; cursor: pointer; list-style: none;
}
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav a.active, .nav details.active > summary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(30, 136, 229, .35); }
.nav span.soon { color: #6f879e; cursor: default; }
.nav span.soon em { margin-left: auto; font-style: normal; font-size: 10.5px; border: 1px solid #3c5873; border-radius: 99px; padding: 0 7px; }
.nav .caret { margin-left: auto; transition: transform .15s; }
.nav details[open] .caret { transform: rotate(180deg); }
.nav .sub { padding: 4px 0 6px 18px; border-left: 1px solid rgba(255, 255, 255, .1); margin: 4px 0 4px 20px; }
.nav .sub a { font-size: 12.8px; padding: 6px 10px; color: #b9c8d8; gap: 8px; }
.nav .sub a.active { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.nav .sub .dot { width: 7px; height: 7px; border-radius: 50%; background: #4b647d; flex-shrink: 0; }
.nav .sub .dot.live { background: #3ddc84; }
.sidebar-foot { padding: 14px 18px 18px; opacity: .18; }
.sidebar-foot .icon { width: 84px; height: 84px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.topbar .page-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); display: flex; align-items: center; justify-content: center; }
.topbar .titles { min-width: 0; }
.topbar .titles h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.topbar .spacer { flex: 1; }
.topbar .menu-btn { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 4px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: 12px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: #f3f6fa; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-2); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-menu .who { line-height: 1.2; }
.user-menu .who strong { display: block; font-size: 13.5px; }
.user-menu .who span { font-size: 12px; color: var(--muted); }
.user-menu .dropdown { right: 0; left: auto; min-width: 190px; }
.bell { position: relative; color: var(--navy); display: inline-flex; padding: 8px; border-radius: 10px; }
.bell:hover { background: #f3f6fa; }
.bell .pip { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }
.content { padding: 24px 28px 40px; width: 100%; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- Kartlar ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; border: 1px solid rgba(214, 223, 234, .5); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .right { margin-left: auto; }
.card-flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; border: 1px solid rgba(214, 223, 234, .5); }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 18px; }
.kpi { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid rgba(214, 223, 234, .5); }
.kpi .ico { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue-dark); flex-shrink: 0; }
.kpi .ico.green { background: var(--ok-bg); color: var(--ok); }
.kpi .ico.orange { background: var(--warn-bg); color: var(--warn); }
.kpi .ico.navy { background: var(--navy); color: #fff; }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi.accent { background: linear-gradient(135deg, #f1fbf5, #fff); }
.kpi.head { background: var(--navy); color: #fff; }
.kpi.head .value { font-size: 18px; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #f8fafc; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcff; }
tr.is-open td { background: #f2f8ff; }
table.plain th { background: none; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef2f6; color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-blue { background: var(--blue-soft); color: var(--blue-dark); }
.badge-warn { background: var(--warn-bg); color: #9a5b00; }
.badge-navy { background: var(--navy); color: #fff; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; list-style: none; padding: 0; }
.pagination a, .pagination span { padding: 6px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; }

/* ---------- Araç çubuğu / filtreler ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 18px; border: 1px solid rgba(214, 223, 234, .5); }
.toolbar .tb-item { display: flex; align-items: center; gap: 8px; }
.toolbar .tb-item > .lbl { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.toolbar select, .toolbar input { padding: 8px 10px; width: auto; min-width: 120px; }
.toolbar input[type=radio], .toolbar input[type=checkbox] { min-width: 0; width: auto; padding: 0; }
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar .grow input { width: 100%; }
.toolbar .input-icon input, .input-icon input { padding-left: 34px; }

/* ---------- İlerleme, grafikler ---------- */
.bar { height: 9px; border-radius: 99px; background: #e8edf3; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1f9d55, #3ccf7a); }
.bar.blue > span { background: linear-gradient(90deg, var(--blue-dark), #4aa3f0); }
.bar.orange > span { background: linear-gradient(90deg, #f0a020, #ffc04d); }
.donut { --size: 104px; width: var(--size); height: var(--size); border-radius: 50%; position: relative; flex-shrink: 0; }
.donut::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #fff; }
.donut > .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; line-height: 1.1; }
.donut > .center strong { font-size: 22px; }
.donut > .center span { font-size: 11px; color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0; font-size: 13px; display: grid; gap: 5px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend .v { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: #f1f5f9; color: #334155; white-space: nowrap; }

/* ---------- Açılır menü (details) ---------- */
.dd { position: relative; display: inline-block; }
.dd > summary { list-style: none; cursor: pointer; }
.dd > summary::-webkit-details-marker { display: none; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; min-width: 200px; }
.dropdown.right { left: auto; right: 0; }
.dropdown a, .dropdown button, .dropdown label.item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--text); font: inherit; font-size: 13.5px; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 500; margin: 0; }
.dropdown a:hover, .dropdown button:hover, .dropdown label.item:hover { background: #f2f6fb; text-decoration: none; }
.dropdown .sep { height: 1px; background: var(--line); margin: 5px 0; }
.dropdown .head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 10px 2px; }

/* ---------- Pencere (dialog) ---------- */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal.wide { width: min(1060px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(7, 28, 54, .55); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-head .close { margin-left: auto; }
.modal-body { padding: 20px 22px; max-height: calc(100vh - 160px); overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Anahtar (toggle) ---------- */
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13px; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 99px; background: #cfd8e3; position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(16px); }

/* ---------- Kutucuk (yoklama) ---------- */
.tick { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: transparent; padding: 0; }
.tick.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tick:disabled { cursor: default; opacity: .6; }
.saved-pip { font-size: 11.5px; color: var(--ok); opacity: 0; transition: opacity .3s; }
.saved-pip.show { opacity: 1; }

/* ---------- Segment (radyo düğmeleri) ---------- */
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg label { margin: 0; font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer; background: #fff; }
.seg input { accent-color: var(--blue); margin: 0; }
.seg label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- Adım çizgisi ---------- */
.steps { display: flex; align-items: flex-start; }
.steps .step { flex: 1; text-align: center; position: relative; font-size: 12.5px; }
.steps .step::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: #dde5ee; z-index: 0; }
.steps .step:first-child::before { display: none; }
.steps .step.done::before, .steps .step.current::before { background: var(--ok); }
.steps .dot { width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 6px; background: #fff; border: 3px solid #dde5ee; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; }
.steps .done .dot { background: var(--ok); border-color: var(--ok); }
.steps .current .dot { border-color: var(--blue); box-shadow: inset 0 0 0 4px #fff; background: var(--blue); }
.steps strong { display: block; font-size: 13px; }

/* ---------- Kişi paneli (satır altı) ---------- */
.detail-row > td { padding: 0 !important; background: #f6f9fd !important; }
.detail { padding: 18px; display: grid; gap: 16px; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); animation: slide .2s ease-out; }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.detail .box { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 16px; }
.detail .box h3 { display: flex; align-items: center; gap: 8px; }
.detail .kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13.5px; }
.detail .kv dt { color: var(--muted); display: flex; gap: 6px; align-items: center; }
.detail .kv dd { margin: 0; }
.acc { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.acc > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 700; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .caret { margin-left: auto; transition: transform .15s; }
.acc[open] > summary .caret { transform: rotate(180deg); }
.acc > .acc-body { padding: 0 14px 14px; }
.person-photo { width: 96px; height: 134px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #eef2f6; }
.thumb { width: 38px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #eef2f6; display: block; }
.name-link { font-weight: 700; color: var(--text); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-align: left; }
.name-link:hover, .is-open .name-link { color: var(--blue-dark); text-decoration: underline; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; height: 100vh; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .topbar { padding: 10px 14px; }
  .topbar .menu-btn { display: inline-flex; }
  .user-menu .who { display: none; }
  .crumbs, .topbar .page-icon { display: none; }
  .topbar .titles h1 { font-size: 17px; }
  .content { padding: 16px 14px 32px; }
  .detail { grid-template-columns: 1fr; }
  .detail .kv { grid-template-columns: 110px 1fr; }
}
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .content { padding: 0; }
}

/* ---------- Kurs istatistik kartları ---------- */
.stats-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid .card { margin: 0; }
.card.mini { padding: 16px; }
.card.mini h3 { font-size: 14px; }
.card.mini .card-head { margin-bottom: 8px; color: var(--navy); }
.stats-grid .wide2 { grid-column: span 2; }
.big { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.big small { font-size: 14px; font-weight: 600; }
.split { display: flex; gap: 16px; justify-content: space-between; align-items: flex-end; }
.money-box { background: var(--ok-bg); border-radius: 12px; padding: 12px 16px; }
.money-box .big { color: var(--navy); }
.gbox { flex: 1; border-radius: 12px; padding: 10px 12px; text-align: center; }
.gbox strong { font-size: 20px; display: block; }
.gbox.male { background: var(--blue-soft); color: var(--blue-dark); }
.gbox.female { background: #fdeef3; color: #c2185b; }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } .stats-grid .wide2 { grid-column: auto; } }

/* ---------- Kim arıyor ---------- */
.caller { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 420px; animation: slide .25s ease-out; }
.caller-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Ayarlar: hesap durumu şeridi */
.account-status .kpi { color: inherit; text-decoration: none; padding: 12px 16px; }
.account-status .kpi .value { font-size: 20px; }
.account-status .kpi:hover { border-color: var(--blue); }

/* ---------- Üst çubuk arama ---------- */
.top-search { position: relative; width: min(380px, 32vw); margin-right: 6px; }
.top-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.top-search input { width: 100%; padding: 9px 12px 9px 36px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
@media (max-width: 900px) { .top-search { display: none; } }

/* ---------- Kursiyerler ekranı ---------- */
.pk-kpis { grid-template-columns: repeat(5, minmax(170px, 1fr)); }
.pk-kpis .kpi .ico { width: 54px; height: 54px; }
.pk-kpis .kpi .ico.purple { background: #efeafd; color: #6d4fd8; }
.pk-kpis .kpi .value { font-size: 26px; display: flex; align-items: baseline; gap: 8px; }
.pk-kpis .kpi .sub { font-size: 12.5px; color: var(--muted); }
.trend { font-size: 13px; font-weight: 700; }
.trend.up { color: var(--ok); } .trend.down { color: var(--danger); }
.pk-charts { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.pk-charts .card { margin-bottom: 18px; }
.pk-h { font-size: 15.5px; margin: 0 0 14px; }
.pk-bars { display: flex; gap: 8px; height: 170px; }
.pk-bars .axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); padding-bottom: 20px; text-align: right; min-width: 24px; }
.pk-bars .cols { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 calc(20% - 1px), #eef2f6 calc(20% - 1px) 20%); background-size: 100% calc(100% - 20px); background-repeat: no-repeat; }
.pk-bars .col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.pk-bars .col .b { width: 100%; max-width: 30px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #8cc6f7, #4aa3f0); min-height: 2px; }
.pk-bars .col.now .b { background: linear-gradient(180deg, #1e6fd9, #0d4fa8); }
.pk-bars .col.future .b { opacity: .35; }
.pk-bars .col > span { font-size: 11.5px; color: var(--muted); margin-top: 6px; height: 14px; }
.pk-bars .tip { position: absolute; white-space: nowrap; background: var(--navy); color: #fff; font-size: 11px; line-height: 1.3; text-align: center; padding: 5px 8px; border-radius: 7px; z-index: 2; }
.pk-donut { display: flex; align-items: center; gap: 22px; }
.pk-donut .donut::after { inset: 26px; }
.pk-donut ul { list-style: none; padding: 0; margin: 0; flex: 1; display: grid; gap: 10px; font-size: 14px; }
.pk-donut li { display: flex; align-items: center; gap: 9px; }
.pk-donut li i { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.pk-donut li b { margin-left: auto; }
.pk-cities { display: grid; gap: 11px; }
.pk-cities a { display: grid; grid-template-columns: 80px 1fr 50px; gap: 10px; align-items: center; color: var(--text); font-size: 14px; }
.pk-cities a:hover { text-decoration: none; color: var(--blue-dark); }
.pk-cities b { text-align: right; font-size: 13px; }
.pk-filters .tb-item select { min-width: 110px; }
.pk-filters .grow { position: relative; }
.pk-filters .grow svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pk-bday { font-weight: 600; font-size: 13px; gap: 6px; padding: 7px 10px; border-radius: 10px; background: #fff8ea; border: 1px solid #f5dfae; color: #8a5a00; cursor: pointer; }
.pk-table th { background: #fff; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); font-weight: 700; }
.pk-table td { padding: 10px 12px; }
.pk-table tr.is-bday td { background: #fffaf0; }
.pk-person { display: flex; align-items: center; gap: 11px; color: var(--text); }
.pk-person:hover { text-decoration: none; }
.pk-person:hover strong { color: var(--blue-dark); }
.pk-person img, .pk-person .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.pk-person strong { display: block; font-size: 14px; }
.bday-badge { display: inline-flex; align-items: center; gap: 3px; background: linear-gradient(90deg, #ff9a3c, #ff5f8f); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; margin-left: 4px; }
.pk-contact { display: inline-flex; align-items: center; gap: 7px; }
.pk-contact a { color: var(--blue-dark); display: inline-flex; }
.pk-contact a.wa { color: var(--wa); }
.lic { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.lic-blue { background: #e8f2fd; color: #1565c0; border-color: #cfe3fb; }
.lic-green { background: #e7f7ee; color: #1f8a4c; border-color: #c9ecd8; }
.lic-purple { background: #efeafd; color: #6d4fd8; border-color: #ddd4fb; }
.lic-teal { background: #e3f8f8; color: #0f8a8d; border-color: #c4eded; }
.pk-course { display: inline-flex; align-items: center; gap: 6px; }
.pk-course .chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font-size: 12.5px; line-height: 1.35; background: #fff; }
.pk-course .chip:hover { text-decoration: none; border-color: var(--blue); }
.pk-course .more { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ok-soft { background: var(--ok-bg); color: var(--ok); border: 1px solid #c9ecd8; }
.btn-ok-soft:hover { background: #d6f1e2; }
.pk-more { margin-left: 4px; }
.pk-more > summary.btn { padding: 6px 8px; }
.pk-foot { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pk-foot .spacer { flex: 1; }
.pk-foot select { width: auto; padding: 6px 8px; margin-left: 6px; }
.pk-pages { display: flex; gap: 6px; align-items: center; }
.pk-pages a { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text); font-size: 13.5px; padding: 0 8px; }
.pk-pages a.on { background: #1565c0; color: #fff; border-color: #1565c0; }
.pk-pages a.off { pointer-events: none; opacity: .4; }
.pk-pages .gap { color: var(--muted); }
.pk-idcard { border: 0; border-radius: 16px; padding: 0; max-width: min(720px, 94vw); box-shadow: var(--shadow-lg); }
.pk-idcard::backdrop { background: rgba(7, 28, 54, .55); }
.pk-idcard .head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pk-idcard .head strong { margin-right: auto; }
.pk-idcard img { display: block; width: 100%; height: auto; min-height: 200px; background: #f4f7fb; }
@media (max-width: 1500px) { .pk-kpis { grid-template-columns: repeat(3, 1fr); } .pk-charts { grid-template-columns: 1fr 1fr; } .pk-charts .card:first-child { grid-column: 1 / -1; } }
@media (max-width: 800px) { .pk-kpis { grid-template-columns: 1fr 1fr; } .pk-charts { grid-template-columns: 1fr; } }
.pk-person { min-width: 200px; }
.bday-badge { white-space: nowrap; }
.pk-course .chip > span { max-width: 175px; }
.pk-course .chip strong { display: block; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-table td:first-child, .pk-table th:first-child { padding-right: 0; }
@media (max-width: 1560px) { .pk-table td, .pk-table th { padding-left: 8px; padding-right: 8px; } .pk-table .btn-navy { padding: 6px 9px; } }
/* Kursiyerler: tek satır filtre */
.pk-filters { flex-wrap: nowrap; gap: 8px; }
.pk-filters .grow { min-width: 200px; }
.pk-sel { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 4px 0 10px; background: #fff; color: var(--muted); }
.pk-sel select { border: 0; padding: 8px 4px; min-width: 0; max-width: 150px; background-color: transparent; color: var(--text); font-weight: 500; }
.pk-sel select:focus { outline: none; }
.pk-sel:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.pk-bday { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; }
.pk-bday input { display: none; }
.pk-bday.on { background: linear-gradient(90deg, #ff9a3c, #ff5f8f); color: #fff; border-color: transparent; }
@media (max-width: 1400px) { .pk-filters { flex-wrap: wrap; } }
.top-search .ts-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow: auto; }
.top-search .ts-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text); }
.top-search .ts-list a:hover, .top-search .ts-list a.on { background: #f0f6fe; text-decoration: none; }
.top-search .ts-list img, .top-search .ts-list .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 12px; }
.top-search .ts-list strong { display: block; font-size: 13.5px; }
.top-search .ts-list small { color: var(--muted); font-size: 12px; }
.top-search .ts-list small b { color: var(--blue-dark); }
.top-search .ts-list a.all { justify-content: center; font-size: 12.5px; color: var(--blue-dark); border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; }
.pk-panel-btn { position: relative; }
.pk-panel-btn i.on { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
/* Üst arama: büyük ve belirgin */
.top-search { width: min(520px, 38vw); }
.top-search > svg { left: 6px; width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--blue-soft); color: var(--blue-dark); }
.top-search input { height: 46px; padding-left: 46px; font-size: 14.5px; border-radius: 14px; border: 1.5px solid #cfdbe9; box-shadow: 0 2px 8px rgba(10, 38, 71, .05); }
.top-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); outline: none; }
.pk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; font-size: 13px; white-space: nowrap; }
.pk-chip:hover { text-decoration: none; background: #d9eafc; }
.pk-mail { border: 0; border-radius: 16px; padding: 0; width: min(760px, 95vw); box-shadow: var(--shadow-lg); }
.pk-mail::backdrop { background: rgba(7, 28, 54, .55); }
.pk-mail .head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pk-mail .head > div { margin-right: auto; }
.pm-body { display: grid; gap: 0; }
.pm-history { max-height: 46vh; overflow: auto; padding: 14px 16px; background: #f6f8fb; display: grid; gap: 10px; }
.pm-msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; max-width: 88%; }
.pm-msg.in { justify-self: start; border-left: 3px solid #4aa3f0; }
.pm-msg.out { justify-self: end; border-right: 3px solid var(--navy); }
.pm-msg[data-thread] { cursor: pointer; }
.pm-msg.sel { box-shadow: 0 0 0 2px var(--blue); }
.pm-msg .meta { display: flex; gap: 10px; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pm-msg .subj { font-weight: 700; font-size: 13.5px; margin: 3px 0; }
.pm-msg .snip { font-size: 13px; color: #475467; }
.pm-compose { display: grid; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.pk-filters { flex-wrap: wrap; }
.pk-sel select { max-width: 122px; }
.pk-sel select[name="sirala"] { max-width: 135px; }

/* ---------- Kursiyer kartı (kişi detay) ---------- */
.kp-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 10px; }
.kp-head { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px 22px; }
.kp-photo img, .kp-photo .avatar { width: 130px; height: 158px; border-radius: 14px; object-fit: cover; font-size: 40px; }
.kp-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.kp-name h2 { font-size: 26px; margin: 0; letter-spacing: -.01em; }
.kp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.kp-pill.ok { background: #e3f6ea; color: #1f8a4c; }
.kp-pill.ok-soft { background: #eef8f2; color: #1f8a4c; border: 1px solid #cdeedb; }
.kp-pill.blue { background: #e3effd; color: #1565c0; }
.kp-pill.warn { background: var(--warn-bg); color: #9a5b00; }
.kp-pill.muted { background: #eef2f6; color: var(--muted); }
.kp-id .lic { display: inline-flex; align-items: center; gap: 6px; }
.kp-contact { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0; font-size: 16px; font-weight: 500; }
.kp-contact > span { display: inline-flex; align-items: center; gap: 8px; }
.kp-contact .wa, .kp-info .wa { color: var(--wa); display: inline-flex; }
.kp-tc { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 12px; background: #f1f5fa; border: 1px solid var(--line); font: inherit; color: var(--text); cursor: pointer; }
.kp-tc strong { font-size: 21px; letter-spacing: .02em; }
.kp-side { display: grid; gap: 16px; justify-items: end; }
.kp-stats { display: flex; gap: 10px; }
.kp-stats > div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); color: var(--blue-dark); }
.kp-stats span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.kp-stats strong { font-size: 16px; color: var(--text); }
.kp-actions { display: flex; gap: 10px; align-items: center; width: 100%; }
.kp-actions .spacer { flex: 1; min-width: 20px; }
.kp-actions .btn { padding: 10px 18px; }
.btn.disabled { opacity: .55; cursor: not-allowed; }
.kp-grid { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(0, 1.5fr) minmax(300px, 1.15fr); gap: 18px; align-items: start; }
.kp-card { padding: 18px 20px; }
.kp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kp-h h3 { margin: 0; font-size: 17px; }
.kp-h .right { margin-left: auto; }
.kp-h-soft { background: #eef4fc; margin: -18px -20px 14px; padding: 14px 20px; border-radius: 14px 14px 0 0; }
.kp-edit { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.kp-copy { border: 0; background: none; color: var(--blue-dark); cursor: pointer; padding: 2px; display: inline-flex; vertical-align: middle; }
.kp-info { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.kp-info dt, .kp-info dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kp-info dt { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.kp-info dd { font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kp-info-tight dt, .kp-info-tight dd { padding: 8px 0; }
.kp-course { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; color: var(--text); }
.kp-course:hover { text-decoration: none; border-color: var(--blue); }
.kp-course .no { width: 70px; height: 62px; border-radius: 12px; background: #e8f2fd; color: #1565c0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.kp-course .no strong { font-size: 22px; line-height: 1; }
.kp-course .body strong { display: block; font-size: 14.5px; }
.kp-course .meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.kp-course .meta > span { display: inline-flex; align-items: center; gap: 5px; }
.kp-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.kp-row .ico, .kp-device .ico { width: 42px; height: 42px; border-radius: 12px; background: #eef4fc; color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; }
.kp-device { display: grid; grid-template-columns: 56px minmax(90px, 1fr) repeat(3, auto) 24px; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.kp-device .ico { width: 56px; height: 48px; }
.kp-device > span { display: flex; flex-direction: column; font-size: 13px; }
.kp-device small { color: var(--muted); font-size: 11.5px; }
.kp-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.kp-pay > div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #f6f9fc; }
.kp-pay .ico { width: 38px; height: 38px; border-radius: 50%; background: #e8f2fd; color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kp-pay .ico.ok { background: #e3f6ea; color: #1f8a4c; } .kp-pay .ico.warn { background: var(--warn-bg); color: #9a5b00; }
.kp-pay span:last-child { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.kp-pay strong { font-size: 16px; color: var(--text); }
.kp-note { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.6; background: #fbfcfe; }
#note-form textarea, #note-form .kp-note-save { display: none; }
#note-form.editing textarea { display: block; width: 100%; }
#note-form.editing .kp-note-save { display: flex; margin-top: 10px; }
#note-form.editing .kp-note { display: none; }
.kp-dialog { border: 0; border-radius: 16px; padding: 0; width: min(640px, 95vw); box-shadow: var(--shadow-lg); }
.kp-dialog::backdrop { background: rgba(7, 28, 54, .55); }
.kp-dialog .head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.kp-dialog .body { padding: 16px 18px; max-height: 70vh; overflow: auto; }
.kp-dialog .foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@media (max-width: 1500px) { .kp-head { grid-template-columns: 110px 1fr; } .kp-side { grid-column: 1 / -1; justify-items: stretch; } .kp-stats { flex-wrap: wrap; } .kp-grid { grid-template-columns: 1fr 1fr; } .kp-grid > :first-child { grid-row: span 2; } }
@media (max-width: 900px) { .kp-grid { grid-template-columns: 1fr; } .kp-device { grid-template-columns: 48px 1fr; } }
/* Kursiyerler: filtreler kesin tek satır (sığmazsa satır içinde kaydırılır) */
.pk-filters { flex-wrap: nowrap !important; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: thin; }
.pk-filters > * { flex-shrink: 0; }
.pk-sel { gap: 4px; padding: 0 0 0 8px; border-radius: 9px; }
.pk-sel svg { width: 14px; height: 14px; }
.pk-sel select, .pk-sel select[name="sirala"] { max-width: 104px; font-size: 13px; padding: 7px 2px; text-overflow: ellipsis; }
.pk-sel select[name="kurs"], .pk-sel select[name="okul"] { max-width: 96px; }
.pk-bday { padding: 6px 9px; }
.pk-clear { padding: 6px 9px; }
.pk-chip { padding: 6px 9px; }

/* ---------- Kurs Talepleri ---------- */
.rq-kpis { grid-template-columns: repeat(4, minmax(160px, 1fr)) minmax(250px, 1.4fr); }
.rq-kpis .kpi .value { font-size: 26px; display: flex; align-items: baseline; gap: 8px; }
.rq-kpis .kpi .sub { font-size: 12.5px; color: var(--muted); }
.rq-kpis .ico.purple { background: #efeafd; color: #6d4fd8; }
.rq-kpis .ico.green { background: var(--ok-bg); color: var(--ok); }
.rq-call-row { display: flex; gap: 8px; margin-top: 4px; }
.rq-call-row span { flex: 1; display: flex; flex-direction: column; align-items: center; background: #f6f8fb; border-radius: 10px; padding: 6px 4px; font-size: 11.5px; color: var(--muted); }
.rq-call-row b { font-size: 20px; color: var(--text); }
.rq-years { display: flex; gap: 12px; align-items: flex-end; height: 170px; padding-top: 18px; }
.rq-years .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.rq-years .col b { font-size: 13px; }
.rq-years .col .b { width: 100%; max-width: 54px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #c9dcf0, #9fbbdc); min-height: 3px; }
.rq-years .col.now .b { background: linear-gradient(180deg, #5b7ea8, #3d5f8a); }
.rq-years .col span { font-size: 12.5px; color: var(--muted); }
.rq-years .col.now span { color: var(--text); font-weight: 700; }
.rq-tabs { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.rq-tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 14px; }
.rq-tabs a span { background: #eef2f6; border-radius: 99px; padding: 2px 10px; font-size: 12.5px; }
.rq-tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.rq-tabs a.on span { background: #fff; color: var(--navy); }
.rq-tabs a:hover { text-decoration: none; }
.rq-empty { background: #e8edf3 !important; color: #94a3b8 !important; display: inline-flex !important; align-items: center; justify-content: center; }
.rq-name { width: 170px; padding: 6px 9px; font-size: 13px; border: 1px dashed #b9c7d8; border-radius: 8px; }
.rq-count { color: var(--blue-dark); font-weight: 700; font-size: 13px; margin-left: 4px; }
.rq-note { width: 160px; padding: 6px 9px; font-size: 12.5px; border-radius: 8px; border: 1px solid var(--line-2); }
.rq-note.saved { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.rq-st { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line-2); white-space: nowrap; background: #fff; }
.rq-st.st-called { color: #1f8a4c; border-color: #cdeedb; background: #f0faf4; }
.rq-st.st-unreachable { color: var(--danger); border-color: #f6cfd3; background: #fff6f7; }
.rq-st.st-callback { color: #9a5b00; border-color: #f5dfae; background: #fffaf0; }
.rq-st.st-next_course { color: #1565c0; border-color: #cfe3fb; background: #f3f8fe; }
.rq-st.st-waiting { color: #6d4fd8; border-color: #ddd4fb; background: #f7f4fe; }
.rq-st.st-new { color: var(--muted); }
.rq-acts { white-space: nowrap; }
.rq-acts button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: #64748b; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-right: 2px; }
.rq-acts button:hover { border-color: var(--blue); color: var(--blue-dark); }
.rq-acts button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.rq-acts button.today { box-shadow: 0 0 0 2px #22c55e; }
.rq-table td { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 1500px) { .rq-kpis { grid-template-columns: repeat(3, 1fr); } }
.rq-table td, .rq-table th { padding-left: 7px; padding-right: 7px; }
.rq-table .rq-note { width: 150px; min-width: 150px; }
.rq-table .pk-person { min-width: 175px; }
.rq-acts button { width: 28px; height: 28px; margin-right: 1px; }
@media (max-width: 1650px) { .rq-btn-txt { display: none; } .rq-table .rq-note { width: 130px; min-width: 130px; } .rq-table .lic { padding: 3px 7px; } }

/* ---------- Muhasebe ---------- */
.fn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fn-head h2 { font-size: 26px; margin: 0 0 4px; }
.fn-head p { margin: 0; }
.fn-year { padding: 4px 6px 4px 12px; background: #fff; }
.fn-year select { font-size: 15px; font-weight: 700; max-width: none !important; }
.fn-kpis { grid-template-columns: repeat(5, minmax(170px, 1fr)); }
.fn-kpis .kpi .value { font-size: 23px; }
.fn-kpis .kpi .label { display: flex; align-items: center; gap: 5px; }
.fn-kpis .kpi .sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.fn-kpis .ico.green { background: var(--ok-bg); color: var(--ok); }
.fn-net { background: linear-gradient(135deg, #effaf3, #fff); }
.fn-pct { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.fn-pct.up { background: var(--ok-bg); color: var(--ok); } .fn-pct.down { background: var(--danger-bg); color: var(--danger); } .fn-pct.neutral { background: #eef2f6; color: var(--muted); }
.fn-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pk-h svg, .fn-h svg { vertical-align: -3px; color: var(--blue-dark); }
.fn-legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.fn-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.fn-bars .axis { min-width: 70px; }
.fn-bars .pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.fn-bars .pair .b { width: 42%; max-width: 13px; border-radius: 3px 3px 0 0; min-height: 1px; }
.fn-bars .pair .inc { background: #0b3a75; } .fn-bars .pair .exp { background: #9cc9f5; }
.fn-bars .col { position: relative; }
.fn-list { list-style: none; padding: 0; margin: 0; flex: 1; display: grid; gap: 10px; font-size: 13.5px; }
.fn-list li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; }
.fn-list li i { width: 12px; height: 12px; border-radius: 50%; }
.fn-list li span { font-size: 12.5px; }
.fn-filters { flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.fn-filters label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.fn-filters .pk-sel select { max-width: 150px; }
.fn-report { margin-left: auto; padding: 10px 18px; }
.fn-table td { vertical-align: middle; }
.fn-table td svg { vertical-align: -3px; color: var(--muted); }
.fn-course { color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.fn-course:hover { text-decoration: none; color: var(--blue-dark); }
.fn-table tfoot th { background: #f6f8fb; font-size: 13.5px; text-transform: none; color: var(--text); }
@media (max-width: 1500px) { .fn-kpis { grid-template-columns: repeat(3, 1fr); } }
.pk-gender { display: flex; align-items: center; gap: 10px; }
.pk-gender span { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: #1565c0; }
.pk-gender span:first-of-type { margin-left: auto; }
.pk-gender span.f { color: #c2185b; }
.pk-gender { white-space: nowrap; gap: 8px; }
.rq-legend { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 6px 4px; }
.rq-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rq-legend i { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: #fff; }
.rq-legend i.st-called { color: #1f8a4c; } .rq-legend i.st-unreachable { color: var(--danger); } .rq-legend i.st-callback { color: #9a5b00; }
.rq-legend i.st-next_course { color: #1565c0; } .rq-legend i.st-waiting { color: #6d4fd8; }
.rq-save-wrap { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.rq-note.dirty { border-color: #f0a020; background: #fffaf0; }
.pk-charts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pk-charts.four .pk-donut { gap: 16px; }
.pk-charts.four .pk-donut ul { font-size: 13px; gap: 8px; }
.pk-charts.four .pk-donut li b { white-space: nowrap; }
.pk-gender span:first-of-type { margin-left: 0; }
@media (max-width: 1500px) { .pk-charts.four { grid-template-columns: 1fr 1fr; } .pk-charts.four .card:first-child { grid-column: auto; } }

/* İHA'lar / Envanter */
.dr-kpis { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
.dr-kpis .kpi .ico.purple { background: #efeafd; color: #6d4fd8; }
.dr-kpis .kpi .value { font-size: 21px; white-space: nowrap; }
.dr-kpis .kpi { padding: 16px 14px; gap: 12px; }
.dr-search { min-width: 260px; }
.dr-table td { vertical-align: middle; }
.dr-model { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.dr-model img, .dr-noimg { width: 64px; height: 48px; object-fit: contain; border-radius: 8px; background: #f4f7fb; flex-shrink: 0; }
.dr-noimg { display: flex; align-items: center; justify-content: center; color: #a0aec0; }
.dr-pdf { display: inline-flex; align-items: center; gap: 4px; color: var(--danger); font-weight: 600; font-size: 13px; }
.dr-date.warn { color: #9a5b00; font-weight: 700; }
.dr-date.over { color: var(--danger); font-weight: 700; }
.dr-del { color: var(--danger); }
.dr-del:hover { background: var(--danger-bg); }
.muted-row td { opacity: .6; }
.badge-plain { background: #f1f4f8; color: #9aa8b8; }
.dr-foot { padding: 12px 18px; border-top: 1px solid var(--line); }
.dr-grid { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.dr-drop { display: flex; align-items: center; justify-content: center; text-align: center; height: 220px; border: 2px dashed var(--line-2); border-radius: 14px; background: #f8fafc; color: var(--muted); cursor: pointer; overflow: hidden; margin: 0; font-weight: 600; }
.dr-drop.over { border-color: var(--blue); background: var(--blue-soft); }
.dr-drop img { width: 100%; height: 100%; object-fit: contain; }
.dr-fields { grid-template-columns: 1fr 1fr; }
.dr-fields .span2 { grid-column: 1 / -1; }
.dr-fields label input, .dr-fields label select, .dr-fields label textarea { margin-top: 4px; font-weight: 400; }
.dr-ins { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.dr-ins .lbl { font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.dr-ins input[type=file] { flex: 1 1 100%; }
@media (max-width: 1400px) { .dr-kpis { grid-template-columns: repeat(3, minmax(150px, 1fr)); } }
@media (max-width: 760px) { .dr-grid, .dr-fields { grid-template-columns: 1fr; } .dr-kpis { grid-template-columns: 1fr 1fr; } .pk-filters { flex-wrap: wrap; } }

/* Kurumsal teklifler */
.of-kpis { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
.of-kpis .kpi { padding: 16px 14px; gap: 12px; }
.of-kpis .kpi .ico.purple { background: #efeafd; color: #6d4fd8; }
.of-kpis .kpi .ico.blue { background: var(--blue-soft); color: var(--blue); }
.of-kpis .kpi .value { font-size: 22px; }
.of-table td { vertical-align: middle; }
.of-note { color: #5b6670; margin-top: 3px; }
.of-mail { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-status { padding: 5px 26px 5px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; min-width: 0; width: auto; border: 1px solid var(--line-2); }
.of-status.sent { background: var(--blue-soft); color: var(--blue-dark); border-color: transparent; }
.of-status.negotiating { background: var(--warn-bg); color: #9a5b00; border-color: transparent; }
.of-status.won { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.of-status.lost { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
@media (max-width: 1400px) { .of-kpis { grid-template-columns: repeat(3, minmax(150px, 1fr)); } }
.badge-purple { background: #efeafd; color: #6d4fd8; }
.of-group { font-size: 12px; font-weight: 700; color: var(--blue); }
.of-group.hizmet { color: #c26a14; }
.of-group.satis { color: #1f7a45; }

/* Ana sayfa */
.db-h { display: flex; align-items: center; gap: 9px; font-size: 17px; margin: 0 0 14px; color: var(--navy); }
.db-h a { color: inherit; display: inline-flex; align-items: center; gap: 9px; }
.db-h svg { color: var(--blue); }
.db-h.sm { font-size: 14.5px; margin-bottom: 10px; }
.db-company { display: grid; grid-template-columns: 1.35fr 1.25fr 1fr; gap: 0; align-items: center; padding: 14px 18px; margin-bottom: 16px; }
.db-company > div { display: flex; align-items: center; gap: 14px; padding: 0 18px; min-width: 0; }
.db-company > div + div { border-left: 1px solid var(--line); }
.db-company > div:first-child { padding-left: 0; }
.db-co-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-co-name { font-size: 16px; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.db-company .small { line-height: 1.45; }
.db-vakif { font-weight: 800; font-style: italic; font-size: 19px; color: #1d1d1b; white-space: nowrap; border-left: 6px solid #f5b800; padding-left: 8px; }
.db-google { flex-wrap: wrap; font-size: 14px; }
.db-google a { word-break: break-all; }
.db-g { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.db-row1 { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 16px; }
.db-row1 .card, .db-lists .card { margin-bottom: 16px; }
.db-donut { display: flex; align-items: center; gap: 24px; }
.db-donut .donut::after { inset: 30px; }
.db-donut .donut .center strong { font-size: 26px; color: var(--navy); }
.db-donut ul { list-style: none; padding: 0; margin: 0; flex: 1; display: grid; gap: 6px; font-size: 13px; min-width: 0; }
.db-donut li { display: grid; grid-template-columns: 11px 1fr auto 34px; align-items: center; gap: 8px; }
.db-donut li i { width: 11px; height: 11px; border-radius: 50%; }
.db-donut li .nm { font-size: 12px; line-height: 1.2; }
.db-donut li em { font-style: normal; color: var(--muted); text-align: right; }
.db-year { display: flex; align-items: center; justify-content: center; gap: 18px; color: inherit; text-decoration: none; }
.db-year:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.db-year-ico { width: 78px; height: 78px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-year-lbl { font-weight: 700; color: var(--navy); font-size: 16px; }
.db-year-num { font-size: 44px; font-weight: 800; color: var(--navy); line-height: 1.1; display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.db-growth { font-size: 20px; color: var(--ok); display: inline-flex; align-items: center; gap: 2px; }
.db-growth.down { color: var(--danger); }
.rot-up { transform: rotate(-90deg); }
.db-gender { display: flex; gap: 18px; font-size: 20px; font-weight: 700; margin-top: 4px; }
.db-gender .m { color: #1565c0; display: inline-flex; align-items: center; gap: 4px; }
.db-gender .f { color: #e0558d; display: inline-flex; align-items: center; gap: 4px; }
.db-person { display: flex; align-items: center; gap: 12px; padding: 5px 0; color: inherit; text-decoration: none; }
.db-person img, .db-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.db-av { background: var(--blue-soft); color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.db-person strong { display: block; font-size: 13.5px; text-transform: uppercase; }
.db-person small { color: var(--muted); }
.db-course { display: flex; align-items: center; gap: 14px; padding: 6px 0; color: var(--navy); text-decoration: none; }
.db-course-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-course strong { display: block; font-size: 16px; }
.db-course small { font-size: 14px; color: var(--text); }
.db-lists { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.db-list { padding: 14px; }
.db-item { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid #eef2f6; color: inherit; text-decoration: none; min-width: 0; }
.db-item:first-of-type { border-top: 0; }
.db-item:hover { background: #f7fafd; text-decoration: none; }
.db-item img, .db-av.sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 11px; }
.db-txt { flex: 1; min-width: 0; }
.db-txt strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11.5px; line-height: 1.25; text-transform: uppercase; overflow: hidden; word-break: break-word; }
.db-txt small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-item time { font-size: 10px; line-height: 1.3; color: var(--muted); white-space: nowrap; text-align: right; }
.db-ic { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ok-bg); color: var(--ok); flex-shrink: 0; }
.db-ic.red { background: var(--danger-bg); color: var(--danger); }
.db-ic.mail { background: var(--blue-soft); color: var(--blue-dark); }
.db-ic.unread { background: var(--blue); color: #fff; }
.db-offers thead th { background: #eaf3fc; color: var(--navy); }
.db-offers td { vertical-align: middle; }
.db-c { color: var(--navy); display: inline-flex; padding: 2px 4px; }
.db-c.wa { color: var(--wa); }
.db-seg { display: inline-flex; gap: 5px; }
.db-seg button { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.db-seg button:hover { border-color: var(--blue); color: var(--blue); }
.db-seg button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.db-seg button.red.on { background: var(--danger); border-color: var(--danger); }
.db-track { position: relative; width: 130px; height: 14px; display: flex; justify-content: space-between; align-items: center; }
.db-track::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: #dbe4ee; border-radius: 3px; }
.db-track .bar { position: absolute; left: 0; height: 3px; background: var(--blue); border-radius: 3px; }
.db-track i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #c9d5e2; }
.db-track i.on { border-color: var(--blue); background: var(--blue); }
@media (max-width: 1600px) { .db-lists { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1400px) { .db-row1 { grid-template-columns: 1fr 1fr; } .db-company { grid-template-columns: 1fr; gap: 10px; } .db-company > div { padding: 0; } .db-company > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 10px; } }
@media (max-width: 760px) { .db-row1, .db-lists { grid-template-columns: 1fr; } .db-donut { flex-direction: column; } }
.db-year { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; }
.db-year-top { display: flex; align-items: center; justify-content: center; gap: 18px; color: inherit; text-decoration: none; }
.db-year-top:hover, .db-month:hover { text-decoration: none; }
.db-month { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f4f8fd; color: var(--navy); text-decoration: none; }
.db-month-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-month-lbl { font-size: 13px; font-weight: 600; flex: 1; }
.db-month strong { font-size: 24px; font-weight: 800; }
.db-growth.sm { font-size: 13px; }
.db-place { color: var(--blue-dark) !important; }
.mr-dialog { width: min(900px, 95vw); }
.mr-dialog .head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-dialog iframe { display: block; width: 100%; height: min(70vh, 640px); border: 0; background: #fff; }

/* Tanımlar: sekme çubuğu + ortak liste tasarımı */
.def-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid rgba(214, 223, 234, .6); padding: 6px; gap: 4px; margin-bottom: 20px; }
.def-tabs a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 10px; border-radius: 11px; color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.def-tabs a:hover { background: #f2f6fb; text-decoration: none; }
.def-tabs a.on { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(0, 37, 63, .25); }
.def-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.def-head h1 { font-size: 26px; margin: 0 0 4px; color: var(--navy); }
.def-head p { margin: 0; }
.def-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.def-top > .card { margin-bottom: 0; }
.def-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: start; }
.def-kpis .kpi, .def-kpis-row .kpi, .tr-kpis .kpi { padding: 16px; gap: 14px; }
.def-kpis .kpi .ico, .def-kpis-row .kpi .ico, .tr-kpis .kpi .ico { width: 52px; height: 52px; }
.def-kpis .kpi .ico.purple, .def-kpis-row .kpi .ico.purple, .tr-kpis .kpi .ico.purple { background: #efeafd; color: #6d4fd8; }
.def-kpis .kpi .value, .def-kpis-row .kpi .value, .tr-kpis .kpi .value { font-size: 24px; display: flex; align-items: baseline; gap: 8px; }
.def-kpi-filter { grid-column: 1 / -1; }
.def-kpi-filter .toolbar { margin: 0; }
.def-kpis-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.def-filters { margin-bottom: 14px; }
.def-filters .pk-sel select { max-width: 190px; }
.def-table td { vertical-align: middle; }
.def-name { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.def-name small { display: block; font-size: 12px; }
.def-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; flex-shrink: 0; }
.def-logo.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; font-size: 13px; border: 0; padding: 0; }
.def-edit { gap: 6px; }
.def-more { margin-left: 4px; vertical-align: middle; }
.def-more .dropdown { min-width: 190px; }
.def-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.def-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.def-chips a img { width: 20px; height: 20px; object-fit: contain; }
.def-chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tr-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.tr-cats { padding: 16px 14px; position: sticky; top: 90px; }
.tr-cats h3 { font-size: 17px; margin: 0 0 12px; color: var(--navy); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tr-cat-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); padding: 8px 6px; border-radius: 9px; text-decoration: none; }
.tr-cat-head svg { color: var(--blue); }
.tr-cat-head:hover, .tr-cat-head.on { background: #f2f6fb; text-decoration: none; }
.tr-cats ul { list-style: none; margin: 2px 0 12px; padding: 0 0 0 6px; display: grid; gap: 2px; }
.tr-cats li a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: 13.5px; text-decoration: none; }
.tr-cats li a:hover { background: #f2f6fb; text-decoration: none; }
.tr-cats li a svg { color: var(--navy); }
.tr-cats li.off a { opacity: .55; }
.tr-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tr-kpis .kpi .label { font-size: 12.5px; }
.tr-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 1500px) { .tr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .def-top { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .tr-layout { grid-template-columns: 1fr; } .tr-cats { position: static; } .def-tabs { grid-template-columns: 1fr 1fr; } .def-kpis-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .def-kpis, .tr-kpis { grid-template-columns: 1fr 1fr; } }
.tr-kpis .kpi { padding: 14px 12px; gap: 10px; }
.tr-kpis .kpi .ico { width: 44px; height: 44px; }
.tr-kpis .kpi .label { white-space: nowrap; }
.tr-kpis .kpi .value { font-size: 22px; }
.f-ico { position: relative; }
.f-ico > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--blue); pointer-events: none; }
.f-ico.ta > svg { top: 14px; transform: none; }
.f-ico > input, .f-ico > select, .f-ico > textarea { padding-left: 38px; }
.def-live { color: var(--ok); font-weight: 600; }
.dropdown button.def-del { color: var(--danger); }
.dropdown button.def-del:hover { background: var(--danger-bg); }
/* Eğitmen detayı (isme tıklayınca açılır) */
.ins-row { cursor: pointer; }
.ins-row .name-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.ins-row .name-link:hover strong { color: var(--blue); }
.ins-row .caret { transition: transform .2s; color: var(--muted); }
.ins-row.open .caret { transform: rotate(180deg); }
.ins-row.open td { background: #f4f8fd; }
.ins-detail > td { background: #f8fafd; padding: 0 !important; }
.ins-box { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.6fr); gap: 22px; padding: 18px 22px 20px; border-bottom: 2px solid var(--blue-soft); }
.ins-photo { width: 150px; height: 190px; border-radius: 12px; object-fit: cover; background: #e9eef5; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #a0aec0; }
.ins-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 13.5px; margin: 0; align-content: start; }
.ins-kv dt { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ins-kv dt svg { color: var(--blue); }
.ins-kv dd { margin: 0; font-weight: 600; }
.ins-docs h4, .ins-info h4 { margin: 0 0 10px; font-size: 14px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.ins-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ins-doc { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; display: grid; gap: 8px; }
.ins-doc.has { border-color: #bfe3cc; }
.ins-doc .t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--navy); }
.ins-doc .t .st { margin-left: auto; }
.ins-doc .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ins-doc label.btn { margin: 0; cursor: pointer; }
.ins-doc input[type=file] { display: none; }
.ins-docs-count { font-size: 12px; font-weight: 700; }
@media (max-width: 1100px) { .ins-box { grid-template-columns: 1fr; } }
/* Ayarlar sekmeleri (Ayarlar + Kullanıcılar) */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 13.5px; }
.tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs a:hover { text-decoration: none; }
.nav .sub .sub-group > summary { display: flex; align-items: center; gap: 8px; font-size: 12.8px; padding: 6px 10px; color: #b9c8d8; cursor: pointer; list-style: none; border-radius: 8px; }
.nav .sub .sub-group > summary::-webkit-details-marker { display: none; }
.nav .sub .sub-group > summary:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav .sub .sub-group > summary .caret { margin-left: auto; transition: transform .2s; }
.nav .sub .sub-group[open] > summary .caret { transform: rotate(180deg); }
.nav .sub .sub-group > a { padding-left: 22px; }
.nav .sub-count { font-size: 10.5px; background: rgba(255, 255, 255, .12); border-radius: 99px; padding: 0 7px; }

/* İletişim → SEO */
.seo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seo-periods { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seo-periods a { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.seo-periods a.active { background: var(--navy); color: #fff; }
.seo-setup { margin-bottom: 18px; }
.seo-steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; }
.seo-kpis { grid-template-columns: repeat(4, minmax(200px, 1fr)); }
.seo-kpis .kpi { align-items: flex-start; }
.seo-kpis .kpi .value { display: flex; align-items: baseline; gap: 8px; }
.seo-kpis .kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.seo-live { font-size: 12.5px; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.seo-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.seo-grid { display: grid; gap: 16px; margin-bottom: 18px; }
.seo-grid .card { margin-bottom: 0; min-width: 0; }
.seo-grid-2 { grid-template-columns: 1.4fr 1fr; }
.seo-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-chart { width: 100%; height: 190px; display: block; }
.seo-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.seo-bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; margin-bottom: 10px; }
.seo-bar > div { grid-column: 1 / -1; height: 6px; background: #eef2f6; border-radius: 4px; overflow: hidden; }
.seo-bar > div i { display: block; height: 100%; background: linear-gradient(90deg, #4aa3f0, #0b3a75); border-radius: 4px; }
.seo-card-h { padding: 16px 18px 8px; margin: 0; }
.seo-table { width: 100%; font-size: 13px; }
.seo-table td, .seo-table th { padding: 7px 18px 7px 0; }
.seo-table td:first-child, .seo-table th:first-child { padding-left: 18px; word-break: break-word; }
.seo-mini > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.seo-mini > div:last-child { border-bottom: 0; }
.seo-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 18px 14px; }
@media (max-width: 1100px) { .seo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .seo-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .seo-kpis, .seo-grid-2, .seo-grid-3 { grid-template-columns: 1fr; } }
.seo-grid-ads { grid-template-columns: .9fr 1.25fr 1.1fr; }
.seo-budget { display: flex; justify-content: space-between; gap: 10px; }
.seo-budget > div { display: flex; flex-direction: column; }
.seo-budget b { font-size: 20px; font-variant-numeric: tabular-nums; }
.seo-budget-form { display: flex; gap: 8px; margin-top: 12px; }
.seo-budget-form input { flex: 1; min-width: 0; }
@media (max-width: 1100px) { .seo-grid-ads { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .seo-grid-ads { grid-template-columns: 1fr; } }

/* Vesikalığı henüz düzenlenmemiş kişi işareti (kurs ve evrak listeleri) */
.photo-pending { display: inline-flex; vertical-align: middle; padding: 2px; border-radius: 6px; color: #c05621; background: var(--warn-bg); }
