:root {
  --admin-sidebar: #0f172a;
  --admin-accent: #f97316;
  --admin-width: 260px;
}
.admin-body { margin: 0; background: #f8fafc; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: var(--admin-width);
  background: var(--admin-sidebar);
  color: #94a3b8;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  transition: transform 0.3s;
}
.admin-logo {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--admin-width);
  padding: 1rem 1rem 0.75rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  overflow: hidden;
}
.admin-logo span { color: var(--admin-accent); }
.admin-logo-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}
.login-brand-logo {
  display: block;
  margin: 0 auto 1.25rem;
  width: auto;
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}
.admin-sidebar nav { flex: 1; padding: 0.5rem; }
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 2px;
  font-weight: 500;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(249, 115, 22, 0.15);
  color: #fff;
}
.admin-sidebar-foot {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-foot a {
  display: block;
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35rem 0;
}
.admin-main {
  flex: 1;
  margin-left: var(--admin-width);
  min-width: 0;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-page-title { font-size: 1.15rem; font-weight: 700; margin: 0; flex: 1; }
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: #0f172a; }
.stat-card .stat-label { color: #64748b; font-size: 0.85rem; }
/* Firma hizmet seçici (panel / admin) */
.firm-services-picker .form-text { font-size: 0.875rem; }
.firm-services-summary {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #475569;
}
.firm-services-summary strong { color: var(--admin-accent); }
.firm-services-group {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.firm-services-group:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
}
.firm-services-group-head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.firm-services-group-title {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.firm-services-group-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.firm-services-group-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 0;
}
.firm-services-group-actions {
  font-size: 0.8rem;
}
.firm-services-group-actions .btn-link {
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  vertical-align: baseline;
}
.firm-services-group-actions .btn-link[data-action="all"] { color: #2563eb; }
.firm-services-group-body {
  padding: 0.75rem 1rem 1rem;
  max-height: 280px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.firm-services-group-body::-webkit-scrollbar { width: 6px; }
.firm-services-group-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
.firm-services-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0.35rem;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #334155;
  transition: background 0.15s ease;
}
.firm-services-check:hover { background: #f8fafc; }
.firm-services-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #2563eb;
}
.firm-services-check input:checked + span {
  color: #0f172a;
  font-weight: 600;
}
.firm-services-group.has-selection {
  border-color: rgba(249, 115, 22, 0.35);
}
.firm-services-group.has-selection .firm-services-group-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .firm-services-group-body { max-height: 220px; }
}
