/**
 * themes/default/theme.css
 *
 * Firma geçişi: companies.theme_key = 'default' (veya kopyalayıp yeni klasör).
 * primary renk: header → :root --wl-primary (ve --brand / --primary-600 hizası).
 */
:root {
  --wl-primary: #487FFF;
  --wl-primary-hover: #3a6ae0;
  --wl-primary-soft: rgba(72, 127, 255, 0.12);
  --wl-primary-soft-strong: rgba(72, 127, 255, 0.18);
  --wl-surface: #ffffff;
  --wl-surface-muted: #f8fafc;
  --wl-border: #eef2f6;
  --wl-text: #111827;
  --wl-text-muted: #6b7280;
  --wl-radius: 12px;
  --wl-brand-name: 'Scooter CRM';

  /* Ana şablon değişkenlerini firma rengine bağla */
  --primary-600: var(--wl-primary);
  --brand: var(--wl-primary);
}

.sidebar-logo .light-logo,
.sidebar-logo .dark-logo {
  max-height: 48px;
  width: auto;
}

.sidebar-logo .logo-icon {
  max-height: 36px;
  width: auto;
}

/* ——— Sidebar: seçili menü okunabilir (beyaz yazı + primary zemin) ——— */
.sidebar .sidebar-menu li > a:hover {
  color: var(--wl-primary);
}

.sidebar .sidebar-menu li > a.active-page,
.sidebar .sidebar-menu li > a.active-page:hover {
  background-color: var(--wl-primary) !important;
  color: #fff !important;
}

.sidebar .sidebar-menu li > a.active-page .menu-icon,
.sidebar .sidebar-menu li > a.active-page span,
.sidebar .sidebar-menu li > a.active-page i {
  color: #fff !important;
}

.sidebar .sidebar-menu li.dropdown.open > a,
.sidebar .sidebar-menu li.dropdown.dropdown-open > a {
  color: var(--wl-primary);
}

.sidebar .sidebar-menu .sidebar-submenu li.active-page > a {
  background-color: var(--wl-primary-soft) !important;
  color: var(--wl-primary) !important;
  font-weight: 600;
}

/* ——— Butonlar ——— */
.btn-primary-600,
.bg-primary-600 {
  background-color: var(--wl-primary) !important;
  border-color: var(--wl-primary) !important;
  color: #fff !important;
}

.btn-primary-600:hover,
.bg-hover-primary-600:hover {
  background-color: var(--wl-primary-hover) !important;
  border-color: var(--wl-primary-hover) !important;
  color: #fff !important;
}

.btn-outline-primary-600 {
  color: var(--wl-primary) !important;
  border-color: var(--wl-primary) !important;
}

.btn-outline-primary-600:hover {
  background-color: var(--wl-primary) !important;
  border-color: var(--wl-primary) !important;
  color: #fff !important;
}

.text-primary-600,
.text-primary-main {
  color: var(--wl-primary) !important;
}

/* ——— Tablolar: sıkı, net, profesyonel ——— */
.bordered-table {
  border: 1px solid var(--wl-border) !important;
  border-radius: var(--wl-radius) !important;
  overflow: hidden;
}

.bordered-table thead tr th {
  background-color: var(--wl-surface-muted) !important;
  color: #374151 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1rem !important;
  white-space: nowrap;
  border-bottom: 1px solid var(--wl-border) !important;
}

.bordered-table tbody tr td {
  padding: 0.875rem 1rem !important;
  color: var(--wl-text) !important;
  font-size: 0.875rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--wl-border) !important;
  background-color: var(--wl-surface) !important;
}

.bordered-table tbody tr:hover td {
  background-color: #f9fafb !important;
}

.bordered-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.bordered-table.sm-table thead tr th,
.bordered-table.sm-table tbody tr td {
  padding: 0.65rem 0.875rem !important;
}

/* <code> varsayılan magenta yerine nötr chip */
.bordered-table code,
.card code,
.wl-code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wl-primary) !important;
  background: var(--wl-primary-soft);
  border: 1px solid var(--wl-primary-soft-strong);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}

.wl-color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--wl-text-muted);
  font-size: 0.8125rem;
}

.wl-color-swatch::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch, var(--wl-primary));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.wl-table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wl-table-actions .btn {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
}

.wl-cell-title {
  font-weight: 600;
  color: var(--wl-text);
  line-height: 1.3;
}

.wl-cell-sub {
  font-size: 0.75rem;
  color: var(--wl-text-muted);
  margin-top: 0.15rem;
  line-height: 1.3;
}

.card.radius-12 {
  border: 1px solid var(--wl-border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.dashboard-main-body .breadcrumb {
  margin-bottom: 0.5rem;
}
