/* ═══════════════════════════════════════════════════════════════
   CetinsPanel - app.css
   wowdash tarzı: koyu sidebar, açık içerik, temiz kartlar
═══════════════════════════════════════════════════════════════ */

/* ── RESET & TEMEL ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Marka renkleri */
  --brand:          #4F46E5; /* indigo */
  --brand-dark:     #4338CA;
  --brand-light:    #EEF2FF;
  --brand-hover:    #6366F1;

  /* Sidebar */
  --sidebar-bg:     #0F172A; /* slate-900 */
  --sidebar-hover:  #1E293B;
  --sidebar-active: #1E293B;
  --sidebar-border: #1E293B;
  --sidebar-text:   #94A3B8;
  --sidebar-text-active: #F1F5F9;
  --sidebar-width:  260px;
  --sidebar-collapsed: 72px;

  /* İçerik alanı */
  --bg-page:    #F8FAFC;
  --bg-card:    #FFFFFF;
  --bg-input:   #FFFFFF;
  --bg-hover:   #F1F5F9;

  /* Metin */
  --text-primary:   #0F172A;
  --text-secondary: #64748B;
  --text-muted:     #94A3B8;
  --text-white:     #FFFFFF;

  /* Kenarlık */
  --border:         #E2E8F0;
  --border-focus:   #4F46E5;

  /* Durum renkleri */
  --success:        #10B981;
  --success-light:  #ECFDF5;
  --warning:        #F59E0B;
  --warning-light:  #FFFBEB;
  --danger:         #EF4444;
  --danger-light:   #FEF2F2;
  --info:           #3B82F6;
  --info-light:     #EFF6FF;

  /* Tipografi */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Köşe yarıçapı */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  /* Gölge */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);

  /* Topbar yüksekliği */
  --topbar-h: 64px;

  /* Geçiş */
  --transition: 0.2s ease;
}

html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ── PANEL LAYOUT ───────────────────────────────────────────── */
.panel-wrapper {
  display: flex;
  min-height: 100vh;
}

.panel-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition);
  min-width: 0;
}

.panel-main.collapsed {
  margin-left: var(--sidebar-collapsed);
}

.panel-content {
  padding: 24px;
  min-height: calc(100vh - var(--topbar-h));
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: width var(--transition);
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

/* Logo alanı */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  min-height: var(--topbar-h);
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.sidebar-logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition);
}

.sidebar.collapsed .sidebar-logo-text { opacity: 0; width: 0; overflow: hidden; }

/* Menü */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #334155; border-radius: 99px; }

/* Grup başlığı */
.nav-group { margin-bottom: 2px; }

.nav-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--sidebar-text);
  text-transform: uppercase;
  padding: 10px 20px 4px;
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition);
}

.sidebar.collapsed .nav-group-label { opacity: 0; }

/* Nav link */
.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  margin: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}

.nav-link.active {
  background: var(--brand);
  color: #fff;
}

.nav-link.active .nav-icon { color: #fff; }

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--sidebar-text);
  transition: color var(--transition);
}

.nav-link:hover .nav-icon { color: var(--sidebar-text-active); }

.nav-label {
  opacity: 1;
  transition: opacity var(--transition);
  overflow: hidden;
}

.sidebar.collapsed .nav-label { opacity: 0; width: 0; }

/* Badge (bildirim sayısı) */
.nav-badge {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
  transition: opacity var(--transition);
}

.sidebar.collapsed .nav-badge { opacity: 0; }

/* Sidebar alt kullanıcı alanı */
.sidebar-user {
  border-top: 1px solid var(--sidebar-border);
  padding: 12px 8px;
}

.sidebar-user-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.sidebar-user-inner:hover { background: var(--sidebar-hover); }

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-user-info { overflow: hidden; transition: opacity var(--transition); }
.sidebar.collapsed .sidebar-user-info { opacity: 0; width: 0; overflow: hidden; }

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sidebar-text-active);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--sidebar-text);
  white-space: nowrap;
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Zengin metin editörü (Quill) - araç çubuğu içerik kaydırılırken üstte SABİT
   kalsın (uzun yazıda biçim seçmek için tekrar yukarı çıkmaya gerek olmasın).
   Sabit üst barın (--topbar-h) hemen altına yapışır.
   NOT: .card{overflow:auto} sticky'yi kırpıyordu → editörü içeren kartta
   ve gövdesinde overflow açılır (aksi halde araç çubuğu sabitlenmez). */
.card:has(.ql-toolbar),
.card:has(.ql-toolbar) .card__body,
.card:has(.ql-toolbar) .card-body,
.blk-card:has(.ql-toolbar) .blk-card__body { overflow: visible; }
/* .blk-card inline overflow:hidden veriyor → sticky'yi kırpar; ez */
.blk-card:has(.ql-toolbar) { overflow: visible !important; }
.ql-toolbar.ql-snow {
  position: sticky;
  top: var(--topbar-h, 64px);
  z-index: 20;
  background: var(--bg-card, #fff);
}

/* Sidebar collapse butonu */
.btn-collapse {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.btn-collapse:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--text-primary); }

.breadcrumb-sep {
  color: var(--border);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Topbar sağ alan */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.topbar-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.topbar-btn-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

/* Topbar kullanıcı */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}

.topbar-user:hover { background: var(--bg-hover); border-color: var(--border); }

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
}

.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.topbar-user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── KARTLAR ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  overflow: auto;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* İstatistik kartları */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon--blue   { background: var(--info-light);    color: var(--info); }
.stat-icon--green  { background: var(--success-light); color: var(--success); }
.stat-icon--amber  { background: var(--warning-light); color: var(--warning); }
.stat-icon--red    { background: var(--danger-light);  color: var(--danger); }
.stat-icon--brand  { background: var(--brand-light);   color: var(--brand); }

.stat-body { flex: 1; min-width: 0; }

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-trend {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-trend--up   { color: var(--success); }
.stat-trend--down { color: var(--danger); }

/* Grid sistemleri */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ── TABLOLAR ───────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}



table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  background: var(--bg-page);
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

/* tbody tr:last-child td border removed - table-wrapper provides outer border */

tbody tr:hover td { background: var(--bg-hover); }

