:root {
  --sidebar-w: 264px;
  --sidebar-bg: #0f1117;
  --sidebar-hover: #1a1d29;
  --sidebar-active: #1e2133;
  --sidebar-border: rgba(255,255,255,.07);
  --accent: #ff5b2e;
  --accent-rgb: 255,91,46;
  --accent-strong: #d14a26;
  --accent-soft: rgba(255,91,46,.15);
  --accent-text: #ff7a52;
  --bg: #f3f4f8;
  --surface: #ffffff;
  --border: #e8eaf0;
  --ink: #111827;
  --ink2: #374151;
  --muted: #6b7280;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--sidebar-bg); color: #c9cdd8;
  display: flex; flex-direction: column; overflow-y: auto; z-index: 100;
  border-right: 1px solid var(--sidebar-border);
}

.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 22px 20px 18px; border-bottom: 1px solid var(--sidebar-border);
  color: #fff; flex-shrink: 0;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #ff3a1a);
  display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff;
}
.brand-logo-img { height: 30px; object-fit: contain; flex-shrink: 0; }
.brand-text b { display: block; font-size: 14px; font-weight: 800; color: #fff; line-height: 1.2; }
.brand-text small { font-size: 11px; color: #6b7280; font-weight: 500; }

.sidebar-nav { flex: 1; padding: 14px 12px; display: grid; gap: 4px; align-content: start; }
.nav-group { display: grid; gap: 1px; padding-bottom: 12px; }
.nav-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #4b5563; padding: 6px 10px 3px; pointer-events: none;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; color: #9ca3af;
  font-weight: 600; font-size: 13.5px; transition: background .12s, color .12s;
  position: relative;
}
.sidebar-nav a svg { opacity: .7; flex-shrink: 0; }
.sidebar-nav a:hover { background: var(--sidebar-hover); color: #e5e7eb; }
.sidebar-nav a:hover svg { opacity: 1; }
.sidebar-nav a.active { background: var(--sidebar-active); color: #fff; }
.sidebar-nav a.active svg { opacity: 1; }
.sidebar-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 900;
  display: grid; place-items: center; padding: 0 5px; flex-shrink: 0;
}

.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--sidebar-active); color: #e5e7eb;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info b { display: block; font-size: 13px; color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info small { font-size: 11px; color: #6b7280; }
.sidebar-logout {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  color: #6b7280; transition: background .12s, color .12s; flex-shrink: 0;
}
.sidebar-logout:hover { background: #dc262622; color: #ef4444; }

.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,244,248,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-title h1 { font-size: 18px; font-weight: 800; }
.admin-top-actions { display: flex; align-items: center; gap: 10px; position: relative; }
.admin-notify-button {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--muted);
  transition: background .12s, color .12s; position: relative;
}
.admin-notify-button:hover { background: var(--accent-soft); color: var(--accent); }
.notify-dot {
  position: absolute; right: 6px; top: 6px; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%; border: 2px solid var(--bg);
}

.main-content { padding: 24px 28px; flex: 1; }

.admin-notification-panel {
  position: absolute; right: 0; top: 48px;
  width: min(380px, calc(100vw - 30px));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 12px; z-index: 200;
}
.admin-notification-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 6px 12px; border-bottom: 1px solid var(--border);
}
.admin-notification-head b { font-size: 15px; }
.admin-notification-head button {
  background: var(--bg) ; color: var(--ink) ;
  padding: 7px 10px ; border-radius: 9px ; font-size: 12px; font-weight: 700;
}
.admin-notification-list { display: grid; gap: 7px; max-height: 360px; overflow: auto; padding-top: 10px; }
.admin-notification-item {
  border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px;
}
.admin-notification-item.unread { background: #fff7f1; border-color: #fed7aa; }
.admin-notification-item b { display: block; font-size: 13px; }
.admin-notification-item p { margin: 4px 0; color: var(--muted); font-size: 12.5px; }
.admin-notification-item small, .admin-empty-notification { color: #94a3b8; font-size: 12px; }

.panel, .stats article {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 22px;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.panel-head h3 { font-size: 16px; font-weight: 800; }
.panel-head a { color: var(--accent); font-weight: 700; font-size: 13px; }

.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px;
}
.stats article { padding: 20px; }
.stat-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; margin-bottom: 12px; background: var(--accent-soft);
}
.stats p { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stats h3 { font-size: 28px; font-weight: 900; margin: 4px 0 2px; }
.stats small { color: var(--success); font-weight: 700; font-size: 12px; }

.grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
td, th { padding: 13px 14px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }

.badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 12px;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-warn  { background: #fef3c7; color: #92400e; }
.badge-gray  { background: #f1f5f9; color: #475569; }

.vendor {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.vendor:last-child { border-bottom: 0; }
.logo {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.vendor p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.vendor span { margin-left: auto; color: var(--success); font-weight: 800; }

.form-card {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 12px; background: #f9fafb; border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 20px;
}
.form-card.vertical { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 12px; background: var(--surface); color: var(--ink);
  transition: border-color .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

button.primary, .primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; transition: filter .12s;
}
button.primary:hover, .primary:hover { filter: brightness(.93); }
button.soft, .soft {
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--border);
  padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer;
}
button.soft:hover { background: var(--border); }
button.danger { background: #fef2f2; color: var(--danger); border: 0; padding: 9px 14px; border-radius: 10px; font-weight: 700; }
button.danger:hover { background: #fee2e2; }
.inline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline input { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; }
.form-note { font-size: 12px; color: var(--muted); margin: -6px 0 10px; }

.alert { padding: 12px 16px; border-radius: 12px; font-weight: 700; margin-bottom: 18px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }

.admin-support-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: linear-gradient(135deg, #111827, #1e2133);
  color: #fff; border-radius: var(--radius-lg); padding: 26px 28px;
  margin-bottom: 22px; border: 1px solid rgba(255,255,255,.06);
}
.admin-support-hero span { color: var(--accent-text); font-weight: 900; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.admin-support-hero h2 { margin: 6px 0 6px; font-size: 26px; font-weight: 900; }
.admin-support-hero p { color: #9ca3af; font-size: 13.5px; max-width: 700px; }
.support-metrics { display: flex; gap: 12px; flex-shrink: 0; }
.support-metrics article {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 14px 18px; min-width: 100px; text-align: center;
}
.support-metrics small { display: block; color: #9ca3af; font-size: 11.5px; margin-bottom: 5px; font-weight: 700; }
.support-metrics b { font-size: 28px; color: #fff; }

.support-admin-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.support-admin-list-panel { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }

.section-kicker { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.support-list-head, .support-detail-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.support-list-head h3, .support-detail-head h3 { margin: 4px 0 0; font-size: 20px; font-weight: 800; }

.filter-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-pills a {
  border-radius: 999px; background: var(--bg); color: var(--muted);
  padding: 7px 12px; font-weight: 800; font-size: 12.5px; transition: background .12s, color .12s;
}
.filter-pills a.active { background: var(--ink); color: #fff; }

.admin-ticket-list { display: grid; gap: 9px; }
.admin-ticket-card {
  display: grid; gap: 8px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 14px; padding: 13px;
  color: var(--ink); transition: border-color .14s, box-shadow .14s;
}
.admin-ticket-card:hover { border-color: var(--accent); box-shadow: 0 4px 18px rgba(255,91,46,.1); }
.admin-ticket-card.active { border-color: var(--accent); background: #fff9f7; }
.admin-ticket-card-top, .admin-ticket-meta { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.admin-ticket-card p { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-ticket-meta small { color: #94a3b8; font-weight: 700; font-size: 11.5px; }
.admin-ticket-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.admin-ticket-tags span, .admin-ticket-tags em {
  border-radius: 999px; background: var(--bg); color: var(--muted);
  padding: 4px 9px; font-size: 11.5px; font-weight: 800; font-style: normal;
}
.admin-ticket-tags em { background: #fee2e2; color: #991b1b; }

.support-status { border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-weight: 900; white-space: nowrap; }
.support-status.big { font-size: 13px; padding: 8px 13px; }
.status-açık, .status-acik, .status-açik { background: #dcfce7; color: #166534; }
.status-beklemede { background: #fef3c7; color: #92400e; }
.status-kapalı, .status-kapali { background: #f1f5f9; color: #475569; }

.support-admin-detail-panel { min-height: 600px; }
.support-detail-head { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.support-detail-head p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }
.support-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0; }
.support-info-grid span {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; color: var(--ink2); font-weight: 700;
}
.support-info-grid b { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.support-info-grid em { font-style: normal; display: block; font-size: 13.5px; }
.support-actions-bar {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; margin-bottom: 14px;
}
.support-actions-bar form { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: end; }
.support-actions-bar select, .support-actions-bar input {
  border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px;
  background: var(--surface);
}
.support-actions-bar button { background: var(--ink) ; color: #fff ; }

.support-message-timeline { display: grid; gap: 13px; margin: 16px 0; }
.support-timeline-item { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 10px; align-items: flex-start; }
.timeline-avatar {
  width: 40px; height: 40px; border-radius: 12px; background: var(--ink);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 900; flex-shrink: 0;
}
.support-timeline-item.customer .timeline-avatar { background: var(--accent); }
.timeline-bubble {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
}
.support-timeline-item.admin .timeline-bubble { background: #f5f7ff; }
.timeline-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.timeline-head b { font-size: 13px; }
.timeline-head small { color: #94a3b8; font-size: 12px; font-weight: 700; }
.timeline-bubble p { color: var(--ink2); white-space: pre-wrap; line-height: 1.55; font-size: 13.5px; }

.admin-reply-form {
  display: grid; gap: 10px; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 14px; margin-top: 16px;
}
.admin-reply-form textarea {
  border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px;
  background: var(--surface); resize: vertical; min-height: 90px;
}
.admin-reply-form textarea:focus { outline: none; border-color: var(--accent); }
.admin-reply-form button { background: var(--ink) ; color: #fff ; }
.admin-reply-form.is-sending { opacity: .7; pointer-events: none; }

.admin-empty-detail, .empty-support-admin { text-align: center; color: var(--muted); padding: 50px 20px; }
.admin-empty-detail div { font-size: 48px; margin-bottom: 12px; }
.admin-empty-detail h3 { color: var(--ink); margin-bottom: 6px; }
.closed-ticket-admin {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; color: var(--muted); font-weight: 700; font-size: 13px;
}

.auth-shell { margin: 0; }
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,122,24,.15), transparent),
              radial-gradient(900px 500px at 100% 0, rgba(255,48,88,.12), transparent), #0b0d17;
}
.auth-box {
  width: min(420px, 92vw); background: #fff;
  border-radius: 24px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.auth-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.auth-logo span {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #ff3a1a);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px;
}
.auth-logo b { font-size: 18px; font-weight: 800; }
.auth-box h2 { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.auth-box p { color: var(--muted); margin-bottom: 20px; font-size: 13.5px; }
.auth-box form { display: grid; gap: 14px; }
.auth-box label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.auth-box input {
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--ink);
}
.auth-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-box button {
  border: 0; border-radius: 12px; padding: 13px;
  background: linear-gradient(135deg, var(--accent), #ff3a1a);
  color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; margin-top: 2px;
}
.auth-error {
  background: #fee2e2; color: var(--danger); border: 1px solid #fecaca;
  border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 13.5px; margin-bottom: 14px;
}

[hidden] { display: none ; }
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }

.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; margin: 16px 0; }
.pos-card {
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px;
  display: grid; gap: 10px; background: var(--surface);
}
.pos-card-head { display: flex; align-items: center; gap: 10px; }
.pos-logo {
  width: 40px; height: 40px; border-radius: 10px; background: var(--bg);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.pos-card-head b { font-size: 14px; font-weight: 800; }
.pos-card-head small { display: block; color: var(--muted); font-size: 11.5px; }
.pos-status { display: flex; align-items: center; justify-content: space-between; }
.pos-toggle {
  width: 40px; height: 22px; border-radius: 99px; border: 0;
  background: var(--border); position: relative; cursor: pointer; transition: background .2s;
}
.pos-toggle::after {
  content: ''; position: absolute; left: 2px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: left .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.pos-toggle.on { background: var(--success); }
.pos-toggle.on::after { left: 20px; }
.pos-note { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pos-field { display: grid; gap: 4px; }
.pos-field label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pos-field input {
  border: 1.5px solid var(--border); border-radius: 9px; padding: 8px 10px;
  background: var(--bg); font-size: 13px;
}

@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .support-admin-layout { grid-template-columns: 320px 1fr; }
}
@media (max-width: 1000px) {
  :root { --sidebar-w: 0px; }
  .sidebar { position: static; width: auto; display: none; }
  .main { margin-left: 0; }
  .grid, .grid-3, .grid-4, .support-admin-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .support-admin-list-panel { position: static; max-height: none; }
  .admin-support-hero { grid-template-columns: 1fr; }
  .support-metrics { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .main-content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .stats { grid-template-columns: 1fr; }
  .support-info-grid { grid-template-columns: 1fr; }
  .support-actions-bar form { grid-template-columns: 1fr; }
}

/* Kullanıcı yönetimi yardımcıları */
.badge.ok  { background:#dcfce7; color:#166534; }
.badge.off { background:#f1f5f9; color:#64748b; }
.chip { display:inline-block; padding:3px 11px; border-radius:999px; background:#eef2ff; color:#4338ca; font-size:12px; font-weight:600; }
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.user-search { width:100%; max-width:360px; padding:9px 12px; border:1px solid #e5e7eb; border-radius:10px; font-size:14px; }

/* Rol × yetki matrisi */
.yetki-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:16px 18px; }
.yetki-grup h4 { font-size:11.5px; text-transform:uppercase; letter-spacing:.4px; color:#64748b; margin:0 0 6px; border-bottom:1px solid #eef2f7; padding-bottom:5px; }
.yetki-item { display:flex; align-items:center; gap:8px; padding:5px 0; font-size:13.5px; cursor:pointer; }
.yetki-item input { width:16px; height:16px; cursor:pointer; }

/* ── Accordion menü (tek açık) ── */
.nav-group { display: block; padding-bottom: 2px; }
.nav-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; cursor: pointer; padding: 8px 10px 6px; border-radius: 8px;
}
.nav-head:hover { background: var(--sidebar-hover); }
.nav-head .nav-label { padding: 0; pointer-events: none; }
.nav-caret { color: #6b7280; transition: transform .2s ease; flex-shrink: 0; }
.nav-group.open .nav-caret { transform: rotate(180deg); }
/* açılır içerik: kapalıyken gizli */
.nav-items { display: grid; gap: 1px; overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.nav-group.open .nav-items { max-height: 640px; padding-top: 2px; }
/* aktif sayfası olan grubun başlığını hafif vurgula */
.nav-group.open > .nav-head .nav-label { color: #cbd5e1; }

/* ── Zengin metin editörü ── */
/* İçerik alanı form ızgarasında tüm satırı kaplasın (yoksa 200px sütuna sıkışır). */
.field-wide { grid-column: 1 / -1; }
.field-wide .rich-editor, .field-wide > textarea { width: 100%; box-sizing: border-box; }
.rich-editor { width: 100%; box-sizing: border-box; border: 1px solid #d7dbe3; border-radius: 10px; overflow: hidden; background: #fff; }
.red-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 7px 8px; background: #f6f7f9; border-bottom: 1px solid #e5e8ef; }
.red-btn {
  border: 1px solid transparent; background: transparent; border-radius: 7px; cursor: pointer;
  min-width: 30px; height: 30px; padding: 0 8px; font-size: 13px; color: #374151; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.red-btn:hover { background: #e8ebf1; border-color: #dde1e9; }
.red-btn:active { background: #dde1e9; }
.red-sep { width: 1px; height: 20px; background: #dde1e9; margin: 0 4px; }
.red-select { height: 30px; border: 1px solid #dde1e9; border-radius: 7px; background: #fff; font-size: 13px; padding: 0 6px; color: #374151; }
.red-area {
  min-height: 220px; max-height: 480px; overflow-y: auto; padding: 14px 16px;
  font-size: 15px; line-height: 1.7; color: #1f2937; outline: none;
}
.red-area:focus { background: #fffdfb; }
.red-area h2 { font-size: 20px; margin: 16px 0 8px; }
.red-area h3 { font-size: 17px; margin: 14px 0 6px; }
.red-area blockquote { border-left: 3px solid var(--brand, var(--accent)); margin: 10px 0; padding: 4px 14px; color: #4b5563; background: #f9fafb; }
.red-area p { margin: 0 0 12px; }
.red-area img { max-width: 100%; height: auto; border-radius: 8px; }
.red-area ul, .red-area ol { margin: 0 0 12px; padding-left: 24px; }
.red-area:empty::before { content: attr(data-placeholder); color: #9aa2af; }

/* ── Başvuru belgeleri ────────────────────────────────────────────────────── */
.belge-izgara { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; }
.belge-kart { border:1px solid var(--border,#e5e7eb); border-radius:12px; padding:12px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; background:#fafbfc; }
.belge-kart .belge-ad { font-size:12.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:#6b7280; }
.belge-kart img { width:100%; max-height:180px; object-fit:contain; border-radius:8px; background:#fff; border:1px solid #eef0f4; }
.belge-kart .belge-yok { font-size:13px; color:#b91c1c; background:#fee2e2; border-radius:8px; padding:8px 10px; width:100%; text-align:center; }
.belge-kart .belge-pdf { font-size:26px; padding:22px 0; width:100%; text-align:center; background:#fff; border:1px solid #eef0f4; border-radius:8px; }

/* Kullanıcı listesinde işletme/rol bağları */
.isletme-bag { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:3px; }
.isletme-bag .bag-ad { font-size:13px; font-weight:700; }
.isletme-bag .bag-rol { font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:#4338ca; background:#eef2ff; padding:2px 7px; border-radius:999px; }
.isletme-bag .bag-not { font-size:10.5px; color:#b91c1c; background:#fee2e2; padding:2px 7px; border-radius:999px; }
.isletme-bag.bag-pasif { opacity:.55; }
.isletme-bag form { margin: 0; display: inline; }
.bag-rol-sec { font-size: 11px; font-weight: 700; padding: 2px 6px; border: 1px solid #c7d2fe; border-radius: 999px; background: #eef2ff; color: #4338ca; cursor: pointer; font-family: inherit; }
.bag-dugme { border: 1px solid var(--border, #e5e7eb); background: #fff; border-radius: 7px; font-size: 11px; font-weight: 700; padding: 2px 7px; cursor: pointer; font-family: inherit; color: #6b7280; }
.bag-dugme:hover { border-color: #dc2626; color: #dc2626; }
.bag-ekle { margin-top: 5px; }
.bag-ekle summary { font-size: 11.5px; color: #6b7280; cursor: pointer; }
.bag-ekle summary:hover { color: var(--accent, var(--accent)); }
.bag-ekle form { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.bag-ekle select { font-size: 11.5px; padding: 3px 6px; border: 1px solid #e5e7eb; border-radius: 7px; font-family: inherit; max-width: 150px; }