/* ── BADGE'LER ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.badge--green  { background: var(--success-light); color: #065F46; }
.badge--red    { background: var(--danger-light);  color: #991B1B; }
.badge--amber  { background: var(--warning-light); color: #92400E; }
.badge--blue   { background: var(--info-light);    color: #1E40AF; }
.badge--gray   { background: #F1F5F9;              color: #475569; }
.badge--brand  { background: var(--brand-light);   color: var(--brand-dark); }

/* ── BUTONLAR ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn--danger {
  background: var(--danger-light);
  color: var(--danger);
  border-color: transparent;
}

.btn--danger:hover { background: var(--danger); color: #fff; }

.btn--full { width: 100%; justify-content: center; }

.btn--sm { padding: 5px 11px; font-size: 12px; }
.btn--lg { padding: 11px 22px; font-size: 15px; }

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ── FORMLAR ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-label-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--brand);
}

.form-label-link:hover { color: var(--brand-dark); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-input);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

textarea { resize: vertical; min-height: 100px; }

.input-password-wrapper { position: relative; }
.input-password-wrapper input { padding-right: 40px; }

.btn-show-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
}

.btn-show-password:hover { color: var(--text-primary); }

.form-group--row {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

/* ── ALERT / FLASH ──────────────────────────────────────────── */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert--success { background: var(--success-light); color: #065F46; border-color: #A7F3D0; }
.alert--error   { background: var(--danger-light);  color: #991B1B; border-color: #FECACA; }
.alert--info    { background: var(--info-light);    color: #1E40AF; border-color: #BFDBFE; }
.alert--warning { background: var(--warning-light); color: #92400E; border-color: #FDE68A; }

/* ── AUTH SAYFASI ───────────────────────────────────────────── */
.auth-body {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
}

.auth-logo img { width: 36px; height: 36px; }

.auth-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-header { margin-bottom: 24px; }

.auth-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-form { display: flex; flex-direction: column; gap: 0; }

.auth-footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-top: 20px;
}

/* ── DROPDOWN ───────────────────────────────────────────────── */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  display: none;
}

.dropdown-menu.open { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}

.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-item--danger { color: var(--danger); }
.dropdown-item--danger:hover { background: var(--danger-light); }
.dropdown-sep { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 15px; font-weight: 600; }

.modal-body { padding: 20px 24px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* ============================================================
 * LAYOUT UTILITY CLASSES
 * ============================================================ */
.report-layout  { grid-template-columns: 200px 1fr !important; align-items: start; }
.sidebar-layout  { grid-template-columns: 1fr 300px !important; align-items: start; }
.dash-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.dash-main-grid  { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.dash-two-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.dash-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.dash-actions    { display: flex; gap: 8px; }

/* ============================================================
 * TABLO - Yatay kaydırma (tüm boyutlarda)
 * ============================================================ */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
 * RESPONSIVE - Tablet (≤ 1024px)
 * ============================================================ */

/* ============================================================
 * LAYOUT UTILITY CLASSES
 * ============================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.report-layout  { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.sidebar-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }

.dash-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.dash-main-grid  { display: grid; grid-template-columns: 1fr 340px;     gap: 16px; align-items: start; }
.dash-two-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.dash-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.dash-actions    { display: flex; gap: 8px; }

/* Tablo yatay kaydırma */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Sidebar backdrop (mobil) */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 199;
}
.sidebar-backdrop.active { display: block; }

/* ============================================================
 * FORM HELPERS
 * ============================================================ */

/* Sol/Sağ kart kolonları (create/edit formları) */
.form-cols { display: flex; flex-direction: column; gap: 16px; }

/* Zorunlu alan yıldızı */
.form-required { color: var(--danger); }

/* Label altı küçük ipucu */
.form-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Prefix + input grubu (slug alanı) */
.input-prefix-group { display: flex; align-items: center; }
.input-prefix {
  padding: 9px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.input-prefix + input,
.input-prefix-group input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  flex: 1;
}

/* Galeri boş durum */
.gallery-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

/* Galeri satırı */
.gallery-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.gallery-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Etiket / checkbox listesi */
.tag-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.tag-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}
.tag-count { color: var(--text-muted); font-size: 11px; }

/* Form meta bilgi kutusu (oluşturma/güncelleme tarihi) */
.form-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 8px 10px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  line-height: 1.7;
}

/* Öne çıkan görsel wrapper */
.featured-img-wrap {
  position: relative;
  margin-bottom: 10px;
}
.featured-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.featured-img-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.featured-img-remove:hover { background: rgba(0,0,0,.85); }

/* Tablo thumbnail */
.table-img-cell { display: flex; align-items: center; gap: 10px; }
.thumb-sm {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: block;
}
.thumb-placeholder {
  width: 40px;
  height: 40px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.table-cell-title { font-weight: 500; color: var(--text-primary); }
.table-cell-slug  { font-size: 11px; color: var(--text-muted); font-family: monospace; }

/* Buton varyantları */
.btn--full         { width: 100%; }
.btn--lg           { padding: 12px; font-size: 14px; }
.btn--danger-line  { color: var(--danger); border-color: var(--danger); }
.btn--danger-line:hover { background: var(--danger-light); }

/* Monospace textarea (içerik editörü) */
textarea.mono { font-family: var(--font-mono); font-size: 13px; }

/* Küçük link (kategori ekle vb.) */
.form-add-link { font-size: 12px; color: var(--brand); margin-top: 8px; display: inline-block; }
.form-add-link:hover { color: var(--brand-dark); }

/* Dark mode uyumluluğu */
[data-theme="dark"] .gallery-item   { background: #0D1526; }
[data-theme="dark"] .form-meta      { background: #0D1526; }
[data-theme="dark"] .gallery-empty  { border-color: #334155; }
[data-theme="dark"] .thumb-placeholder { background: #0D1526; border-color: #334155; }

/* ============================================================
 * COLLAPSIBLE CARDS
 * ============================================================ */

.card--collapsible > .card-title,
.card--collapsible > .card-header .card-title {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card--collapsible > .card-title::after,
.card--collapsible > .card-header .card-title::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.card--collapsible.is-collapsed > .card-title::after,
.card--collapsible.is-collapsed > .card-header .card-title::after {
  transform: rotate(-90deg);
}

.card__body {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 2000px;
  opacity: 1;
}

.card--collapsible.is-collapsed .card__body {
  max-height: 0;
  opacity: 0;
}

/* Dark mode chevron */
[data-theme="dark"] .card--collapsible > .card-title::after,
[data-theme="dark"] .card--collapsible > .card-header .card-title::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ============================================================
 * MEDYA KÜTÜPHANESİ
 * ============================================================ */

.media-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.media-sidebar { display: flex; flex-direction: column; gap: 12px; }

.media-sidebar-section {
  padding: 12px;
}

.media-sidebar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.media-folder-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin: 0 -4px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.media-folder-link:hover,
.media-folder-link.active {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.media-folder-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

/* Dosya grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

/* Dosya kartı */
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.media-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }

.media-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;   /* kare önizleme */
  height: auto;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-card-body { padding: 8px; }
.media-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Silme butonu */
.media-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(239,68,68,.9);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.media-card:hover .media-delete-btn { opacity: 1; }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.drop-zone:hover,
.drop-zone.is-over {
  border-color: var(--brand);
  background: var(--bg-hover);
}
.drop-zone-icon { margin: 0 auto 12px; display: block; }
.drop-zone-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.drop-zone-hint  { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.drop-zone-types { font-size: 12px; color: var(--text-muted); }

/* Boş durum */
.media-empty {
  text-align: center;
  padding: 60px 20px;
}
.media-empty-icon { margin: 0 auto 16px; display: block; }
.media-empty-title { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.media-empty-text  { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* Upload progress item */
.upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.upload-item-info { flex: 1; overflow: hidden; }
.upload-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-item-size { font-size: 11px; color: var(--text-muted); }
.upload-list-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Mobil: sidebar alta düşer */
@media (max-width: 768px) {
  .media-layout {
    grid-template-columns: 1fr;
  }
  .media-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .media-sidebar > .card {
    flex: 1 1 100%;
  }
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  .media-card-thumb { height: 90px; }
}

/* Dark mode */
[data-theme="dark"] .media-card { background: var(--bg-card); }
[data-theme="dark"] .drop-zone.is-over { background: #0D1526; }

/* ============================================================
 * MENÜ SAYFASI
 * ============================================================ */

/* Menü kartları grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Menü kartı başlık */
.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.menu-card-title  { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.menu-card-meta   { font-size: 12px; color: var(--text-muted); }
.menu-card-footer { display: flex; gap: 8px; }
.menu-card-footer .btn { flex: 1; justify-content: center; }

.menu-item-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--brand-light);
  color: var(--brand);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Menü düzenleme layout */
.menu-edit-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}

/* Menü ağacı öğesi */
.menu-item { margin-bottom: 6px; }
.menu-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.drag-handle {
  color: var(--text-muted);
  cursor: grab;
  flex-shrink: 0;
}
.drag-handle:active { cursor: grabbing; }
.menu-item-info { flex: 1; min-width: 0; }
.menu-item-label { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item-url {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Uzun (kırılmayan) linkler grid sütununu genişletip sayfayı taşırmasın */
#menuTree { min-width: 0; overflow: hidden; }
#menuTree .menu-item { max-width: 100%; min-width: 0; box-sizing: border-box; }
.menu-item-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Boş menü */
.menu-empty-tree {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

/* Sortable ghost */
.sortable-ghost { opacity: .4; }

/* Menü formu max-width */
.menu-create-wrap { max-width: 520px; }

/* Mobil */
@media (max-width: 768px) {
  .menu-edit-layout {
    grid-template-columns: 1fr;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode */
[data-theme="dark"] .menu-item-row { background: #0D1526; border-color: #334155; }

/* ============================================================
 * FORMLAR & FORM BUILDER
 * ============================================================ */

/* Form liste kartı */
.form-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-list-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-list-info { flex: 1; min-width: 0; }
.form-list-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.form-list-meta { font-size: 12px; color: var(--text-muted); }
.form-list-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* Okunmamış badge nokta */
.unread-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
}

/* Form builder 3-kolon layout */
.form-builder-layout {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 16px;
  align-items: start;
}

/* Alan tipi butonları */
.field-type-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  width: 100%;
}
.field-type-btn:hover {
  background: var(--bg-hover);
  color: var(--brand);
  border-color: var(--brand);
}

/* Alan satırı (builder) */
.field-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg-card);
  overflow: hidden;
}
.field-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}
.field-row-header .drag-handle { cursor: grab; color: var(--text-muted); font-size: 16px; }
.field-row-title { font-size: 12px; font-weight: 600; flex: 1; }
.field-type-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 99px;
}
.field-row-body { padding: 10px 12px; }
.field-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-row-label { font-size: 11px; color: var(--text-muted); }
.field-row-input { width: 100%; font-size: 12px; margin-top: 3px; }

/* Boş alan mesajı */
.field-empty-msg {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

/* Embed kutusu */
.embed-box { background: var(--bg-hover); }
.embed-box-title { font-size: 13px; margin-bottom: 10px; }
.embed-box-hint  { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }

/* Gönderi detayı */
.submission-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.submission-field { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.submission-field:last-child { border-bottom: none; padding-bottom: 0; }
.submission-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.submission-field-value { font-size: 14px; color: var(--text-primary); line-height: 1.6; }
.submission-wrap { max-width: 700px; }

/* Form oluştur wrap */
.form-create-wrap { max-width: 560px; }

/* Mobil */
@media (max-width: 900px) {
  .form-builder-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .form-list-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Dark mode */
[data-theme="dark"] .field-row { background: var(--bg-card); }
[data-theme="dark"] .field-row-header { background: #0D1526; border-color: #334155; }
[data-theme="dark"] .embed-box { background: #0D1526; }

/* ============================================================
 * MÜŞTERILER & CRM
 * ============================================================ */

/* Müşteri avatar dairesi */
.customer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.customer-cell { display: flex; align-items: center; gap: 10px; }
.customer-name { font-weight: 500; color: var(--text-primary); text-decoration: none; }
.customer-name:hover { color: var(--brand); }
.customer-company { font-size: 12px; color: var(--text-muted); }

/* Müşteri detay layout */
.customer-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
}

/* Bilgi satırları (show sayfası sol kart) */
.info-row {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); min-width: 90px; flex-shrink: 0; }

/* Sekme navigasyonu */
.tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}
.tab-nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.tab-nav-item {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tab-nav-item:hover { color: var(--brand); }
.tab-nav-item.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-muted);
  min-width: 18px;
}
.tab-nav-item.active .tab-count {
  background: var(--brand);
  color: #fff;
}

/* Not / log kartı */
.note-card { margin-bottom: 10px; }
.note-card-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.note-content { font-size: 13px; color: var(--text-primary); line-height: 1.6; margin-bottom: 8px; }
.note-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.note-remind { color: var(--brand); }
.note-private { color: var(--danger); }

/* Log tip satırı */
.log-type-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.log-type-icon { font-size: 18px; }
.log-type-label { font-size: 13px; font-weight: 500; }

/* Fırsat kartı */
.deal-card { margin-bottom: 10px; }
.deal-card-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.deal-stage-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.deal-value { font-size: 16px; font-weight: 600; color: var(--brand); }
.deal-close { font-size: 11px; color: var(--text-muted); }

/* Mobil */
@media (max-width: 768px) {
  .customer-layout { grid-template-columns: 1fr; }

  /* Müşteri listesi - isim hücresi kısaltılır, action sığar */
  .customer-cell { max-width: 140px; }
  .customer-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
  .customer-company { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
  .support-wrap { grid-template-columns: 1fr !important; height: auto !important; }
  .support-chat { height: 55vh !important; min-height: 300px; }
  .support-wrap { grid-template-columns: 1fr; height: auto; }
  .support-chat { height: 60vh; }
  .tab-nav { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-nav-item { padding: 6px 8px; font-size: 11px; flex-shrink: 0; }
  .tab-label-full { display: none; }
  .tab-label-short { display: inline; }
  .tab-count { min-width: 14px; padding: 1px 4px; font-size: 10px; }
}

/* Dark mode */
[data-theme="dark"] .customer-avatar { background: #1E3A5F; }

/* ============================================================
 * MÜŞTERİ PROFİL KARTI (show sayfası sol panel)
 * ============================================================ */
.customer-profile-card {
  text-align: center;
  padding: 24px 16px;
}
.customer-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  margin: 0 auto 14px;
}
[data-theme="dark"] .customer-avatar-lg { background: #1E3A5F; }
.customer-profile-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.customer-profile-company {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.customer-profile-badge {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

/* Hızlı aksiyon butonları */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  transition: all .15s;
}
.quick-action-btn:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: var(--brand);
}
.quick-action-btn svg { flex-shrink: 0; }

/* Tab label responsive - full on desktop, short on mobile */
.tab-label-short { display: none; }
.tab-label-full  { display: inline; }

/* ── Liste satırı aksiyonları (Düzenle / Çoğalt / Sil) ──────────
   Tüm modüllerde AYNI görünsün diye tek yerde tanımlı. Daha önce
   her liste kendi inline stilini taşıyordu: boşluk 4px/6px/8px
   arasında değişiyor, düzenle düğmesi kimi listede renkli kimi
   listede renksiz çıkıyordu.
   Sıra: Düzenle (vurgulu) -> Çoğalt -> Sil. */
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.row-actions form { margin: 0; }
/* Düzenle vurgulu. Ayrı bir sınıf gerekmiyor: bu sarmalayıcıda
   düzenle TEK bağlantıdır (çoğalt ve sil form içinde <button>). */
.row-actions a.btn-icon { color: var(--brand); }

/* Mobil satır içi aksiyonlar */
.row-actions-mobile {
  display: none; /* desktop'ta gizli */
}

@media (max-width: 768px) {
  /* Ayrı action kolonu gizle */
  td.col-actions,
  th.col-actions { display: none; }

  /* Müşteri adı altında inline butonlar */
  .row-actions-mobile {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .row-actions-mobile .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .row-actions-mobile form { margin: 0; }

  /* customer-cell kısaltmayı kaldır, artık gerek yok */
  .customer-cell { max-width: none; }
  .customer-name { white-space: normal; overflow: visible; text-overflow: unset; max-width: none; }
  .customer-company { white-space: normal; overflow: visible; text-overflow: unset; max-width: none; }
}

/* ============================================================
 * PİPELİNE / KANBAN
 * ============================================================ */

/* Kanban board */
.pipeline-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  align-items: start;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.pipeline-column {
  --stg: 100,116,139;                 /* aşama rengi (r,g,b) - board.php inline set eder */
  /* Aşama sayısına göre otomatik böl: sütunlar sayfayı eşit paylaşıp %100 doldurur.
     Çok fazla aşama olursa min-width devreye girer ve yatay kaydırılır. */
  flex: 1 1 0;
  min-width: 230px;
  box-sizing: border-box;
  background: rgba(var(--stg), .05);  /* sütun fonu: aşama renginin çok açık tonu */
  border: 1px solid rgba(var(--stg), .14);
  border-radius: 14px;
  padding: 10px 10px 12px;
}

.pipeline-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 2px 4px;
}
.pipeline-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.pipeline-stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pipeline-column-value {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.pipeline-cards {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Fırsat kartı */
.pipeline-card {
  background: rgba(var(--stg), .10);          /* aşama renginin açık tonu */
  border: 1px solid rgba(var(--stg), .24);
  border-left: 3px solid rgba(var(--stg), .65);
  border-radius: var(--radius);
  padding: 12px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.pipeline-card:hover { box-shadow: var(--shadow); }
.pipeline-card:active { cursor: grabbing; }
.pipeline-ghost { opacity: .4; background: var(--brand-light) !important; }

.pipeline-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}
.pipeline-card-customer {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pipeline-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.pipeline-card-value { font-weight: 600; color: var(--brand); }
.pipeline-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.pipeline-empty-col {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Detay layout */
.pipeline-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}

/* Not satırı */
.pipeline-note-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.pipeline-note-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.pipeline-note-body {
  flex: 1;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
}
.pipeline-note-meta {
  font-size: 12px;
  margin-bottom: 6px;
}

/* Değer büyük gösterim */
.pipeline-big-value {
  text-align: center;
  padding: 16px 0;
}
.pipeline-big-value-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
}
.pipeline-big-value-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.pipeline-prob-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.pipeline-prob-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.pipeline-prob-fill { height: 100%; background: var(--brand); }

/* Mobil */
@media (max-width: 768px) {
  .pipeline-board {
    flex-direction: column;
    overflow-x: visible;
    gap: 12px;
  }
  .pipeline-column {
    min-width: 100%;
    flex: 1 1 100%;
  }
  .pipeline-detail-layout { grid-template-columns: 1fr; }
}

/* Dark mode */
[data-theme="dark"] .pipeline-column { background: rgba(var(--stg), .08); border-color: rgba(var(--stg), .18); }
[data-theme="dark"] .pipeline-card {
  background: rgba(var(--stg), .16);
  border-color: rgba(var(--stg), .30);
  border-left-color: rgba(var(--stg), .70);
}

/* ============================================================
 * TEKLİFLER & FATURALAR (Ortak stiller)
 * ============================================================ */

/* Teklif/Fatura belge önizleme */
.doc-wrapper   { max-width: 800px; margin: 0 auto; }
.doc-header    { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.doc-type      { font-size: 24px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.doc-meta      { text-align: right; font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.doc-meta strong { color: var(--text-primary); }

.doc-customer-box {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-hover);
  border-radius: var(--radius);
}
.doc-customer-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.doc-customer-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }

/* Teklif/Fatura kalem tablosu */
.doc-items-thead th {
  padding: 10px 12px;
  font-size: 12px;
  text-align: left;
}
.doc-items-thead .align-right { text-align: right; }
.doc-items-thead .align-center { text-align: center; }

/* Kalem giriş satırı (form) */
.quote-item-row {
  display: grid;
  grid-template-columns: 2fr 80px 70px 110px 110px 36px;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}
.quote-item-header {
  display: grid;
  grid-template-columns: 2fr 80px 70px 110px 110px 36px;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.quote-item-remove {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--danger);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  font-size: 20px;
  flex-shrink: 0;
}

/* Toplamlar kutusu */
.quote-totals-box {
  min-width: 260px;
  margin-left: auto;
}
.quote-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.quote-totals-row:last-child { border-bottom: none; }
.quote-grand-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 700;
}

/* Bağlı fatura bildirimi */
.invoice-notice {
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 14px 16px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid #3B82F6;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.invoice-notice-left { display: flex; align-items: center; gap: 10px; }
.invoice-notice-title { font-size: 13px; color: #1E40AF; font-weight: 600; }
.invoice-notice-no    { font-size: 12px; color: #3B82F6; margin-left: 8px; }

/* Durum badge renkli */
.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

/* Özet bilgi kutusu (create/edit sağ kolon) */
.quote-meta-box {
  background: var(--bg-hover);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Müşteri seçici widget */
.customer-picker {
  display: flex;
  gap: 8px;
  align-items: center;
}
.customer-picker-box {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-hover);
  cursor: default;
}
.customer-picker-box.selected { color: var(--text-primary); }

/* Mobil: kalemleri dikey stack */
@media (max-width: 768px) {
  .quote-item-row,
  .quote-item-header {
    grid-template-columns: 1fr 1fr;
  }
  .quote-item-header span:nth-child(n+3) { display: none; }
  .doc-header { flex-direction: column; gap: 12px; }
  .doc-meta   { text-align: left; }
  .invoice-notice { flex-direction: column; align-items: flex-start; }
  .quote-totals-box { min-width: 100%; }
}

/* Dark mode */
[data-theme="dark"] .doc-customer-box { background: #0D1526; }
[data-theme="dark"] .invoice-notice { background: #0D1526; border-color: #334155; }
[data-theme="dark"] .quote-meta-box { background: #0D1526; }
[data-theme="dark"] .customer-picker-box { background: #0D1526; border-color: #334155; }

/* ============================================================
 * TEKLİF & FATURA ORTAK
 * ============================================================ */

/* Teklif/Fatura döküman kartı */
.doc-card { max-width: 800px; margin: 0 auto; }

/* Döküman başlığı */
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.doc-title-type { font-size: 24px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.doc-title-no   { font-size: 14px; color: var(--text-muted); }
.doc-meta       { text-align: right; font-size: 13px; }

/* Müşteri kutusu */
.doc-customer {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-hover);
  border-radius: var(--radius);
}
.doc-customer-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.doc-customer-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

/* Kalem satırları (builder) */
.item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 70px 110px 110px 36px;
  gap: 6px;
  margin-bottom: 6px;
}
.item-row-header {
  display: grid;
  grid-template-columns: 2fr 1fr 70px 110px 110px 36px;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.item-row input { font-size: 13px; padding: 7px 8px; }
.item-input-readonly {
  background: var(--bg-hover) !important;
  text-align: right;
}
.item-remove-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--danger);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background var(--transition);
}
.item-remove-btn:hover { background: var(--danger-light); }

/* Toplamlar */
.doc-totals { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.doc-totals-inner { min-width: 260px; }
.doc-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.doc-total-row:last-child { border-bottom: none; font-size: 16px; font-weight: 700; padding: 10px 0; }

/* İlgili fatura bildirimi */
.doc-invoice-notice {
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 14px 16px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid #3B82F6;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
[data-theme="dark"] .doc-invoice-notice {
  background: #0F2044;
  border-color: #1E3A5F;
  border-left-color: #3B82F6;
}

/* Notlar / şartlar kutusu */
.doc-notes {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-hover);
  border-radius: var(--radius);
}
.doc-notes-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Özet info kutusu (sağ panel) */
.doc-summary-box {
  background: var(--bg-hover);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Mobil */
@media (max-width: 768px) {
  .doc-header { flex-direction: column; gap: 12px; }
  .doc-meta { text-align: left; }
  .item-row-header { display: none; } /* başlığı gizle, input placeholder yeterli */
  .doc-items-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .doc-items-wrapper table { min-width: 500px; }
  .item-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .item-row input:first-child { grid-column: 1 / -1; } /* isim full genişlik */
  .doc-totals-inner { min-width: 100%; }
}

/* ============================================================
 * KASA & MUHASEBE
 * ============================================================ */

/* Gelir / Gider tip seçici */
.cashbook-type-selector { display: flex; gap: 10px; }
.cashbook-type-label    { flex: 1; cursor: pointer; }
.cashbook-type-label input[type="radio"] { display: none; }

.cashbook-type-btn {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--transition);
  user-select: none;
}
.cashbook-type-label input:checked + .cashbook-type-btn.income-btn {
  border-color: #10B981;
  background: #F0FDF4;
  color: #065F46;
  font-weight: 600;
}
.cashbook-type-label input:checked + .cashbook-type-btn.expense-btn {
  border-color: #EF4444;
  background: #FEF2F2;
  color: #991B1B;
  font-weight: 600;
}

/* Kasa hareket form max width */
.cashbook-form-wrap { max-width: 600px; }

/* Grafik bar */
.cashbook-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
}
.cashbook-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  justify-content: flex-end;
}
.cashbook-chart-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  width: 100%;
}
.cashbook-chart-bar-inc {
  flex: 1;
  background: #10B981;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.cashbook-chart-bar-exp {
  flex: 1;
  background: #EF4444;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.cashbook-chart-label {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
}
.cashbook-chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
}
.cashbook-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

/* Kategori renk butonu */
.cat-color-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cat-color-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}

/* Rapor dönem seçici */
.report-period-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Kategori dağılım bar */
.cat-bar-row { margin-bottom: 10px; }
.cat-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 3px;
}
.cat-bar-track {
  height: 5px;
  background: var(--bg-hover);
  border-radius: 99px;
  overflow: hidden;
}
.cat-bar-fill { height: 100%; border-radius: 99px; }

/* Dark mode */
[data-theme="dark"] .cashbook-type-label input:checked + .cashbook-type-btn.income-btn {
  background: #064E3B;
  color: #6EE7B7;
}
[data-theme="dark"] .cashbook-type-label input:checked + .cashbook-type-btn.expense-btn {
  background: #450A0A;
  color: #FCA5A5;
}

/* Rapor tablosu mobil */
.report-col-hide { /* masaüstünde normal */ }
.report-row-sub  { display: none !important; font-size: 11px; margin-top: 3px; }

@media (max-width: 768px) {
  .report-col-hide { display: none !important; }
  .report-row-sub  { display: block !important; }
}

/* FullCalendar Mobil Responsive */
@media (max-width: 768px) {
  .fc .fc-toolbar { flex-direction: column !important; gap: 8px !important; align-items: stretch !important; }
  .fc .fc-toolbar-chunk { display: flex; justify-content: center; }
  .fc .fc-toolbar-title { font-size: 16px !important; }
  .fc .fc-button { padding: 4px 8px !important; font-size: 12px !important; }
  .fc .fc-button-group .fc-button { padding: 4px 6px !important; font-size: 11px !important; }
  .fc .fc-daygrid-day-number { font-size: 12px; }
  .fc .fc-event-title { font-size: 10px !important; }
  .fc .fc-col-header-cell-cushion { font-size: 11px; }
}

/* ============================================================
 * RAPOR SAYFASI
 * ============================================================ */

/* Sol nav + içerik layout */
.reports-layout {
  display: block;
}

/* Sol nav linkleri */
.report-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.report-nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.report-nav-link.active { background: var(--brand-light); color: var(--brand); }

/* Finans raporu tarih filtresi */
.report-date-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Aktivite log satırı */
.activity-row {
  display: grid;
  grid-template-columns: 8px 110px 1fr 130px 90px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

/* Mobil */
@media (max-width: 900px) {
  .reports-layout {
    grid-template-columns: 1fr;
  }
  .report-nav-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 8px;
  }
  .report-nav-link {
    margin-bottom: 0 !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    padding: 10px 12px !important;
  }
  .activity-row {
    grid-template-columns: 8px 1fr 80px;
    gap: 8px;
  }
  .activity-row .hide-mobile { display: none; }
}

/* Rapor sayfası - içerik taşma önlemi */
.reports-layout > .form-cols { min-width: 0; overflow: hidden; }
.reports-layout .card { overflow: auto; }

/* Ayarlar sayfası - sol nav + içerik (2 sütun grid) */
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}
.settings-layout > .form-cols { min-width: 0; }
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; }
}

/* Para birimi kırılma önlemi */
td[style*="nowrap"], th[style*="nowrap"],
.col-currency, .amount-cell {
  white-space: nowrap !important;
  word-break: keep-all !important;
}

/* Grid-2 mobilde tam genişlik */
@media (max-width: 768px) {
  .grid-2.page-form-grid { grid-template-columns: 1fr !important; }
  .grid-2.page-form-grid > * { min-width: 0; overflow: hidden; }
}

/* Form kartları arası boşluk */


/* Lisans anahtarı hücresi - responsive */
.license-key-cell {
  font-size: 12px;
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
@media (max-width: 768px) {
  .license-key-cell { max-width: 140px; font-size: 11px; }
}

/* ============================================================
 * UX: TOAST NOTIFICATIONS
 * ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-size: 13px;
  color: var(--text-primary);
  transform: translateX(120%);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s;
  pointer-events: auto;
}
.toast--show { transform: translateX(0); opacity: 1; }
.toast__icon {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--brand);
}
.toast__msg { flex: 1; line-height: 1.5; padding-top: 2px; }
.toast__close {
  flex: 0 0 24px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--text-muted);
  padding: 0; margin-top: -2px;
}
.toast__close:hover { color: var(--text-primary); }

.toast--success { border-left-color: #10B981; }
.toast--success .toast__icon { background: #10B981; }
.toast--danger,
.toast--error { border-left-color: #EF4444; }
.toast--danger .toast__icon,
.toast--error .toast__icon { background: #EF4444; }
.toast--warning { border-left-color: #F59E0B; }
.toast--warning .toast__icon { background: #F59E0B; }
.toast--info { border-left-color: #3B82F6; }
.toast--info .toast__icon { background: #3B82F6; }

@media (max-width: 600px) {
  .toast-container { top: auto; bottom: 16px; right: 16px; left: 16px; }
  .toast { min-width: 0; max-width: 100%; }
  .toast { transform: translateY(120%); }
  .toast--show { transform: translateY(0); }
}

/* ============================================================
 * UX: BUTTON LOADING STATE
 * ============================================================ */
.btn--loading { cursor: wait !important; opacity: .85; pointer-events: none; }
.btn-spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin .6s linear infinite;
  vertical-align: -2px;
  margin-right: 4px;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ============================================================
 * UX: PAGE PROGRESS BAR (Skeleton)
 * ============================================================ */
.page-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.page-progress--active { opacity: 1; }
.page-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: page-progress-slide 1.2s ease-in-out infinite;
}
@keyframes page-progress-slide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
 * GLOBAL ARAMA (Ctrl+K)
 * ============================================================ */
.topbar-search-btn {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 6px 12px !important;
  width: auto !important;
}
.topbar-search-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  .topbar-search-label { display: none; }
  .topbar-search-btn { padding: 6px 8px !important; }
}

/* Modal */
.global-search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.global-search-modal[hidden] { display: none; }
.global-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.global-search-panel {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.global-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.global-search-icon { color: var(--text-muted); flex-shrink: 0; }
.global-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
  padding: 4px 0;
}
.global-search-input::placeholder { color: var(--text-muted); }
.global-search-close {
  font-size: 11px;
  padding: 4px 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: monospace;
}
.global-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.global-search-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.global-search-group {
  padding: 4px 0;
}
.global-search-group-label {
  padding: 8px 18px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.global-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 13px;
  transition: background .12s;
}
.global-search-item:hover,
.global-search-item.is-active {
  background: var(--bg-hover);
}
.global-search-item.is-active {
  background: var(--brand-light);
  color: var(--brand);
}
.global-search-item-icon {
  flex-shrink: 0;
  font-size: 16px;
  width: 24px;
  text-align: center;
}
.global-search-item-content {
  flex: 1;
  min-width: 0;
}
.global-search-item-title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-search-item-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-search-footer {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-hover);
}
.global-search-footer kbd {
  display: inline-block;
  padding: 1px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: monospace;
  font-size: 10px;
  margin-right: 4px;
}
@media (max-width: 600px) {
  .global-search-modal { padding-top: 0; }
  .global-search-panel {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .global-search-footer { display: none; }
}

/* ============================================================
 * BLOK EDİTÖRÜ - FOUC ÖNLEME
 * ------------------------------------------------------------
 * block-editor.js yüklenince satır-içi paleti gizleyip yerine
 * "Blok veya Şablon Ekle" tetikleyicisini koyar. JS çalışana
 * kadar geçen 1-2 sn'de ham palet listesinin görünmesini (FOUC)
 * önlemek için paleti baştan gizli tut, editör grid'ini tek
 * sütuna çek. JS bittiğinde son durum zaten budur.
 * (:has desteklenmeyen tarayıcıda eski davranış korunur - regresyon yok.)
 * ============================================================ */
div:has(> #blockPalette) { display: none; }
div:has(> #blockCanvas) { grid-template-columns: minmax(0, 1fr) !important; }

/* ============================================================
 * DARK MODE
 * ============================================================ */
[data-theme="dark"] {
  --bg-page:        #0F172A;
  --bg-card:        #1E293B;
  --bg-input:       #1E293B;
  --bg-hover:       #334155;
  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted:     #64748B;
  --border:         #334155;
  --border-focus:   #6366F1;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.3);
  --shadow:         0 4px 6px -1px rgba(0,0,0,.4);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,.5);
}
[data-theme="dark"] body                  { background: var(--bg-page); color: var(--text-primary); }
[data-theme="dark"] .sidebar             { background: #0D1526; }
[data-theme="dark"] .topbar              { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .card               { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .stat-card          { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .table-wrapper      { background: #1E293B; border-color: #334155; }
[data-theme="dark"] table thead         { background: #334155; }
[data-theme="dark"] table tr:hover      { background: rgba(255,255,255,.03); }
[data-theme="dark"] input:not([type="radio"]):not([type="checkbox"]):not([type="color"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea            { background: #1E293B !important; color: #F1F5F9 !important; border-color: #334155 !important; }
[data-theme="dark"] .dropdown-menu      { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .dropdown-item:hover { background: #334155; }
[data-theme="dark"] .modal              { background: #1E293B; }
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer       { border-color: #334155; }
[data-theme="dark"] .badge-secondary    { background: #334155; color: #CBD5E1; }
[data-theme="dark"] .page-header        { border-color: #334155; }
[data-theme="dark"] .tab-nav            { border-color: #334155; }
[data-theme="dark"] .sidebar-logo,
[data-theme="dark"] .sidebar-user       { border-color: #334155; }
[data-theme="dark"] .sidebar-user       { background: #0D1526; }
[data-theme="dark"] .alert--info        { background: #1E3A5F; border-color: #2563EB; color: #BFDBFE; }
[data-theme="dark"] .alert--success     { background: #14532D; border-color: #059669; color: #A7F3D0; }
[data-theme="dark"] .alert--error,
[data-theme="dark"] .alert--danger      { background: #450A0A; border-color: #DC2626; color: #FECACA; }
[data-theme="dark"] .alert--warning     { background: #451A03; border-color: #D97706; color: #FDE68A; }
[data-theme="dark"] .notif-item-unread  { background: rgba(79,70,229,.15); }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active    { background: rgba(255,255,255,.07); }
[data-theme="dark"] .sidebar-nav-label  { color: #475569; }

/* ============================================================
 * RESPONSIVE - Tablet (≤ 1024px)
 * ============================================================ */
@media (max-width: 1024px) {
  .grid-4       { grid-template-columns: repeat(2, 1fr); }
  .dash-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
 * RESPONSIVE - Mobil (≤ 768px)
 * ============================================================ */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }

  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-260px); width: 260px !important;
    z-index: 200; transition: transform .25s ease;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,.3);
  }
  .panel-main    { margin-left: 0 !important; }
  .panel-content { padding: 12px; }
  .card          { padding: 14px; }

  .topbar         { padding: 0 12px; gap: 6px; }
  .topbar-right   { gap: 4px; }
  .topbar-user-name { display: none !important; }
  .breadcrumb     { display: none !important; }
  #btnCollapse    { display: none !important; }
  #btnMobileMenu  { display: flex !important; }
  /* Masaüstü yardımcı araçları mobilde gizle (taşmayı önler) */
  .topbar-btn--util { display: none !important; }
  /* Panel içeriği asla yatay taşmasın */
  .panel-main { max-width: 100%; overflow-x: hidden; }

  .page-header    { flex-direction: column; align-items: stretch; gap: 8px; }
  .page-header-actions { gap: 6px; }
  .page-header-actions .btn,
  .page-header-actions a.btn { flex: 1 1 auto; justify-content: center; text-align: center; min-width: calc(50% - 4px); }
  .page-header-actions .btn--primary { flex: 1 1 100%; }
  .page-header .btn,
  .page-header button,
  .page-header a.btn { width: 100%; justify-content: center; text-align: center; }
  .dash-actions   { flex-direction: column; width: 100%; }
  .dash-actions .btn { width: 100%; justify-content: center; }

  .grid-4       { grid-template-columns: repeat(2, 1fr); }
  .grid-3       { grid-template-columns: repeat(2, 1fr); }
  .grid-2       { grid-template-columns: 1fr !important; }
  .report-layout  { grid-template-columns: 1fr !important; }
  .sidebar-layout { grid-template-columns: 1fr !important; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-main-grid  { grid-template-columns: 1fr; }
  .dash-two-grid   { grid-template-columns: 1fr; }

  .tab-nav { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
 * RESPONSIVE - Telefon (≤ 480px)
 * ============================================================ */
@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2   { grid-template-columns: 1fr !important; }
  .dash-stats-grid             { grid-template-columns: 1fr !important; }
  .dash-quick-grid             { grid-template-columns: 1fr 1fr; }

  .topbar  { height: 52px; padding: 0 10px; }
  .topbar-btn { width: 32px; height: 32px; }

  .stat-card  { padding: 12px; }
  .stat-value { font-size: 22px !important; }
  .stat-icon  { width: 38px; height: 38px; }

  .auth-card    { padding: 24px 16px; }
  .auth-wrapper { padding: 12px; }

  /* Tüm inline grid'leri kır */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Fatura kalem satırları hariç */
  .items-table [style*="grid-template-columns"] { grid-template-columns: revert !important; }

  /* Modal - bottom sheet */
  .modal-overlay { align-items: flex-end !important; padding: 0; }
  .modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    max-width: 100% !important; width: 100% !important;
    margin: 0 !important; max-height: 90vh; overflow-y: auto;
  }
}


/* ============================================================
 * ORTAK UI BİLEŞENLER
 * ============================================================ */

/* Filtre formu */
.filter-card { margin-bottom: 16px; padding: 14px 16px; }
.filter-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-form input[type="search"],
.filter-form input[type="text"],
.filter-form select { flex: 1; min-width: 140px; width: auto !important; }
.filter-form button,
.filter-form a.btn { flex-shrink: 0; }

/* Sayfalama */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.pagination-btns { display: flex; gap: 4px; flex-wrap: wrap; }

/* Tablo yardımcıları */
.col-id      { width: 40px; font-size: 12px; color: var(--text-muted); }
.col-actions { width: 80px; }
.action-btns { display: flex; gap: 4px; white-space: nowrap; flex-shrink: 0; }
.col-actions { white-space: nowrap; width: 1%; }
.code-badge  {
  font-size: 12px;
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.text-small  { font-size: 12px; }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-danger { color: var(--danger); }
.fw-500      { font-weight: 500; }
.mt-2        { margin-top: 2px; }
.nowrap      { white-space: nowrap; }
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); }

/* Responsive gizle/göster */
.hide-sm, .hide-md { }
.show-sm { display: none; }

@media (max-width: 768px) {
  .hide-sm { display: none !important; }
  .show-sm { display: block !important; }
  .filter-form { flex-direction: column; align-items: stretch; }
  .filter-form input,
  .filter-form select { min-width: 100%; }
  .filter-form button,
  .filter-form a.btn { width: 100%; justify-content: center; }
  .pagination { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hide-md { display: none !important; }
  .show-sm { display: block !important; }
}

.page-form-grid { align-items: start; }
/* Sağ kolon sol kolon kadar uzar (containing block tüm sayfa). Böylece Kaydet butonu
   sayfa boyunca viewport'un altına yapışır: aşağı kaydırınca çıkar, hep altta kalır,
   kartlar normal akışta yukarı kayar, en üste dönünce buton ilk haline döner.
   İkinci scrollbar YOK; tek sayfa scroll'u. */
.page-form-grid > *:last-child { align-self: stretch; }
.page-save-sticky {
  position: sticky;
  bottom: 16px;
  margin-top: auto;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
@media (max-width: 768px) {
  /* Mobil (tek kolon): normal akış */
  .page-form-grid > *:last-child { align-self: start; }
  .page-save-sticky { position: static; box-shadow: none; }
}
@media (max-width: 768px) {
  .page-form-grid { grid-template-columns: 1fr !important; }
}
/* ============================================================
   TOPLU İŞLEMLER (Bulk Actions)
   ============================================================ */
.bulk-bar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 18px;margin-bottom:14px;
  background:var(--bg-card);border:1px solid var(--border-focus,#4F46E5);
  border-radius:10px;animation:bulkSlide .15s ease;
}
@keyframes bulkSlide{from{opacity:0;transform:translateY(-4px);}to{opacity:1;transform:translateY(0);}}
.bulk-bar__count{font-size:14px;color:var(--text-primary);}
.bulk-bar__count strong{font-size:15px;color:var(--border-focus,#4F46E5);}
.bulk-bar__actions{display:flex;gap:8px;}
.btn--sm{padding:6px 14px;font-size:13px;}

/* Tablo seçim kutuları */
.bulk-cb,#bulkSelectAll{width:16px;height:16px;cursor:pointer;accent-color:var(--border-focus,#4F46E5);vertical-align:middle;}
table tbody tr:has(.bulk-cb:checked){background:var(--bg-hover);}

/* ============================================================
 * Görünüm sekmeleri (Liste / Pano / Takvim) - büyük buton stili
 * ============================================================ */
.view-tabs{display:inline-flex;gap:8px;flex-wrap:wrap;}
.view-tabs a{display:inline-flex;align-items:center;height:38px;padding:0 18px;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);color:var(--text-secondary);text-decoration:none;font-size:14px;font-weight:500;line-height:1;}
.view-tabs a:hover{background:var(--bg-hover);color:var(--text-primary);}
.view-tabs a.is-active{background:var(--brand);border-color:var(--brand);color:#fff;}

/* Çoklu atama (görevler) - seçilebilir kart listesi */
.assignee-box{border:1px solid var(--border);border-radius:12px;background:var(--bg-card);overflow:hidden;}
.assignee-all{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid var(--border);background:var(--bg-hover);font-size:13px;font-weight:600;cursor:pointer;margin:0;}
.assignee-all input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand);flex-shrink:0;margin:0;}
.assignee-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;padding:12px;max-height:260px;overflow-y:auto;}
.assignee-opt{display:flex!important;align-items:center;justify-content:flex-start!important;gap:10px;margin:0;padding:8px 10px;border:1px solid var(--border);border-radius:10px;cursor:pointer;transition:background .15s,border-color .15s;text-align:left!important;font-weight:400;}
.assignee-opt:hover{background:var(--bg-hover);}
.assignee-opt input{position:absolute;opacity:0;width:0;height:0;pointer-events:none;}
.assignee-opt .ao-ava{width:28px;height:28px;border-radius:50%;background:var(--brand-light);color:var(--brand);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;text-transform:uppercase;}
.assignee-opt .ao-name{flex:1;min-width:0;font-size:13px;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.assignee-opt .ao-check{width:18px;height:18px;border:1.5px solid var(--border);border-radius:6px;display:flex;align-items:center;justify-content:center;color:transparent;font-size:12px;font-weight:700;flex-shrink:0;transition:.15s;}
.assignee-opt:has(input:checked){border-color:var(--brand);background:var(--brand-light);}
.assignee-opt:has(input:checked) .ao-check{background:var(--brand);border-color:var(--brand);color:#fff;}
.assignee-opt:has(input:checked) .ao-name{font-weight:600;color:var(--brand);}